From cb3e8866337f4d2b639f8dc74ac45459ab820a4b Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 07 Oct 2011 18:47:58 +0000 Subject: Update alpha according to filter after events in neighborhoodview icons, SL #3091 The neighboard view use alpha to show the applied filter. When the state of an AP change the graphic representation is updated and the alpha is restored acording the filter value. Signed-off-by: Gonzalo Odiard Reviewed-by: Daniel Drake Reviewed: Sascha Silbe Acked-by: Simon Schampijer --- diff --git a/src/jarabe/desktop/networkviews.py b/src/jarabe/desktop/networkviews.py index 616f555..677452d 100644 --- a/src/jarabe/desktop/networkviews.py +++ b/src/jarabe/desktop/networkviews.py @@ -149,6 +149,7 @@ class WirelessNetworkView(CanvasPulsingIcon): self._update_state() self._update_icon() self._update_badge() + self._update_color() def __update_active_ap(self, ap_path): if ap_path in self._access_points: @@ -558,6 +559,7 @@ class SugarAdhocView(CanvasPulsingIcon): self._connect_item.show() self._palette.props.secondary_text = None self.props.pulsing = False + self._update_color() def _update_color(self): self.props.base_color = self._state_color @@ -650,6 +652,7 @@ class OlpcMeshView(CanvasPulsingIcon): def __device_state_changed_cb(self, new_state, old_state, reason): self._device_state = new_state self._update() + self._update_color() def __get_active_channel_reply_cb(self, channel): self._active = (channel == self._channel) -- cgit v0.9.1