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 <jonnylamb@gnome.org>2011-01-26 21:29:13 +0800
commit5ddca5abc46c6adeb5870b592c77158f7da00ca5 (patch)
tree6c954515c78a8370a69a3055c58d229c7deedb4b /src
parentaeec506f710f2222c774e450dd79e0ef24bee6e7 (diff)
downloadgsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar
gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.gz
gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.bz2
gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.lz
gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.xz
gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.zst
gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.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