Do not index icons by activity id. Raw X windows does not have one.

This commit is contained in:
Marco Pesenti Gritti
2007-06-01 14:19:14 +02:00
parent cd3efeba49
commit d4bd7a5d05
2 changed files with 22 additions and 10 deletions
+9
View File
@@ -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