Make activity ring wedges represent approximate size of the activity. #2030

This commit is contained in:
Dan Winship
2007-08-03 11:31:21 -04:00
parent f52e55381a
commit 88401d31b4
2 changed files with 95 additions and 5 deletions
+6
View File
@@ -58,6 +58,7 @@ class HomeActivity(gobject.GObject):
self._window = None
self._xid = None
self._pid = None
self._service = None
self._activity_id = activity_id
self._bundle = bundle
@@ -81,6 +82,7 @@ class HomeActivity(gobject.GObject):
self._window = window
self._xid = window.get_xid()
self._pid = window.get_pid()
def get_service(self):
"""Get the activity service
@@ -168,6 +170,10 @@ class HomeActivity(gobject.GObject):
"""
return self._launch_time
def get_pid(self):
"""Returns the activity's PID"""
return self._pid
def equals(self, activity):
if self._activity_id and activity.get_activity_id():
return self._activity_id == activity.get_activity_id()