Commit 1dcf9bbf authored by Sebastien Granjoux's avatar Sebastien Granjoux

Add .gschema file as sources instead of generating them from .ui file

It is not possible to add a description of the keys generated from gtk builder file.
parent 3639e805
......@@ -60,9 +60,10 @@ libanjuta_build_basic_autotools_la_LIBADD = \
libanjuta_build_basic_autotools_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
prefs_name = org.gnome.anjuta.build
prefs_ui_files = anjuta-build-basic-autotools-plugin.ui
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.build.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
......@@ -70,6 +71,10 @@ EXTRA_DIST = \
$(build_ui_DATA) \
$(build_pixmaps_DATA) \
$(build_glade_DATA) \
$(build_data_DATA)
$(build_data_DATA) \
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.build" path="/org/gnome/anjuta/">
<key name="build-parallel-make" type="b">
<default>false</default>
</key>
<key name="build-parallel-make-job" type="i">
<default>1</default>
</key>
<key name="build-continue-error" type="b">
<default>false</default>
</key>
<key name="build-translate-message" type="b">
<default>true</default>
</key>
<key name="build-indicators-automatic" type="b">
<default>true</default>
</key>
<key name="build-install-root" type="b">
<default>false</default>
</key>
<key name="build-install-root-command" type="s">
<choices>
<choice value="sudo %s" />
<choice value=" su -c %q" />
</choices>
<default>"sudo %s"</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
......@@ -36,14 +36,19 @@ libanjuta_code_analyzer_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
libanjuta_code_analyzer_la_LIBADD = \
$(LIBANJUTA_LIBS)
prefs_name = org.gnome.anjuta.code-analyzer
prefs_ui_files = code-analyzer.ui
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.code-analyzer.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
$(code_analyzer_plugin_DATA) \
$(code_analyzer_pixmaps_DATA) \
$(code_analyzer_ui_DATA)
$(code_analyzer_ui_DATA) \
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.code-analyzer" path="/org/gnome/anjuta/">
<key name="clang-enable" type="b">
<default>false</default>
</key>
<key name="clang-cc-path" type="s">
<default>"/usr/lib/clang-analyzer/scan-build/ccc-analyzer"</default>
</key>
<key name="clang-cxx-path" type="s">
<default>"/usr/lib/clang-analyzer/scan-build/cxx-analyzer"</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
......@@ -42,15 +42,20 @@ libanjuta_cvs_plugin_la_SOURCES = \
cvs-interface.c \
cvs-interface.h
prefs_name = org.gnome.anjuta.cvs
prefs_ui_files = anjuta-cvs-plugin.ui
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.cvs.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
$(cvs_plugin_pixmaps_DATA) \
$(cvs_plugin_plugin_DATA) \
$(cvs_plugin_ui_DATA) \
$(cvs_plugin_glade_DATA)
$(cvs_plugin_glade_DATA) \
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.cvs" path="/org/gnome/anjuta/">
<key name="cvs-path" type="s">
<default>"/usr/bin/cvs"</default>
</key>
<key name="cvs-ignorerc" type="b">
<default>true</default>
</key>
<key name="cvs-compression" type="i">
<default>3</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
......@@ -5,11 +5,8 @@ anjuta_glade_DATA = anjuta-debug-manager.ui
anjuta_uidir = $(anjuta_ui_dir)
anjuta_ui_DATA = anjuta-debug-manager.xml
schema_in_files = org.gnome.anjuta.debug-manager.gschema.xml.in
gsettings_SCHEMAS = $(schema_in_files:.gschema.xml.in=.gschema.xml)
.PRECIOUS: $(gsettings_SCHEMAS)
gsettings_in_files = org.gnome.anjuta.debug-manager.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_files:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
......@@ -98,7 +95,7 @@ EXTRA_DIST = \
$(schema_in_files) \
$(anjuta_ui_DATA) \
$(anjuta_glade_DATA) \
$(schema_in_files) \
$(gsettings_in_files) \
anjuta-marshal.list
DISTCLEANFILES = \
......
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="org.gnome.anjuta.debug-manager" path="/org/gnome/anjuta/debug-manager/">
<key name="debug-silent-non-debug-config" type="b">
<schema path="/org/gnome/anjuta/debug-manager/" id="org.gnome.anjuta.debug-manager">
<key type="b" name="debug-silent-non-debug-config">
<default>false</default>
<_summary>Do not display warning if not using a Debug configuration</_summary>
<summary>Do not display warning if not using a Debug configuration</summary>
</key>
</schema>
</schemalist>
</schemalist>
\ No newline at end of file
......@@ -48,10 +48,10 @@ libanjuta_document_manager_la_SOURCES= \
anjuta-bookmarks.h \
anjuta-bookmarks.c
prefs_name = org.gnome.anjuta.document-manager
prefs_keyfile = document-manager.gschema-part.xml
prefs_ui_files = anjuta-document-manager.ui
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.document-manager.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(document_manager_pixmaps_DATA) \
......@@ -59,6 +59,9 @@ EXTRA_DIST = \
$(document_manager_plugin_DATA) \
$(document_manager_ui_DATA) \
$(document_manager_glade_DATA) \
$(prefs_keyfile)
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<key name="docman-linenumber-visible" type="b">
<default>true</default>
</key>
<key name="docman-marker-visible" type="b">
<default>true</default>
</key>
<key name="docman-fold-visible" type="b">
<default>true</default>
</key>
<key name="docman-indentation-guides" type="b">
<default>true</default>
</key>
<key name="docman-whitespace" type="b">
<default>false</default>
</key>
<key name="docman-eol" type="b">
<default>false</default>
</key>
<key name="docman-line-wrap" type="b">
<default>false</default>
</key>
<key name="text-zoom-factor" type="i">
<default>0</default>
</key>
<schemalist>
<schema id="org.gnome.anjuta.document-manager" path="/org/gnome/anjuta/">
<key name="docman-linenumber-visible" type="b">
<default>true</default>
</key>
<key name="docman-marker-visible" type="b">
<default>true</default>
</key>
<key name="docman-fold-visible" type="b">
<default>true</default>
</key>
<key name="docman-indentation-guides" type="b">
<default>true</default>
</key>
<key name="docman-whitespace" type="b">
<default>false</default>
</key>
<key name="docman-eol" type="b">
<default>false</default>
</key>
<key name="docman-line-wrap" type="b">
<default>false</default>
</key>
<key name="text-zoom-factor" type="i">
<default>0</default>
</key>
<key name="docman-automatic-save" type="b">
<default>true</default>
</key>
<key name="docman-autosave-timer" type="i">
<default>10</default>
</key>
<key name="docman-save-session-timer" type="i">
<default>10</default>
</key>
<key name="docman-tabs-recent-first" type="b">
<default>false</default>
</key>
<key name="docman-tabs-ordering" type="b">
<default>false</default>
</key>
<key name="docman-tabs-hide" type="b">
<default>false</default>
</key>
<key name="docman-tabs-pos" type="s">
<choices>
<choice value="Top" />
<choice value="Bottom" />
<choice value="Left" />
<choice value="Right" />
</choices>
<default>"Top"</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
......@@ -73,9 +73,10 @@ file-view-marshal.c: $(srcdir)/file-view-marshal.list
then mv -f .genmarshal-$@ $@; \
else rm -f .genmarshal-$@; fi
prefs_ui_files = file-manager.ui
prefs_name = org.gnome.anjuta.file-manager
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.file-manager.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
......@@ -83,7 +84,10 @@ EXTRA_DIST = \
$(file_manager_ui_DATA) \
$(file_manager_pixmaps_DATA) \
$(file_manager_glade_DATA) \
file-view-marshal.list
file-view-marshal.list \
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.file-manager" path="/org/gnome/anjuta/">
<key name="filemanager-root" type="s">
<default>"/"</default>
</key>
<key name="filemanager-filter-binary" type="b">
<default>true</default>
</key>
<key name="filemanager-filter-hidden" type="b">
<default>true</default>
</key>
<key name="filemanager-filter-backup" type="b">
<default>true</default>
</key>
<key name="filemanager-filter-unversioned" type="b">
<default>false</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
......@@ -67,10 +67,11 @@ libanjuta_language_cpp_java_la_LIBADD = \
$(LIBANJUTA_LIBS) \
cxxparser/libcxxparser.la
prefs_ui_files = anjuta-language-cpp-java.ui
prefs_keyfile = language-support-cpp-java.gschema-part.xml
prefs_name = org.gnome.anjuta.cpp
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.cpp.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
......@@ -78,6 +79,9 @@ EXTRA_DIST = \
$(cpp_java_ui_DATA) \
$(cpp_java_pixmaps_DATA) \
$(cpp_java_glade_DATA) \
$(prefs_keyfile)
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<key name="cpp-user-packages" type="s">
<default>""</default>
</key>
<schemalist>
<schema id="org.gnome.anjuta.cpp" path="/org/gnome/anjuta/">
<key name="cpp-user-packages" type="s">
<default>""</default>
</key>
<key name="cpp-indent-automatic" type="b">
<default>true</default>
</key>
<key name="cpp-multiline-leading-asterisk" type="b">
<default>true</default>
</key>
<key name="cpp-indent-modeline" type="b">
<default>true</default>
</key>
<key name="cpp-indent-brace-size" type="i">
<default>0</default>
</key>
<key name="cpp-indent-statement-size" type="i">
<default>4</default>
</key>
<key name="cpp-indent-paranthese-lineup" type="b">
<default>true</default>
</key>
<key name="cpp-indent-paranthese-indent" type="b">
<default>false</default>
</key>
<key name="cpp-indent-paranthese-size" type="i">
<default>4</default>
</key>
<key name="cpp-completion-enable" type="b">
<default>true</default>
</key>
<key name="cpp-completion-space-after-func" type="b">
<default>true</default>
</key>
<key name="cpp-completion-brace-after-func" type="b">
<default>true</default>
</key>
<key name="cpp-brace-autocompletion" type="b">
<default>false</default>
</key>
<key name="cpp-calltip-enable" type="b">
<default>true</default>
</key>
<key name="cpp-load-project-packages" type="b">
<default>true</default>
</key>
<key name="cpp-load-libc" type="b">
<default>true</default>
</key>
<key name="cpp-load-stdcpp" type="b">
<default>true</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
......@@ -65,16 +65,21 @@ libjs_support_plugin_la_LIBADD = \
$(LIBANJUTA_LIBS) \
$(XML_LIBS)
prefs_ui_files = anjuta-language-javascript.ui
prefs_name = org.gnome.anjuta.js
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.js.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files)\
$(js_support_plugin_plugin_DATA)\
$(js_support_plugin_glade_DATA)\
$(js_support_plugin_ui_DATA)\
$(js_support_plugin_pixmaps_DATA)
$(js_support_plugin_pixmaps_DATA) \
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.js" path="/org/gnome/anjuta/">
<key name="javascript-girdir" type="s">
<default>""</default>
</key>
<key name="javascript-gjsdir" type="s">
<default>""</default>
</key>
<key name="javascript-min-codecomplete" type="i">
<default>3</default>
</key>
<key name="javascript-missed" type="b">
<default>true</default>
</key>
<key name="javascript-add-brace-after-func" type="b">
<default>true</default>
</key>
<key name="javascript-show-calltips" type="b">
<default>true</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
......@@ -42,10 +42,10 @@ libpython_plugin_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
libpython_plugin_la_LIBADD = \
$(LIBANJUTA_LIBS)
prefs_name = org.gnome.anjuta.python
prefs_ui_files = python-plugin-properties.ui
prefs_keyfile = python.gschema-part.xml
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.python.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
......@@ -54,4 +54,9 @@ EXTRA_DIST = \
$(python_plugin_glade_DATA) \
$(python_plugin_pixmaps_DATA) \
$(scripts_SCRIPTS) \
$(prefs_keyfile)
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.python" path="/org/gnome/anjuta/">
<key name="python-no-rope-warning" type="b">
<default>false</default>
</key>
<key name="python-indent-automatic" type="b">
<default>true</default>
</key>
<key name="python-indent-adaptive" type="b">
<default>true</default>
</key>
<key name="python-indent-brace-size" type="i">
<default>0</default>
</key>
<key name="python-indent-statement-size" type="i">
<default>4</default>
</key>
<key name="python-completion-enable" type="b">
<default>true</default>
</key>
<key name="python-completion-func-space" type="b">
<default>true</default>
</key>
<key name="python-completion-func-brace" type="b">
<default>true</default>
</key>
<key name="python-calltip-enable" type="b">
<default>true</default>
</key>
<key name="python-interpreter-path" type="s">
<default>"/usr/bin/python"</default>
</key>
</schema>
</schemalist>
\ No newline at end of file
<key name="python-no-rope-warning" type="b">
<default>false</default>
</key>
......@@ -42,15 +42,20 @@ libanjuta_message_view_la_SOURCES = \
message-view.c\
message-view.h
prefs_name = org.gnome.anjuta.message-manager
prefs_ui_files = anjuta-message-manager-plugin.ui
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.message-manager.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
$(message_view_pixmaps_DATA) \
$(message_view_plugin_DATA) \
$(message_view_ui_DATA) \
$(message_view_glade_DATA)
$(message_view_glade_DATA) \
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.message-manager" path="/org/gnome/anjuta/">
<key name="msgman-style-normal" type="s">
<choices>
<choice value="Underline-Plain" />
<choice value="Underline-Squiggle" />
<choice value="Underline-TT" />
<choice value="Diagonal" />
<choice value="Strike-Out" />
</choices>
<default>"Underline-Plain"</default>
</key>
<key name="msgman-style-warning" type="s">
<choices>
<choice value="Underline-Plain" />
<choice value="Underline-Squiggle" />
<choice value="Underline-TT" />
<choice value="Diagonal" />
<choice value="Strike-Out" />
</choices>
<default>"Underline-Plain"</default>
</key>
<key name="msgman-style-error" type="s">
<choices>
<choice value="Underline-Plain" />
<choice value="Underline-Squiggle" />
<choice value="Underline-TT" />
<choice value="Diagonal" />
<choice value="Strike-Out" />
</choices>
<default>"Underline-Plain"</default>
</key>
<key name="msgman-color-error" type="s">
<default>"#FF0000"</default>
</key>
<key name="msgman-color-warning" type="s">
<default>"#00FF00"</default>
</key>
</schema>
</schemalist>
......@@ -11,11 +11,8 @@ anjuta_pixmapsdir = $(anjuta_image_dir)
anjuta_pixmaps_DATA = \
anjuta-run-program-48.png
schema_in_files = org.gnome.anjuta.run.gschema.xml.in
gsettings_SCHEMAS = $(schema_in_files:.gschema.xml.in=.gschema.xml)
.PRECIOUS: $(gsettings_SCHEMAS)
gsettings_in_file = org.gnome.anjuta.run.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
......@@ -55,9 +52,9 @@ EXTRA_DIST = \
$(anjuta_plugin_DATA) \
$(anjuta_ui_DATA) \
$(anjuta_glade_DATA) \
$(schema_in_files)
$(gsettings_in_file)
DISTCLEANFILES = \
$(gsettings_SCHEMAS)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="org.gnome.anjuta.run" path="/org/gnome/anjuta/run/">
<key name="run-terminal-command" type="s">
<schema path="/org/gnome/anjuta/run/" id="org.gnome.anjuta.run">
<key type="s" name="run-terminal-command">
<default>"gnome-terminal --disable-factory -e %s"</default>
<_summary>Command used for starting a terminal</_summary>
<summary>Command used for starting a terminal</summary>
</key>
</schema>
</schemalist>
</schemalist>
\ No newline at end of file
......@@ -72,9 +72,10 @@ libanjuta_snippets_manager_la_SOURCES = \
snippets-import-export.c\
snippets-import-export.h
prefs_name = org.gnome.anjuta.snippets
prefs_ui_files = snippets-manager-preferences.ui
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.snippets.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
$(plugin_in_files) \
......@@ -82,6 +83,10 @@ EXTRA_DIST = \
$(snippets_manager_plugin_DATA) \
$(snippets_manager_glade_DATA) \
$(default_snippets_DATA) \
$(snippets_manager_ui_DATA)
$(snippets_manager_ui_DATA) \
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.snippets" path="/org/gnome/anjuta/">
</schema>
</schemalist>
\ No newline at end of file
......@@ -77,10 +77,10 @@ libanjuta_sourceview_la_LIBADD = \
$(SOURCEVIEW_LIBS) \
$(LIBANJUTA_LIBS)
prefs_name = org.gnome.anjuta.sourceview
prefs_keyfile = sourceview.gschema-part.xml
prefs_ui_files = anjuta-editor-sourceview.ui
include $(top_srcdir)/scripts/build-schemas.mk
gsettings_in_file = org.gnome.anjuta.sourceview.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
anjuta-marshal.list \
......@@ -88,8 +88,9 @@ EXTRA_DIST = \
$(sourceview_plugin_DATA) \
$(sourceview_pixmaps_DATA) \
$(sourceview_xml_DATA) \
$(prefs_keyfile)
$(gsettings_in_file)
CLEANFILES = \
$(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
<schemalist>
<schema id="org.gnome.anjuta.sourceview" path="/org/gnome/anjuta/">
<key name="sourceview-style" type="s">
<default>"tango"</default>
</key>
<key name="sourceview-print-linewrap" type="b">
<default>true</default>
</key>
<key name="sourceview-print-header" type="b">
<default>false</default>
</key>
<key name="sourceview-print-footer" type="b">
<default>false</default>
</key>
<key name="sourceview-print-highlight" type="b">
<default>true</default>
</key>
<key name="sourceview-print-linenumbers" type="b">
<default>false</default>
</key> <key name="tabsize" type="i">
<default>4</default>
</key>
<key name="use-tabs" type="b">
<default>true</default>
</key>
<key name="sourceview-syntax-highlight" type="b">
<default>true</default>
</key>