# HG changeset patch # User Nathan Walp # Date 1048837697 0 # Node ID 872598a159686398a3ec04c0e54a704be3877284 # Parent 0bbccc88bc67ab465e1acc26547117bafca95624 [gaim-migrate @ 5237] well that didn't fix it, and this is actually better committer: Tailor Script diff -r 0bbccc88bc67 -r 872598a15968 src/gtkimhtml.c --- a/src/gtkimhtml.c Fri Mar 28 07:22:27 2003 +0000 +++ b/src/gtkimhtml.c Fri Mar 28 07:48:17 2003 +0000 @@ -1377,21 +1377,23 @@ static gboolean gtk_size_allocate_cb(GtkWidget *widget, GtkAllocation *alloc, gpointer user_data) { - static int old_width = 0, old_height = 0; + static GdkRectangle old_rect = {0,0,0,0}; + GdkRectangle rect; - if(old_width && (old_width != alloc->width || old_height != alloc->height)){ + gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(widget), &rect); + + if(old_rect.width && (old_rect.width != rect.width || old_rect.height != rect.height)){ GList *iter = GTK_IMHTML(widget)->scalables; while(iter){ GtkIMHtmlScalable *scale = GTK_IMHTML_SCALABLE(iter->data); - scale->scale(scale, alloc->width, alloc->height); + scale->scale(scale, rect.width, rect.height); iter = iter->next; } } - old_width = alloc->width; - old_height = alloc->height; + old_rect = rect; return FALSE; }