From ddf66032a7375c70befe4a0d72ba04d7bc6b0f15 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 8 Sep 2015 12:39:43 +0200 Subject: Rework gsettings schema building * Bump intltool required version for gsettings support * Extract strings with intltool directly * Let autoconf generate the xml files --- configure.ac | 4 +++- mate-window-picker-applet/Makefile.am | 11 ++++------ ...applet.mate-window-picker-applet.gschema.xml.in | 9 ++++++++ ...let.mate-window-picker-applet.gschema.xml.in.in | 9 -------- maximus/Makefile.am | 13 ++++-------- maximus/org.mate.maximus.gschema.xml.in | 24 ++++++++++++++++++++++ maximus/org.mate.maximus.gschema.xml.in.in | 24 ---------------------- po/POTFILES.in | 4 ++-- 8 files changed, 46 insertions(+), 52 deletions(-) create mode 100644 mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in delete mode 100644 mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in.in create mode 100644 maximus/org.mate.maximus.gschema.xml.in delete mode 100644 maximus/org.mate.maximus.gschema.xml.in.in diff --git a/configure.ac b/configure.ac index 435aacc..67b4d75 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ AC_SUBST(GETTEXT_PACKAGE) AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS']) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name]) -IT_PROG_INTLTOOL([0.34]) +IT_PROG_INTLTOOL([0.50.1]) AM_GLIB_GNU_GETTEXT @@ -82,7 +82,9 @@ GLIB_GSETTINGS AC_OUTPUT([ Makefile maximus/Makefile +maximus/org.mate.maximus.gschema.xml mate-window-picker-applet/Makefile +mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml po/Makefile.in ]) diff --git a/mate-window-picker-applet/Makefile.am b/mate-window-picker-applet/Makefile.am index 0ecd7b4..71bfd50 100644 --- a/mate-window-picker-applet/Makefile.am +++ b/mate-window-picker-applet/Makefile.am @@ -47,14 +47,11 @@ org.mate.panel.applet.MateWindowPickerFactory.service: $(service_in_files) $< > $@ @INTLTOOL_XML_NOMERGE_RULE@ -gsettings_SCHEMAS = org.mate.panel.applet.mate-window-picker-applet.gschema.xml +gsettingsschema_in_files = org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in -gsettings_SCHEMAS_in_in = $(gsettings_SCHEMAS:.xml=.xml.in.in) +gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml) @GSETTINGS_RULES@ -%.gschema.xml.in: %.gschema.xml.in.in Makefile - $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@ - xmluidir = $(datadir)/mate-panel/ui xmlui_DATA = mate-window-picker-applet-menu.xml @@ -63,14 +60,14 @@ EXTRA_DIST = \ $(service_in_files) \ $(ui_DATA) \ $(convert_DATA) \ - $(gsettings_SCHEMAS_in_in) \ + $(gsettingsschema_in_files) \ $(xmlui_DATA) CLEANFILES = \ $(applet_DATA) \ $(applet_DATA).in \ - $(gsettings_SCHEMAS_in) \ $(gsettings_SCHEMAS) \ + *.gschema.valid \ $(service_DATA) clean: diff --git a/mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in b/mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in new file mode 100644 index 0000000..71f3bd2 --- /dev/null +++ b/mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in @@ -0,0 +1,9 @@ + + + + true + Show windows from all workspaces. + Show windows from all workspaces. + + + diff --git a/mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in.in b/mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in.in deleted file mode 100644 index 88964f1..0000000 --- a/mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in.in +++ /dev/null @@ -1,9 +0,0 @@ - - - - true - <_summary>Show windows from all workspaces. - <_description>Show windows from all workspaces. - - - diff --git a/maximus/Makefile.am b/maximus/Makefile.am index b1994a4..3326b6b 100644 --- a/maximus/Makefile.am +++ b/maximus/Makefile.am @@ -31,14 +31,11 @@ mate_maximus_SOURCES = \ xutils.h @INTLTOOL_XML_NOMERGE_RULE@ -gsettings_SCHEMAS = org.mate.maximus.gschema.xml +gsettingsschema_in_files = org.mate.maximus.gschema.xml.in -gsettings_SCHEMAS_in_in = $(gsettings_SCHEMAS:.xml=.xml.in.in) +gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml) @GSETTINGS_RULES@ -%.gschema.xml.in: %.gschema.xml.in.in Makefile - $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@ - convertdir = $(datadir)/MateConf/gsettings convert_DATA = mate-maximus.convert @@ -47,8 +44,6 @@ dist_desktop_DATA=mate-maximus-autostart.desktop man_MANS = mate-maximus.1 -CLEANFILES = $(gsettings_SCHEMAS) \ - $(gsettings_SCHEMAS_in) - +CLEANFILES = $(gsettings_SCHEMAS) *.gschema.valid -EXTRA_DIST = $(gsettings_SCHEMAS_in_in) $(convert_DATA) $(man_MANS) +EXTRA_DIST = $(gsettingsschema_in_files) $(convert_DATA) $(man_MANS) diff --git a/maximus/org.mate.maximus.gschema.xml.in b/maximus/org.mate.maximus.gschema.xml.in new file mode 100644 index 0000000..0fde1cc --- /dev/null +++ b/maximus/org.mate.maximus.gschema.xml.in @@ -0,0 +1,24 @@ + + + + [ 'Totem' ] + A list of exclusion strings which apply to the window class. + A list of exclusion strings which apply to the window class + + + 'disabled' + A binding + A binding + + + false + Undecorate windows when maximized + Undecorate windows when maximized + + + true + Do not automatically maximize newly opened windows + Do not automatically maximize newly opened windows. If undecorate is set, will still undecorate maximised windows. + + + diff --git a/maximus/org.mate.maximus.gschema.xml.in.in b/maximus/org.mate.maximus.gschema.xml.in.in deleted file mode 100644 index 8f0c635..0000000 --- a/maximus/org.mate.maximus.gschema.xml.in.in +++ /dev/null @@ -1,24 +0,0 @@ - - - - [ 'Totem' ] - <_summary>A list of exclusion strings which apply to the window class. - <_description>A list of exclusion strings which apply to the window class - - - 'disabled' - <_summary>A binding - <_description>A binding - - - false - <_summary>Undecorate windows when maximized - <_description>Undecorate windows when maximized - - - true - <_summary>Do not automatically maximize newly opened windows - <_description>Do not automatically maximize newly opened windows. If undecorate is set, will still undecorate maximised windows. - - - diff --git a/po/POTFILES.in b/po/POTFILES.in index b7cd102..7ac7a98 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,6 +1,6 @@ -mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in.in +mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in mate-window-picker-applet/org.mate.panel.MateWindowPicker.mate-panel-applet.in.in mate-window-picker-applet/applet.c mate-window-picker-applet/task-title.c mate-window-picker-applet/task-item.c -maximus/org.mate.maximus.gschema.xml.in.in +maximus/org.mate.maximus.gschema.xml.in -- cgit v1.2.1