diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-09-21 20:24:24 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-09-21 20:24:24 +0800 |
commit | b837536e621e863a59c251d5528d7db16fcc96e4 (patch) | |
tree | 01e1aca50b42a38943ae09f8fd327aba2f8af118 /tests/contact-manager.c | |
parent | e807ad57a07145b79466acdc53a5658126aa1843 (diff) | |
download | gsoc2013-empathy-b837536e621e863a59c251d5528d7db16fcc96e4.tar gsoc2013-empathy-b837536e621e863a59c251d5528d7db16fcc96e4.tar.gz gsoc2013-empathy-b837536e621e863a59c251d5528d7db16fcc96e4.tar.bz2 gsoc2013-empathy-b837536e621e863a59c251d5528d7db16fcc96e4.tar.lz gsoc2013-empathy-b837536e621e863a59c251d5528d7db16fcc96e4.tar.xz gsoc2013-empathy-b837536e621e863a59c251d5528d7db16fcc96e4.tar.zst gsoc2013-empathy-b837536e621e863a59c251d5528d7db16fcc96e4.zip |
2007-09-21 Xavier Claessens <xclaesse@gmail.com>
* libempathy/empathy-tp-contact-list.c: Fix warnings when finalizing.
* tests/contact-manager.c:
* tests/Makefile.am:
* configure.ac:
* Makefile.am: Add a test program to track leaks.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@304 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'tests/contact-manager.c')
-rw-r--r-- | tests/contact-manager.c | 30 |
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; +} |