[four-in-a-row/arnaudb/wip/gtk4: 22/42] Adapt size_allocate().
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/arnaudb/wip/gtk4: 22/42] Adapt size_allocate().
- Date: Mon, 4 May 2020 13:19:35 +0000 (UTC)
commit e32c63b2475df1e2ad04ce7dd72bbc8aeb011ab5
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Apr 19 23:43:46 2020 +0200
Adapt size_allocate().
src/adaptative-window.vala | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/adaptative-window.vala b/src/adaptative-window.vala
index e5ce745..3528709 100644
--- a/src/adaptative-window.vala
+++ b/src/adaptative-window.vala
@@ -158,11 +158,8 @@ private abstract class AdaptativeWindow : ApplicationWindow
protected abstract void on_unfullscreen ();
[GtkCallback]
- private void on_size_allocate (Allocation allocation)
+ private void on_size_allocate (int width, int height)
{
- int height = allocation.height;
- int width = allocation.width;
-
update_adaptative_children (ref width, ref height);
update_window_state ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]