Mercurial > pidgin
comparison src/gtkhtml.c @ 853:050f244b6829
[gaim-migrate @ 863]
i'm tired
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 07 Sep 2000 06:55:33 +0000 |
parents | 836d5a02a35c |
children | a8633715fb5b |
comparison
equal
deleted
inserted
replaced
852:836d5a02a35c | 853:050f244b6829 |
---|---|
2910 gtk_html_add_text(html, cfont, fore, back, &text[pos+1], 1, uline, strike, url); | 2910 gtk_html_add_text(html, cfont, fore, back, &text[pos+1], 1, uline, strike, url); |
2911 gtk_html_add_text(html, cfont, fore, back, &text[pos+2], num - pos + 1, uline, strike, url); | 2911 gtk_html_add_text(html, cfont, fore, back, &text[pos+2], num - pos + 1, uline, strike, url); |
2912 g_free(text); | 2912 g_free(text); |
2913 count--; | 2913 count--; |
2914 if (!count) { | 2914 if (!count) { |
2915 /* FIXME : sometimes we need to add newline, sometimes we don't */ | |
2915 hbits = g_list_last(html->html_bits); | 2916 hbits = g_list_last(html->html_bits); |
2916 if (!hbits) return; /* does this ever happen? */ | 2917 if (!hbits) return; /* does this ever happen? */ |
2917 hb = (GtkHtmlBit *)hbits->data; | 2918 hb = (GtkHtmlBit *)hbits->data; |
2918 hb->newline++; | 2919 hb->newline++; |
2919 if (html->current_x > 0) | |
2920 html->current_x = 0; | |
2921 else | |
2922 html->current_y += cfont->ascent + cfont->descent + 5; | |
2923 return; | |
2924 } | 2920 } |
2925 return; | 2921 return; |
2926 } | 2922 } |
2927 | 2923 |
2928 while (gdk_text_measure(cfont, text, num) > maxwidth) | 2924 while (gdk_text_measure(cfont, text, num) > maxwidth) |