From 1c1fd3554119fa86359dfcd52f8fc0d2feb38a2c Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 19 Dec 2006 23:53:27 +0000 Subject: Present the window only after start/join --- (limited to 'sugar') diff --git a/sugar/activity/Activity.py b/sugar/activity/Activity.py index a9ce024..61b1cde 100644 --- a/sugar/activity/Activity.py +++ b/sugar/activity/Activity.py @@ -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()) -- cgit v0.9.1