aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-04-01 15:44:07 +0000
committerThierry Vignaud <tv@mandriva.org>2009-04-01 15:44:07 +0000
commit27ff4c59680d1b8ed6451b92a7538262243d7345 (patch)
tree8acab384837833f46ed1ea829bfdd0e0353c07e0
parent25b02cab25ee1d4db05fbf3743e04d00dac984e1 (diff)
downloadrpmdrake-27ff4c59680d1b8ed6451b92a7538262243d7345.tar
rpmdrake-27ff4c59680d1b8ed6451b92a7538262243d7345.tar.gz
rpmdrake-27ff4c59680d1b8ed6451b92a7538262243d7345.tar.bz2
rpmdrake-27ff4c59680d1b8ed6451b92a7538262243d7345.tar.xz
rpmdrake-27ff4c59680d1b8ed6451b92a7538262243d7345.zip
(do_search) suggest to switch to the 'all' view if there's no search results (#38461)
-rw-r--r--NEWS1
-rwxr-xr-xrpmdrake5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 19bff816..71cfae60 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
text anymore)), thus fixing #49035)
- rpmdrake:
o add a sensible tooltip for the "find" entry (#39454)
+ o suggest to switch to the 'all' view if there's no search results (#38461)
Version 5.14 - 25 March 2009, Thierry Vignaud
diff --git a/rpmdrake b/rpmdrake
index df194e8c..82b46232 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -198,7 +198,10 @@ sub do_search($$$$$$$) {
$iter = $options->{add_parent}->($results_none);
# clear package list:
$options->{add_nodes}->();
- statusbar_msg($results_none, 1);
+ my $string = $default_list_mode eq 'all' && $filter->[0] eq 'all' ? N("No search results.") :
+ N("No search results. You may want to switch to the '%s' view and to the '%s' filter",
+ N("All"), N("All"),);
+ statusbar_msg($string , 1);
gtkset_mousecursor_normal($::w->{rwindow}->window);
}
my $tree_selection = $tree->get_selection;