aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-24 16:14:43 +0800
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-27 21:47:21 +0800
commit4f0673c142e6529b6aaa0022b8463fa67b2ff060 (patch)
treed255f4248eda4e03238f904cc548640c62f146df /libempathy-gtk
parent4ef8dd58943034270f935f081e290e7540a792f9 (diff)
downloadgsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar.gz
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar.zst
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.zip
Remember password at least until session restart
https://bugzilla.gnome.org/show_bug.cgi?id=680776
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index c71b24f7b..aea76cf9f 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1864,16 +1864,8 @@ static void
remember_password_toggled_cb (GtkToggleButton *button,
EmpathyAccountWidget *self)
{
- if (gtk_toggle_button_get_active (button))
- {
- gtk_widget_set_sensitive (self->priv->param_password_widget, TRUE);
- }
- else
- {
- gtk_widget_set_sensitive (self->priv->param_password_widget, FALSE);
- gtk_entry_set_text (GTK_ENTRY (self->priv->param_password_widget), "");
- empathy_account_settings_unset (self->priv->settings, "password");
- }
+ empathy_account_settings_set_remember_password (self->priv->settings,
+ gtk_toggle_button_get_active (button));
}
static void
@@ -2015,6 +2007,8 @@ do_constructed (GObject *obj)
&& !empathy_account_settings_supports_sasl (self->priv->settings))
{
gtk_widget_set_visible (self->priv->remember_password_widget, FALSE);
+ empathy_account_settings_set_remember_password (self->priv->settings,
+ TRUE);
}
/* dup and init the account-manager */