]> git.proxmox.com Git - pve-installer.git/commitdiff
stop using Gtk3::Window->set_has_resize_grip
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Thu, 15 Jun 2023 12:15:03 +0000 (14:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Jun 2023 07:30:51 +0000 (09:30 +0200)
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 <m.sandoval@proxmox.com>
proxinstall

index d8432c52cb17677a9489c4b4f24273f6e2362215..4b4545cb1f2115faabd51f6842356bf5ecdf77c4 100755 (executable)
@@ -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 {