[gtk+] GtkModelMenuItem: Add some property notification



commit 2a3d5823f485f0885c4f9cf46c1403464c963b70
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 4 21:50:29 2014 -0500

    GtkModelMenuItem: Add some property notification
    
    GtkModelMenuItem emits no property notification, since none of its
    properties are readable. But the toggled property is just a proxy
    for GtkCheckMenuItem::active, so we should ensure that property
    notification is emitted for the ::active property.

 gtk/gtkmodelmenuitem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index c698a52..2235ff7 100644
--- a/gtk/gtkmodelmenuitem.c
+++ b/gtk/gtkmodelmenuitem.c
@@ -308,6 +308,7 @@ gtk_model_menu_item_set_property (GObject *object, guint prop_id,
 
     case PROP_TOGGLED:
       _gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), g_value_get_boolean (value));
+      g_object_notify (object, "active");
       break;
 
     case PROP_ACCEL:


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