From 11d786929d5862026e068039959ab73e20f8d9e8 Mon Sep 17 00:00:00 2001 From: Andreas Krennmair Date: Fri, 9 Feb 2007 16:42:41 +0000 Subject: [PATCH] Andreas Krennmair: set better title for search dialog updated TODO list --- CHANGES | 1 + TODO | 4 ++++ src/view.cpp | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/CHANGES b/CHANGES index badb6de5..862f64e3 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ Changes for newsbeuter: added color configuration support added tagging/categorization support added auto-reload support + added search dialog 0.1.1 (2007-01-17): fixed a crash when ISO-8859-1 encoded feeds with umlauts in the title were displayed on systems with UTF-8 locales enabled. diff --git a/TODO b/TODO index 4400e8c9..30fbb9a2 100644 --- a/TODO +++ b/TODO @@ -47,3 +47,7 @@ DONE: - add color configuration support - support for atom (talk to mRss guy?) - implement by yourself? - implement search + - own dialog + - result list on top + - search input field on bottom + - set correct title in search dialog diff --git a/src/view.cpp b/src/view.cpp index 27a3dcb0..324770a7 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -247,6 +247,8 @@ void view::run_search(const std::string& feedurl) { search_form.set("msg",""); + search_form.set("head","Search Articles"); + search_form.modify("results","replace_inner","{list}"); search_form.set_focus("query"); @@ -311,7 +313,10 @@ void view::run_search(const std::string& feedurl) { if (querytext.length() > 0) { items = ctrl->search_for_items(querytext, feedurl); if (items.size() > 0) { + std::ostringstream title; search_form.set("listpos", "0"); + title << "Search Articles - " << items.size() << " results"; + search_form.set("head", title.str()); set_listfocus = true; rebuild_list = true; } else {