aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-27 21:55:13 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-30 19:37:45 +0800
commit7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82 (patch)
tree074981187ac4d4eb3871486de2a5515197a837aa /libempathy-gtk/empathy-account-widget.c
parent73a8a1b248293643aaca7afe40480d2cf6de64e9 (diff)
downloadgsoc2013-empathy-7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82.tar
gsoc2013-empathy-7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82.tar.gz
gsoc2013-empathy-7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82.tar.bz2
gsoc2013-empathy-7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82.tar.lz
gsoc2013-empathy-7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82.tar.xz
gsoc2013-empathy-7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82.tar.zst
gsoc2013-empathy-7bd4c5d096a48c7488774a9e0cc7f1f41e5b1e82.zip
fix accelerator conflict with the Apply button (#623164)
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r--libempathy-gtk/empathy-account-widget.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 3f49cbc18..9696f48d8 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1466,10 +1466,17 @@ static void
set_apply_button (EmpathyAccountWidget *self)
{
EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
+ GtkWidget *image;
- 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_APPLY);
+ /* We can't use the stock button as its accelerator ('A') clashes with the
+ * Add button. */
+ gtk_button_set_use_stock (GTK_BUTTON (priv->apply_button), FALSE);
+
+ gtk_button_set_label (GTK_BUTTON (priv->apply_button), _("A_pply"));
+ gtk_button_set_use_underline (GTK_BUTTON (priv->apply_button), TRUE);
+
+ image = gtk_image_new_from_stock (GTK_STOCK_APPLY, GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (priv->apply_button), image);
}
static void