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:12:16 (GMT)
commitcb3e8866337f4d2b639f8dc74ac45459ab820a4b (patch)
tree6563fcdc88b7f1f090238fec12b977010488ffb6
parent2f7153776e271ad75c2df4197108fffaf77f3161 (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)