2007-09-27 Xavier Claessens <xclaesse@gmail.com>
* tests/contact-manager.c:
* tests/Makefile.am: No need to init gtk, GMainLoop is enough and makes
easier to run valgrind.
svn path=/trunk/; revision=324
+2007-09-27 Xavier Claessens <xclaesse@gmail.com>
+
+ * tests/contact-manager.c:
+ * tests/Makefile.am: No need to init gtk, GMainLoop is enough and makes
+ easier to run valgrind.
+
2007-09-27 Xavier Claessens <xclaesse@gmail.com>
* libempathy/empathy-avatar.c: Fix leak when loading avatar from cache.
2007-09-27 Xavier Claessens <xclaesse@gmail.com>
* libempathy/empathy-avatar.c: Fix leak when loading avatar from cache.
$(top_builddir)/libempathy/libempathy.la \
$(EMPATHY_LIBS)
$(top_builddir)/libempathy/libempathy.la \
$(EMPATHY_LIBS)
contact-manager
contact_manager_SOURCES = contact-manager.c
contact-manager
contact_manager_SOURCES = contact-manager.c
#include <libempathy/empathy-contact-manager.h>
static gboolean
#include <libempathy/empathy-contact-manager.h>
static gboolean
-time_out (gpointer data)
+time_out (gpointer main_loop)
+ g_main_loop_quit (main_loop);
main (int argc, char **argv)
{
EmpathyContactManager *manager;
main (int argc, char **argv)
{
EmpathyContactManager *manager;
- gtk_init (&argc, &argv);
+ main_loop = g_main_loop_new (NULL, FALSE);
manager = empathy_contact_manager_new ();
manager = empathy_contact_manager_new ();
- g_timeout_add (5000, time_out, NULL);
+ g_timeout_add (5000, time_out, main_loop);
+ g_main_loop_run (main_loop);
g_object_unref (manager);
g_object_unref (manager);
+ g_main_loop_unref (main_loop);