aboutsummaryrefslogtreecommitdiffstats
path: root/tests/interactive
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-02-07 07:59:14 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-02-07 07:59:14 +0800
commit71d24b1424c861483f92a0e2d6412fc5633ec322 (patch)
tree962d2e39ebe136194e7eb81c8fd758a854657ef9 /tests/interactive
parentaa2cc94253279160b3ddc7db612068f0755c50e5 (diff)
downloadgsoc2013-empathy-71d24b1424c861483f92a0e2d6412fc5633ec322.tar
gsoc2013-empathy-71d24b1424c861483f92a0e2d6412fc5633ec322.tar.gz
gsoc2013-empathy-71d24b1424c861483f92a0e2d6412fc5633ec322.tar.bz2
gsoc2013-empathy-71d24b1424c861483f92a0e2d6412fc5633ec322.tar.lz
gsoc2013-empathy-71d24b1424c861483f92a0e2d6412fc5633ec322.tar.xz
gsoc2013-empathy-71d24b1424c861483f92a0e2d6412fc5633ec322.tar.zst
gsoc2013-empathy-71d24b1424c861483f92a0e2d6412fc5633ec322.zip
Prepare EmpathyContactManager in test
Diffstat (limited to 'tests/interactive')
-rw-r--r--tests/interactive/test-empathy-contact-blocking-dialog.c7
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 11f199fb9..6c5615ec3 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;
}