gtk_toolbar_insert_element
has been deprecated since version 2.4 and should not be used in newly-written code. Use gtkToolbarInsert
instead.
gtkToolbarInsertElement(object, type, widget, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL, position)
object
GtkToolbar
.type
GtkToolbarChildType
that determines what widget
will be.widget
GtkWidget
, or NULL
. [ allow-none ]text
tooltip.text
tooltip.private.text
icon
GtkWidget
that provides pictorial representation of the element's function.callback
user.data
position
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
.