[gnome-nibbles/arnaudb/modernize-code] Indent UI files less.



commit 430a1934d256ad15e6d6e87a53031eb6ab0a7ed7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed May 27 18:30:16 2020 +0200

    Indent UI files less.

 data/controls-grid.ui    | 228 ++++++------
 data/nibbles.ui          | 948 +++++++++++++++++++++++------------------------
 data/player-score-box.ui |  72 ++--
 3 files changed, 624 insertions(+), 624 deletions(-)
---
diff --git a/data/controls-grid.ui b/data/controls-grid.ui
index 313dc4a..93f2be0 100644
--- a/data/controls-grid.ui
+++ b/data/controls-grid.ui
@@ -1,125 +1,125 @@
 <interface>
-    <template class="ControlsGrid" parent="GtkGrid">
+  <template class="ControlsGrid" parent="GtkGrid">
+    <property name="visible">True</property>
+    <property name="valign">center</property>
+    <property name="halign">center</property>
+    <property name="vexpand">True</property>
+    <property name="row_spacing">5</property>
+    <property name="column_spacing">5</property>
+    <child>
+      <object class="GtkLabel" id="name_label">
+        <property name="visible">True</property>
+        <property name="label" translatable="yes">Player</property>
+      </object>
+      <packing>
+        <property name="left-attach">0</property>
+        <property name="top-attach">0</property>
+        <property name="width">5</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkImage" id="arrow_up">
+        <property name="visible">True</property>
+      </object>
+      <packing>
+        <property name="left-attach">2</property>
+        <property name="top-attach">1</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkOverlay" id="move_up">
         <property name="visible">True</property>
-        <property name="valign">center</property>
-        <property name="halign">center</property>
-        <property name="vexpand">True</property>
-        <property name="row_spacing">5</property>
-        <property name="column_spacing">5</property>
-        <child>
-            <object class="GtkLabel" id="name_label">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes">Player</property>
-            </object>
-            <packing>
-                <property name="left-attach">0</property>
-                <property name="top-attach">0</property>
-                <property name="width">5</property>
-            </packing>
-        </child>
-        <child>
-            <object class="GtkImage" id="arrow_up">
-                <property name="visible">True</property>
-            </object>
-            <packing>
-                <property name="left-attach">2</property>
-                <property name="top-attach">1</property>
-            </packing>
-        </child>
-        <child>
-            <object class="GtkOverlay" id="move_up">
-                <property name="visible">True</property>
-                <child>
-                    <object class="GtkLabel" id="move_up_label">
-                        <property name="visible">True</property>
-                        <property name="height-request">45</property>
-                        <property name="width-request">45</property>
-                        <style><class name="controls-button"/></style>
-                    </object>
-                </child>
-            </object>
-            <packing>
-                <property name="left-attach">2</property>
-                <property name="top-attach">2</property>
-            </packing>
-        </child>
-        <child>
-            <object class="GtkImage" id="arrow_left">
-                <property name="visible">True</property>
-            </object>
-            <packing>
-                <property name="left-attach">0</property>
-                <property name="top-attach">3</property>
-            </packing>
-        </child>
-        <child>
-            <object class="GtkOverlay" id="move_left">
-                <property name="visible">True</property>
-                <child>
-                    <object class="GtkLabel" id="move_left_label">
-                        <property name="visible">True</property>
-                        <property name="height-request">45</property>
-                        <property name="width-request">45</property>
-                        <style><class name="controls-button"/></style>
-                    </object>
-                </child>
-            </object>
-            <packing>
-                <property name="left-attach">1</property>
-                <property name="top-attach">3</property>
-            </packing>
-        </child>
         <child>
-            <object class="GtkOverlay" id="move_right">
-                <property name="visible">True</property>
-                <child>
-                    <object class="GtkLabel" id="move_right_label">
-                        <property name="visible">True</property>
-                        <property name="height-request">45</property>
-                        <property name="width-request">45</property>
-                        <style><class name="controls-button"/></style>
-                    </object>
-                </child>
-            </object>
-            <packing>
-                <property name="left-attach">3</property>
-                <property name="top-attach">3</property>
-            </packing>
+          <object class="GtkLabel" id="move_up_label">
+            <property name="visible">True</property>
+            <property name="height-request">45</property>
+            <property name="width-request">45</property>
+            <style><class name="controls-button"/></style>
+          </object>
         </child>
+      </object>
+      <packing>
+        <property name="left-attach">2</property>
+        <property name="top-attach">2</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkImage" id="arrow_left">
+        <property name="visible">True</property>
+      </object>
+      <packing>
+        <property name="left-attach">0</property>
+        <property name="top-attach">3</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkOverlay" id="move_left">
+        <property name="visible">True</property>
         <child>
-            <object class="GtkImage" id="arrow_right">
-                <property name="visible">True</property>
-            </object>
-            <packing>
-                <property name="left-attach">4</property>
-                <property name="top-attach">3</property>
-            </packing>
+          <object class="GtkLabel" id="move_left_label">
+            <property name="visible">True</property>
+            <property name="height-request">45</property>
+            <property name="width-request">45</property>
+            <style><class name="controls-button"/></style>
+          </object>
         </child>
+      </object>
+      <packing>
+        <property name="left-attach">1</property>
+        <property name="top-attach">3</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkOverlay" id="move_right">
+        <property name="visible">True</property>
         <child>
-            <object class="GtkOverlay" id="move_down">
-                <property name="visible">True</property>
-                <child>
-                    <object class="GtkLabel" id="move_down_label">
-                        <property name="visible">True</property>
-                        <property name="height-request">45</property>
-                        <property name="width-request">45</property>
-                        <style><class name="controls-button"/></style>
-                    </object>
-                </child>
-            </object>
-            <packing>
-                <property name="left-attach">2</property>
-                <property name="top-attach">4</property>
-            </packing>
+          <object class="GtkLabel" id="move_right_label">
+            <property name="visible">True</property>
+            <property name="height-request">45</property>
+            <property name="width-request">45</property>
+            <style><class name="controls-button"/></style>
+          </object>
         </child>
+      </object>
+      <packing>
+        <property name="left-attach">3</property>
+        <property name="top-attach">3</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkImage" id="arrow_right">
+        <property name="visible">True</property>
+      </object>
+      <packing>
+        <property name="left-attach">4</property>
+        <property name="top-attach">3</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkOverlay" id="move_down">
+        <property name="visible">True</property>
         <child>
-            <object class="GtkImage" id="arrow_down">
-                <property name="visible">True</property>
-            </object>
-            <packing>
-                <property name="left-attach">2</property>
-                <property name="top-attach">5</property>
-            </packing>
+          <object class="GtkLabel" id="move_down_label">
+            <property name="visible">True</property>
+            <property name="height-request">45</property>
+            <property name="width-request">45</property>
+            <style><class name="controls-button"/></style>
+          </object>
         </child>
-    </template>
+      </object>
+      <packing>
+        <property name="left-attach">2</property>
+        <property name="top-attach">4</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkImage" id="arrow_down">
+        <property name="visible">True</property>
+      </object>
+      <packing>
+        <property name="left-attach">2</property>
+        <property name="top-attach">5</property>
+      </packing>
+    </child>
+  </template>
 </interface>
diff --git a/data/nibbles.ui b/data/nibbles.ui
index d3cc2eb..38cf6b4 100644
--- a/data/nibbles.ui
+++ b/data/nibbles.ui
@@ -1,502 +1,502 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-    <menu id="app-menu">
-        <section>
-            <item>
-                <attribute name="label" translatable="yes">_Scores</attribute>
-                <attribute name="action">win.scores</attribute>
-            </item>
-        </section>
-        <section>
-            <item>
-                <attribute name="label" translatable="yes">_Preferences</attribute>
-                <attribute name="action">win.preferences</attribute>
-            </item>
-            <item>
-                <attribute name="label" translatable="yes">_Help</attribute>
-                <attribute name="action">app.help</attribute>
-                <attribute name="accel">F1</attribute>
-            </item>
-            <item>
-                <attribute name="label" translatable="yes">_About Nibbles</attribute>
-                <attribute name="action">app.about</attribute>
-            </item>
-        </section>
-    </menu>
-    <template class="NibblesWindow" parent="GtkApplicationWindow">
+  <menu id="app-menu">
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Scores</attribute>
+        <attribute name="action">win.scores</attribute>
+      </item>
+    </section>
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Preferences</attribute>
+        <attribute name="action">win.preferences</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">_Help</attribute>
+        <attribute name="action">app.help</attribute>
+        <attribute name="accel">F1</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">_About Nibbles</attribute>
+        <attribute name="action">app.about</attribute>
+      </item>
+    </section>
+  </menu>
+  <template class="NibblesWindow" parent="GtkApplicationWindow">
+    <property name="title" translatable="yes">Nibbles</property>
+    <child type="titlebar">
+      <object class="GtkHeaderBar" id="headerbar">
+        <property name="visible">True</property>
         <property name="title" translatable="yes">Nibbles</property>
-        <child type="titlebar">
-            <object class="GtkHeaderBar" id="headerbar">
+        <property name="show-close-button">True</property>
+        <child>
+          <object class="GtkButton" id="new_game_button">
+            <property name="visible">False</property>
+            <property name="use-underline">True</property>
+            <property name="label" translatable="yes">_New Game</property>
+            <property name="action-name">win.new-game</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="pause_button">
+            <property name="visible">False</property>
+            <property name="use-underline">True</property>
+            <property name="label" translatable="yes">_Pause</property>
+            <property name="action-name">win.pause</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkMenuButton" id="menu_button">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="menu-model">app-menu</property>
+            <child>
+              <object class="GtkImage">
                 <property name="visible">True</property>
-                <property name="title" translatable="yes">Nibbles</property>
-                <property name="show-close-button">True</property>
-                <child>
-                    <object class="GtkButton" id="new_game_button">
-                        <property name="visible">False</property>
-                        <property name="use-underline">True</property>
-                        <property name="label" translatable="yes">_New Game</property>
-                        <property name="action-name">win.new-game</property>
-                    </object>
-                    <packing>
-                        <property name="pack-type">start</property>
-                    </packing>
-                </child>
+                <property name="icon_name">open-menu-symbolic</property>
+                <property name="icon_size">1</property>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="pack_type">end</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+    <child>
+      <object class="GtkOverlay" id="overlay">
+        <property name="visible">True</property>
+        <property name="can-default">True</property>
+        <child>
+          <object class="GtkBox" id="vbox">
+            <property name="visible">True</property>
+            <property name="orientation">vertical</property>
+            <style><class name="window-background"/></style>
+            <child>
+              <object class="GtkStack" id="main_stack">
+                <property name="visible">True</property>
+                <property name="homogeneous">True</property>
+                <property name="margin">25</property>
+                <property name="expand">True</property>
+                <property name="transition-type">5</property> <!-- SLIDE_UP -->
+                <property name="transition-duration">500</property>
                 <child>
-                    <object class="GtkButton" id="pause_button">
-                        <property name="visible">False</property>
+                  <object class="GtkBox" id="first_run">
+                    <property name="visible">True</property>
+                    <property name="orientation">vertical</property>
+                    <property name="width-request">350</property>
+                    <property name="height-request">350</property>
+                    <child>
+                      <object class="GtkButton">
+                        <property name="visible">True</property>
                         <property name="use-underline">True</property>
-                        <property name="label" translatable="yes">_Pause</property>
-                        <property name="action-name">win.pause</property>
-                    </object>
-                    <packing>
+                        <property name="label" translatable="yes">Let’s _Play</property>
+                        <property name="action-name">win.show-new-game-screen</property>
+                        <property name="halign">center</property>
+                        <property name="valign">end</property>
+                        <property name="width-request">140</property>
+                        <property name="height-request">40</property>
+                        <style>
+                          <class name="suggested-action"/>
+                          <class name="play"/>
+                        </style>
+                      </object>
+                      <packing>
                         <property name="pack-type">end</property>
-                    </packing>
-                </child>
-                <child>
-                    <object class="GtkMenuButton" id="menu_button">
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkBox">
                         <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="menu-model">app-menu</property>
+                        <property name="orientation">vertical</property>
+                        <property name="homogeneous">True</property>
+                        <property name="valign">center</property>
+                        <property name="vexpand">True</property>
                         <child>
-                            <object class="GtkImage">
-                                <property name="visible">True</property>
-                                <property name="icon_name">open-menu-symbolic</property>
-                                <property name="icon_size">1</property>
-                            </object>
+                          <object class="GtkImage">
+                            <property name="visible">True</property>
+                            <property name="icon-name">org.gnome.Nibbles</property>
+                            <property name="icon-size">6</property> <!-- DIALOG -->
+                            <property name="pixel-size">96</property>
+                          </object>
+                          <packing>
+                            <property name="pack-type">start</property>
+                          </packing>
                         </child>
-                    </object>
-                    <packing>
-                        <property name="pack_type">end</property>
-                        <property name="position">1</property>
-                    </packing>
+                        <child>
+                          <object class="GtkLabel">
+                            <property name="visible">True</property>
+                            <property name="label" translatable="yes">Welcome, worms.</property>
+                            <style><class name="menu-title"/></style>
+                          </object>
+                          <packing>
+                            <property name="pack-type">start</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkLabel">
+                            <property name="visible">True</property>
+                            <property name="label" translatable="yes">Eat the treats before the other worms, 
but don’t hit anything!</property>
+                            <property name="valign">1</property> <!-- START -->
+                            <style><class name="tip"/></style>
+                          </object>
+                          <packing>
+                            <property name="pack-type">start</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="pack-type">end</property>
+                      </packing>
+                    </child>
+                  </object> <!-- End of first_run -->
+                  <packing>
+                    <property name="name">first_run</property>
+                  </packing>
                 </child>
-            </object>
-        </child>
-        <child>
-            <object class="GtkOverlay" id="overlay">
-                <property name="visible">True</property>
-                <property name="can-default">True</property>
                 <child>
-                    <object class="GtkBox" id="vbox">
+                  <object class="GtkBox" id="number_of_players">
+                    <property name="visible">True</property>
+                    <property name="orientation">vertical</property>
+                    <property name="halign">center</property>
+                    <property name="width-request">644</property>
+                    <child>
+                      <object class="GtkBox">
                         <property name="visible">True</property>
                         <property name="orientation">vertical</property>
-                        <style><class name="window-background"/></style>
+                        <property name="valign">center</property>
+                        <property name="spacing">60</property>
+                        <child>
+                          <object class="GtkBox">
+                            <property name="visible">True</property>
+                            <property name="orientation">vertical</property>
+                            <property name="spacing">10</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">True</property>
+                                <property name="label" translatable="yes">Number of players</property>
+                                <style><class name="menu-title"/></style>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="GtkBox">
+                            <property name="visible">True</property>
+                            <property name="orientation">vertical</property>
+                            <property name="spacing">10</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">True</property>
+                                <property name="label" translatable="yes">Select the number of human 
players.</property>
+                              </object>
+                            </child>
+                            <child>
+                              <object class="GtkBox" id="number_of_players_box">
+                                <property name="visible">True</property>
+                                <property name="orientation">horizontal</property>
+                                <property name="valign">center</property>
+                                <property name="halign">center</property>
+                                <property name="spacing">10</property>
+                                <property name="vexpand">True</property>
+                                <child>
+                                  <object class="GtkToggleButton" id="players1">
+                                    <property name="visible">True</property>
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_1</property>
+                                    <property name="active">True</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkToggleButton" id="players2">
+                                    <property name="visible">True</property>
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_2</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkToggleButton" id="players3">
+                                    <property name="visible">True</property>
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_3</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkToggleButton" id="players4">
+                                    <property name="visible">True</property>
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_4</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
+                                </child>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
                         <child>
-                            <object class="GtkStack" id="main_stack">
+                          <object class="GtkBox">
+                            <property name="visible">True</property>
+                            <property name="orientation">vertical</property>
+                            <property name="spacing">10</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">True</property>
+                                <property name="label" translatable="yes">Select the number of computer 
players.</property>
+                              </object>
+                            </child>
+                            <child>
+                              <object class="GtkBox" id="number_of_ai_box">
                                 <property name="visible">True</property>
-                                <property name="homogeneous">True</property>
-                                <property name="margin">25</property>
-                                <property name="expand">True</property>
-                                <property name="transition-type">5</property> <!-- SLIDE_UP -->
-                                <property name="transition-duration">500</property>
+                                <property name="orientation">horizontal</property>
+                                <property name="valign">center</property>
+                                <property name="halign">center</property>
+                                <property name="spacing">10</property>
+                                <property name="vexpand">True</property>
+                                <child>
+                                  <object class="GtkToggleButton" id="ai0">
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_0</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
+                                </child>
                                 <child>
-                                    <object class="GtkBox" id="first_run">
-                                        <property name="visible">True</property>
-                                        <property name="orientation">vertical</property>
-                                        <property name="width-request">350</property>
-                                        <property name="height-request">350</property>
-                                        <child>
-                                            <object class="GtkButton">
-                                                <property name="visible">True</property>
-                                                <property name="use-underline">True</property>
-                                                <property name="label" translatable="yes">Let’s 
_Play</property>
-                                                <property 
name="action-name">win.show-new-game-screen</property>
-                                                <property name="halign">center</property>
-                                                <property name="valign">end</property>
-                                                <property name="width-request">140</property>
-                                                <property name="height-request">40</property>
-                                                <style>
-                                                    <class name="suggested-action"/>
-                                                    <class name="play"/>
-                                                </style>
-                                            </object>
-                                            <packing>
-                                                <property name="pack-type">end</property>
-                                            </packing>
-                                        </child>
-                                        <child>
-                                            <object class="GtkBox">
-                                                <property name="visible">True</property>
-                                                <property name="orientation">vertical</property>
-                                                <property name="homogeneous">True</property>
-                                                <property name="valign">center</property>
-                                                <property name="vexpand">True</property>
-                                                <child>
-                                                    <object class="GtkImage">
-                                                        <property name="visible">True</property>
-                                                        <property 
name="icon-name">org.gnome.Nibbles</property>
-                                                        <property name="icon-size">6</property> <!-- DIALOG 
-->
-                                                        <property name="pixel-size">96</property>
-                                                    </object>
-                                                    <packing>
-                                                        <property name="pack-type">start</property>
-                                                    </packing>
-                                                </child>
-                                                <child>
-                                                    <object class="GtkLabel">
-                                                        <property name="visible">True</property>
-                                                        <property name="label" translatable="yes">Welcome, 
worms.</property>
-                                                        <style><class name="menu-title"/></style>
-                                                    </object>
-                                                    <packing>
-                                                        <property name="pack-type">start</property>
-                                                    </packing>
-                                                </child>
-                                                <child>
-                                                    <object class="GtkLabel">
-                                                        <property name="visible">True</property>
-                                                        <property name="label" translatable="yes">Eat the 
treats before the other worms, but don’t hit anything!</property>
-                                                        <property name="valign">1</property> <!-- START -->
-                                                        <style><class name="tip"/></style>
-                                                    </object>
-                                                    <packing>
-                                                        <property name="pack-type">start</property>
-                                                    </packing>
-                                                </child>
-                                            </object>
-                                            <packing>
-                                                <property name="pack-type">end</property>
-                                            </packing>
-                                        </child>
-                                    </object> <!-- End of first_run -->
-                                    <packing>
-                                        <property name="name">first_run</property>
-                                    </packing>
+                                  <object class="GtkToggleButton" id="ai1">
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_1</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
                                 </child>
                                 <child>
-                                    <object class="GtkBox" id="number_of_players">
-                                        <property name="visible">True</property>
-                                        <property name="orientation">vertical</property>
-                                        <property name="halign">center</property>
-                                        <property name="width-request">644</property>
-                                        <child>
-                                            <object class="GtkBox">
-                                                <property name="visible">True</property>
-                                                <property name="orientation">vertical</property>
-                                                <property name="valign">center</property>
-                                                <property name="spacing">60</property>
-                                                <child>
-                                                    <object class="GtkBox">
-                                                        <property name="visible">True</property>
-                                                        <property name="orientation">vertical</property>
-                                                        <property name="spacing">10</property>
-                                                        <child>
-                                                            <object class="GtkLabel">
-                                                                <property name="visible">True</property>
-                                                                <property name="label" 
translatable="yes">Number of players</property>
-                                                                <style><class name="menu-title"/></style>
-                                                            </object>
-                                                        </child>
-                                                    </object>
-                                                </child>
-                                                <child>
-                                                    <object class="GtkBox">
-                                                        <property name="visible">True</property>
-                                                        <property name="orientation">vertical</property>
-                                                        <property name="spacing">10</property>
-                                                        <child>
-                                                            <object class="GtkLabel">
-                                                                <property name="visible">True</property>
-                                                                <property name="label" 
translatable="yes">Select the number of human players.</property>
-                                                            </object>
-                                                        </child>
-                                                        <child>
-                                                            <object class="GtkBox" 
id="number_of_players_box">
-                                                                <property name="visible">True</property>
-                                                                <property 
name="orientation">horizontal</property>
-                                                                <property name="valign">center</property>
-                                                                <property name="halign">center</property>
-                                                                <property name="spacing">10</property>
-                                                                <property name="vexpand">True</property>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" 
id="players1">
-                                                                        <property 
name="visible">True</property>
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_1</property>
-                                                                        <property 
name="active">True</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" 
id="players2">
-                                                                        <property 
name="visible">True</property>
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_2</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" 
id="players3">
-                                                                        <property 
name="visible">True</property>
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_3</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" 
id="players4">
-                                                                        <property 
name="visible">True</property>
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_4</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                            </object>
-                                                        </child>
-                                                    </object>
-                                                </child>
-                                                <child>
-                                                    <object class="GtkBox">
-                                                        <property name="visible">True</property>
-                                                        <property name="orientation">vertical</property>
-                                                        <property name="spacing">10</property>
-                                                        <child>
-                                                            <object class="GtkLabel">
-                                                                <property name="visible">True</property>
-                                                                <property name="label" 
translatable="yes">Select the number of computer players.</property>
-                                                            </object>
-                                                        </child>
-                                                        <child>
-                                                            <object class="GtkBox" id="number_of_ai_box">
-                                                                <property name="visible">True</property>
-                                                                <property 
name="orientation">horizontal</property>
-                                                                <property name="valign">center</property>
-                                                                <property name="halign">center</property>
-                                                                <property name="spacing">10</property>
-                                                                <property name="vexpand">True</property>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" id="ai0">
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_0</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" id="ai1">
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_1</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" id="ai2">
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_2</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" id="ai3">
-                                                                        <property 
name="visible">True</property>
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_3</property>
-                                                                        <property 
name="active">True</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" id="ai4">
-                                                                        <property 
name="visible">True</property>
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_4</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                                <child>
-                                                                    <object class="GtkToggleButton" id="ai5">
-                                                                        <property 
name="visible">True</property>
-                                                                        <property 
name="use-underline">True</property>
-                                                                        <property name="label">_5</property>
-                                                                        <style>
-                                                                            <class name="number-box"/>
-                                                                        </style>
-                                                                    </object>
-                                                                    <packing>
-                                                                        <property 
name="pack-type">start</property>
-                                                                    </packing>
-                                                                </child>
-                                                            </object>
-                                                        </child>
-                                                    </object>
-                                                </child>
-                                            </object>
-                                            <packing>
-                                                <property name="pack-type">start</property>
-                                            </packing>
-                                        </child>
-                                        <child>
-                                            <object class="GtkButton" id="next_button">
-                                                <property name="visible">True</property>
-                                                <property name="can-default">True</property>
-                                                <property name="use-underline">True</property>
-                                                <property name="label" translatable="yes">_Next</property>
-                                                <property 
name="action-name">win.show-controls-screen</property>
-                                                <property name="width-request">116</property>
-                                                <property name="height-request">34</property>
-                                                <property name="halign">center</property>
-                                                <style>
-                                                    <class name="suggested-action"/>
-                                                    <class name="play"/>
-                                                </style>
-                                            </object>
-                                            <packing>
-                                                <property name="pack-type">end</property>
-                                            </packing>
-                                        </child>
-                                    </object> <!-- End of number_of_players -->
-                                    <packing>
-                                        <property name="name">number_of_players</property>
-                                    </packing>
+                                  <object class="GtkToggleButton" id="ai2">
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_2</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
                                 </child>
                                 <child>
-                                    <object class="GtkBox">
-                                        <property name="visible">True</property>
-                                        <property name="orientation">vertical</property>
-                                        <child>
-                                            <object class="GtkBox">
-                                                <property name="visible">True</property>
-                                                <property name="orientation">vertical</property>
-                                                <property name="valign">center</property>
-                                                <property name="spacing">25</property>
-                                                <child>
-                                                    <object class="GtkLabel">
-                                                        <property name="visible">True</property>
-                                                        <property name="label" 
translatable="yes">Controls</property>
-                                                        <property name="valign">center</property>
-                                                        <style><class name="menu-title"/></style>
-                                                    </object>
-                                                </child>
-                                                <child>
-                                                    <object class="GtkBox" id="grids_box">
-                                                        <property name="visible">True</property>
-                                                        <property name="orientation">horizontal</property>
-                                                        <property name="homogeneous">True</property>
-                                                        <property name="valign">center</property>
-                                                    </object>
-                                                </child>
-                                            </object>
-                                        </child>
-                                        <child>
-                                            <object class="GtkButton" id="start_button">
-                                                <property name="visible">True</property>
-                                                <property name="can-default">True</property>
-                                                <property name="use-underline">True</property>
-                                                <property name="label" translatable="yes">_Start</property>
-                                                <property name="action-name">win.start-game</property>
-                                                <property name="halign">center</property>
-                                                <property name="width-request">116</property>
-                                                <property name="height-request">34</property>
-                                                <style>
-                                                    <class name="suggested-action"/>
-                                                    <class name="play"/>
-                                                </style>
-                                            </object>
-                                            <packing>
-                                                <property name="pack-type">end</property>
-                                            </packing>
-                                        </child>
-                                    </object>
-                                    <packing>
-                                        <property name="name">controls</property>
-                                    </packing>
+                                  <object class="GtkToggleButton" id="ai3">
+                                    <property name="visible">True</property>
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_3</property>
+                                    <property name="active">True</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
                                 </child>
                                 <child>
-                                    <object class="GtkBox" id="game_box">
-                                        <property name="visible">True</property>
-                                        <property name="orientation">vertical</property>
-                                        <child>
-                                            <object class="GtkBox" id="statusbar">
-                                                <property name="visible">True</property>
-                                                <property name="halign">center</property>
-                                                <child>
-                                                    <object class="GtkStack" id="statusbar_stack">
-                                                        <property name="visible">True</property>
-                                                        <child>
-                                                            <object class="GtkLabel" id="countdown">
-                                                                <property name="visible">True</property>
-                                                                <property name="label">3</property>
-                                                                <property name="halign">center</property>
-                                                                <style><class name="countdown"/></style>
-                                                            </object>
-                                                            <packing>
-                                                                <property name="name">countdown</property>
-                                                            </packing>
-                                                        </child>
-                                                        <child>
-                                                            <object class="GtkLabel">
-                                                                <property name="visible">True</property>
-                                                                <property name="label" 
translatable="yes">Paused</property>
-                                                                <style><class name="menu-title"/></style>
-                                                            </object>
-                                                            <packing>
-                                                                <property name="name">paused</property>
-                                                            </packing>
-                                                        </child>
-                                                    </object>
-                                                </child>
-                                            </object>
-                                            <packing>
-                                                <property name="pack-type">end</property>
-                                            </packing>
-                                        </child>
-                                    </object>
-                                    <packing>
-                                        <property name="name">game_box</property>
-                                    </packing>
+                                  <object class="GtkToggleButton" id="ai4">
+                                    <property name="visible">True</property>
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_4</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
                                 </child>
-                            </object> <!-- End of main_stack -->
-                            <packing>
-                                <property name="pack-type">start</property>
-                            </packing>
+                                <child>
+                                  <object class="GtkToggleButton" id="ai5">
+                                    <property name="visible">True</property>
+                                    <property name="use-underline">True</property>
+                                    <property name="label">_5</property>
+                                    <style>
+                                      <class name="number-box"/>
+                                    </style>
+                                  </object>
+                                  <packing>
+                                    <property name="pack-type">start</property>
+                                  </packing>
+                                </child>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="pack-type">start</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkButton" id="next_button">
+                        <property name="visible">True</property>
+                        <property name="can-default">True</property>
+                        <property name="use-underline">True</property>
+                        <property name="label" translatable="yes">_Next</property>
+                        <property name="action-name">win.show-controls-screen</property>
+                        <property name="width-request">116</property>
+                        <property name="height-request">34</property>
+                        <property name="halign">center</property>
+                        <style>
+                          <class name="suggested-action"/>
+                          <class name="play"/>
+                        </style>
+                      </object>
+                      <packing>
+                        <property name="pack-type">end</property>
+                      </packing>
+                    </child>
+                  </object> <!-- End of number_of_players -->
+                  <packing>
+                    <property name="name">number_of_players</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkBox">
+                    <property name="visible">True</property>
+                    <property name="orientation">vertical</property>
+                    <child>
+                      <object class="GtkBox">
+                        <property name="visible">True</property>
+                        <property name="orientation">vertical</property>
+                        <property name="valign">center</property>
+                        <property name="spacing">25</property>
+                        <child>
+                          <object class="GtkLabel">
+                            <property name="visible">True</property>
+                            <property name="label" translatable="yes">Controls</property>
+                            <property name="valign">center</property>
+                            <style><class name="menu-title"/></style>
+                          </object>
                         </child>
-                    </object> <!-- End of vbox -->
+                        <child>
+                          <object class="GtkBox" id="grids_box">
+                            <property name="visible">True</property>
+                            <property name="orientation">horizontal</property>
+                            <property name="homogeneous">True</property>
+                            <property name="valign">center</property>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkButton" id="start_button">
+                        <property name="visible">True</property>
+                        <property name="can-default">True</property>
+                        <property name="use-underline">True</property>
+                        <property name="label" translatable="yes">_Start</property>
+                        <property name="action-name">win.start-game</property>
+                        <property name="halign">center</property>
+                        <property name="width-request">116</property>
+                        <property name="height-request">34</property>
+                        <style>
+                          <class name="suggested-action"/>
+                          <class name="play"/>
+                        </style>
+                      </object>
+                      <packing>
+                        <property name="pack-type">end</property>
+                      </packing>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="name">controls</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkBox" id="game_box">
+                    <property name="visible">True</property>
+                    <property name="orientation">vertical</property>
+                    <child>
+                      <object class="GtkBox" id="statusbar">
+                        <property name="visible">True</property>
+                        <property name="halign">center</property>
+                        <child>
+                          <object class="GtkStack" id="statusbar_stack">
+                            <property name="visible">True</property>
+                            <child>
+                              <object class="GtkLabel" id="countdown">
+                                <property name="visible">True</property>
+                                <property name="label">3</property>
+                                <property name="halign">center</property>
+                                <style><class name="countdown"/></style>
+                              </object>
+                              <packing>
+                                <property name="name">countdown</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">True</property>
+                                <property name="label" translatable="yes">Paused</property>
+                                <style><class name="menu-title"/></style>
+                              </object>
+                              <packing>
+                                <property name="name">paused</property>
+                              </packing>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="pack-type">end</property>
+                      </packing>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="name">game_box</property>
+                  </packing>
                 </child>
-            </object>
+              </object> <!-- End of main_stack -->
+              <packing>
+                <property name="pack-type">start</property>
+              </packing>
+            </child>
+          </object> <!-- End of vbox -->
         </child>
-    </template> <!-- End of nibbles_app -->
+      </object>
+    </child>
+  </template> <!-- End of nibbles_app -->
 </interface>
diff --git a/data/player-score-box.ui b/data/player-score-box.ui
index 51f110a..c498000 100644
--- a/data/player-score-box.ui
+++ b/data/player-score-box.ui
@@ -1,44 +1,44 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-    <template class="PlayerScoreBox" parent="GtkBox">
+  <template class="PlayerScoreBox" parent="GtkBox">
+    <property name="visible">True</property>
+    <property name="orientation">vertical</property>
+    <property name="spacing">5</property>
+    <child>
+      <object class="GtkBox">
         <property name="visible">True</property>
-        <property name="orientation">vertical</property>
-        <property name="spacing">5</property>
+        <property name="orientation">horizontal</property>
+        <property name="spacing">4</property>
         <child>
-            <object class="GtkBox">
-                <property name="visible">True</property>
-                <property name="orientation">horizontal</property>
-                <property name="spacing">4</property>
-                <child>
-                    <object class="GtkLabel" id="name_label">
-                        <property name="visible">True</property>
-                        <property name="label" translatable="yes">Worm</property>
-                    </object>
-                    <packing>
-                        <property name="pack-type">start</property>
-                    </packing>
-                </child>
-                <child>
-                    <object class="GtkLabel" id="score_label">
-                        <property name="visible">True</property>
-                        <property name="label">0</property>
-                        <property name="width-request">36</property>
-                        <property name="xalign">1</property>
-                    </object>
-                    <packing>
-                        <property name="pack-type">end</property>
-                    </packing>
-                </child>
-            </object>
-            <packing>
-                <property name="pack-type">start</property>
-            </packing>
+          <object class="GtkLabel" id="name_label">
+            <property name="visible">True</property>
+            <property name="label" translatable="yes">Worm</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
         </child>
         <child>
-            <object class="GtkGrid" id="lives_grid">
-                <property name="visible">True</property>
-                <property name="column-spacing">2</property>
-            </object>
+          <object class="GtkLabel" id="score_label">
+            <property name="visible">True</property>
+            <property name="label">0</property>
+            <property name="width-request">36</property>
+            <property name="xalign">1</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
         </child>
-    </template>
+      </object>
+      <packing>
+        <property name="pack-type">start</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkGrid" id="lives_grid">
+        <property name="visible">True</property>
+        <property name="column-spacing">2</property>
+      </object>
+    </child>
+  </template>
 </interface>


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