aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget.c
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-12-10 20:24:40 +0800
committerJonny Lamb <jonnylamb@gnome.org>2010-12-10 20:24:40 +0800
commit40791c62c791c6ec697b494b421b1e68c8384769 (patch)
tree9624cf04b771a43ea021e020dff1577b489c58cb /libempathy-gtk/empathy-account-widget.c
parentcf79884338c1a83eb3c7a18da9674f3563ed1829 (diff)
downloadgsoc2013-empathy-40791c62c791c6ec697b494b421b1e68c8384769.tar
gsoc2013-empathy-40791c62c791c6ec697b494b421b1e68c8384769.tar.gz
gsoc2013-empathy-40791c62c791c6ec697b494b421b1e68c8384769.tar.bz2
gsoc2013-empathy-40791c62c791c6ec697b494b421b1e68c8384769.tar.lz
gsoc2013-empathy-40791c62c791c6ec697b494b421b1e68c8384769.tar.xz
gsoc2013-empathy-40791c62c791c6ec697b494b421b1e68c8384769.tar.zst
gsoc2013-empathy-40791c62c791c6ec697b494b421b1e68c8384769.zip
account-widget: only show Remember Password ticky box if the CM supports SASL
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r--libempathy-gtk/empathy-account-widget.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 9cbddd316..cf60a498a 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -2132,7 +2132,8 @@ do_constructed (GObject *obj)
/* remember password */
if (priv->param_password_widget != NULL
- && priv->remember_password_widget != NULL)
+ && priv->remember_password_widget != NULL
+ && empathy_account_settings_supports_sasl (priv->settings))
{
if (priv->simple)
{
@@ -2159,6 +2160,11 @@ do_constructed (GObject *obj)
remember_password_toggled_cb (
GTK_TOGGLE_BUTTON (priv->remember_password_widget), self);
}
+ else if (priv->remember_password_widget != NULL
+ && !empathy_account_settings_supports_sasl (priv->settings))
+ {
+ gtk_widget_set_visible (priv->remember_password_widget, FALSE);
+ }
/* dup and init the account-manager */
priv->account_manager = tp_account_manager_dup ();