[gtk/matthiasc/for-master] testsuite: Test GtkToolbar rewriting



commit 29dc7b5fc074a4c19436ba8052644d3ee4f7cf87
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 1 10:37:58 2020 -0500

    testsuite: Test GtkToolbar rewriting

 .../tools/simplify-data-3to4/toolbar.expected      | 24 +++++++++++++++++++
 testsuite/tools/simplify-data-3to4/toolbar.ui      | 27 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)
---
diff --git a/testsuite/tools/simplify-data-3to4/toolbar.expected 
b/testsuite/tools/simplify-data-3to4/toolbar.expected
new file mode 100644
index 0000000000..fa090a9284
--- /dev/null
+++ b/testsuite/tools/simplify-data-3to4/toolbar.expected
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <requires lib="gtk+" version="3.0"/>
+  <object class="GtkBox">
+    <style>
+      <class name="toolbar"/>
+    </style>
+    <child>
+      <object class="GtkButton">
+        <property name="label" translatable="yes">New</property>
+        <property name="icon-name">document-new</property>
+        <property name="tooltip-text" translatable="yes">Create a new document</property>
+      </object>
+    </child>
+    <child>
+      <object class="GtkSeparator">
+        <property name="orientation">vertical</property>
+      </object>
+    </child>
+    <child>
+      <object class="GtkToggleButton"/>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/tools/simplify-data-3to4/toolbar.ui b/testsuite/tools/simplify-data-3to4/toolbar.ui
new file mode 100644
index 0000000000..3f45466024
--- /dev/null
+++ b/testsuite/tools/simplify-data-3to4/toolbar.ui
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <requires lib="gtk+" version="3.0"/>
+  <object class="GtkToolbar">
+    <property name="visible">1</property>
+    <child>
+      <object class="GtkToolButton">
+        <property name="visible">1</property>
+        <property name="label" translatable="yes">New</property>
+        <property name="icon-name">document-new</property>
+        <property name="tooltip-text" translatable="yes">Create a new document</property>
+      </object>
+      <packing>
+        <property name="homogeneous">1</property>
+      </packing>
+   </child>
+   <child>
+     <object class="GtkSeparatorToolItem">
+        <property name="visible">1</property>
+     </object>
+   </child>
+   <child>
+     <object class="GtkToggleToolButton">
+     </object>
+   </child>
+  </object>
+</interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]