[five-or-more/arnaudb/wip/gtk4: 5/19] Adapt size_allocate.
- From: Arnaud B. <arnaudb src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [five-or-more/arnaudb/wip/gtk4: 5/19] Adapt size_allocate.
 
- Date: Sun, 12 Apr 2020 11:08:55 +0000 (UTC)
 
commit ce9b4b48109ebaaa43f58909e5bf56b35b43c4c1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Mar 12 23:39:18 2020 +0100
    Adapt size_allocate.
 src/window.vala | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 5b5f1f2..b238a77 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -122,15 +122,13 @@ private class GameWindow : ApplicationWindow
         window_tiled =      (state & tiled_state)                != 0;
     }
 
-    protected override void size_allocate (Allocation allocation)
+    protected override void size_allocate (int width, int height, int baseline)
     {
-        base.size_allocate (allocation);
-
         if (window_maximized || window_tiled)
             return;
 
-        window_width = allocation.width;
-        window_height = allocation.height;
+        window_width  = width;
+        window_height = height;
     }
 
     private void score_cb ()
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]