X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-stream-text-to-html.c;h=bd43e00e7cfd3974e25262f498598dac95501faa;hp=c99ff9587447ad46b524aecee697142414d90a87;hb=HEAD;hpb=98bc7d6724076480df8cf72ec31d541d56dc8bb4 diff --git a/src/modest-stream-text-to-html.c b/src/modest-stream-text-to-html.c index c99ff95..bd43e00 100644 --- a/src/modest-stream-text-to-html.c +++ b/src/modest-stream-text-to-html.c @@ -38,8 +38,8 @@ #define HTML_PREFIX "" \ "" \ "" \ - "" -#define HTML_SUFFIX "" + "

" +#define HTML_SUFFIX "

" /* 'private'/'protected' functions */ @@ -183,6 +183,16 @@ modest_stream_text_to_html_set_full_limit (ModestStreamTextToHtml *self, gssize priv->full_limit = limit; } +gboolean +modest_stream_text_to_html_limit_reached (ModestStreamTextToHtml *self) +{ + ModestStreamTextToHtmlPrivate *priv = MODEST_STREAM_TEXT_TO_HTML_GET_PRIVATE (self); + + return (priv->full_limit > 0 && priv->total_output > priv->full_limit) || + (priv->line_limit > 0 && priv->total_lines_output > priv->line_limit); + +} + /* the rest are interface functions */