mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
shortcuts window: Fix handling of significant xml chars
We are using markup in the labels, so we need to escape things like < and >. https://bugzilla.gnome.org/show_bug.cgi?id=767795
This commit is contained in:
parent
ed2bb7e012
commit
1c6b878e09
@ -150,6 +150,21 @@ get_labels (guint key, GdkModifierType modifier, guint *n_mods)
|
||||
{
|
||||
switch (ch)
|
||||
{
|
||||
case '<':
|
||||
labels[i++] = "<";
|
||||
break;
|
||||
case '>':
|
||||
labels[i++] = ">";
|
||||
break;
|
||||
case '&':
|
||||
labels[i++] = "&";
|
||||
break;
|
||||
case '"':
|
||||
labels[i++] = """;
|
||||
break;
|
||||
case '\'':
|
||||
labels[i++] = "'";
|
||||
break;
|
||||
case '\\':
|
||||
labels[i++] = C_("keyboard label", "Backslash");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user