[gtk] Fix imcontext tests



commit cedb6183e91bd725076c37585aed8636442f2af3
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 20 14:41:05 2021 -0400

    Fix imcontext tests
    
    We should force our internal im context for these
    tests, so we don't depend on the environment.

 testsuite/gtk/imcontext.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/testsuite/gtk/imcontext.c b/testsuite/gtk/imcontext.c
index ae43b9d8b6..f6f3acf2e4 100644
--- a/testsuite/gtk/imcontext.c
+++ b/testsuite/gtk/imcontext.c
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]