diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-09-08 14:48:58 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-09-08 15:22:25 -0400 |
commit | aef4bf26ed8b48f6519fec9531bb530783193447 (patch) | |
tree | a82785c9502ffa5c78b2cc7cd9c4b4b953288cb6 /libnautilus-private/nautilus-search-engine-tracker.c | |
parent | a65eb16241ea0e64e5bf2547ffdaebcaa4547574 (diff) | |
download | nautilus-aef4bf26ed8b48f6519fec9531bb530783193447.tar.gz |
tracker: respect the location URI when searching with tracker
Diffstat (limited to 'libnautilus-private/nautilus-search-engine-tracker.c')
-rw-r--r-- | libnautilus-private/nautilus-search-engine-tracker.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-search-engine-tracker.c b/libnautilus-private/nautilus-search-engine-tracker.c index 60f8b2be6..7aa07fb83 100644 --- a/libnautilus-private/nautilus-search-engine-tracker.c +++ b/libnautilus-private/nautilus-search-engine-tracker.c @@ -259,6 +259,12 @@ nautilus_search_engine_tracker_start (NautilusSearchEngine *engine) g_string_append (sparql, ")"); + if (location_uri) { + g_string_append (sparql, " && fn:starts-with(nie:url(?urn),"); + sparql_append_string_literal (sparql, location_uri); + g_string_append (sparql, ")"); + } + if (mime_count > 0) { g_string_append (sparql, " && "); g_string_append (sparql, "("); |