[gtk+] reftests: Fix icon-vfuncs reftest



commit 0eb62c1629ce6921b261fd8933f6056f97c24289
Author: Benjamin Otte <otte redhat com>
Date:   Thu May 22 22:34:17 2014 +0200

    reftests: Fix icon-vfuncs reftest
    
    The reftest broke when font size lead to labels > 16px.

 testsuite/reftests/icon-vfuncs.css    |    4 +++-
 testsuite/reftests/icon-vfuncs.ref.ui |   10 ++++++++++
 testsuite/reftests/icon-vfuncs.ui     |    2 ++
 3 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/testsuite/reftests/icon-vfuncs.css b/testsuite/reftests/icon-vfuncs.css
index 833ee0d..aab3db4 100644
--- a/testsuite/reftests/icon-vfuncs.css
+++ b/testsuite/reftests/icon-vfuncs.css
@@ -4,9 +4,11 @@
   -gtk-icon-source: url("green-20x20.png");
   -GtkCheckButton-indicator-size: 16;
   -GtkCheckButton-indicator-spacing: 0;
-  -GtkArrow-arrow-scaling: 1.0666666666666666666667;
+  -GtkArrow-arrow-scaling: 1.0;
+  /*666666666666666666667;*/
   -GtkExpander-expander-spacing: 0;
   -GtkExpander-expander-size: 16;
+  font-size: 20px;
 }
 
 GtkImage {
diff --git a/testsuite/reftests/icon-vfuncs.ref.ui b/testsuite/reftests/icon-vfuncs.ref.ui
index 53179e9..ccb08c6 100644
--- a/testsuite/reftests/icon-vfuncs.ref.ui
+++ b/testsuite/reftests/icon-vfuncs.ref.ui
@@ -67,6 +67,8 @@
           <object class="GtkImage" id="image1">
             <property name="width_request">16</property>
             <property name="height_request">16</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
           </object>
@@ -79,6 +81,8 @@
           <object class="GtkImage" id="image2">
             <property name="width_request">16</property>
             <property name="height_request">16</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
           </object>
@@ -91,6 +95,8 @@
           <object class="GtkImage" id="image3">
             <property name="width_request">16</property>
             <property name="height_request">16</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
           </object>
@@ -103,6 +109,8 @@
           <object class="GtkImage" id="image4">
             <property name="width_request">16</property>
             <property name="height_request">16</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
           </object>
@@ -115,6 +123,8 @@
           <object class="GtkImage" id="image5">
             <property name="width_request">16</property>
             <property name="height_request">16</property>
+            <property name="halign">center</property>
+            <property name="valign">start</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
           </object>
diff --git a/testsuite/reftests/icon-vfuncs.ui b/testsuite/reftests/icon-vfuncs.ui
index 4ccddeb..52d71bf 100644
--- a/testsuite/reftests/icon-vfuncs.ui
+++ b/testsuite/reftests/icon-vfuncs.ui
@@ -106,6 +106,8 @@
             <property name="can_focus">False</property>
             <property name="width_request">16</property>
             <property name="height_request">16</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
           </object>
           <packing>
             <property name="left_attach">1</property>


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