# HG changeset patch # User Sadrul Habib Chowdhury # Date 1209945625 0 # Node ID 7b21c5b208fbf7c7106f0779e837f9a55134a2df # Parent b77d000b738bdea84604e1dc65c0b54a8f644e31 Do not let the height of the entry get larger than half the conversation window, irrespective of the preferred minimum height. diff -r b77d000b738b -r 7b21c5b208fb pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun May 04 20:44:08 2008 +0000 +++ b/pidgin/gtkconv.c Mon May 05 00:00:25 2008 +0000 @@ -4486,7 +4486,7 @@ * prevent scrolling when the second line is a continuation of the first line, or * is the beginning of a new paragraph. */ min_height = min_lines * (oneline.height + MAX(pad_inside, pad_top + pad_bottom)); - height = CLAMP(height, min_height, max_height); + height = CLAMP(height, MIN(min_height, max_height), max_height); diff = height - gtkconv->entry->allocation.height; if (ABS(diff) < oneline.height / 2)