| 2696 |
2696 |
| 2697 last_hb = (GtkHtmlBit *) g_list_last(html->html_bits)->data; |
2697 last_hb = (GtkHtmlBit *) g_list_last(html->html_bits)->data; |
| 2698 |
2698 |
| 2699 /* make sure pixmaps drop down a line after a <BR> */ |
2699 /* make sure pixmaps drop down a line after a <BR> */ |
| 2700 if (last_hb->newline) |
2700 if (last_hb->newline) |
| 2701 html->current_y += private->height + 2; |
2701 html->current_y += private->height + 5; |
| 2702 |
2702 |
| 2703 /* wrap pixmaps */ |
2703 /* wrap pixmaps */ |
| 2704 gdk_window_get_size(html->html_area, &width, &height); |
2704 gdk_window_get_size(html->html_area, &width, &height); |
| 2705 if ((html->current_x + private->width) >= width) { |
2705 if ((html->current_x + private->width) >= width) { |
| 2706 html->current_y += private->height + 2; |
2706 html->current_y += private->height + 5; |
| 2707 html->current_x = 0; |
2707 html->current_x = 0; |
| 2708 } |
2708 } |
| 2709 |
2709 |
| 2710 hb->fit = fit; |
2710 hb->fit = fit; |
| 2711 hb->x = html->current_x; |
2711 hb->x = html->current_x; |
| 2931 } |
2931 } |
| 2932 |
2932 |
| 2933 |
2933 |
| 2934 if (html->current_x == 0) |
2934 if (html->current_x == 0) |
| 2935 { |
2935 { |
| 2936 html->current_y += height; |
2936 html->current_y += height + 3; |
| 2937 gdk_text_extents(cfont, text, 1, &lb, NULL, NULL, NULL, NULL); |
2937 gdk_text_extents(cfont, text, 1, &lb, NULL, NULL, NULL, NULL); |
| 2938 html->current_x += (2 - lb); |
2938 html->current_x += (2 - lb); |
| 2939 } |
2939 } |
| 2940 else if ((hbits = g_list_last(html->html_bits)) != NULL) |
2940 else if ((hbits = g_list_last(html->html_bits)) != NULL) |
| 2941 { |
2941 { |