summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-02-14 00:57:29 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-02-14 01:03:38 -0500
commitb3abfaf9eec5c00d20a15e30f32b4b197efc6161 (patch)
tree10af5405ef07ef2c14f13987492d89fa2bf4268d
parentff87c6516bdfcf40a11ef56d8206d3b484563159 (diff)
downloadgtk+-b3abfaf9eec5c00d20a15e30f32b4b197efc6161.tar.gz
GtkSearchEngine: Add debug spew
This lets us find out which search engine implementation is in use.
-rw-r--r--gtk/gtksearchengine.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/gtk/gtksearchengine.c b/gtk/gtksearchengine.c
index c6529b98ae..5ca9de0d0a 100644
--- a/gtk/gtksearchengine.c
+++ b/gtk/gtksearchengine.c
@@ -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;
}