From 5a8d9ff4890815479f438ba68a5af3a59eee5ec2 Mon Sep 17 00:00:00 2001 From: Trevor Busk Date: Tue, 19 Aug 2025 17:25:46 -0400 Subject: [PATCH] patch: patch screenshot crashing when height exceeds width Closes #316. ## Description This addresses the issue discussed in issue #316. To summarize what is in that issue, when taking a screenshot and the height is 1/4x or more greater than the width (approx), it will segfault. Two solutions were found, but the simplest was in this PR, which is setting a default window height. The other was to use a deprecated method (which is shown in the issue). --- src/SaveDialog.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SaveDialog.vala b/src/SaveDialog.vala index 24d56530..fc1accba 100644 --- a/src/SaveDialog.vala +++ b/src/SaveDialog.vala @@ -161,6 +161,7 @@ public class Screenshot.SaveDialog : Granite.Dialog { // Prevent large dialog size with large screenshots default_width = 500; + default_height = 500; var content = this.get_content_area () as Gtk.Box; content.append (dialog_label);