diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-30 05:49:05 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-30 05:49:05 +0000 |
commit | e3a621115a3b1f071a7f37f32bec2c49e71a4f5c (patch) | |
tree | d16cdf7012014905a1637b6051556b4dd9b06085 /gtk | |
parent | 4dd366238e741a4a5a2a2a32c81dd0c5e4e6afcf (diff) | |
download | gtk+-e3a621115a3b1f071a7f37f32bec2c49e71a4f5c.tar.gz |
Doc additions
svn path=/trunk/; revision=22010
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmenutoolbutton.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index f1443c5d98..bc6e5cb6a8 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -217,6 +217,19 @@ gtk_menu_tool_button_class_init (GtkMenuToolButtonClass *klass) widget_class->state_changed = gtk_menu_tool_button_state_changed; toolitem_class->toolbar_reconfigured = gtk_menu_tool_button_toolbar_reconfigured; + /** + * GtkMenuToolButton::show-menu: + * @button: the object on which the signal is emitted + * + * The ::show-menu signal is emitted before the menu is shown. + * + * It can be used to populate the menu on demand, using + * gtk_menu_tool_button_get_menu(). + + * Note that even if you populate the menu dynamically in this way, + * you must set an empty menu on the #GtkMenuToolButton beforehand, + * since the arrow is made insensitive if the menu is not set. + */ signals[SHOW_MENU] = g_signal_new (I_("show-menu"), G_OBJECT_CLASS_TYPE (klass), |