coderkun
cb585cda1e
Handle the window state as recommended by the Gnome HowDoI guide by using the wrapper class WindowState with GObject properties and bindings. Additionally use separate settings for width and height instead of an array.
67 lines
2.3 KiB
XML
67 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<schemalist>
|
|
<enum id="de.coderkun.mcg.SortOrder">
|
|
<value nick="artist" value="0" />
|
|
<value nick="title" value="1" />
|
|
<value nick="year" value="2" />
|
|
</enum>
|
|
<schema path="/de/coderkun/mcg/" id="de.coderkun.mcg" gettext-domain="mcg">
|
|
<key type="s" name="host">
|
|
<default>'localhost'</default>
|
|
<summary>MPD host</summary>
|
|
<description>MPD host to connect to</description>
|
|
</key>
|
|
<key type="i" name="port">
|
|
<default>6600</default>
|
|
<summary>MPD port</summary>
|
|
<description>MPD port to connect to</description>
|
|
</key>
|
|
<key type="s" name="image-dir">
|
|
<default>''</default>
|
|
<summary>Image directory</summary>
|
|
<description>Directory which a webserver is providing images on</description>
|
|
</key>
|
|
<key type="b" name="connected">
|
|
<default>false</default>
|
|
<summary>Connection state</summary>
|
|
<description>State of last connection</description>
|
|
</key>
|
|
<key type="i" name="width">
|
|
<default>800</default>
|
|
<summary>Window width</summary>
|
|
<description>The window width in pixels.</description>
|
|
</key>
|
|
<key type="i" name="height">
|
|
<default>600</default>
|
|
<summary>Window height</summary>
|
|
<description>The window height in pixels.</description>
|
|
</key>
|
|
<key type="b" name="is-maximized">
|
|
<default>false</default>
|
|
<summary>Window maximized</summary>
|
|
<description>Whether or not the window is in maximized state.</description>
|
|
</key>
|
|
<key type="i" name="panel">
|
|
<range min="0" max="3"/>
|
|
<default>1</default>
|
|
<summary>Last selected panel</summary>
|
|
<description>The index of the last selected panel.</description>
|
|
</key>
|
|
<key type="i" name="item-size">
|
|
<range min="100" max="1000" />
|
|
<default>150</default>
|
|
<summary>Size of library items</summary>
|
|
<description>The size of items displayed in the library.</description>
|
|
</key>
|
|
<key enum="de.coderkun.mcg.SortOrder" name="sort-order">
|
|
<default>'year'</default>
|
|
<summary>Sort criterium for library items</summary>
|
|
<description>The sort criterium of items displayed in the library.</description>
|
|
</key>
|
|
<key type="b" name="sort-type">
|
|
<default>true</default>
|
|
<summary>Sort type for library items</summary>
|
|
<description>The sort type of items displayed in the library.</description>
|
|
</key>
|
|
</schema>
|
|
</schemalist>
|