Commit dabd3aa9 authored by Lucian Langa's avatar Lucian Langa Committed by Lucian Langa
Browse files

- count comments

2009-03-31  Lucian Langa  <lucilanga@gnome.org>

* src/rss.c: (org_gnome_cooly_format_rss) - count comments

svn path=/trunk/; revision=489
parent 0bc1eaa0
2009-03-31 Lucian Langa <lucilanga@gnome.org>
* src/rss.c: (org_gnome_cooly_format_rss) - count comments
2009-03-30 Lucian Langa <lucilanga@gnome.org>
* src/rss-config_factory.c: (create_dialog_add) - add support for
......
......@@ -61,3 +61,4 @@
* perhaps make quoted text fancier |
* if immage cannto be server from cache try to fetch it ---|
* disable filters on setup_feed()
* check s&r progress bar on Complete.
......@@ -177,6 +177,8 @@ rssfeed *rf = NULL;
gboolean inhibit_read = FALSE; //prevent mail selection when deleting folder
gboolean delete_op = FALSE; //delete in progress
gchar *commstream = NULL; //global comments stream
guint commcnt = 0; //global number of comments
gchar *commstatus = "";
guint32 frame_colour;
guint32 content_colour;
guint32 text_colour;
......@@ -1899,13 +1901,18 @@ render_body: if (category)
if (comments) {
camel_stream_printf (fstream,
"<div style=\"border: solid #%06x 0px; background-color: #%06x; padding: 10px; color: #%06x;\">"
"<b><font size=+1><a href=%s>Comments</font></b>",
frame_colour & 0xffffff, content_colour & 0xffffff, text_colour & 0xffffff,
comments);
"<div style=\"border: solid #%06x 0px; background-color: #%06x; padding: 2px; color: #%06x;\">"
"<b><font size=+1><a href=%s>Comments</a></font></b>",
frame_colour & 0xffffff, content_colour & 0xEDECEB & 0xffffff, text_colour & 0xffffff,
comments, commstatus);
if (commstream) {
camel_stream_printf(fstream, "%s", (gchar *)print_comments(comments, commstream));
commstream = NULL;
gchar *result = print_comments(comments, commstream);
if (commcnt) {
camel_stream_printf (fstream,
"<b>(%d)</b> Refresh<div style=\"border: solid #%06x 0px; background-color: #%06x; padding: 10px; color: #%06x;\">%s",
commcnt, frame_colour & 0xffffff, content_colour & 0xffffff, text_colour & 0xffffff, result);
commstream = NULL;
}
}
else {
fetch_comments(comments, (CamelStream *)t->format);
......@@ -4454,7 +4461,7 @@ encode_rfc2047(gchar *str)
return rfctmp;
}
gchar *
static gchar *
update_comments(RDF *r)
{
guint i;
......@@ -4479,6 +4486,7 @@ update_comments(RDF *r)
CF->body);
g_string_append_printf(comments, "</div>&nbsp;");
}
commcnt=i;
gchar *scomments=comments->str;
g_string_free(comments, FALSE);
return scomments;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment