aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-08-07 22:40:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-08-07 22:40:51 +0800
commit4ae459cba54d8a8208ff3cfcfaf04d6447bffe55 (patch)
tree8edcb364244cae1f13be4afdb47b5c3b1e7e9bc0 /src
parent2ee684990ffc487d7b37e08a7ffa63fd32f8a77a (diff)
downloadgsoc2013-empathy-4ae459cba54d8a8208ff3cfcfaf04d6447bffe55.tar
gsoc2013-empathy-4ae459cba54d8a8208ff3cfcfaf04d6447bffe55.tar.gz
gsoc2013-empathy-4ae459cba54d8a8208ff3cfcfaf04d6447bffe55.tar.bz2
gsoc2013-empathy-4ae459cba54d8a8208ff3cfcfaf04d6447bffe55.tar.lz
gsoc2013-empathy-4ae459cba54d8a8208ff3cfcfaf04d6447bffe55.tar.xz
gsoc2013-empathy-4ae459cba54d8a8208ff3cfcfaf04d6447bffe55.tar.zst
gsoc2013-empathy-4ae459cba54d8a8208ff3cfcfaf04d6447bffe55.zip
Do not use mission_control_request_channel as we don't use MC's dispatcher anymore. Fixes bug #529084.
svn path=/trunk/; revision=1311
Diffstat (limited to 'src')
-rw-r--r--src/empathy-main-window.c15
-rw-r--r--src/empathy-new-chatroom-dialog.c25
2 files changed, 23 insertions, 17 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index dbba3b46b..e41b3f11e 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -722,6 +722,7 @@ main_window_favorite_chatroom_join (EmpathyChatroom *chatroom)
{
MissionControl *mc;
McAccount *account;
+ TpConnection *connection;
const gchar *room;
mc = empathy_mission_control_new ();
@@ -730,12 +731,14 @@ main_window_favorite_chatroom_join (EmpathyChatroom *chatroom)
DEBUG ("Requesting channel for '%s'", room);
- mission_control_request_channel_with_string_handle (mc,
- account,
- TP_IFACE_CHANNEL_TYPE_TEXT,
- room,
- TP_HANDLE_TYPE_ROOM,
- NULL, NULL);
+ connection = mission_control_get_tpconnection (mc, account, NULL);
+ tp_connection_run_until_ready (connection, TRUE, NULL, NULL);
+ empathy_connection_request_channel (connection, -1,
+ TP_IFACE_CHANNEL_TYPE_TEXT,
+ TP_HANDLE_TYPE_ROOM,
+ room, TRUE,
+ NULL, NULL, NULL, NULL);
+ g_object_unref (connection);
g_object_unref (mc);
}
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 35a9c327e..4a1fb90df 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -487,12 +487,13 @@ new_chatroom_dialog_model_selection_changed (GtkTreeSelection *selection
static void
new_chatroom_dialog_join (EmpathyNewChatroomDialog *dialog)
{
- McAccount *account;
EmpathyAccountChooser *account_chooser;
- MissionControl *mc;
- const gchar *room;
- const gchar *server = NULL;
- gchar *room_name = NULL;
+ McAccount *account;
+ MissionControl *mc;
+ TpConnection *connection;
+ const gchar *room;
+ const gchar *server = NULL;
+ gchar *room_name = NULL;
room = gtk_entry_get_text (GTK_ENTRY (dialog->entry_room));
server = gtk_entry_get_text (GTK_ENTRY (dialog->entry_server));
@@ -509,13 +510,15 @@ new_chatroom_dialog_join (EmpathyNewChatroomDialog *dialog)
DEBUG ("Requesting channel for '%s'", room_name);
mc = empathy_mission_control_new ();
- mission_control_request_channel_with_string_handle (mc,
- account,
- TP_IFACE_CHANNEL_TYPE_TEXT,
- room_name,
- TP_HANDLE_TYPE_ROOM,
- NULL, NULL);
+ connection = mission_control_get_tpconnection (mc, account, NULL);
+ tp_connection_run_until_ready (connection, TRUE, NULL, NULL);
+ empathy_connection_request_channel (connection, -1,
+ TP_IFACE_CHANNEL_TYPE_TEXT,
+ TP_HANDLE_TYPE_ROOM,
+ room_name, TRUE,
+ NULL, NULL, NULL, NULL);
g_free (room_name);
+ g_object_unref (connection);
g_object_unref (mc);
}