aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-09 05:01:30 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-09 05:14:12 +0800
commit4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188 (patch)
tree8788897a71fa26d5b27d2e91c04e8c0b72e612a1 /tests
parent63dab7ab2d6a65e26c758697e0ab2f7614474c79 (diff)
downloadgsoc2013-empathy-4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188.tar
gsoc2013-empathy-4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188.tar.gz
gsoc2013-empathy-4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188.tar.bz2
gsoc2013-empathy-4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188.tar.lz
gsoc2013-empathy-4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188.tar.xz
gsoc2013-empathy-4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188.tar.zst
gsoc2013-empathy-4b6b82782e5a085ebc7c7e4f0ae5ab06c959a188.zip
remove empetit
It used to test EmpathyContactSelector which is going away. https://bugzilla.gnome.org/show_bug.cgi?id=629517
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive/Makefile.am2
-rw-r--r--tests/interactive/empetit.c69
2 files changed, 0 insertions, 71 deletions
diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am
index bf2e83929..e850d25a4 100644
--- a/tests/interactive/Makefile.am
+++ b/tests/interactive/Makefile.am
@@ -16,7 +16,6 @@ LDADD = \
noinst_PROGRAMS = \
contact-manager \
empathy-logs \
- empetit \
test-empathy-account-assistant \
test-empathy-contact-blocking-dialog \
test-empathy-presence-chooser \
@@ -26,7 +25,6 @@ noinst_PROGRAMS = \
contact_manager_SOURCES = contact-manager.c
empathy_logs_SOURCES = empathy-logs.c
-empetit_SOURCES = empetit.c
test_empathy_contact_blocking_dialog_SOURCES = test-empathy-contact-blocking-dialog.c
test_empathy_presence_chooser_SOURCES = test-empathy-presence-chooser.c
test_empathy_status_preset_dialog_SOURCES = test-empathy-status-preset-dialog.c
diff --git a/tests/interactive/empetit.c b/tests/interactive/empetit.c
deleted file mode 100644
index f3957dbf9..000000000
--- a/tests/interactive/empetit.c
+++ /dev/null
@@ -1,69 +0,0 @@
-#include "config.h"
-
-#include <gtk/gtk.h>
-
-#include <libempathy/empathy-contact-manager.h>
-#include <libempathy/empathy-request-util.h>
-
-#include <libempathy-gtk/empathy-ui-utils.h>
-#include <libempathy-gtk/empathy-contact-list-store.h>
-#include <libempathy-gtk/empathy-contact-selector.h>
-
-static GtkWidget *window = NULL;
-
-static void
-clicked_cb (GtkButton *button,
- gpointer data)
-{
- EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (data);
- EmpathyContact *contact;
-
- contact = empathy_contact_selector_dup_selected (selector);
-
- if (!contact)
- return;
-
- empathy_chat_with_contact (contact, gtk_get_current_event_time ());
-
- g_object_unref (contact);
-}
-
-int main (int argc,
- char *argv[])
-{
- EmpathyContactManager *manager;
- GtkWidget *vbox, *button, *selector;
-
- gtk_init (&argc, &argv);
-
- empathy_gtk_init ();
-
- manager = empathy_contact_manager_dup_singleton ();
- selector = empathy_contact_selector_new (EMPATHY_CONTACT_LIST (manager));
-
- empathy_contact_selector_set_visible (EMPATHY_CONTACT_SELECTOR (selector),
- (EmpathyContactSelectorFilterFunc) empathy_contact_can_send_files, NULL);
-
- vbox = gtk_vbox_new (FALSE, 2);
-
- gtk_box_pack_start (GTK_BOX (vbox), selector, FALSE, FALSE, 5);
-
- button = gtk_button_new_with_label ("Chat");
- g_signal_connect (G_OBJECT (button), "clicked",
- G_CALLBACK (clicked_cb), (gpointer) selector);
- gtk_box_pack_start(GTK_BOX (vbox), button, FALSE, FALSE, 5);
-
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_signal_connect (G_OBJECT (window), "destroy",
- gtk_main_quit, NULL);
- gtk_window_set_title (GTK_WINDOW (window),"Empetit");
- gtk_container_set_border_width (GTK_CONTAINER (window), 5);
- gtk_container_add (GTK_CONTAINER (window), vbox);
- gtk_widget_show_all (window);
-
- gtk_main ();
-
- g_object_unref (manager);
-
- return 0;
-}