From bc099434f22a78d09d0dad3d5006ad836ab11d02 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Mon, 6 Dec 2010 09:43:34 +0000 Subject: server-sasl-handler: make a GAsyncInitable and get the password Signed-off-by: Jonny Lamb --- src/empathy-auth-client.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c index f6cc9def8..98a736fb9 100644 --- a/src/empathy-auth-client.c +++ b/src/empathy-auth-client.c @@ -216,9 +216,12 @@ auth_factory_new_sasl_handler_cb (EmpathyAuthFactory *factory, DEBUG ("New SASL server handler received from the factory"); - /* TODO: check whether to show the dialog */ - dialog = empathy_password_dialog_new (handler); - gtk_widget_show (dialog); + /* If the handler has the password it will deal with it itself. */ + if (!empathy_server_sasl_handler_has_password (handler)) + { + dialog = empathy_password_dialog_new (handler); + gtk_widget_show (dialog); + } } int -- cgit v1.2.3