diff options
Diffstat (limited to 'tests/interactive')
-rw-r--r-- | tests/interactive/test-empathy-account-assistant.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/tests/interactive/test-empathy-account-assistant.c b/tests/interactive/test-empathy-account-assistant.c index 4f1c9a49b..dc04c7027 100644 --- a/tests/interactive/test-empathy-account-assistant.c +++ b/tests/interactive/test-empathy-account-assistant.c @@ -5,19 +5,36 @@ #include <libempathy-gtk/empathy-ui-utils.h> #include "empathy-account-assistant.h" -int main (int argc, char **argv) +static void +managers_prepare_cb (GObject *source, + GAsyncResult *result, + gpointer user_data) { GtkWidget *assistant; + EmpathyConnectionManagers *managers = EMPATHY_CONNECTION_MANAGERS (source); - gtk_init (&argc, &argv); - empathy_gtk_init (); + g_assert (empathy_connection_managers_prepare_finish (managers, result, + NULL)); - assistant = empathy_account_assistant_show (NULL); + assistant = empathy_account_assistant_show (NULL, managers); gtk_widget_show_all (assistant); g_signal_connect_swapped (assistant, "destroy", G_CALLBACK (gtk_main_quit), NULL); +} + +int main (int argc, char **argv) +{ + EmpathyConnectionManagers *managers; + + gtk_init (&argc, &argv); + empathy_gtk_init (); + + managers = empathy_connection_managers_dup_singleton (); + + empathy_connection_managers_prepare_async (managers, + managers_prepare_cb, NULL); gtk_main (); |