Rework gsettings schema building
* Bump intltool required version for gsettings support * Extract strings with intltool directly * Let autoconf generate the xml files
This commit is contained in:
@@ -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)
|
||||
|
@@ -9,15 +9,15 @@
|
||||
<schema id="org.mate.pluma.plugins.time" path="/org/mate/pluma/plugins/time/">
|
||||
<key name="prompt-type" enum="org.mate.pluma.plugins.time.PromptType">
|
||||
<default>'prompt-selected-format'</default>
|
||||
<_summary>Prompt type</_summary>
|
||||
<summary>Prompt type</summary>
|
||||
</key>
|
||||
<key name="selected-format" type="s">
|
||||
<default>'%c'</default>
|
||||
<_summary>Selected format</_summary>
|
||||
<summary>Selected format</summary>
|
||||
</key>
|
||||
<key name="custom-format" type="s">
|
||||
<default>'%d/%m/%Y %H:%M:%S'</default>
|
||||
<_summary>Custom format</_summary>
|
||||
<summary>Custom format</summary>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
Reference in New Issue
Block a user