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.
This commit is contained in:
Matthias Clasen 2014-01-04 21:50:29 -05:00
parent 07d6c69128
commit 2a3d5823f4

View File

@ -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: