[swell-foop/arnaudb/wip/gtk4: 41/55] Comment for now window destroy.



commit 6dbac7b5dbc7440d134ef728ebc6a76af122938a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed May 13 19:31:42 2020 +0200

    Comment for now window destroy.

 src/swell-foop.vala |  4 ++--
 src/window.vala     | 30 +++++++++++++++---------------
 2 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/swell-foop.vala b/src/swell-foop.vala
index 9e553d6..35e9edd 100644
--- a/src/swell-foop.vala
+++ b/src/swell-foop.vala
@@ -63,7 +63,7 @@ public class SwellFoop : Gtk.Application
 
     protected override void shutdown ()
     {
-        window.destroy ();
+     // window.destroy ();
         base.shutdown ();
     }
 
@@ -74,7 +74,7 @@ public class SwellFoop : Gtk.Application
 
     private inline void quit_cb (/* SimpleAction action, Variant? variant */)
     {
-        window.destroy ();
+     // window.destroy ();
     }
 
     private inline void help_cb (/* SimpleAction action, Variant? variant */)
diff --git a/src/window.vala b/src/window.vala
index 2a636d1..383bf3a 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -232,21 +232,21 @@ private class SwellFoopWindow : ApplicationWindow
         game.bind_property ("can-redo", redo_action, "enabled", BindingFlags.SYNC_CREATE);
     }
 
-    protected override void destroy ()
-    {
-        settings.delay ();
-        settings.set_value ("saved-game", game.get_saved_game ());
-        settings.set_int ("colors", game.color_num);
-        for (uint8 i = 0; i < sizes.length; i++)
-            if (game.rows == sizes [i].rows && game.columns == sizes [i].columns)
-            {
-                settings.set_string ("size", sizes [i].id);
-                break;
-            }
-        settings.apply ();
-
-        base.destroy ();
-    }
+//    protected override void destroy ()
+//    {
+//        settings.delay ();
+//        settings.set_value ("saved-game", game.get_saved_game ());
+//        settings.set_int ("colors", game.color_num);
+//        for (uint8 i = 0; i < sizes.length; i++)
+//            if (game.rows == sizes [i].rows && game.columns == sizes [i].columns)
+//            {
+//                settings.set_string ("size", sizes [i].id);
+//                break;
+//            }
+//        settings.apply ();
+//
+//        base.destroy ();
+//    }
 
     /*\
     * * actions


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