[gnome-chess/mcatanzaro/gtk4] Progress



commit cac24233aa4d84bba2974074ace36713da11bf4b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Dec 23 18:44:20 2020 -0600

    Progress

 data/gnome-chess.ui | 49 ++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 44 insertions(+), 5 deletions(-)
---
diff --git a/data/gnome-chess.ui b/data/gnome-chess.ui
index 6493318..eeb14c9 100644
--- a/data/gnome-chess.ui
+++ b/data/gnome-chess.ui
@@ -103,7 +103,6 @@
           <object class="GtkMenuButton">
             <property name="icon-name">open-menu-symbolic</property>
             <property name="menu-model">app-menu</property>
-<!--            <accelerator key="F10" signal="activate"/> -->
           </object>
         </child>
       </object>
@@ -155,7 +154,6 @@
                       <object class="GtkButton" id="first_move_button">
                         <property name="sensitive">0</property>
                         <property name="tooltip-text" translatable="yes" comments="Tooltip on the show first 
move (i.e. game start) navigation button">Rewind to the game start</property>
-<!--                        <accelerator key="Left" signal="activate" modifiers="GDK_SHIFT_MASK | 
GDK_MOD1_MASK"/> -->
                         <signal name="clicked" handler="history_start_clicked_cb" swapped="no"/>
                         <style>
                           <class name="image-button"/>
@@ -167,13 +165,23 @@
                             <property name="icon-name">go-first-symbolic</property>
                           </object>
                         </child>
+                        <child>
+                          <object class='GtkShortcutController'>
+                            <property name='scope'>managed</property>
+                            <child>
+                              <object class='GtkShortcut'>
+                                <property name='trigger'>&lt;Alt&gt;&lt;Shift&gt;Left</property>
+                                <property name='action'>activate</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
                       </object>
                     </child>
                     <child>
                       <object class="GtkButton" id="prev_move_button">
                         <property name="sensitive">0</property>
                         <property name="tooltip-text" translatable="yes" comments="Tooltip on the show 
previous move navigation button">Show the previous move</property>
-<!--                        <accelerator key="Left" signal="activate" modifiers="GDK_MOD1_MASK"/> -->
                         <signal name="clicked" handler="history_previous_clicked_cb" swapped="no"/>
                         <style>
                           <class name="image-button"/>
@@ -185,13 +193,23 @@
                             <property name="icon-name">go-previous-symbolic</property>
                           </object>
                         </child>
+                        <child>
+                          <object class='GtkShortcutController'>
+                            <property name='scope'>managed</property>
+                            <child>
+                              <object class='GtkShortcut'>
+                                <property name='trigger'>&lt;Alt&gt;Left</property>
+                                <property name='action'>activate</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
                       </object>
                     </child>
                     <child>
                       <object class="GtkButton" id="next_move_button">
                         <property name="sensitive">0</property>
                         <property name="tooltip-text" translatable="yes" comments="Tooltip on the show next 
move navigation button">Show the next move</property>
-<!--                        <accelerator key="Right" signal="activate" modifiers="GDK_MOD1_MASK"/> -->
                         <signal name="clicked" handler="history_next_clicked_cb" swapped="no"/>
                         <style>
                           <class name="image-button"/>
@@ -203,13 +221,23 @@
                             <property name="icon-name">go-next-symbolic</property>
                           </object>
                         </child>
+                        <child>
+                          <object class='GtkShortcutController'>
+                            <property name='scope'>managed</property>
+                            <child>
+                              <object class='GtkShortcut'>
+                                <property name='trigger'>&lt;Alt&gt;Right</property>
+                                <property name='action'>activate</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
                       </object>
                     </child>
                     <child>
                       <object class="GtkButton" id="last_move_button">
                         <property name="sensitive">0</property>
                         <property name="tooltip-text" translatable="yes" comments="Tooltip on the show 
current move navigation button">Show the current move</property>
-<!--                        <accelerator key="Right" signal="activate" modifiers="GDK_SHIFT_MASK | 
GDK_MOD1_MASK"/> -->
                         <signal name="clicked" handler="history_latest_clicked_cb" swapped="no"/>
                         <style>
                           <class name="image-button"/>
@@ -221,6 +249,17 @@
                             <property name="icon-name">go-last-symbolic</property>
                           </object>
                         </child>
+                        <child>
+                          <object class='GtkShortcutController'>
+                            <property name='scope'>managed</property>
+                            <child>
+                              <object class='GtkShortcut'>
+                                <property name='trigger'>&lt;Alt&gt;&lt;Shift&gt;Right</property>
+                                <property name='action'>activate</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
                       </object>
                     </child>
                   </object>


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