[gnome-chess/bridadan/gnome-chess-adaptive_width: 7/7] Move open, save, and resign game buttons into menu.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/bridadan/gnome-chess-adaptive_width: 7/7] Move open, save, and resign game buttons into menu.
- Date: Sat, 14 Sep 2019 19:50:56 +0000 (UTC)
commit dc2d26cdad9c93fb94e3b99149ad473bb44e115d
Author: Brian Daniels <brianddaniels gmail com>
Date: Sun Sep 8 18:28:05 2019 -0500
Move open, save, and resign game buttons into menu.
Adds a separator in the menu to help separate them from the other
program options.
data/gnome-chess.ui | 79 ++++++++++-------------------------------------------
1 file changed, 14 insertions(+), 65 deletions(-)
---
diff --git a/data/gnome-chess.ui b/data/gnome-chess.ui
index ffe194f..54a3cbc 100644
--- a/data/gnome-chess.ui
+++ b/data/gnome-chess.ui
@@ -2,6 +2,20 @@
<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>
+ <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>
@@ -87,69 +101,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 +382,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">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]