Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-06-01 12:19:14 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-01 12:19:14 (GMT)
commitd4bd7a5d05f251cdf90c0f656f0498df05b4e5b1 (patch)
tree7a7885696a3aeb11c17a644a62a510ac8d87091b /shell/model
parentcd3efeba492f934c976503c1d1697a3c7ac4856b (diff)
Do not index icons by activity id. Raw X windows does not have one.
Diffstat (limited to 'shell/model')
-rw-r--r--shell/model/homeactivity.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/model/homeactivity.py b/shell/model/homeactivity.py
index c22e8be..f029e15 100644
--- a/shell/model/homeactivity.py
+++ b/shell/model/homeactivity.py
@@ -72,6 +72,8 @@ class HomeActivity(gobject.GObject):
def set_service(self, service):
self._service = service
+ if not self._activity_id:
+ self._activity_id = service.get_id()
def get_service(self):
"""Retrieve the application's sugar introspection service
@@ -154,6 +156,13 @@ class HomeActivity(gobject.GObject):
"""
return self._launch_time
+ def equals(self, activity):
+ if self._activity_id and activity.get_activity_id():
+ return self._activity_id == activity.get_activity_id()
+ if self._xid and activity.get_xid():
+ return self._xid == activity.get_xid()
+ return False
+
def do_set_property(self, pspec, value):
if pspec.name == 'launching':
self._launching = value