diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-31 19:03:30 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-31 19:03:30 +0100 |
commit | ccb08945a1c8fbbcdbd1b8df980e0b5489564ccf (patch) | |
tree | f59a7ad0a351a0faed6ac0c803f559c54ae47c3a /src/gui/gtk/gui-gtk-chat.c | |
parent | 773effbb3ab16934b82b270bd8c684c33d562314 (diff) | |
download | weechat-ccb08945a1c8fbbcdbd1b8df980e0b5489564ccf.zip |
Dynamically allocate color pairs
This commit introduces major changes in 256 colors support:
- extended colors can be used without being added with command "/color add"
- background color is now allowed for nick colors (using slash separator)
Diffstat (limited to 'src/gui/gtk/gui-gtk-chat.c')
-rw-r--r-- | src/gui/gtk/gui-gtk-chat.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gui/gtk/gui-gtk-chat.c b/src/gui/gtk/gui-gtk-chat.c index 950646583..f416389dc 100644 --- a/src/gui/gtk/gui-gtk-chat.c +++ b/src/gui/gtk/gui-gtk-chat.c @@ -147,17 +147,6 @@ void gui_chat_set_color (struct t_gui_window *window, int fg, int bg) { /* TODO: write this function for Gtk */ - /*if (((fg == -1) || (fg == 99)) - && ((bg == -1) || (bg == 99))) - wattron (window->win_chat, COLOR_PAIR(63)); - else - { - if ((fg == -1) || (fg == 99)) - fg = WEECHAT_COLOR_WHITE; - if ((bg == -1) || (bg == 99)) - bg = 0; - wattron (window->win_chat, COLOR_PAIR((bg * 8) + fg)); - }*/ (void) window; (void) fg; (void) bg; |