diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2010-12-10 20:24:40 +0800 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2011-01-26 21:36:54 +0800 |
commit | 99c44b531b4c562e9767e9b138954ef3ebaca9d8 (patch) | |
tree | 231f2e6c34450c8399cec8ef4be580e7465a3651 /libempathy-gtk | |
parent | 18bb89fb5a48eff9afb0e826feff740db5d8a479 (diff) | |
download | gsoc2013-empathy-99c44b531b4c562e9767e9b138954ef3ebaca9d8.tar gsoc2013-empathy-99c44b531b4c562e9767e9b138954ef3ebaca9d8.tar.gz gsoc2013-empathy-99c44b531b4c562e9767e9b138954ef3ebaca9d8.tar.bz2 gsoc2013-empathy-99c44b531b4c562e9767e9b138954ef3ebaca9d8.tar.lz gsoc2013-empathy-99c44b531b4c562e9767e9b138954ef3ebaca9d8.tar.xz gsoc2013-empathy-99c44b531b4c562e9767e9b138954ef3ebaca9d8.tar.zst gsoc2013-empathy-99c44b531b4c562e9767e9b138954ef3ebaca9d8.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')
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 819ac4e07..27b6e9ba9 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -1828,7 +1828,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) { @@ -1855,6 +1856,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 (); |