Fix imcontext tests
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Aug 2021 18:41:05 +0000 (14:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 20 Aug 2021 19:10:25 +0000 (15:10 -0400)
We should force our internal im context for these
tests, so we don't depend on the environment.

testsuite/gtk/imcontext.c

index ae43b9d8b60b87397aec623a0ff7815866d8c341..f6f3acf2e44fa1ae1f3751c0223a961c5143f719 100644 (file)
@@ -147,6 +147,8 @@ main (int argc, char *argv[])
 {
   gtk_test_init (&argc, &argv, NULL);
 
+  g_object_set (gtk_settings_get_default (), "gtk-im-module", "gtk-im-context-simple", NULL);
+
   g_test_add_func ("/im-context/text-surrounding", test_text_surrounding);
   g_test_add_func ("/im-context/textview-surrounding", test_textview_surrounding);