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.
- 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.
a Gtk.Widget