[gnome-2048/arnaudb/wip/gtk4: 34/48] Comment some other things.




commit c82e3815158c1799fce84b8992748c9f55662cd1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Jul 13 17:04:44 2020 +0200

    Comment some other things.

 src/game.vala | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 67c2c29..8834468 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -118,7 +118,7 @@ private class Game : Gtk.Widget
         uint8 rows = (uint8) settings.get_int ("rows"); // and rows from 1 to 9
         _init_grid (rows, cols, out _grid, ref settings);
 
-        size_allocate.connect (_on_size_allocate);
+//        size_allocate.connect (_on_size_allocate);
     }
 
     private static void _init_grid (uint8 rows, uint8 cols, out Grid grid, ref GLib.Settings settings)
@@ -131,16 +131,16 @@ private class Game : Gtk.Widget
     * * view
     \*/
 
-    private void _on_size_allocate (Gtk.Widget widget, int width, int height, int baseline)
-    {
-        width  = _width;
-        height = _height;
+//    private void _on_size_allocate (Gtk.Widget widget, int width, int height, int baseline)
+//    {
+//        width  = _width;
+//        height = _height;
 
-        if (_background_init_done)
-            _resize_view ();
-        else
-            _init_background ();
-    }
+//        if (_background_init_done)
+//            _resize_view ();
+//        else
+//            _init_background ();
+//    }
 
     /*\
     * * others


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