projects
/
prss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[prss.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
e202433
..
c9f15a9
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-22,12
+22,12
@@
#include <getopt.h>
#include <json/json.h>
#include <getopt.h>
#include <json/json.h>
-#include "ttrss.h"
#include <webkit/webkit.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <webkit/webkit.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include "phttp.h"
+#include "http.h"
+#include "ttrss.h"
#include "webbrowser.h"
static const char *program_name;
#include "webbrowser.h"
static const char *program_name;
@@
-243,14
+243,21
@@
int headline_cursor_changed_cbk(GtkTreeView *treeview, gpointer data)
str = ttrss_get_headline_content(headline);
str = ttrss_get_headline_content(headline);
- if (headline->unread)
- ttrss_set_article_unread(headline->id, 0);
-
if (str)
web_load(str);
else
web_load("");
if (str)
web_load(str);
else
web_load("");
+ if (headline->unread) {
+ ttrss_set_article_unread(headline->id, 0);
+ headline->unread = 0;
+ }
+
+ gtk_list_store_set(GTK_LIST_STORE(model),
+ &iter,
+ 0, headline->title,
+ -1);
+
gtk_tree_path_free(path);
}
gtk_tree_path_free(path);
}
@@
-335,7
+342,7
@@
int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
-
p
http_init();
+ http_init();
gtk_init(NULL, NULL);
settings = g_settings_new("prss");
gtk_init(NULL, NULL);
settings = g_settings_new("prss");