handle settings for window size
This commit is contained in:
@@ -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>
|
25
data/gschema/cl.cromer.ubb.sernatur.window.gschema.xml
Normal file
25
data/gschema/cl.cromer.ubb.sernatur.window.gschema.xml
Normal 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>
|
@@ -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'))
|
||||
|
@@ -21,7 +21,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
<property name="title">SERNATUR</property>
|
||||
<property name="icon_name">sernatur</property>
|
||||
<property name="show_menubar">False</property>
|
||||
<signal name="window-state-event" handler="state_handler" swapped="no"/>
|
||||
<signal name="configure-event" handler="resize_window" swapped="no"/>
|
||||
<signal name="window-state-event" handler="maximize_window" swapped="no"/>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
|
Reference in New Issue
Block a user