[dconf-editor] Avoid another warning regarding window size.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Avoid another warning regarding window size.
- Date: Sun, 19 Aug 2018 19:59:05 +0000 (UTC)
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]