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