pidgin/gtkconv.c

changeset 22990
9ed9a52e3be7
parent 22974
ac33a497eaf0
child 23008
49781f4819df
child 23032
0acae5b01488
equal deleted inserted replaced
22989:a42896c9bcd2 22990:9ed9a52e3be7
4484 4484
4485 /* Make sure there's enough room for at least min_lines. Allocate enough space to 4485 /* Make sure there's enough room for at least min_lines. Allocate enough space to
4486 * prevent scrolling when the second line is a continuation of the first line, or 4486 * prevent scrolling when the second line is a continuation of the first line, or
4487 * is the beginning of a new paragraph. */ 4487 * is the beginning of a new paragraph. */
4488 min_height = min_lines * (oneline.height + MAX(pad_inside, pad_top + pad_bottom)); 4488 min_height = min_lines * (oneline.height + MAX(pad_inside, pad_top + pad_bottom));
4489 height = CLAMP(height, min_height, max_height); 4489 height = CLAMP(height, MIN(min_height, max_height), max_height);
4490 4490
4491 diff = height - gtkconv->entry->allocation.height; 4491 diff = height - gtkconv->entry->allocation.height;
4492 if (ABS(diff) < oneline.height / 2) 4492 if (ABS(diff) < oneline.height / 2)
4493 return FALSE; 4493 return FALSE;
4494 4494

mercurial