summaryrefslogtreecommitdiff
path: root/gtk/gtkmenu.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-07-05 13:21:03 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-07-06 11:14:15 -0400
commitf81bd6c52daf4e55e50b7efb4d039ef6b4ac3ce9 (patch)
tree2755c01a4a3180902986098e5c9b8a9076b0562a /gtk/gtkmenu.c
parentf22226b3c9747bd58a4a866d7d7506fad45cf895 (diff)
downloadgtk+-f81bd6c52daf4e55e50b7efb4d039ef6b4ac3ce9.tar.gz
menu: notify attach-widget property when menu is detached
When the menu is detached, the attach-widget property changes value to NULL, so we should notify a property change, like gtk_menu_attach_to_widget() does. https://bugzilla.gnome.org/show_bug.cgi?id=679454
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r--gtk/gtkmenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index b0912f9e85..88f55f9a87 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -1297,6 +1297,7 @@ gtk_menu_detach (GtkMenu *menu)
/* Fallback title for menu comes from attach widget */
gtk_menu_update_title (menu);
+ g_object_notify (G_OBJECT (menu), "attach-widget");
g_object_unref (menu);
}