gtkToolbarAppendElement {RGtk2}R Documentation

gtkToolbarAppendElement

Description

Adds a new element to the end of a toolbar. WARNING: gtk_toolbar_append_element is deprecated and should not be used in newly-written code.

Usage

gtkToolbarAppendElement(object, type, widget, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL)

Arguments

object [GtkToolbar] a GtkToolbar.
type [GtkToolbarChildType] a value of type GtkToolbarChildType that determines what widget will be.
widget [GtkWidget] a GtkWidget, or NULL.
text [char] the element's label.
tooltip.text [char] the element's tooltip.
tooltip.private.text [char] used for context-sensitive help about this toolbar element.
icon [GtkWidget] a GtkWidget that provides pictorial representation of the element's function.
callback [GtkSignalFunc] the function to be executed when the button is pressed.
user.data [R object] any data you wish to pass to the callback.

Details

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.

Value

[GtkWidget] the new toolbar element as a GtkWidget.

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]