pidgin: e238fa49: Slightly change the maximum height of th...

sadrul at pidgin.im sadrul at pidgin.im
Thu May 1 21:30:44 EDT 2008


-----------------------------------------------------------------
Revision: e238fa4987184e7ce5509bc8806f7122ad41ae6e
Ancestor: a31bc5987aa551e24980a4affb165eff4959ad22
Author: sadrul at pidgin.im
Date: 2008-05-02T01:28:43
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e238fa4987184e7ce5509bc8806f7122ad41ae6e

Modified files:
        pidgin/gtkconv.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	a2421f1b66a110d21f7e59c46ae4a55b1fb44a0d
+++ pidgin/gtkconv.c	11203f207dc67c03a5dbf173b38eab146645ef8d
@@ -4458,7 +4458,7 @@ static gboolean resize_imhtml_cb(PidginC
 	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));


More information about the Commits mailing list