diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-31 22:17:08 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-31 22:19:32 +0800 |
commit | 7792a4798c934d8871e4b8b4223c5aead10cc164 (patch) | |
tree | ca4e2fc390c3bb324434d2874fd863f60717b289 /libempathy-gtk/empathy-account-widget.c | |
parent | 8852aeef8fa4d6a76dfc030d8f337fab118dc463 (diff) | |
download | gsoc2013-empathy-7792a4798c934d8871e4b8b4223c5aead10cc164.tar gsoc2013-empathy-7792a4798c934d8871e4b8b4223c5aead10cc164.tar.gz gsoc2013-empathy-7792a4798c934d8871e4b8b4223c5aead10cc164.tar.bz2 gsoc2013-empathy-7792a4798c934d8871e4b8b4223c5aead10cc164.tar.lz gsoc2013-empathy-7792a4798c934d8871e4b8b4223c5aead10cc164.tar.xz gsoc2013-empathy-7792a4798c934d8871e4b8b4223c5aead10cc164.tar.zst gsoc2013-empathy-7792a4798c934d8871e4b8b4223c5aead10cc164.zip |
Always update the control buttons sensitivity on creation.
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index c831bc8c4..3d81a1790 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -1210,18 +1210,14 @@ do_constructed (GObject *obj) self); gtk_widget_show_all (hbox); - if (!tp_strdiff (protocol, "irc") && priv->creating_account) - { - /* For the IRC protocol, when creating an account, the user might - * have nothing to enter. That means that no control interaction - * might occur, so the control buttons sensitivity might never get - * updated. That's why we have to explicitly call this function. */ - account_widget_handle_control_buttons_sensitivity (self); - } + if (priv->creating_account) + /* When creating an account, the user might have nothing to enter. + * That means that no control interaction might occur, + * so we update the control button sensitivity manually. + */ + account_widget_handle_control_buttons_sensitivity (self); else - { - account_widget_set_control_buttons_sensitivity (self, FALSE); - } + account_widget_set_control_buttons_sensitivity (self, FALSE); } account = empathy_account_settings_get_account (priv->settings); |