pidgin: ddb94730: never decrease the height by less than h...
khc at pidgin.im
khc at pidgin.im
Sun Mar 16 21:56:10 EDT 2008
-----------------------------------------------------------------
Revision: ddb947301980e564af0ce937a3c94e5b6116304c
Ancestor: dbcb9257acca0e581313eebc2b8dc4f98bf66103
Author: khc at pidgin.im
Date: 2008-03-17T01:50:54
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ddb947301980e564af0ce937a3c94e5b6116304c
Modified files:
pidgin/gtkconv.c
ChangeLog:
never decrease the height by less than half a line, fixes the jumping issue
when the text typed doesn't use the default font for me (such as having
Sans as the default font, but typing Chinese which uses a Chinese font with
a different line height)
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c 06f143168588ce9262f440ad9cf7d3edfed8f844
+++ pidgin/gtkconv.c b7fbd693ae0b64103e95aa23660585284b95f893
@@ -4393,7 +4393,7 @@ static gboolean resize_imhtml_cb(PidginC
height += (oneline.height + pad_inside) * (wrapped_lines - lines);
diff = height - gtkconv->entry->allocation.height;
- if (diff == 0)
+ if (diff == 0 || (diff < 0 && -diff < oneline.height / 2))
return FALSE;
gtk_widget_size_request(gtkconv->lower_hbox, &sr);
More information about the Commits
mailing list