aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-15 23:58:15 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-16 02:04:52 +0800
commit926bd94a134044ed2416537f02e55d7e4ef6cb1e (patch)
tree6f6bf9d36c0d985148ac5bb295179768efd9575c /libempathy-gtk/empathy-account-widget.c
parent5db0929af3f0b94d57ff21938ed49e2cfb0f4b88 (diff)
downloadgsoc2013-empathy-926bd94a134044ed2416537f02e55d7e4ef6cb1e.tar
gsoc2013-empathy-926bd94a134044ed2416537f02e55d7e4ef6cb1e.tar.gz
gsoc2013-empathy-926bd94a134044ed2416537f02e55d7e4ef6cb1e.tar.bz2
gsoc2013-empathy-926bd94a134044ed2416537f02e55d7e4ef6cb1e.tar.lz
gsoc2013-empathy-926bd94a134044ed2416537f02e55d7e4ef6cb1e.tar.xz
gsoc2013-empathy-926bd94a134044ed2416537f02e55d7e4ef6cb1e.tar.zst
gsoc2013-empathy-926bd94a134044ed2416537f02e55d7e4ef6cb1e.zip
Always use "Apply" button if we are not connected or editing an account
For some reason we mixed up the "Apply" and "Save" button. "Apply" is clearer as hitting it as the side effect of reconnecting the account.
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r--libempathy-gtk/empathy-account-widget.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 1367bf544..872a883cd 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1455,7 +1455,7 @@ presence_changed_cb (TpAccountManager *manager,
* 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);
+ gtk_button_set_label (GTK_BUTTON (priv->apply_button), GTK_STOCK_APPLY);
}
}
@@ -1703,21 +1703,13 @@ do_constructed (GObject *obj)
priv->cancel_button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
- if (priv->creating_account)
- {
- /* Assumre we are offline, display a Save button. We'll update
- * it once the account manager is ready if needed */
- priv->apply_button = gtk_button_new_from_stock (GTK_STOCK_SAVE);
+ priv->apply_button = gtk_button_new_from_stock (GTK_STOCK_APPLY);
- empathy_signal_connect_weak (priv->account_manager,
- "most-available-presence-changed",
- G_CALLBACK (presence_changed_cb), obj);
- }
- else
- {
- /* We are editing an existing account, display an Apply button */
- priv->apply_button = gtk_button_new_from_stock (GTK_STOCK_APPLY);
- }
+ /* We'll change this button to a "Log in" one if we are creating a new
+ * account and are connected. */
+ empathy_signal_connect_weak (priv->account_manager,
+ "most-available-presence-changed",
+ G_CALLBACK (presence_changed_cb), obj);
gtk_box_pack_end (GTK_BOX (hbox), priv->apply_button, TRUE,
TRUE, 3);