diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-05-05 21:28:18 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-05-05 21:28:18 (GMT) |
commit | ae2563772fb8c3e3ffb2a980e5c2663da06e31a2 (patch) | |
tree | e331de814772420e91957988974bde50883d8a18 /src/schemas | |
parent | 279191e1e01875b65237d0a1bc38dbc729f262fa (diff) |
Save and restore the application state from global settings.
Diffstat (limited to 'src/schemas')
-rw-r--r-- | src/schemas/Makefile.am | 5 | ||||
-rw-r--r-- | src/schemas/re.chrysalide.framework.gschema.xml | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/schemas/Makefile.am b/src/schemas/Makefile.am new file mode 100644 index 0000000..a67aa0b --- /dev/null +++ b/src/schemas/Makefile.am @@ -0,0 +1,5 @@ + +gsettings_SCHEMAS = \ + re.chrysalide.framework.gschema.xml + +@GSETTINGS_RULES@ diff --git a/src/schemas/re.chrysalide.framework.gschema.xml b/src/schemas/re.chrysalide.framework.gschema.xml new file mode 100644 index 0000000..4a16f12 --- /dev/null +++ b/src/schemas/re.chrysalide.framework.gschema.xml @@ -0,0 +1,19 @@ +<schemalist gettext-domain="chrysalide"> + + <schema id="re.chrysalide.framework" path="/re/chrysalide/framework/"> + <child schema="re.chrysalide.framework.mainapp" name="mainapp"/> + </schema> + + <schema id="re.chrysalide.framework.mainapp" path="/re/chrysalide/framework/mainapp/"> + <key name="window-width" type="i"> + <default>600</default> + </key> + <key name="window-height" type="i"> + <default>400</default> + </key> + <key name="window-maximized" type="b"> + <default>false</default> + </key> + </schema> + +</schemalist> |