GtkUIManager
An object for creating menus and toolbars from XML.
Object Hierarchy
Description
A GtkUIManager object constructs menus and toolbars from an XML description. GtkUIManager is used to create a user interfaces consisting of menus and toolbars from a UI definition which references one or more action groups.
Constructors
GtkUIManager ();-- Creates a new GtkUIManager object.
--
Methods
add_ui() Â Adds a new UI element to the specified location. add_ui_from_file() Â Merges a file UI definition. add_ui_from_string() Â Merges a string UI definition. ensure_update() Â Make sure all pending updates have been added. get_accel_group() Â Returns an associated GtkAccelGroup get_action() Â Looks up a GtkAction by following a path. get_action_groups() Â Returns associated GtkActionGroup objects. get_add_tearoffs() Â Returns true if regular menus will have tearoff menu items. get_toplevels() Â Obtains a list of all toplevel widgets of the requested types. get_ui() Â Gets a string containing an XML representation of the merged UI. get_widget() Â Looks up a widget by following a path. insert_action_group() Â Inserts a GtkActionGroup at a location. new_merge_id() Â Returns a merge id for use when adding a ui component. remove_action_group() Â Removes the par of the ui definition content. remove_ui() Â Remove part of the ui description. set_add_tearoffs() Â Controls if regular menu items will have tearoffs.
Signals
"actions-changed" Â This signal is emitted when the set of actions changes. "add-widget" Â This signal is emitted for each generated menubar and toolbar "connect-proxy" Â This signal is emitted when a widget is connected to an action. "disconnect-proxy" Â This signal is emitted when a widget is disconnected from an action. "post-activate" Â Emitted after action is activated. "pre-activate" Â Emitted before action is activated.