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.
This commit is contained in:
parent
929ad02976
commit
1c38521a22
1 changed files with 4 additions and 20 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue