[gtk/ci-update] Try to fix the quit-mnemonic reftest




commit 8e379331c9de556e605d6318e3a91c103b0ab93e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 14 12:52:40 2022 -0400

    Try to fix the quit-mnemonic reftest
    
    Make this compare a mnemonic with a fixed
    low underline. To keep the rendering the
    same, we give the fixed underline the same
    color as the background. And we scale the
    rendering by 2, to avoid issues with
    disappearing underlines in GL.

 testsuite/reftests/quit-mnemonic.ref.ui | 20 ++++++++++++++------
 testsuite/reftests/quit-mnemonic.ui     | 23 +++++------------------
 2 files changed, 19 insertions(+), 24 deletions(-)
---
diff --git a/testsuite/reftests/quit-mnemonic.ref.ui b/testsuite/reftests/quit-mnemonic.ref.ui
index 2a3b9f669a..135a3916dd 100644
--- a/testsuite/reftests/quit-mnemonic.ref.ui
+++ b/testsuite/reftests/quit-mnemonic.ref.ui
@@ -3,12 +3,20 @@
   <object class="GtkWindow" id="window1">
     <property name="decorated">0</property>
     <child>
-      <object class="GtkLabel" id="label1">
-        <property name="label" translatable="yes">Quit
-</property>
-        <attributes>
-          <attribute name="underline" value="low" start="0" end="1"></attribute>
-        </attributes>
+      <object class="GtkFixed">
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="label" translatable="yes">Quit</property>
+            <attributes>
+              <attribute name="underline" value="low" start="0" end="1"></attribute>
+              <attribute name="background" value="white"></attribute>
+              <attribute name="underline-color" value="white" start="0" end="1"></attribute>
+            </attributes>
+            <layout>
+              <property name="transform">scale(2)</property>
+            </layout>
+          </object>
+        </child>
       </object>
     </child>
   </object>
diff --git a/testsuite/reftests/quit-mnemonic.ui b/testsuite/reftests/quit-mnemonic.ui
index 703715883f..f33f6e06ff 100644
--- a/testsuite/reftests/quit-mnemonic.ui
+++ b/testsuite/reftests/quit-mnemonic.ui
@@ -3,29 +3,16 @@
   <object class="GtkWindow" id="window1">
     <property name="decorated">0</property>
     <child>
-      <object class="GtkGrid" id="grid1">
+      <object class="GtkFixed">
         <child>
           <object class="GtkLabel" id="label1">
-            <property name="label" translatable="yes">Quit</property>
+            <property name="label" translatable="yes">_Quit</property>
+            <property name="use-underline">1</property>
             <attributes>
-              <attribute name="underline" value="low" start="0" end="1"></attribute>
+              <attribute name="background" value="white"></attribute>
             </attributes>
             <layout>
-              <property name="column">0</property>
-              <property name="row">0</property>
-              <property name="column-span">1</property>
-              <property name="row-span">1</property>
-            </layout>
-          </object>
-        </child>
-        <child>
-          <object class="GtkLabel" id="label2">
-            <property name="label" translatable="yes"> </property>
-            <layout>
-              <property name="column">0</property>
-              <property name="row">1</property>
-              <property name="column-span">1</property>
-              <property name="row-span">1</property>
+              <property name="transform">scale(2)</property>
             </layout>
           </object>
         </child>


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