mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
d6a0948182
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.
204 lines
9.3 KiB
XML
204 lines
9.3 KiB
XML
<?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>
|
|
<property name="resizable">0</property>
|
|
<property name="window_position">center</property>
|
|
<property name="child">
|
|
<object class="GtkBox" id="box1">
|
|
<property name="margin-start">12</property>
|
|
<property name="margin-end">12</property>
|
|
<property name="margin_bottom">12</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">12</property>
|
|
<child>
|
|
<object class="GtkNotebook" id="notebook1">
|
|
<property name="show_tabs">0</property>
|
|
<property name="show_border">0</property>
|
|
<child>
|
|
<object class="GtkNotebookPage">
|
|
<property name="child">
|
|
<object class="GtkGrid" id="grid1">
|
|
<property name="row_spacing">12</property>
|
|
<property name="column_spacing">12</property>
|
|
<child>
|
|
<object class="GtkImage" id="run_image">
|
|
<property name="vexpand">1</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label5">
|
|
<property name="valign">start</property>
|
|
<property name="hexpand">1</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes"> • Click the "Run!" button, and then dash to your desk or meeting.
|
|
• You are allowed to close your laptop lid to run faster
|
|
</property>
|
|
<property name="use_markup">1</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label7">
|
|
<property name="label" translatable="yes">Rules</property>
|
|
<attributes>
|
|
<attribute name="scale" value="2"></attribute>
|
|
</attributes>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
<property name="tab">
|
|
<object class="GtkLabel" id="label1">
|
|
<property name="label" translatable="no">page 1</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkNotebookPage">
|
|
<property name="position">1</property>
|
|
<property name="child">
|
|
<object class="GtkGrid" id="grid2">
|
|
<property name="row_spacing">12</property>
|
|
<property name="column_spacing">12</property>
|
|
<child>
|
|
<object class="GtkImage" id="time_image">
|
|
<property name="vexpand">1</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="time_label">
|
|
<property name="hexpand">1</property>
|
|
<property name="vexpand">1</property>
|
|
<property name="label" translatable="no">00:00.00</property>
|
|
<attributes>
|
|
<attribute name="scale" value="10"></attribute>
|
|
<attribute name="font-features" value="tnum 1"></attribute>
|
|
</attributes>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
<property name="tab">
|
|
<object class="GtkLabel" id="label2">
|
|
<property name="label" translatable="no">page 2</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkNotebookPage">
|
|
<property name="position">2</property>
|
|
<property name="child">
|
|
<object class="GtkGrid" id="grid3">
|
|
<property name="hexpand">1</property>
|
|
<property name="row_spacing">12</property>
|
|
<property name="column_spacing">12</property>
|
|
<child>
|
|
<object class="GtkImage" id="trophy_image">
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="box2">
|
|
<property name="valign">center</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkLabel" id="result_label">
|
|
<property name="valign">start</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="no">Silver Trophy!</property>
|
|
<property name="use_markup">1</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"></attribute>
|
|
<attribute name="scale" value="1.5"></attribute>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="current_time_label">
|
|
<property name="valign">start</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="no">You managed to finish the route with the 2nd best time ever, <b>48.15 seconds!</b> </property>
|
|
<property name="use_markup">1</property>
|
|
<property name="wrap">1</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="better_time_label">
|
|
<property name="valign">start</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="no">Only <b>3.75 seconds</b> separate you from the gold trophy!</property>
|
|
<property name="use_markup">1</property>
|
|
<property name="wrap">1</property>
|
|
</object>
|
|
</child>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
<property name="tab">
|
|
<object class="GtkLabel" id="label3">
|
|
<property name="label" translatable="no">page 3</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="run_button">
|
|
<property name="receives_default">1</property>
|
|
<property name="hexpand">1</property>
|
|
<property name="vexpand">1</property>
|
|
<property name="use_action_appearance">False</property>
|
|
<child>
|
|
<object class="GtkLabel" id="run_button_label">
|
|
<property name="label" translatable="yes">Run!</property>
|
|
<attributes>
|
|
<attribute name="scale" value="3"></attribute>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</interface>
|