From: Xavier Claessens Date: Tue, 17 Feb 2009 13:48:07 +0000 (+0100) Subject: Port empathy.c to new API X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=0186792468ddbc9d8282513af441da95abd838a4 Port empathy.c to new API --- diff --git a/src/empathy.c b/src/empathy.c index a2115a6c..817b9bc3 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -96,10 +97,16 @@ dispatch_cb (EmpathyDispatcher *dispatcher, } if (id) { + EmpathyAccountManager *manager; + TpConnection *connection; McAccount *account; - account = empathy_tp_chat_get_account (tp_chat); + manager = empathy_account_manager_dup_singleton (); + connection = empathy_tp_chat_get_connection (tp_chat); + account = empathy_account_manager_get_account (manager, + connection); chat = empathy_chat_window_find_chat (account, id); + g_object_unref (manager); } if (chat) {