aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am20
-rw-r--r--data/net.launchpad.indicator.notifications.gschema.xml.in.in15
2 files changed, 35 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 61a1a63..7299c5b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1 +1,21 @@
SUBDIRS = icons
+
+gsettings_file = net.launchpad.indicator.notifications.gschema.xml
+gsettings_SCHEMAS = $(gsettings_file)
+
+@INTLTOOL_XML_NOMERGE_RULE@
+
+$(gsettings_file).in: $(gsettings_file).in.in
+ sed \
+ -e "s|\@GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|" \
+ $< > $@
+
+@GSETTINGS_RULES@
+
+EXTRA_DIST = \
+ $(gsettings_file).in.in
+
+CLEANFILES = \
+ $(gsettings_file) \
+ $(gsettings_file).in \
+ *.gschema.valid
diff --git a/data/net.launchpad.indicator.notifications.gschema.xml.in.in b/data/net.launchpad.indicator.notifications.gschema.xml.in.in
new file mode 100644
index 0000000..13c5ebc
--- /dev/null
+++ b/data/net.launchpad.indicator.notifications.gschema.xml.in.in
@@ -0,0 +1,15 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="net.launchpad.indicator.notifications" path="/net/launchpad/indicator/notifications/">
+ <key name="hide-indicator" type="b">
+ <default>false</default>
+ <_summary>Hide the indicator</_summary>
+ <_description>If true, the indicator is hidden.</_description>
+ </key>
+ <key name="max-items" type="i">
+ <range min="1" max="10"/>
+ <default>5</default>
+ <_summary>Maximum number of visible items</_summary>
+ <_description>The indicator will only display at most the number of notifications indicated by this value.</_description>
+ </key>
+ </schema>
+</schemalist>