From b2fc0d731485c739eb19bf7e323109fdade05ff4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 16 Jun 2006 16:44:03 -0400 Subject: [PATCH] Get chat to show again --- sugar/shell/shell.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sugar/shell/shell.py b/sugar/shell/shell.py index b7d9f608..4e7fe6f0 100755 --- a/sugar/shell/shell.py +++ b/sugar/shell/shell.py @@ -79,7 +79,7 @@ class ActivityHost(dbus.service.Object): def _create_chat(self): self._group_chat = GroupChat() - def get_group_chat(self): + def get_chat(self): return self._group_chat def __close_button_clicked_reply_cb(self): @@ -290,12 +290,17 @@ class ActivityContainer(dbus.service.Object): pass def set_current_activity(self, activity): + print 'current activity' + self.current_activity = activity self._presence_window.set_activity(activity) - self._chat_window.get_child().unparent() + + host_chat = self._chat_window.get_child() + if host_chat: + host_chat.unparent() host_chat = activity.get_chat() - self._chat_window.add() + self._chat_window.add(host_chat) host_chat.show() def notebook_tab_changed(self, notebook, page, page_number):