[gedit-plugins] Switch to xml format instead of the simple gsettings format.



commit 2d91cdd7c919bbf5e8ab9156a91e8d89264df8d8
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat May 15 20:18:41 2010 +0200

    Switch to xml format instead of the simple gsettings format.

 plugins/drawspaces/Makefile.am                     |    5 +---
 .../org.gnome.gedit.drawspaces.gschema.in          |   11 --------
 .../org.gnome.gedit.drawspaces.gschema.xml         |   28 ++++++++++++++++++++
 3 files changed, 29 insertions(+), 15 deletions(-)
---
diff --git a/plugins/drawspaces/Makefile.am b/plugins/drawspaces/Makefile.am
index e5424d3..d067a7b 100644
--- a/plugins/drawspaces/Makefile.am
+++ b/plugins/drawspaces/Makefile.am
@@ -27,10 +27,7 @@ plugin_in_files = drawspaces.gedit-plugin.desktop.in
 
 plugin_DATA = $(plugin_in_files:.gedit-plugin.desktop.in=.gedit-plugin)
 
-gsettingsschema_in_files = org.gnome.gedit.drawspaces.gschema.in
-gsettingsschema_DATA = $(gsettingsschema_in_files:.gschema.in=.gschema.xml)
-org.gnome.gedit.drawspaces.gschema.xml: org.gnome.gedit.drawspaces.gschema.in
-	gsettings-schema-convert -f $< -o $@
+gsettingsschema_DATA = org.gnome.gedit.drawspaces.gschema.xml
 
 if GSETTINGS_SCHEMAS_INSTALL
 install-data-hook:
diff --git a/plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml b/plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml
new file mode 100644
index 0000000..ef3258e
--- /dev/null
+++ b/plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml
@@ -0,0 +1,28 @@
+<schemalist>
+  <schema id="org.gnome.gedit.plugins.drawspaces" path="/apps/gedit/plugins/drawspaces/">
+    <key name="enable" type="b">
+      <default>true</default>
+    </key>
+    <key name="draw-tabs" type="b">
+      <default>true</default>
+    </key>
+    <key name="draw-spaces" type="b">
+      <default>true</default>
+    </key>
+    <key name="draw-newline" type="b">
+      <default>false</default>
+    </key>
+    <key name="draw-nbsp" type="b">
+      <default>false</default>
+    </key>
+    <key name="draw-leading" type="b">
+      <default>true</default>
+    </key>
+    <key name="draw-text" type="b">
+      <default>true</default>
+    </key>
+    <key name="draw-trailing" type="b">
+      <default>true</default>
+    </key>
+  </schema>
+</schemalist>



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