[gnome-builder/wip/vim] settings: add schema for vim-mode in editor settings.



commit 4d1ad0e536162ea9c681a5d336af6ac8f734f766
Author: Christian Hergert <christian hergert me>
Date:   Fri Oct 3 13:06:14 2014 -0700

    settings: add schema for vim-mode in editor settings.

 Makefile.am                                     |    1 +
 build/autotools/autoconf.d/50_gsettings.post-lt |    1 +
 configure.ac                                    |    1 +
 data/.gitignore                                 |    3 +++
 data/gsettings.mk                               |   17 +++++++++++++++++
 data/org.gnome.builder.editor.gschema.xml.in    |    9 +++++++++
 6 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 7a9b64b..9fbde5e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,6 +7,7 @@ ACLOCAL_AMFLAGS = -I build/autotools/m4 ${ACLOCAL_FLAGS}
 
 include src/gnome-builder.mk
 include data/data.mk
+include data/gsettings.mk
 include tests/tests.mk
 
 # XXX: Not happy about this, need to come up with a good way to do
diff --git a/build/autotools/autoconf.d/50_gsettings.post-lt b/build/autotools/autoconf.d/50_gsettings.post-lt
new file mode 100644
index 0000000..e135e0a
--- /dev/null
+++ b/build/autotools/autoconf.d/50_gsettings.post-lt
@@ -0,0 +1 @@
+GLIB_GSETTINGS
diff --git a/configure.ac b/configure.ac
index 7d03ceb..76ca2af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,7 @@ AC_CONFIG_FILES([
        Makefile
        data/icons/Makefile
        data/org.gnome.Builder.service
+       data/org.gnome.builder.editor.gschema.xml
 ])
 
 # Last change to configure things and write configuration files.
diff --git a/data/.gitignore b/data/.gitignore
index 6636915..dfb0f2a 100644
--- a/data/.gitignore
+++ b/data/.gitignore
@@ -1 +1,4 @@
 org.gnome.Builder.service
+*.gschema.xml.in
+*.gschema.xml
+*.gschema.valid
diff --git a/data/gsettings.mk b/data/gsettings.mk
new file mode 100644
index 0000000..f23a57d
--- /dev/null
+++ b/data/gsettings.mk
@@ -0,0 +1,17 @@
+gsettingsschema_in_files = \
+       data/org.gnome.builder.editor.gschema.xml.in
+
+gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
+.PRECIOUS: $(gsettings_SCHEMAS)
+
+ GSETTINGS_RULES@
+
+EXTRA_DIST += \
+       $(gsettingsschema_in_files) \
+       $(NULL)
+
+CLEANFILES += \
+       $(BUILT_SOURCES) \
+       $(gsettings_SCHEMAS) \
+       $(NULL)
+
diff --git a/data/org.gnome.builder.editor.gschema.xml.in b/data/org.gnome.builder.editor.gschema.xml.in
new file mode 100644
index 0000000..ce484b8
--- /dev/null
+++ b/data/org.gnome.builder.editor.gschema.xml.in
@@ -0,0 +1,9 @@
+<schemalist>
+  <schema id="org.gnome.builder.editor" path="/org/gnome/builder/editor/" gettext-domain="gnome-builder">
+    <key name="vim-mode" type="b">
+      <default>false</default>
+      <_summary>Enable VIM keybindings<_summary>
+      <_description>Whether or not VIM style keybindings should be used in the source code 
editor.</_description>
+    </key>
+  </schema>
+</schemalist>


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