[Bugs] #19 NORM: add star badge to APs that are in our connections
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Wed Aug 19 05:00:21 EDT 2009
#19: add star badge to APs that are in our connections
----------------------------+-----------------------------------------------
Reporter: erikos | Owner: erikos
Type: enhancement | Status: assigned
Priority: normal | Milestone: 0.86
Component: sugar | Version: Git as of bugdate
Severity: Blocker | Resolution:
Keywords: | Distribution: Unspecified
Status_field: Assigned |
----------------------------+-----------------------------------------------
Changes (by erikos):
* cc: r? (added)
Comment:
{{{
diff --git a/src/jarabe/desktop/meshbox.py b/src/jarabe/desktop/meshbox.py
index c37bba1..be33d0f 100644
--- a/src/jarabe/desktop/meshbox.py
+++ b/src/jarabe/desktop/meshbox.py
@@ -217,7 +217,10 @@ class AccessPointView(CanvasPulsingIcon):
logging.debug('Error getting the access point properties: %s',
err)
def _update(self):
- if self._flags == network.NM_802_11_AP_FLAGS_PRIVACY:
+ if network.find_connection(self._name) != None:
+ self.props.badge_name = "emblem-favorite"
+ self._palette_icon.props.badge_name = "emblem-favorite"
+ elif self._flags == network.NM_802_11_AP_FLAGS_PRIVACY:
self.props.badge_name = "emblem-locked"
self._palette_icon.props.badge_name = "emblem-locked"
}}}
--
Ticket URL: <http://dev.sugarlabs.org/ticket/19#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list