gtkToolbarInsertStock {RGtk2}R Documentation

gtkToolbarInsertStock

Description

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 is deprecated and should not be used in newly-written code.

Usage

gtkToolbarInsertStock(object, stock.id, tooltip.text, tooltip.private.text, callback, user.data, position)

Arguments

object [GtkToolbar] A GtkToolbar
stock.id [character] The id of the stock item you want to insert
tooltip.text [char] The text in the tooltip of the toolbar button
tooltip.private.text [char] The private text of the tooltip
callback [GtkSignalFunc] The callback called when the toolbar button is clicked.
user.data [R object] user data passed to callback
position [integer] The position the button shall be inserted at. -1 means at the end.

Details

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.

Value

[GtkWidget] the inserted widget

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]