Present the window only after start/join

This commit is contained in:
Marco Pesenti Gritti 2006-12-20 00:53:27 +01:00
parent d46c922350
commit 1c1fd35541

View File

@ -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())