Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-08 19:06:53 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-08 19:06:53 (GMT)
commitdb4a7116e5e1d212041b2e8a68e96fb1034bcbef (patch)
treeb32bb36f9837fb7b4afff7b83000771e4f7a065c /shell
parent4548d122fce5a19de7e08db148e4616f43c02e62 (diff)
#4716: Filter correctly activity icons in the mesh view.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/home/MeshBox.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/view/home/MeshBox.py b/shell/view/home/MeshBox.py
index 0a23020..696dc86 100644
--- a/shell/view/home/MeshBox.py
+++ b/shell/view/home/MeshBox.py
@@ -290,11 +290,13 @@ class ActivityView(hippo.CanvasBox):
self._shell.join_activity(bundle_id, self._model.get_id())
def set_filter(self, query):
- if self._model.activity.props.name.lower().find(query) == -1:
- self._icon.xo_color = [style.COLOR_INACTIVE_STROKE.get_svg(),
- style.COLOR_INACTIVE_FILL.get_svg()]
+ text_to_check = self._model.activity.props.name.lower() + \
+ self._model.activity.props.type.lower()
+ if text_to_check.find(query) == -1:
+ self._icon.props.stroke_color = style.COLOR_INACTIVE_STROKE.get_svg()
+ self._icon.props.fill_color = style.COLOR_INACTIVE_FILL.get_svg()
else:
- self._icon.xo_color = self._model.get_color()
+ self._icon.props.xo_color = self._model.get_color()
_AUTOSEARCH_TIMEOUT = 1000