diff options
author | James Booth <boothj5@gmail.com> | 2012-08-19 00:22:56 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-08-19 00:22:56 +0100 |
commit | 156918802d3954164f3341fbf9a89072a03c6ebb (patch) | |
tree | 2f2524285af903b9ae4aba69c926818c5ad8cf3a /src | |
parent | d4803bedc0d669b910084e8818024dabba0ebde3 (diff) | |
download | profani-tty-156918802d3954164f3341fbf9a89072a03c6ebb.tar.gz |
Added chat status colours to preferences.c
Diffstat (limited to 'src')
-rw-r--r-- | src/preferences.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/preferences.c b/src/preferences.c index 84b057bd..61b6b207 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -59,6 +59,10 @@ static struct colours_t { NCURSES_COLOR_T bkgnd; NCURSES_COLOR_T text; NCURSES_COLOR_T online; + NCURSES_COLOR_T away; + NCURSES_COLOR_T chat; + NCURSES_COLOR_T dnd; + NCURSES_COLOR_T xa; NCURSES_COLOR_T offline; NCURSES_COLOR_T err; NCURSES_COLOR_T inc; @@ -149,6 +153,18 @@ _load_colours(void) gchar *online_val = g_key_file_get_string(prefs, "colours", "online", NULL); _set_colour(online_val, &colour_prefs.online, COLOR_GREEN); + gchar *away_val = g_key_file_get_string(prefs, "colours", "away", NULL); + _set_colour(away_val, &colour_prefs.away, COLOR_GREEN); + + gchar *chat_val = g_key_file_get_string(prefs, "colours", "chat", NULL); + _set_colour(chat_val, &colour_prefs.chat, COLOR_GREEN); + + gchar *dnd_val = g_key_file_get_string(prefs, "colours", "dnd", NULL); + _set_colour(dnd_val, &colour_prefs.dnd, COLOR_GREEN); + + gchar *xa_val = g_key_file_get_string(prefs, "colours", "xa", NULL); + _set_colour(xa_val, &colour_prefs.xa, COLOR_GREEN); + gchar *offline_val = g_key_file_get_string(prefs, "colours", "offline", NULL); _set_colour(offline_val, &colour_prefs.offline, COLOR_CYAN); @@ -327,6 +343,30 @@ prefs_get_online() } NCURSES_COLOR_T +prefs_get_away() +{ + return colour_prefs.away; +} + +NCURSES_COLOR_T +prefs_get_chat() +{ + return colour_prefs.chat; +} + +NCURSES_COLOR_T +prefs_get_dnd() +{ + return colour_prefs.dnd; +} + +NCURSES_COLOR_T +prefs_get_xa() +{ + return colour_prefs.xa; +} + +NCURSES_COLOR_T prefs_get_offline() { return colour_prefs.offline; |