diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-04 14:59:07 +0000 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-04 14:59:07 +0000 |
commit | ecf81a22ceed387b5c592e31cd8e69a974834562 (patch) | |
tree | ef6d3f560d9693c97c93fd7521b83ade979e7fbf /gnome-2-22/tests/contact-manager.c | |
parent | 62e60bcd7fdded2946976696a7a8b2aaedb80570 (diff) |
Tagged for release 0.22.1.EMPATHY_0_22_1
svn path=/tags/EMPATHY_0_22_1/; revision=876
Diffstat (limited to 'gnome-2-22/tests/contact-manager.c')
-rw-r--r-- | gnome-2-22/tests/contact-manager.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnome-2-22/tests/contact-manager.c b/gnome-2-22/tests/contact-manager.c new file mode 100644 index 000000000..75bfc7fae --- /dev/null +++ b/gnome-2-22/tests/contact-manager.c @@ -0,0 +1,34 @@ +#include <stdlib.h> + +#include <glib.h> +#include <libempathy/empathy-contact-manager.h> + +static gboolean +time_out (gpointer main_loop) +{ + g_main_loop_quit (main_loop); + + return FALSE; +} + +int +main (int argc, char **argv) +{ + EmpathyContactManager *manager; + GMainLoop *main_loop; + + g_type_init (); + + main_loop = g_main_loop_new (NULL, FALSE); + manager = empathy_contact_manager_new (); + + g_timeout_add_seconds (5, time_out, main_loop); + + g_main_loop_run (main_loop); + + g_object_unref (manager); + g_main_loop_unref (main_loop); + + return EXIT_SUCCESS; +} + |