From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 6EFCAA1856 for ; Thu, 15 Jun 2023 14:15:35 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5547A26B34 for ; Thu, 15 Jun 2023 14:15:05 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 15 Jun 2023 14:15:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id A043145852 for ; Thu, 15 Jun 2023 14:15:04 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Date: Thu, 15 Jun 2023 14:15:03 +0200 Message-Id: <20230615121503.84263-5-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615121503.84263-1-m.sandoval@proxmox.com> References: <20230615121503.84263-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH installer 4/4] stop using Gtk3::Window->set_has_resize_grip X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2023 12:15:35 -0000 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 d2f3d26..154703a 100755 --- a/proxinstall +++ b/proxinstall @@ -1489,7 +1489,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(); @@ -1559,7 +1559,7 @@ sub create_main_window { $window->add($vbox); $window->show_all; - $window->realize(); + $window->present(); } sub cleanup_view { -- 2.39.2