gtkToolbarInsertStock
Inserts a stock item at the specified position of the toolbar. If
stock.id
is not a known stock item ID, it's inserted verbatim,
except that underscores used to mark mnemonics are removed.
WARNING: gtk_toolbar_insert_stock
has been deprecated since version 2.4 and should not be used in newly-written code. Use gtkToolbarInsert
instead.
gtkToolbarInsertStock(object, stock.id, tooltip.text, tooltip.private.text, callback, user.data, position)
|
|
|
The id of the stock item you want to insert |
|
The text in the tooltip of the toolbar button |
|
The private text of the tooltip |
|
The callback called when the toolbar button is clicked. |
|
user data passed to callback |
|
The position the button shall be inserted at. -1 means at the end. |
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 inserted widget
Derived by RGtkGen from GTK+ documentation
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.