Follow https://wiki.gnome.org/HowDoI/SaveWindowState * Use tuples in gsetting schema to save size and position * Save changes to variable instead of saving to gsettings after every timemout * Save the changes back to gsettings when the window is finalized.
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<schemalist gettext-domain="gnome-calendar">
|
|
<schema id="org.gnome.calendar" path="/org/gnome/calendar/">
|
|
<key name="window-maximized" type="b">
|
|
<default>true</default>
|
|
<summary>Window maximized</summary>
|
|
<description>Window maximized state</description>
|
|
</key>
|
|
<key name="window-size" type="(ii)">
|
|
<default>(768, 600)</default>
|
|
<summary>Window size</summary>
|
|
<description>Window size (width and height).</description>
|
|
</key>
|
|
<key name="window-position" type="(ii)">
|
|
<default>(-1, -1)</default>
|
|
<summary>Window position</summary>
|
|
<description>Window position (x and y).</description>
|
|
</key>
|
|
<key name="active-view" enum="org.gnome.calendar.GcalWindowViewType">
|
|
<default>'month'</default>
|
|
<summary>Type of the active view</summary>
|
|
<description>Type of the active window view, default value is: monthly view</description>
|
|
</key>
|
|
</schema>
|
|
</schemalist>
|