From bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Mon, 7 Feb 2011 10:59:14 +1100 Subject: Prepare EmpathyContactManager in test --- tests/interactive/test-empathy-contact-blocking-dialog.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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 +#include + #include #include @@ -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; } -- cgit v1.2.3