search engine: Pass file infos along for hits
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
#define __GTK_SEARCH_ENGINE_H__
|
||||
|
||||
#include "gtkquery.h"
|
||||
#include <gio/gio.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@ -37,6 +38,15 @@ typedef struct _GtkSearchEngine GtkSearchEngine;
|
||||
typedef struct _GtkSearchEngineClass GtkSearchEngineClass;
|
||||
typedef struct _GtkSearchEnginePrivate GtkSearchEnginePrivate;
|
||||
|
||||
typedef struct _GtkSearchHit GtkSearchHit;
|
||||
|
||||
struct _GtkSearchHit
|
||||
{
|
||||
gint ref_count;
|
||||
gchar *uri;
|
||||
GFileInfo *info; /* may be NULL */
|
||||
};
|
||||
|
||||
struct _GtkSearchEngine
|
||||
{
|
||||
GObject parent;
|
||||
@ -81,6 +91,9 @@ void _gtk_search_engine_finished (GtkSearchEngine *engine);
|
||||
void _gtk_search_engine_error (GtkSearchEngine *engine,
|
||||
const gchar *error_message);
|
||||
|
||||
void _gtk_search_hit_free (GtkSearchHit *hit);
|
||||
GtkSearchHit *_gtk_search_hit_dup (GtkSearchHit *hit);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_SEARCH_ENGINE_H__ */
|
||||
|
||||
Reference in New Issue
Block a user