Do not index icons by activity id. Raw X windows does not have one.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user