diff options
author | Kristian Rietveld <kris@gtk.org> | 2007-06-24 11:57:07 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2007-06-24 11:57:07 +0000 |
commit | 43568deea7cdde7a3bddb8b460c5547184422c28 (patch) | |
tree | c451656fd3e3664930b664dbcfde92d4127d4e09 /gtk/gtksearchengine.c | |
parent | dc16e7ff56dcf39c22b7d294ac67782607a539c5 (diff) | |
download | gtk+-43568deea7cdde7a3bddb8b460c5547184422c28.tar.gz |
Add a search engine which queries the Spotlight database on MacOS X (only
2007-06-24 Kristian Rietveld <kris@gtk.org>
* gtk/gtksearchenginequartz.[ch]: Add a search engine which queries
the Spotlight database on MacOS X (only available in 10.4 and
higher).
* gtk/gtksearchengine.c (_gtk_search_engine_new): try creating
quartz search engine if we are on OS X.
* Makefile.am: added use_quartz_sources section with new file.
svn path=/trunk/; revision=18222
Diffstat (limited to 'gtk/gtksearchengine.c')
-rw-r--r-- | gtk/gtksearchengine.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtksearchengine.c b/gtk/gtksearchengine.c index 85145d02e6..c1d23a4f55 100644 --- a/gtk/gtksearchengine.c +++ b/gtk/gtksearchengine.c @@ -25,6 +25,9 @@ #include "gtksearchenginebeagle.h" #include "gtksearchenginesimple.h" #include "gtksearchenginetracker.h" +#include "gtksearchenginequartz.h" + +#include <gdk/gdkconfig.h> /* for GDK_WINDOWING_QUARTZ */ #define HAVE_BEAGLE 1 #define HAVE_TRACKER 1 @@ -118,6 +121,12 @@ _gtk_search_engine_new (void) return engine; #endif +#ifdef GDK_WINDOWING_QUARTZ + engine = _gtk_search_engine_quartz_new (); + if (engine) + return engine; +#endif + if (g_thread_supported ()) engine = _gtk_search_engine_simple_new (); |