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.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18419 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2009-11-16 21:48:20 +00:00
parent fee33b0a2e
commit 0cd8539819

View File

@ -907,7 +907,7 @@ gnc_gtk_dialog_add_button (GtkWidget *dialog, const gchar *label, const gchar *s
{ {
GtkWidget *button; GtkWidget *button;
button = gtk_button_new_with_label(label); button = gtk_button_new_with_mnemonic(label);
if (stock_id) { if (stock_id) {
GtkWidget *image; GtkWidget *image;