diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-08-02 10:54:25 +0100 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-08-15 21:42:15 +0100 |
commit | 37693c427941d60634bad80dd7c2d0b3a8523cea (patch) | |
tree | 6c4e5401c3b6e8bd0214f00a78d8520dbbb8be5e /src/nautilus-search-engine.h | |
parent | afa26e43a716e70160412ce11c1c8dddfd44b6cc (diff) | |
download | nautilus-37693c427941d60634bad80dd7c2d0b3a8523cea.tar.gz |
search-engine: fix search providers handling
When starting the search providers, some provider might finish
before all providers are started, so a wrong value of providers_running
will be used, making Nautilus crash.
To fix this, keep a queue of the started providers and whenever the
value of the finised/running providers is needed, check the status of
each provider.
https://bugzilla.gnome.org/show_bug.cgi?id=785723
Diffstat (limited to 'src/nautilus-search-engine.h')
-rw-r--r-- | src/nautilus-search-engine.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nautilus-search-engine.h b/src/nautilus-search-engine.h index 0416e8306..93892a23e 100644 --- a/src/nautilus-search-engine.h +++ b/src/nautilus-search-engine.h @@ -30,7 +30,7 @@ G_BEGIN_DECLS -#define NAUTILUS_TYPE_SEARCH_ENGINE (nautilus_search_engine_get_type ()) +#define NAUTILUS_TYPE_SEARCH_ENGINE (nautilus_search_engine_get_type ()) G_DECLARE_DERIVABLE_TYPE (NautilusSearchEngine, nautilus_search_engine, NAUTILUS, SEARCH_ENGINE, GObject) @@ -39,11 +39,9 @@ struct _NautilusSearchEngineClass GObjectClass parent_class; }; -NautilusSearchEngine *nautilus_search_engine_new (void); -NautilusSearchEngineModel * - nautilus_search_engine_get_model_provider (NautilusSearchEngine *engine); -NautilusSearchEngineSimple * - nautilus_search_engine_get_simple_provider (NautilusSearchEngine *engine); +NautilusSearchEngine *nautilus_search_engine_new (void); +void nautilus_search_engine_set_model (NautilusSearchEngine *engine, + NautilusDirectory *directory); G_END_DECLS |