GtkLabel: fix underlining of mnemonics

The underscore was shown in front of the mnemonic instead of underlining
it (e.g., _Save).

Thanks to Lars Uebernickel.

https://bugzilla.gnome.org/show_bug.cgi?id=674759
This commit is contained in:
Sébastien Wilmet
2013-03-23 16:44:49 +01:00
parent c2202e1a31
commit 30788062f7

View File

@ -2570,7 +2570,7 @@ gtk_label_set_markup_internal (GtkLabel *label,
/* Extract the text to display */
if (!pango_parse_markup (str_for_display,
-1,
0,
with_uline ? '_' : 0,
&attrs,
&text,
NULL,