changeset 22818:7b21c5b208fb

Do not let the height of the entry get larger than half the conversation window, irrespective of the preferred minimum height.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 05 May 2008 00:00:25 +0000
parents b77d000b738b
children a9141d049266
files pidgin/gtkconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)