diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-10-03 00:28:54 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-10-03 00:30:25 +0200 |
commit | 38469882119926241d61dd79e9fec0dde7f8fda9 (patch) | |
tree | 3f74594831eeeb621f885d1b604bd4fc2ad0e7f0 /gtk/gtktoolbar.c | |
parent | 5fcf06bb91ede7b34d9a5c40b5184d5e62b9e876 (diff) | |
download | gtk+-38469882119926241d61dd79e9fec0dde7f8fda9.tar.gz |
docs: Move documentation to inline comments: GtkToolbar
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r-- | gtk/gtktoolbar.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 3a3d7af089..7281544cce 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -59,6 +59,29 @@ #include "gtkintl.h" +/** + * SECTION:gtktoolbar + * @Short_description: Create bars of buttons and other widgets + * @Title: GtkToolbar + * @See_also: #GtkToolItem + * + * A toolbar is created with a call to gtk_toolbar_new(). + * + * A toolbar can contain instances of a subclass of #GtkToolItem. To add + * a #GtkToolItem to the a toolbar, use gtk_toolbar_insert(). To remove + * an item from the toolbar use gtk_container_remove(). 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 the GtkToolbar child property + * "expand" is #TRUE and the property #GtkSeparatorToolItem:draw is 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 #GtkToolbar::popup-context-menu signal. + */ + + typedef struct _ToolbarContent ToolbarContent; #define DEFAULT_IPADDING 0 |