Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-07-08 00:01:33 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-07-09 18:10:13 (GMT)
commita5ca5dca316a30bd01d9e97bdcee567aa3460671 (patch)
treef2951c06bf0fb34914ac067756d94f9a9a774289 /activity.py
parent10f4834636734b4a326b718a0cd729ba834e1358 (diff)
Removing Hippo Canvas from chat mode
Now the activity hasn't got HippoCanvas and I'm ready to port it to Gtk3! A little comment, I added de _share function because I forgot it at the time to remove the early toolkit modules, and it appeared in the log when I tried to share the activity. Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index a3f01ac..d4f0e2a 100644
--- a/activity.py
+++ b/activity.py
@@ -203,6 +203,18 @@ class SpeakActivity(SharedActivity):
toolbox.show_all()
self.toolbar_box = toolbox
+ def _share(self, tube_conn, initiator):
+ logging.debug('Activity._share state=%s' % self.__state)
+
+ if self.__state == _NEW_INSTANCE:
+ self.__postponed_share.append((tube_conn, initiator))
+ self.__state = _PRE_INSTANCE
+ elif self.__state == _PRE_INSTANCE:
+ self.__postponed_share.append((tube_conn, initiator))
+ self.__instance()
+ elif self.__state == _POST_INSTANCE:
+ self.share_instance(tube_conn, initiator)
+
def set_cursor(self, cursor):
if not isinstance(cursor, gtk.gdk.Cursor):
cursor = CursorFactory().get_cursor(cursor)