aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
diff options
context:
space:
mode:
authorSense Hofstede <qense@ubuntu.com>2010-03-19 22:46:41 +0100
committerSense Hofstede <qense@ubuntu.com>2010-03-19 22:46:41 +0100
commitc18de95916fe86c4a5317275da7d905fd81d666c (patch)
tree8acff54c2223879e71beddcee615f8f4b3e9ff76 /src/libappindicator/app-indicator.c
parent65febbd636ebe580a34a7e59b083e6210fbadee5 (diff)
downloadlibayatana-appindicator-c18de95916fe86c4a5317275da7d905fd81d666c.tar.gz
libayatana-appindicator-c18de95916fe86c4a5317275da7d905fd81d666c.tar.bz2
libayatana-appindicator-c18de95916fe86c4a5317275da7d905fd81d666c.zip
Make sure the state of GtkCheckMenuItems and GtkRadioMenuItems gets updated even when they're changed via their actions.
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r--src/libappindicator/app-indicator.c7
1 files changed, 7 insertions, 0 deletions
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,