From fabcd2ec298f6773112c6fad57238c6f7bc2d77e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 11 Aug 2010 15:08:39 +0200 Subject: re-implement empathy_dispatcher_chat_with_contact using empathy_dispatcher_chat_with_contact_id We don't use the callback arg anyway. --- tests/interactive/empetit.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'tests/interactive') diff --git a/tests/interactive/empetit.c b/tests/interactive/empetit.c index 7bcaf03ee..3ed5998ac 100644 --- a/tests/interactive/empetit.c +++ b/tests/interactive/empetit.c @@ -11,25 +11,6 @@ static GtkWidget *window = NULL; -static void -chat_cb (EmpathyDispatchOperation *dispatch, - const GError *error, - gpointer user_data) -{ - GtkWidget *dialog; - - if (error != NULL) - { - dialog = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, - GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", - error->message ? error->message : "No error message"); - - gtk_dialog_run (GTK_DIALOG (dialog)); - } - - gtk_widget_destroy (window); -} - static void clicked_cb (GtkButton *button, gpointer data) @@ -42,8 +23,7 @@ clicked_cb (GtkButton *button, if (!contact) return; - empathy_dispatcher_chat_with_contact (contact, gtk_get_current_event_time (), - chat_cb, NULL); + empathy_dispatcher_chat_with_contact (contact, gtk_get_current_event_time ()); g_object_unref (contact); } -- cgit v1.2.3