GtkSearchEngine: Add debug spew

This lets us find out which search engine implementation is
in use.
This commit is contained in:
Matthias Clasen 2015-02-14 00:57:29 -05:00
parent ff87c6516b
commit b3abfaf9ee

View File

@ -100,18 +100,27 @@ _gtk_search_engine_new (void)
#ifdef HAVE_TRACKER
engine = _gtk_search_engine_tracker_new ();
if (engine)
return engine;
{
g_debug ("Using Tracker search engine");
return engine;
}
#endif
#ifdef GDK_WINDOWING_QUARTZ
engine = _gtk_search_engine_quartz_new ();
if (engine)
return engine;
{
g_debug ("Using Quartz search engine");
return engine;
}
#endif
if (g_thread_supported ())
engine = _gtk_search_engine_simple_new ();
{
g_debug ("Using simple search engine");
engine = _gtk_search_engine_simple_new ();
}
return engine;
}