diff options
author | James Booth <boothj5@gmail.com> | 2016-05-15 00:55:19 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-15 00:55:19 +0100 |
commit | d00615beba0e9f6d463b821c3a9406e412ebbfe2 (patch) | |
tree | f9edbce11180c78b8fac769b11c0582a06351207 /src/config | |
parent | cf8452d95f7a172f0609cd2f647f23a52aeb62d1 (diff) | |
download | profani-tty-d00615beba0e9f6d463b821c3a9406e412ebbfe2.tar.gz |
Add /tray read on|off command
issue #786
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 4 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 72cf0400..afbde809 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1242,6 +1242,7 @@ _get_group(preference_t pref) case PREF_NOTIFY_MENTION_CASE_SENSITIVE: case PREF_NOTIFY_MENTION_WHOLE_WORD: case PREF_TRAY: + case PREF_TRAY_READ: return PREF_GROUP_NOTIFICATIONS; case PREF_CHLOG: case PREF_GRLOG: @@ -1294,6 +1295,8 @@ _get_key(preference_t pref) return "flash"; case PREF_TRAY: return "tray"; + case PREF_TRAY_READ: + return "tray.read"; case PREF_INTYPE: return "intype"; case PREF_HISTORY: @@ -1507,6 +1510,7 @@ _get_default_boolean(preference_t pref) case PREF_TLS_SHOW: case PREF_LASTACTIVITY: case PREF_NOTIFY_MENTION_WHOLE_WORD: + case PREF_TRAY_READ: return TRUE; default: return FALSE; diff --git a/src/config/preferences.h b/src/config/preferences.h index e4968521..b4a31a77 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -53,6 +53,7 @@ typedef enum { PREF_TITLEBAR_GOODBYE, PREF_FLASH, PREF_TRAY, + PREF_TRAY_READ, PREF_INTYPE, PREF_HISTORY, PREF_CARBONS, |