diff options
author | William Jon McCann <jmccann@redhat.com> | 2012-07-17 18:09:04 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2012-07-18 10:57:32 -0400 |
commit | 79869fd920fcc70a901044c7ee362038ea42b27a (patch) | |
tree | 0c66e3d2fc43be0d227eabfa34b07a37c8727009 /test | |
parent | 5b7f3b7ca2f7c5899d2335d28be8b057ff77abe6 (diff) | |
download | nautilus-79869fd920fcc70a901044c7ee362038ea42b27a.tar.gz |
Collect results from both search providers
Previously we would only use the compiled in search provider. Now
it has been changed to run both providers at the same time and
merge the results by URI.
https://bugzilla.gnome.org/show_bug.cgi?id=680137
Diffstat (limited to 'test')
-rw-r--r-- | test/test-nautilus-search-engine.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test-nautilus-search-engine.c b/test/test-nautilus-search-engine.c index 6dac732d0..096076bd1 100644 --- a/test/test-nautilus-search-engine.c +++ b/test/test-nautilus-search-engine.c @@ -1,3 +1,4 @@ +#include <libnautilus-private/nautilus-search-provider.h> #include <libnautilus-private/nautilus-search-engine.h> #include <gtk/gtk.h> @@ -46,10 +47,10 @@ main (int argc, char* argv[]) query = nautilus_query_new (); nautilus_query_set_text (query, "richard hult"); - nautilus_search_engine_set_query (engine, query); + nautilus_search_provider_set_query (NAUTILUS_SEARCH_PROVIDER (engine), query); g_object_unref (query); - nautilus_search_engine_start (engine); + nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine)); gtk_main (); return 0; |