]> git.0d.be Git - empathy.git/commitdiff
Prepare EmpathyContactManager in test
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Sun, 6 Feb 2011 23:59:14 +0000 (10:59 +1100)
committerChandni Verma <chandniverma2112@gmail.com>
Tue, 8 Mar 2011 00:26:16 +0000 (05:56 +0530)
tests/interactive/test-empathy-contact-blocking-dialog.c

index 11f199fb9173c79d18399ebcfdcc398dd13b5650..6c5615ec3e254ecd8834673b2cba653d31ad08d8 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <gtk/gtk.h>
 
+#include <libempathy/empathy-contact-manager.h>
+
 #include <libempathy-gtk/empathy-ui-utils.h>
 #include <libempathy-gtk/empathy-contact-blocking-dialog.h>
 
@@ -30,11 +32,13 @@ int
 main (int argc,
     char **argv)
   {
+    EmpathyContactManager *manager;
     GtkWidget *dialog;
 
     gtk_init (&argc, &argv);
     empathy_gtk_init ();
 
+    manager = empathy_contact_manager_dup_singleton ();
     dialog = empathy_contact_blocking_dialog_new (NULL);
 
     g_signal_connect_swapped (dialog, "response",
@@ -44,5 +48,8 @@ main (int argc,
 
     gtk_main ();
 
+    gtk_widget_destroy (dialog);
+    g_object_unref (manager);
+
     return 0;
   }