[gtk+/gtk-3-8] GtkLabel: fix underlining of mnemonics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-8] GtkLabel: fix underlining of mnemonics
- Date: Mon, 25 Mar 2013 01:07:49 +0000 (UTC)
commit 8301f4258ffc06d44f6a903b92055cf3313e97b9
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Mar 23 16:44:49 2013 +0100
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
gtk/gtklabel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 587a61f..3096c41 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]