forked from AuroraMiddleware/gtk
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:
parent
07d6c69128
commit
2a3d5823f4
@ -308,6 +308,7 @@ gtk_model_menu_item_set_property (GObject *object, guint prop_id,
|
|||||||
|
|
||||||
case PROP_TOGGLED:
|
case PROP_TOGGLED:
|
||||||
_gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), g_value_get_boolean (value));
|
_gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), g_value_get_boolean (value));
|
||||||
|
g_object_notify (object, "active");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_ACCEL:
|
case PROP_ACCEL:
|
||||||
|
Loading…
Reference in New Issue
Block a user