Description Usage Arguments Details Value Author(s)
Inserts a new element in the toolbar at the given position.
WARNING: gtk_toolbar_insert_element
has been deprecated since version 2.4 and should not be used in newly-written code. Use gtkToolbarInsert
instead.
1 2 | gtkToolbarInsertElement(object, type, widget, text, tooltip.text,
tooltip.private.text, icon, callback, user.data = NULL, position)
|
|
a |
|
a value of type |
|
a |
|
the element's label. |
|
the element's tooltip. |
|
used for context-sensitive help about this toolbar element. |
|
a |
|
the function to be executed when the button is pressed. |
|
any data you wish to pass to the callback. |
|
the number of widgets to insert this element after. |
If type
== GTK_TOOLBAR_CHILD_WIDGET
, widget
is used as the new element.
If type
== GTK_TOOLBAR_CHILD_RADIOBUTTON
, widget
is used to determine
the radio group for the new element. In all other cases, widget
must
be NULL
.
callback
must be a pointer to a function taking a GtkWidget
and a gpointer as
arguments. Use gCallback()
to cast the function to GCallback
.
[GtkWidget
] the new toolbar element as a GtkWidget
.
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.