diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-11 21:25:08 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-11 21:48:43 -0400 |
commit | c6510979aae628789dbddbc0d633acee64f88100 (patch) | |
tree | 6511e2ab79bb5900f9ab6a825a113a968d232673 /src/nautilus-shell-search-provider.c | |
parent | d1f53906bbb7cf1e901d2fef6577179594a6b0f7 (diff) | |
download | nautilus-c6510979aae628789dbddbc0d633acee64f88100.tar.gz |
shell-provider: make the shell search provider follow show-hidden
Add a query property we can set to false from the shell provider, and
use it in the simple search engine to exclude hidden files. Note that by
default the query sets it to TRUE, so the behavior in Nautilus is
unchanged.
Diffstat (limited to 'src/nautilus-shell-search-provider.c')
-rw-r--r-- | src/nautilus-shell-search-provider.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-shell-search-provider.c b/src/nautilus-shell-search-provider.c index cf1cced10..649ea159a 100644 --- a/src/nautilus-shell-search-provider.c +++ b/src/nautilus-shell-search-provider.c @@ -474,6 +474,7 @@ execute_search (NautilusShellSearchProviderApp *self, home_uri = nautilus_get_home_directory_uri (); query = nautilus_query_new (); + nautilus_query_set_show_hidden_files (query, FALSE); nautilus_query_set_text (query, terms_joined); nautilus_query_set_location (query, home_uri); |