Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-03-13 12:47:23 (GMT)
committer Simon Schampijer <simon@schampijer.de>2012-03-13 12:51:25 (GMT)
commitf22a2b92143e3b09eceeb0720f05abef04f31311 (patch)
treef85eb8f811da76b3bfb7f4fb0154a02149088b92 /src
parent05c85d81df91a3d73a1f5a1ec4e2c4fc9786a969 (diff)
Avoid using a protected member in the filter of the favorites view
Add a getter method in ActivityIcon to access the activity name. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/desktop/favoritesview.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py
index 5c76cdc..654f400 100644
--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -115,7 +115,7 @@ class FavoritesView(hippo.Canvas):
query = query.strip()
for icon in self._box.get_children():
if icon not in [self._my_icon, self._current_activity]:
- activity_name = icon._activity_info.get_name().lower()
+ activity_name = icon.get_activity_name().lower()
if activity_name.find(query) > -1:
icon.alpha = 1.0
else:
@@ -508,6 +508,9 @@ class ActivityIcon(CanvasIcon):
return self._activity_info.get_activity_version()
version = property(get_version, None)
+ def get_activity_name(self):
+ return self._activity_info.get_name()
+
def _get_installation_time(self):
return self._activity_info.get_installation_time()
installation_time = property(_get_installation_time, None)