[gtk+] reftests: Add a reftest with signals
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Add a reftest with signals
- Date: Sat, 31 May 2014 03:20:44 +0000 (UTC)
commit 030140ccc4f1eeacc3782509f78108db0dd66b80
Author: Benjamin Otte <otte redhat com>
Date: Fri May 30 04:33:06 2014 +0200
reftests: Add a reftest with signals
testsuite/reftests/Makefile.am | 2 +
.../reftests/window-show-contents-on-map.ref.ui | 21 ++++++++++++++++++++
testsuite/reftests/window-show-contents-on-map.ui | 18 +++++++++++++++++
3 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am
index a5c940d..7b4b1e3 100644
--- a/testsuite/reftests/Makefile.am
+++ b/testsuite/reftests/Makefile.am
@@ -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 += \
diff --git a/testsuite/reftests/window-show-contents-on-map.ref.ui
b/testsuite/reftests/window-show-contents-on-map.ref.ui
new file mode 100644
index 0000000..d96ec68
--- /dev/null
+++ b/testsuite/reftests/window-show-contents-on-map.ref.ui
@@ -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>
diff --git a/testsuite/reftests/window-show-contents-on-map.ui
b/testsuite/reftests/window-show-contents-on-map.ui
new file mode 100644
index 0000000..def0bf9
--- /dev/null
+++ b/testsuite/reftests/window-show-contents-on-map.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]