aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-07 22:22:29 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 16:53:49 +0800
commit52eb24e6e7b012856525f6f09d3c1a941375d383 (patch)
tree08167041abd448ceb4ef7fc5e841e64305e22101 /libempathy-gtk
parent04edfb3dbbdf9a2a4ac6cf2ecafcbd88044ee094 (diff)
downloadgsoc2013-empathy-52eb24e6e7b012856525f6f09d3c1a941375d383.tar
gsoc2013-empathy-52eb24e6e7b012856525f6f09d3c1a941375d383.tar.gz
gsoc2013-empathy-52eb24e6e7b012856525f6f09d3c1a941375d383.tar.bz2
gsoc2013-empathy-52eb24e6e7b012856525f6f09d3c1a941375d383.tar.lz
gsoc2013-empathy-52eb24e6e7b012856525f6f09d3c1a941375d383.tar.xz
gsoc2013-empathy-52eb24e6e7b012856525f6f09d3c1a941375d383.tar.zst
gsoc2013-empathy-52eb24e6e7b012856525f6f09d3c1a941375d383.zip
pass a preferred handler when requesting channels
We want to use Empathy components when possible instead of, say, KDE ones if both are installed (#643863).
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c4
-rw-r--r--libempathy-gtk/empathy-new-call-dialog.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index d1442d816..6bcaa84bc 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -819,8 +819,8 @@ chat_command_msg_internal (EmpathyChat *chat,
data->chat = chat;
data->message = g_strdup (message);
- tp_account_channel_request_ensure_and_observe_channel_async (req, NULL, NULL,
- chat_command_msg_cb, data);
+ tp_account_channel_request_ensure_and_observe_channel_async (req,
+ EMPATHY_CHAT_BUS_NAME, NULL, chat_command_msg_cb, data);
g_object_unref (req);
g_hash_table_unref (request);
diff --git a/libempathy-gtk/empathy-new-call-dialog.c b/libempathy-gtk/empathy-new-call-dialog.c
index 2d35fadec..fbff2770e 100644
--- a/libempathy-gtk/empathy-new-call-dialog.c
+++ b/libempathy-gtk/empathy-new-call-dialog.c
@@ -31,6 +31,7 @@
#include <libempathy/empathy-tp-contact-factory.h>
#include <libempathy/empathy-contact-manager.h>
#include <libempathy/empathy-utils.h>
+#include <libempathy/empathy-request-util.h>
#define DEBUG_FLAG EMPATHY_DEBUG_CONTACT
#include <libempathy/empathy-debug.h>
@@ -108,8 +109,8 @@ call_contact (TpAccount *account,
req = tp_account_channel_request_new (account, request, timestamp);
- tp_account_channel_request_create_channel_async (req, NULL, NULL,
- create_media_channel_cb, NULL);
+ tp_account_channel_request_create_channel_async (req, EMPATHY_AV_BUS_NAME,
+ NULL, create_media_channel_cb, NULL);
g_object_unref (req);
}