mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
testsuite: Update buildertool tests
gtk-builder-tool simplify --3to4 now produces a <requires lib="gtk" version="4.0"/>. Adapt for that, and also add some tests that check that we actually verify the requires, and accept 3.99 and 4.0, but not 5.x.
This commit is contained in:
parent
7215c74933
commit
d6a0948182
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="3.0"/>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkActionBar">
|
||||
<property name="visible">0</property>
|
||||
<child type="start">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<object class="GtkActionBar">
|
||||
<child>
|
||||
<object class="GtkButton" id="button">
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkAssistant" id="window1">
|
||||
<child>
|
||||
<object class="GtkAssistantPage">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkAssistant" id="window1">
|
||||
<child>
|
||||
<object class="GtkButton" id="button1">
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">0</property>
|
||||
<property name="label">bla</property>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="3.0"/>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWindow">
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<object class="GtkWindow">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<object class="GtkDialog">
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<child internal-child="content_area">
|
||||
<object class="GtkBox">
|
||||
<property name="visible">0</property>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="3.0"/>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkFixed">
|
||||
<child>
|
||||
<object class="GtkButton" id="button">
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<object class="GtkFixed">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="child">
|
||||
<object class="GtkGrid" id="grid1">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<child>
|
||||
<object class="GtkGrid" id="grid1">
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface domain="gtk30">
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<template class="GtkFileChooserDialog" parent="GtkDialog">
|
||||
<property name="role">GtkFileChooserDialog</property>
|
||||
<property name="type-hint">dialog</property>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface domain="gtk30">
|
||||
<!-- interface-requires gtk+ 3.10 -->
|
||||
<template class="GtkFileChooserDialog" parent="GtkDialog">
|
||||
<property name="role">GtkFileChooserDialog</property>
|
||||
<property name="type-hint">dialog</property>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="headerbar1">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?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">
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface domain="nm-applet">
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkAssistant">
|
||||
<child>
|
||||
<object class="GtkAssistantPage">
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="child">
|
||||
<object class="GtkNotebook" id="notebook1">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<child>
|
||||
<object class="GtkNotebook" id="notebook1">
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="border_width">12</property>
|
||||
<property name="title" translatable="yes">Office Runner</property>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="border_width">12</property>
|
||||
<property name="title" translatable="yes">Office Runner</property>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="3.0"/>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkOverlay">
|
||||
<child type="overlay">
|
||||
<object class="GtkButton" id="button">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="3.0"/>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkPaned">
|
||||
<property name="resize-end-child">0</property>
|
||||
<property name="shrink-start-child">0</property>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkPopover" id="popover">
|
||||
<property name="autohide">0</property>
|
||||
</object>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkScale">
|
||||
<property name="draw-value">1</property>
|
||||
<property name="visible">0</property>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="child">
|
||||
<object class="GtkBox" id="box1">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<child>
|
||||
<object class="GtkBox" id="box1">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="3.0"/>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkBox">
|
||||
<style>
|
||||
<class name="toolbar"/>
|
||||
|
1
testsuite/tools/validate-data/invalid5.expected
Normal file
1
testsuite/tools/validate-data/invalid5.expected
Normal file
@ -0,0 +1 @@
|
||||
invalid5.ui:3:1 Required GTK version 5.10, current version is 3.99
|
3
testsuite/tools/validate-data/invalid5.ui
Normal file
3
testsuite/tools/validate-data/invalid5.ui
Normal file
@ -0,0 +1,3 @@
|
||||
<interface>
|
||||
<requires lib="gtk" version="5.10"/>
|
||||
</interface>
|
0
testsuite/tools/validate-data/valid3.expected
Normal file
0
testsuite/tools/validate-data/valid3.expected
Normal file
5
testsuite/tools/validate-data/valid3.ui
Normal file
5
testsuite/tools/validate-data/valid3.ui
Normal file
@ -0,0 +1,5 @@
|
||||
<interface>
|
||||
<requires lib="gtk" version="3.99"/>
|
||||
<object class="GtkWindow">
|
||||
</object>
|
||||
</interface>
|
0
testsuite/tools/validate-data/valid4.expected
Normal file
0
testsuite/tools/validate-data/valid4.expected
Normal file
5
testsuite/tools/validate-data/valid4.ui
Normal file
5
testsuite/tools/validate-data/valid4.ui
Normal file
@ -0,0 +1,5 @@
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWindow">
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user