[empathy/gnome-2-34: 40/60] account-widget: only show Remember Password ticky box if the CM supports SASL



commit 99c44b531b4c562e9767e9b138954ef3ebaca9d8
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 819ac4e..27b6e9b 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 ();



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