[dconf-editor] Do not force window minimum startup size.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Do not force window minimum startup size.
- Date: Sun, 6 Jan 2019 17:06:28 +0000 (UTC)
commit 01f7559dc86766457d6f2079a2c9326be453dba4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Jan 6 09:48:32 2019 +0100
Do not force window minimum startup size.
The application can now run correctly on small screens, there
is no reason to ensure a mininum startup size for the window.
editor/adaptative-window.vala | 6 ++----
editor/ca.desrt.dconf-editor.gschema.xml | 6 ++++--
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/editor/adaptative-window.vala b/editor/adaptative-window.vala
index 1d37ae1..d54999b 100644
--- a/editor/adaptative-window.vala
+++ b/editor/adaptative-window.vala
@@ -370,10 +370,8 @@ private abstract class AdaptativeWindow : ApplicationWindow
private void save_window_state () // called on destroy
{
settings.delay ();
- 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_int ("window-width", window_width);
+ settings.set_int ("window-height", window_height);
settings.set_boolean ("window-is-maximized", window_is_maximized);
settings.apply ();
}
diff --git a/editor/ca.desrt.dconf-editor.gschema.xml b/editor/ca.desrt.dconf-editor.gschema.xml
index 5c1f1c5..e3ef8d4 100644
--- a/editor/ca.desrt.dconf-editor.gschema.xml
+++ b/editor/ca.desrt.dconf-editor.gschema.xml
@@ -98,7 +98,8 @@
<child schema="ca.desrt.dconf-editor.Demo" name="demo"/>
<key name="window-width" type="i">
<default>800</default>
- <range min="630"/>
+ <!-- see AdaptativeWindow.width-request at adaptative-window.ui:6 -->
+ <range min="283"/>
<!-- Translators: summary of a settings key, see 'dconf-editor /ca/desrt/dconf-editor/window-width' -->
<summary>The width of the window</summary>
<!-- Translators: description of a settings key, see 'dconf-editor
/ca/desrt/dconf-editor/window-width' -->
@@ -106,7 +107,8 @@
</key>
<key name="window-height" type="i">
<default>600</default>
- <range min="420"/>
+ <!-- see AdaptativeWindow.height-request at adaptative-window.ui:5 -->
+ <range min="349"/>
<!-- Translators: summary of a settings key, see 'dconf-editor /ca/desrt/dconf-editor/window-height'
-->
<summary>The height of the window</summary>
<!-- Translators: description of a settings key, see 'dconf-editor
/ca/desrt/dconf-editor/window-height' -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]