comparison pidgin/gtkstatusbox.c @ 25939:1442c0a54831

Increment display_lines here so that, for fonts where pixels_inside_wrap() set a value greater than 0, it won't cause a few extra pixels to be added to the height when the user starts typing
author Mark Doliner <mark@kingant.net>
date Wed, 28 Jan 2009 10:06:56 +0000
parents 4c610616e018
children b162300ab1e7
comparison
equal deleted inserted replaced
25938:4c610616e018 25939:1442c0a54831
2566 && gtk_text_iter_backward_char(&iter) 2566 && gtk_text_iter_backward_char(&iter)
2567 && gtk_text_iter_get_char(&iter) == '\n') 2567 && gtk_text_iter_get_char(&iter) == '\n')
2568 { 2568 {
2569 gtk_text_view_get_iter_location(GTK_TEXT_VIEW(status_box->imhtml), &iter, &oneline); 2569 gtk_text_view_get_iter_location(GTK_TEXT_VIEW(status_box->imhtml), &iter, &oneline);
2570 height += oneline.height; 2570 height += oneline.height;
2571 display_lines++;
2571 } 2572 }
2572 2573
2573 lines = gtk_text_buffer_get_line_count(buffer); 2574 lines = gtk_text_buffer_get_line_count(buffer);
2574 2575
2575 /* Show a maximum of 4 lines */ 2576 /* Show a maximum of 4 lines */