Commit 3768e2be authored by Emmanuele Bassi's avatar Emmanuele Bassi Committed by Emmanuele Bassi

Fall back to GtkSearchEngineSimple only if gthread has already been

2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtksearchengine.c (_gtk_search_engine_new): Fall back
	to GtkSearchEngineSimple only if gthread has already been
	initialiased; otherwise, disable search support in the file
	chooser widget.  (#435847)

svn path=/trunk/; revision=17819
parent 75092d29
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtksearchengine.c (_gtk_search_engine_new): Fall back
to GtkSearchEngineSimple only if gthread has already been
initialiased; otherwise, disable search support in the file
chooser widget. (#435847)
2007-05-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbutton.c (gtk_button_set_image): Unparent the old
......
......@@ -104,7 +104,7 @@ _gtk_search_engine_init (GtkSearchEngine *engine)
GtkSearchEngine *
_gtk_search_engine_new (void)
{
GtkSearchEngine *engine;
GtkSearchEngine *engine = NULL;
#ifdef HAVE_TRACKER
engine = _gtk_search_engine_tracker_new ();
......@@ -118,7 +118,9 @@ _gtk_search_engine_new (void)
return engine;
#endif
engine = _gtk_search_engine_simple_new ();
if (g_thread_supported ())
engine = _gtk_search_engine_simple_new ();
return engine;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment