reftests: Add a reftest with signals

This commit is contained in:
Benjamin Otte 2014-05-30 04:33:06 +02:00
parent 1e4fea7ca9
commit 030140ccc4
3 changed files with 41 additions and 0 deletions

View File

@ -330,6 +330,8 @@ testdata = \
window-default-size.ui \
window-height-for-width.ref.ui \
window-height-for-width.ui \
window-show-contents-on-map.ref.ui \
window-show-contents-on-map.ui \
$(NULL)
EXTRA_DIST += \

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.1 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkWindow" id="window1">
<property name="width_request">200</property>
<property name="height_request">200</property>
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">This label is only shown when the window is mapped. So the window does its first size allocation without the label being visible and has to resize.</property>
<property name="wrap">True</property>
<property name="width_chars">20</property>
<property name="max_width_chars">20</property>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.1 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<signal name="map" handler="gtk_widget_show" object="label1" after="yes" swapped="yes"/>
<child>
<object class="GtkLabel" id="label1">
<property name="can_focus">False</property>
<property name="label" translatable="yes">This label is only shown when the window is mapped. So the window does its first size allocation without the label being visible and has to resize.</property>
<property name="width_chars">20</property>
<property name="wrap">True</property>
</object>
</child>
</object>
</interface>