Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model
diff options
context:
space:
mode:
authorDan Winship <dwinship@redhat.com>2007-08-03 15:31:21 (GMT)
committer Dan Winship <dwinship@redhat.com>2007-08-03 15:31:21 (GMT)
commit88401d31b4fb53d1b82c76f978907e2d40ae552f (patch)
tree5a5d0d2a0910c76a26fdd8043dfe107d766179e1 /shell/model
parentf52e55381a9a57b9f08e7f28a0bf5f4ffae104d2 (diff)
Make activity ring wedges represent approximate size of the activity. #2030
Diffstat (limited to 'shell/model')
-rw-r--r--shell/model/homeactivity.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/model/homeactivity.py b/shell/model/homeactivity.py
index e5e00cd..c45e5c7 100644
--- a/shell/model/homeactivity.py
+++ b/shell/model/homeactivity.py
@@ -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()