[gtk+] More box<>grid comparison tests



commit ebc325d38ca457db12ef3d558900b895e2f03984
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 5 16:15:59 2011 -0400

    More box<>grid comparison tests
    
    Add a more complicated case with multiple expanding children.
    Also, make the window a popup.

 tests/reftests/box-packing.ref.ui |   92 +++++++++++++++++++++++++++++++-
 tests/reftests/box-packing.ui     |  106 ++++++++++++++++++++++++++++++++++++-
 2 files changed, 196 insertions(+), 2 deletions(-)
---
diff --git a/tests/reftests/box-packing.ref.ui b/tests/reftests/box-packing.ref.ui
index 5021049..32aa383 100644
--- a/tests/reftests/box-packing.ref.ui
+++ b/tests/reftests/box-packing.ref.ui
@@ -2,8 +2,9 @@
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
   <object class="GtkWindow" id="window1">
+    <property name="type">popup</property>
     <property name="can_focus">False</property>
-    <property name="default_width">200</property>
+    <property name="default_width">320</property>
     <property name="default_height">320</property>
     <child>
       <object class="GtkBox" id="box1">
@@ -337,6 +338,95 @@
             <property name="position">4</property>
           </packing>
         </child>
+        <child>
+          <object class="GtkBox" id="box11">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="orientation">horizontal</property>
+            <child>
+              <object class="GtkEventBox" id="eventbox17">
+                <property name="name">red</property>
+                <property name="width_request">10</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox18">
+                <property name="name">green</property>
+                <property name="width_request">10</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox19">
+                <property name="name">red</property>
+                <property name="width_request">20</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox20">
+                <property name="name">green</property>
+                <property name="width_request">20</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox21">
+                <property name="name">red</property>
+                <property name="width_request">40</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox22">
+                <property name="name">green</property>
+                <property name="width_request">40</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+          </packing>
+        </child>
       </object>
     </child>
   </object>
diff --git a/tests/reftests/box-packing.ui b/tests/reftests/box-packing.ui
index 9dda60b..3dac61a 100644
--- a/tests/reftests/box-packing.ui
+++ b/tests/reftests/box-packing.ui
@@ -2,8 +2,9 @@
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
   <object class="GtkWindow" id="window1">
+     <property name="type">popup</property>
     <property name="can_focus">False</property>
-    <property name="default_width">200</property>
+    <property name="default_width">320</property>
     <property name="default_height">320</property>
     <child>
       <object class="GtkBox" id="box1">
@@ -359,6 +360,109 @@
             <property name="position">4</property>
           </packing>
         </child>
+        <child>
+          <object class="GtkGrid" id="grid9">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <child>
+              <object class="GtkEventBox" id="eventbox17">
+                <property name="name">red</property>
+                <property name="width_request">10</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="left_attach">0</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox18">
+                <property name="name">green</property>
+                <property name="width_request">10</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+              </object>
+              <packing>
+                <property name="left_attach">1</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox19">
+                <property name="name">red</property>
+                <property name="width_request">20</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="left_attach">2</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox20">
+                <property name="name">green</property>
+                <property name="width_request">20</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+              </object>
+              <packing>
+                <property name="left_attach">3</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox21">
+                <property name="name">red</property>
+                <property name="width_request">40</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="left_attach">4</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkEventBox" id="eventbox22">
+                <property name="name">green</property>
+                <property name="width_request">40</property>
+                <property name="height_request">30</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+              </object>
+              <packing>
+                <property name="left_attach">5</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+          </packing>
+        </child>
       </object>
     </child>
   </object>



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