| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
GTK2
GTK2.UiManager

# Class 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: &lt;ui&gt; &lt;menubar&gt; &lt;menu name="FileMenu" action="FileMenuAction"&gt; &lt;menuitem name="New" action="New2Action" /&gt; &lt;placeholder name="FileMenuAdditions" /&gt; &lt;/menu> &lt;menu name="JustifyMenu" action="JustifyMenuAction"&gt; &lt;menuitem name="Left" action="justify-left"/&gt; &lt;menuitem name="Centre" action="justify-center"/&gt; &lt;menuitem name="Right" action="justify-right"/&gt; &lt;menuitem name="Fill" action="justify-fill"/&gt; &lt;/menu&gt; &lt;/menubar&gt; &lt;toolbar action="toolbar1"&gt; &lt;placeholder name="JustifyToolItems"&gt; &lt;separator/&gt; &lt;toolitem name="Left" action="justify-left"/&gt; &lt;toolitem name="Centre" action="justify-center"/&gt; &lt;toolitem name="Right" action="justify-right"/&gt; &lt;toolitem name="Fill" action="justify-fill"/&gt; &lt;separator/&gt; &lt;/placeholder&gt; &lt;/toolbar&gt; &lt;/ui&gt;

Inherit Object

  inherit G.Object : Object