[five-or-more/arnaudb/wip/gtk4: 15/28] Adapt size_allocate.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/wip/gtk4: 15/28] Adapt size_allocate.
- Date: Fri, 27 Mar 2020 16:17:15 +0000 (UTC)
commit 5b4a84f3b51525d2bc6f68888af95491a50fd1a9
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 5b49f01..71e428a 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -122,15 +122,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]