[gtk+] GtkAssistant: improve button labels
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkAssistant: improve button labels
- Date: Tue, 14 Jun 2011 02:36:47 +0000 (UTC)
commit e3e95273541e284de783dcffa65d2d6965b014d1
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 13 22:35:15 2011 -0400
GtkAssistant: improve button labels
Forward/Back/Last has been declared strange; so go with something
a little more friendly: Continue/Go Back/Finish.
https://bugzilla.gnome.org/show_bug.cgi?id=652506
gtk/gtkassistant.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index ccf419d..916bfec 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -916,10 +916,16 @@ gtk_assistant_init (GtkAssistant *assistant)
priv->close = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
priv->apply = gtk_button_new_from_stock (GTK_STOCK_APPLY);
- priv->forward = gtk_button_new_from_stock (GTK_STOCK_GO_FORWARD);
- priv->back = gtk_button_new_from_stock (GTK_STOCK_GO_BACK);
+ priv->forward = gtk_button_new_with_mnemonic (_("C_ontinue"));
+ gtk_button_set_image (GTK_BUTTON (priv->forward),
+ gtk_image_new_from_stock (GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_BUTTON));
+ priv->back = gtk_button_new_with_mnemonic (_("Go _Back"));
+ gtk_button_set_image (GTK_BUTTON (priv->forward),
+ gtk_image_new_from_stock (GTK_STOCK_GO_BACK, GTK_ICON_SIZE_BUTTON));
priv->cancel = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
- priv->last = gtk_button_new_from_stock (GTK_STOCK_GOTO_LAST);
+ priv->last = gtk_button_new_with_mnemonic (_("_Finish"));
+ gtk_button_set_image (GTK_BUTTON (priv->forward),
+ gtk_image_new_from_stock (GTK_STOCK_GOTO_LAST, GTK_ICON_SIZE_BUTTON));
gtk_widget_set_can_default (priv->close, TRUE);
gtk_widget_set_can_default (priv->apply, TRUE);
gtk_widget_set_can_default (priv->forward, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]