aboutsummaryrefslogtreecommitdiffstats
path: root/tests/interactive
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-11 21:08:39 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-11 21:08:39 +0800
commitfabcd2ec298f6773112c6fad57238c6f7bc2d77e (patch)
tree0e4e55a3727f983f238f824c139b5548e3088d80 /tests/interactive
parent17624f70285d74ed77f27d62f452095589512310 (diff)
downloadgsoc2013-empathy-fabcd2ec298f6773112c6fad57238c6f7bc2d77e.tar
gsoc2013-empathy-fabcd2ec298f6773112c6fad57238c6f7bc2d77e.tar.gz
gsoc2013-empathy-fabcd2ec298f6773112c6fad57238c6f7bc2d77e.tar.bz2
gsoc2013-empathy-fabcd2ec298f6773112c6fad57238c6f7bc2d77e.tar.lz
gsoc2013-empathy-fabcd2ec298f6773112c6fad57238c6f7bc2d77e.tar.xz
gsoc2013-empathy-fabcd2ec298f6773112c6fad57238c6f7bc2d77e.tar.zst
gsoc2013-empathy-fabcd2ec298f6773112c6fad57238c6f7bc2d77e.zip
re-implement empathy_dispatcher_chat_with_contact using empathy_dispatcher_chat_with_contact_id
We don't use the callback arg anyway.
Diffstat (limited to 'tests/interactive')
-rw-r--r--tests/interactive/empetit.c22
1 files changed, 1 insertions, 21 deletions
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
@@ -12,25 +12,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);
}