changeset 22783:6079335eb01c

Slightly change the maximum height of the entry box. This seems to fix the issue where the window would also resize with the entry box.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 02 May 2008 01:28:43 +0000
parents 6036f4a57535
children 08bb9d490f38
files pidgin/gtkconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Thu May 01 22:44:16 2008 +0000
+++ b/pidgin/gtkconv.c	Fri May 02 01:28:43 2008 +0000
@@ -4458,7 +4458,7 @@
 	GdkRectangle oneline;
 	int height, diff;
 	int pad_top, pad_inside, pad_bottom;
-	int max_height = gtkconv->tab_cont->allocation.height / 2;
+	int max_height = (gtkconv->imhtml->allocation.height + gtkconv->entry->allocation.height) / 2;
 
 	pad_top = gtk_text_view_get_pixels_above_lines(GTK_TEXT_VIEW(gtkconv->entry));
 	pad_bottom = gtk_text_view_get_pixels_below_lines(GTK_TEXT_VIEW(gtkconv->entry));