X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fmain.c;h=b01700ea6751f9c1f8308cf68f115f8837116d08;hp=e20243336eb42a069a9d83226a9b95f49b8dd345;hb=6af255d5f5b89c4d79c246ceb2c45b1b3317cb4d;hpb=2acb4f4b249348eeb6ca4bf37836889be55418ff 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); }