gtkToolbarInsertItem {RGtk2} | R Documentation |
Inserts a new item into the toolbar. You must specify the position in the
toolbar where it will be inserted.
WARNING: gtk_toolbar_insert_item
is deprecated and should not be used in newly-written code.
gtkToolbarInsertItem(object, text, tooltip.text, tooltip.private.text, icon, callback, user.data, position)
|
[GtkToolbar ] a GtkToolbar . |
|
[char] give your toolbar button a label. |
|
[char] a string that appears when the user holds the mouse over this item. |
|
[char] use with GtkTipsQuery . |
|
[GtkWidget ] a GtkWidget that should be used as the button's icon. |
|
[GtkSignalFunc] the function to be executed when the button is pressed. |
|
[R object] a pointer to any data you wish to be passed to the callback. |
|
[integer] the number of widgets to insert this item after. |
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 item as a GtkWidget
.
Derived by RGtkGen from GTK+ documentation