diff options
author | Ted Gould <ted@gould.cx> | 2010-03-23 14:18:14 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-23 14:18:14 -0500 |
commit | 105b2a0cee523d8900bbd2394646e2c1a6db1203 (patch) | |
tree | 22739135a3867c18e2c5e309b177a1542266750b /src/libappindicator | |
parent | 42de500f6f9f74c505ce22fd959259044103929c (diff) | |
parent | c18de95916fe86c4a5317275da7d905fd81d666c (diff) | |
download | ayatana-indicator-application-105b2a0cee523d8900bbd2394646e2c1a6db1203.tar.gz ayatana-indicator-application-105b2a0cee523d8900bbd2394646e2c1a6db1203.tar.bz2 ayatana-indicator-application-105b2a0cee523d8900bbd2394646e2c1a6db1203.zip |
Update to track toggle changes in actions.
Diffstat (limited to 'src/libappindicator')
-rw-r--r-- | src/libappindicator/app-indicator.c | 7 |
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, |