diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-02-17 21:48:07 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-04-22 18:21:10 +0800 |
commit | 0186792468ddbc9d8282513af441da95abd838a4 (patch) | |
tree | 5cfc06e967bca919ea34943f0664aa45194fbc00 | |
parent | 56337470e94a98a963e978d8b8f97f311cc817b7 (diff) | |
download | gsoc2013-empathy-0186792468ddbc9d8282513af441da95abd838a4.tar gsoc2013-empathy-0186792468ddbc9d8282513af441da95abd838a4.tar.gz gsoc2013-empathy-0186792468ddbc9d8282513af441da95abd838a4.tar.bz2 gsoc2013-empathy-0186792468ddbc9d8282513af441da95abd838a4.tar.lz gsoc2013-empathy-0186792468ddbc9d8282513af441da95abd838a4.tar.xz gsoc2013-empathy-0186792468ddbc9d8282513af441da95abd838a4.tar.zst gsoc2013-empathy-0186792468ddbc9d8282513af441da95abd838a4.zip |
Port empathy.c to new API
-rw-r--r-- | src/empathy.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/empathy.c b/src/empathy.c index a2115a6cf..817b9bc37 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -42,6 +42,7 @@ #include <libempathy/empathy-utils.h> #include <libempathy/empathy-call-factory.h> #include <libempathy/empathy-chatroom-manager.h> +#include <libempathy/empathy-account-manager.h> #include <libempathy/empathy-dispatcher.h> #include <libempathy/empathy-dispatch-operation.h> #include <libempathy/empathy-log-manager.h> @@ -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) { |