diff options
author | Martin Kühl <martin.kuehl@posteo.net> | 2021-09-21 16:56:47 +0200 |
---|---|---|
committer | Martin Kühl <martin.kuehl@posteo.net> | 2021-09-21 17:03:20 +0200 |
commit | a9d7282f003507159c88873c67b3a26c044b7304 (patch) | |
tree | 5a85bfefe08d7ce91a5090ae70e88d445612e5bb /testsuite/gtk/composetable.c | |
parent | 3e20ecd6e1a38bddc43728ec8f44d7c9da985a5b (diff) | |
download | gtk+-a9d7282f003507159c88873c67b3a26c044b7304.tar.gz |
gtkcomposetable: Accept long replacement strings
This change removes the assertions limiting replacement strings in the compose table to be less than 20 characters.
The limit seems arbitrary, is not required, will break some users' setups, and problems with it result in applications not launching.
Fixes #4273
Diffstat (limited to 'testsuite/gtk/composetable.c')
-rw-r--r-- | testsuite/gtk/composetable.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/gtk/composetable.c b/testsuite/gtk/composetable.c index 564416ceb8..baa83e961d 100644 --- a/testsuite/gtk/composetable.c +++ b/testsuite/gtk/composetable.c @@ -229,6 +229,19 @@ compose_table_match (void) g_assert_true (match); g_assert_cmpstr (output->str, ==, "?"); + g_string_set_size (output, 0); + + buffer[0] = GDK_KEY_Multi_key; + buffer[1] = GDK_KEY_l; + buffer[2] = GDK_KEY_o; + buffer[3] = GDK_KEY_n; + buffer[4] = GDK_KEY_g; + ret = gtk_compose_table_check (table, buffer, 5, &finish, &match, output); + g_assert_true (ret); + g_assert_true (finish); + g_assert_true (match); + g_assert_cmpstr (output->str, ==, "this is a long replacement string"); + g_string_free (output, TRUE); g_free (file); } |