aboutsummaryrefslogtreecommitdiffstats
path: root/tests/contact-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-27 23:22:55 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-29 17:38:31 +0800
commit4c2eb652ef61dd0f5ccac27e47f261417793aa73 (patch)
tree1883254e26335fdd02a70f3e18c120db4ea7fc5b /tests/contact-manager.c
parentfb12577193262ad17ef2fc49d2324a7b23458610 (diff)
downloadgsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.gz
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.bz2
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.lz
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.xz
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.zst
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.zip
move test app needing user interaction to interactive/
tests/ should be used only for automatic unit tests.
Diffstat (limited to 'tests/contact-manager.c')
-rw-r--r--tests/contact-manager.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/contact-manager.c b/tests/contact-manager.c
deleted file mode 100644
index 7793b44d9..000000000
--- a/tests/contact-manager.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdlib.h>
-
-#include <glib.h>
-#include <gtk/gtk.h>
-#include <libempathy/empathy-contact-manager.h>
-#include <libempathy/empathy-debug.h>
-
-#include <libempathy-gtk/empathy-contact-list-store.h>
-#include <libempathy-gtk/empathy-ui-utils.h>
-
-int
-main (int argc, char **argv)
-{
- EmpathyContactManager *manager;
- GMainLoop *main_loop;
- EmpathyContactListStore *store;
- GtkWidget *combo;
- GtkWidget *window;
- GtkCellRenderer *renderer;
-
- gtk_init (&argc, &argv);
- empathy_gtk_init ();
-
- empathy_debug_set_flags (g_getenv ("EMPATHY_DEBUG"));
- main_loop = g_main_loop_new (NULL, FALSE);
- manager = empathy_contact_manager_dup_singleton ();
- store = empathy_contact_list_store_new (EMPATHY_CONTACT_LIST (manager));
- empathy_contact_list_store_set_is_compact (store, TRUE);
- empathy_contact_list_store_set_show_groups (store, FALSE);
- combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (store));
- renderer = gtk_cell_renderer_text_new ();
- gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), renderer, TRUE);
- gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (combo), renderer, "text", EMPATHY_CONTACT_LIST_STORE_COL_NAME);
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_container_add (GTK_CONTAINER (window), combo);
- gtk_widget_show (combo);
- gtk_widget_show (window);
- g_object_unref (manager);
-
- gtk_main ();
-
- return EXIT_SUCCESS;
-}
-