From 9aaeb5509420442b9ead6a8bbbb9b7ab32c38cdf Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 9 Sep 2015 15:20:06 +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 | 3 ++- data/Makefile.am | 8 +++--- data/org.mate.NotificationDaemon.gschema.xml.in | 29 ++++++++++++++++++++++ data/org.mate.NotificationDaemon.gschema.xml.in.in | 29 ---------------------- 4 files changed, 34 insertions(+), 35 deletions(-) create mode 100644 data/org.mate.NotificationDaemon.gschema.xml.in delete mode 100644 data/org.mate.NotificationDaemon.gschema.xml.in.in diff --git a/configure.ac b/configure.ac index a910a7b..3ddb637 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,7 @@ LT_INIT dnl --------------------------------------------------------------------------- dnl i18n stuff dnl --------------------------------------------------------------------------- -IT_PROG_INTLTOOL([0.40.0]) +IT_PROG_INTLTOOL([0.50.1]) AC_SUBST([GETTEXT_PACKAGE], [mate-notification-daemon]) AM_GLIB_GNU_GETTEXT AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [Define to the gettext package name.]) @@ -263,6 +263,7 @@ AC_CONFIG_FILES([ Makefile data/Makefile data/org.freedesktop.mate.Notifications.service +data/org.mate.NotificationDaemon.gschema.xml po/Makefile.in src/Makefile src/daemon/Makefile diff --git a/data/Makefile.am b/data/Makefile.am index 1aec612..a972ef1 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -16,18 +16,16 @@ iconscalable_DATA = icons/scalable/mate-notification-properties.svg servicedir = $(DBUS_SERVICES_DIR) service_DATA = org.freedesktop.mate.Notifications.service -gsettings_SCHEMAS = org.mate.NotificationDaemon.gschema.xml +gsettingsschema_in_files = org.mate.NotificationDaemon.gschema.xml.in +gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml) @INTLTOOL_XML_NOMERGE_RULE@ @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-notification-daemon.convert EXTRA_DIST = \ - $(gsettings_SCHEMAS).in.in \ + $(gsettingsschema_in_files) \ $(convert_DATA) \ $(service_DATA) \ $(icon16_DATA) \ diff --git a/data/org.mate.NotificationDaemon.gschema.xml.in b/data/org.mate.NotificationDaemon.gschema.xml.in new file mode 100644 index 0000000..c3c615b --- /dev/null +++ b/data/org.mate.NotificationDaemon.gschema.xml.in @@ -0,0 +1,29 @@ + + + + 'top_right' + Popup location + Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right" + + + true + Use Active Monitor + Display the notification on the active monitor. + + + 0 + Monitor + Monitor to display the notification. Allowed values: -1 (display on active monitor) and 0 to n - 1 where n is the number of monitors. + + + 'nodoka' + Current theme + The theme used when displaying notifications. + + + true + Sound Enabled + Turns on and off sound support for notifications. + + + diff --git a/data/org.mate.NotificationDaemon.gschema.xml.in.in b/data/org.mate.NotificationDaemon.gschema.xml.in.in deleted file mode 100644 index fc51a77..0000000 --- a/data/org.mate.NotificationDaemon.gschema.xml.in.in +++ /dev/null @@ -1,29 +0,0 @@ - - - - 'top_right' - <_summary>Popup location - <_description>Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right" - - - true - <_summary>Use Active Monitor - <_description>Display the notification on the active monitor. - - - 0 - <_summary>Monitor - <_description>Monitor to display the notification. Allowed values: -1 (display on active monitor) and 0 to n - 1 where n is the number of monitors. - - - 'nodoka' - <_summary>Current theme - <_description>The theme used when displaying notifications. - - - true - <_summary>Sound Enabled - <_description>Turns on and off sound support for notifications. - - - -- cgit v1.2.1