summaryrefslogtreecommitdiff
path: root/testsuite/tools
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-05-01 18:48:03 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2020-05-01 20:11:19 +0500
commit6b4bed2c7a43b65a696d5efc1a4d5d2e7ed7f5af (patch)
treec7e61b24e2128d3d168f292dad0900c38c5e7430 /testsuite/tools
parent739f681076493ec2223cf339916295890bc9926a (diff)
downloadgtk+-6b4bed2c7a43b65a696d5efc1a4d5d2e7ed7f5af.tar.gz
builder-tool: Rename GtkHeaderBar:custom-title to title-widget
Add a test.
Diffstat (limited to 'testsuite/tools')
-rw-r--r--testsuite/tools/simplify-data-3to4/headerbar.expected12
-rw-r--r--testsuite/tools/simplify-data-3to4/headerbar.ui16
2 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/tools/simplify-data-3to4/headerbar.expected b/testsuite/tools/simplify-data-3to4/headerbar.expected
new file mode 100644
index 0000000000..d987f58a68
--- /dev/null
+++ b/testsuite/tools/simplify-data-3to4/headerbar.expected
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <object class="GtkWindow" id="window1">
+ <child type="titlebar">
+ <object class="GtkHeaderBar" id="headerbar1">
+ <property name="show-title-buttons">1</property>
+ <property name="title-widget">box1</property>
+ </object>
+ </child>
+ </object>
+ <object class="GtkBox" id="box1"/>
+</interface>
diff --git a/testsuite/tools/simplify-data-3to4/headerbar.ui b/testsuite/tools/simplify-data-3to4/headerbar.ui
new file mode 100644
index 0000000000..9ad70329d7
--- /dev/null
+++ b/testsuite/tools/simplify-data-3to4/headerbar.ui
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkWindow" id="window1">
+ <child type="titlebar">
+ <object class="GtkHeaderBar" id="headerbar1">
+ <property name="visible">True</property>
+ <property name="show-close-button">True</property>
+ <property name="custom-title">box1</property>
+ </object>
+ </child>
+ </object>
+ <object class="GtkBox" id="box1">
+ <property name="visible">True</property>
+ </object>
+</interface>