projects
/
prss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
asynchronous download of the article content
[prss.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
fa5e38a
..
1518bd6
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-52,7
+52,8
@@
enum {
enum {
COL_HEADLINE_TITLE,
COL_HEADLINE_ID,
enum {
COL_HEADLINE_TITLE,
COL_HEADLINE_ID,
- COL_HEADLINE_DATE
+ COL_HEADLINE_DATE,
+ COL_HEADLINE_EPOCH_TIME
};
static struct option long_options[] = {
};
static struct option long_options[] = {
@@
-140,7
+141,8
@@
void update()
cur++;
}
cur++;
}
- ttrs_download_headline_content(feeds);
+ if (feeds)
+ ttrs_download_headline_content(feeds);
model_state = 0;
model_state = 0;
@@
-342,6
+344,8
@@
int feed_cursor_changed_cbk(GtkTreeView *treeview, gpointer data)
h->id,
COL_HEADLINE_DATE,
date,
h->id,
COL_HEADLINE_DATE,
date,
+ COL_HEADLINE_EPOCH_TIME,
+ h->date,
-1);
g_free(title);
-1);
g_free(title);
@@
-395,8
+399,9
@@
int headline_cursor_changed_cbk(GtkTreeView *treeview, gpointer data)
&iter,
COL_HEADLINE_TITLE, headline->title,
COL_HEADLINE_DATE, date,
&iter,
COL_HEADLINE_TITLE, headline->title,
COL_HEADLINE_DATE, date,
+ COL_HEADLINE_EPOCH_TIME, headline->date,
-1);
-1);
-
g_
free(date);
+ free(date);
} else {
log_debug("headline not found");
}
} else {
log_debug("headline not found");
}