| gtkToolbarPrependElement {RGtk2} | R Documentation |
Adds a new element to the beginning of a toolbar.
WARNING: gtk_toolbar_prepend_element is deprecated and should not be used in newly-written code.
gtkToolbarPrependElement(object, type, widget, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL)
|
[GtkToolbar] a GtkToolbar. |
|
[GtkToolbarChildType] a value of type GtkToolbarChildType that determines what widget will be. |
|
[GtkWidget] a GtkWidget, or NULL |
|
[char] the element's label. |
|
[char] the element's tooltip. |
|
[char] used for context-sensitive help about this toolbar element. |
|
[GtkWidget] a GtkWidget that provides pictorial representation of the element's function. |
|
[GtkSignalFunc] the function to be executed when the button is pressed. |
|
[R object] any data you wish to pass to the callback. |
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 the gtkSignalFunc() to cast the function to GtkSignalFunc.
[GtkWidget] the new toolbar element as a GtkWidget.
Derived by RGtkGen from GTK+ documentation