Move open, save, and resign game buttons into menu.

Adds a separator in the menu to help separate them from the other
program options.
This commit is contained in:
Brian Daniels 2019-09-08 18:28:05 -05:00 committed by Michael Catanzaro
parent 6918723d47
commit 0549620713

View file

@ -2,11 +2,29 @@
<interface>
<!-- interface-requires gtk+ 3.10 -->
<menu id="app-menu">
<section>
<item>
<attribute name="label" translatable="yes">_Open Game</attribute>
<attribute name="action">win.open</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Save Game</attribute>
<attribute name="action">win.save-as</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Resign Game</attribute>
<attribute name="action">win.resign</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">win.show-help-overlay</attribute>
@ -87,69 +105,6 @@
</child>
</object>
</child>
<child>
<object class="GtkButton" id="resign_game_button">
<property name="visible">True</property>
<property name="valign">center</property>
<property name="action-name">win.resign</property>
<property name="tooltip-text" translatable="yes">Resign to your opponent</property>
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage" id="resign_image">
<property name="visible">True</property>
<property name="icon_size">1</property>
<property name="icon_name">face-sad-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
<child>
<object class="GtkButton" id="save_game_button">
<property name="visible">True</property>
<property name="valign">center</property>
<property name="action-name">win.save-as</property>
<property name="tooltip-text" translatable="yes">Save the current game</property>
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage" id="save_game_image">
<property name="visible">True</property>
<property name="icon_size">1</property>
<property name="icon_name">document-save-as-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
<child>
<object class="GtkButton" id="open_game_button">
<property name="visible">True</property>
<property name="valign">center</property>
<property name="action-name">win.open</property>
<property name="tooltip-text" translatable="yes">Open a saved game</property>
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage" id="open_game_image">
<property name="visible">True</property>
<property name="icon_size">1</property>
<property name="icon_name">document-open-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
<child>
<object class="GtkMenuButton" id="menu_button">
<property name="visible">True</property>
@ -431,8 +386,6 @@
<widget name="new_game_button"/>
<widget name="undo_move_button"/>
<widget name="pause_button"/>
<widget name="save_game_button"/>
<widget name="open_game_button"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="right_nav_box_sizegroup">