Fix icon names

This commit is contained in:
Marco Pesenti Gritti 2007-10-19 20:30:09 +02:00
parent 60c746ce5a
commit efd0bbd326
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class DeviceView(CanvasIcon):
# Update palette # Update palette
if self._model.props.charging: if self._model.props.charging:
status = _STATUS_CHARGING status = _STATUS_CHARGING
self.props.badge_name = 'badge-charging' self.props.badge_name = 'emblem-charging'
elif self._model.props.discharging: elif self._model.props.discharging:
status = _STATUS_DISCHARGING status = _STATUS_DISCHARGING
self.props.badge_name = None self.props.badge_name = None

View File

@ -71,9 +71,9 @@ class AccessPointView(PulsingIcon):
# Update badge # Update badge
caps = model.props.capabilities caps = model.props.capabilities
if model.get_nm_network().is_favorite(): if model.get_nm_network().is_favorite():
self.props.badge_name = "badge-star" self.props.badge_name = "emblem-star"
elif (caps & NM_802_11_CAP_PROTO_WEP) or (caps & NM_802_11_CAP_PROTO_WPA) or (caps & NM_802_11_CAP_PROTO_WPA2): elif (caps & NM_802_11_CAP_PROTO_WEP) or (caps & NM_802_11_CAP_PROTO_WPA) or (caps & NM_802_11_CAP_PROTO_WPA2):
self.props.badge_name = "badge-locked" self.props.badge_name = "emblem-locked"
def _create_palette(self): def _create_palette(self):
p = palette.Palette(self._model.props.name, menu_after_content=True) p = palette.Palette(self._model.props.name, menu_after_content=True)