summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Conti <[email protected]>2019-06-09 13:27:11 -0400
committerlukefromdc <[email protected]>2019-09-02 04:05:21 +0000
commit854e1724677916cfad13eb8a4a868d4779cf4a1e (patch)
tree75849f537fa6b08f067b04067508111a37c90eb0
parent7fcefc45231a04cd0e1c6b3327e009b492089365 (diff)
downloadmate-notification-daemon-854e1724677916cfad13eb8a4a868d4779cf4a1e.tar.bz2
mate-notification-daemon-854e1724677916cfad13eb8a4a868d4779cf4a1e.tar.xz
* Add do-not-disturb setting
-rw-r--r--data/org.mate.NotificationDaemon.gschema.xml.in5
-rw-r--r--src/daemon/daemon.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/data/org.mate.NotificationDaemon.gschema.xml.in b/data/org.mate.NotificationDaemon.gschema.xml.in
index c3c615b..17ea761 100644
--- a/data/org.mate.NotificationDaemon.gschema.xml.in
+++ b/data/org.mate.NotificationDaemon.gschema.xml.in
@@ -25,5 +25,10 @@
<summary>Sound Enabled</summary>
<description>Turns on and off sound support for notifications.</description>
</key>
+ <key name="do-not-disturb" type="b">
+ <default>false</default>
+ <summary>Do not disturb</summary>
+ <description>When enabled, notifications are not shown.</description>
+ </key>
</schema>
</schemalist>
diff --git a/src/daemon/daemon.h b/src/daemon/daemon.h
index 256579e..98f7f4d 100644
--- a/src/daemon/daemon.h
+++ b/src/daemon/daemon.h
@@ -32,6 +32,7 @@
#define GSETTINGS_KEY_THEME "theme"
#define GSETTINGS_KEY_POPUP_LOCATION "popup-location"
#define GSETTINGS_KEY_SOUND_ENABLED "sound-enabled"
+#define GSETTINGS_KEY_DO_NOT_DISTURB "do-not-disturb"
#define GSETTINGS_KEY_MONITOR_NUMBER "monitor-number"
#define GSETTINGS_KEY_USE_ACTIVE "use-active-monitor"