summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-03 00:28:54 +0200
committerJavier Jardón <jjardon@gnome.org>2010-10-03 00:30:25 +0200
commit38469882119926241d61dd79e9fec0dde7f8fda9 (patch)
tree3f74594831eeeb621f885d1b604bd4fc2ad0e7f0 /gtk/gtktoolbar.c
parent5fcf06bb91ede7b34d9a5c40b5184d5e62b9e876 (diff)
downloadgtk+-38469882119926241d61dd79e9fec0dde7f8fda9.tar.gz
docs: Move documentation to inline comments: GtkToolbar
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c23
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