# HG changeset patch # User Stu Tomlinson # Date 1197424129 0 # Node ID 1aba82112cf2ca00e124d7ff6e0e47ef2afc738b # Parent c03139b26b775af285d588b2a697660d92c3a8cf Let's try MAX(lines, 2) as suggested by Sean. I've been using (lines + 1) for a while now and would probably tolerate it as a replacement for manual resizing, but I might be able to adjust to this too. We'll see. diff -r c03139b26b77 -r 1aba82112cf2 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Tue Dec 11 18:42:26 2007 +0000 +++ b/pidgin/gtkconv.c Wed Dec 12 01:48:49 2007 +0000 @@ -4349,7 +4349,7 @@ pad_bottom = gtk_text_view_get_pixels_below_lines(GTK_TEXT_VIEW(gtkconv->entry)); pad_inside = gtk_text_view_get_pixels_inside_wrap(GTK_TEXT_VIEW(gtkconv->entry)); - height = (oneline.height + pad_top + pad_bottom) * (lines + 1); + height = (oneline.height + pad_top + pad_bottom) * MAX(lines, 2); height += (oneline.height + pad_inside) * (wrapped_lines - lines); gtkconv->auto_resize = TRUE;