[five-or-more/arnaudb/wip/gtk4: 16/29] Adapt size_allocate.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/wip/gtk4: 16/29] Adapt size_allocate.
- Date: Fri, 27 Mar 2020 15:47:58 +0000 (UTC)
commit e0757c707a248a23797fd38d9a5a5a3233f40631
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 390143c..e2bfbfe 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -123,15 +123,13 @@ private class GameWindow : ApplicationWindow
window_tiled = (state & Gdk.SurfaceState.TILED) != 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]