Description
Create bars of buttons and other widgetsMethods and Functions
gtkToolbarNew(show = TRUE)
gtkToolbarInsert(object, item, pos)
gtkToolbarGetItemIndex(object, item)
gtkToolbarGetNItems(object)
gtkToolbarGetNthItem(object, n)
gtkToolbarGetDropIndex(object, x, y)
gtkToolbarSetDropHighlightItem(object, tool.item = NULL, index)
gtkToolbarSetShowArrow(object, show.arrow)
gtkToolbarSetOrientation(object, orientation)
gtkToolbarSetTooltips(object, enable)
gtkToolbarUnsetIconSize(object)
gtkToolbarGetShowArrow(object)
gtkToolbarGetOrientation(object)
gtkToolbarGetStyle(object)
gtkToolbarGetIconSize(object)
gtkToolbarGetTooltips(object)
gtkToolbarGetReliefStyle(object)
gtkToolbarAppendItem(object, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL)
gtkToolbarPrependItem(object, text, tooltip.text, tooltip.private.text, icon, callback, user.data)
gtkToolbarInsertItem(object, text, tooltip.text, tooltip.private.text, icon, callback, user.data, position)
gtkToolbarAppendSpace(object)
gtkToolbarPrependSpace(object)
gtkToolbarInsertSpace(object, position)
gtkToolbarAppendElement(object, type, widget, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL)
gtkToolbarPrependElement(object, type, widget, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL)
gtkToolbarInsertElement(object, type, widget, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL, position)
gtkToolbarAppendWidget(object, widget, tooltip.text = NULL, tooltip.private.text = NULL)
gtkToolbarPrependWidget(object, widget, tooltip.text = NULL, tooltip.private.text = NULL)
gtkToolbarInsertWidget(object, widget, tooltip.text = NULL, tooltip.private.text = NULL, position)
gtkToolbarSetStyle(object, style)
gtkToolbarInsertStock(object, stock.id, tooltip.text, tooltip.private.text, callback, user.data, position)
gtkToolbarSetIconSize(object, icon.size)
gtkToolbarRemoveSpace(object, position)
gtkToolbarUnsetStyle(object)
gtkToolbar(show = TRUE)
Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkToolbarDetailed Description
A toolbar is created with a call to gtkToolbarNew
.
A toolbar can contain instances of a subclass of GtkToolItem
. To add
a GtkToolItem
to the a toolbar, use gtkToolbarInsert
. To remove
an item from the toolbar use gtkContainerRemove
. To add a button
to the toolbar, add an instance of GtkToolButton
.
Toolbar items can be visually grouped by adding instances of
GtkSeparatorToolItem
to the toolbar. If a GtkSeparatorToolItem
has
the "expand" property set to TRUE and the "draw" property set to
FALSE the effect is to force all following items to the end of the
toolbar.
Creating a context menu for the toolbar can be done by connecting to
the "popup-context-menu" signal.Convenient Construction
gtkToolbar
is the equivalent of gtkToolbarNew
.References
http://library.gnome.org/devel//gtk/GtkToolbar.html