[gnome-chess/mcatanzaro/gtk4] progress



commit d7837a81b94427906197f587ec6fe52a29a99625
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Dec 22 17:19:23 2020 -0600

    progress

 src/gnome-chess.vala | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 109a992..5d6bfde 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -141,7 +141,7 @@ Copyright © 2015–2016 Sahil Sareen""";
 
         add_action_entries (app_entries, this);
         set_accels_for_action ("app.help", {"F1"});
-        set_accels_for_action ("app.quit", {"<Primary>q", "<Primary>w"});
+        set_accels_for_action ("app.quit", {"<Control>q", "<Control>w"});
 
         Builder builder = new Builder ();
         builder.set_current_object (this);
@@ -177,12 +177,12 @@ Copyright © 2015–2016 Sahil Sareen""";
         update_pause_resume_button ();
 
         window.add_action_entries (window_entries, this);
-        set_accels_for_action ("win." + NEW_GAME_ACTION_NAME,       {        "<Primary>n"       });
-        set_accels_for_action ("win." + OPEN_GAME_ACTION_NAME,      {        "<Primary>o"       });
-        set_accels_for_action ("win." + SAVE_GAME_ACTION_NAME,      {        "<Primary>s"       });
-        set_accels_for_action ("win." + SAVE_GAME_AS_ACTION_NAME,   { "<Shift><Primary>s"       });
-        set_accels_for_action ("win." + UNDO_MOVE_ACTION_NAME,      {        "<Primary>z"       });
-        set_accels_for_action ("win." + PAUSE_RESUME_ACTION_NAME,   {        "<Primary>p",
+        set_accels_for_action ("win." + NEW_GAME_ACTION_NAME,       {        "<Control>n"       });
+        set_accels_for_action ("win." + OPEN_GAME_ACTION_NAME,      {        "<Control>o"       });
+        set_accels_for_action ("win." + SAVE_GAME_ACTION_NAME,      {        "<Control>s"       });
+        set_accels_for_action ("win." + SAVE_GAME_AS_ACTION_NAME,   { "<Shift><Control>s"       });
+        set_accels_for_action ("win." + UNDO_MOVE_ACTION_NAME,      {        "<Control>z"       });
+        set_accels_for_action ("win." + PAUSE_RESUME_ACTION_NAME,   {        "<Control>p",
                                                                                       "Pause"   });
 
         add_window (window);
@@ -258,12 +258,14 @@ Copyright © 2015–2016 Sahil Sareen""";
 
         base.shutdown ();
 
+#if 0
         /* Save window state */
         settings.delay ();
         settings.set_int ("width", window_width);
         settings.set_int ("height", window_height);
         settings.set_boolean ("maximized", is_maximized);
         settings.apply ();
+#endif
     }
 
     private void set_layout_mode (LayoutMode new_layout_mode)
@@ -417,7 +419,9 @@ return null;
             save_duration_cb ();
 
         autosave ();
+
         window.destroy ();
+        window = null;
     }
 
     private void autosave ()


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