mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
reftests: Add a reftest with signals
This commit is contained in:
parent
1e4fea7ca9
commit
030140ccc4
@ -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 += \
|
||||
|
21
testsuite/reftests/window-show-contents-on-map.ref.ui
Normal file
21
testsuite/reftests/window-show-contents-on-map.ref.ui
Normal 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>
|
18
testsuite/reftests/window-show-contents-on-map.ui
Normal file
18
testsuite/reftests/window-show-contents-on-map.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user