reftests: Add test for undersized children of GtkPaned

Tests the recent fixes done in 206b9f940d
and 6bda6f0c58
This commit is contained in:
Benjamin Otte 2011-05-10 01:25:26 +02:00
parent f9c60b109a
commit d01d90fccd
4 changed files with 96 additions and 0 deletions

View File

@ -49,6 +49,9 @@ EXTRA_DIST += \
misc-alignment.ref.ui \ misc-alignment.ref.ui \
nonresizable-size.ref.ui \ nonresizable-size.ref.ui \
nonresizable-size.ui \ nonresizable-size.ui \
paned-undersized.css \
paned-undersized.ref.ui \
paned-undersized.ui \
quit-mnemonic.ref.ui \ quit-mnemonic.ref.ui \
quit-mnemonic.ui \ quit-mnemonic.ui \
simple.ref.ui \ simple.ref.ui \

View File

@ -0,0 +1,3 @@
GtkEventBox {
background-color: red;
}

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<property name="height_request">120</property>
<child>
<object class="GtkPaned" id="paned1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="orientation">vertical</property>
<property name="position">10</property>
<child>
<object class="GtkEventBox" id="eventbox1">
<property name="width_request">50</property>
<property name="height_request">10</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">False</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="height_request">120</property>
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkPaned" id="paned1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="orientation">vertical</property>
<property name="position">10</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkEventBox" id="eventbox1">
<property name="width_request">50</property>
<property name="height_request">50</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>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
</child>
</object>
</interface>