Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/groupthink
diff options
context:
space:
mode:
authorNathaniel Theis <natetheis@gmail.com>2010-11-25 06:24:19 (GMT)
committer Nathaniel Theis <natetheis@gmail.com>2010-11-25 06:24:19 (GMT)
commit96aa1ce7a9d1fde80908e5eed15fbcf62a006da6 (patch)
treec593a2c37b943c08b2023533522ba25b6061810d /groupthink
parent202b4ffc5ecc0ffae0acf4374c917012fcfb5cd3 (diff)
Added copy-paste toolbars, changed to new-style toolbars
Diffstat (limited to 'groupthink')
-rw-r--r--groupthink/sugar_tools.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/groupthink/sugar_tools.py b/groupthink/sugar_tools.py
index 0292a0b..d68b616 100644
--- a/groupthink/sugar_tools.py
+++ b/groupthink/sugar_tools.py
@@ -17,7 +17,9 @@
import logging
import telepathy
-from sugar.activity.activity import Activity, ActivityToolbox
+from sugar.activity.activity import Activity
+from sugar.graphics.toolbarbox import ToolbarBox
+
from sugar.presence import presenceservice
from sugar.presence.tubeconn import TubeConnection
@@ -59,7 +61,6 @@ class GroupActivity(Activity):
self._handle = handle
##gobject.threads_init()
-
self._sharing_completed = not self._shared_activity
self._readfile_completed = not handle.object_id
if self._shared_activity:
@@ -70,7 +71,7 @@ class GroupActivity(Activity):
self.message = self.message_preparing
# top toolbar with share and close buttons:
- toolbox = ActivityToolbox(self)
+ toolbox = ToolbarBox(self)
self.set_toolbox(toolbox)
toolbox.show()
@@ -96,7 +97,8 @@ class GroupActivity(Activity):
# that contains all state in the system. Everything else is stateless.
# self.cloud has to be defined before the call to self.set_canvas, because
# set_canvas can trigger almost anything, including pending calls to read_file,
- # which relies on self.cloud.
+ # which relies on self.cloud. self._initialize_display()
+
# get the Presence Service
self.pservice = presenceservice.get_instance()
@@ -117,6 +119,7 @@ class GroupActivity(Activity):
self.connect("notify::active", self._active_cb)
if not self._readfile_completed:
+ self._initialize_display()
self.read_file(self._jobject.file_path)
elif not self._shared_activity:
gobject.idle_add(self._initialize_cleanstart)