Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ActivityHost.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 10:57:42 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 10:57:42 (GMT)
commit7e85c5160ec0a04cb7434cd53368a7c5ba8ce0fa (patch)
tree13a0147daa22113625ce33818b1d938d893970da /shell/ActivityHost.py
parente4c4e866a5c99d81f7fa0a0972311a604c6f1af2 (diff)
Setup the activity from the shell process, through dbus,
this simplifies things a lot...
Diffstat (limited to 'shell/ActivityHost.py')
-rw-r--r--shell/ActivityHost.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/ActivityHost.py b/shell/ActivityHost.py
index 540d1e2..f2287c4 100644
--- a/shell/ActivityHost.py
+++ b/shell/ActivityHost.py
@@ -10,11 +10,10 @@ class ActivityHost:
self._xid = xid
bus = dbus.SessionBus()
- service = Activity.ACTIVITY_SERVICE_NAME + "%s" % xid
path = Activity.ACTIVITY_SERVICE_PATH + "/%s" % xid
- proxy_obj = bus.get_object(service, path)
+ proxy_obj = bus.get_object(Activity.ACTIVITY_SERVICE_NAME, path)
- self._activity = dbus.Interface(proxy_obj, 'com.redhat.Sugar.Activity')
+ self._activity = dbus.Interface(proxy_obj, Activity.ACTIVITY_INTERFACE)
self._id = self._activity.get_id()
self._default_type = self._activity.get_default_type()
self._window = gtk.gdk.window_foreign_new(xid)