diff options
-rw-r--r-- | data/org.mate.NotificationDaemon.gschema.xml.in | 5 | ||||
-rw-r--r-- | src/daemon/daemon.h | 1 |
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" |