Toolbar.appendElement

Warning gtk_toolbar_append_element has been deprecated since version 2.4 and should not be used in newly-written code. Use gtk_toolbar_insert() instead. Adds a new element to the end of a toolbar. 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 G_CALLBACK() to cast the function to GCallback.

Parameters

type GtkToolbarChildType

a value of type GtkToolbarChildType that determines what widget will be.

widget Widget

a GtkWidget, or NULL. [allow-none]

text string

the element's label.

tooltipText string

the element's tooltip.

tooltipPrivateText string

used for context-sensitive help about this toolbar element.

icon Widget

a GtkWidget that provides pictorial representation of the element's function.

callback GCallback

the function to be executed when the button is pressed.

userData void*

any data you wish to pass to the callback.

Return Value

Type: Widget

the new toolbar element as a GtkWidget.

Meta