Mercurial > pidgin
changeset 21818:1aba82112cf2
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.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 12 Dec 2007 01:48:49 +0000 |
parents | c03139b26b77 |
children | a53f4b1813df |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;