diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-02-14 12:56:00 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-02-14 12:56:00 -0500 |
commit | d2e074e36b5c3c8def215dbbf56f2507b36f561f (patch) | |
tree | 49c42e9181301149b4c5d790eef2969c356e139b | |
parent | 2623932886dcf4c3ae426c56580e8d971bfa6f1a (diff) | |
download | gtk+-d2e074e36b5c3c8def215dbbf56f2507b36f561f.tar.gz |
imcontext: Be more lenient in parsing Compose
X11 allows keysyms to be specified in addition to strings.
We only support the strings. In the past, we ignored everything
after the string. Go back to doing that, but issue a warning
that we've ignored the keysym.
-rw-r--r-- | gtk/gtkcomposetable.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c index 20afc2dc44..3c60cc1886 100644 --- a/gtk/gtkcomposetable.c +++ b/gtk/gtkcomposetable.c @@ -84,7 +84,7 @@ parse_compose_value (GtkComposeData *compose_data, if (val[0] != '"') { - g_warning ("Need to double-quote the value: %s: %s", val, line); + g_warning ("Only strings supported after ':': %s: %s", val, line); goto fail; } @@ -104,10 +104,7 @@ parse_compose_value (GtkComposeData *compose_data, while (*p && g_ascii_isspace (*p)) p++; if (*p != '\0' && *p != '#') - { - g_warning ("Garbage after closing '\"': %s: %s", val, line); - goto fail; - } + g_warning ("Ignoring keysym after string: %s: %s", val, line); break; } else if (*p == '\\') |