aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-06 17:43:34 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-06 17:43:34 +0800
commitbc099434f22a78d09d0dad3d5006ad836ab11d02 (patch)
treed011fcb641b94277b838ea6f3b8cf2208c3c118c /src
parent4d487def1692d57aca987219fa1ff6f133c389f1 (diff)
downloadgsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.gz
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.bz2
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.lz
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.xz
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.zst
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.zip
server-sasl-handler: make a GAsyncInitable and get the password
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/empathy-auth-client.c9
1 files changed, 6 insertions, 3 deletions
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