Pike v8.0 release 1738

Class GTK2.UiManager

Inheritance graph
GTK2.G.Object GTK2.UiManager
Description

Constructing menus and toolbars from an XML description. Properties: int add-tearoffs string ui

Signals: actions_changed Emitted whenever the actions changes.

add_widget Emitted for each generated menubar and toolbar, but not for generated popup menus.

connect_proxy Emitted after connecting a proxy to an action.

disconnect_proxy Emitted after disconnecting a proxy from an action.

post_activate Emitted just after the action is activated.

pre_activate Emitted just before the action is activated. A UI definition: <ui> <menubar> <menu name="FileMenu" action="FileMenuAction"> <menuitem name="New" action="New2Action" /> <placeholder name="FileMenuAdditions" /> </menu> <menu name="JustifyMenu" action="JustifyMenuAction"> <menuitem name="Left" action="justify-left"/> <menuitem name="Centre" action="justify-center"/> <menuitem name="Right" action="justify-right"/> <menuitem name="Fill" action="justify-fill"/> </menu> </menubar> <toolbar action="toolbar1"> <placeholder name="JustifyToolItems"> <separator/> <toolitem name="Left" action="justify-left"/> <toolitem name="Centre" action="justify-center"/> <toolitem name="Right" action="justify-right"/> <toolitem name="Fill" action="justify-fill"/> <separator/> </placeholder> </toolbar> </ui>


Inherit Object

inherit G.Object : Object


Method create

GTK2.UiManager GTK2.UiManager(mapping|void props)

Description

Creates a new ui manager object.