diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-05-23 16:01:42 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-05-23 16:01:42 (GMT) |
commit | 5879cc81904ffd09bac1d1c08f54bc0461987028 (patch) | |
tree | c8b78851e0ac75c463e24ff53edb694497a705d8 /sugar/chat/chat.py | |
parent | 8c21c67cf184f4deeb65dca02b2abc9ec00bb733 (diff) |
Fix links in one-to-one chat
Diffstat (limited to 'sugar/chat/chat.py')
-rwxr-xr-x | sugar/chat/chat.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sugar/chat/chat.py b/sugar/chat/chat.py index 53b8337..ad992d5 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): |