handle settings for window size

This commit is contained in:
2018-12-23 19:24:09 -03:00
parent ff33532ed3
commit 0a7d34595c
9 changed files with 131 additions and 70 deletions

View File

@@ -1,5 +1,5 @@
<schemalist>
<schema id="cl.cromer.ubb.sernatur" path="/cl/cromer/ubb/sernatur/" gettext-domain="sernatur">
<schema id="cl.cromer.ubb.sernatur.db" path="/cl/cromer/ubb/sernatur/" gettext-domain="sernatur">
<key name="host" type="s">
<default>"localhost"</default>
<summary>Host to connect to</summary>
@@ -49,12 +49,5 @@
Password to use
</description>
</key>
<key name="maximized" type="b">
<default>false</default>
<summary>Should the program open maximized or not</summary>
<description>
Should the program open maximized or not
</description>
</key>
</schema>
</schemalist>

View File

@@ -0,0 +1,25 @@
<schemalist>
<schema id="cl.cromer.ubb.sernatur.window" path="/cl/cromer/ubb/sernatur/" gettext-domain="sernatur">
<key name="maximized" type="b">
<default>false</default>
<summary>Should the program open maximized or not</summary>
<description>
Should the program open maximized or not
</description>
</key>
<key name="width" type="i">
<default>640</default>
<summary>Window width</summary>
<description>
Window width
</description>
</key>
<key name="height" type="i">
<default>480</default>
<summary>Window height</summary>
<description>
Window height
</description>
</key>
</schema>
</schemalist>

View File

@@ -1 +1,2 @@
install_data('cl.cromer.ubb.sernatur.gschema.xml', install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas'))
install_data('cl.cromer.ubb.sernatur.db.gschema.xml', install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas'))
install_data('cl.cromer.ubb.sernatur.window.gschema.xml', install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas'))