← Back to team overview

ayatana-commits team mailing list archive

[Branch ~indicator-applet-developers/indicator-me/trunk] Rev 106: Fix for bug https://bugs.launchpad.net/indicator-me/+bug/565477 to remove checkmarks next to stat...

 

Merge authors:
  David Barth (dbarth)
Related merge proposals:
  https://code.launchpad.net/~dbarth/indicator-me/clean-checkmarks/+merge/35061
  proposed by: David Barth (dbarth)
  review: Approve - Ted Gould (ted)
------------------------------------------------------------
revno: 106 [merge]
tags: 0.2.9, 0.2.9-real
committer: David Barth <david.barth@xxxxxxxxxxxxx>
branch nick: indicator-me
timestamp: Thu 2010-09-16 18:02:49 +0200
message:
  Fix for bug https://bugs.launchpad.net/indicator-me/+bug/565477 to remove checkmarks next to status menu items when the user is offline
modified:
  src/me-service.c


--
lp:indicator-me
https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk

Your team ayatana-commits is subscribed to branch lp:indicator-me.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk/+edit-subscription
=== modified file 'src/me-service.c'
--- src/me-service.c	2010-09-15 21:07:40 +0000
+++ src/me-service.c	2010-09-16 16:02:49 +0000
@@ -136,6 +136,11 @@
       dbusmenu_menuitem_property_set_bool(status_menuitems[i],
                                           DBUSMENU_MENUITEM_PROP_ENABLED,
                                           FALSE);
+      dbusmenu_menuitem_property_set_int (status_menuitems[i],
+                                          DBUSMENU_MENUITEM_PROP_TOGGLE_STATE,
+                                          (i != STATUS_PROVIDER_STATUS_OFFLINE)
+                                          ? DBUSMENU_MENUITEM_TOGGLE_STATE_UNCHECKED
+                                          : DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED);
     }
     return;
   }