From 6b17f22ba8ac1284a4c27bab8db6c2148caac57f Mon Sep 17 00:00:00 2001
From: Bruce Cowan <bruce@bcowan.me.uk>
Date: Fri, 11 Jun 2021 13:59:24 +0100
Subject: [PATCH] Move adjustment and list store to where they're used in
 builder file

---
 data/interface.ui | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/data/interface.ui b/data/interface.ui
index e76eac0..035af00 100644
--- a/data/interface.ui
+++ b/data/interface.ui
@@ -6,15 +6,6 @@
 -->
 <interface>
   <requires lib="gtk" version="4.0"/>
-  <object class="GtkAdjustment" id="adjustment1">
-    <property name="upper">200</property>
-    <property name="step_increment">1</property>
-  </object>
-  <object class="RugbyListStore" id="list_store">
-    <binding name="score">
-      <lookup name="value">scorespin</lookup>
-    </binding>
-  </object>
   <menu id="menu">
     <section>
       <item>
@@ -39,7 +30,13 @@
           <object class="GtkListView" id="listview">
             <property name="model">
               <object class="GtkNoSelection">
-                <property name="model">list_store</property>
+                <property name="model">
+                  <object class="RugbyListStore">
+                    <binding name="score">
+                      <lookup name="value">scorespin</lookup>
+                    </binding>
+                  </object>
+                </property>
               </object>
             </property>
             <property name="factory">
@@ -58,7 +55,12 @@
       <object class="GtkHeaderBar">
         <child>
           <object class="GtkSpinButton" id="scorespin">
-            <property name="adjustment">adjustment1</property>
+            <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>
-- 
GitLab