diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-04-15 00:04:49 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-04-15 01:41:13 +0100 |
commit | c0b3bfd7b633fadb29bba117524baa5f15415e5e (patch) | |
tree | ccc892cd3c1381fe37f73a4349dcf6fa1ba49b3c /gtk/gtktoolbutton.c | |
parent | c1e8577a66a2302956afc0ebe7925f89ef39b5ce (diff) | |
download | gtk+-c0b3bfd7b633fadb29bba117524baa5f15415e5e.tar.gz |
Move documentation to inline comments: GtkToolButton
Diffstat (limited to 'gtk/gtktoolbutton.c')
-rw-r--r-- | gtk/gtktoolbutton.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index 5a3bc469e2..ddf321b09b 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -37,6 +37,37 @@ #include <string.h> + +/** + * SECTION:gtktoolbutton + * @Short_description: A GtkToolItem subclass that displays buttons + * @Title: GtkToolButton + * @See_also: #GtkToolbar, #GtkMenuToolButton, #GtkToggleToolButton, + * #GtkRadioToolButton, #GtkSeparatorToolItem + * + * #GtkToolButton<!-- -->s are #GtkToolItems containing buttons. + * + * Use gtk_tool_button_new() to create a new #GtkToolButton. Use + * gtk_tool_button_new_with_stock() to create a #GtkToolButton + * containing a stock item. + * + * The label of a #GtkToolButton is determined by the properties + * #GtkToolButton:label-widget, #GtkToolButton:label, and + * #GtkToolButton:stock-id. If #GtkToolButton:label-widget is + * non-%NULL, then that widget is used as the label. Otherwise, if + * #GtkToolButton:label is non-%NULL, that string is used as the label. + * Otherwise, if #GtkToolButton:stock-id is non-%NULL, the label is + * determined by the stock item. Otherwise, the button does not have a label. + * + * The icon of a #GtkToolButton is determined by the properties + * #GtkToolButton:icon-widget and #GtkToolButton:stock-id. If + * #GtkToolButton:icon-widget is non-%NULL, then + * that widget is used as the icon. Otherwise, if #GtkToolButton:stock-id is + * non-%NULL, the icon is determined by the stock item. Otherwise, + * the button does not have a icon. + */ + + #define MENU_ID "gtk-tool-button-menu-id" enum { |