Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model/homeactivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/model/homeactivity.py')
-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()