[gtk+/gtk-3-4] menu: notify attach-widget property when menu is detached
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] menu: notify attach-widget property when menu is detached
- Date: Sun, 15 Jul 2012 17:01:05 +0000 (UTC)
commit 5aae0040f712fe55af1cf3df0193797239e492ea
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 b2345a8..ce04c9f 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]