[five-or-more/arnaudb/wip/gtk4: 21/28] Adapt size_allocate.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/wip/gtk4: 21/28] Adapt size_allocate.
- Date: Fri, 27 Mar 2020 16:17:45 +0000 (UTC)
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]