diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-09-28 18:18:40 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-09-28 18:21:18 +0800 |
commit | ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14 (patch) | |
tree | d4e39c39d01cb3cfcb9114e590abd72d60e2fea2 /libempathy-gtk | |
parent | 125644f65e893c4f6922a7d0e88dbf08ebe08221 (diff) | |
download | gsoc2013-empathy-ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14.tar gsoc2013-empathy-ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14.tar.gz gsoc2013-empathy-ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14.tar.bz2 gsoc2013-empathy-ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14.tar.lz gsoc2013-empathy-ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14.tar.xz gsoc2013-empathy-ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14.tar.zst gsoc2013-empathy-ea2be64bc7b7e5a7c2c15c38fe6f61b27ca2fb14.zip |
Instant-apply the "enabled" setting.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 641ef00ba..136168020 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -627,13 +627,6 @@ account_widget_applied_cb (GObject *source_object, * information entered by the user is validated on the server. */ empathy_account_reconnect_async (account, NULL, NULL); } - else - { - /* The account is disabled so we enable it according to the value - * of the "Enabled" checkbox */ - empathy_account_set_enabled_async (account, enabled_checked, - NULL, NULL); - } } } @@ -1064,8 +1057,15 @@ static void account_widget_enabled_released_cb (GtkToggleButton *toggle_button, gpointer user_data) { - account_widget_handle_control_buttons_sensitivity ( - EMPATHY_ACCOUNT_WIDGET (user_data)); + EmpathyAccountWidgetPriv *priv = GET_PRIV (user_data); + EmpathyAccount *account; + gboolean state; + + state = gtk_toggle_button_get_active (toggle_button); + account = empathy_account_settings_get_account (priv->settings); + + /* Enable the account according to the value of the "Enabled" checkbox */ + empathy_account_set_enabled_async (account, state, NULL, NULL); } static void |