[four-in-a-row/arnaudb/wip/gtk4: 71/92] Adapt size_allocate().
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/arnaudb/wip/gtk4: 71/92] Adapt size_allocate().
- Date: Sat, 26 Sep 2020 10:29:07 +0000 (UTC)
commit e2a9db1af1e2e05b83156c6935ee25351c8b73ca
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 d6aeed8..fd54754 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]