From 6309311bbd3cbfb9f4061356b36333ad5d9ff807 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 11 Sep 2022 14:47:19 +0200 Subject: data/: Fix translation of .gschema.xml file. --- data/CMakeLists.txt | 7 ------ ...org.ayatana.indicator.notifications.gschema.xml | 25 ++++++++++++++++++++++ ....ayatana.indicator.notifications.gschema.xml.in | 25 ---------------------- po/POTFILES.in | 2 +- 4 files changed, 26 insertions(+), 33 deletions(-) create mode 100644 data/org.ayatana.indicator.notifications.gschema.xml delete mode 100644 data/org.ayatana.indicator.notifications.gschema.xml.in diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index aa5dddd..c81ac7b 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -3,13 +3,6 @@ ## set (SCHEMA_NAME "org.ayatana.indicator.notifications.gschema.xml") -set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}") -set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in") - -# generate the .xml file using intltool -find_package(Intltool REQUIRED) -set (ENV{LC_ALL} "C") -intltool_merge_translations("${SCHEMA_FILE_IN}" "${SCHEMA_FILE}" ALL UTF8 STYLE "xml" NO_TRANSLATIONS) # let GSettings do the rest find_package(GSettings REQUIRED) diff --git a/data/org.ayatana.indicator.notifications.gschema.xml b/data/org.ayatana.indicator.notifications.gschema.xml new file mode 100644 index 0000000..c0e4901 --- /dev/null +++ b/data/org.ayatana.indicator.notifications.gschema.xml @@ -0,0 +1,25 @@ + + + + [] + Discard notifications by application name + If an application name is in the filter list, all notifications matching the application name will be discarded. + + + [] + Recent application names to suggest for the filter list + Keeps track of recent application names so we can suggest them in the settings. + + + false + Enable do-not-disturb mode + On supported desktops enables do-not-disturb mode on the notification daemon. + + + + 5 + Maximum number of visible items + The indicator will only display at most the number of notifications indicated by this value. + + + diff --git a/data/org.ayatana.indicator.notifications.gschema.xml.in b/data/org.ayatana.indicator.notifications.gschema.xml.in deleted file mode 100644 index b85f14b..0000000 --- a/data/org.ayatana.indicator.notifications.gschema.xml.in +++ /dev/null @@ -1,25 +0,0 @@ - - - - [] - <_summary>Discard notifications by application name - <_description>If an application name is in the filter list, all notifications matching the application name will be discarded. - - - [] - Recent application names to suggest for the filter list - Keeps track of recent application names so we can suggest them in the settings. - - - false - Enable do-not-disturb mode - On supported desktops enables do-not-disturb mode on the notification daemon. - - - - 5 - <_summary>Maximum number of visible items - <_description>The indicator will only display at most the number of notifications indicated by this value. - - - diff --git a/po/POTFILES.in b/po/POTFILES.in index c8c6c6e..c8300cf 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,4 +1,4 @@ -data/org.ayatana.indicator.notifications.gschema.xml.in.in +data/org.ayatana.indicator.notifications.gschema.xml src/dbus-spy.c src/dbus-spy.h src/main.c -- cgit v1.2.3