[gnome-games/wip/exalm/ds: 5/9] nintendo-ds: Add gsettings schema



commit a5f8d91721df915ec9dbdce50816fede37f44575
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Jan 6 20:45:03 2019 +0500

    nintendo-ds: Add gsettings schema
    
    Provide an option to change screen layout. For now the available values
    are just top/bottom and left/right.

 plugins/nintendo-ds/data/meson.build                        |  8 ++++++++
 .../data/org.gnome.Games.plugins.nintendo-ds.gschema.xml    | 13 +++++++++++++
 2 files changed, 21 insertions(+)
---
diff --git a/plugins/nintendo-ds/data/meson.build b/plugins/nintendo-ds/data/meson.build
index 0d4b6c49..007c8981 100644
--- a/plugins/nintendo-ds/data/meson.build
+++ b/plugins/nintendo-ds/data/meson.build
@@ -1 +1,9 @@
 install_data (plugin_name + '.plugin', install_dir: plugins_dir)
+
+configure_file (
+  input: 'org.gnome.Games.plugins.nintendo-ds.gschema.xml',
+  output: 'org.gnome.Games.plugins.nintendo-ds.gschema.xml',
+  configuration: gsettings_conf,
+  install: true,
+  install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
+)
diff --git a/plugins/nintendo-ds/data/org.gnome.Games.plugins.nintendo-ds.gschema.xml 
b/plugins/nintendo-ds/data/org.gnome.Games.plugins.nintendo-ds.gschema.xml
new file mode 100644
index 00000000..9caa94a4
--- /dev/null
+++ b/plugins/nintendo-ds/data/org.gnome.Games.plugins.nintendo-ds.gschema.xml
@@ -0,0 +1,13 @@
+<schemalist>
+  <enum id="org.gnome.Games.plugins.nintendo-ds.screen-layouts">
+    <value nick="top/bottom" value="0"/>
+    <value nick="left/right" value="1"/>
+  </enum>
+  <schema path="/org/gnome/Games/plugins/nintendo-ds/" id="org.gnome.Games.plugins.nintendo-ds" 
gettext-domain="gnome-games">
+    <key name='screen-layout' enum='org.gnome.Games.plugins.nintendo-ds.screen-layouts'>
+      <default>'top/bottom'</default>
+      <summary>Screen layout</summary>
+      <description>Screen layout for Nintendo DS games. Allowed values are: “top/bottom” (vertical layout), 
“left/right” (horizontal layout).</description>
+    </key>
+  </schema>
+</schemalist>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]