<?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-FileCopyrightText: 2012-2021 Bruce Cowan <bruce@bcowan.me.uk> SPDX-License-Identifier: GPL-3.0-or-later --> <interface> <requires lib="gtk" version="4.0"/> <menu id="menu"> <section> <item> <attribute name="label" translatable="yes">_Preferences</attribute> <attribute name="action">app.prefs</attribute> </item> </section> <section> <item> <attribute name="label" translatable="yes">_About Rugby</attribute> <attribute name="action">app.about</attribute> </item> </section> </menu> <template class="RugbyAppWindow" parent="GtkApplicationWindow"> <property name="title" translatable="yes">Rugby</property> <property name="default-height">600</property> <property name="default-width">400</property> <child> <object class="GtkScrolledWindow"> <child> <object class="GtkListView" id="listview"> <property name="model"> <object class="GtkNoSelection"> <property name="model"> <object class="RugbyListStore"> <binding name="score"> <lookup name="value">scorespin</lookup> </binding> </object> </property> </object> </property> <property name="factory"> <object class="GtkBuilderListItemFactory"> <property name="resource">/uk/me/bcowan/rugby/score-item.ui</property> </object> </property> <style> <class name="rich-list"/> </style> </object> </child> </object> </child> <child type="titlebar"> <object class="GtkHeaderBar"> <child> <object class="GtkSpinButton" id="scorespin"> <property name="adjustment"> <object class="GtkAdjustment"> <property name="step-increment">1</property> <property name="upper">200</property> </object> </property> <property name="focusable">1</property> <property name="tooltip-text">Score</property> </object> </child> <child type="title"> <object class="GtkLabel"> <property name="label">Rugby</property> <style> <class name="title"/> </style> </object> </child> <child type="end"> <object class="GtkMenuButton" id="menu_button"> <property name="direction">none</property> <property name="menu_model">menu</property> </object> </child> </object> </child> </template> </interface>