+static char *headline_get_formated_headline(struct headline *h)
+{
+ if (h->unread)
+ return g_strdup_printf("<b>%s</b>", h->title);
+ else
+ return strdup(h->title);
+}
+
+static char *headline_get_date(struct headline *h)
+{
+ struct tm *tmp;
+ char date[200];
+
+ tmp = localtime(&h->date);
+
+ if (h->unread)
+ strftime(date, sizeof(date), "<b>%D</b>", tmp);
+ else
+ strftime(date, sizeof(date), "%D", tmp);
+
+ return strdup(date);
+}
+