From 5879cc81904ffd09bac1d1c08f54bc0461987028 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 23 May 2006 12:01:42 -0400 Subject: [PATCH] Fix links in one-to-one chat --- sugar/chat/chat.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sugar/chat/chat.py b/sugar/chat/chat.py index 53b8337f..ad992d51 100755 --- a/sugar/chat/chat.py +++ b/sugar/chat/chat.py @@ -45,6 +45,10 @@ class Chat(activity.Activity): self._emt_popup = None + bus = dbus.SessionBus() + proxy_obj = bus.get_object('com.redhat.Sugar.Browser', '/com/redhat/Sugar/Browser') + self._browser_shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.BrowserShell') + def activity_on_connected_to_shell(self): self.activity_set_tab_text(self._act_name) self._plug = self.activity_get_gtk_plug() @@ -491,10 +495,6 @@ class GroupChat(Chat): self._act_name = "Chat" self._chats = {} - bus = dbus.SessionBus() - proxy_obj = bus.get_object('com.redhat.Sugar.Browser', '/com/redhat/Sugar/Browser') - self._browser_shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.BrowserShell') - Chat.__init__(self, self) def get_group(self):