1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +02:00

added some panel functions, fixed refresh bugs when terminal is resized: too many refreshs, display bug with splited windows

This commit is contained in:
Sebastien Helleu
2006-07-16 11:04:10 +00:00
parent c308b2ec1f
commit 4c4f5ab012
68 changed files with 4256 additions and 2996 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ channel_remove_away (t_irc_channel *channel)
{
NICK_SET_FLAG(ptr_nick, 0, NICK_AWAY);
}
gui_nicklist_draw (channel->buffer, 0);
gui_nicklist_draw (channel->buffer, 0, 0);
}
}
+34 -28
View File
@@ -1536,33 +1536,39 @@ dcc_end ()
*/
void
dcc_print_log (t_irc_dcc *dcc)
dcc_print_log ()
{
weechat_log_printf ("[DCC (addr:0x%X)]\n", dcc);
weechat_log_printf (" server. . . . . . . : 0x%X\n", dcc->server);
weechat_log_printf (" channel . . . . . . : 0x%X\n", dcc->channel);
weechat_log_printf (" type. . . . . . . . : %d\n", dcc->type);
weechat_log_printf (" status. . . . . . . : %d\n", dcc->status);
weechat_log_printf (" start_time. . . . . : %ld\n", dcc->start_time);
weechat_log_printf (" start_transfer. . . : %ld\n", dcc->start_transfer);
weechat_log_printf (" addr. . . . . . . . : %lu\n", dcc->addr);
weechat_log_printf (" port. . . . . . . . : %d\n", dcc->port);
weechat_log_printf (" nick. . . . . . . . : '%s'\n", dcc->nick);
weechat_log_printf (" sock. . . . . . . . : %d\n", dcc->sock);
weechat_log_printf (" unterminated_message: '%s'\n", dcc->unterminated_message);
weechat_log_printf (" file. . . . . . . . : %d\n", dcc->file);
weechat_log_printf (" filename. . . . . . : '%s'\n", dcc->filename);
weechat_log_printf (" local_filename. . . : '%s'\n", dcc->local_filename);
weechat_log_printf (" filename_suffix . . : %d\n", dcc->filename_suffix);
weechat_log_printf (" size. . . . . . . . : %lu\n", dcc->size);
weechat_log_printf (" pos . . . . . . . . : %lu\n", dcc->pos);
weechat_log_printf (" ack . . . . . . . . : %lu\n", dcc->ack);
weechat_log_printf (" start_resume. . . . : %lu\n", dcc->start_resume);
weechat_log_printf (" last_check_time . . : %ld\n", dcc->last_check_time);
weechat_log_printf (" last_check_pos. . . : %lu\n", dcc->last_check_pos);
weechat_log_printf (" last_activity . . . : %ld\n", dcc->last_activity);
weechat_log_printf (" bytes_per_sec . . . : %lu\n", dcc->bytes_per_sec);
weechat_log_printf (" eta . . . . . . . . : %lu\n", dcc->eta);
weechat_log_printf (" prev_dcc. . . . . . : 0x%X\n", dcc->prev_dcc);
weechat_log_printf (" next_dcc. . . . . . : 0x%X\n", dcc->next_dcc);
t_irc_dcc *ptr_dcc;
for (ptr_dcc = dcc_list; ptr_dcc; ptr_dcc = ptr_dcc->next_dcc)
{
weechat_log_printf ("\n");
weechat_log_printf ("[DCC (addr:0x%X)]\n", ptr_dcc);
weechat_log_printf (" server. . . . . . . : 0x%X\n", ptr_dcc->server);
weechat_log_printf (" channel . . . . . . : 0x%X\n", ptr_dcc->channel);
weechat_log_printf (" type. . . . . . . . : %d\n", ptr_dcc->type);
weechat_log_printf (" status. . . . . . . : %d\n", ptr_dcc->status);
weechat_log_printf (" start_time. . . . . : %ld\n", ptr_dcc->start_time);
weechat_log_printf (" start_transfer. . . : %ld\n", ptr_dcc->start_transfer);
weechat_log_printf (" addr. . . . . . . . : %lu\n", ptr_dcc->addr);
weechat_log_printf (" port. . . . . . . . : %d\n", ptr_dcc->port);
weechat_log_printf (" nick. . . . . . . . : '%s'\n", ptr_dcc->nick);
weechat_log_printf (" sock. . . . . . . . : %d\n", ptr_dcc->sock);
weechat_log_printf (" unterminated_message: '%s'\n", ptr_dcc->unterminated_message);
weechat_log_printf (" file. . . . . . . . : %d\n", ptr_dcc->file);
weechat_log_printf (" filename. . . . . . : '%s'\n", ptr_dcc->filename);
weechat_log_printf (" local_filename. . . : '%s'\n", ptr_dcc->local_filename);
weechat_log_printf (" filename_suffix . . : %d\n", ptr_dcc->filename_suffix);
weechat_log_printf (" size. . . . . . . . : %lu\n", ptr_dcc->size);
weechat_log_printf (" pos . . . . . . . . : %lu\n", ptr_dcc->pos);
weechat_log_printf (" ack . . . . . . . . : %lu\n", ptr_dcc->ack);
weechat_log_printf (" start_resume. . . . : %lu\n", ptr_dcc->start_resume);
weechat_log_printf (" last_check_time . . : %ld\n", ptr_dcc->last_check_time);
weechat_log_printf (" last_check_pos. . . : %lu\n", ptr_dcc->last_check_pos);
weechat_log_printf (" last_activity . . . : %ld\n", ptr_dcc->last_activity);
weechat_log_printf (" bytes_per_sec . . . : %lu\n", ptr_dcc->bytes_per_sec);
weechat_log_printf (" eta . . . . . . . . : %lu\n", ptr_dcc->eta);
weechat_log_printf (" prev_dcc. . . . . . : 0x%X\n", ptr_dcc->prev_dcc);
weechat_log_printf (" next_dcc. . . . . . : 0x%X\n", ptr_dcc->next_dcc);
}
}
+1 -1
View File
@@ -408,7 +408,7 @@ nick_set_away (t_irc_channel *channel, t_irc_nick *nick, int is_away)
((!is_away) && (nick->flags & NICK_AWAY)))
{
NICK_SET_FLAG(nick, is_away, NICK_AWAY);
gui_nicklist_draw (channel->buffer, 0);
gui_nicklist_draw (channel->buffer, 0, 0);
}
}
}
+10 -10
View File
@@ -442,7 +442,7 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *nick, char *arguments
ptr_nick = nick_new (server, ptr_channel, nick, 0, 0, 0, 0, 0);
if (ptr_nick)
ptr_nick->host = strdup ((pos) ? pos + 1 : host);
gui_nicklist_draw (ptr_channel->buffer, 1);
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
return 0;
}
@@ -523,7 +523,7 @@ irc_cmd_recv_kick (t_irc_server *server, char *host, char *nick, char *arguments
{
/* my nick was kicked => free all nicks, channel is not active any more */
nick_free_all (ptr_channel);
gui_nicklist_draw (ptr_channel->buffer, 1);
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
if (server->autorejoin)
irc_cmd_send_join (server, NULL, ptr_channel->name);
@@ -534,7 +534,7 @@ irc_cmd_recv_kick (t_irc_server *server, char *host, char *nick, char *arguments
if (ptr_nick)
{
nick_free (ptr_channel, ptr_nick);
gui_nicklist_draw (ptr_channel->buffer, 1);
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
}
}
@@ -761,7 +761,7 @@ void irc_get_channel_modes (t_irc_server *server, t_irc_channel *channel,
{
NICK_SET_FLAG(ptr_nick, (set_flag == '+'), NICK_HALFOP);
nick_resort (channel, ptr_nick);
gui_nicklist_draw (channel->buffer, 1);
gui_nicklist_draw (channel->buffer, 1, 1);
}
}
@@ -926,7 +926,7 @@ void irc_get_channel_modes (t_irc_server *server, t_irc_channel *channel,
{
NICK_SET_FLAG(ptr_nick, (set_flag == '+'), NICK_OP);
nick_resort (channel, ptr_nick);
gui_nicklist_draw (channel->buffer, 1);
gui_nicklist_draw (channel->buffer, 1, 1);
}
}
@@ -1025,7 +1025,7 @@ void irc_get_channel_modes (t_irc_server *server, t_irc_channel *channel,
{
NICK_SET_FLAG(ptr_nick, (set_flag == '+'), NICK_VOICE);
nick_resort (channel, ptr_nick);
gui_nicklist_draw (channel->buffer, 1);
gui_nicklist_draw (channel->buffer, 1, 1);
}
}
@@ -1327,7 +1327,7 @@ irc_cmd_recv_nick (t_irc_server *server, char *host, char *nick, char *arguments
GUI_COLOR(COLOR_WIN_CHAT_NICK),
arguments);
}
gui_nicklist_draw (ptr_channel->buffer, 1);
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_add_hotlist = 1;
}
}
@@ -1648,7 +1648,7 @@ irc_cmd_recv_part (t_irc_server *server, char *host, char *nick, char *arguments
if (ptr_channel)
{
gui_nicklist_draw (ptr_channel->buffer, 1);
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
}
gui_input_draw (gui_current_window->buffer, 1);
@@ -2591,7 +2591,7 @@ irc_cmd_recv_quit (t_irc_server *server, char *host, char *nick, char *arguments
arguments,
GUI_COLOR(COLOR_WIN_CHAT_DARK));
}
gui_nicklist_draw (ptr_channel->buffer, 1);
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
}
}
@@ -4809,7 +4809,7 @@ irc_cmd_recv_353 (t_irc_server *server, char *host, char *nick, char *arguments)
}
if (ptr_channel)
{
gui_nicklist_draw (ptr_channel->buffer, 1);
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
}
else
+1 -1
View File
@@ -419,7 +419,7 @@ extern void dcc_send_request (t_irc_server *, int, char *, char *);
extern void dcc_chat_sendf (t_irc_dcc *, char *, ...);
extern void dcc_handle ();
extern void dcc_end ();
extern void dcc_print_log (t_irc_dcc *);
extern void dcc_print_log ();
/* IRC display (irc-diplay.c) */