From f9bc57c4c2d01fde679a6689e3467107b3e639aa Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Thu, 15 Jun 2023 14:15:03 +0200 Subject: [PATCH] stop using Gtk3::Window->set_has_resize_grip The property GtkWindow::has-resize-grip was deprecated in GTK 3.14, instead we make the window unresizable. Note that we set the value of resizable only after the window has been mapped and knows how much space it needs, also note that this only works correctly if the window is properly displayed via present. Signed-off-by: Maximiliano Sandoval --- proxinstall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxinstall b/proxinstall index d8432c5..4b4545c 100755 --- a/proxinstall +++ b/proxinstall @@ -1486,7 +1486,7 @@ sub create_main_window { $window = Gtk3::Window->new(); $window->set_default_size(1024, 768); - $window->set_has_resize_grip(0); + $window->signal_connect(map => sub { $window->set_resizable(0); }); $window->fullscreen() if !is_test_mode(); $window->set_decorated(0) if !is_test_mode(); @@ -1556,7 +1556,7 @@ sub create_main_window { $window->add($vbox); $window->show_all; - $window->realize(); + $window->present(); } sub cleanup_view { -- 2.39.5