[empathy: 6/35] Prepare EmpathyContactManager in test



commit bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Mon Feb 7 10:59:14 2011 +1100

    Prepare EmpathyContactManager in test

 .../test-empathy-contact-blocking-dialog.c         |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/interactive/test-empathy-contact-blocking-dialog.c b/tests/interactive/test-empathy-contact-blocking-dialog.c
index 11f199f..6c5615e 100644
--- a/tests/interactive/test-empathy-contact-blocking-dialog.c
+++ b/tests/interactive/test-empathy-contact-blocking-dialog.c
@@ -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;
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]