aboutsummaryrefslogtreecommitdiffstats
path: root/tests/contact-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/contact-manager.c')
-rw-r--r--tests/contact-manager.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/contact-manager.c b/tests/contact-manager.c
new file mode 100644
index 000000000..c9450105a
--- /dev/null
+++ b/tests/contact-manager.c
@@ -0,0 +1,30 @@
+#include <stdlib.h>
+
+#include <gtk/gtk.h>
+#include <libempathy/empathy-contact-manager.h>
+
+static gboolean
+time_out (gpointer data)
+{
+ gtk_main_quit ();
+
+ return FALSE;
+}
+
+int
+main (int argc, char **argv)
+{
+ EmpathyContactManager *manager;
+
+ gtk_init (&argc, &argv);
+
+ manager = empathy_contact_manager_new ();
+
+ g_timeout_add (5000, time_out, NULL);
+
+ gtk_main ();
+
+ g_object_unref (manager);
+
+ return EXIT_SUCCESS;
+}