Forum und email

GtkUIManager

An object for creating menus and toolbars from XML.

Йерархия на обектите

Описание

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

-- Creates a new GtkUIManager object.

--

Методи

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.

Сигнали

"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.