diff options
author | James Booth <boothj5@gmail.com> | 2016-01-19 22:38:00 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-19 22:38:00 +0000 |
commit | 519b10d105ba11098693a8c358273b5c94a3ac7f (patch) | |
tree | d31c49098579d4b755ddfb316bf0ac92962d08fa /src/config | |
parent | 7b982f383cd47d5008c6f2a37e318c25971b8147 (diff) | |
download | profani-tty-519b10d105ba11098693a8c358273b5c94a3ac7f.tar.gz |
Added /roster rooms position preference
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 54bc5516..15b7be45 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1048,6 +1048,7 @@ _get_group(preference_t pref) case PREF_ROSTER_WRAP: case PREF_ROSTER_RESOURCE_JOIN: case PREF_ROSTER_ROOMS: + case PREF_ROSTER_ROOMS_POS: case PREF_ROSTER_ROOMS_ORDER: case PREF_ROSTER_ROOMS_UNREAD: case PREF_RESOURCE_TITLE: @@ -1248,6 +1249,8 @@ _get_key(preference_t pref) return "roster.resource.join"; case PREF_ROSTER_ROOMS: return "roster.rooms"; + case PREF_ROSTER_ROOMS_POS: + return "roster.rooms.pos"; case PREF_ROSTER_ROOMS_ORDER: return "roster.rooms.order"; case PREF_ROSTER_ROOMS_UNREAD: @@ -1341,6 +1344,8 @@ _get_default_string(preference_t pref) return "presence"; case PREF_ROSTER_UNREAD: return "after"; + case PREF_ROSTER_ROOMS_POS: + return "last"; 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 df6cd482..a7884f16 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -75,6 +75,7 @@ typedef enum { PREF_ROSTER_WRAP, PREF_ROSTER_RESOURCE_JOIN, PREF_ROSTER_ROOMS, + PREF_ROSTER_ROOMS_POS, PREF_ROSTER_ROOMS_ORDER, PREF_ROSTER_ROOMS_UNREAD, PREF_MUC_PRIVILEGES, diff --git a/src/config/theme.c b/src/config/theme.c index 6ba31107..fe176ab9 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -323,6 +323,7 @@ _load_preferences(void) _set_boolean_preference("roster.rooms", PREF_ROSTER_ROOMS); _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); if (g_key_file_has_key(theme, "ui", "roster.size", NULL)) { gint roster_size = g_key_file_get_integer(theme, "ui", "roster.size", NULL); prefs_set_roster_size(roster_size); |