From c18de95916fe86c4a5317275da7d905fd81d666c Mon Sep 17 00:00:00 2001 From: Sense Hofstede Date: Fri, 19 Mar 2010 22:46:41 +0100 Subject: Make sure the state of GtkCheckMenuItems and GtkRadioMenuItems gets updated even when they're changed via their actions. --- src/libappindicator/app-indicator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index 1dce0a0..32fb2ff 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -1200,6 +1200,13 @@ action_notify_cb (GtkAction *action, { DbusmenuMenuitem *child = (DbusmenuMenuitem *)data; + if (pspec->name == g_intern_static_string ("active")) + { + dbusmenu_menuitem_property_set_bool (child, + DBUSMENU_MENUITEM_PROP_TOGGLE_STATE, + gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action))); + } + if (pspec->name == g_intern_static_string ("label")) { dbusmenu_menuitem_property_set (child, -- cgit v1.2.3