From ca8ca6923e74bb307bfe6c99c691399987eda7ed Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 8 Sep 2015 17:19:30 +0200 Subject: Rework gsettings schema building * Bump intltool required version for gsettings support * Extract strings with intltool directly * Let autoconf generate the xml files --- plugins/filebrowser/Makefile.am | 9 ++--- ...g.mate.pluma.plugins.filebrowser.gschema.xml.in | 43 ++++++++++++++++++++++ ...ate.pluma.plugins.filebrowser.gschema.xml.in.in | 43 ---------------------- plugins/time/Makefile.am | 8 ++-- .../org.mate.pluma.plugins.time.gschema.xml.in | 23 ++++++++++++ .../org.mate.pluma.plugins.time.gschema.xml.in.in | 23 ------------ 6 files changed, 72 insertions(+), 77 deletions(-) create mode 100644 plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in delete mode 100644 plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in.in create mode 100644 plugins/time/org.mate.pluma.plugins.time.gschema.xml.in delete mode 100644 plugins/time/org.mate.pluma.plugins.time.gschema.xml.in.in (limited to 'plugins') diff --git a/plugins/filebrowser/Makefile.am b/plugins/filebrowser/Makefile.am index 2124904c..3b494cdf 100644 --- a/plugins/filebrowser/Makefile.am +++ b/plugins/filebrowser/Makefile.am @@ -66,17 +66,14 @@ pluma-file-browser-marshal.c: pluma-file-browser-marshal.list $(GLIB_GENMARSHAL) plugin_DATA = $(plugin_in_files:.pluma-plugin.desktop.in=.pluma-plugin) @INTLTOOL_XML_NOMERGE_RULE@ -gsettings_SCHEMAS = org.mate.pluma.plugins.filebrowser.gschema.xml +filebrowser_gschema_in = org.mate.pluma.plugins.filebrowser.gschema.xml.in +gsettings_SCHEMAS = $(filebrowser_gschema_in:.xml.in=.xml) @GSETTINGS_RULES@ -%.gschema.xml.in: %.gschema.xml.in.in Makefile - $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@ - - EXTRA_DIST = \ $(ui_DATA) \ $(plugin_in_files) \ - $(gsettings_SCHEMAS).in.in \ + $(filebrowser_gschema_in) \ pluma-file-browser-enum-types.h.template \ pluma-file-browser-enum-types.c.template \ pluma-file-browser-enum-register.c.template \ diff --git a/plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in b/plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in new file mode 100644 index 00000000..cf5ada52 --- /dev/null +++ b/plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in @@ -0,0 +1,43 @@ + + + + + true + Set Location to First Document + If TRUE the file browser plugin will view the directory of the first opened document given that the file browser hasn't been used yet. (Thus this generally applies to opening a document from the command line or opening it with Caja, etc.) + + + 'hidden_and_binary' + File Browser Filter Mode + This value determines what files get filtered from the file browser. Valid values are: none (filter nothing), hidden (filter hidden files), binary (filter binary files) and hidden_and_binary (filter both hidden and binary files). + + + '' + File Browser Filter Pattern + The filter pattern to filter the file browser with. This filter works on top of the filter_mode. + + + + + + true + Open With Tree View + Open the tree view when the file browser plugin gets loaded instead of the bookmarks view + + + '' + File Browser Root Directory + The file browser root directory to use when loading the file browser plugin and onload/tree_view is TRUE. + + + '' + File Browser Virtual Root Directory + The file browser virtual root directory to use when loading the file browser plugin when onload/tree_view is TRUE. The virtual root must always be below the actual root. + + + false + Enable Restore of Remote Locations + Sets whether to enable restoring of remote locations. + + + diff --git a/plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in.in b/plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in.in deleted file mode 100644 index 4b128f97..00000000 --- a/plugins/filebrowser/org.mate.pluma.plugins.filebrowser.gschema.xml.in.in +++ /dev/null @@ -1,43 +0,0 @@ - - - - - true - <_summary>Set Location to First Document - <_description>If TRUE the file browser plugin will view the directory of the first opened document given that the file browser hasn't been used yet. (Thus this generally applies to opening a document from the command line or opening it with Caja, etc.) - - - 'hidden_and_binary' - <_summary>File Browser Filter Mode - <_description>This value determines what files get filtered from the file browser. Valid values are: none (filter nothing), hidden (filter hidden files), binary (filter binary files) and hidden_and_binary (filter both hidden and binary files). - - - '' - <_summary>File Browser Filter Pattern - <_description>The filter pattern to filter the file browser with. This filter works on top of the filter_mode. - - - - - - true - <_summary>Open With Tree View - <_description>Open the tree view when the file browser plugin gets loaded instead of the bookmarks view - - - '' - <_summary>File Browser Root Directory - <_description>The file browser root directory to use when loading the file browser plugin and onload/tree_view is TRUE. - - - '' - <_summary>File Browser Virtual Root Directory - <_description>The file browser virtual root directory to use when loading the file browser plugin when onload/tree_view is TRUE. The virtual root must always be below the actual root. - - - false - <_summary>Enable Restore of Remote Locations - <_description>Sets whether to enable restoring of remote locations. - - - diff --git a/plugins/time/Makefile.am b/plugins/time/Makefile.am index 0c270b8a..d1f8fe3b 100755 --- a/plugins/time/Makefile.am +++ b/plugins/time/Makefile.am @@ -28,13 +28,11 @@ plugin_in_files = time.pluma-plugin.desktop.in plugin_DATA = $(plugin_in_files:.pluma-plugin.desktop.in=.pluma-plugin) @INTLTOOL_XML_NOMERGE_RULE@ -gsettings_SCHEMAS = org.mate.pluma.plugins.time.gschema.xml +time_gschema_in = org.mate.pluma.plugins.time.gschema.xml.in +gsettings_SCHEMAS = $(time_gschema_in:.xml.in=.xml) @GSETTINGS_RULES@ -%.gschema.xml.in: %.gschema.xml.in.in Makefile - $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@ - -EXTRA_DIST = $(ui_DATA) $(plugin_in_files) $(gsettings_SCHEMAS).in.in +EXTRA_DIST = $(ui_DATA) $(plugin_in_files) $(time_gschema_in) CLEANFILES = $(plugin_DATA) $(gsettings_SCHEMAS_in) $(gsettings_SCHEMASn) DISTCLEANFILES = $(plugin_DATA) $(gsettings_SCHEMAS_in) $(gsettings_SCHEMAS) diff --git a/plugins/time/org.mate.pluma.plugins.time.gschema.xml.in b/plugins/time/org.mate.pluma.plugins.time.gschema.xml.in new file mode 100644 index 00000000..b3567e96 --- /dev/null +++ b/plugins/time/org.mate.pluma.plugins.time.gschema.xml.in @@ -0,0 +1,23 @@ + + + + + + + + + + + 'prompt-selected-format' + Prompt type + + + '%c' + Selected format + + + '%d/%m/%Y %H:%M:%S' + Custom format + + + diff --git a/plugins/time/org.mate.pluma.plugins.time.gschema.xml.in.in b/plugins/time/org.mate.pluma.plugins.time.gschema.xml.in.in deleted file mode 100644 index d294cfec..00000000 --- a/plugins/time/org.mate.pluma.plugins.time.gschema.xml.in.in +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - 'prompt-selected-format' - <_summary>Prompt type - - - '%c' - <_summary>Selected format - - - '%d/%m/%Y %H:%M:%S' - <_summary>Custom format - - - -- cgit v1.2.1