Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/PresenceView.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 13:53:10 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 13:53:10 (GMT)
commit95d9b7fe8e7cbde413ef5f937cc1dda2b7fa8813 (patch)
tree733abfdda232625b72d52cc92929fc8d78ff5696 /shell/PresenceView.py
parenta9a65f42dfe4f0ca4eb7c916ec4afc9b3e376c69 (diff)
More work on the chat. Fix terminal api
Diffstat (limited to 'shell/PresenceView.py')
-rw-r--r--shell/PresenceView.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/shell/PresenceView.py b/shell/PresenceView.py
index 0539735..4ecb799 100644
--- a/shell/PresenceView.py
+++ b/shell/PresenceView.py
@@ -110,14 +110,8 @@ class PresenceView(gtk.VBox):
buddy = view.get_model().get_value(aniter, self._MODEL_COL_BUDDY)
if buddy:
chat_service = buddy.get_service_of_type(BuddyChat.SERVICE_TYPE)
- print chat_service
- if chat_service:
- bus = dbus.SessionBus()
- proxy_obj = bus.get_object('com.redhat.Sugar.Chat', '/com/redhat/Sugar/Chat')
- chat_shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.ChatShell')
- chat_shell.open_chat(chat_service.object_path())
- else:
- print 'Could not find buddy chat'
+ activity = self._shell.start_activity('com.redhat.Sugar.ChatActivity')
+ #activity.execute('start', [chat_service.object_path()])
def __buddy_icon_changed_cb(self, buddy):
it = self._get_iter_for_buddy(buddy)