# HG changeset patch # User Mark Doliner # Date 1081213222 0 # Node ID 7f7679853f7b273670689076d9e27b8bbdf23b51 # Parent 699cc19a40d621d6243201752f98eb08f32cf53c [gaim-migrate @ 9339] There was a bug: HR tags made the horizontal scroll bar show up on conversation windows. This mostly fixes that by leaving a little gap on the right side. You can still make the scroll bar appear if you reduce the size of the window. But it's only sometimes. Eh. committer: Tailor Script diff -r 699cc19a40d6 -r 7f7679853f7b src/gtkimhtml.c --- a/src/gtkimhtml.c Mon Apr 05 22:51:43 2004 +0000 +++ b/src/gtkimhtml.c Tue Apr 06 01:00:22 2004 +0000 @@ -2220,12 +2220,12 @@ float factor; int new_width = image->width, new_height = image->height; - if(image->width > width){ + if(image->width > (width - 2)){ factor = (float)(width)/image->width; new_width = width; new_height = image->height * factor; } - if(new_height > height){ + if(new_height >= (height - 2)){ factor = (float)(height)/new_height; new_height = height; new_width = new_width * factor; @@ -2414,7 +2414,7 @@ void gtk_imhtml_hr_scale(GtkIMHtmlScalable *scale, int width, int height) { - gtk_widget_set_size_request(((GtkIMHtmlHr *)scale)->sep, width, 2); + gtk_widget_set_size_request(((GtkIMHtmlHr *)scale)->sep, width - 2, 2); } void gtk_imhtml_hr_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *imhtml, GtkTextIter *iter)