From a5ca5dca316a30bd01d9e97bdcee567aa3460671 Mon Sep 17 00:00:00 2001 From: Daniel Francis Date: Sun, 08 Jul 2012 00:01:33 +0000 Subject: 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 --- (limited to 'activity.py') 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) -- cgit v0.9.1