empathy r1311 - in trunk: libempathy-gtk src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1311 - in trunk: libempathy-gtk src
- Date: Thu, 7 Aug 2008 14:40:51 +0000 (UTC)
Author: xclaesse
Date: Thu Aug 7 14:40:51 2008
New Revision: 1311
URL: http://svn.gnome.org/viewvc/empathy?rev=1311&view=rev
Log:
Do not use mission_control_request_channel as we don't use MC's dispatcher anymore. Fixes bug #529084.
Modified:
trunk/libempathy-gtk/empathy-chat.c
trunk/src/empathy-main-window.c
trunk/src/empathy-new-chatroom-dialog.c
Modified: trunk/libempathy-gtk/empathy-chat.c
==============================================================================
--- trunk/libempathy-gtk/empathy-chat.c (original)
+++ trunk/libempathy-gtk/empathy-chat.c Thu Aug 7 14:40:51 2008
@@ -179,13 +179,17 @@
if (status == TP_CONNECTION_STATUS_CONNECTED && !priv->tp_chat &&
empathy_account_equal (account, priv->account) &&
priv->handle_type != TP_HANDLE_TYPE_NONE) {
+ TpConnection *connection;
+
DEBUG ("Account reconnected, request a new Text channel");
- mission_control_request_channel_with_string_handle (mc,
- priv->account,
- TP_IFACE_CHANNEL_TYPE_TEXT,
- priv->id,
- priv->handle_type,
- NULL, NULL);
+ connection = mission_control_get_tpconnection (mc, account, NULL);
+ tp_connection_run_until_ready (connection, FALSE, NULL, NULL);
+ empathy_connection_request_channel (connection, -1,
+ TP_IFACE_CHANNEL_TYPE_TEXT,
+ priv->handle_type,
+ priv->id, TRUE,
+ NULL, NULL, NULL, NULL);
+ g_object_unref (connection);
}
g_object_unref (account);
Modified: trunk/src/empathy-main-window.c
==============================================================================
--- trunk/src/empathy-main-window.c (original)
+++ trunk/src/empathy-main-window.c Thu Aug 7 14:40:51 2008
@@ -722,6 +722,7 @@
{
MissionControl *mc;
McAccount *account;
+ TpConnection *connection;
const gchar *room;
mc = empathy_mission_control_new ();
@@ -730,12 +731,14 @@
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);
}
Modified: trunk/src/empathy-new-chatroom-dialog.c
==============================================================================
--- trunk/src/empathy-new-chatroom-dialog.c (original)
+++ trunk/src/empathy-new-chatroom-dialog.c Thu Aug 7 14:40:51 2008
@@ -487,12 +487,13 @@
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 @@
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]