Gtk.Toolbar.InsertElement Method

This method is deprecated and should not be used in new code.

Adds a new button to the beginning of the toolbar (left or top, depending on toolbar orientation).

If type == Gtk.ToolbarChildType.Widget, widget is used as the new element. If type == Gtk.ToolbarChildType.Radiobutton, widget is used to determine the radio group for the new element. In all other cases, widget must be NULL.

Syntax

public Widget InsertElement (ToolbarChildType type, Widget widget, string text, string tooltip_text, string tooltip_private_text, Widget icon, SignalFunc cb, IntPtr user_data, int position)

Parameters

type
a Gtk.ToolbarChildType, the type of widget to add
widget
a Gtk.Widget, the widget itself
text
a string, a label for the widget
tooltip_text
a string, simple tooltip text
tooltip_private_text
a string, context-sensitive detailed help
icon
a Gtk.Widget, the icon to use for this widget
cb
a Gtk.SignalFunc, a callback function to use when the new widget is touched.
user_data
a IntPtr, data to pass to the callback.
position
a int, the number of toolbar widgets to insert this element after.

Returns

a Gtk.Widget, the new toolbar element.

Remarks

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)