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/gtksearchenginequartz.h | |
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/gtksearchenginequartz.h')
-rw-r--r-- | gtk/gtksearchenginequartz.h | 54 |
1 files changed, 54 insertions, 0 deletions
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 <kris@gtk.org> + * + * 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__ */ |