about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-24 21:13:33 +0100
committerJames Booth <boothj5@gmail.com>2014-05-24 21:13:33 +0100
commitb25b3f318036e6b14d52fef5a4f418a36d9b5a64 (patch)
tree64390020af43f1435e2bd214a2870c07db8b3168 /src/config
parenteb0f0dd96b368424a1f2344d23c67c1e8934aae4 (diff)
downloadprofani-tty-b25b3f318036e6b14d52fef5a4f418a36d9b5a64.tar.gz
Added notification setting for typing in current window
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c4
-rw-r--r--src/config/preferences.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index eb32d558..c5dd75b7 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -400,6 +400,7 @@ _get_group(preference_t pref)
         case PREF_OUTTYPE:
             return PREF_GROUP_CHATSTATES;
         case PREF_NOTIFY_TYPING:
+        case PREF_NOTIFY_TYPING_CURRENT:
         case PREF_NOTIFY_MESSAGE:
         case PREF_NOTIFY_MESSAGE_CURRENT:
         case PREF_NOTIFY_ROOM:
@@ -464,6 +465,8 @@ _get_key(preference_t pref)
             return "outtype";
         case PREF_NOTIFY_TYPING:
             return "typing";
+        case PREF_NOTIFY_TYPING_CURRENT:
+            return "typing.current";
         case PREF_NOTIFY_MESSAGE:
             return "message";
         case PREF_NOTIFY_MESSAGE_CURRENT:
@@ -515,6 +518,7 @@ _get_default_boolean(preference_t pref)
         case PREF_LOG_SHARED:
         case PREF_NOTIFY_MESSAGE_CURRENT:
         case PREF_NOTIFY_ROOM_CURRENT:
+        case PREF_NOTIFY_TYPING_CURRENT:
             return TRUE;
         default:
             return FALSE;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 75a4c576..66d0d41c 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -52,6 +52,7 @@ typedef enum {
     PREF_STATES,
     PREF_OUTTYPE,
     PREF_NOTIFY_TYPING,
+    PREF_NOTIFY_TYPING_CURRENT,
     PREF_NOTIFY_MESSAGE,
     PREF_NOTIFY_MESSAGE_CURRENT,
     PREF_NOTIFY_ROOM,