Method
GtkUIManageradd_ui
deprecated: 3.10 since: 2.4
Declaration [src]
void
gtk_ui_manager_add_ui (
GtkUIManager* manager,
guint merge_id,
const gchar* path,
const gchar* name,
const gchar* action,
GtkUIManagerItemType type,
gboolean top
)
Description [src]
Adds a UI element to the current contents of manager
.
If type
is GTK_UI_MANAGER_AUTO
, GTK+ inserts a menuitem, toolitem or
separator if such an element can be inserted at the place determined by
path
. Otherwise type
must indicate an element that can be inserted at
the place determined by path
.
If path
points to a menuitem or toolitem, the new element will be inserted
before or after this item, depending on top
.
Available since: 2.4
Deprecated since: 3.10
Please do not use it in newly written code.
Parameters
merge_id
-
Type:
guint
The merge id for the merged UI, see gtk_ui_manager_new_merge_id().
path
-
Type:
const gchar*
A path.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. name
-
Type:
const gchar*
The name for the added UI element.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. action
-
Type:
const gchar*
The name of the action to be proxied, or
NULL
to add a separator.The argument can be NULL
.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. type
-
Type:
GtkUIManagerItemType
The type of UI element to add.
top
-
Type:
gboolean
If
TRUE
, the UI element is added before its siblings, otherwise it is added after its siblings.