comparison mcabber/src/screen.c @ 1141:5be2408a6534

Add option "max_history_blocks"
author Mikael Berthe <mikael@lilotux.net>
date Tue, 06 Feb 2007 00:21:42 +0100
parents 104676e3389b
children 0e27177882c7
comparison
equal deleted inserted replaced
1140:800bb1e9019c 1141:5be2408a6534
393 HBB_PREFIX_SPECIAL, FALSE); 393 HBB_PREFIX_SPECIAL, FALSE);
394 } else { 394 } else {
395 printf("%s\n", buffer_locale); 395 printf("%s\n", buffer_locale);
396 // ncurses are not initialized yet, so we call directly hbuf routine 396 // ncurses are not initialized yet, so we call directly hbuf routine
397 hbuf_add_line(&statushbuf, buf_specialwindow, timestamp, 397 hbuf_add_line(&statushbuf, buf_specialwindow, timestamp,
398 HBB_PREFIX_SPECIAL, 0); 398 HBB_PREFIX_SPECIAL, 0, 0);
399 } 399 }
400 400
401 g_free(convbuf1); 401 g_free(convbuf1);
402 g_free(convbuf2); 402 g_free(convbuf2);
403 g_free(buffer); 403 g_free(buffer);
689 if (win_entry->cleared) 689 if (win_entry->cleared)
690 win_entry->top = g_list_last(win_entry->hbuf); 690 win_entry->top = g_list_last(win_entry->hbuf);
691 691
692 text_locale = from_utf8(text); 692 text_locale = from_utf8(text);
693 hbuf_add_line(&win_entry->hbuf, text_locale, timestamp, prefix_flags, 693 hbuf_add_line(&win_entry->hbuf, text_locale, timestamp, prefix_flags,
694 maxX - Roster_Width - PREFIX_WIDTH); 694 maxX - Roster_Width - PREFIX_WIDTH,
695 get_max_history_blocks());
695 g_free(text_locale); 696 g_free(text_locale);
696 697
697 if (win_entry->cleared) { 698 if (win_entry->cleared) {
698 win_entry->cleared = FALSE; 699 win_entry->cleared = FALSE;
699 if (g_list_next(win_entry->top)) 700 if (g_list_next(win_entry->top))