Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-10-07 18:47:58 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-10-09 14:26:18 (GMT)
commitf01a6c31fa9b026e59145a6b72c1c9db24af4dbe (patch)
treeea696d4f8552c9aaf9b78e7963b2226e3dbd72a0
parente899fa0fe99104c90530e1e3d3e872df44e4d615 (diff)
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 <gonzalo@laptop.org> Reviewed-by: Daniel Drake <dsd@laptop.org> Reviewed: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/jarabe/desktop/networkviews.py3
1 files changed, 3 insertions, 0 deletions
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)