From 43568deea7cdde7a3bddb8b460c5547184422c28 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Sun, 24 Jun 2007 11:57:07 +0000 Subject: Add a search engine which queries the Spotlight database on MacOS X (only 2007-06-24 Kristian Rietveld * 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 --- gtk/gtksearchenginequartz.h | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 gtk/gtksearchenginequartz.h (limited to 'gtk/gtksearchenginequartz.h') diff --git a/gtk/gtksearchenginequartz.h b/gtk/gtksearchenginequartz.h new file mode 100644 index 0000000000..75f44e4d98 --- /dev/null +++ b/gtk/gtksearchenginequartz.h @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2007 Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + */ + +#ifndef __GTK_SEARCH_ENGINE_QUARTZ_H__ +#define __GTK_SEARCH_ENGINE_QUARTZ_H__ + +#include "gtksearchengine.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_SEARCH_ENGINE_QUARTZ (_gtk_search_engine_quartz_get_type ()) +#define GTK_SEARCH_ENGINE_QUARTZ(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartz)) +#define GTK_SEARCH_ENGINE_QUARTZ_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartzClass)) +#define GTK_IS_SEARCH_ENGINE_QUARTZ(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ)) +#define GTK_IS_SEARCH_ENGINE_QUARTZ_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE_QUARTZ)) +#define GTK_SEARCH_ENGINE_QUARTZ_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartzClass)) + +typedef struct _GtkSearchEngineQuartz GtkSearchEngineQuartz; +typedef struct _GtkSearchEngineQuartzClass GtkSearchEngineQuartzClass; +typedef struct _GtkSearchEngineQuartzPrivate GtkSearchEngineQuartzPrivate; + +struct _GtkSearchEngineQuartz +{ + GtkSearchEngine parent; + + GtkSearchEngineQuartzPrivate *priv; +}; + +struct _GtkSearchEngineQuartzClass +{ + GtkSearchEngineClass parent_class; +}; + +GType _gtk_search_engine_quartz_get_type (void); +GtkSearchEngine *_gtk_search_engine_quartz_new (void); + +G_END_DECLS + +#endif /* __GTK_SEARCH_ENGINE_QUARTZ_H__ */ -- cgit v1.2.1