Don't present from inside the Activity constructor

This commit is contained in:
Marco Pesenti Gritti 2007-02-24 17:40:18 +01:00
parent db7830b86c
commit 3b7670a364
2 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,6 @@ class Activity(gtk.Window):
self._bus = ActivityService(self)
self.present()
def get_service_name(self):
"""Gets the activity service name."""
return os.environ['SUGAR_BUNDLE_SERVICE_NAME']

View File

@ -61,6 +61,7 @@ class ActivityFactoryService(dbus.service.Object):
def create(self, handle):
activity_handle = activityhandle.create_from_dict(handle)
activity = self._constructor(activity_handle)
activity.present()
self._activities.append(activity)
activity.connect('destroy', self._activity_destroy_cb)