[five-or-more/arnaudb/wip/gtk4: 21/28] Adapt size_allocate.



commit bf62c7d391e7c58ca0e068bcfc2d5d6ff817820e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Mar 26 13:49:12 2020 +0100

    Adapt size_allocate.

 src/window.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/window.vala b/src/window.vala
index 71e428a..7cd7d5c 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -57,6 +57,7 @@ private class GameWindow : ApplicationWindow
 
     construct
     {
+        size_allocate.connect (on_size_allocate);
         map.connect (init_state_watcher);
     }
 
@@ -122,7 +123,7 @@ private class GameWindow : ApplicationWindow
         window_tiled =      (state & Gdk.SurfaceState.TILED)     != 0;
     }
 
-    protected override void size_allocate (int width, int height, int baseline)
+    private void on_size_allocate (int width, int height, int baseline)
     {
         if (window_maximized || window_tiled)
             return;


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