1254 |
{ |
{ |
1255 |
switch (ptr_hotlist->priority) |
switch (ptr_hotlist->priority) |
1256 |
{ |
{ |
1257 |
case 0: |
case HOTLIST_LOW: |
1258 |
gui_window_set_color (ptr_win->win_status, |
gui_window_set_color (ptr_win->win_status, |
1259 |
COLOR_WIN_STATUS_DATA_OTHER); |
COLOR_WIN_STATUS_DATA_OTHER); |
1260 |
break; |
break; |
1261 |
case 1: |
case HOTLIST_MSG: |
1262 |
gui_window_set_color (ptr_win->win_status, |
gui_window_set_color (ptr_win->win_status, |
1263 |
COLOR_WIN_STATUS_DATA_MSG); |
COLOR_WIN_STATUS_DATA_MSG); |
1264 |
break; |
break; |
1265 |
case 2: |
case HOTLIST_PRIVATE: |
1266 |
|
gui_window_set_color (ptr_win->win_status, |
1267 |
|
COLOR_WIN_STATUS_DATA_PRIVATE); |
1268 |
|
break; |
1269 |
|
case HOTLIST_HIGHLIGHT: |
1270 |
gui_window_set_color (ptr_win->win_status, |
gui_window_set_color (ptr_win->win_status, |
1271 |
COLOR_WIN_STATUS_DATA_HIGHLIGHT); |
COLOR_WIN_STATUS_DATA_HIGHLIGHT); |
1272 |
break; |
break; |
2282 |
cfg_col_status_delimiters, cfg_col_status_bg); |
cfg_col_status_delimiters, cfg_col_status_bg); |
2283 |
init_pair (COLOR_WIN_STATUS_DATA_MSG, |
init_pair (COLOR_WIN_STATUS_DATA_MSG, |
2284 |
cfg_col_status_data_msg, cfg_col_status_bg); |
cfg_col_status_data_msg, cfg_col_status_bg); |
2285 |
|
init_pair (COLOR_WIN_STATUS_DATA_PRIVATE, |
2286 |
|
cfg_col_status_data_private, cfg_col_status_bg); |
2287 |
init_pair (COLOR_WIN_STATUS_DATA_HIGHLIGHT, |
init_pair (COLOR_WIN_STATUS_DATA_HIGHLIGHT, |
2288 |
cfg_col_status_data_highlight, cfg_col_status_bg); |
cfg_col_status_data_highlight, cfg_col_status_bg); |
2289 |
init_pair (COLOR_WIN_STATUS_DATA_OTHER, |
init_pair (COLOR_WIN_STATUS_DATA_OTHER, |
2362 |
color_attr[COLOR_WIN_STATUS - 1] = (cfg_col_status >= 0) ? cfg_col_status & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS - 1] = (cfg_col_status >= 0) ? cfg_col_status & A_BOLD : 0; |
2363 |
color_attr[COLOR_WIN_STATUS_DELIMITERS - 1] = (cfg_col_status_delimiters >= 0) ? cfg_col_status_delimiters & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DELIMITERS - 1] = (cfg_col_status_delimiters >= 0) ? cfg_col_status_delimiters & A_BOLD : 0; |
2364 |
color_attr[COLOR_WIN_STATUS_DATA_MSG - 1] = (cfg_col_status_data_msg >= 0) ? cfg_col_status_data_msg & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DATA_MSG - 1] = (cfg_col_status_data_msg >= 0) ? cfg_col_status_data_msg & A_BOLD : 0; |
2365 |
|
color_attr[COLOR_WIN_STATUS_DATA_PRIVATE - 1] = (cfg_col_status_data_private >= 0) ? cfg_col_status_data_private & A_BOLD : 0; |
2366 |
color_attr[COLOR_WIN_STATUS_DATA_HIGHLIGHT - 1] = (cfg_col_status_data_highlight >= 0) ? cfg_col_status_data_highlight & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DATA_HIGHLIGHT - 1] = (cfg_col_status_data_highlight >= 0) ? cfg_col_status_data_highlight & A_BOLD : 0; |
2367 |
color_attr[COLOR_WIN_STATUS_DATA_OTHER - 1] = (cfg_col_status_data_other >= 0) ? cfg_col_status_data_other & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DATA_OTHER - 1] = (cfg_col_status_data_other >= 0) ? cfg_col_status_data_other & A_BOLD : 0; |
2368 |
color_attr[COLOR_WIN_STATUS_MORE - 1] = (cfg_col_status_more >= 0) ? cfg_col_status_more & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_MORE - 1] = (cfg_col_status_more >= 0) ? cfg_col_status_more & A_BOLD : 0; |
2554 |
buffer->last_line->line_with_highlight <= |
buffer->last_line->line_with_highlight <= |
2555 |
buffer->notify_level) |
buffer->notify_level) |
2556 |
{ |
{ |
2557 |
hotlist_add (buffer->last_line->line_with_message + |
if (buffer->last_line->line_with_highlight) |
2558 |
buffer->last_line->line_with_highlight, |
hotlist_add (HOTLIST_HIGHLIGHT, buffer); |
2559 |
buffer); |
else if (BUFFER_IS_PRIVATE(buffer)) |
2560 |
|
hotlist_add (HOTLIST_PRIVATE, buffer); |
2561 |
|
else if (buffer->last_line->line_with_message) |
2562 |
|
hotlist_add (HOTLIST_MSG, buffer); |
2563 |
|
else |
2564 |
|
hotlist_add (HOTLIST_LOW, buffer); |
2565 |
gui_draw_buffer_status (gui_current_window->buffer, 1); |
gui_draw_buffer_status (gui_current_window->buffer, 1); |
2566 |
} |
} |
2567 |
} |
} |