[lightsoff/arnaudb/wip/gtk4: 8/28] The size-allocate signal is gone.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/arnaudb/wip/gtk4: 8/28] The size-allocate signal is gone.
- Date: Sat, 28 Nov 2020 14:29:47 +0000 (UTC)
commit a7004430f637ec15cba831a4aec25220bf0209aa
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Nov 27 15:31:25 2020 +0100
The size-allocate signal is gone.
src/managed-window.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/managed-window.vala b/src/managed-window.vala
index 8ac2572..9c94faf 100644
--- a/src/managed-window.vala
+++ b/src/managed-window.vala
@@ -31,7 +31,6 @@ private class ManagedWindow : ApplicationWindow
private inline void connect_callbacks ()
{
map.connect (init_state_watcher);
- size_allocate.connect (on_size_allocate);
destroy.connect (on_destroy);
}
@@ -42,6 +41,7 @@ private class ManagedWindow : ApplicationWindow
assert_not_reached ();
surface = (Gdk.Toplevel) (!) nullable_surface;
surface.notify ["state"].connect (on_window_state_event);
+ surface.size_changed.connect (on_size_changed);
}
private Gdk.Toplevel surface;
@@ -63,7 +63,7 @@ private class ManagedWindow : ApplicationWindow
window_is_tiled = (state & tiled_state) != 0;
}
- private inline void on_size_allocate (Allocation allocation)
+ private inline void on_size_changed (Gdk.Surface _surface, int width, int height)
{
if (window_is_maximized || window_is_tiled || window_is_fullscreen)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]