[empathy] pass a preferred handler when requesting channels
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] pass a preferred handler when requesting channels
- Date: Thu, 17 Mar 2011 08:55:04 +0000 (UTC)
commit 52eb24e6e7b012856525f6f09d3c1a941375d383
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Mar 7 15:22:29 2011 +0100
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).
libempathy-gtk/empathy-chat.c | 4 ++--
libempathy-gtk/empathy-new-call-dialog.c | 5 +++--
libempathy/empathy-request-util.c | 8 ++++----
libempathy/empathy-tp-chat.c | 5 +++--
libempathy/empathy-utils.c | 6 +++---
5 files changed, 15 insertions(+), 13 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index d1442d8..6bcaa84 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 2d35fad..fbff277 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);
}
diff --git a/libempathy/empathy-request-util.c b/libempathy/empathy-request-util.c
index c912cc1..ea885da 100644
--- a/libempathy/empathy-request-util.c
+++ b/libempathy/empathy-request-util.c
@@ -75,8 +75,8 @@ empathy_chat_with_contact_id (TpAccount *account,
req = tp_account_channel_request_new (account, request, timestamp);
- tp_account_channel_request_ensure_channel_async (req, NULL, NULL,
- ensure_text_channel_cb, NULL);
+ tp_account_channel_request_ensure_channel_async (req, EMPATHY_CHAT_BUS_NAME,
+ NULL, ensure_text_channel_cb, NULL);
g_hash_table_unref (request);
g_object_unref (req);
@@ -99,8 +99,8 @@ empathy_join_muc (TpAccount *account,
req = tp_account_channel_request_new (account, request, timestamp);
- tp_account_channel_request_ensure_channel_async (req, NULL, NULL,
- ensure_text_channel_cb, NULL);
+ tp_account_channel_request_ensure_channel_async (req, EMPATHY_CHAT_BUS_NAME,
+ NULL, ensure_text_channel_cb, NULL);
g_hash_table_unref (request);
g_object_unref (req);
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index a907799..86aca44 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -31,6 +31,7 @@
#include "empathy-tp-contact-factory.h"
#include "empathy-contact-list.h"
#include "empathy-marshal.h"
+#include "empathy-request-util.h"
#include "empathy-time.h"
#include "empathy-utils.h"
@@ -170,8 +171,8 @@ tp_chat_add (EmpathyContactList *list,
/* Although this is a MUC, it's anonymous, so CreateChannel is
* valid. */
- tp_account_channel_request_create_channel_async (req, NULL, NULL,
- create_conference_cb, NULL);
+ tp_account_channel_request_create_channel_async (req, EMPATHY_CHAT_BUS_NAME,
+ NULL, create_conference_cb, NULL);
g_object_unref (req);
g_hash_table_unref (props);
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 86c0f20..663c500 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -49,6 +49,7 @@
#include "empathy-contact-manager.h"
#include "empathy-individual-manager.h"
#include "empathy-presence-manager.h"
+#include "empathy-request-util.h"
#include "empathy-tp-contact-factory.h"
#include <extensions/extensions.h>
@@ -288,9 +289,8 @@ empathy_call_new_with_streams (EmpathyContact *contact,
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_hash_table_unref (request);
g_object_unref (req);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]