r18419 - gnucash/trunk/src/gnome-utils - Bug #601861: Fix mis-captioning in button labels

Christian Stimming cstim at code.gnucash.org
Mon Nov 16 16:48:20 EST 2009


Author: cstim
Date: 2009-11-16 16:48:20 -0500 (Mon, 16 Nov 2009)
New Revision: 18419
Trac: http://svn.gnucash.org/trac/changeset/18419

Modified:
   gnucash/trunk/src/gnome-utils/dialog-utils.c
Log:
Bug #601861: Fix mis-captioning in button labels

The keyboard shortcut hints in some dialogs are miscaptioned. This means that
in a save request dialog, for example, the button caption "Save Transaction"
spuriously reads "_Save Transaction" instead of "Save Transaction" with the "S" of "Save"
being underlined to mark the proper key on the keyboard to press in order to invoke
saving of the transaction.

Seems like new gtk-version is stricter and adds mnemonics only if told so.

Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c	2009-11-16 21:43:10 UTC (rev 18418)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c	2009-11-16 21:48:20 UTC (rev 18419)
@@ -907,7 +907,7 @@
 {
   GtkWidget *button;
 
-  button = gtk_button_new_with_label(label);
+  button = gtk_button_new_with_mnemonic(label);
   if (stock_id) {
     GtkWidget *image;
 



More information about the gnucash-changes mailing list