From 792fcb80c5d076c2f46f8ba384f898ee8faab94c Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Mon, 3 Jun 2024 17:24:46 -0300 Subject: [PATCH] fix dialogs sometimes getting larger than desired --- ks_includes/KlippyGtk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ks_includes/KlippyGtk.py b/ks_includes/KlippyGtk.py index eb9fd730..d028019c 100644 --- a/ks_includes/KlippyGtk.py +++ b/ks_includes/KlippyGtk.py @@ -208,6 +208,7 @@ class KlippyGtk: def Dialog(self, title, buttons, content, callback=None, *args): dialog = Gtk.Dialog(title=title, modal=True, transient_for=self.screen, default_width=self.width, default_height=self.height) + dialog.set_size_request(self.width, self.height) if not self.screen.windowed: dialog.fullscreen()