/* tracker-result-store.c generated by valac 0.13.4.8-6faa4, the Vala compiler
 * generated from tracker-result-store.vala, do not modify */

/**/
/* Copyright 2010, Carlos Garnacho <carlos@lanedo.com>*/
/**/
/* This program is free software; you can redistribute it and/or*/
/* modify it under the terms of the GNU General Public License*/
/* as published by the Free Software Foundation; either version 2*/
/* of the License, or (at your option) any later version.*/
/**/
/* This program 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 General Public License for more details.*/
/**/
/* You should have received a copy of the GNU General Public License*/
/* along with this program; if not, write to the Free Software*/
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA*/
/* 02110-1301, USA.*/
/**/

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <libtracker-sparql/tracker-sparql.h>
#include <gdk-pixbuf/gdk-pixdata.h>
#include <gdk/gdk.h>
#include <stdarg.h>
#include <gobject/gvaluecollector.h>


#define TRACKER_TYPE_RESULT_STORE (tracker_result_store_get_type ())
#define TRACKER_RESULT_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_RESULT_STORE, TrackerResultStore))
#define TRACKER_RESULT_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_RESULT_STORE, TrackerResultStoreClass))
#define TRACKER_IS_RESULT_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_RESULT_STORE))
#define TRACKER_IS_RESULT_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_RESULT_STORE))
#define TRACKER_RESULT_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_RESULT_STORE, TrackerResultStoreClass))

typedef struct _TrackerResultStore TrackerResultStore;
typedef struct _TrackerResultStoreClass TrackerResultStoreClass;
typedef struct _TrackerResultStorePrivate TrackerResultStorePrivate;

#define TRACKER_RESULT_STORE_TYPE_QUERY_DATA (tracker_result_store_query_data_get_type ())

#define TRACKER_QUERY_TYPE_TYPE (tracker_query_type_get_type ())

#define TRACKER_QUERY_TYPE_MATCH (tracker_query_match_get_type ())
typedef struct _TrackerResultStoreQueryData TrackerResultStoreQueryData;

#define TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE (tracker_result_store_category_node_get_type ())
#define TRACKER_RESULT_STORE_CATEGORY_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE, TrackerResultStoreCategoryNode))
#define TRACKER_RESULT_STORE_CATEGORY_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE, TrackerResultStoreCategoryNodeClass))
#define TRACKER_RESULT_STORE_IS_CATEGORY_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE))
#define TRACKER_RESULT_STORE_IS_CATEGORY_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE))
#define TRACKER_RESULT_STORE_CATEGORY_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE, TrackerResultStoreCategoryNodeClass))

typedef struct _TrackerResultStoreCategoryNode TrackerResultStoreCategoryNode;
typedef struct _TrackerResultStoreCategoryNodeClass TrackerResultStoreCategoryNodeClass;

#define TRACKER_RESULT_STORE_TYPE_OPERATION (tracker_result_store_operation_get_type ())
#define TRACKER_RESULT_STORE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_RESULT_STORE_TYPE_OPERATION, TrackerResultStoreOperation))
#define TRACKER_RESULT_STORE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_RESULT_STORE_TYPE_OPERATION, TrackerResultStoreOperationClass))
#define TRACKER_RESULT_STORE_IS_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_RESULT_STORE_TYPE_OPERATION))
#define TRACKER_RESULT_STORE_IS_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_RESULT_STORE_TYPE_OPERATION))
#define TRACKER_RESULT_STORE_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_RESULT_STORE_TYPE_OPERATION, TrackerResultStoreOperationClass))

typedef struct _TrackerResultStoreOperation TrackerResultStoreOperation;
typedef struct _TrackerResultStoreOperationClass TrackerResultStoreOperationClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_ptr_array_unref0(var) ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _TrackerResultStoreOperationPrivate TrackerResultStoreOperationPrivate;

#define TRACKER_TYPE_QUERY (tracker_query_get_type ())
#define TRACKER_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_QUERY, TrackerQuery))
#define TRACKER_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_QUERY, TrackerQueryClass))
#define TRACKER_IS_QUERY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_QUERY))
#define TRACKER_IS_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_QUERY))
#define TRACKER_QUERY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_QUERY, TrackerQueryClass))

typedef struct _TrackerQuery TrackerQuery;
typedef struct _TrackerQueryClass TrackerQueryClass;
#define _tracker_query_unref0(var) ((var == NULL) ? NULL : (var = (tracker_query_unref (var), NULL)))
typedef struct _TrackerResultStoreCategoryNodePrivate TrackerResultStoreCategoryNodePrivate;

#define TRACKER_RESULT_STORE_TYPE_RESULT_NODE (tracker_result_store_result_node_get_type ())
typedef struct _TrackerResultStoreResultNode TrackerResultStoreResultNode;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
typedef struct _TrackerResultStoreLoadOperationData TrackerResultStoreLoadOperationData;
#define _tracker_result_store_category_node_unref0(var) ((var == NULL) ? NULL : (var = (tracker_result_store_category_node_unref (var), NULL)))
typedef struct _TrackerResultStoreLoadCategoryData TrackerResultStoreLoadCategoryData;
#define _gtk_icon_info_free0(var) ((var == NULL) ? NULL : (var = (gtk_icon_info_free (var), NULL)))
typedef struct _TrackerResultStoreFetchThumbnailData TrackerResultStoreFetchThumbnailData;
typedef struct _TrackerResultStoreParamSpecCategoryNode TrackerResultStoreParamSpecCategoryNode;

struct _TrackerResultStore {
	GObject parent_instance;
	TrackerResultStorePrivate * priv;
};

struct _TrackerResultStoreClass {
	GObjectClass parent_class;
};

typedef enum  {
	TRACKER_QUERY_TYPE_ALL,
	TRACKER_QUERY_TYPE_CONTACTS,
	TRACKER_QUERY_TYPE_APPLICATIONS,
	TRACKER_QUERY_TYPE_MUSIC,
	TRACKER_QUERY_TYPE_IMAGES,
	TRACKER_QUERY_TYPE_VIDEOS,
	TRACKER_QUERY_TYPE_DOCUMENTS,
	TRACKER_QUERY_TYPE_MAIL,
	TRACKER_QUERY_TYPE_CALENDAR,
	TRACKER_QUERY_TYPE_FOLDERS,
	TRACKER_QUERY_TYPE_BOOKMARKS
} TrackerQueryType;

typedef enum  {
	TRACKER_QUERY_MATCH_NONE,
	TRACKER_QUERY_MATCH_FTS,
	TRACKER_QUERY_MATCH_FTS_INDIRECT,
	TRACKER_QUERY_MATCH_TITLES,
	TRACKER_QUERY_MATCH_TITLES_INDIRECT
} TrackerQueryMatch;

struct _TrackerResultStoreQueryData {
	TrackerQueryType type;
	TrackerQueryMatch match;
	gchar** args;
	gint args_length1;
	gint _args_size_;
};

struct _TrackerResultStorePrivate {
	GCancellable* cancellable;
	TrackerResultStoreQueryData* queries;
	gint queries_length1;
	gint _queries_size_;
	GPtrArray* categories;
	GPtrArray* running_operations;
	GPtrArray* delayed_operations;
	gint n_extra_columns;
	gint n_columns;
	gint timestamp;
	gint _icon_size;
	gchar* _search_term;
	gboolean _active;
};

struct _TrackerResultStoreOperation {
	GObject parent_instance;
	TrackerResultStoreOperationPrivate * priv;
	TrackerResultStoreCategoryNode* node;
	gint offset;
};

struct _TrackerResultStoreOperationClass {
	GObjectClass parent_class;
};

struct _TrackerResultStoreResultNode {
	gchar** values;
	gint values_length1;
	gint _values_size_;
	GdkPixbuf* pixbuf;
};

struct _TrackerResultStoreCategoryNode {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TrackerResultStoreCategoryNodePrivate * priv;
	TrackerQueryType type;
	TrackerResultStoreQueryData* query;
	TrackerResultStoreResultNode* results;
	gint results_length1;
	gint _results_size_;
	GdkPixbuf* pixbuf;
	gint count;
};

struct _TrackerResultStoreCategoryNodeClass {
	GTypeClass parent_class;
	void (*finalize) (TrackerResultStoreCategoryNode *self);
};

struct _TrackerResultStoreLoadOperationData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	TrackerResultStore* self;
	TrackerResultStoreOperation* op;
	GCancellable* cancellable;
	TrackerQuery* query;
	TrackerSparqlCursor* cursor;
	gint i;
	GCancellable* _tmp0_;
	TrackerQuery* _tmp1_;
	TrackerQuery* _tmp2_;
	const gchar* _tmp3_;
	TrackerQuery* _tmp4_;
	TrackerQuery* _tmp5_;
	TrackerResultStoreOperation* _tmp6_;
	gint _tmp7_;
	TrackerQuery* _tmp8_;
	TrackerResultStoreOperation* _tmp9_;
	TrackerResultStoreCategoryNode* _tmp10_;
	TrackerResultStoreQueryData* _tmp11_;
	TrackerQueryType _tmp12_;
	TrackerResultStoreOperation* _tmp13_;
	TrackerResultStoreCategoryNode* _tmp14_;
	TrackerResultStoreQueryData* _tmp15_;
	TrackerQueryMatch _tmp16_;
	TrackerResultStoreOperation* _tmp17_;
	TrackerResultStoreCategoryNode* _tmp18_;
	TrackerResultStoreQueryData* _tmp19_;
	gchar** _tmp20_;
	gint _tmp20__length1;
	GCancellable* _tmp21_;
	TrackerSparqlCursor* _tmp22_;
	TrackerSparqlCursor* _tmp23_;
	GCancellable* _tmp24_;
	TrackerSparqlCursor* _tmp25_;
	TrackerResultStoreOperation* _tmp26_;
	gint _tmp27_;
	gboolean _tmp28_;
	gboolean _tmp29_;
	gint _tmp30_;
	gint _tmp31_;
	TrackerResultStoreOperation* _tmp32_;
	gint _tmp33_;
	TrackerResultStoreResultNode* _result_;
	GtkTreeIter iter;
	GtkTreePath* path;
	gboolean b;
	gint j;
	TrackerSparqlCursor* _tmp34_;
	GCancellable* _tmp35_;
	gboolean _tmp36_;
	gboolean _tmp37_;
	GError* ge;
	GError* _tmp38_;
	const gchar* _tmp39_;
	gboolean _tmp40_;
	TrackerResultStoreOperation* _tmp41_;
	TrackerResultStoreCategoryNode* _tmp42_;
	TrackerResultStoreResultNode* _tmp43_;
	gint _tmp43__length1;
	gint _tmp44_;
	gboolean _tmp45_;
	gboolean _tmp46_;
	gint _tmp47_;
	gint _tmp48_;
	gint _tmp49_;
	gint _tmp50_;
	gint _tmp51_;
	TrackerSparqlCursor* _tmp52_;
	gint _tmp53_;
	const gchar* _tmp54_;
	gchar* _tmp55_;
	gchar* s;
	const gchar* _tmp56_;
	TrackerResultStoreResultNode* _tmp57_;
	gchar** _tmp58_;
	gint _tmp58__length1;
	gint _tmp59_;
	const gchar* _tmp60_;
	gchar* _tmp61_;
	gchar* _tmp62_;
	TrackerResultStoreResultNode* _tmp63_;
	gchar** _tmp64_;
	gint _tmp64__length1;
	gint _tmp65_;
	gchar* _tmp66_;
	TrackerResultStoreResultNode* _tmp67_;
	gchar** _tmp68_;
	gint _tmp68__length1;
	gint _tmp69_;
	TrackerSparqlCursor* _tmp70_;
	gint _tmp71_;
	const gchar* _tmp72_;
	gchar* _tmp73_;
	gchar* _tmp74_;
	GtkTreeIter _tmp75_;
	gint _tmp76_;
	TrackerResultStoreOperation* _tmp77_;
	TrackerResultStoreCategoryNode* _tmp78_;
	TrackerResultStoreResultNode* _tmp79_;
	gint _tmp80_;
	void* _tmp81_;
	GtkTreeIter _tmp82_;
	GtkTreePath* _tmp83_;
	GtkTreePath* _tmp84_;
	GtkTreeIter _tmp85_;
	GPtrArray* _tmp86_;
	TrackerResultStoreOperation* _tmp87_;
	GError* ie;
	GCancellable* _tmp88_;
	gboolean _tmp89_;
	GError* _tmp90_;
	const gchar* _tmp91_;
	GPtrArray* _tmp92_;
	gint _tmp93_;
	gint _tmp94_;
	TrackerResultStoreOperation* next_to_start;
	GPtrArray* _tmp95_;
	GPtrArray* _tmp96_;
	gint _tmp97_;
	gint _tmp98_;
	gconstpointer _tmp99_;
	TrackerResultStoreOperation* _tmp100_;
	GPtrArray* _tmp101_;
	TrackerResultStoreOperation* _tmp102_;
	GPtrArray* _tmp103_;
	TrackerResultStoreOperation* _tmp104_;
	TrackerResultStoreOperation* _tmp105_;
	TrackerResultStoreOperation* _tmp106_;
	GCancellable* _tmp107_;
	GPtrArray* _tmp108_;
	gint _tmp109_;
	gint _tmp110_;
	GError * _inner_error_;
};

struct _TrackerResultStoreLoadCategoryData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	TrackerResultStore* self;
	TrackerResultStoreQueryData* query_data;
	GCancellable* cancellable;
	guint count;
	GCancellable* _tmp0_;
	TrackerQuery* _tmp1_;
	TrackerQuery* query;
	TrackerQuery* _tmp2_;
	const gchar* _tmp3_;
	TrackerQuery* _tmp4_;
	TrackerResultStoreQueryData* _tmp5_;
	TrackerQueryType _tmp6_;
	TrackerResultStoreQueryData* _tmp7_;
	TrackerQueryMatch _tmp8_;
	GCancellable* _tmp9_;
	guint _tmp10_;
	guint _tmp11_;
	GCancellable* _tmp12_;
	GError* ie;
	GCancellable* _tmp13_;
	gboolean _tmp14_;
	GError* _tmp15_;
	const gchar* _tmp16_;
	guint _tmp17_;
	TrackerResultStoreCategoryNode* cat;
	TrackerResultStoreResultNode* res;
	gint i;
	GtkTreeIter iter;
	GtkTreePath* path;
	TrackerResultStoreCategoryNode* _tmp18_;
	TrackerResultStoreCategoryNode* _tmp19_;
	TrackerResultStoreQueryData* _tmp20_;
	TrackerQueryType _tmp21_;
	TrackerResultStoreCategoryNode* _tmp22_;
	TrackerResultStoreQueryData* _tmp23_;
	TrackerResultStoreCategoryNode* _tmp24_;
	guint _tmp25_;
	gint _tmp26_;
	GPtrArray* _tmp27_;
	TrackerResultStoreCategoryNode* _tmp28_;
	TrackerResultStoreCategoryNode* _tmp29_;
	GtkTreeIter _tmp30_;
	gint _tmp31_;
	TrackerResultStoreCategoryNode* _tmp32_;
	TrackerResultStoreQueryData* _tmp33_;
	gint _tmp33__length1;
	GtkTreeIter _tmp34_;
	GtkTreePath* _tmp35_;
	GtkTreePath* _tmp36_;
	GtkTreeIter _tmp37_;
	gboolean _tmp38_;
	gboolean _tmp39_;
	gint _tmp40_;
	gint _tmp41_;
	guint _tmp42_;
	TrackerResultStoreCategoryNode* _tmp43_;
	TrackerResultStoreResultNode* _tmp44_;
	gint _tmp44__length1;
	gint _tmp45_;
	TrackerResultStoreResultNode* _tmp46_;
	gint _tmp47_;
	gchar** _tmp48_;
	TrackerResultStoreResultNode* _tmp49_;
	gint _tmp50_;
	void* _tmp51_;
	GtkTreeIter _tmp52_;
	GtkTreePath* _tmp53_;
	TrackerResultStoreCategoryNode* _tmp54_;
	gint _tmp55_;
	GtkTreePath* _tmp56_;
	GtkTreeIter _tmp57_;
	TrackerResultStoreQueryData* _tmp58_;
	gint _tmp58__length1;
	GtkTreeIter _tmp59_;
	GtkTreePath* _tmp60_;
	GtkTreePath* _tmp61_;
	GtkTreeIter _tmp62_;
	GPtrArray* _tmp63_;
	gint _tmp64_;
	gint _tmp65_;
	GError * _inner_error_;
};

struct _TrackerResultStoreFetchThumbnailData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	TrackerResultStore* self;
	GtkTreeIter iter;
	GFile* file;
	GFileInfo* info;
	TrackerResultStoreResultNode* _result_;
	gchar* thumb_path;
	GdkPixbuf* pixbuf;
	GtkTreeIter _tmp0_;
	void* _tmp1_;
	TrackerResultStoreResultNode* _tmp2_;
	gchar** _tmp3_;
	gint _tmp3__length1;
	const gchar* _tmp4_;
	GFile* _tmp5_;
	GFile* _tmp6_;
	GCancellable* _tmp7_;
	GFileInfo* _tmp8_;
	GFileInfo* _tmp9_;
	GError* ie;
	GError* _tmp10_;
	const gchar* _tmp11_;
	GFileInfo* _tmp12_;
	const gchar* _tmp13_;
	gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	gint _tmp17_;
	gint _tmp18_;
	GdkPixbuf* _tmp19_;
	GdkPixbuf* _tmp20_;
	GIcon* icon;
	GtkIconInfo* icon_info;
	GFileInfo* _tmp21_;
	GObject* _tmp22_;
	GIcon* _tmp23_;
	GIcon* _tmp24_;
	GdkScreen* _tmp25_;
	GtkIconTheme* _tmp26_;
	GtkIconTheme* _tmp27_;
	GtkIconTheme* theme;
	GtkIconTheme* _tmp28_;
	GIcon* _tmp29_;
	gint _tmp30_;
	GtkIconInfo* _tmp31_;
	GtkIconInfo* _tmp32_;
	GtkIconInfo* _tmp33_;
	GdkPixbuf* _tmp34_;
	GdkPixbuf* _tmp35_;
	GError* e;
	GError* _tmp36_;
	const gchar* _tmp37_;
	GdkPixbuf* _tmp38_;
	GtkTreePath* path;
	TrackerResultStoreResultNode* _tmp39_;
	GdkPixbuf* _tmp40_;
	GdkPixbuf* _tmp41_;
	GtkTreeIter _tmp42_;
	GtkTreePath* _tmp43_;
	GtkTreePath* _tmp44_;
	GtkTreeIter _tmp45_;
	GError * _inner_error_;
};

struct _TrackerResultStoreParamSpecCategoryNode {
	GParamSpec parent_instance;
};


static gpointer tracker_result_store_parent_class = NULL;
static gpointer tracker_result_store_category_node_parent_class = NULL;
static gpointer tracker_result_store_operation_parent_class = NULL;
static GtkTreeModelIface* tracker_result_store_gtk_tree_model_parent_iface = NULL;

GType tracker_result_store_get_type (void) G_GNUC_CONST;
static GType tracker_result_store_query_data_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
GType tracker_query_type_get_type (void) G_GNUC_CONST;
GType tracker_query_match_get_type (void) G_GNUC_CONST;
static TrackerResultStoreQueryData* tracker_result_store_query_data_dup (const TrackerResultStoreQueryData* self);
static void tracker_result_store_query_data_free (TrackerResultStoreQueryData* self);
static void tracker_result_store_query_data_copy (const TrackerResultStoreQueryData* self, TrackerResultStoreQueryData* dest);
static void tracker_result_store_query_data_destroy (TrackerResultStoreQueryData* self);
static gpointer tracker_result_store_category_node_ref (gpointer instance);
static void tracker_result_store_category_node_unref (gpointer instance);
static GParamSpec* tracker_result_store_param_spec_category_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
static void tracker_result_store_value_set_category_node (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static void tracker_result_store_value_take_category_node (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static gpointer tracker_result_store_value_get_category_node (const GValue* value) G_GNUC_UNUSED;
static GType tracker_result_store_category_node_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GType tracker_result_store_operation_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define TRACKER_RESULT_STORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_RESULT_STORE, TrackerResultStorePrivate))
enum  {
	TRACKER_RESULT_STORE_DUMMY_PROPERTY,
	TRACKER_RESULT_STORE_ICON_SIZE,
	TRACKER_RESULT_STORE_SEARCH_TERM,
	TRACKER_RESULT_STORE_ACTIVE
};
static void _vala_TrackerResultStoreQueryData_array_free (TrackerResultStoreQueryData* array, gint array_length);
static TrackerResultStoreOperation* tracker_result_store_find_operation (TrackerResultStore* self, GPtrArray* array, TrackerResultStoreCategoryNode* node, gint offset);
static void tracker_result_store_load_operation_data_free (gpointer _data);
static void tracker_result_store_load_operation (TrackerResultStore* self, TrackerResultStoreOperation* op, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void tracker_result_store_load_operation_finish (TrackerResultStore* self, GAsyncResult* _res_);
static gboolean tracker_result_store_load_operation_co (TrackerResultStoreLoadOperationData* _data_);
gpointer tracker_query_ref (gpointer instance);
void tracker_query_unref (gpointer instance);
GParamSpec* tracker_param_spec_query (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void tracker_value_set_query (GValue* value, gpointer v_object);
void tracker_value_take_query (GValue* value, gpointer v_object);
gpointer tracker_value_get_query (const GValue* value);
GType tracker_query_get_type (void) G_GNUC_CONST;
TrackerQuery* tracker_query_new (void);
TrackerQuery* tracker_query_construct (GType object_type);
void tracker_query_set_criteria (TrackerQuery* self, const gchar* value);
void tracker_query_set_limit (TrackerQuery* self, guint value);
void tracker_query_set_offset (TrackerQuery* self, guint value);
void tracker_query_perform_async (TrackerQuery* self, TrackerQueryType query_type, TrackerQueryMatch match_type, gchar** args, int args_length1, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
TrackerSparqlCursor* tracker_query_perform_finish (TrackerQuery* self, GAsyncResult* _res_, GError** error);
static GType tracker_result_store_result_node_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static TrackerResultStoreResultNode* tracker_result_store_result_node_dup (const TrackerResultStoreResultNode* self);
static void tracker_result_store_result_node_free (TrackerResultStoreResultNode* self);
static void tracker_result_store_result_node_copy (const TrackerResultStoreResultNode* self, TrackerResultStoreResultNode* dest);
static void tracker_result_store_result_node_destroy (TrackerResultStoreResultNode* self);
static void tracker_result_store_load_operation_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void tracker_result_store_set_active (TrackerResultStore* self, gboolean value);
static void tracker_result_store_add_operation (TrackerResultStore* self, TrackerResultStoreCategoryNode* cat, gint offset);
static TrackerResultStoreOperation* tracker_result_store_operation_new (void);
static TrackerResultStoreOperation* tracker_result_store_operation_construct (GType object_type);
static void tracker_result_store_load_category_data_free (gpointer _data);
static void tracker_result_store_load_category (TrackerResultStore* self, TrackerResultStoreQueryData* query_data, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void tracker_result_store_load_category_finish (TrackerResultStore* self, GAsyncResult* _res_);
static gboolean tracker_result_store_load_category_co (TrackerResultStoreLoadCategoryData* _data_);
void tracker_query_get_count_async (TrackerQuery* self, TrackerQueryType query_type, TrackerQueryMatch match_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
guint tracker_query_get_count_finish (TrackerQuery* self, GAsyncResult* _res_, GError** error);
static void tracker_result_store_load_category_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static TrackerResultStoreCategoryNode* tracker_result_store_category_node_new (void);
static TrackerResultStoreCategoryNode* tracker_result_store_category_node_construct (GType object_type);
static void tracker_result_store_clear_results (TrackerResultStore* self);
static gint tracker_result_store_find_nth_category_index (TrackerResultStore* self, TrackerResultStoreCategoryNode* node, gint n);
static gint tracker_result_store_filled_categories_count (TrackerResultStore* self);
static GType tracker_result_store_real_get_column_type (GtkTreeModel* base, gint index_);
static GtkTreeModelFlags tracker_result_store_real_get_flags (GtkTreeModel* base);
static gboolean tracker_result_store_real_get_iter (GtkTreeModel* base, GtkTreeIter* iter, GtkTreePath* path);
static gint tracker_result_store_real_get_n_columns (GtkTreeModel* base);
static GtkTreePath* tracker_result_store_real_get_path (GtkTreeModel* base, GtkTreeIter* iter);
static void tracker_result_store_fetch_thumbnail_data_free (gpointer _data);
static void tracker_result_store_fetch_thumbnail (TrackerResultStore* self, GtkTreeIter* iter, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void tracker_result_store_fetch_thumbnail_finish (TrackerResultStore* self, GAsyncResult* _res_);
static gboolean tracker_result_store_fetch_thumbnail_co (TrackerResultStoreFetchThumbnailData* _data_);
static void tracker_result_store_fetch_thumbnail_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
gint tracker_result_store_get_icon_size (TrackerResultStore* self);
static void tracker_result_store_real_get_value (GtkTreeModel* base, GtkTreeIter* iter, gint column, GValue* value);
GdkPixbuf* tracker_pixbuf_new_from_name (GtkIconTheme* theme, const gchar* name, gint size);
static gboolean tracker_result_store_real_iter_children (GtkTreeModel* base, GtkTreeIter* iter, GtkTreeIter* parent);
static gboolean tracker_result_store_real_iter_has_child (GtkTreeModel* base, GtkTreeIter* iter);
static gint tracker_result_store_real_iter_n_children (GtkTreeModel* base, GtkTreeIter* iter);
static gboolean tracker_result_store_real_iter_next (GtkTreeModel* base, GtkTreeIter* iter);
static gboolean tracker_result_store_real_iter_nth_child (GtkTreeModel* base, GtkTreeIter* iter, GtkTreeIter* parent, gint n);
static gboolean tracker_result_store_real_iter_parent (GtkTreeModel* base, GtkTreeIter* iter, GtkTreeIter* child);
static void tracker_result_store_real_ref_node (GtkTreeModel* base, GtkTreeIter* iter);
static void tracker_result_store_real_unref_node (GtkTreeModel* base, GtkTreeIter* iter);
static void tracker_result_store_theme_changed (TrackerResultStore* self, GtkIconTheme* theme);
TrackerResultStore* tracker_result_store_new (gint _n_columns);
TrackerResultStore* tracker_result_store_construct (GType object_type, gint _n_columns);
static void _tracker_result_store_category_node_unref0_ (gpointer var);
static void _g_object_unref0_ (gpointer var);
void tracker_result_store_set_icon_size (TrackerResultStore* self, gint value);
static void _tracker_result_store_theme_changed_gtk_icon_theme_changed (GtkIconTheme* _sender, gpointer self);
void tracker_result_store_add_query (TrackerResultStore* self, TrackerQueryType type, TrackerQueryMatch match, ...);
static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value);
static gchar** _vala_array_dup3 (gchar** self, int length);
static void _vala_array_add3 (TrackerResultStoreQueryData** array, int* length, int* size, const TrackerResultStoreQueryData* value);
gboolean tracker_result_store_has_results (TrackerResultStore* self);
void tracker_result_store_cancel_search (TrackerResultStore* self);
const gchar* tracker_result_store_get_search_term (TrackerResultStore* self);
void tracker_result_store_set_search_term (TrackerResultStore* self, const gchar* value);
gboolean tracker_result_store_get_active (TrackerResultStore* self);
enum  {
	TRACKER_RESULT_STORE_CATEGORY_NODE_DUMMY_PROPERTY
};
static void _vala_TrackerResultStoreResultNode_array_free (TrackerResultStoreResultNode* array, gint array_length);
static void tracker_result_store_category_node_finalize (TrackerResultStoreCategoryNode* obj);
enum  {
	TRACKER_RESULT_STORE_OPERATION_DUMMY_PROPERTY
};
static void tracker_result_store_operation_finalize (GObject* obj);
static gchar** _vala_array_dup4 (gchar** self, int length);
static gchar** _vala_array_dup5 (gchar** self, int length);
static void tracker_result_store_finalize (GObject* obj);
static void _vala_tracker_result_store_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_tracker_result_store_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static void _vala_TrackerResultStoreQueryData_array_free (TrackerResultStoreQueryData* array, gint array_length) {
#line 44 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (array != NULL) {
#line 621 "tracker-result-store.c"
		int i;
#line 44 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 44 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			tracker_result_store_query_data_destroy (&array[i]);
#line 627 "tracker-result-store.c"
		}
	}
#line 44 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_free (array);
#line 632 "tracker-result-store.c"
}


static gint g_ptr_array_get_length (GPtrArray* self) {
	gint result;
	guint _tmp0_;
#line 4045 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 4045 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp0_ = self->len;
#line 4045 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	result = (gint) _tmp0_;
#line 4045 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	return result;
#line 647 "tracker-result-store.c"
}


static void g_ptr_array_set_length (GPtrArray* self, gint value) {
	gint _tmp0_;
#line 4046 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_return_if_fail (self != NULL);
#line 4046 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp0_ = value;
#line 4046 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_ptr_array_set_size (self, _tmp0_);
#line 659 "tracker-result-store.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 69 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return self ? g_object_ref (self) : NULL;
#line 666 "tracker-result-store.c"
}


static TrackerResultStoreOperation* tracker_result_store_find_operation (TrackerResultStore* self, GPtrArray* array, TrackerResultStoreCategoryNode* node, gint offset) {
	TrackerResultStoreOperation* result = NULL;
	TrackerResultStoreOperation* op = NULL;
	gint i = 0;
#line 64 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 64 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (array != NULL, NULL);
#line 64 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (node != NULL, NULL);
#line 680 "tracker-result-store.c"
	{
		gboolean _tmp0_;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = 0;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = TRUE;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		while (TRUE) {
#line 689 "tracker-result-store.c"
			gboolean _tmp1_;
			gint _tmp3_;
			GPtrArray* _tmp4_;
			gint _tmp5_;
			gint _tmp6_;
			GPtrArray* _tmp7_;
			gint _tmp8_;
			gconstpointer _tmp9_ = NULL;
			TrackerResultStoreOperation* _tmp10_;
			gboolean _tmp11_ = FALSE;
			TrackerResultStoreOperation* _tmp12_;
			TrackerResultStoreCategoryNode* _tmp13_;
			TrackerResultStoreCategoryNode* _tmp14_;
			gboolean _tmp18_;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp1_ = _tmp0_;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!_tmp1_) {
#line 708 "tracker-result-store.c"
				gint _tmp2_;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp2_ = i;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				i = _tmp2_ + 1;
#line 714 "tracker-result-store.c"
			}
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp0_ = FALSE;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp3_ = i;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp4_ = array;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp5_ = g_ptr_array_get_length (_tmp4_);
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp6_ = _tmp5_;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!(_tmp3_ < _tmp6_)) {
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				break;
#line 730 "tracker-result-store.c"
			}
#line 69 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = array;
#line 69 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp8_ = i;
#line 69 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp9_ = g_ptr_array_index (_tmp7_, (guint) _tmp8_);
#line 69 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp10_ = _g_object_ref0 ((TrackerResultStoreOperation*) _tmp9_);
#line 69 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (op);
#line 69 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			op = _tmp10_;
#line 71 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = op;
#line 71 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp13_ = _tmp12_->node;
#line 71 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp14_ = node;
#line 71 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp13_ == _tmp14_) {
#line 752 "tracker-result-store.c"
				TrackerResultStoreOperation* _tmp15_;
				gint _tmp16_;
				gint _tmp17_;
#line 72 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp15_ = op;
#line 72 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp16_ = _tmp15_->offset;
#line 72 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp17_ = offset;
#line 72 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp11_ = _tmp16_ == _tmp17_;
#line 764 "tracker-result-store.c"
			} else {
#line 71 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp11_ = FALSE;
#line 768 "tracker-result-store.c"
			}
#line 71 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp18_ = _tmp11_;
#line 71 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp18_) {
#line 73 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				result = op;
#line 73 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				return result;
#line 778 "tracker-result-store.c"
			}
		}
	}
#line 77 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = NULL;
#line 77 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (op);
#line 77 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 788 "tracker-result-store.c"
}


static void tracker_result_store_load_operation_data_free (gpointer _data) {
	TrackerResultStoreLoadOperationData* _data_;
	_data_ = _data;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->op);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->cancellable);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->self);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_slice_free (TrackerResultStoreLoadOperationData, _data_);
#line 803 "tracker-result-store.c"
}


static void tracker_result_store_load_operation (TrackerResultStore* self, TrackerResultStoreOperation* op, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	TrackerResultStoreLoadOperationData* _data_;
	TrackerResultStore* _tmp0_;
	TrackerResultStoreOperation* _tmp1_;
	TrackerResultStoreOperation* _tmp2_;
	GCancellable* _tmp3_;
	GCancellable* _tmp4_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = g_slice_new0 (TrackerResultStoreLoadOperationData);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_result_store_load_operation);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_result_store_load_operation_data_free);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->self = _tmp0_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = op;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->op = _tmp2_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = cancellable;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->cancellable = _tmp4_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_load_operation_co (_data_);
#line 838 "tracker-result-store.c"
}


static void tracker_result_store_load_operation_finish (TrackerResultStore* self, GAsyncResult* _res_) {
	TrackerResultStoreLoadOperationData* _data_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 846 "tracker-result-store.c"
}


static void tracker_result_store_load_operation_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	TrackerResultStoreLoadOperationData* _data_;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = _user_data_;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_source_object_ = source_object;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_res_ = _res_;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_load_operation_co (_data_);
#line 860 "tracker-result-store.c"
}


static gboolean tracker_result_store_load_operation_co (TrackerResultStoreLoadOperationData* _data_) {
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	switch (_data_->_state_) {
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case 0:
#line 869 "tracker-result-store.c"
		goto _state_0;
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case 1:
#line 873 "tracker-result-store.c"
		goto _state_1;
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case 2:
#line 877 "tracker-result-store.c"
		goto _state_2;
		default:
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_assert_not_reached ();
#line 882 "tracker-result-store.c"
	}
	_state_0:
#line 82 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->cursor = NULL;
#line 887 "tracker-result-store.c"
	{
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp0_ = _data_->cancellable;
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_cancellable_set_error_if_cancelled (_data_->_tmp0_, &_data_->_inner_error_);
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_inner_error_ != NULL) {
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_->domain == G_IO_ERROR) {
#line 897 "tracker-result-store.c"
				goto __catch6_g_io_error;
			}
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->cursor);
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_query_unref0 (_data_->query);
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_clear_error (&_data_->_inner_error_);
#line 86 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return FALSE;
#line 910 "tracker-result-store.c"
		}
#line 88 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp1_ = tracker_query_new ();
#line 88 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_query_unref0 (_data_->query);
#line 88 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->query = _data_->_tmp1_;
#line 89 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp2_ = _data_->query;
#line 89 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp3_ = _data_->self->priv->_search_term;
#line 89 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_query_set_criteria (_data_->_tmp2_, _data_->_tmp3_);
#line 90 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp4_ = _data_->query;
#line 90 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_query_set_limit (_data_->_tmp4_, (guint) 100);
#line 91 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp5_ = _data_->query;
#line 91 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp6_ = _data_->op;
#line 91 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp7_ = _data_->_tmp6_->offset;
#line 91 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_query_set_offset (_data_->_tmp5_, (guint) _data_->_tmp7_);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp8_ = _data_->query;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp9_ = _data_->op;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp10_ = _data_->_tmp9_->node;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp11_ = _data_->_tmp10_->query;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp12_ = (*_data_->_tmp11_).type;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp13_ = _data_->op;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp14_ = _data_->_tmp13_->node;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp15_ = _data_->_tmp14_->query;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp16_ = (*_data_->_tmp15_).match;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp17_ = _data_->op;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp18_ = _data_->_tmp17_->node;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp19_ = _data_->_tmp18_->query;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp20_ = (*_data_->_tmp19_).args;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp20__length1 = (*_data_->_tmp19_).args_length1;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp21_ = _data_->cancellable;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_state_ = 1;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_query_perform_async (_data_->_tmp8_, _data_->_tmp12_, _data_->_tmp16_, _data_->_tmp20_, _data_->_tmp20__length1, _data_->_tmp21_, tracker_result_store_load_operation_ready, _data_);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 972 "tracker-result-store.c"
		_state_1:
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp22_ = NULL;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp22_ = tracker_query_perform_finish (_data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp23_ = _data_->_tmp22_;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_inner_error_ != NULL) {
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_->domain == G_IO_ERROR) {
#line 984 "tracker-result-store.c"
				goto __catch6_g_io_error;
			}
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->cursor);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_query_unref0 (_data_->query);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_clear_error (&_data_->_inner_error_);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return FALSE;
#line 997 "tracker-result-store.c"
		}
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->cursor);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->cursor = _data_->_tmp23_;
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp24_ = _data_->cancellable;
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_cancellable_set_error_if_cancelled (_data_->_tmp24_, &_data_->_inner_error_);
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_inner_error_ != NULL) {
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_->domain == G_IO_ERROR) {
#line 1011 "tracker-result-store.c"
				goto __catch6_g_io_error;
			}
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->cursor);
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_query_unref0 (_data_->query);
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_clear_error (&_data_->_inner_error_);
#line 95 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return FALSE;
#line 1024 "tracker-result-store.c"
		}
#line 97 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp25_ = _data_->cursor;
#line 97 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_tmp25_ != NULL) {
#line 1030 "tracker-result-store.c"
			{
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp26_ = _data_->op;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp27_ = _data_->_tmp26_->offset;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->i = _data_->_tmp27_;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp28_ = TRUE;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				while (TRUE) {
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp29_ = _data_->_tmp28_;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (!_data_->_tmp29_) {
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp30_ = _data_->i;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->i = _data_->_tmp30_ + 1;
#line 1050 "tracker-result-store.c"
					}
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp28_ = FALSE;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp31_ = _data_->i;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp32_ = _data_->op;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp33_ = _data_->_tmp32_->offset;
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (!(_data_->_tmp31_ < (_data_->_tmp33_ + 100))) {
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 1064 "tracker-result-store.c"
					}
#line 102 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->b = FALSE;
#line 1068 "tracker-result-store.c"
					{
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp34_ = _data_->cursor;
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp35_ = _data_->cancellable;
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_state_ = 2;
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						tracker_sparql_cursor_next_async (_data_->_tmp34_, _data_->_tmp35_, tracker_result_store_load_operation_ready, _data_);
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						return FALSE;
#line 1080 "tracker-result-store.c"
						_state_2:
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp36_ = FALSE;
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp36_ = tracker_sparql_cursor_next_finish (_data_->_tmp34_, _data_->_res_, &_data_->_inner_error_);
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp37_ = _data_->_tmp36_;
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						if (_data_->_inner_error_ != NULL) {
#line 1090 "tracker-result-store.c"
							goto __catch7_g_error;
						}
#line 106 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->b = _data_->_tmp37_;
#line 1095 "tracker-result-store.c"
					}
					goto __finally7;
					__catch7_g_error:
					{
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->ge = _data_->_inner_error_;
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_inner_error_ = NULL;
#line 108 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp38_ = _data_->ge;
#line 108 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp39_ = _data_->_tmp38_->message;
#line 108 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						g_warning ("tracker-result-store.vala:108: Could not fetch row: %s\n", _data_->_tmp39_);
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_error_free0 (_data_->ge);
#line 1112 "tracker-result-store.c"
					}
					__finally7:
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (_data_->_inner_error_ != NULL) {
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_gtk_tree_path_free0 (_data_->path);
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						if (_data_->_inner_error_->domain == G_IO_ERROR) {
#line 1121 "tracker-result-store.c"
							goto __catch6_g_io_error;
						}
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_gtk_tree_path_free0 (_data_->path);
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (_data_->cursor);
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tracker_query_unref0 (_data_->query);
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						g_clear_error (&_data_->_inner_error_);
#line 105 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						return FALSE;
#line 1136 "tracker-result-store.c"
					}
#line 111 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp40_ = _data_->b;
#line 111 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (!_data_->_tmp40_) {
#line 112 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_gtk_tree_path_free0 (_data_->path);
#line 112 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 1146 "tracker-result-store.c"
					}
#line 115 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp41_ = _data_->op;
#line 115 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp42_ = _data_->_tmp41_->node;
#line 115 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp43_ = _data_->_tmp42_->results;
#line 115 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp43__length1 = _data_->_tmp42_->results_length1;
#line 115 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp44_ = _data_->i;
#line 115 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_result_ = &_data_->_tmp43_[_data_->_tmp44_];
#line 1160 "tracker-result-store.c"
					{
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->j = 0;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_data_->_tmp45_ = TRUE;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						while (TRUE) {
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							_data_->_tmp46_ = _data_->_tmp45_;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							if (!_data_->_tmp46_) {
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp47_ = _data_->j;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->j = _data_->_tmp47_ + 1;
#line 1176 "tracker-result-store.c"
							}
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							_data_->_tmp45_ = FALSE;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							_data_->_tmp48_ = _data_->j;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							_data_->_tmp49_ = _data_->self->priv->n_columns;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							if (!(_data_->_tmp48_ < _data_->_tmp49_)) {
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								break;
#line 1188 "tracker-result-store.c"
							}
#line 118 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							_data_->_tmp50_ = _data_->j;
#line 118 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							_data_->_tmp51_ = _data_->self->priv->n_columns;
#line 118 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
							if (_data_->_tmp50_ == (_data_->_tmp51_ - 1)) {
#line 120 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp52_ = _data_->cursor;
#line 120 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp53_ = _data_->j;
#line 120 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp54_ = NULL;
#line 120 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp54_ = tracker_sparql_cursor_get_string (_data_->_tmp52_, _data_->_tmp53_, NULL);
#line 120 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp55_ = g_strdup (_data_->_tmp54_);
#line 120 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->s = _data_->_tmp55_;
#line 122 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp56_ = _data_->s;
#line 122 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								if (_data_->_tmp56_ != NULL) {
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp57_ = _data_->_result_;
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp58_ = (*_data_->_tmp57_).values;
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp58__length1 = (*_data_->_tmp57_).values_length1;
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp59_ = _data_->j;
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp60_ = _data_->s;
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp61_ = NULL;
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp61_ = g_markup_escape_text (_data_->_tmp60_, (gssize) (-1));
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_g_free0 (_data_->_tmp58_[_data_->_tmp59_]);
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp58_[_data_->_tmp59_] = _data_->_tmp61_;
#line 123 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp62_ = _data_->_tmp58_[_data_->_tmp59_];
#line 1232 "tracker-result-store.c"
								} else {
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp63_ = _data_->_result_;
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp64_ = (*_data_->_tmp63_).values;
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp64__length1 = (*_data_->_tmp63_).values_length1;
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp65_ = _data_->j;
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_g_free0 (_data_->_tmp64_[_data_->_tmp65_]);
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp64_[_data_->_tmp65_] = NULL;
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
									_data_->_tmp66_ = _data_->_tmp64_[_data_->_tmp65_];
#line 1248 "tracker-result-store.c"
								}
#line 118 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_g_free0 (_data_->s);
#line 1252 "tracker-result-store.c"
							} else {
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp67_ = _data_->_result_;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp68_ = (*_data_->_tmp67_).values;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp68__length1 = (*_data_->_tmp67_).values_length1;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp69_ = _data_->j;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp70_ = _data_->cursor;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp71_ = _data_->j;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp72_ = NULL;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp72_ = tracker_sparql_cursor_get_string (_data_->_tmp70_, _data_->_tmp71_, NULL);
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp73_ = g_strdup (_data_->_tmp72_);
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_g_free0 (_data_->_tmp68_[_data_->_tmp69_]);
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp68_[_data_->_tmp69_] = _data_->_tmp73_;
#line 127 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
								_data_->_tmp74_ = _data_->_tmp68_[_data_->_tmp69_];
#line 1278 "tracker-result-store.c"
							}
						}
					}
#line 132 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					memset (&_data_->_tmp75_, 0, sizeof (GtkTreeIter));
#line 132 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					memset (&_data_->_tmp75_, 0, sizeof (GtkTreeIter));
#line 132 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->iter = _data_->_tmp75_;
#line 133 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp76_ = _data_->self->priv->timestamp;
#line 133 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->iter.stamp = _data_->_tmp76_;
#line 134 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp77_ = _data_->op;
#line 134 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp78_ = _data_->_tmp77_->node;
#line 134 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->iter.user_data = _data_->_tmp78_;
#line 135 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp79_ = _data_->_result_;
#line 135 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->iter.user_data2 = _data_->_tmp79_;
#line 136 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp80_ = _data_->i;
#line 136 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp81_ = NULL;
#line 136 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp81_ = GINT_TO_POINTER (_data_->_tmp80_);
#line 136 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->iter.user_data3 = _data_->_tmp81_;
#line 138 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp82_ = _data_->iter;
#line 138 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp83_ = NULL;
#line 138 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp83_ = gtk_tree_model_get_path ((GtkTreeModel*) _data_->self, &_data_->_tmp82_);
#line 138 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_gtk_tree_path_free0 (_data_->path);
#line 138 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->path = _data_->_tmp83_;
#line 139 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp84_ = _data_->path;
#line 139 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp85_ = _data_->iter;
#line 139 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					gtk_tree_model_row_changed ((GtkTreeModel*) _data_->self, _data_->_tmp84_, &_data_->_tmp85_);
#line 98 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_gtk_tree_path_free0 (_data_->path);
#line 1328 "tracker-result-store.c"
				}
			}
		}
#line 143 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp86_ = _data_->self->priv->running_operations;
#line 143 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp87_ = _data_->op;
#line 143 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_remove (_data_->_tmp86_, _data_->_tmp87_);
#line 1338 "tracker-result-store.c"
	}
	goto __finally6;
	__catch6_g_io_error:
	{
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->ie = _data_->_inner_error_;
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_inner_error_ = NULL;
#line 145 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp88_ = _data_->cancellable;
#line 145 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp89_ = FALSE;
#line 145 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp89_ = g_cancellable_is_cancelled (_data_->_tmp88_);
#line 145 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (!_data_->_tmp89_) {
#line 146 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp90_ = _data_->ie;
#line 146 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp91_ = _data_->_tmp90_->message;
#line 146 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_warning ("tracker-result-store.vala:146: Could not load items: %s\n", _data_->_tmp91_);
#line 1361 "tracker-result-store.c"
		}
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_error_free0 (_data_->ie);
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->cursor);
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_query_unref0 (_data_->query);
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_state_ == 0) {
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1373 "tracker-result-store.c"
		} else {
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1377 "tracker-result-store.c"
		}
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_object_unref (_data_->_async_result);
#line 148 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 1383 "tracker-result-store.c"
	}
	__finally6:
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_inner_error_ != NULL) {
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->cursor);
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_query_unref0 (_data_->query);
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_clear_error (&_data_->_inner_error_);
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 1398 "tracker-result-store.c"
	}
#line 151 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp92_ = _data_->self->priv->delayed_operations;
#line 151 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp93_ = g_ptr_array_get_length (_data_->_tmp92_);
#line 151 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp94_ = _data_->_tmp93_;
#line 151 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_tmp94_ > 0) {
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp95_ = _data_->self->priv->delayed_operations;
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp96_ = _data_->self->priv->delayed_operations;
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp97_ = g_ptr_array_get_length (_data_->_tmp96_);
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp98_ = _data_->_tmp97_;
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp99_ = NULL;
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp99_ = g_ptr_array_index (_data_->_tmp95_, (guint) (_data_->_tmp98_ - 1));
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp100_ = _g_object_ref0 ((TrackerResultStoreOperation*) _data_->_tmp99_);
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->next_to_start);
#line 155 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->next_to_start = _data_->_tmp100_;
#line 156 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp101_ = _data_->self->priv->delayed_operations;
#line 156 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp102_ = _data_->next_to_start;
#line 156 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_remove (_data_->_tmp101_, _data_->_tmp102_);
#line 157 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp103_ = _data_->self->priv->running_operations;
#line 157 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp104_ = _data_->next_to_start;
#line 157 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp105_ = _g_object_ref0 (_data_->_tmp104_);
#line 157 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_add (_data_->_tmp103_, _data_->_tmp105_);
#line 159 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp106_ = _data_->next_to_start;
#line 159 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp107_ = _data_->cancellable;
#line 159 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_load_operation (_data_->self, _data_->_tmp106_, _data_->_tmp107_, NULL, NULL);
#line 151 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->next_to_start);
#line 1448 "tracker-result-store.c"
	} else {
#line 160 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp108_ = _data_->self->priv->running_operations;
#line 160 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp109_ = g_ptr_array_get_length (_data_->_tmp108_);
#line 160 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp110_ = _data_->_tmp109_;
#line 160 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_tmp110_ == 0) {
#line 162 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			tracker_result_store_set_active (_data_->self, FALSE);
#line 1460 "tracker-result-store.c"
		}
	}
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->cursor);
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_query_unref0 (_data_->query);
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_state_ == 0) {
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1471 "tracker-result-store.c"
	} else {
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1475 "tracker-result-store.c"
	}
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_unref (_data_->_async_result);
#line 80 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return FALSE;
#line 1481 "tracker-result-store.c"
}


static gpointer _tracker_result_store_category_node_ref0 (gpointer self) {
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return self ? tracker_result_store_category_node_ref (self) : NULL;
#line 1488 "tracker-result-store.c"
}


static void tracker_result_store_add_operation (TrackerResultStore* self, TrackerResultStoreCategoryNode* cat, gint offset) {
	TrackerResultStoreOperation* _tmp0_;
	TrackerResultStoreOperation* op;
	TrackerResultStoreOperation* old = NULL;
	TrackerResultStoreOperation* _tmp1_;
	TrackerResultStoreCategoryNode* _tmp2_;
	TrackerResultStoreCategoryNode* _tmp3_;
	TrackerResultStoreOperation* _tmp4_;
	gint _tmp5_;
	GPtrArray* _tmp6_;
	TrackerResultStoreCategoryNode* _tmp7_;
	gint _tmp8_;
	TrackerResultStoreOperation* _tmp9_ = NULL;
	TrackerResultStoreOperation* _tmp10_;
	gboolean _tmp11_;
	GPtrArray* _tmp12_;
	TrackerResultStoreCategoryNode* _tmp13_;
	gint _tmp14_;
	TrackerResultStoreOperation* _tmp15_ = NULL;
	TrackerResultStoreOperation* _tmp16_;
	GPtrArray* _tmp19_;
	gint _tmp20_;
	gint _tmp21_;
#line 166 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 166 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (cat != NULL);
#line 167 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = tracker_result_store_operation_new ();
#line 167 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	op = _tmp0_;
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = op;
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = cat;
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = _tracker_result_store_category_node_ref0 (_tmp2_);
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (_tmp1_->node);
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_->node = _tmp3_;
#line 171 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_ = op;
#line 171 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp5_ = offset;
#line 171 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_->offset = _tmp5_;
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp6_ = self->priv->running_operations;
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp7_ = cat;
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp8_ = offset;
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp9_ = tracker_result_store_find_operation (self, _tmp6_, _tmp7_, _tmp8_);
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp10_ = _tmp9_;
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp11_ = _tmp10_ != NULL;
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_tmp10_);
#line 173 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp11_) {
#line 175 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (old);
#line 175 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (op);
#line 175 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return;
#line 1561 "tracker-result-store.c"
	}
#line 181 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp12_ = self->priv->delayed_operations;
#line 181 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp13_ = cat;
#line 181 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp14_ = offset;
#line 181 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp15_ = tracker_result_store_find_operation (self, _tmp12_, _tmp13_, _tmp14_);
#line 181 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (old);
#line 181 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	old = _tmp15_;
#line 183 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp16_ = old;
#line 183 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp16_ != NULL) {
#line 1579 "tracker-result-store.c"
		GPtrArray* _tmp17_;
		TrackerResultStoreOperation* _tmp18_;
#line 184 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp17_ = self->priv->delayed_operations;
#line 184 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp18_ = old;
#line 184 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_remove (_tmp17_, _tmp18_);
#line 1588 "tracker-result-store.c"
	}
#line 187 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_set_active (self, TRUE);
#line 191 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp19_ = self->priv->running_operations;
#line 191 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp20_ = g_ptr_array_get_length (_tmp19_);
#line 191 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp21_ = _tmp20_;
#line 191 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp21_ < 2) {
#line 1600 "tracker-result-store.c"
		GPtrArray* _tmp22_;
		TrackerResultStoreOperation* _tmp23_;
		TrackerResultStoreOperation* _tmp24_;
		TrackerResultStoreOperation* _tmp25_;
		GCancellable* _tmp26_;
#line 192 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp22_ = self->priv->running_operations;
#line 192 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp23_ = op;
#line 192 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp24_ = _g_object_ref0 (_tmp23_);
#line 192 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_add (_tmp22_, _tmp24_);
#line 195 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp25_ = op;
#line 195 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp26_ = self->priv->cancellable;
#line 195 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_load_operation (self, _tmp25_, _tmp26_, NULL, NULL);
#line 1620 "tracker-result-store.c"
	} else {
		GPtrArray* _tmp27_;
		TrackerResultStoreOperation* _tmp28_;
		TrackerResultStoreOperation* _tmp29_;
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp27_ = self->priv->delayed_operations;
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp28_ = op;
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp29_ = _g_object_ref0 (_tmp28_);
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_add (_tmp27_, _tmp29_);
#line 1633 "tracker-result-store.c"
	}
#line 166 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (old);
#line 166 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (op);
#line 1639 "tracker-result-store.c"
}


static void tracker_result_store_load_category_data_free (gpointer _data) {
	TrackerResultStoreLoadCategoryData* _data_;
	_data_ = _data;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->cancellable);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->self);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_slice_free (TrackerResultStoreLoadCategoryData, _data_);
#line 1652 "tracker-result-store.c"
}


static void tracker_result_store_load_category (TrackerResultStore* self, TrackerResultStoreQueryData* query_data, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	TrackerResultStoreLoadCategoryData* _data_;
	TrackerResultStore* _tmp0_;
	TrackerResultStoreQueryData* _tmp1_;
	GCancellable* _tmp2_;
	GCancellable* _tmp3_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = g_slice_new0 (TrackerResultStoreLoadCategoryData);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_result_store_load_category);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_result_store_load_category_data_free);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->self = _tmp0_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = query_data;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->query_data = _tmp1_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = cancellable;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->cancellable = _tmp3_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_load_category_co (_data_);
#line 1684 "tracker-result-store.c"
}


static void tracker_result_store_load_category_finish (TrackerResultStore* self, GAsyncResult* _res_) {
	TrackerResultStoreLoadCategoryData* _data_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1692 "tracker-result-store.c"
}


static void tracker_result_store_load_category_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	TrackerResultStoreLoadCategoryData* _data_;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = _user_data_;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_source_object_ = source_object;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_res_ = _res_;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_load_category_co (_data_);
#line 1706 "tracker-result-store.c"
}


static gboolean tracker_result_store_load_category_co (TrackerResultStoreLoadCategoryData* _data_) {
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	switch (_data_->_state_) {
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case 0:
#line 1715 "tracker-result-store.c"
		goto _state_0;
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case 1:
#line 1719 "tracker-result-store.c"
		goto _state_1;
		default:
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_assert_not_reached ();
#line 1724 "tracker-result-store.c"
	}
	_state_0:
#line 203 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->count = (guint) 0;
#line 1729 "tracker-result-store.c"
	{
#line 206 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp0_ = _data_->cancellable;
#line 206 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_cancellable_set_error_if_cancelled (_data_->_tmp0_, &_data_->_inner_error_);
#line 206 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_inner_error_ != NULL) {
#line 206 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_->domain == G_IO_ERROR) {
#line 1739 "tracker-result-store.c"
				goto __catch8_g_io_error;
			}
#line 206 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 206 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_clear_error (&_data_->_inner_error_);
#line 206 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return FALSE;
#line 1748 "tracker-result-store.c"
		}
#line 208 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp1_ = tracker_query_new ();
#line 208 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->query = _data_->_tmp1_;
#line 209 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp2_ = _data_->query;
#line 209 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp3_ = _data_->self->priv->_search_term;
#line 209 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_query_set_criteria (_data_->_tmp2_, _data_->_tmp3_);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp4_ = _data_->query;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp5_ = _data_->query_data;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp6_ = (*_data_->_tmp5_).type;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp7_ = _data_->query_data;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp8_ = (*_data_->_tmp7_).match;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp9_ = _data_->cancellable;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_state_ = 1;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_query_get_count_async (_data_->_tmp4_, _data_->_tmp6_, _data_->_tmp8_, _data_->_tmp9_, tracker_result_store_load_category_ready, _data_);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 1778 "tracker-result-store.c"
		_state_1:
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp10_ = 0U;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp10_ = tracker_query_get_count_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp11_ = _data_->_tmp10_;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_inner_error_ != NULL) {
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_query_unref0 (_data_->query);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_->domain == G_IO_ERROR) {
#line 1792 "tracker-result-store.c"
				goto __catch8_g_io_error;
			}
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_query_unref0 (_data_->query);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_clear_error (&_data_->_inner_error_);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return FALSE;
#line 1803 "tracker-result-store.c"
		}
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->count = _data_->_tmp11_;
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp12_ = _data_->cancellable;
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_cancellable_set_error_if_cancelled (_data_->_tmp12_, &_data_->_inner_error_);
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_inner_error_ != NULL) {
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_query_unref0 (_data_->query);
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_->domain == G_IO_ERROR) {
#line 1817 "tracker-result-store.c"
				goto __catch8_g_io_error;
			}
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_query_unref0 (_data_->query);
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_clear_error (&_data_->_inner_error_);
#line 212 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return FALSE;
#line 1828 "tracker-result-store.c"
		}
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_query_unref0 (_data_->query);
#line 1832 "tracker-result-store.c"
	}
	goto __finally8;
	__catch8_g_io_error:
	{
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->ie = _data_->_inner_error_;
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_inner_error_ = NULL;
#line 214 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp13_ = _data_->cancellable;
#line 214 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp14_ = FALSE;
#line 214 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp14_ = g_cancellable_is_cancelled (_data_->_tmp13_);
#line 214 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (!_data_->_tmp14_) {
#line 215 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp15_ = _data_->ie;
#line 215 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp16_ = _data_->_tmp15_->message;
#line 215 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_warning ("tracker-result-store.vala:215: Could not get count: %s\n", _data_->_tmp16_);
#line 1855 "tracker-result-store.c"
		}
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_error_free0 (_data_->ie);
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_state_ == 0) {
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1863 "tracker-result-store.c"
		} else {
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1867 "tracker-result-store.c"
		}
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_object_unref (_data_->_async_result);
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 1873 "tracker-result-store.c"
	}
	__finally8:
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_inner_error_ != NULL) {
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_clear_error (&_data_->_inner_error_);
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 1884 "tracker-result-store.c"
	}
#line 220 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp17_ = _data_->count;
#line 220 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_tmp17_ != ((guint) 0)) {
#line 228 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp18_ = tracker_result_store_category_node_new ();
#line 228 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (_data_->cat);
#line 228 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->cat = _data_->_tmp18_;
#line 229 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp19_ = _data_->cat;
#line 229 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp20_ = _data_->query_data;
#line 229 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp21_ = (*_data_->_tmp20_).type;
#line 229 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp19_->type = _data_->_tmp21_;
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp22_ = _data_->cat;
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp23_ = _data_->query_data;
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp22_->query = _data_->_tmp23_;
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp24_ = _data_->cat;
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp25_ = _data_->count;
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp26_ = 0;
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp26_ = (gint) _data_->_tmp25_;
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp24_->results = g_renew (TrackerResultStoreResultNode, _data_->_tmp24_->results, (gint) _data_->_tmp25_);
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		(_data_->_tmp26_ > _data_->_tmp24_->results_length1) ? memset (_data_->_tmp24_->results + _data_->_tmp24_->results_length1, 0, sizeof (TrackerResultStoreResultNode) * (_data_->_tmp26_ - _data_->_tmp24_->results_length1)) : NULL;
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp24_->results_length1 = _data_->_tmp26_;
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp24_->_results_size_ = _data_->_tmp26_;
#line 232 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp27_ = _data_->self->priv->categories;
#line 232 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp28_ = _data_->cat;
#line 232 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp29_ = _tracker_result_store_category_node_ref0 (_data_->_tmp28_);
#line 232 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_add (_data_->_tmp27_, _data_->_tmp29_);
#line 234 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		memset (&_data_->_tmp30_, 0, sizeof (GtkTreeIter));
#line 234 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		memset (&_data_->_tmp30_, 0, sizeof (GtkTreeIter));
#line 234 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->iter = _data_->_tmp30_;
#line 235 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp31_ = _data_->self->priv->timestamp;
#line 235 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->iter.stamp = _data_->_tmp31_;
#line 236 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp32_ = _data_->cat;
#line 236 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->iter.user_data = _data_->_tmp32_;
#line 238 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp33_ = _data_->self->priv->queries;
#line 238 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp33__length1 = _data_->self->priv->queries_length1;
#line 238 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_tmp33__length1 > 1) {
#line 239 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp34_ = _data_->iter;
#line 239 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp35_ = NULL;
#line 239 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp35_ = gtk_tree_model_get_path ((GtkTreeModel*) _data_->self, &_data_->_tmp34_);
#line 239 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_gtk_tree_path_free0 (_data_->path);
#line 239 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->path = _data_->_tmp35_;
#line 240 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp36_ = _data_->path;
#line 240 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp37_ = _data_->iter;
#line 240 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			gtk_tree_model_row_inserted ((GtkTreeModel*) _data_->self, _data_->_tmp36_, &_data_->_tmp37_);
#line 1970 "tracker-result-store.c"
		}
		{
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->i = 0;
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp38_ = TRUE;
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			while (TRUE) {
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp39_ = _data_->_tmp38_;
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (!_data_->_tmp39_) {
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->_tmp40_ = _data_->i;
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_data_->i = _data_->_tmp40_ + 1;
#line 1987 "tracker-result-store.c"
				}
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp38_ = FALSE;
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp41_ = _data_->i;
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp42_ = _data_->count;
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (!(((guint) _data_->_tmp41_) < _data_->_tmp42_)) {
#line 243 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					break;
#line 1999 "tracker-result-store.c"
				}
#line 244 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp43_ = _data_->cat;
#line 244 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp44_ = _data_->_tmp43_->results;
#line 244 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp44__length1 = _data_->_tmp43_->results_length1;
#line 244 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp45_ = _data_->i;
#line 244 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->res = &_data_->_tmp44_[_data_->_tmp45_];
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp46_ = _data_->res;
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp47_ = _data_->self->priv->n_columns;
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp48_ = NULL;
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp48_ = g_new0 (gchar*, _data_->_tmp47_ + 1);
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				(*_data_->_tmp46_).values = (_vala_array_free ((*_data_->_tmp46_).values, (*_data_->_tmp46_).values_length1, (GDestroyNotify) g_free), NULL);
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				(*_data_->_tmp46_).values = _data_->_tmp48_;
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				(*_data_->_tmp46_).values_length1 = _data_->_tmp47_;
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				(*_data_->_tmp46_)._values_size_ = (*_data_->_tmp46_).values_length1;
#line 247 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp49_ = _data_->res;
#line 247 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->iter.user_data2 = _data_->_tmp49_;
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp50_ = _data_->i;
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp51_ = NULL;
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp51_ = GINT_TO_POINTER (_data_->_tmp50_);
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->iter.user_data3 = _data_->_tmp51_;
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp52_ = _data_->iter;
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp53_ = NULL;
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp53_ = gtk_tree_model_get_path ((GtkTreeModel*) _data_->self, &_data_->_tmp52_);
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_gtk_tree_path_free0 (_data_->path);
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->path = _data_->_tmp53_;
#line 251 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp54_ = _data_->cat;
#line 251 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp55_ = _data_->_tmp54_->count;
#line 251 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp54_->count = _data_->_tmp55_ + 1;
#line 252 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp56_ = _data_->path;
#line 252 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_data_->_tmp57_ = _data_->iter;
#line 252 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				gtk_tree_model_row_inserted ((GtkTreeModel*) _data_->self, _data_->_tmp56_, &_data_->_tmp57_);
#line 2061 "tracker-result-store.c"
			}
		}
#line 255 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp58_ = _data_->self->priv->queries;
#line 255 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp58__length1 = _data_->self->priv->queries_length1;
#line 255 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_tmp58__length1 > 1) {
#line 256 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->iter.user_data2 = NULL;
#line 257 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->iter.user_data3 = NULL;
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp59_ = _data_->iter;
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp60_ = NULL;
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp60_ = gtk_tree_model_get_path ((GtkTreeModel*) _data_->self, &_data_->_tmp59_);
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_gtk_tree_path_free0 (_data_->path);
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->path = _data_->_tmp60_;
#line 260 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp61_ = _data_->path;
#line 260 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp62_ = _data_->iter;
#line 260 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			gtk_tree_model_row_changed ((GtkTreeModel*) _data_->self, _data_->_tmp61_, &_data_->_tmp62_);
#line 2090 "tracker-result-store.c"
		}
#line 220 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_gtk_tree_path_free0 (_data_->path);
#line 220 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (_data_->cat);
#line 2096 "tracker-result-store.c"
	}
#line 264 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp63_ = _data_->self->priv->running_operations;
#line 264 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp64_ = g_ptr_array_get_length (_data_->_tmp63_);
#line 264 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp65_ = _data_->_tmp64_;
#line 264 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_tmp65_ == 0) {
#line 265 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_set_active (_data_->self, FALSE);
#line 2108 "tracker-result-store.c"
	}
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_state_ == 0) {
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2114 "tracker-result-store.c"
	} else {
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2118 "tracker-result-store.c"
	}
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_unref (_data_->_async_result);
#line 202 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return FALSE;
#line 2124 "tracker-result-store.c"
}


static void tracker_result_store_clear_results (TrackerResultStore* self) {
	gint j = 0;
#line 269 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	while (TRUE) {
#line 2134 "tracker-result-store.c"
		GPtrArray* _tmp0_;
		gint _tmp1_;
		gint _tmp2_;
		GPtrArray* _tmp3_;
		gconstpointer _tmp4_ = NULL;
		TrackerResultStoreCategoryNode* _tmp5_;
		TrackerResultStoreCategoryNode* cat;
		GtkTreeIter iter = {0};
		GtkTreePath* path = NULL;
		TrackerResultStoreCategoryNode* _tmp6_;
		TrackerResultStoreResultNode* _tmp7_;
		gint _tmp7__length1;
		GtkTreeIter _tmp8_ = {0};
		gint _tmp9_;
		TrackerResultStoreCategoryNode* _tmp10_;
		TrackerResultStoreQueryData* _tmp27_;
		gint _tmp27__length1;
		GPtrArray* _tmp31_;
		TrackerResultStoreCategoryNode* _tmp32_;
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = self->priv->categories;
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1_ = g_ptr_array_get_length (_tmp0_);
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = _tmp1_;
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (!(_tmp2_ > 0)) {
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			break;
#line 2164 "tracker-result-store.c"
		}
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp3_ = self->priv->categories;
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp4_ = g_ptr_array_index (_tmp3_, (guint) 0);
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp5_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp4_);
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		cat = _tmp5_;
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp6_ = cat;
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp7_ = _tmp6_->results;
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp7__length1 = _tmp6_->results_length1;
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp7__length1 == 0) {
#line 278 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_gtk_tree_path_free0 (path);
#line 278 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 278 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			continue;
#line 2188 "tracker-result-store.c"
		}
#line 281 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		memset (&_tmp8_, 0, sizeof (GtkTreeIter));
#line 281 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		iter = _tmp8_;
#line 282 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp9_ = self->priv->timestamp;
#line 282 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		iter.stamp = _tmp9_;
#line 283 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp10_ = cat;
#line 283 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		iter.user_data = _tmp10_;
#line 2202 "tracker-result-store.c"
		{
			TrackerResultStoreCategoryNode* _tmp11_;
			gint _tmp12_;
			gboolean _tmp13_;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11_ = cat;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = _tmp11_->count;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			j = _tmp12_ - 1;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp13_ = TRUE;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			while (TRUE) {
#line 2217 "tracker-result-store.c"
				gboolean _tmp14_;
				gint _tmp16_;
				TrackerResultStoreCategoryNode* _tmp17_;
				TrackerResultStoreResultNode* _tmp18_;
				gint _tmp18__length1;
				gint _tmp19_;
				gint _tmp20_;
				void* _tmp21_ = NULL;
				GtkTreeIter _tmp22_;
				GtkTreePath* _tmp23_ = NULL;
				GtkTreePath* _tmp24_;
				TrackerResultStoreCategoryNode* _tmp25_;
				gint _tmp26_;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp14_ = _tmp13_;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (!_tmp14_) {
#line 2235 "tracker-result-store.c"
					gint _tmp15_;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp15_ = j;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					j = _tmp15_ - 1;
#line 2241 "tracker-result-store.c"
				}
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp13_ = FALSE;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp16_ = j;
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (!(_tmp16_ >= 0)) {
#line 285 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					break;
#line 2251 "tracker-result-store.c"
				}
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp17_ = cat;
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp18_ = _tmp17_->results;
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp18__length1 = _tmp17_->results_length1;
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp19_ = j;
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				iter.user_data2 = &_tmp18_[_tmp19_];
#line 287 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp20_ = j;
#line 287 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp21_ = GINT_TO_POINTER (_tmp20_);
#line 287 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				iter.user_data3 = _tmp21_;
#line 288 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp22_ = iter;
#line 288 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp23_ = gtk_tree_model_get_path ((GtkTreeModel*) self, &_tmp22_);
#line 288 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_gtk_tree_path_free0 (path);
#line 288 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				path = _tmp23_;
#line 290 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp24_ = path;
#line 290 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				gtk_tree_model_row_deleted ((GtkTreeModel*) self, _tmp24_);
#line 291 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp25_ = cat;
#line 291 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp26_ = _tmp25_->count;
#line 291 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp25_->count = _tmp26_ - 1;
#line 2287 "tracker-result-store.c"
			}
		}
#line 294 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp27_ = self->priv->queries;
#line 294 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp27__length1 = self->priv->queries_length1;
#line 294 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp27__length1 > 1) {
#line 2296 "tracker-result-store.c"
			GtkTreeIter _tmp28_;
			GtkTreePath* _tmp29_ = NULL;
			GtkTreePath* _tmp30_;
#line 295 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			iter.user_data2 = NULL;
#line 296 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			iter.user_data3 = NULL;
#line 297 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp28_ = iter;
#line 297 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp29_ = gtk_tree_model_get_path ((GtkTreeModel*) self, &_tmp28_);
#line 297 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_gtk_tree_path_free0 (path);
#line 297 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			path = _tmp29_;
#line 299 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp30_ = path;
#line 299 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			gtk_tree_model_row_deleted ((GtkTreeModel*) self, _tmp30_);
#line 2316 "tracker-result-store.c"
		}
#line 302 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp31_ = self->priv->categories;
#line 302 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp32_ = cat;
#line 302 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_ptr_array_remove (_tmp31_, _tmp32_);
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_gtk_tree_path_free0 (path);
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 2328 "tracker-result-store.c"
	}
}


static gint tracker_result_store_find_nth_category_index (TrackerResultStore* self, TrackerResultStoreCategoryNode* node, gint n) {
	gint result = 0;
	gint i = 0;
	TrackerResultStoreCategoryNode* _tmp0_;
#line 337 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 340 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = node;
#line 340 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0_ == NULL) {
#line 2343 "tracker-result-store.c"
		gint _tmp1_;
#line 342 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1_ = n;
#line 342 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = _tmp1_;
#line 342 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 2351 "tracker-result-store.c"
	}
	{
		gboolean _tmp2_;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = 0;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = TRUE;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		while (TRUE) {
#line 2361 "tracker-result-store.c"
			gboolean _tmp3_;
			gint _tmp5_;
			GPtrArray* _tmp6_;
			gint _tmp7_;
			gint _tmp8_;
			TrackerResultStoreCategoryNode* cat = NULL;
			GPtrArray* _tmp9_;
			gint _tmp10_;
			gconstpointer _tmp11_ = NULL;
			TrackerResultStoreCategoryNode* _tmp12_;
			TrackerResultStoreCategoryNode* _tmp13_;
			TrackerResultStoreCategoryNode* _tmp14_;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp3_ = _tmp2_;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!_tmp3_) {
#line 2378 "tracker-result-store.c"
				gint _tmp4_;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp4_ = i;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				i = _tmp4_ + 1;
#line 2384 "tracker-result-store.c"
			}
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp2_ = FALSE;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp5_ = i;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp6_ = self->priv->categories;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = g_ptr_array_get_length (_tmp6_);
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp8_ = _tmp7_;
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!(_tmp5_ < _tmp8_)) {
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				break;
#line 2400 "tracker-result-store.c"
			}
#line 348 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp9_ = self->priv->categories;
#line 348 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp10_ = i;
#line 348 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11_ = g_ptr_array_index (_tmp9_, (guint) _tmp10_);
#line 348 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp11_);
#line 348 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 348 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			cat = _tmp12_;
#line 350 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp13_ = cat;
#line 350 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp14_ = node;
#line 350 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp13_ == _tmp14_) {
#line 2420 "tracker-result-store.c"
				gint _tmp15_;
				gint _tmp16_;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp15_ = i;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp16_ = n;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				result = _tmp15_ + _tmp16_;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tracker_result_store_category_node_unref0 (cat);
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				return result;
#line 2433 "tracker-result-store.c"
			}
#line 345 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 2437 "tracker-result-store.c"
		}
	}
#line 355 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = -1;
#line 355 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 2444 "tracker-result-store.c"
}


static gint tracker_result_store_filled_categories_count (TrackerResultStore* self) {
	gint result = 0;
	gint i = 0;
	gint n;
#line 358 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 359 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	n = 0;
#line 2456 "tracker-result-store.c"
	{
		gboolean _tmp0_;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = 0;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = TRUE;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		while (TRUE) {
#line 2465 "tracker-result-store.c"
			gboolean _tmp1_;
			gint _tmp3_;
			GPtrArray* _tmp4_;
			gint _tmp5_;
			gint _tmp6_;
			TrackerResultStoreCategoryNode* cat = NULL;
			GPtrArray* _tmp7_;
			gint _tmp8_;
			gconstpointer _tmp9_ = NULL;
			TrackerResultStoreCategoryNode* _tmp10_;
			TrackerResultStoreCategoryNode* _tmp11_;
			gint _tmp12_;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp1_ = _tmp0_;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!_tmp1_) {
#line 2482 "tracker-result-store.c"
				gint _tmp2_;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp2_ = i;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				i = _tmp2_ + 1;
#line 2488 "tracker-result-store.c"
			}
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp0_ = FALSE;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp3_ = i;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp4_ = self->priv->categories;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp5_ = g_ptr_array_get_length (_tmp4_);
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp6_ = _tmp5_;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!(_tmp3_ < _tmp6_)) {
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				break;
#line 2504 "tracker-result-store.c"
			}
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = self->priv->categories;
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp8_ = i;
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp9_ = g_ptr_array_index (_tmp7_, (guint) _tmp8_);
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp10_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp9_);
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			cat = _tmp10_;
#line 366 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11_ = cat;
#line 366 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = _tmp11_->count;
#line 366 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp12_ > 0) {
#line 2524 "tracker-result-store.c"
				gint _tmp13_;
#line 367 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp13_ = n;
#line 367 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				n = _tmp13_ + 1;
#line 2530 "tracker-result-store.c"
			}
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 2534 "tracker-result-store.c"
		}
	}
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = n;
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 2541 "tracker-result-store.c"
}


static GType tracker_result_store_real_get_column_type (GtkTreeModel* base, gint index_) {
	TrackerResultStore * self;
	GType result = 0UL;
	gint _tmp0_;
	gint _tmp1_;
#line 374 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 375 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = index_;
#line 375 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = self->priv->n_columns;
#line 375 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0_ == _tmp1_) {
#line 376 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = GDK_TYPE_PIXBUF;
#line 376 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 2562 "tracker-result-store.c"
	} else {
		gint _tmp2_;
		gint _tmp3_;
#line 377 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = index_;
#line 377 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp3_ = self->priv->n_columns;
#line 377 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp2_ == (_tmp3_ + 1)) {
#line 378 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = TRACKER_QUERY_TYPE_TYPE;
#line 378 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 2576 "tracker-result-store.c"
		} else {
#line 380 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = G_TYPE_STRING;
#line 380 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 2582 "tracker-result-store.c"
		}
	}
}


static GtkTreeModelFlags tracker_result_store_real_get_flags (GtkTreeModel* base) {
	TrackerResultStore * self;
	GtkTreeModelFlags result = 0;
	GtkTreeModelFlags flags = 0;
	TrackerResultStoreQueryData* _tmp0_;
	gint _tmp0__length1;
#line 384 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 387 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	flags = GTK_TREE_MODEL_ITERS_PERSIST;
#line 389 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = self->priv->queries;
#line 389 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0__length1 = self->priv->queries_length1;
#line 389 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0__length1 == 1) {
#line 2604 "tracker-result-store.c"
		GtkTreeModelFlags _tmp1_;
#line 390 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1_ = flags;
#line 390 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		flags = _tmp1_ | GTK_TREE_MODEL_LIST_ONLY;
#line 2610 "tracker-result-store.c"
	}
#line 393 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = flags;
#line 393 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 2616 "tracker-result-store.c"
}


static gboolean tracker_result_store_real_get_iter (GtkTreeModel* base, GtkTreeIter* iter, GtkTreePath* path) {
	TrackerResultStore * self;
	GtkTreeIter _vala_iter = {0};
	gboolean result = FALSE;
	GtkTreePath* _tmp0_;
	gint _tmp1_ = 0;
	gint* _tmp2_ = NULL;
	gint* indices;
	gint indices_length1;
	gint _indices_size_;
	TrackerResultStoreCategoryNode* cat = NULL;
	gint i;
	TrackerResultStoreQueryData* _tmp3_;
	gint _tmp3__length1;
	gint _tmp23_;
	TrackerResultStoreCategoryNode* _tmp24_;
	GtkTreePath* _tmp25_;
	gint _tmp26_ = 0;
	gint _tmp27_;
#line 396 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 396 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (path != NULL, FALSE);
#line 397 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = path;
#line 397 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = gtk_tree_path_get_indices_with_depth (_tmp0_, &_tmp1_);
#line 397 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	indices = _tmp2_;
#line 397 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	indices_length1 = _tmp1_;
#line 397 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_indices_size_ = indices_length1;
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	i = 0;
#line 401 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = self->priv->queries;
#line 401 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3__length1 = self->priv->queries_length1;
#line 401 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp3__length1 > 1) {
#line 2661 "tracker-result-store.c"
		gint* _tmp4_;
		gint _tmp4__length1;
		gint _tmp5_;
		gint _tmp6_;
		GPtrArray* _tmp7_;
		gint _tmp8_;
		gint _tmp9_;
		GPtrArray* _tmp10_;
		gint* _tmp11_;
		gint _tmp11__length1;
		gint _tmp12_;
		gint _tmp13_;
		gconstpointer _tmp14_ = NULL;
		TrackerResultStoreCategoryNode* _tmp15_;
		gint _tmp16_;
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp4_ = indices;
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp4__length1 = indices_length1;
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp5_ = i;
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp6_ = _tmp4_[_tmp5_];
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp7_ = self->priv->categories;
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp8_ = g_ptr_array_get_length (_tmp7_);
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp9_ = _tmp8_;
#line 402 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp6_ >= _tmp9_) {
#line 403 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.stamp = 0;
#line 404 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = FALSE;
#line 404 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 404 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (iter) {
#line 404 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				*iter = _vala_iter;
#line 2703 "tracker-result-store.c"
			}
#line 404 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 2707 "tracker-result-store.c"
		}
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp10_ = self->priv->categories;
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp11_ = indices;
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp11__length1 = indices_length1;
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp12_ = i;
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp13_ = _tmp11_[_tmp12_];
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp14_ = g_ptr_array_index (_tmp10_, (guint) _tmp13_);
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp15_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp14_);
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		cat = _tmp15_;
#line 408 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp16_ = i;
#line 408 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = _tmp16_ + 1;
#line 2731 "tracker-result-store.c"
	} else {
		GPtrArray* _tmp17_;
		gint _tmp18_;
		gint _tmp19_;
		GPtrArray* _tmp20_;
		gconstpointer _tmp21_ = NULL;
		TrackerResultStoreCategoryNode* _tmp22_;
#line 410 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp17_ = self->priv->categories;
#line 410 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp18_ = g_ptr_array_get_length (_tmp17_);
#line 410 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp19_ = _tmp18_;
#line 410 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp19_ == 0) {
#line 411 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.stamp = 0;
#line 412 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = FALSE;
#line 412 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 412 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (iter) {
#line 412 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				*iter = _vala_iter;
#line 2757 "tracker-result-store.c"
			}
#line 412 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 2761 "tracker-result-store.c"
		}
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp20_ = self->priv->categories;
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp21_ = g_ptr_array_index (_tmp20_, (guint) 0);
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp22_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp21_);
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		cat = _tmp22_;
#line 2773 "tracker-result-store.c"
	}
#line 418 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp23_ = self->priv->timestamp;
#line 418 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_iter.stamp = _tmp23_;
#line 419 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp24_ = cat;
#line 419 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_iter.user_data = _tmp24_;
#line 421 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp25_ = path;
#line 421 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp26_ = gtk_tree_path_get_depth (_tmp25_);
#line 421 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp27_ = i;
#line 421 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp26_ == (_tmp27_ + 1)) {
#line 2791 "tracker-result-store.c"
		gint* _tmp28_;
		gint _tmp28__length1;
		gint _tmp29_;
		gint _tmp30_;
		TrackerResultStoreCategoryNode* _tmp31_;
		gint _tmp32_;
		TrackerResultStoreCategoryNode* _tmp33_;
		TrackerResultStoreResultNode* _tmp34_;
		gint _tmp34__length1;
		gint* _tmp35_;
		gint _tmp35__length1;
		gint _tmp36_;
		gint _tmp37_;
		gint* _tmp38_;
		gint _tmp38__length1;
		gint _tmp39_;
		gint _tmp40_;
		void* _tmp41_ = NULL;
#line 423 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp28_ = indices;
#line 423 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp28__length1 = indices_length1;
#line 423 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp29_ = i;
#line 423 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp30_ = _tmp28_[_tmp29_];
#line 423 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp31_ = cat;
#line 423 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp32_ = _tmp31_->count;
#line 423 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp30_ >= _tmp32_) {
#line 424 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.stamp = 0;
#line 425 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = FALSE;
#line 425 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 425 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (iter) {
#line 425 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				*iter = _vala_iter;
#line 2834 "tracker-result-store.c"
			}
#line 425 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 2838 "tracker-result-store.c"
		}
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp33_ = cat;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp34_ = _tmp33_->results;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp34__length1 = _tmp33_->results_length1;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp35_ = indices;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp35__length1 = indices_length1;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp36_ = i;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp37_ = _tmp35_[_tmp36_];
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data2 = &_tmp34_[_tmp37_];
#line 429 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp38_ = indices;
#line 429 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp38__length1 = indices_length1;
#line 429 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp39_ = i;
#line 429 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp40_ = _tmp38_[_tmp39_];
#line 429 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp41_ = GINT_TO_POINTER (_tmp40_);
#line 429 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data3 = _tmp41_;
#line 2868 "tracker-result-store.c"
	}
#line 432 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = TRUE;
#line 432 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 432 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (iter) {
#line 432 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*iter = _vala_iter;
#line 2878 "tracker-result-store.c"
	}
#line 432 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 2882 "tracker-result-store.c"
}


static gint tracker_result_store_real_get_n_columns (GtkTreeModel* base) {
	TrackerResultStore * self;
	gint result = 0;
	gint _tmp0_;
	gint _tmp1_;
#line 435 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 436 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = self->priv->n_columns;
#line 436 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = self->priv->n_extra_columns;
#line 436 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = _tmp0_ + _tmp1_;
#line 436 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 2901 "tracker-result-store.c"
}


static GtkTreePath* tracker_result_store_real_get_path (GtkTreeModel* base, GtkTreeIter* iter) {
	TrackerResultStore * self;
	GtkTreePath* result = NULL;
	GtkTreePath* _tmp0_;
	GtkTreePath* path;
	TrackerResultStoreCategoryNode* cat = NULL;
	gint i = 0;
	TrackerResultStoreQueryData* _tmp1_;
	gint _tmp1__length1;
	GtkTreeIter _tmp18_;
	void* _tmp19_;
#line 440 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 440 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (iter != NULL, NULL);
#line 444 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = gtk_tree_path_new ();
#line 444 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	path = _tmp0_;
#line 448 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = self->priv->queries;
#line 448 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1__length1 = self->priv->queries_length1;
#line 448 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp1__length1 > 1) {
#line 2930 "tracker-result-store.c"
		{
			gboolean _tmp2_;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			i = 0;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp2_ = TRUE;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			while (TRUE) {
#line 2939 "tracker-result-store.c"
				gboolean _tmp3_;
				gint _tmp5_;
				GPtrArray* _tmp6_;
				gint _tmp7_;
				gint _tmp8_;
				GPtrArray* _tmp9_;
				gint _tmp10_;
				gconstpointer _tmp11_ = NULL;
				TrackerResultStoreCategoryNode* _tmp12_;
				TrackerResultStoreCategoryNode* _tmp13_;
				GtkTreeIter _tmp14_;
				void* _tmp15_;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp3_ = _tmp2_;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (!_tmp3_) {
#line 2956 "tracker-result-store.c"
					gint _tmp4_;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp4_ = i;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					i = _tmp4_ + 1;
#line 2962 "tracker-result-store.c"
				}
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp2_ = FALSE;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp5_ = i;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp6_ = self->priv->categories;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp7_ = g_ptr_array_get_length (_tmp6_);
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp8_ = _tmp7_;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (!(_tmp5_ < _tmp8_)) {
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					break;
#line 2978 "tracker-result-store.c"
				}
#line 450 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp9_ = self->priv->categories;
#line 450 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp10_ = i;
#line 450 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp11_ = g_ptr_array_index (_tmp9_, (guint) _tmp10_);
#line 450 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp12_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp11_);
#line 450 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tracker_result_store_category_node_unref0 (cat);
#line 450 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				cat = _tmp12_;
#line 452 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp13_ = cat;
#line 452 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp14_ = *iter;
#line 452 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp15_ = _tmp14_.user_data;
#line 452 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (_tmp13_ == _tmp15_) {
#line 3000 "tracker-result-store.c"
					GtkTreePath* _tmp16_;
					gint _tmp17_;
#line 453 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp16_ = path;
#line 453 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp17_ = i;
#line 453 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					gtk_tree_path_append_index (_tmp16_, _tmp17_);
#line 454 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					break;
#line 3011 "tracker-result-store.c"
				}
			}
		}
	}
#line 459 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp18_ = *iter;
#line 459 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp19_ = _tmp18_.user_data2;
#line 459 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp19_ != NULL) {
#line 3022 "tracker-result-store.c"
		GtkTreePath* _tmp20_;
		GtkTreeIter _tmp21_;
		void* _tmp22_;
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp20_ = path;
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp21_ = *iter;
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp22_ = _tmp21_.user_data3;
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		gtk_tree_path_append_index (_tmp20_, (gint) ((glong) _tmp22_));
#line 3034 "tracker-result-store.c"
	}
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = path;
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 3042 "tracker-result-store.c"
}


static void tracker_result_store_fetch_thumbnail_data_free (gpointer _data) {
	TrackerResultStoreFetchThumbnailData* _data_;
	_data_ = _data;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->self);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_slice_free (TrackerResultStoreFetchThumbnailData, _data_);
#line 3053 "tracker-result-store.c"
}


static void tracker_result_store_fetch_thumbnail (TrackerResultStore* self, GtkTreeIter* iter, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	TrackerResultStoreFetchThumbnailData* _data_;
	TrackerResultStore* _tmp0_;
	GtkTreeIter _tmp1_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = g_slice_new0 (TrackerResultStoreFetchThumbnailData);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_result_store_fetch_thumbnail);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_result_store_fetch_thumbnail_data_free);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->self = _tmp0_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = *iter;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->iter = _tmp1_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_fetch_thumbnail_co (_data_);
#line 3077 "tracker-result-store.c"
}


static void tracker_result_store_fetch_thumbnail_finish (TrackerResultStore* self, GAsyncResult* _res_) {
	TrackerResultStoreFetchThumbnailData* _data_;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 3085 "tracker-result-store.c"
}


static void tracker_result_store_fetch_thumbnail_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	TrackerResultStoreFetchThumbnailData* _data_;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_ = _user_data_;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_source_object_ = source_object;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_res_ = _res_;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_fetch_thumbnail_co (_data_);
#line 3099 "tracker-result-store.c"
}


static gboolean tracker_result_store_fetch_thumbnail_co (TrackerResultStoreFetchThumbnailData* _data_) {
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	switch (_data_->_state_) {
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case 0:
#line 3108 "tracker-result-store.c"
		goto _state_0;
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case 1:
#line 3112 "tracker-result-store.c"
		goto _state_1;
		default:
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_assert_not_reached ();
#line 3117 "tracker-result-store.c"
	}
	_state_0:
#line 471 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->pixbuf = NULL;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp0_ = _data_->iter;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp1_ = _data_->_tmp0_.user_data2;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_result_ = _data_->_tmp1_;
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp2_ = _data_->_result_;
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp3_ = (*_data_->_tmp2_).values;
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp3__length1 = (*_data_->_tmp2_).values_length1;
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp4_ = _data_->_tmp3_[1];
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp5_ = NULL;
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp5_ = g_file_new_for_uri (_data_->_tmp4_);
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->file);
#line 476 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->file = _data_->_tmp5_;
#line 3144 "tracker-result-store.c"
	{
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp6_ = _data_->file;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp7_ = _data_->self->priv->cancellable;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_state_ = 1;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_file_query_info_async (_data_->_tmp6_, "thumbnail::path,standard::icon", G_FILE_QUERY_INFO_NONE, G_PRIORITY_DEFAULT, _data_->_tmp7_, tracker_result_store_fetch_thumbnail_ready, _data_);
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 3156 "tracker-result-store.c"
		_state_1:
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp8_ = NULL;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp8_ = g_file_query_info_finish (_data_->_tmp6_, _data_->_res_, &_data_->_inner_error_);
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp9_ = _data_->_tmp8_;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_inner_error_ != NULL) {
#line 3166 "tracker-result-store.c"
			goto __catch9_g_error;
		}
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->info);
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->info = _data_->_tmp9_;
#line 3173 "tracker-result-store.c"
	}
	goto __finally9;
	__catch9_g_error:
	{
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->ie = _data_->_inner_error_;
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_inner_error_ = NULL;
#line 484 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp10_ = _data_->ie;
#line 484 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp11_ = _data_->_tmp10_->message;
#line 484 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_warning ("tracker-result-store.vala:484: Could not get thumbnail: %s", _data_->_tmp11_);
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_error_free0 (_data_->ie);
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->pixbuf);
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_free0 (_data_->thumb_path);
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->info);
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->file);
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_state_ == 0) {
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3202 "tracker-result-store.c"
		} else {
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3206 "tracker-result-store.c"
		}
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_object_unref (_data_->_async_result);
#line 485 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 3212 "tracker-result-store.c"
	}
	__finally9:
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_inner_error_ != NULL) {
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->pixbuf);
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_free0 (_data_->thumb_path);
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->info);
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->file);
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_clear_error (&_data_->_inner_error_);
#line 478 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 3231 "tracker-result-store.c"
	}
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp12_ = _data_->info;
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp13_ = NULL;
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp13_ = g_file_info_get_attribute_byte_string (_data_->_tmp12_, "thumbnail::path");
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp14_ = g_strdup (_data_->_tmp13_);
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_free0 (_data_->thumb_path);
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->thumb_path = _data_->_tmp14_;
#line 3245 "tracker-result-store.c"
	{
#line 491 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp15_ = _data_->thumb_path;
#line 491 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_data_->_tmp15_ != NULL) {
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp16_ = _data_->thumb_path;
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp17_ = _data_->self->priv->_icon_size;
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp18_ = _data_->self->priv->_icon_size;
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp19_ = gdk_pixbuf_new_from_file_at_size (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp18_, &_data_->_inner_error_);
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp20_ = _data_->_tmp19_;
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_ != NULL) {
#line 3263 "tracker-result-store.c"
				goto __catch10_g_error;
			}
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->pixbuf);
#line 492 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->pixbuf = _data_->_tmp20_;
#line 3270 "tracker-result-store.c"
		} else {
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp21_ = _data_->info;
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp22_ = NULL;
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp22_ = g_file_info_get_attribute_object (_data_->_tmp21_, "standard::icon");
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp23_ = _g_object_ref0 (G_ICON (_data_->_tmp22_));
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->icon);
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->icon = _data_->_tmp23_;
#line 499 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp24_ = _data_->icon;
#line 499 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_tmp24_ == NULL) {
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_gtk_icon_info_free0 (_data_->icon_info);
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->icon);
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->pixbuf);
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_free0 (_data_->thumb_path);
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->info);
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->file);
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (_data_->_state_ == 0) {
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3304 "tracker-result-store.c"
				} else {
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 3308 "tracker-result-store.c"
				}
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				g_object_unref (_data_->_async_result);
#line 500 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				return FALSE;
#line 3314 "tracker-result-store.c"
			}
#line 503 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp25_ = NULL;
#line 503 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp25_ = gdk_screen_get_default ();
#line 503 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp26_ = NULL;
#line 503 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp26_ = gtk_icon_theme_get_for_screen (_data_->_tmp25_);
#line 503 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp27_ = _g_object_ref0 (_data_->_tmp26_);
#line 503 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->theme = _data_->_tmp27_;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp28_ = _data_->theme;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp29_ = _data_->icon;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp30_ = _data_->self->priv->_icon_size;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp31_ = NULL;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp31_ = gtk_icon_theme_lookup_by_gicon (_data_->_tmp28_, _data_->_tmp29_, _data_->_tmp30_, 0);
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_gtk_icon_info_free0 (_data_->icon_info);
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->icon_info = _data_->_tmp31_;
#line 506 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp32_ = _data_->icon_info;
#line 506 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_tmp32_ == NULL) {
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->theme);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_gtk_icon_info_free0 (_data_->icon_info);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->icon);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->pixbuf);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_free0 (_data_->thumb_path);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->info);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->file);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (_data_->_state_ == 0) {
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3364 "tracker-result-store.c"
				} else {
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 3368 "tracker-result-store.c"
				}
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				g_object_unref (_data_->_async_result);
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				return FALSE;
#line 3374 "tracker-result-store.c"
			}
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp33_ = _data_->icon_info;
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp34_ = NULL;
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp34_ = gtk_icon_info_load_icon (_data_->_tmp33_, &_data_->_inner_error_);
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->_tmp35_ = _data_->_tmp34_;
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_data_->_inner_error_ != NULL) {
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->theme);
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_gtk_icon_info_free0 (_data_->icon_info);
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (_data_->icon);
#line 3392 "tracker-result-store.c"
				goto __catch10_g_error;
			}
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->pixbuf);
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_data_->pixbuf = _data_->_tmp35_;
#line 491 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->theme);
#line 491 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_gtk_icon_info_free0 (_data_->icon_info);
#line 491 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (_data_->icon);
#line 3405 "tracker-result-store.c"
		}
	}
	goto __finally10;
	__catch10_g_error:
	{
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->e = _data_->_inner_error_;
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_inner_error_ = NULL;
#line 513 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp36_ = _data_->e;
#line 513 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp37_ = _data_->_tmp36_->message;
#line 513 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_warning ("tracker-result-store.vala:513: Could not get icon pixbuf: %s\n", _data_->_tmp37_);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_error_free0 (_data_->e);
#line 3423 "tracker-result-store.c"
	}
	__finally10:
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_inner_error_ != NULL) {
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->pixbuf);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_free0 (_data_->thumb_path);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->info);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (_data_->file);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_clear_error (&_data_->_inner_error_);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return FALSE;
#line 3442 "tracker-result-store.c"
	}
#line 516 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_data_->_tmp38_ = _data_->pixbuf;
#line 516 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_tmp38_ != NULL) {
#line 519 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp39_ = _data_->_result_;
#line 519 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp40_ = _data_->pixbuf;
#line 519 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp41_ = _g_object_ref0 (_data_->_tmp40_);
#line 519 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 ((*_data_->_tmp39_).pixbuf);
#line 519 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		(*_data_->_tmp39_).pixbuf = _data_->_tmp41_;
#line 520 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp42_ = _data_->iter;
#line 520 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp43_ = NULL;
#line 520 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp43_ = gtk_tree_model_get_path ((GtkTreeModel*) _data_->self, &_data_->_tmp42_);
#line 520 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_gtk_tree_path_free0 (_data_->path);
#line 520 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->path = _data_->_tmp43_;
#line 521 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp44_ = _data_->path;
#line 521 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_data_->_tmp45_ = _data_->iter;
#line 521 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		gtk_tree_model_row_changed ((GtkTreeModel*) _data_->self, _data_->_tmp44_, &_data_->_tmp45_);
#line 516 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_gtk_tree_path_free0 (_data_->path);
#line 3476 "tracker-result-store.c"
	}
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->pixbuf);
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_free0 (_data_->thumb_path);
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->info);
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (_data_->file);
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_data_->_state_ == 0) {
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3490 "tracker-result-store.c"
	} else {
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3494 "tracker-result-store.c"
	}
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_unref (_data_->_async_result);
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return FALSE;
#line 3500 "tracker-result-store.c"
}


static void tracker_result_store_real_get_value (GtkTreeModel* base, GtkTreeIter* iter, gint column, GValue* value) {
	TrackerResultStore * self;
	GValue _vala_value = {0};
	TrackerResultStoreCategoryNode* cat = NULL;
	gint _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	GtkTreeIter _tmp3_;
	void* _tmp4_;
	TrackerResultStoreCategoryNode* _tmp5_;
	gint _tmp6_;
	GType _tmp7_ = 0UL;
	gint _tmp8_;
	gint _tmp9_;
	GtkTreeIter _tmp12_;
	void* _tmp13_;
#line 525 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 525 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (iter != NULL);
#line 528 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = column;
#line 528 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = self->priv->n_columns;
#line 528 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = self->priv->n_extra_columns;
#line 528 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0_ >= (_tmp1_ + _tmp2_)) {
#line 529 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 529 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (value) {
#line 529 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			*value = _vala_value;
#line 3538 "tracker-result-store.c"
		} else {
#line 529 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			G_IS_VALUE (&_vala_value) ? (g_value_unset (&_vala_value), NULL) : NULL;
#line 3542 "tracker-result-store.c"
		}
#line 529 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return;
#line 3546 "tracker-result-store.c"
	}
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = *iter;
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_ = _tmp3_.user_data;
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp5_ = _tracker_result_store_category_node_ref0 (TRACKER_RESULT_STORE_CATEGORY_NODE (_tmp4_));
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	cat = _tmp5_;
#line 533 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp6_ = column;
#line 533 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp7_ = gtk_tree_model_get_column_type ((GtkTreeModel*) self, _tmp6_);
#line 533 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_value_init (&_vala_value, _tmp7_);
#line 535 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp8_ = column;
#line 535 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp9_ = self->priv->n_columns;
#line 535 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp8_ == (_tmp9_ + 1)) {
#line 3570 "tracker-result-store.c"
		TrackerResultStoreCategoryNode* _tmp10_;
		TrackerQueryType _tmp11_;
#line 537 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp10_ = cat;
#line 537 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp11_ = _tmp10_->type;
#line 537 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_value_set_enum (&_vala_value, (gint) _tmp11_);
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (value) {
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			*value = _vala_value;
#line 3585 "tracker-result-store.c"
		} else {
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			G_IS_VALUE (&_vala_value) ? (g_value_unset (&_vala_value), NULL) : NULL;
#line 3589 "tracker-result-store.c"
		}
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return;
#line 3593 "tracker-result-store.c"
	}
#line 541 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp12_ = *iter;
#line 541 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp13_ = _tmp12_.user_data2;
#line 541 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp13_ == NULL) {
#line 3601 "tracker-result-store.c"
		gint _tmp14_;
		gint _tmp15_;
#line 542 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp14_ = column;
#line 542 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp15_ = self->priv->n_columns;
#line 542 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp14_ == _tmp15_) {
#line 3610 "tracker-result-store.c"
			GdkPixbuf* pixbuf = NULL;
			TrackerResultStoreCategoryNode* _tmp16_;
			GdkPixbuf* _tmp17_;
			GdkPixbuf* _tmp18_;
			GdkPixbuf* _tmp19_;
			GdkPixbuf* _tmp50_;
#line 545 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp16_ = cat;
#line 545 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp17_ = _tmp16_->pixbuf;
#line 545 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp18_ = _g_object_ref0 (_tmp17_);
#line 545 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (pixbuf);
#line 545 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			pixbuf = _tmp18_;
#line 547 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp19_ = pixbuf;
#line 547 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp19_ == NULL) {
#line 3631 "tracker-result-store.c"
				GdkScreen* _tmp20_ = NULL;
				GtkIconTheme* _tmp21_ = NULL;
				GtkIconTheme* _tmp22_;
				GtkIconTheme* theme;
				gint _tmp23_;
				gint size;
				TrackerResultStoreCategoryNode* _tmp24_;
				TrackerQueryType _tmp25_;
#line 548 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp20_ = gdk_screen_get_default ();
#line 548 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp21_ = gtk_icon_theme_get_for_screen (_tmp20_);
#line 548 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp22_ = _g_object_ref0 (_tmp21_);
#line 548 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				theme = _tmp22_;
#line 549 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp23_ = self->priv->_icon_size;
#line 549 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				size = _tmp23_;
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp24_ = cat;
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp25_ = _tmp24_->type;
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				switch (_tmp25_) {
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_APPLICATIONS:
#line 3660 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp26_;
						gint _tmp27_;
						GdkPixbuf* _tmp28_ = NULL;
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp26_ = theme;
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp27_ = size;
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp28_ = tracker_pixbuf_new_from_name (_tmp26_, "package-x-generic", _tmp27_);
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp28_;
#line 554 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3677 "tracker-result-store.c"
					}
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_MUSIC:
#line 3681 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp29_;
						gint _tmp30_;
						GdkPixbuf* _tmp31_ = NULL;
#line 556 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp29_ = theme;
#line 556 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp30_ = size;
#line 556 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp31_ = tracker_pixbuf_new_from_name (_tmp29_, "audio-x-generic", _tmp30_);
#line 556 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 556 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp31_;
#line 557 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3698 "tracker-result-store.c"
					}
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_IMAGES:
#line 3702 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp32_;
						gint _tmp33_;
						GdkPixbuf* _tmp34_ = NULL;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp32_ = theme;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp33_ = size;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp34_ = tracker_pixbuf_new_from_name (_tmp32_, "image-x-generic", _tmp33_);
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp34_;
#line 560 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3719 "tracker-result-store.c"
					}
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_VIDEOS:
#line 3723 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp35_;
						gint _tmp36_;
						GdkPixbuf* _tmp37_ = NULL;
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp35_ = theme;
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp36_ = size;
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp37_ = tracker_pixbuf_new_from_name (_tmp35_, "video-x-generic", _tmp36_);
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp37_;
#line 563 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3740 "tracker-result-store.c"
					}
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_DOCUMENTS:
#line 3744 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp38_;
						gint _tmp39_;
						GdkPixbuf* _tmp40_ = NULL;
#line 565 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp38_ = theme;
#line 565 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp39_ = size;
#line 565 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp40_ = tracker_pixbuf_new_from_name (_tmp38_, "x-office-presentation", _tmp39_);
#line 565 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 565 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp40_;
#line 566 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3761 "tracker-result-store.c"
					}
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_MAIL:
#line 3765 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp41_;
						gint _tmp42_;
						GdkPixbuf* _tmp43_ = NULL;
#line 568 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp41_ = theme;
#line 568 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp42_ = size;
#line 568 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp43_ = tracker_pixbuf_new_from_name (_tmp41_, "emblem-mail", _tmp42_);
#line 568 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 568 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp43_;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3782 "tracker-result-store.c"
					}
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_FOLDERS:
#line 3786 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp44_;
						gint _tmp45_;
						GdkPixbuf* _tmp46_ = NULL;
#line 571 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp44_ = theme;
#line 571 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp45_ = size;
#line 571 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp46_ = tracker_pixbuf_new_from_name (_tmp44_, "folder", _tmp45_);
#line 571 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 571 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp46_;
#line 572 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3803 "tracker-result-store.c"
					}
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					case TRACKER_QUERY_TYPE_BOOKMARKS:
#line 3807 "tracker-result-store.c"
					{
						GtkIconTheme* _tmp47_;
						gint _tmp48_;
						GdkPixbuf* _tmp49_ = NULL;
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp47_ = theme;
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp48_ = size;
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp49_ = tracker_pixbuf_new_from_name (_tmp47_, "web-browser", _tmp48_);
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_g_object_unref0 (pixbuf);
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						pixbuf = _tmp49_;
#line 575 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 3824 "tracker-result-store.c"
					}
					default:
#line 551 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					break;
#line 3829 "tracker-result-store.c"
				}
#line 547 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_g_object_unref0 (theme);
#line 3833 "tracker-result-store.c"
			}
#line 579 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp50_ = pixbuf;
#line 579 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			g_value_set_object (&_vala_value, (GObject*) _tmp50_);
#line 542 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_object_unref0 (pixbuf);
#line 3841 "tracker-result-store.c"
		}
	} else {
		TrackerResultStoreResultNode* _result_ = NULL;
		gint n_node = 0;
		GtkTreeIter _tmp51_;
		void* _tmp52_;
		GtkTreeIter _tmp53_;
		void* _tmp54_;
		TrackerResultStoreResultNode* _tmp55_;
		gchar** _tmp56_;
		gint _tmp56__length1;
		const gchar* _tmp57_;
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp51_ = *iter;
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp52_ = _tmp51_.user_data2;
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_result_ = _tmp52_;
#line 586 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp53_ = *iter;
#line 586 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp54_ = _tmp53_.user_data3;
#line 586 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		n_node = (gint) ((glong) _tmp54_);
#line 588 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp55_ = _result_;
#line 588 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp56_ = (*_tmp55_).values;
#line 588 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp56__length1 = (*_tmp55_).values_length1;
#line 588 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp57_ = _tmp56_[0];
#line 588 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp57_ != NULL) {
#line 3876 "tracker-result-store.c"
			gint _tmp58_;
			gint _tmp59_;
#line 589 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp58_ = column;
#line 589 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp59_ = self->priv->n_columns;
#line 589 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp58_ == _tmp59_) {
#line 3885 "tracker-result-store.c"
				TrackerResultStoreResultNode* _tmp60_;
				GdkPixbuf* _tmp61_;
#line 590 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp60_ = _result_;
#line 590 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp61_ = (*_tmp60_).pixbuf;
#line 590 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (_tmp61_ != NULL) {
#line 3894 "tracker-result-store.c"
					TrackerResultStoreResultNode* _tmp62_;
					GdkPixbuf* _tmp63_;
#line 591 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp62_ = _result_;
#line 591 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp63_ = (*_tmp62_).pixbuf;
#line 591 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					g_value_set_object (&_vala_value, (GObject*) _tmp63_);
#line 3903 "tracker-result-store.c"
				} else {
					TrackerResultStoreQueryData* _tmp64_;
					gint _tmp64__length1;
#line 592 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp64_ = self->priv->queries;
#line 592 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp64__length1 = self->priv->queries_length1;
#line 592 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (_tmp64__length1 == 1) {
#line 3913 "tracker-result-store.c"
						GtkTreeIter _tmp65_;
#line 593 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp65_ = *iter;
#line 593 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						tracker_result_store_fetch_thumbnail (self, &_tmp65_, NULL, NULL);
#line 3919 "tracker-result-store.c"
					}
				}
			} else {
				TrackerResultStoreResultNode* _tmp66_;
				gchar** _tmp67_;
				gint _tmp67__length1;
				gint _tmp68_;
				const gchar* _tmp69_;
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp66_ = _result_;
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp67_ = (*_tmp66_).values;
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp67__length1 = (*_tmp66_).values_length1;
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp68_ = column;
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp69_ = _tmp67_[_tmp68_];
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				g_value_set_string (&_vala_value, _tmp69_);
#line 3940 "tracker-result-store.c"
			}
		} else {
			gint _tmp70_;
			gint _tmp71_;
			TrackerResultStoreCategoryNode* _tmp72_;
			gint _tmp73_;
#line 599 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp70_ = n_node;
#line 599 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			n_node = _tmp70_ / 100;
#line 600 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp71_ = n_node;
#line 600 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			n_node = _tmp71_ * 100;
#line 602 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp72_ = cat;
#line 602 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp73_ = n_node;
#line 602 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			tracker_result_store_add_operation (self, _tmp72_, _tmp73_);
#line 3961 "tracker-result-store.c"
		}
	}
#line 525 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 525 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (value) {
#line 525 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*value = _vala_value;
#line 3970 "tracker-result-store.c"
	} else {
#line 525 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		G_IS_VALUE (&_vala_value) ? (g_value_unset (&_vala_value), NULL) : NULL;
#line 3974 "tracker-result-store.c"
	}
}


static gboolean tracker_result_store_real_iter_children (GtkTreeModel* base, GtkTreeIter* iter, GtkTreeIter* parent) {
	TrackerResultStore * self;
	GtkTreeIter _vala_iter = {0};
	gboolean result = FALSE;
	TrackerResultStoreCategoryNode* cat = NULL;
	GtkTreeIter* _tmp0_;
	GtkTreeIter* _tmp18_;
	void* _tmp19_;
	GtkTreeIter* _tmp20_;
	void* _tmp21_;
	TrackerResultStoreCategoryNode* _tmp22_;
	TrackerResultStoreCategoryNode* _tmp23_;
	TrackerResultStoreResultNode* _tmp24_;
	gint _tmp24__length1;
	gint _tmp25_;
	TrackerResultStoreCategoryNode* _tmp26_;
	TrackerResultStoreCategoryNode* _tmp27_;
	TrackerResultStoreResultNode* _tmp28_;
	gint _tmp28__length1;
	void* _tmp29_ = NULL;
#line 607 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 610 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = parent;
#line 610 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0_ == NULL) {
#line 4005 "tracker-result-store.c"
		GPtrArray* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		TrackerResultStoreQueryData* _tmp4_;
		gint _tmp4__length1;
#line 611 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1_ = self->priv->categories;
#line 611 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = g_ptr_array_get_length (_tmp1_);
#line 611 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp3_ = _tmp2_;
#line 611 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp3_ == 0) {
#line 612 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.stamp = 0;
#line 613 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = FALSE;
#line 613 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 613 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (iter) {
#line 613 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				*iter = _vala_iter;
#line 4029 "tracker-result-store.c"
			}
#line 613 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4033 "tracker-result-store.c"
		}
#line 616 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp4_ = self->priv->queries;
#line 616 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp4__length1 = self->priv->queries_length1;
#line 616 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp4__length1 > 1) {
#line 4041 "tracker-result-store.c"
			gint i = 0;
			gint _tmp5_ = 0;
			GPtrArray* _tmp6_;
			gint _tmp7_;
			gconstpointer _tmp8_ = NULL;
			TrackerResultStoreCategoryNode* _tmp9_;
			gint _tmp10_;
			TrackerResultStoreCategoryNode* _tmp11_;
#line 619 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp5_ = tracker_result_store_find_nth_category_index (self, NULL, 0);
#line 619 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			i = _tmp5_;
#line 620 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp6_ = self->priv->categories;
#line 620 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = i;
#line 620 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp8_ = g_ptr_array_index (_tmp6_, (guint) _tmp7_);
#line 620 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp9_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp8_);
#line 620 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 620 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			cat = _tmp9_;
#line 621 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp10_ = self->priv->timestamp;
#line 621 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.stamp = _tmp10_;
#line 622 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11_ = cat;
#line 622 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.user_data = _tmp11_;
#line 623 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = TRUE;
#line 623 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 623 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (iter) {
#line 623 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				*iter = _vala_iter;
#line 4082 "tracker-result-store.c"
			}
#line 623 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4086 "tracker-result-store.c"
		} else {
			gint _tmp12_;
			GPtrArray* _tmp13_;
			gconstpointer _tmp14_ = NULL;
			TrackerResultStoreCategoryNode* _tmp15_;
			TrackerResultStoreResultNode* _tmp16_;
			gint _tmp16__length1;
			void* _tmp17_ = NULL;
#line 625 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = self->priv->timestamp;
#line 625 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.stamp = _tmp12_;
#line 626 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp13_ = self->priv->categories;
#line 626 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp14_ = g_ptr_array_index (_tmp13_, (guint) 0);
#line 626 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.user_data = (TrackerResultStoreCategoryNode*) _tmp14_;
#line 627 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp15_ = cat;
#line 627 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp16_ = _tmp15_->results;
#line 627 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp16__length1 = _tmp15_->results_length1;
#line 627 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.user_data2 = &_tmp16_[0];
#line 628 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp17_ = GINT_TO_POINTER (0);
#line 628 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.user_data3 = _tmp17_;
#line 629 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = TRUE;
#line 629 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 629 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (iter) {
#line 629 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				*iter = _vala_iter;
#line 4125 "tracker-result-store.c"
			}
#line 629 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4129 "tracker-result-store.c"
		}
	}
#line 633 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp18_ = parent;
#line 633 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp19_ = (*_tmp18_).user_data2;
#line 633 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp19_ != NULL) {
#line 634 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.stamp = 0;
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = FALSE;
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (iter) {
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			*iter = _vala_iter;
#line 4148 "tracker-result-store.c"
		}
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4152 "tracker-result-store.c"
	}
#line 638 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp20_ = parent;
#line 638 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp21_ = (*_tmp20_).user_data;
#line 638 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp22_ = _tracker_result_store_category_node_ref0 (TRACKER_RESULT_STORE_CATEGORY_NODE (_tmp21_));
#line 638 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 638 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	cat = _tmp22_;
#line 640 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp23_ = cat;
#line 640 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp24_ = _tmp23_->results;
#line 640 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp24__length1 = _tmp23_->results_length1;
#line 640 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp24__length1 <= 0) {
#line 641 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.stamp = 0;
#line 642 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = FALSE;
#line 642 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 642 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (iter) {
#line 642 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			*iter = _vala_iter;
#line 4182 "tracker-result-store.c"
		}
#line 642 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4186 "tracker-result-store.c"
	}
#line 645 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp25_ = self->priv->timestamp;
#line 645 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_iter.stamp = _tmp25_;
#line 646 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp26_ = cat;
#line 646 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_iter.user_data = _tmp26_;
#line 647 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp27_ = cat;
#line 647 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp28_ = _tmp27_->results;
#line 647 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp28__length1 = _tmp27_->results_length1;
#line 647 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_iter.user_data2 = &_tmp28_[0];
#line 648 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp29_ = GINT_TO_POINTER (0);
#line 648 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_iter.user_data3 = _tmp29_;
#line 650 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = TRUE;
#line 650 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 650 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (iter) {
#line 650 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*iter = _vala_iter;
#line 4216 "tracker-result-store.c"
	}
#line 650 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 4220 "tracker-result-store.c"
}


static gboolean tracker_result_store_real_iter_has_child (GtkTreeModel* base, GtkTreeIter* iter) {
	TrackerResultStore * self;
	gboolean result = FALSE;
	GtkTreeIter _tmp0_;
	void* _tmp1_;
#line 653 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 653 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 654 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = *iter;
#line 654 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = _tmp0_.user_data2;
#line 654 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp1_ == NULL) {
#line 4239 "tracker-result-store.c"
		TrackerResultStoreCategoryNode* cat = NULL;
		GtkTreeIter _tmp2_;
		void* _tmp3_;
		TrackerResultStoreCategoryNode* _tmp4_;
		TrackerResultStoreCategoryNode* _tmp5_;
		gint _tmp6_;
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = *iter;
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp3_ = _tmp2_.user_data;
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp4_ = _tracker_result_store_category_node_ref0 (TRACKER_RESULT_STORE_CATEGORY_NODE (_tmp3_));
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		cat = _tmp4_;
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp5_ = cat;
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp6_ = _tmp5_->count;
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = _tmp6_ > 0;
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4266 "tracker-result-store.c"
	}
#line 661 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = FALSE;
#line 661 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 4272 "tracker-result-store.c"
}


static gint tracker_result_store_real_iter_n_children (GtkTreeModel* base, GtkTreeIter* iter) {
	TrackerResultStore * self;
	gint result = 0;
	GtkTreeIter* _tmp0_;
	GtkTreeIter* _tmp8_;
	void* _tmp9_;
	GtkTreeIter* _tmp10_;
	void* _tmp11_;
	TrackerResultStoreCategoryNode* _tmp12_;
	TrackerResultStoreCategoryNode* cat;
	TrackerResultStoreCategoryNode* _tmp13_;
	gint _tmp14_;
#line 664 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 665 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = iter;
#line 665 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0_ == NULL) {
#line 4294 "tracker-result-store.c"
		TrackerResultStoreQueryData* _tmp1_;
		gint _tmp1__length1;
#line 666 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1_ = self->priv->queries;
#line 666 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1__length1 = self->priv->queries_length1;
#line 666 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp1__length1 > 1) {
#line 4303 "tracker-result-store.c"
			GPtrArray* _tmp2_;
			gint _tmp3_;
			gint _tmp4_;
#line 667 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp2_ = self->priv->categories;
#line 667 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp3_ = g_ptr_array_get_length (_tmp2_);
#line 667 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp4_ = _tmp3_;
#line 667 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = _tmp4_ - 1;
#line 667 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4317 "tracker-result-store.c"
		} else {
			GPtrArray* _tmp5_;
			gconstpointer _tmp6_ = NULL;
			gint _tmp7_;
#line 669 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp5_ = self->priv->categories;
#line 669 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp6_ = g_ptr_array_index (_tmp5_, (guint) 0);
#line 669 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = ((TrackerResultStoreCategoryNode*) _tmp6_)->count;
#line 669 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = _tmp7_;
#line 669 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4332 "tracker-result-store.c"
		}
	}
#line 673 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp8_ = iter;
#line 673 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp9_ = (*_tmp8_).user_data2;
#line 673 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp9_ != NULL) {
#line 675 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = -1;
#line 675 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4345 "tracker-result-store.c"
	}
#line 678 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp10_ = iter;
#line 678 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp11_ = (*_tmp10_).user_data;
#line 678 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp12_ = _tracker_result_store_category_node_ref0 (TRACKER_RESULT_STORE_CATEGORY_NODE (_tmp11_));
#line 678 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	cat = _tmp12_;
#line 680 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp13_ = cat;
#line 680 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp14_ = _tmp13_->count;
#line 680 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = _tmp14_;
#line 680 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 680 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 4365 "tracker-result-store.c"
}


static gboolean tracker_result_store_real_iter_next (GtkTreeModel* base, GtkTreeIter* iter) {
	TrackerResultStore * self;
	gboolean result = FALSE;
	TrackerResultStoreCategoryNode* cat = NULL;
	gint i = 0;
	GtkTreeIter _tmp0_;
	void* _tmp1_;
	TrackerResultStoreCategoryNode* _tmp2_;
	GtkTreeIter _tmp3_;
	void* _tmp4_;
#line 683 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 683 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 687 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = *iter;
#line 687 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = _tmp0_.user_data;
#line 687 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = _tracker_result_store_category_node_ref0 (TRACKER_RESULT_STORE_CATEGORY_NODE (_tmp1_));
#line 687 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 687 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	cat = _tmp2_;
#line 689 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = *iter;
#line 689 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_ = _tmp3_.user_data2;
#line 689 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp4_ == NULL) {
#line 4399 "tracker-result-store.c"
		TrackerResultStoreCategoryNode* _tmp5_;
		gint _tmp6_ = 0;
		gboolean _tmp7_ = FALSE;
		gint _tmp8_;
		gboolean _tmp13_;
		gint _tmp14_;
		GPtrArray* _tmp15_;
		gint _tmp16_;
		gconstpointer _tmp17_ = NULL;
#line 690 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp5_ = cat;
#line 690 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp6_ = tracker_result_store_find_nth_category_index (self, _tmp5_, 1);
#line 690 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = _tmp6_;
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp8_ = i;
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp8_ < 0) {
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = TRUE;
#line 4421 "tracker-result-store.c"
		} else {
			gint _tmp9_;
			GPtrArray* _tmp10_;
			gint _tmp11_;
			gint _tmp12_;
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp9_ = i;
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp10_ = self->priv->categories;
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11_ = g_ptr_array_get_length (_tmp10_);
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = _tmp11_;
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = _tmp9_ >= _tmp12_;
#line 4437 "tracker-result-store.c"
		}
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp13_ = _tmp7_;
#line 692 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp13_) {
#line 693 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			(*iter).stamp = 0;
#line 694 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = FALSE;
#line 694 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 694 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4451 "tracker-result-store.c"
		}
#line 697 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp14_ = self->priv->timestamp;
#line 697 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		(*iter).stamp = _tmp14_;
#line 698 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp15_ = self->priv->categories;
#line 698 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp16_ = i;
#line 698 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp17_ = g_ptr_array_index (_tmp15_, (guint) _tmp16_);
#line 698 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		(*iter).user_data = (TrackerResultStoreCategoryNode*) _tmp17_;
#line 700 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = TRUE;
#line 700 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 700 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4471 "tracker-result-store.c"
	} else {
		GtkTreeIter _tmp18_;
		void* _tmp19_;
		gint _tmp20_;
		gint _tmp21_;
		TrackerResultStoreCategoryNode* _tmp22_;
		gint _tmp23_;
		TrackerResultStoreCategoryNode* _tmp24_;
		TrackerResultStoreResultNode* _tmp25_;
		gint _tmp25__length1;
		gint _tmp26_;
		gint _tmp27_;
		void* _tmp28_ = NULL;
#line 703 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp18_ = *iter;
#line 703 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp19_ = _tmp18_.user_data3;
#line 703 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = (gint) ((glong) _tmp19_);
#line 704 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp20_ = i;
#line 704 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = _tmp20_ + 1;
#line 706 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp21_ = i;
#line 706 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp22_ = cat;
#line 706 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp23_ = _tmp22_->count;
#line 706 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp21_ >= _tmp23_) {
#line 707 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			(*iter).stamp = 0;
#line 708 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = FALSE;
#line 708 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 708 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4511 "tracker-result-store.c"
		}
#line 711 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp24_ = cat;
#line 711 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp25_ = _tmp24_->results;
#line 711 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp25__length1 = _tmp24_->results_length1;
#line 711 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp26_ = i;
#line 711 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		(*iter).user_data2 = &_tmp25_[_tmp26_];
#line 712 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp27_ = i;
#line 712 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp28_ = GINT_TO_POINTER (_tmp27_);
#line 712 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		(*iter).user_data3 = _tmp28_;
#line 714 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = TRUE;
#line 714 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 714 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4535 "tracker-result-store.c"
	}
#line 683 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 4539 "tracker-result-store.c"
}


static gboolean tracker_result_store_real_iter_nth_child (GtkTreeModel* base, GtkTreeIter* iter, GtkTreeIter* parent, gint n) {
	TrackerResultStore * self;
	GtkTreeIter _vala_iter = {0};
	gboolean result = FALSE;
	TrackerResultStoreCategoryNode* cat = NULL;
	GtkTreeIter* _tmp0_;
#line 718 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 721 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = parent;
#line 721 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0_ != NULL) {
#line 4555 "tracker-result-store.c"
		GtkTreeIter* _tmp1_;
		void* _tmp2_;
		TrackerResultStoreCategoryNode* _tmp3_;
		gint _tmp4_;
		TrackerResultStoreCategoryNode* _tmp5_;
		gint _tmp6_;
		gint _tmp7_;
		TrackerResultStoreCategoryNode* _tmp8_;
		TrackerResultStoreCategoryNode* _tmp9_;
		TrackerResultStoreResultNode* _tmp10_;
		gint _tmp10__length1;
		gint _tmp11_;
		gint _tmp12_;
		void* _tmp13_ = NULL;
#line 722 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1_ = parent;
#line 722 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = (*_tmp1_).user_data;
#line 722 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp3_ = _tracker_result_store_category_node_ref0 (TRACKER_RESULT_STORE_CATEGORY_NODE (_tmp2_));
#line 722 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 722 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		cat = _tmp3_;
#line 724 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp4_ = n;
#line 724 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp5_ = cat;
#line 724 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp6_ = _tmp5_->count;
#line 724 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp4_ >= _tmp6_) {
#line 725 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.stamp = 0;
#line 726 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			result = FALSE;
#line 726 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 726 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (iter) {
#line 726 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				*iter = _vala_iter;
#line 4598 "tracker-result-store.c"
			}
#line 726 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return result;
#line 4602 "tracker-result-store.c"
		}
#line 729 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp7_ = self->priv->timestamp;
#line 729 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.stamp = _tmp7_;
#line 730 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp8_ = cat;
#line 730 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data = _tmp8_;
#line 731 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp9_ = cat;
#line 731 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp10_ = _tmp9_->results;
#line 731 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp10__length1 = _tmp9_->results_length1;
#line 731 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp11_ = n;
#line 731 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data2 = &_tmp10_[_tmp11_];
#line 732 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp12_ = n;
#line 732 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp13_ = GINT_TO_POINTER (_tmp12_);
#line 732 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data3 = _tmp13_;
#line 733 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = TRUE;
#line 733 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 733 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (iter) {
#line 733 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			*iter = _vala_iter;
#line 4636 "tracker-result-store.c"
		}
#line 733 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4640 "tracker-result-store.c"
	} else {
		gint index = 0;
		TrackerResultStoreQueryData* _tmp14_;
		gint _tmp14__length1;
		GPtrArray* _tmp24_;
		gint _tmp25_;
		gconstpointer _tmp26_ = NULL;
		TrackerResultStoreCategoryNode* _tmp27_;
		gint _tmp28_;
		TrackerResultStoreCategoryNode* _tmp29_;
		TrackerResultStoreQueryData* _tmp30_;
		gint _tmp30__length1;
#line 737 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp14_ = self->priv->queries;
#line 737 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp14__length1 = self->priv->queries_length1;
#line 737 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp14__length1 > 1) {
#line 4659 "tracker-result-store.c"
			gint _tmp15_;
			gint _tmp16_ = 0;
			gboolean _tmp17_ = FALSE;
			gint _tmp18_;
			gboolean _tmp23_;
#line 738 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp15_ = n;
#line 738 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp16_ = tracker_result_store_find_nth_category_index (self, NULL, _tmp15_);
#line 738 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			index = _tmp16_;
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp18_ = index;
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp18_ < 0) {
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp17_ = TRUE;
#line 4677 "tracker-result-store.c"
			} else {
				gint _tmp19_;
				GPtrArray* _tmp20_;
				gint _tmp21_;
				gint _tmp22_;
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp19_ = index;
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp20_ = self->priv->categories;
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp21_ = g_ptr_array_get_length (_tmp20_);
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp22_ = _tmp21_;
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp17_ = _tmp19_ >= _tmp22_;
#line 4693 "tracker-result-store.c"
			}
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp23_ = _tmp17_;
#line 740 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp23_) {
#line 741 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_vala_iter.stamp = 0;
#line 742 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				result = FALSE;
#line 742 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tracker_result_store_category_node_unref0 (cat);
#line 742 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (iter) {
#line 742 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					*iter = _vala_iter;
#line 4709 "tracker-result-store.c"
				}
#line 742 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				return result;
#line 4713 "tracker-result-store.c"
			}
		} else {
#line 745 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			index = 0;
#line 4718 "tracker-result-store.c"
		}
#line 748 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp24_ = self->priv->categories;
#line 748 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp25_ = index;
#line 748 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp26_ = g_ptr_array_index (_tmp24_, (guint) _tmp25_);
#line 748 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp27_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp26_);
#line 748 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 748 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		cat = _tmp27_;
#line 749 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp28_ = self->priv->timestamp;
#line 749 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.stamp = _tmp28_;
#line 750 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp29_ = cat;
#line 750 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data = _tmp29_;
#line 752 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp30_ = self->priv->queries;
#line 752 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp30__length1 = self->priv->queries_length1;
#line 752 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (_tmp30__length1 > 1) {
#line 4746 "tracker-result-store.c"
			TrackerResultStoreCategoryNode* _tmp31_;
			TrackerResultStoreResultNode* _tmp32_;
			gint _tmp32__length1;
			void* _tmp33_ = NULL;
#line 753 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp31_ = cat;
#line 753 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp32_ = _tmp31_->results;
#line 753 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp32__length1 = _tmp31_->results_length1;
#line 753 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.user_data2 = &_tmp32_[0];
#line 754 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp33_ = GINT_TO_POINTER (0);
#line 754 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_vala_iter.user_data3 = _tmp33_;
#line 4763 "tracker-result-store.c"
		}
#line 757 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = TRUE;
#line 757 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tracker_result_store_category_node_unref0 (cat);
#line 757 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (iter) {
#line 757 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			*iter = _vala_iter;
#line 4773 "tracker-result-store.c"
		}
#line 757 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4777 "tracker-result-store.c"
	}
#line 718 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (cat);
#line 718 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (iter) {
#line 718 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*iter = _vala_iter;
#line 4785 "tracker-result-store.c"
	}
}


static gboolean tracker_result_store_real_iter_parent (GtkTreeModel* base, GtkTreeIter* iter, GtkTreeIter* child) {
	TrackerResultStore * self;
	GtkTreeIter _vala_iter = {0};
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	TrackerResultStoreQueryData* _tmp1_;
	gint _tmp1__length1;
	gboolean _tmp4_;
#line 761 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 761 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (child != NULL, FALSE);
#line 762 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = self->priv->queries;
#line 762 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1__length1 = self->priv->queries_length1;
#line 762 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp1__length1 > 1) {
#line 4808 "tracker-result-store.c"
		GtkTreeIter _tmp2_;
		void* _tmp3_;
#line 763 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = *child;
#line 763 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp3_ = _tmp2_.user_data2;
#line 763 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = _tmp3_ != NULL;
#line 4817 "tracker-result-store.c"
	} else {
#line 762 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = FALSE;
#line 4821 "tracker-result-store.c"
	}
#line 762 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_ = _tmp0_;
#line 762 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp4_) {
#line 4827 "tracker-result-store.c"
		gint _tmp5_;
		GtkTreeIter _tmp6_;
		void* _tmp7_;
#line 765 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp5_ = self->priv->timestamp;
#line 765 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.stamp = _tmp5_;
#line 766 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp6_ = *child;
#line 766 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp7_ = _tmp6_.user_data;
#line 766 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data = _tmp7_;
#line 767 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data2 = NULL;
#line 768 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_vala_iter.user_data3 = NULL;
#line 769 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result = TRUE;
#line 769 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (iter) {
#line 769 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			*iter = _vala_iter;
#line 4851 "tracker-result-store.c"
		}
#line 769 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return result;
#line 4855 "tracker-result-store.c"
	}
#line 772 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_iter.stamp = 0;
#line 773 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = FALSE;
#line 773 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (iter) {
#line 773 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*iter = _vala_iter;
#line 4865 "tracker-result-store.c"
	}
#line 773 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 4869 "tracker-result-store.c"
}


static void tracker_result_store_real_ref_node (GtkTreeModel* base, GtkTreeIter* iter) {
	TrackerResultStore * self;
#line 776 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 776 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (iter != NULL);
#line 4879 "tracker-result-store.c"
}


static void tracker_result_store_real_unref_node (GtkTreeModel* base, GtkTreeIter* iter) {
	TrackerResultStore * self;
#line 779 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) base;
#line 779 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (iter != NULL);
#line 4889 "tracker-result-store.c"
}


static void tracker_result_store_theme_changed (TrackerResultStore* self, GtkIconTheme* theme) {
	GtkTreeIter iter = {0};
	gint i = 0;
	gint j = 0;
	GtkTreeIter _tmp0_ = {0};
	gint _tmp1_;
#line 782 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 782 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (theme != NULL);
#line 786 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	memset (&_tmp0_, 0, sizeof (GtkTreeIter));
#line 786 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iter = _tmp0_;
#line 787 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = self->priv->timestamp;
#line 787 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iter.stamp = _tmp1_;
#line 4911 "tracker-result-store.c"
	{
		gboolean _tmp2_;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = 0;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp2_ = TRUE;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		while (TRUE) {
#line 4920 "tracker-result-store.c"
			gboolean _tmp3_;
			gint _tmp5_;
			GPtrArray* _tmp6_;
			gint _tmp7_;
			gint _tmp8_;
			GPtrArray* _tmp9_;
			gint _tmp10_;
			gconstpointer _tmp11_ = NULL;
			TrackerResultStoreCategoryNode* _tmp12_;
			TrackerResultStoreCategoryNode* cat;
			TrackerResultStoreCategoryNode* _tmp13_;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp3_ = _tmp2_;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!_tmp3_) {
#line 4936 "tracker-result-store.c"
				gint _tmp4_;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp4_ = i;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				i = _tmp4_ + 1;
#line 4942 "tracker-result-store.c"
			}
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp2_ = FALSE;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp5_ = i;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp6_ = self->priv->categories;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = g_ptr_array_get_length (_tmp6_);
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp8_ = _tmp7_;
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!(_tmp5_ < _tmp8_)) {
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				break;
#line 4958 "tracker-result-store.c"
			}
#line 790 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp9_ = self->priv->categories;
#line 790 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp10_ = i;
#line 790 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11_ = g_ptr_array_index (_tmp9_, (guint) _tmp10_);
#line 790 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = _tracker_result_store_category_node_ref0 ((TrackerResultStoreCategoryNode*) _tmp11_);
#line 790 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			cat = _tmp12_;
#line 792 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp13_ = cat;
#line 792 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			iter.user_data = _tmp13_;
#line 4974 "tracker-result-store.c"
			{
				TrackerResultStoreCategoryNode* _tmp14_;
				gint _tmp15_;
				gboolean _tmp16_;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp14_ = cat;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp15_ = _tmp14_->count;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				j = _tmp15_ - 1;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp16_ = TRUE;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				while (TRUE) {
#line 4989 "tracker-result-store.c"
					gboolean _tmp17_;
					gint _tmp19_;
					TrackerResultStoreCategoryNode* _tmp20_;
					TrackerResultStoreResultNode* _tmp21_;
					gint _tmp21__length1;
					gint _tmp22_;
					TrackerResultStoreResultNode _tmp23_;
					TrackerResultStoreResultNode _tmp24_ = {0};
					TrackerResultStoreResultNode _result_;
					TrackerResultStoreCategoryNode* _tmp25_;
					TrackerResultStoreResultNode* _tmp26_;
					gint _tmp26__length1;
					gint _tmp27_;
					gint _tmp28_;
					void* _tmp29_ = NULL;
					TrackerResultStoreResultNode _tmp30_;
					GdkPixbuf* _tmp31_;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp17_ = _tmp16_;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (!_tmp17_) {
#line 5011 "tracker-result-store.c"
						gint _tmp18_;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp18_ = j;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						j = _tmp18_ - 1;
#line 5017 "tracker-result-store.c"
					}
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp16_ = FALSE;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp19_ = j;
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (!(_tmp19_ >= 0)) {
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						break;
#line 5027 "tracker-result-store.c"
					}
#line 795 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp20_ = cat;
#line 795 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp21_ = _tmp20_->results;
#line 795 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp21__length1 = _tmp20_->results_length1;
#line 795 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp22_ = j;
#line 795 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp23_ = _tmp21_[_tmp22_];
#line 795 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					tracker_result_store_result_node_copy (&_tmp23_, &_tmp24_);
#line 795 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_result_ = _tmp24_;
#line 797 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp25_ = cat;
#line 797 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp26_ = _tmp25_->results;
#line 797 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp26__length1 = _tmp25_->results_length1;
#line 797 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp27_ = j;
#line 797 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					iter.user_data2 = &_tmp26_[_tmp27_];
#line 798 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp28_ = j;
#line 798 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp29_ = GINT_TO_POINTER (_tmp28_);
#line 798 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					iter.user_data3 = _tmp29_;
#line 800 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp30_ = _result_;
#line 800 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					_tmp31_ = _tmp30_.pixbuf;
#line 800 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					if (_tmp31_ != NULL) {
#line 5065 "tracker-result-store.c"
						GtkTreeIter _tmp32_;
#line 801 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						_tmp32_ = iter;
#line 801 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
						tracker_result_store_fetch_thumbnail (self, &_tmp32_, NULL, NULL);
#line 5071 "tracker-result-store.c"
					}
#line 794 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					tracker_result_store_result_node_destroy (&_result_);
#line 5075 "tracker-result-store.c"
				}
			}
#line 789 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tracker_result_store_category_node_unref0 (cat);
#line 5080 "tracker-result-store.c"
		}
	}
}


static void _tracker_result_store_category_node_unref0_ (gpointer var) {
#line 808 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(var == NULL) ? NULL : (var = (tracker_result_store_category_node_unref (var), NULL));
#line 5089 "tracker-result-store.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 809 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 5096 "tracker-result-store.c"
}


static void _tracker_result_store_theme_changed_gtk_icon_theme_changed (GtkIconTheme* _sender, gpointer self) {
#line 817 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_theme_changed (self, _sender);
#line 5103 "tracker-result-store.c"
}


TrackerResultStore* tracker_result_store_construct (GType object_type, gint _n_columns) {
	TrackerResultStore * self = NULL;
	GPtrArray* _tmp0_;
	GPtrArray* _tmp1_;
	GPtrArray* _tmp2_;
	gint _tmp3_;
	GdkScreen* _tmp4_ = NULL;
	GtkIconTheme* _tmp5_ = NULL;
	GtkIconTheme* _tmp6_;
	GtkIconTheme* theme;
#line 807 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStore*) g_object_new (object_type, NULL);
#line 808 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = g_ptr_array_new_with_free_func (_tracker_result_store_category_node_unref0_);
#line 808 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->categories);
#line 808 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->categories = _tmp0_;
#line 809 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = g_ptr_array_new_with_free_func (_g_object_unref0_);
#line 809 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->running_operations);
#line 809 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->running_operations = _tmp1_;
#line 810 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = g_ptr_array_new_with_free_func (_g_object_unref0_);
#line 810 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->delayed_operations);
#line 810 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->delayed_operations = _tmp2_;
#line 812 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = _n_columns;
#line 812 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->n_columns = _tmp3_;
#line 813 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->timestamp = 1;
#line 814 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_set_icon_size (self, 24);
#line 816 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_ = gdk_screen_get_default ();
#line 816 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp5_ = gtk_icon_theme_get_for_screen (_tmp4_);
#line 816 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 816 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	theme = _tmp6_;
#line 817 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_signal_connect_object (theme, "changed", (GCallback) _tracker_result_store_theme_changed_gtk_icon_theme_changed, self, 0);
#line 807 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (theme);
#line 807 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return self;
#line 5159 "tracker-result-store.c"
}


TrackerResultStore* tracker_result_store_new (gint _n_columns) {
#line 807 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return tracker_result_store_construct (TRACKER_TYPE_RESULT_STORE, _n_columns);
#line 5166 "tracker-result-store.c"
}


static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value) {
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if ((*length) == (*size)) {
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 5177 "tracker-result-store.c"
	}
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*array)[(*length)++] = value;
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*array)[*length] = NULL;
#line 5183 "tracker-result-store.c"
}


static gchar** _vala_array_dup3 (gchar** self, int length) {
	gchar** result;
	int i;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = g_new0 (gchar*, length + 1);
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	for (i = 0; i < length; i++) {
#line 5194 "tracker-result-store.c"
		gchar* _tmp0_;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = g_strdup (self[i]);
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result[i] = _tmp0_;
#line 5200 "tracker-result-store.c"
	}
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 5204 "tracker-result-store.c"
}


static void _vala_array_add3 (TrackerResultStoreQueryData** array, int* length, int* size, const TrackerResultStoreQueryData* value) {
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if ((*length) == (*size)) {
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*array = g_renew (TrackerResultStoreQueryData, *array, *size);
#line 5215 "tracker-result-store.c"
	}
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*array)[(*length)++] = *value;
#line 5219 "tracker-result-store.c"
}


void tracker_result_store_add_query (TrackerResultStore* self, TrackerQueryType type, TrackerQueryMatch match, ...) {
	va_list l = {0};
	gchar* str;
	gchar** args;
	gint args_length1;
	gint _args_size_;
	TrackerResultStoreQueryData query_data = {0};
	gchar** _tmp9_;
	gint _tmp9__length1;
	gint _tmp10_;
	TrackerResultStoreQueryData _tmp11_ = {0};
	TrackerQueryType _tmp12_;
	TrackerQueryMatch _tmp13_;
	gchar** _tmp14_;
	gint _tmp14__length1;
	gchar** _tmp15_;
	gint _tmp15__length1;
	TrackerResultStoreQueryData* _tmp16_;
	gint _tmp16__length1;
	TrackerResultStoreQueryData _tmp17_;
	TrackerResultStoreQueryData _tmp18_ = {0};
#line 820 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 821 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	va_start (l, match);
#line 822 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	str = NULL;
#line 823 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	args = NULL;
#line 823 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	args_length1 = 0;
#line 823 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_args_size_ = args_length1;
#line 5256 "tracker-result-store.c"
	{
		gboolean _tmp0_;
#line 826 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = TRUE;
#line 826 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		while (TRUE) {
#line 5263 "tracker-result-store.c"
			gboolean _tmp1_;
			const gchar* _tmp3_ = NULL;
			gchar* _tmp4_;
			const gchar* _tmp5_;
#line 826 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp1_ = _tmp0_;
#line 826 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!_tmp1_) {
#line 5272 "tracker-result-store.c"
				const gchar* _tmp2_;
#line 832 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp2_ = str;
#line 832 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				if (!(_tmp2_ != NULL)) {
#line 832 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
					break;
#line 5280 "tracker-result-store.c"
				}
			}
#line 826 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp0_ = FALSE;
#line 827 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp3_ = va_arg (l, gchar*);
#line 827 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp4_ = g_strdup (_tmp3_);
#line 827 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_g_free0 (str);
#line 827 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			str = _tmp4_;
#line 829 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp5_ = str;
#line 829 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (_tmp5_ != NULL) {
#line 5297 "tracker-result-store.c"
				gchar** _tmp6_;
				gint _tmp6__length1;
				const gchar* _tmp7_;
				gchar* _tmp8_;
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp6_ = args;
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp6__length1 = args_length1;
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp7_ = str;
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp8_ = g_strdup (_tmp7_);
#line 830 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_vala_array_add2 (&args, &args_length1, &_args_size_, _tmp8_);
#line 5312 "tracker-result-store.c"
			}
		}
	}
#line 834 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp9_ = args;
#line 834 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp9__length1 = args_length1;
#line 834 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp10_ = self->priv->n_columns;
#line 834 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp9__length1 != _tmp10_) {
#line 835 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_warning ("tracker-result-store.vala:835: Arguments and number of columns doesn't" \
" match");
#line 836 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_query_data_destroy (&query_data);
#line 836 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 836 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_free0 (str);
#line 836 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		va_end (l);
#line 836 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return;
#line 5336 "tracker-result-store.c"
	}
#line 839 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	memset (&_tmp11_, 0, sizeof (TrackerResultStoreQueryData));
#line 839 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_query_data_destroy (&query_data);
#line 839 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	query_data = _tmp11_;
#line 840 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp12_ = type;
#line 840 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	query_data.type = _tmp12_;
#line 841 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp13_ = match;
#line 841 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	query_data.match = _tmp13_;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp14_ = args;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp14__length1 = args_length1;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp15_ = (_tmp14_ != NULL) ? _vala_array_dup3 (_tmp14_, _tmp14__length1) : ((gpointer) _tmp14_);
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp15__length1 = _tmp14__length1;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	query_data.args = (_vala_array_free (query_data.args, query_data.args_length1, (GDestroyNotify) g_free), NULL);
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	query_data.args = _tmp15_;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	query_data.args_length1 = _tmp15__length1;
#line 842 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	query_data._args_size_ = query_data.args_length1;
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp16_ = self->priv->queries;
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp16__length1 = self->priv->queries_length1;
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp17_ = query_data;
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_query_data_copy (&_tmp17_, &_tmp18_);
#line 844 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_vala_array_add3 (&self->priv->queries, &self->priv->queries_length1, &self->priv->_queries_size_, &_tmp18_);
#line 820 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_query_data_destroy (&query_data);
#line 820 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 820 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_free0 (str);
#line 820 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	va_end (l);
#line 5386 "tracker-result-store.c"
}


gboolean tracker_result_store_has_results (TrackerResultStore* self) {
	gboolean result = FALSE;
	gint _tmp0_ = 0;
#line 847 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 848 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = tracker_result_store_filled_categories_count (self);
#line 848 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = _tmp0_ > 0;
#line 848 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 5401 "tracker-result-store.c"
}


void tracker_result_store_cancel_search (TrackerResultStore* self) {
	GCancellable* _tmp0_;
#line 851 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 852 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = self->priv->cancellable;
#line 852 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (_tmp0_ != NULL) {
#line 5413 "tracker-result-store.c"
		GCancellable* _tmp1_;
#line 853 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp1_ = self->priv->cancellable;
#line 853 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_cancellable_cancel (_tmp1_);
#line 854 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_g_object_unref0 (self->priv->cancellable);
#line 854 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		self->priv->cancellable = NULL;
#line 5423 "tracker-result-store.c"
	}
#line 857 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_clear_results (self);
#line 5427 "tracker-result-store.c"
}


gint tracker_result_store_get_icon_size (TrackerResultStore* self) {
	gint result;
	gint _tmp0_;
#line 60 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 60 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = self->priv->_icon_size;
#line 60 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = _tmp0_;
#line 60 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 5442 "tracker-result-store.c"
}


void tracker_result_store_set_icon_size (TrackerResultStore* self, gint value) {
	gint _tmp0_;
#line 61 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 61 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = value;
#line 61 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->_icon_size = _tmp0_;
#line 61 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_notify ((GObject *) self, "icon-size");
#line 5456 "tracker-result-store.c"
}


const gchar* tracker_result_store_get_search_term (TrackerResultStore* self) {
	const gchar* result;
	const gchar* _tmp0_;
#line 308 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = self->priv->_search_term;
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = _tmp0_;
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 5471 "tracker-result-store.c"
}


void tracker_result_store_set_search_term (TrackerResultStore* self, const gchar* value) {
	gint i = 0;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	GCancellable* _tmp2_;
	GPtrArray* _tmp3_;
	GPtrArray* _tmp4_;
	GPtrArray* _tmp5_;
	gint _tmp6_;
#line 311 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 314 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_cancel_search (self);
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = value;
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_free0 (self->priv->_search_term);
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->_search_term = _tmp1_;
#line 317 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = g_cancellable_new ();
#line 317 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (self->priv->cancellable);
#line 317 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->cancellable = _tmp2_;
#line 319 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_set_active (self, TRUE);
#line 321 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = g_ptr_array_new_with_free_func (_tracker_result_store_category_node_unref0_);
#line 321 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->categories);
#line 321 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->categories = _tmp3_;
#line 322 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp4_ = g_ptr_array_new_with_free_func (_g_object_unref0_);
#line 322 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->running_operations);
#line 322 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->running_operations = _tmp4_;
#line 323 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp5_ = g_ptr_array_new_with_free_func (_g_object_unref0_);
#line 323 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->delayed_operations);
#line 323 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->delayed_operations = _tmp5_;
#line 324 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp6_ = self->priv->timestamp;
#line 324 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->timestamp = _tmp6_ + 1;
#line 5526 "tracker-result-store.c"
	{
		gboolean _tmp7_;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		i = 0;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp7_ = TRUE;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		while (TRUE) {
#line 5535 "tracker-result-store.c"
			gboolean _tmp8_;
			gint _tmp10_;
			TrackerResultStoreQueryData* _tmp11_;
			gint _tmp11__length1;
			TrackerResultStoreQueryData* _tmp12_;
			gint _tmp12__length1;
			gint _tmp13_;
			GCancellable* _tmp14_;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp8_ = _tmp7_;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!_tmp8_) {
#line 5548 "tracker-result-store.c"
				gint _tmp9_;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				_tmp9_ = i;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				i = _tmp9_ + 1;
#line 5554 "tracker-result-store.c"
			}
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp7_ = FALSE;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp10_ = i;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11_ = self->priv->queries;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp11__length1 = self->priv->queries_length1;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			if (!(_tmp10_ < _tmp11__length1)) {
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
				break;
#line 5568 "tracker-result-store.c"
			}
#line 327 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12_ = self->priv->queries;
#line 327 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp12__length1 = self->priv->queries_length1;
#line 327 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp13_ = i;
#line 327 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			_tmp14_ = self->priv->cancellable;
#line 327 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			tracker_result_store_load_category (self, &_tmp12_[_tmp13_], _tmp14_, NULL, NULL);
#line 5580 "tracker-result-store.c"
		}
	}
#line 311 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_notify ((GObject *) self, "search-term");
#line 5585 "tracker-result-store.c"
}


gboolean tracker_result_store_get_active (TrackerResultStore* self) {
	gboolean result;
	gboolean _tmp0_;
#line 333 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 333 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = self->priv->_active;
#line 333 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = _tmp0_;
#line 333 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 5600 "tracker-result-store.c"
}


static void tracker_result_store_set_active (TrackerResultStore* self, gboolean value) {
	gboolean _tmp0_;
#line 334 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (self != NULL);
#line 334 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = value;
#line 334 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->_active = _tmp0_;
#line 334 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_notify ((GObject *) self, "active");
#line 5614 "tracker-result-store.c"
}


static void _vala_TrackerResultStoreResultNode_array_free (TrackerResultStoreResultNode* array, gint array_length) {
#line 33 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (array != NULL) {
#line 5621 "tracker-result-store.c"
		int i;
#line 33 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 33 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			tracker_result_store_result_node_destroy (&array[i]);
#line 5627 "tracker-result-store.c"
		}
	}
#line 33 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_free (array);
#line 5632 "tracker-result-store.c"
}


static TrackerResultStoreCategoryNode* tracker_result_store_category_node_construct (GType object_type) {
	TrackerResultStoreCategoryNode* self = NULL;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStoreCategoryNode*) g_type_create_instance (object_type);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return self;
#line 5642 "tracker-result-store.c"
}


static TrackerResultStoreCategoryNode* tracker_result_store_category_node_new (void) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return tracker_result_store_category_node_construct (TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE);
#line 5649 "tracker-result-store.c"
}


static void tracker_result_store_value_category_node_init (GValue* value) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	value->data[0].v_pointer = NULL;
#line 5656 "tracker-result-store.c"
}


static void tracker_result_store_value_category_node_free_value (GValue* value) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (value->data[0].v_pointer) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_category_node_unref (value->data[0].v_pointer);
#line 5665 "tracker-result-store.c"
	}
}


static void tracker_result_store_value_category_node_copy_value (const GValue* src_value, GValue* dest_value) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (src_value->data[0].v_pointer) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		dest_value->data[0].v_pointer = tracker_result_store_category_node_ref (src_value->data[0].v_pointer);
#line 5675 "tracker-result-store.c"
	} else {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		dest_value->data[0].v_pointer = NULL;
#line 5679 "tracker-result-store.c"
	}
}


static gpointer tracker_result_store_value_category_node_peek_pointer (const GValue* value) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return value->data[0].v_pointer;
#line 5687 "tracker-result-store.c"
}


static gchar* tracker_result_store_value_category_node_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (collect_values[0].v_pointer) {
#line 5694 "tracker-result-store.c"
		TrackerResultStoreCategoryNode* object;
		object = collect_values[0].v_pointer;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		if (object->parent_instance.g_class == NULL) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 5701 "tracker-result-store.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 5705 "tracker-result-store.c"
		}
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		value->data[0].v_pointer = tracker_result_store_category_node_ref (object);
#line 5709 "tracker-result-store.c"
	} else {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		value->data[0].v_pointer = NULL;
#line 5713 "tracker-result-store.c"
	}
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return NULL;
#line 5717 "tracker-result-store.c"
}


static gchar* tracker_result_store_value_category_node_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TrackerResultStoreCategoryNode** object_p;
	object_p = collect_values[0].v_pointer;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (!object_p) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 5728 "tracker-result-store.c"
	}
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (!value->data[0].v_pointer) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*object_p = NULL;
#line 5734 "tracker-result-store.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*object_p = value->data[0].v_pointer;
#line 5738 "tracker-result-store.c"
	} else {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		*object_p = tracker_result_store_category_node_ref (value->data[0].v_pointer);
#line 5742 "tracker-result-store.c"
	}
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return NULL;
#line 5746 "tracker-result-store.c"
}


static GParamSpec* tracker_result_store_param_spec_category_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	TrackerResultStoreParamSpecCategoryNode* spec;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE), NULL);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return G_PARAM_SPEC (spec);
#line 5760 "tracker-result-store.c"
}


static gpointer tracker_result_store_value_get_category_node (const GValue* value) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE), NULL);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return value->data[0].v_pointer;
#line 5769 "tracker-result-store.c"
}


static void tracker_result_store_value_set_category_node (GValue* value, gpointer v_object) {
	TrackerResultStoreCategoryNode* old;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE));
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	old = value->data[0].v_pointer;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (v_object) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE));
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		value->data[0].v_pointer = v_object;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_category_node_ref (value->data[0].v_pointer);
#line 5789 "tracker-result-store.c"
	} else {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		value->data[0].v_pointer = NULL;
#line 5793 "tracker-result-store.c"
	}
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (old) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_category_node_unref (old);
#line 5799 "tracker-result-store.c"
	}
}


static void tracker_result_store_value_take_category_node (GValue* value, gpointer v_object) {
	TrackerResultStoreCategoryNode* old;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE));
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	old = value->data[0].v_pointer;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (v_object) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_RESULT_STORE_TYPE_CATEGORY_NODE));
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		value->data[0].v_pointer = v_object;
#line 5818 "tracker-result-store.c"
	} else {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		value->data[0].v_pointer = NULL;
#line 5822 "tracker-result-store.c"
	}
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (old) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_category_node_unref (old);
#line 5828 "tracker-result-store.c"
	}
}


static void tracker_result_store_category_node_class_init (TrackerResultStoreCategoryNodeClass * klass) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_category_node_parent_class = g_type_class_peek_parent (klass);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	TRACKER_RESULT_STORE_CATEGORY_NODE_CLASS (klass)->finalize = tracker_result_store_category_node_finalize;
#line 5838 "tracker-result-store.c"
}


static void tracker_result_store_category_node_instance_init (TrackerResultStoreCategoryNode * self) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->ref_count = 1;
#line 5845 "tracker-result-store.c"
}


static void tracker_result_store_category_node_finalize (TrackerResultStoreCategoryNode* obj) {
	TrackerResultStoreCategoryNode * self;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = TRACKER_RESULT_STORE_CATEGORY_NODE (obj);
#line 33 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->results = (_vala_TrackerResultStoreResultNode_array_free (self->results, self->results_length1), NULL);
#line 34 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (self->pixbuf);
#line 5857 "tracker-result-store.c"
}


static GType tracker_result_store_category_node_get_type (void) {
	static volatile gsize tracker_result_store_category_node_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_result_store_category_node_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { tracker_result_store_value_category_node_init, tracker_result_store_value_category_node_free_value, tracker_result_store_value_category_node_copy_value, tracker_result_store_value_category_node_peek_pointer, "p", tracker_result_store_value_category_node_collect_value, "p", tracker_result_store_value_category_node_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TrackerResultStoreCategoryNodeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_result_store_category_node_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerResultStoreCategoryNode), 0, (GInstanceInitFunc) tracker_result_store_category_node_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType tracker_result_store_category_node_type_id;
		tracker_result_store_category_node_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TrackerResultStoreCategoryNode", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&tracker_result_store_category_node_type_id__volatile, tracker_result_store_category_node_type_id);
	}
	return tracker_result_store_category_node_type_id__volatile;
}


static gpointer tracker_result_store_category_node_ref (gpointer instance) {
	TrackerResultStoreCategoryNode* self;
	self = instance;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_atomic_int_inc (&self->ref_count);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return instance;
#line 5882 "tracker-result-store.c"
}


static void tracker_result_store_category_node_unref (gpointer instance) {
	TrackerResultStoreCategoryNode* self;
	self = instance;
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		TRACKER_RESULT_STORE_CATEGORY_NODE_GET_CLASS (self)->finalize (self);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 5895 "tracker-result-store.c"
	}
}


static TrackerResultStoreOperation* tracker_result_store_operation_construct (GType object_type) {
	TrackerResultStoreOperation * self = NULL;
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = (TrackerResultStoreOperation*) g_object_new (object_type, NULL);
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return self;
#line 5906 "tracker-result-store.c"
}


static TrackerResultStoreOperation* tracker_result_store_operation_new (void) {
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return tracker_result_store_operation_construct (TRACKER_RESULT_STORE_TYPE_OPERATION);
#line 5913 "tracker-result-store.c"
}


static void tracker_result_store_operation_class_init (TrackerResultStoreOperationClass * klass) {
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_operation_parent_class = g_type_class_peek_parent (klass);
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_result_store_operation_finalize;
#line 5922 "tracker-result-store.c"
}


static void tracker_result_store_operation_instance_init (TrackerResultStoreOperation * self) {
}


static void tracker_result_store_operation_finalize (GObject* obj) {
	TrackerResultStoreOperation * self;
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = TRACKER_RESULT_STORE_OPERATION (obj);
#line 48 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tracker_result_store_category_node_unref0 (self->node);
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	G_OBJECT_CLASS (tracker_result_store_operation_parent_class)->finalize (obj);
#line 5938 "tracker-result-store.c"
}


static GType tracker_result_store_operation_get_type (void) {
	static volatile gsize tracker_result_store_operation_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_result_store_operation_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerResultStoreOperationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_result_store_operation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerResultStoreOperation), 0, (GInstanceInitFunc) tracker_result_store_operation_instance_init, NULL };
		GType tracker_result_store_operation_type_id;
		tracker_result_store_operation_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerResultStoreOperation", &g_define_type_info, 0);
		g_once_init_leave (&tracker_result_store_operation_type_id__volatile, tracker_result_store_operation_type_id);
	}
	return tracker_result_store_operation_type_id__volatile;
}


static gchar** _vala_array_dup4 (gchar** self, int length) {
	gchar** result;
	int i;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = g_new0 (gchar*, length + 1);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	for (i = 0; i < length; i++) {
#line 5961 "tracker-result-store.c"
		gchar* _tmp0_;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = g_strdup (self[i]);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result[i] = _tmp0_;
#line 5967 "tracker-result-store.c"
	}
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 5971 "tracker-result-store.c"
}


static void tracker_result_store_result_node_copy (const TrackerResultStoreResultNode* self, TrackerResultStoreResultNode* dest) {
	gchar** _tmp0_;
	gint _tmp0__length1;
	gchar** _tmp1_;
	gint _tmp1__length1;
	GdkPixbuf* _tmp2_;
	GdkPixbuf* _tmp3_;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = (*self).values;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0__length1 = (*self).values_length1;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup4 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1__length1 = _tmp0__length1;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).values = (_vala_array_free ((*dest).values, (*dest).values_length1, (GDestroyNotify) g_free), NULL);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).values = _tmp1_;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).values_length1 = _tmp1__length1;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest)._values_size_ = (*dest).values_length1;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = (*self).pixbuf;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 ((*dest).pixbuf);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).pixbuf = _tmp3_;
#line 6006 "tracker-result-store.c"
}


static void tracker_result_store_result_node_destroy (TrackerResultStoreResultNode* self) {
#line 26 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*self).values = (_vala_array_free ((*self).values, (*self).values_length1, (GDestroyNotify) g_free), NULL);
#line 27 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 ((*self).pixbuf);
#line 6015 "tracker-result-store.c"
}


static TrackerResultStoreResultNode* tracker_result_store_result_node_dup (const TrackerResultStoreResultNode* self) {
	TrackerResultStoreResultNode* dup;
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	dup = g_new0 (TrackerResultStoreResultNode, 1);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_result_node_copy (self, dup);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return dup;
#line 6027 "tracker-result-store.c"
}


static void tracker_result_store_result_node_free (TrackerResultStoreResultNode* self) {
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_result_node_destroy (self);
#line 25 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_free (self);
#line 6036 "tracker-result-store.c"
}


static GType tracker_result_store_result_node_get_type (void) {
	static volatile gsize tracker_result_store_result_node_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_result_store_result_node_type_id__volatile)) {
		GType tracker_result_store_result_node_type_id;
		tracker_result_store_result_node_type_id = g_boxed_type_register_static ("TrackerResultStoreResultNode", (GBoxedCopyFunc) tracker_result_store_result_node_dup, (GBoxedFreeFunc) tracker_result_store_result_node_free);
		g_once_init_leave (&tracker_result_store_result_node_type_id__volatile, tracker_result_store_result_node_type_id);
	}
	return tracker_result_store_result_node_type_id__volatile;
}


static gchar** _vala_array_dup5 (gchar** self, int length) {
	gchar** result;
	int i;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	result = g_new0 (gchar*, length + 1);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	for (i = 0; i < length; i++) {
#line 6058 "tracker-result-store.c"
		gchar* _tmp0_;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		_tmp0_ = g_strdup (self[i]);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		result[i] = _tmp0_;
#line 6064 "tracker-result-store.c"
	}
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return result;
#line 6068 "tracker-result-store.c"
}


static void tracker_result_store_query_data_copy (const TrackerResultStoreQueryData* self, TrackerResultStoreQueryData* dest) {
	TrackerQueryType _tmp0_;
	TrackerQueryMatch _tmp1_;
	gchar** _tmp2_;
	gint _tmp2__length1;
	gchar** _tmp3_;
	gint _tmp3__length1;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp0_ = (*self).type;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).type = _tmp0_;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp1_ = (*self).match;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).match = _tmp1_;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2_ = (*self).args;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp2__length1 = (*self).args_length1;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3_ = (_tmp2_ != NULL) ? _vala_array_dup5 (_tmp2_, _tmp2__length1) : ((gpointer) _tmp2_);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_tmp3__length1 = _tmp2__length1;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).args = (_vala_array_free ((*dest).args, (*dest).args_length1, (GDestroyNotify) g_free), NULL);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).args = _tmp3_;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest).args_length1 = _tmp3__length1;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*dest)._args_size_ = (*dest).args_length1;
#line 6103 "tracker-result-store.c"
}


static void tracker_result_store_query_data_destroy (TrackerResultStoreQueryData* self) {
#line 41 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	(*self).args = (_vala_array_free ((*self).args, (*self).args_length1, (GDestroyNotify) g_free), NULL);
#line 6110 "tracker-result-store.c"
}


static TrackerResultStoreQueryData* tracker_result_store_query_data_dup (const TrackerResultStoreQueryData* self) {
	TrackerResultStoreQueryData* dup;
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	dup = g_new0 (TrackerResultStoreQueryData, 1);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_query_data_copy (self, dup);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	return dup;
#line 6122 "tracker-result-store.c"
}


static void tracker_result_store_query_data_free (TrackerResultStoreQueryData* self) {
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_query_data_destroy (self);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_free (self);
#line 6131 "tracker-result-store.c"
}


static GType tracker_result_store_query_data_get_type (void) {
	static volatile gsize tracker_result_store_query_data_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_result_store_query_data_type_id__volatile)) {
		GType tracker_result_store_query_data_type_id;
		tracker_result_store_query_data_type_id = g_boxed_type_register_static ("TrackerResultStoreQueryData", (GBoxedCopyFunc) tracker_result_store_query_data_dup, (GBoxedFreeFunc) tracker_result_store_query_data_free);
		g_once_init_leave (&tracker_result_store_query_data_type_id__volatile, tracker_result_store_query_data_type_id);
	}
	return tracker_result_store_query_data_type_id__volatile;
}


static void tracker_result_store_class_init (TrackerResultStoreClass * klass) {
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_type_class_add_private (klass, sizeof (TrackerResultStorePrivate));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_tracker_result_store_get_property;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_tracker_result_store_set_property;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_result_store_finalize;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_RESULT_STORE_ICON_SIZE, g_param_spec_int ("icon-size", "icon-size", "icon-size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_RESULT_STORE_SEARCH_TERM, g_param_spec_string ("search-term", "search-term", "search-term", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_RESULT_STORE_ACTIVE, g_param_spec_boolean ("active", "active", "active", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 6163 "tracker-result-store.c"
}


static void tracker_result_store_gtk_tree_model_interface_init (GtkTreeModelIface * iface) {
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	tracker_result_store_gtk_tree_model_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->get_column_type = (GType (*)(GtkTreeModel*, gint)) tracker_result_store_real_get_column_type;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->get_flags = (GtkTreeModelFlags (*)(GtkTreeModel*)) tracker_result_store_real_get_flags;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->get_iter = (gboolean (*)(GtkTreeModel*, GtkTreeIter*, GtkTreePath*)) tracker_result_store_real_get_iter;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->get_n_columns = (gint (*)(GtkTreeModel*)) tracker_result_store_real_get_n_columns;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->get_path = (GtkTreePath* (*)(GtkTreeModel*, GtkTreeIter*)) tracker_result_store_real_get_path;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->get_value = (void (*)(GtkTreeModel*, GtkTreeIter*, gint, GValue*)) tracker_result_store_real_get_value;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->iter_children = (gboolean (*)(GtkTreeModel*, GtkTreeIter*, GtkTreeIter*)) tracker_result_store_real_iter_children;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->iter_has_child = (gboolean (*)(GtkTreeModel*, GtkTreeIter*)) tracker_result_store_real_iter_has_child;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->iter_n_children = (gint (*)(GtkTreeModel*, GtkTreeIter*)) tracker_result_store_real_iter_n_children;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->iter_next = (gboolean (*)(GtkTreeModel*, GtkTreeIter*)) tracker_result_store_real_iter_next;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->iter_nth_child = (gboolean (*)(GtkTreeModel*, GtkTreeIter*, GtkTreeIter*, gint)) tracker_result_store_real_iter_nth_child;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->iter_parent = (gboolean (*)(GtkTreeModel*, GtkTreeIter*, GtkTreeIter*)) tracker_result_store_real_iter_parent;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->ref_node = (void (*)(GtkTreeModel*, GtkTreeIter*)) tracker_result_store_real_ref_node;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	iface->unref_node = (void (*)(GtkTreeModel*, GtkTreeIter*)) tracker_result_store_real_unref_node;
#line 6198 "tracker-result-store.c"
}


static void tracker_result_store_instance_init (TrackerResultStore * self) {
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv = TRACKER_RESULT_STORE_GET_PRIVATE (self);
#line 55 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->n_extra_columns = 2;
#line 6207 "tracker-result-store.c"
}


static void tracker_result_store_finalize (GObject* obj) {
	TrackerResultStore * self;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self = TRACKER_RESULT_STORE (obj);
#line 23 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_object_unref0 (self->priv->cancellable);
#line 44 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	self->priv->queries = (_vala_TrackerResultStoreQueryData_array_free (self->priv->queries, self->priv->queries_length1), NULL);
#line 45 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->categories);
#line 52 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->running_operations);
#line 53 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_ptr_array_unref0 (self->priv->delayed_operations);
#line 306 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	_g_free0 (self->priv->_search_term);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	G_OBJECT_CLASS (tracker_result_store_parent_class)->finalize (obj);
#line 6229 "tracker-result-store.c"
}


GType tracker_result_store_get_type (void) {
	static volatile gsize tracker_result_store_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_result_store_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerResultStoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_result_store_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerResultStore), 0, (GInstanceInitFunc) tracker_result_store_instance_init, NULL };
		static const GInterfaceInfo gtk_tree_model_info = { (GInterfaceInitFunc) tracker_result_store_gtk_tree_model_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType tracker_result_store_type_id;
		tracker_result_store_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerResultStore", &g_define_type_info, 0);
		g_type_add_interface_static (tracker_result_store_type_id, GTK_TYPE_TREE_MODEL, &gtk_tree_model_info);
		g_once_init_leave (&tracker_result_store_type_id__volatile, tracker_result_store_type_id);
	}
	return tracker_result_store_type_id__volatile;
}


static void _vala_tracker_result_store_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TrackerResultStore * self;
	self = TRACKER_RESULT_STORE (object);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	switch (property_id) {
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case TRACKER_RESULT_STORE_ICON_SIZE:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_value_set_int (value, tracker_result_store_get_icon_size (self));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case TRACKER_RESULT_STORE_SEARCH_TERM:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_value_set_string (value, tracker_result_store_get_search_term (self));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case TRACKER_RESULT_STORE_ACTIVE:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		g_value_set_boolean (value, tracker_result_store_get_active (self));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 6270 "tracker-result-store.c"
		default:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 6276 "tracker-result-store.c"
	}
}


static void _vala_tracker_result_store_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	TrackerResultStore * self;
	self = TRACKER_RESULT_STORE (object);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
	switch (property_id) {
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case TRACKER_RESULT_STORE_ICON_SIZE:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_set_icon_size (self, g_value_get_int (value));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case TRACKER_RESULT_STORE_SEARCH_TERM:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_set_search_term (self, g_value_get_string (value));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		case TRACKER_RESULT_STORE_ACTIVE:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		tracker_result_store_set_active (self, g_value_get_boolean (value));
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 6304 "tracker-result-store.c"
		default:
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/martyn/Source/tracker/src/tracker-needle/tracker-result-store.vala"
		break;
#line 6310 "tracker-result-store.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



