Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-12-19 23:53:27 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-12-19 23:53:27 (GMT)
commit1c1fd3554119fa86359dfcd52f8fc0d2feb38a2c (patch)
tree265873d93911846647b2b15aada0e6819ff172e5 /sugar
parentd46c9223507be8283bd686ba786ae74f4b3e6e78 (diff)
Present the window only after start/join
Diffstat (limited to 'sugar')
-rw-r--r--sugar/activity/Activity.py5
1 files changed, 4 insertions, 1 deletions
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())