diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-15 23:46:19 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-16 02:04:52 +0800 |
commit | 5db0929af3f0b94d57ff21938ed49e2cfb0f4b88 (patch) | |
tree | b65a6e75e9fc5248a4c827912fa8a4a49664f6f8 | |
parent | 76f92daf5490a9fd5189862feaa067115d967d15 (diff) | |
download | gsoc2013-empathy-5db0929af3f0b94d57ff21938ed49e2cfb0f4b88.tar gsoc2013-empathy-5db0929af3f0b94d57ff21938ed49e2cfb0f4b88.tar.gz gsoc2013-empathy-5db0929af3f0b94d57ff21938ed49e2cfb0f4b88.tar.bz2 gsoc2013-empathy-5db0929af3f0b94d57ff21938ed49e2cfb0f4b88.tar.lz gsoc2013-empathy-5db0929af3f0b94d57ff21938ed49e2cfb0f4b88.tar.xz gsoc2013-empathy-5db0929af3f0b94d57ff21938ed49e2cfb0f4b88.tar.zst gsoc2013-empathy-5db0929af3f0b94d57ff21938ed49e2cfb0f4b88.zip |
account-widget: don't display "Log in" button if we are modyfing an account
Either the account is enabled and saving will reconnect, either it's not and
that won't connect it.
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index cbc2a1cbc..1367bf544 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -1436,9 +1436,10 @@ presence_changed_cb (TpAccountManager *manager, /* This button doesn't exist in 'simple' mode */ return; - if (state > TP_CONNECTION_PRESENCE_TYPE_OFFLINE) + if (state > TP_CONNECTION_PRESENCE_TYPE_OFFLINE && + priv->creating_account) { - /* We are online, display a Login button */ + /* We are online and creating a new account, display a Login button */ GtkWidget *image; gtk_button_set_use_stock (GTK_BUTTON (priv->apply_button), FALSE); @@ -1450,7 +1451,8 @@ presence_changed_cb (TpAccountManager *manager, } else { - /* We are offline, display a Save button */ + /* We are offline or modifying an existing account, display + * a Save button */ gtk_button_set_image (GTK_BUTTON (priv->apply_button), NULL); gtk_button_set_use_stock (GTK_BUTTON (priv->apply_button), TRUE); gtk_button_set_label (GTK_BUTTON (priv->apply_button), GTK_STOCK_SAVE); |