changeset 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 9bff90dfb2e5
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Wed Jan 28 09:59:55 2009 +0000
+++ b/pidgin/gtkstatusbox.c	Wed Jan 28 10:06:56 2009 +0000
@@ -2568,6 +2568,7 @@
 	{
 		gtk_text_view_get_iter_location(GTK_TEXT_VIEW(status_box->imhtml), &iter, &oneline);
 		height += oneline.height;
+		display_lines++;
 	}
 
 	lines = gtk_text_buffer_get_line_count(buffer);