aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-03-03 10:35:45 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-03 17:23:15 +0800
commit855095a0e0c5c50f0713caf11afad2329428827b (patch)
tree6c5d5af19686f82279967a685676ba0f1ea64811 /libempathy-gtk
parent2d652e402b4ed7fa1ca01805288018e4fc867d53 (diff)
downloadgsoc2013-empathy-855095a0e0c5c50f0713caf11afad2329428827b.tar
gsoc2013-empathy-855095a0e0c5c50f0713caf11afad2329428827b.tar.gz
gsoc2013-empathy-855095a0e0c5c50f0713caf11afad2329428827b.tar.bz2
gsoc2013-empathy-855095a0e0c5c50f0713caf11afad2329428827b.tar.lz
gsoc2013-empathy-855095a0e0c5c50f0713caf11afad2329428827b.tar.xz
gsoc2013-empathy-855095a0e0c5c50f0713caf11afad2329428827b.tar.zst
gsoc2013-empathy-855095a0e0c5c50f0713caf11afad2329428827b.zip
Only show the "Remember password" tickybox if we can do that
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-password-dialog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-password-dialog.c b/libempathy-gtk/empathy-password-dialog.c
index 6a01cd2f8..a06b71d9f 100644
--- a/libempathy-gtk/empathy-password-dialog.c
+++ b/libempathy-gtk/empathy-password-dialog.c
@@ -311,7 +311,10 @@ empathy_password_dialog_constructed (GObject *object)
priv->ticky = gtk_check_button_new_with_label (_("Remember password"));
gtk_box_pack_start (box, priv->ticky, FALSE, FALSE, 0);
- gtk_widget_show (priv->ticky);
+
+ /* only show it if we actually support it */
+ if (empathy_server_sasl_handler_can_save_response_somewhere (priv->handler))
+ gtk_widget_show (priv->ticky);
g_signal_connect (dialog, "response",
G_CALLBACK (password_dialog_response_cb), dialog);