[gtk/reftest-no-blink: 3/3] reftest: No blinking, please




commit e017e4252b4270611bda973e02ea5862f6e4f102
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 3 20:43:01 2021 -0400

    reftest: No blinking, please
    
    Blinking cursors aren't helpful when we want to
    compare renderings pixel-by-pixel. Turn them off.

 testsuite/reftests/gtk-reftest.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/testsuite/reftests/gtk-reftest.c b/testsuite/reftests/gtk-reftest.c
index cd933004f4..232108f46a 100644
--- a/testsuite/reftests/gtk-reftest.c
+++ b/testsuite/reftests/gtk-reftest.c
@@ -509,6 +509,13 @@ main (int argc, char **argv)
   if (!parse_command_line (&argc, &argv))
     return 1;
 
+  /* Override some settings that otherwise might affect
+   * the reliability of our output.
+   */
+  g_object_set (gtk_settings_get_default (),
+                "gtk-cursor-blink", FALSE,
+                NULL);
+
   if (arg_base_dir)
     basedir = arg_base_dir;
   else


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