diff options
author | James Booth <boothj5@gmail.com> | 2016-02-01 01:11:01 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-02-01 01:11:01 +0000 |
commit | f91b21a1d67f97f2ba55d32358f85df9ffe3d175 (patch) | |
tree | 9d97972eabd75927e2f415f634ed2b269c68dc9b /src/config | |
parent | 08c1e62e3ca899100758a760452758efab497de6 (diff) | |
download | profani-tty-f91b21a1d67f97f2ba55d32358f85df9ffe3d175.tar.gz |
Allow splitting roster rooms by conference server
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 5 | ||||
-rw-r--r-- | src/config/preferences.h | 1 | ||||
-rw-r--r-- | src/config/theme.c | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 0a2ae3cc..3ce1997c 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1147,6 +1147,7 @@ _get_group(preference_t pref) case PREF_ROSTER_CONTACTS: case PREF_ROSTER_ROOMS: case PREF_ROSTER_ROOMS_POS: + case PREF_ROSTER_ROOMS_BY: case PREF_ROSTER_ROOMS_ORDER: case PREF_ROSTER_ROOMS_UNREAD: case PREF_ROSTER_PRIVATE: @@ -1354,6 +1355,8 @@ _get_key(preference_t pref) return "roster.rooms"; case PREF_ROSTER_ROOMS_POS: return "roster.rooms.pos"; + case PREF_ROSTER_ROOMS_BY: + return "roster.rooms.by"; case PREF_ROSTER_ROOMS_ORDER: return "roster.rooms.order"; case PREF_ROSTER_ROOMS_UNREAD: @@ -1454,6 +1457,8 @@ _get_default_string(preference_t pref) return "after"; case PREF_ROSTER_ROOMS_POS: return "last"; + case PREF_ROSTER_ROOMS_BY: + return "none"; case PREF_ROSTER_ROOMS_ORDER: return "name"; case PREF_ROSTER_ROOMS_UNREAD: diff --git a/src/config/preferences.h b/src/config/preferences.h index ff8b687d..ac79a076 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -78,6 +78,7 @@ typedef enum { PREF_ROSTER_CONTACTS, PREF_ROSTER_ROOMS, PREF_ROSTER_ROOMS_POS, + PREF_ROSTER_ROOMS_BY, PREF_ROSTER_ROOMS_ORDER, PREF_ROSTER_ROOMS_UNREAD, PREF_ROSTER_PRIVATE, diff --git a/src/config/theme.c b/src/config/theme.c index 40bf3539..614deeb7 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -416,6 +416,7 @@ _load_preferences(void) _set_string_preference("roster.rooms.order", PREF_ROSTER_ROOMS_ORDER); _set_string_preference("roster.rooms.unread", PREF_ROSTER_ROOMS_UNREAD); _set_string_preference("roster.rooms.pos", PREF_ROSTER_ROOMS_POS); + _set_string_preference("roster.rooms.by", PREF_ROSTER_ROOMS_BY); _set_string_preference("roster.private", PREF_ROSTER_PRIVATE); _set_string_preference("roster.count", PREF_ROSTER_COUNT); |