diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-02-07 07:59:14 +0800 |
---|---|---|
committer | Chandni Verma <chandniverma2112@gmail.com> | 2011-03-08 08:26:16 +0800 |
commit | bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23 (patch) | |
tree | 4b419f760f9fef5d1177065adb8bbf18227b283a /tests | |
parent | fe902c25eaf5944bba218bddd1484e87a85d9905 (diff) | |
download | gsoc2013-empathy-bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23.tar gsoc2013-empathy-bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23.tar.gz gsoc2013-empathy-bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23.tar.bz2 gsoc2013-empathy-bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23.tar.lz gsoc2013-empathy-bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23.tar.xz gsoc2013-empathy-bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23.tar.zst gsoc2013-empathy-bf0586ea17afcd2ad04fefa24b8e74cd5e1f4b23.zip |
Prepare EmpathyContactManager in test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/interactive/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 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; } |