Mercurial > pidgin
comparison finch/gntblist.c @ 21694:2de3a2de5f13
Update the changelogs. Correct the man page. Allow 'default' to mean the
default color (-1).
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 30 Nov 2007 18:10:16 +0000 |
parents | 3ed9b027479d |
children | 52bbf38a1cd2 |
comparison
equal
deleted
inserted
replaced
21693:052f5c37e881 | 21694:2de3a2de5f13 |
---|---|
25 */ | 25 */ |
26 #include "finch.h" | 26 #include "finch.h" |
27 | 27 |
28 #include <account.h> | 28 #include <account.h> |
29 #include <blist.h> | 29 #include <blist.h> |
30 #include <curses.h> | |
31 #include <notify.h> | 30 #include <notify.h> |
32 #include <request.h> | 31 #include <request.h> |
33 #include <savedstatuses.h> | 32 #include <savedstatuses.h> |
34 #include <server.h> | 33 #include <server.h> |
35 #include <signal.h> | 34 #include <signal.h> |
1786 #endif | 1785 #endif |
1787 } | 1786 } |
1788 | 1787 |
1789 void finch_blist_init() | 1788 void finch_blist_init() |
1790 { | 1789 { |
1791 short fg, bg; | 1790 color_available = get_color("color-available"); |
1792 if (has_colors()) { | 1791 if (!color_available) |
1793 pair_content(GNT_COLOR_NORMAL, &fg, &bg); | 1792 color_available = gnt_color_add_pair(COLOR_GREEN, -1); |
1794 color_available = get_color("color-available"); | 1793 color_away = get_color("color-away"); |
1795 if (!color_available) | 1794 if (!color_away) |
1796 color_available = gnt_color_add_pair(COLOR_GREEN, bg); | 1795 color_away = gnt_color_add_pair(COLOR_BLUE, -1); |
1797 color_away = get_color("color-away"); | 1796 color_idle = get_color("color-idle"); |
1798 if (!color_away) | 1797 if (!color_idle) |
1799 color_away = gnt_color_add_pair(COLOR_BLUE, bg); | 1798 color_idle = gnt_color_add_pair(COLOR_CYAN, -1); |
1800 color_idle = get_color("color-idle"); | 1799 color_offline = get_color("color-offline"); |
1801 if (!color_idle) | 1800 if (!color_offline) |
1802 color_idle = gnt_color_add_pair(COLOR_CYAN, bg); | 1801 color_offline = gnt_color_add_pair(COLOR_RED, -1); |
1803 color_offline = get_color("color-offline"); | 1802 |
1804 if (!color_offline) | |
1805 color_offline = gnt_color_add_pair(COLOR_RED, bg); | |
1806 } | |
1807 purple_prefs_add_none(PREF_ROOT); | 1803 purple_prefs_add_none(PREF_ROOT); |
1808 purple_prefs_add_none(PREF_ROOT "/size"); | 1804 purple_prefs_add_none(PREF_ROOT "/size"); |
1809 purple_prefs_add_int(PREF_ROOT "/size/width", 20); | 1805 purple_prefs_add_int(PREF_ROOT "/size/width", 20); |
1810 purple_prefs_add_int(PREF_ROOT "/size/height", 17); | 1806 purple_prefs_add_int(PREF_ROOT "/size/height", 17); |
1811 purple_prefs_add_none(PREF_ROOT "/position"); | 1807 purple_prefs_add_none(PREF_ROOT "/position"); |