projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a528df
)
label: Ignore __ for mnemonics
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 2 Aug 2021 02:14:12 +0000
(22:14 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 2 Aug 2021 02:14:12 +0000
(22:14 -0400)
We were not ignoring double underscores for mnemonics
in one place, as we should.
Fixes: #4129
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index ced834f98084ee487a539593162c185d4254b4c1..d4e414d8822e654078edcb9237b8abdca61724f7 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-3187,7
+3187,7
@@
strip_ulines (const char *text,
}
*q = *p;
- if (after_uline && *accel_key == 0)
+ if (after_uline && *
p != '_' && *
accel_key == 0)
*accel_key = g_utf8_get_char (p);
q++;