From ec55d4f9308a0eb65c6ea5de7e9757e9d8b0b70f Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 18 May 2008 14:27:44 +0000 Subject: Improve dispatcher. Fixes bug #465928. svn path=/trunk/; revision=1108 --- libempathy-gtk/empathy-contact-list-view.c | 5 +++-- libempathy-gtk/empathy-contact-menu.c | 7 ++++--- libempathy-gtk/empathy-new-message-dialog.c | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 90598d393..3c4d234b7 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include "empathy-contact-list-view.h" @@ -462,7 +463,7 @@ contact_list_view_row_activated_cb (EmpathyContactListView *view, -1); if (contact) { - empathy_chat_with_contact (contact); + empathy_dispatcher_chat_with_contact (contact); g_object_unref (contact); } } @@ -491,7 +492,7 @@ contact_list_view_voip_activated_cb (EmpathyCellRendererActivatable *cell, -1); if (contact) { - empathy_call_with_contact (contact); + empathy_dispatcher_call_with_contact (contact); g_object_unref (contact); } } diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c index 275729f98..81c94a6db 100644 --- a/libempathy-gtk/empathy-contact-menu.c +++ b/libempathy-gtk/empathy-contact-menu.c @@ -26,8 +26,9 @@ #include #include -#include #include +#include +#include #include "empathy-contact-menu.h" #include "empathy-images.h" @@ -112,7 +113,7 @@ empathy_contact_chat_menu_item_new (EmpathyContact *contact) gtk_widget_show (image); g_signal_connect_swapped (item, "activate", - G_CALLBACK (empathy_chat_with_contact), + G_CALLBACK (empathy_dispatcher_chat_with_contact), contact); return item; @@ -134,7 +135,7 @@ empathy_contact_call_menu_item_new (EmpathyContact *contact) gtk_widget_show (image); g_signal_connect_swapped (item, "activate", - G_CALLBACK (empathy_call_with_contact), + G_CALLBACK (empathy_dispatcher_call_with_contact), contact); return item; diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c index b07f13e21..fc4c0f887 100644 --- a/libempathy-gtk/empathy-new-message-dialog.c +++ b/libempathy-gtk/empathy-new-message-dialog.c @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -67,10 +68,10 @@ new_message_dialog_response_cb (GtkWidget *widget, } if (response == 1) { - empathy_call_with_contact_id (account, id); + empathy_dispatcher_call_with_contact_id (account, id); } else if (response == 2) { - empathy_chat_with_contact_id (account, id); + empathy_dispatcher_chat_with_contact_id (account, id); } g_object_unref (account); -- cgit v1.2.3