[empathy: 15/24] account-widget: only show Remember Password ticky box if the CM supports SASL



commit 40791c62c791c6ec697b494b421b1e68c8384769
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Fri Dec 10 12:24:40 2010 +0000

    account-widget: only show Remember Password ticky box if the CM supports SASL
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 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 9cbddd3..cf60a49 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]