Mercurial > pidgin
changeset 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 | 052f5c37e881 |
children | 52bbf38a1cd2 |
files | ChangeLog ChangeLog.API doc/finch.1.in finch/gntblist.c finch/libgnt/gntcolors.c |
diffstat | 5 files changed, 36 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Nov 30 09:22:44 2007 +0000 +++ b/ChangeLog Fri Nov 30 18:10:16 2007 +0000 @@ -1,5 +1,10 @@ Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul +version 2.3.1 (??/??/????): + Finch: + * Color is used in the buddylist to indicate status. Look at the sample + gntrc file in the man-page for details. + version 2.3.0 (11/24/2007): http://developer.pidgin.im/query?status=closed&milestone=2.3.0 NOTE: Some bugs marked fixed in 2.2.1, 2.2.2 or 2.2.3 may not
--- a/ChangeLog.API Fri Nov 30 09:22:44 2007 +0000 +++ b/ChangeLog.API Fri Nov 30 18:10:16 2007 +0000 @@ -1,5 +1,14 @@ Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul +version 2.3.1 (??/??/????): + Finch: + libgnt: + * Added gnt_tree_set_row_color to set the color for a row in a tree. + * Added gnt_style_get_string_list + * Added gnt_color_add_pair to define a new color. + * Added gnt_colors_get_color to get an ncurses color value from a + string. + version 2.3.0 (11/24/2007): libpurple: Added:
--- a/doc/finch.1.in Fri Nov 30 09:22:44 2007 +0000 +++ b/doc/finch.1.in Fri Nov 30 18:10:16 2007 +0000 @@ -137,13 +137,13 @@ .br [Finch] .br -online-color: green; black +color-available = green; black .br -away-color: blue; black +color-away = blue; black .br -idle-color: gray; black +color-idle = gray; black .br -offline-color: red; black +color-offline = red; black .br #See below for details on color .br
--- a/finch/gntblist.c Fri Nov 30 09:22:44 2007 +0000 +++ b/finch/gntblist.c Fri Nov 30 18:10:16 2007 +0000 @@ -27,7 +27,6 @@ #include <account.h> #include <blist.h> -#include <curses.h> #include <notify.h> #include <request.h> #include <savedstatuses.h> @@ -1788,22 +1787,19 @@ void finch_blist_init() { - short fg, bg; - if (has_colors()) { - pair_content(GNT_COLOR_NORMAL, &fg, &bg); - color_available = get_color("color-available"); - if (!color_available) - color_available = gnt_color_add_pair(COLOR_GREEN, bg); - color_away = get_color("color-away"); - if (!color_away) - color_away = gnt_color_add_pair(COLOR_BLUE, bg); - color_idle = get_color("color-idle"); - if (!color_idle) - color_idle = gnt_color_add_pair(COLOR_CYAN, bg); - color_offline = get_color("color-offline"); - if (!color_offline) - color_offline = gnt_color_add_pair(COLOR_RED, bg); - } + color_available = get_color("color-available"); + if (!color_available) + color_available = gnt_color_add_pair(COLOR_GREEN, -1); + color_away = get_color("color-away"); + if (!color_away) + color_away = gnt_color_add_pair(COLOR_BLUE, -1); + color_idle = get_color("color-idle"); + if (!color_idle) + color_idle = gnt_color_add_pair(COLOR_CYAN, -1); + color_offline = get_color("color-offline"); + if (!color_offline) + color_offline = gnt_color_add_pair(COLOR_RED, -1); + purple_prefs_add_none(PREF_ROOT); purple_prefs_add_none(PREF_ROOT "/size"); purple_prefs_add_int(PREF_ROOT "/size/width", 20);
--- a/finch/libgnt/gntcolors.c Fri Nov 30 09:22:44 2007 +0000 +++ b/finch/libgnt/gntcolors.c Fri Nov 30 18:10:16 2007 +0000 @@ -164,8 +164,12 @@ color = COLOR_MAGENTA; else if (strcmp(key, "cyan") == 0) color = COLOR_CYAN; - else + else if (strcmp(key, "default") == 0) color = -1; + else { + g_warning("Invalid color name: %s\n", key); + color = -1; + } return color; }