From 6af255d5f5b89c4d79c246ceb2c45b1b3317cb4d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 23 Apr 2013 14:32:00 +0000 Subject: [PATCH 1/1] --- src/main.c | 13 ++++++++++--- src/ttrss.c | 1 - 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index e202433..b01700e 100644 --- a/src/main.c +++ b/src/main.c @@ -243,14 +243,21 @@ int headline_cursor_changed_cbk(GtkTreeView *treeview, gpointer data) 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 (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); } diff --git a/src/ttrss.c b/src/ttrss.c index 2a94e99..e64c7af 100644 --- a/src/ttrss.c +++ b/src/ttrss.c @@ -59,7 +59,6 @@ void ttrss_login(const char *url, const char *user, const char *password) strcat(session_url, "/api/"); free(tmp); - rq = create_op("login"); json_object_object_add(rq, "user", json_object_new_string(user)); json_object_object_add(rq, -- 2.7.4