From 23d90f884b28cabd3b9b986998c118314a9238f9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 7 Mar 2011 14:02:52 +0100 Subject: rename empathy-dispatcher to empathy-request-util We don't have EmpathyDispatcher any more so this file just contains some utility functions now. --- libempathy-gtk/empathy-chat.c | 8 ++++---- libempathy-gtk/empathy-contact-list-view.c | 4 ++-- libempathy-gtk/empathy-contact-menu.c | 4 ++-- libempathy-gtk/empathy-contact-selector-dialog.c | 1 - libempathy-gtk/empathy-individual-menu.c | 4 ++-- libempathy-gtk/empathy-individual-view.c | 4 ++-- libempathy-gtk/empathy-new-message-dialog.c | 4 ++-- libempathy-gtk/empathy-share-my-desktop.c | 2 -- libempathy-gtk/empathy-ui-utils.c | 1 - 9 files changed, 14 insertions(+), 18 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index b696963ac..d1442d816 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include #include #include @@ -249,11 +249,11 @@ account_reconnected (EmpathyChat *chat, * https://bugs.freedesktop.org/show_bug.cgi?id=13422 */ switch (priv->handle_type) { case TP_HANDLE_TYPE_CONTACT: - empathy_dispatcher_chat_with_contact_id ( + empathy_chat_with_contact_id ( account, priv->id, TP_USER_ACTION_TIME_NOT_USER_ACTION); break; case TP_HANDLE_TYPE_ROOM: - empathy_dispatcher_join_muc (account, priv->id, + empathy_join_muc (account, priv->id, TP_USER_ACTION_TIME_NOT_USER_ACTION); break; case TP_HANDLE_TYPE_NONE: @@ -739,7 +739,7 @@ empathy_chat_join_muc (EmpathyChat *chat, { EmpathyChatPriv *priv = GET_PRIV (chat); - empathy_dispatcher_join_muc (priv->account, room, + empathy_join_muc (priv->account, room, gtk_get_current_event_time ()); } diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 9377fdb56..608611a02 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include "empathy-contact-list-view.h" @@ -906,7 +906,7 @@ contact_list_view_row_activated (GtkTreeView *view, if (contact) { DEBUG ("Starting a chat"); - empathy_dispatcher_chat_with_contact (contact, + empathy_chat_with_contact (contact, gtk_get_current_event_time ()); g_object_unref (contact); } diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c index 28725cc4a..441b69212 100644 --- a/libempathy-gtk/empathy-contact-menu.c +++ b/libempathy-gtk/empathy-contact-menu.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include @@ -311,7 +311,7 @@ static void empathy_contact_chat_menu_item_activated (GtkMenuItem *item, EmpathyContact *contact) { - empathy_dispatcher_chat_with_contact (contact, gtk_get_current_event_time ()); + empathy_chat_with_contact (contact, gtk_get_current_event_time ()); } GtkWidget * diff --git a/libempathy-gtk/empathy-contact-selector-dialog.c b/libempathy-gtk/empathy-contact-selector-dialog.c index 3ed7f30e5..d5e533aeb 100644 --- a/libempathy-gtk/empathy-contact-selector-dialog.c +++ b/libempathy-gtk/empathy-contact-selector-dialog.c @@ -30,7 +30,6 @@ #include #include -#include #include #define DEBUG_FLAG EMPATHY_DEBUG_CONTACT diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index 5995f2eb9..3e404c39f 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include #include @@ -499,7 +499,7 @@ empathy_individual_chat_menu_item_activated (GtkMenuItem *item, { g_return_if_fail (EMPATHY_IS_CONTACT (contact)); - empathy_dispatcher_chat_with_contact (contact, gtk_get_current_event_time ()); + empathy_chat_with_contact (contact, gtk_get_current_event_time ()); } GtkWidget * diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index f72f6e644..c66fda6b8 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -40,7 +40,7 @@ #include #include -#include +#include #include #include "empathy-individual-view.h" @@ -1019,7 +1019,7 @@ individual_view_row_activated (GtkTreeView *view, { DEBUG ("Starting a chat"); - empathy_dispatcher_chat_with_contact (contact, + empathy_chat_with_contact (contact, gtk_get_current_event_time ()); } diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c index 4747dfbb9..b9edb93e7 100644 --- a/libempathy-gtk/empathy-new-message-dialog.c +++ b/libempathy-gtk/empathy-new-message-dialog.c @@ -30,7 +30,7 @@ #include #include -#include +#include #include #define DEBUG_FLAG EMPATHY_DEBUG_CONTACT @@ -75,7 +75,7 @@ empathy_new_message_dialog_response (GtkDialog *dialog, int response_id) if (EMP_STR_EMPTY (contact_id) || account == NULL) goto out; - empathy_dispatcher_chat_with_contact_id (account, contact_id, + empathy_chat_with_contact_id (account, contact_id, gtk_get_current_event_time ()); out: diff --git a/libempathy-gtk/empathy-share-my-desktop.c b/libempathy-gtk/empathy-share-my-desktop.c index 01a885ada..bc9e9218c 100644 --- a/libempathy-gtk/empathy-share-my-desktop.c +++ b/libempathy-gtk/empathy-share-my-desktop.c @@ -27,8 +27,6 @@ #include #include -#include - #define DEBUG_FLAG EMPATHY_DEBUG_SHARE_DESKTOP #include diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index eb5578e4c..8dbf6afd9 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -49,7 +49,6 @@ #define DEBUG_FLAG EMPATHY_DEBUG_OTHER #include #include -#include #include void -- cgit v1.2.3