[dconf-editor] Avoid another warning regarding window size.



commit e2aa7d051bc711c42d1e883d9fa597d57025bdcf
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Aug 19 21:57:46 2018 +0200

    Avoid another warning regarding window size.

 editor/dconf-window.vala | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index f92f1dc..5c45301 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -364,8 +364,10 @@ private class DConfWindow : ApplicationWindow
 
         settings.delay ();
         settings.set_string ("saved-view", saved_view);
-        settings.set_int ("window-width", window_width);
-        settings.set_int ("window-height", window_height);
+        if (window_width <= 630)    settings.set_int ("window-width", 630);
+        else                        settings.set_int ("window-width", window_width);
+        if (window_height <= 420)   settings.set_int ("window-height", 420);
+        else                        settings.set_int ("window-height", window_height);
         settings.set_boolean ("window-is-maximized", window_is_maximized);
         settings.apply ();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]