From 075774fe6081997a2c878ed19c7520c17790a279 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sun, 17 Feb 2013 22:38:46 -0500 Subject: * Add GSettings support. - hide-indicator key to show/hide the indicator - max-items key to change the maximum number of displayed notifications --- data/Makefile.am | 20 ++++++++++++++++++++ ...unchpad.indicator.notifications.gschema.xml.in.in | 15 +++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 data/net.launchpad.indicator.notifications.gschema.xml.in.in (limited to 'data') 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 @@ + + + + false + <_summary>Hide the indicator + <_description>If true, the indicator is hidden. + + + + 5 + <_summary>Maximum number of visible items + <_description>The indicator will only display at most the number of notifications indicated by this value. + + + -- cgit v1.2.3