# HG changeset patch # User Eric Warmenhoven # Date 968305807 0 # Node ID 2cee5577224b7253c91b9b56e452291de387449e # Parent 902be73a6a436af02f73d29df1f66f7cb40be79c [gaim-migrate @ 861] yay, better gtkhtml. god damn, i don't think our gtkhtml widget has been hacked this much in 2 years as is has been in 3 days. committer: Tailor Script diff -r 902be73a6a43 -r 2cee5577224b src/gtkhtml.c --- a/src/gtkhtml.c Thu Sep 07 05:23:39 2000 +0000 +++ b/src/gtkhtml.c Thu Sep 07 05:50:07 2000 +0000 @@ -2895,11 +2895,8 @@ * HTK_SCROLLED_WINDOW(GTK_WIDGET(layout)->parent)->vscrollbar->allocation.width) - 8; */ - if ((maxwidth == (hwidth - 8) && gdk_text_measure(cfont, text, num) > maxwidth) || gdk_text_measure(cfont, text, num) < 0) { - /* so here's how it works. we divide it in half. we look for the next whitespace char. - * we print the first half up to the whitespace char, then the second half. if we - * didn't find a whitespace char, we search backwards for one. if we still don't find - * one, we just print the two halves; it would have wrapped anyway */ + if ((maxwidth == (hwidth - 8) && gdk_text_measure(cfont, text, num) > 2 * maxwidth) || + gdk_text_measure(cfont, text, num) < 0) { int pos = num / 2; static int count = 0; count ++;