[gtk+] GtkLabel: fix underlining of mnemonics



commit 30788062f7de0b1696e733e908f3f60036e668a6
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 20d2c2e..3b85c31 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]