[gnome-chess] Remove New Game button from header bar



commit 1c38521a22f8e821162d83ad8495e88611815e1c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Thu Dec 24 11:00:51 2020 -0600

    Remove New Game button from header bar
    
    It takes too much space in narrow mode, and it no longer needs to be a
    button because we have a window menu again. I think I originally made
    this a button when removing the window menu, but nowadays the menu is
    back.

 data/gnome-chess.ui | 24 ++++--------------------
 1 file changed, 4 insertions(+), 20 deletions(-)
---
diff --git a/data/gnome-chess.ui b/data/gnome-chess.ui
index 3456432..26f7826 100644
--- a/data/gnome-chess.ui
+++ b/data/gnome-chess.ui
@@ -3,6 +3,10 @@
   <requires lib="gtk" version="4.0"/>
   <menu id="app-menu">
     <section>
+      <item>
+        <attribute name="label" translatable="yes">_New Game</attribute>
+        <attribute name="action">win.new</attribute>
+      </item>
       <item>
         <attribute name="label" translatable="yes">_Open Gameā€¦</attribute>
         <attribute name="action">win.open</attribute>
@@ -56,18 +60,6 @@
     <child type="titlebar">
       <object class="GtkHeaderBar" id="headerbar">
         <property name="can-focus">0</property>
-        <child>
-          <object class="GtkButton" id="new-game-button">
-            <property name="halign">center</property>
-            <property name="valign">center</property>
-            <property name="label" translatable="yes">_New Game</property>
-            <property name="use-underline">1</property>
-            <property name="action-name">win.new</property>
-            <style>
-              <class name="text-button"/>
-            </style>
-          </object>
-        </child>
         <child>
           <object class="GtkButton" id="undo-move-button">
             <property name="valign">center</property>
@@ -262,14 +254,6 @@
       </object>
     </child>
   </object>
-  <object class="GtkSizeGroup">
-    <property name="mode">vertical</property>
-    <widgets>
-      <widget name="new-game-button"/>
-      <widget name="undo-move-button"/>
-      <widget name="pause_button"/>
-    </widgets>
-  </object>
   <object class="GtkSizeGroup">
     <property name="mode">vertical</property>
     <widgets>


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