enum {
COL_HEADLINE_TITLE,
COL_HEADLINE_ID,
- COL_HEADLINE_DATE
+ COL_HEADLINE_DATE,
+ COL_HEADLINE_EPOCH_TIME
};
static struct option long_options[] = {
cur++;
}
- ttrs_download_headline_content(feeds);
+ if (feeds)
+ ttrs_download_headline_content(feeds);
model_state = 0;
char date[200];
tmp = localtime(&h->date);
-
+
if (h->unread)
strftime(date, sizeof(date), "<b>%D</b>", tmp);
else
h->id,
COL_HEADLINE_DATE,
date,
+ COL_HEADLINE_EPOCH_TIME,
+ h->date,
-1);
g_free(title);
GtkTreeIter iter;
GtkTreeModel *model;
struct headline *headline;
- char *str;
+ char *str, *date;
log_debug("headline_cursor_changed_cbk()");
}
model = gtk_tree_view_get_model(w_headlinetree);
+ date = headline_get_date(headline);
gtk_list_store_set(GTK_LIST_STORE(model),
&iter,
COL_HEADLINE_TITLE, headline->title,
+ COL_HEADLINE_DATE, date,
+ COL_HEADLINE_EPOCH_TIME, headline->date,
-1);
+ free(date);
} else {
log_debug("headline not found");
}