Don't present from inside the Activity constructor
This commit is contained in:
parent
db7830b86c
commit
3b7670a364
@ -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']
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user