GtkItemFactory::from_widget

from_widget(GtkWidgetwidget);

This method must be called statically.