Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Andreas Krennmair:
Browse files Browse the repository at this point in the history
	set better title for search dialog
	updated TODO list
  • Loading branch information
akrennmair committed Feb 9, 2007
1 parent 1b9114b commit 11d7869
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions TODO
Expand Up @@ -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
5 changes: 5 additions & 0 deletions src/view.cpp
Expand Up @@ -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");
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 11d7869

Please sign in to comment.