diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-03-03 10:35:45 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-03-03 10:40:52 +0800 |
commit | 60b1c56a90020621eaddcfcf064957ac748955cd (patch) | |
tree | 342a9dff54a68e70948f52281068434978b27ca8 /libempathy-gtk/empathy-password-dialog.c | |
parent | fb03f35e9a0a0a4bf73ffe789e659c770a1d75ba (diff) | |
download | gsoc2013-empathy-60b1c56a90020621eaddcfcf064957ac748955cd.tar gsoc2013-empathy-60b1c56a90020621eaddcfcf064957ac748955cd.tar.gz gsoc2013-empathy-60b1c56a90020621eaddcfcf064957ac748955cd.tar.bz2 gsoc2013-empathy-60b1c56a90020621eaddcfcf064957ac748955cd.tar.lz gsoc2013-empathy-60b1c56a90020621eaddcfcf064957ac748955cd.tar.xz gsoc2013-empathy-60b1c56a90020621eaddcfcf064957ac748955cd.tar.zst gsoc2013-empathy-60b1c56a90020621eaddcfcf064957ac748955cd.zip |
Only show the "Remember password" tickybox if we can do that
Diffstat (limited to 'libempathy-gtk/empathy-password-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-password-dialog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-password-dialog.c b/libempathy-gtk/empathy-password-dialog.c index b07932ee2..fc789b741 100644 --- a/libempathy-gtk/empathy-password-dialog.c +++ b/libempathy-gtk/empathy-password-dialog.c @@ -294,7 +294,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); |