[gtk+] menu: notify attach-widget property when menu is detached



commit f81bd6c52daf4e55e50b7efb4d039ef6b4ac3ce9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 5 13:21:03 2012 -0400

    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

 gtk/gtkmenu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index b0912f9..88f55f9 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]