From 854e1724677916cfad13eb8a4a868d4779cf4a1e Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sun, 9 Jun 2019 13:27:11 -0400 Subject: * Add do-not-disturb setting --- data/org.mate.NotificationDaemon.gschema.xml.in | 5 +++++ src/daemon/daemon.h | 1 + 2 files changed, 6 insertions(+) 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 @@ Sound Enabled Turns on and off sound support for notifications. + + false + Do not disturb + When enabled, notifications are not shown. + 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" -- cgit v1.2.1