Present the window only after start/join
This commit is contained in:
parent
d46c922350
commit
1c1fd35541
@ -102,7 +102,7 @@ class Activity(gtk.Window):
|
||||
self._service = None
|
||||
self._pservice = PresenceService.get_instance()
|
||||
|
||||
self.present()
|
||||
self.realize()
|
||||
|
||||
group = gtk.Window()
|
||||
group.realize()
|
||||
@ -113,6 +113,7 @@ class Activity(gtk.Window):
|
||||
def start(self):
|
||||
"""Start the activity."""
|
||||
self._activity_id = sugar.util.unique_id()
|
||||
self.present()
|
||||
|
||||
def get_type(self):
|
||||
"""Gets the activity type."""
|
||||
@ -149,6 +150,8 @@ class Activity(gtk.Window):
|
||||
else:
|
||||
logging.error('Cannot join the activity')
|
||||
|
||||
self.present()
|
||||
|
||||
def share(self):
|
||||
"""Share the activity on the network."""
|
||||
logging.debug('Share activity %s on the network.' % self.get_id())
|
||||
|
Loading…
Reference in New Issue
Block a user