Pike v8.1 release 6

Method GTK2.UiManager()->get_widget()


Method get_widget

GTK2.Widget get_widget(string path)

Description

Looks up a widget by following a path. The path consists of the names specified in the xml description of the ui, separated by '/'. Elements which don't have a name or action attribute in the xml (e.g. >popup<) can be addressed by their xml element name (e.g. "popup"). The root element ("/ui") can be omitted in the path.

Note that the widget found be following a path that ends in a >menu< element is the menuitem to which the menu is attached, not the menu itself.