about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-18 02:14:11 +0000
committerJames Booth <boothj5@gmail.com>2015-11-18 02:14:11 +0000
commit8e84d160e6a7eded077be3e32012e9725961a0cd (patch)
tree90878779a11ab7703e11f1afb90d03084946bfd3 /src/config
parent4505102fa83e00c70d1ee15967b977957dcf3aa5 (diff)
downloadprofani-tty-8e84d160e6a7eded077be3e32012e9725961a0cd.tar.gz
Added option to show resource priority in roster
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 46cd3169..f55895e2 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -603,6 +603,7 @@ _get_group(preference_t pref)
         case PREF_ROSTER_BY:
         case PREF_ROSTER_ORDER:
         case PREF_ROSTER_COUNT:
+        case PREF_ROSTER_PRIORITY:
         case PREF_RESOURCE_TITLE:
         case PREF_RESOURCE_MESSAGE:
         case PREF_ENC_WARN:
@@ -784,6 +785,8 @@ _get_key(preference_t pref)
             return "roster.order";
         case PREF_ROSTER_COUNT:
             return "roster.count";
+        case PREF_ROSTER_PRIORITY:
+            return "roster.priority";
         case PREF_RESOURCE_TITLE:
             return "resource.title";
         case PREF_RESOURCE_MESSAGE:
@@ -839,6 +842,7 @@ _get_default_boolean(preference_t pref)
         case PREF_ROSTER_STATUS:
         case PREF_ROSTER_EMPTY:
         case PREF_ROSTER_COUNT:
+        case PREF_ROSTER_PRIORITY:
         case PREF_TLS_SHOW:
         case PREF_LASTACTIVITY:
             return TRUE;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index dcc0f441..c5f60469 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -70,6 +70,7 @@ typedef enum {
     PREF_ROSTER_BY,
     PREF_ROSTER_ORDER,
     PREF_ROSTER_COUNT,
+    PREF_ROSTER_PRIORITY,
     PREF_MUC_PRIVILEGES,
     PREF_PRESENCE,
     PREF_WRAP,