]> Pileus Git - ~andy/gtk/commitdiff
menu: notify attach-widget property when menu is detached
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 5 Jul 2012 17:21:03 +0000 (13:21 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 6 Jul 2012 15:14:15 +0000 (11:14 -0400)
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

gtk/gtkmenu.c

index b0912f9e85a154b21196af85b40ebf229ca1d72f..88f55f9a87ec7aa559115922473ca71640d6dc81 100644 (file)
@@ -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);
 }