[empathy] empathy_dispatcher_join_muc: remove callback arg
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_dispatcher_join_muc: remove callback arg
- Date: Wed, 7 Jul 2010 08:03:21 +0000 (UTC)
commit 26110eb9baef0ef58e8daebff9c3373485da3e50
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jul 6 16:18:39 2010 +0200
empathy_dispatcher_join_muc: remove callback arg
We always want to let the text handler handle the channel.
libempathy-gtk/empathy-chat.c | 6 ++----
libempathy/empathy-dispatcher.c | 6 ++----
libempathy/empathy-dispatcher.h | 4 +---
src/empathy-chat-manager.c | 2 +-
src/empathy-main-window.c | 2 +-
src/empathy-new-chatroom-dialog.c | 2 +-
src/empathy.c | 5 ++---
7 files changed, 10 insertions(+), 17 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index ece8e16..9c5fcc5 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -250,8 +250,7 @@ reconnected_connection_ready_cb (TpConnection *connection,
break;
case TP_HANDLE_TYPE_ROOM:
empathy_dispatcher_join_muc (connection,
- priv->id, EMPATHY_DISPATCHER_NON_USER_ACTION,
- NULL, NULL);
+ priv->id, EMPATHY_DISPATCHER_NON_USER_ACTION);
break;
default:
g_assert_not_reached ();
@@ -710,8 +709,7 @@ chat_command_join (EmpathyChat *chat,
connection = empathy_tp_chat_get_connection (priv->tp_chat);
empathy_dispatcher_join_muc (connection, rooms[i],
- gtk_get_current_event_time (),
- NULL, NULL);
+ gtk_get_current_event_time ());
}
i++;
}
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 778d3be..82ae343 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -1360,9 +1360,7 @@ dispatcher_request_handles_cb (TpConnection *connection,
void
empathy_dispatcher_join_muc (TpConnection *connection,
const gchar *roomname,
- gint64 timestamp,
- EmpathyDispatcherRequestCb *callback,
- gpointer user_data)
+ gint64 timestamp)
{
EmpathyDispatcher *self;
EmpathyDispatcherPriv *priv;
@@ -1383,7 +1381,7 @@ empathy_dispatcher_join_muc (TpConnection *connection,
/* Don't know the room handle yet */
request_data = new_dispatcher_request_data (self, connection,
TP_IFACE_CHANNEL_TYPE_TEXT, TP_HANDLE_TYPE_ROOM, 0, NULL, timestamp,
- NULL, callback, user_data);
+ NULL, NULL, NULL);
request_data->should_ensure = TRUE;
connection_data->outstanding_requests = g_list_prepend
diff --git a/libempathy/empathy-dispatcher.h b/libempathy/empathy-dispatcher.h
index d1dec07..93adb06 100644
--- a/libempathy/empathy-dispatcher.h
+++ b/libempathy/empathy-dispatcher.h
@@ -94,9 +94,7 @@ void empathy_dispatcher_send_file_to_contact (EmpathyContact *contact,
/* Request a muc channel */
void empathy_dispatcher_join_muc (TpConnection *connection,
const gchar *roomname,
- gint64 timestamp,
- EmpathyDispatcherRequestCb *callback,
- gpointer user_data);
+ gint64 timestamp);
void empathy_dispatcher_find_requestable_channel_classes_async
(EmpathyDispatcher *dispatcher, TpConnection *connection,
diff --git a/src/empathy-chat-manager.c b/src/empathy-chat-manager.c
index 1b10303..0e8a335 100644
--- a/src/empathy-chat-manager.c
+++ b/src/empathy-chat-manager.c
@@ -379,7 +379,7 @@ connection_ready_cb (TpConnection *connection,
{
if (data->room)
empathy_dispatcher_join_muc (connection, data->id,
- EMPATHY_DISPATCHER_NON_USER_ACTION, NULL, NULL);
+ EMPATHY_DISPATCHER_NON_USER_ACTION);
else
empathy_dispatcher_chat_with_contact_id (connection, data->id,
EMPATHY_DISPATCHER_NON_USER_ACTION, NULL, NULL);
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 5656124..eba94a5 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -899,7 +899,7 @@ join_chatroom (EmpathyChatroom *chatroom,
room = empathy_chatroom_get_room (chatroom);
DEBUG ("Requesting channel for '%s'", room);
- empathy_dispatcher_join_muc (connection, room, timestamp, NULL, NULL);
+ empathy_dispatcher_join_muc (connection, room, timestamp);
}
typedef struct
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 8d954aa..88003e9 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -735,7 +735,7 @@ new_chatroom_dialog_join (EmpathyNewChatroomDialog *dialog)
DEBUG ("Requesting channel for '%s'", room_name);
empathy_dispatcher_join_muc (connection, room_name,
- gtk_get_current_event_time (), NULL, NULL);
+ gtk_get_current_event_time ());
g_free (room_name);
}
diff --git a/src/empathy.c b/src/empathy.c
index 81ff77c..0910992 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -361,8 +361,7 @@ account_status_changed_cb (TpAccount *account,
return;
empathy_dispatcher_join_muc (conn,
- empathy_chatroom_get_room (room), EMPATHY_DISPATCHER_NON_USER_ACTION,
- NULL, NULL);
+ empathy_chatroom_get_room (room), EMPATHY_DISPATCHER_NON_USER_ACTION);
}
static void
@@ -411,7 +410,7 @@ account_manager_chatroom_ready_cb (GObject *source_object,
{
empathy_dispatcher_join_muc (conn,
empathy_chatroom_get_room (room),
- EMPATHY_DISPATCHER_NON_USER_ACTION, NULL, NULL);
+ EMPATHY_DISPATCHER_NON_USER_ACTION);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]