comparison mcabber/src/screen.c @ 878:c7ba6f41d056

Fix /buffer clear when the buffer is locked
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 May 2006 13:22:06 +0200
parents 293e8955075c
children ea983a945eba
comparison
equal deleted inserted replaced
877:b38760d9ec2d 878:c7ba6f41d056
688 win_entry = scr_CreateBuddyPanel(winId, dont_show); 688 win_entry = scr_CreateBuddyPanel(winId, dont_show);
689 } 689 }
690 } 690 }
691 691
692 // The message must be displayed -> update top pointer 692 // The message must be displayed -> update top pointer
693 if (!win_entry->lock && win_entry->cleared) 693 if (win_entry->cleared)
694 win_entry->top = g_list_last(win_entry->hbuf); 694 win_entry->top = g_list_last(win_entry->hbuf);
695 695
696 text_locale = from_utf8(text); 696 text_locale = from_utf8(text);
697 hbuf_add_line(&win_entry->hbuf, text_locale, timestamp, prefix_flags, 697 hbuf_add_line(&win_entry->hbuf, text_locale, timestamp, prefix_flags,
698 maxX - Roster_Width - PREFIX_WIDTH); 698 maxX - Roster_Width - PREFIX_WIDTH);
699 g_free(text_locale); 699 g_free(text_locale);
700 700
701 if (!win_entry->lock && win_entry->cleared) { 701 if (win_entry->cleared) {
702 win_entry->cleared = FALSE; 702 win_entry->cleared = FALSE;
703 if (g_list_next(win_entry->top)) 703 if (g_list_next(win_entry->top))
704 win_entry->top = g_list_next(win_entry->top); 704 win_entry->top = g_list_next(win_entry->top);
705 } 705 }
706 706