/* tracker-needle.c generated by valac 0.14.0, the Vala compiler
 * generated from tracker-needle.vala, do not modify */

/**/
/* Copyright 2010, Martyn Russell <martyn@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 <stdlib.h>
#include <string.h>
#include <gdk/gdk.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <config.h>
#include <gobject/gvaluecollector.h>


#define TRACKER_TYPE_NEEDLE (tracker_needle_get_type ())
#define TRACKER_NEEDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_NEEDLE, TrackerNeedle))
#define TRACKER_NEEDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_NEEDLE, TrackerNeedleClass))
#define TRACKER_IS_NEEDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_NEEDLE))
#define TRACKER_IS_NEEDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_NEEDLE))
#define TRACKER_NEEDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_NEEDLE, TrackerNeedleClass))

typedef struct _TrackerNeedle TrackerNeedle;
typedef struct _TrackerNeedleClass TrackerNeedleClass;
typedef struct _TrackerNeedlePrivate TrackerNeedlePrivate;

#define TRACKER_TYPE_HISTORY (tracker_history_get_type ())
#define TRACKER_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_HISTORY, TrackerHistory))
#define TRACKER_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_HISTORY, TrackerHistoryClass))
#define TRACKER_IS_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_HISTORY))
#define TRACKER_IS_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_HISTORY))
#define TRACKER_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_HISTORY, TrackerHistoryClass))

typedef struct _TrackerHistory TrackerHistory;
typedef struct _TrackerHistoryClass TrackerHistoryClass;

#define TRACKER_TYPE_VIEW (tracker_view_get_type ())
#define TRACKER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_VIEW, TrackerView))
#define TRACKER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_VIEW, TrackerViewClass))
#define TRACKER_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_VIEW))
#define TRACKER_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_VIEW))
#define TRACKER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_VIEW, TrackerViewClass))

typedef struct _TrackerView TrackerView;
typedef struct _TrackerViewClass TrackerViewClass;

#define TRACKER_TYPE_TAG_LIST (tracker_tag_list_get_type ())
#define TRACKER_TAG_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_TAG_LIST, TrackerTagList))
#define TRACKER_TAG_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_TAG_LIST, TrackerTagListClass))
#define TRACKER_IS_TAG_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_TAG_LIST))
#define TRACKER_IS_TAG_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_TAG_LIST))
#define TRACKER_TAG_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_TAG_LIST, TrackerTagListClass))

typedef struct _TrackerTagList TrackerTagList;
typedef struct _TrackerTagListClass TrackerTagListClass;

#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;
#define _tracker_history_unref0(var) ((var == NULL) ? NULL : (var = (tracker_history_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TRACKER_QUERY_TYPE_TYPE (tracker_query_type_get_type ())

#define TRACKER_QUERY_TYPE_MATCH (tracker_query_match_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define TRACKER_VIEW_TYPE_DISPLAY (tracker_view_display_get_type ())

#define TRACKER_TYPE_STATS (tracker_stats_get_type ())
#define TRACKER_STATS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_STATS, TrackerStats))
#define TRACKER_STATS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_STATS, TrackerStatsClass))
#define TRACKER_IS_STATS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_STATS))
#define TRACKER_IS_STATS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_STATS))
#define TRACKER_STATS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_STATS, TrackerStatsClass))

typedef struct _TrackerStats TrackerStats;
typedef struct _TrackerStatsClass TrackerStatsClass;
typedef struct _TrackerParamSpecNeedle TrackerParamSpecNeedle;
#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
#define _tracker_needle_unref0(var) ((var == NULL) ? NULL : (var = (tracker_needle_unref (var), NULL)))

struct _TrackerNeedle {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TrackerNeedlePrivate * priv;
};

struct _TrackerNeedleClass {
	GTypeClass parent_class;
	void (*finalize) (TrackerNeedle *self);
};

struct _TrackerNeedlePrivate {
	TrackerHistory* history;
	GtkWindow* window;
	GtkToggleToolButton* view_categories;
	GtkToggleToolButton* view_filelist;
	GtkToggleToolButton* view_icons;
	GtkSeparatorToolItem* separator_secondary;
	GtkToggleToolButton* find_in_contents;
	GtkToggleToolButton* find_in_titles;
	GtkToggleToolButton* find_in_all;
	GtkToolItem* search_entry;
	GtkComboBoxEntry* search_list;
	GtkEntry* search;
	GtkSpinner* spinner;
	GtkToolItem* spinner_shell;
	GtkToggleToolButton* show_tags;
	GtkToolButton* show_stats;
	GtkHBox* view;
	TrackerView* sw_noresults;
	TrackerView* sw_categories;
	TrackerView* sw_filelist;
	TrackerView* sw_icons;
	TrackerTagList* taglist;
	guint last_search_id;
	gint size_small;
	gint size_medium;
	gint size_big;
	TrackerResultStore* categories_model;
	TrackerResultStore* files_model;
	TrackerResultStore* files_in_title_model;
	TrackerResultStore* images_model;
	TrackerResultStore* images_in_title_model;
};

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;

typedef enum  {
	TRACKER_VIEW_DISPLAY_NO_RESULTS,
	TRACKER_VIEW_DISPLAY_CATEGORIES,
	TRACKER_VIEW_DISPLAY_FILE_LIST,
	TRACKER_VIEW_DISPLAY_FILE_ICONS
} TrackerViewDisplay;

struct _TrackerParamSpecNeedle {
	GParamSpec parent_instance;
};


static gpointer tracker_needle_parent_class = NULL;
static gboolean tracker_needle_current_find_in_filelist;
static gboolean tracker_needle_current_find_in_filelist = TRUE;
static gboolean tracker_needle_current_find_in_icons;
static gboolean tracker_needle_current_find_in_icons = TRUE;
extern gboolean print_version;
gboolean print_version = FALSE;
extern gchar** search_criteria;
gchar** search_criteria = NULL;

gpointer tracker_needle_ref (gpointer instance);
void tracker_needle_unref (gpointer instance);
GParamSpec* tracker_param_spec_needle (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void tracker_value_set_needle (GValue* value, gpointer v_object);
void tracker_value_take_needle (GValue* value, gpointer v_object);
gpointer tracker_value_get_needle (const GValue* value);
GType tracker_needle_get_type (void) G_GNUC_CONST;
gpointer tracker_history_ref (gpointer instance);
void tracker_history_unref (gpointer instance);
GParamSpec* tracker_param_spec_history (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void tracker_value_set_history (GValue* value, gpointer v_object);
void tracker_value_take_history (GValue* value, gpointer v_object);
gpointer tracker_value_get_history (const GValue* value);
GType tracker_history_get_type (void) G_GNUC_CONST;
GType tracker_view_get_type (void) G_GNUC_CONST;
GType tracker_tag_list_get_type (void) G_GNUC_CONST;
GType tracker_result_store_get_type (void) G_GNUC_CONST;
#define TRACKER_NEEDLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_NEEDLE, TrackerNeedlePrivate))
enum  {
	TRACKER_NEEDLE_DUMMY_PROPERTY
};
#define TRACKER_NEEDLE_UI_FILE "tracker-needle.ui"
static void tracker_needle_create_models (TrackerNeedle* self);
TrackerResultStore* tracker_result_store_new (gint _n_columns);
TrackerResultStore* tracker_result_store_construct (GType object_type, gint _n_columns);
GType tracker_query_type_get_type (void) G_GNUC_CONST;
GType tracker_query_match_get_type (void) G_GNUC_CONST;
void tracker_result_store_add_query (TrackerResultStore* self, TrackerQueryType type, TrackerQueryMatch match, ...);
void tracker_result_store_set_icon_size (TrackerResultStore* self, gint value);
TrackerNeedle* tracker_needle_new (void);
TrackerNeedle* tracker_needle_construct (GType object_type);
TrackerHistory* tracker_history_new (void);
TrackerHistory* tracker_history_construct (GType object_type);
void tracker_needle_show (TrackerNeedle* self);
static void tracker_needle_setup_ui (TrackerNeedle* self);
void tracker_needle_set_search (TrackerNeedle* self, gchar** args, int args_length1);
static void tracker_needle_store_state_changed (TrackerNeedle* self, GObject* object, GParamSpec* p);
gboolean tracker_result_store_get_active (TrackerResultStore* self);
static void _gtk_main_quit_gtk_object_destroy (GtkObject* _sender, gpointer self);
static gboolean tracker_needle_window_key_press_event (TrackerNeedle* self, GtkWidget* widget, GdkEventKey* event);
static gboolean _tracker_needle_window_key_press_event_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self);
static void tracker_needle_view_toggled (TrackerNeedle* self);
static void _tracker_needle_view_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self);
static void tracker_needle_find_in_toggled (TrackerNeedle* self);
static void _tracker_needle_find_in_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self);
static void tracker_needle_search_changed (TrackerNeedle* self, GtkEditable* editable);
static void _tracker_needle_search_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
static void tracker_needle_search_activated (TrackerNeedle* self, GtkEntry* entry);
static void _tracker_needle_search_activated_gtk_entry_activate (GtkEntry* _sender, gpointer self);
static void tracker_needle_search_history_insert (TrackerNeedle* self, gchar** history, int history_length1);
gchar** tracker_history_get (TrackerHistory* self, int* result_length1);
static void tracker_needle_show_tags_clicked (TrackerNeedle* self);
static void _tracker_needle_show_tags_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
static void tracker_needle_show_stats_clicked (TrackerNeedle* self);
static void _tracker_needle_show_stats_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
GType tracker_view_display_get_type (void) G_GNUC_CONST;
TrackerView* tracker_view_new (TrackerViewDisplay* _display, TrackerResultStore* store);
TrackerView* tracker_view_construct (GType object_type, TrackerViewDisplay* _display, TrackerResultStore* store);
static void tracker_needle_view_row_selected (TrackerNeedle* self, GtkTreeView* view, GtkTreePath* path, GtkTreeViewColumn* column);
static void _tracker_needle_view_row_selected_gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self);
TrackerResultStore* tracker_view_get_store (TrackerView* self);
static void _tracker_needle_store_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void tracker_needle_icon_item_selected (TrackerNeedle* self, GtkIconView* view, GtkTreePath* path);
static void _tracker_needle_icon_item_selected_gtk_icon_view_item_activated (GtkIconView* _sender, GtkTreePath* path, gpointer self);
TrackerTagList* tracker_tag_list_new (void);
TrackerTagList* tracker_tag_list_construct (GType object_type);
static gboolean tracker_needle_search_run (TrackerNeedle* self);
static gboolean _tracker_needle_search_run_gsource_func (gpointer self);
static void tracker_needle_search_finished (TrackerNeedle* self, TrackerResultStore* store);
gboolean tracker_result_store_has_results (TrackerResultStore* self);
static GtkTreeIter* tracker_needle_search_history_find_or_insert (TrackerNeedle* self, const gchar* criteria, gboolean* add_to_model);
static GtkTreeIter* _gtk_tree_iter_dup (GtkTreeIter* self);
void tracker_history_add (TrackerHistory* self, const gchar* criteria);
void tracker_view_set_store (TrackerView* self, TrackerResultStore* value);
void tracker_result_store_set_search_term (TrackerResultStore* self, const gchar* value);
static void tracker_needle_launch_selected (TrackerNeedle* self, GtkTreeModel* model, GtkTreePath* path, gint col);
TrackerStats* tracker_stats_new (void);
TrackerStats* tracker_stats_construct (GType object_type);
GType tracker_stats_get_type (void) G_GNUC_CONST;
static void tracker_needle_finalize (TrackerNeedle* obj);
gint _vala_main (gchar** args, int args_length1);
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 gint _vala_array_length (gpointer array);

const GOptionEntry options[3] = {{"version", 'V', 0, G_OPTION_ARG_NONE, &print_version, "Print version", NULL}, {"", (gchar) 0, 0, G_OPTION_ARG_STRING_ARRAY, &search_criteria, "[SEARCH-CRITERIA]", "[SEARCH-CRITERIA]"}, {NULL}};

static void tracker_needle_create_models (TrackerNeedle* self) {
	TrackerResultStore* _tmp0_;
	TrackerResultStore* _tmp1_;
	TrackerResultStore* _tmp2_;
	TrackerResultStore* _tmp3_;
	TrackerResultStore* _tmp4_;
	TrackerResultStore* _tmp5_;
	TrackerResultStore* _tmp6_;
	TrackerResultStore* _tmp7_;
	TrackerResultStore* _tmp8_;
	TrackerResultStore* _tmp9_;
	TrackerResultStore* _tmp10_;
	TrackerResultStore* _tmp11_;
	TrackerResultStore* _tmp12_;
	TrackerResultStore* _tmp13_;
	TrackerResultStore* _tmp14_;
	TrackerResultStore* _tmp15_;
	TrackerResultStore* _tmp16_;
	TrackerResultStore* _tmp17_;
	TrackerResultStore* _tmp18_;
#line 65 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 67 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = tracker_result_store_new (6);
#line 67 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->categories_model);
#line 67 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->categories_model = _tmp0_;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = self->priv->categories_model;
#line 68 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp1_, TRACKER_QUERY_TYPE_APPLICATIONS, TRACKER_QUERY_MATCH_FTS, "?urn", "tracker:coalesce(nfo:softwareCmdLine(?urn), ?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "nie:comment(?urn)", "\"\"", "\"\"", NULL);
#line 77 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = self->priv->categories_model;
#line 77 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp2_, TRACKER_QUERY_TYPE_IMAGES, TRACKER_QUERY_MATCH_FTS, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "fn:string-join((nfo:height(?urn), nfo:width(?urn)), \" x \")", "nfo:fileSize(?urn)", "nie:url(?urn)", NULL);
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = self->priv->categories_model;
#line 85 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp3_, TRACKER_QUERY_TYPE_MUSIC, TRACKER_QUERY_MATCH_FTS_INDIRECT, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "fn:string-join((?performer, ?album), \" - \")", "nfo:duration(?urn)", "nie:url(?urn)", NULL);
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = self->priv->categories_model;
#line 93 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp4_, TRACKER_QUERY_TYPE_VIDEOS, TRACKER_QUERY_MATCH_FTS, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "\"\"", "nfo:duration(?urn)", "nie:url(?urn)", NULL);
#line 101 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp5_ = self->priv->categories_model;
#line 101 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp5_, TRACKER_QUERY_TYPE_DOCUMENTS, TRACKER_QUERY_MATCH_FTS, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "tracker:coalesce(nco:fullname(?creator), nco:fullname(?publisher))", "nfo:pageCount(?urn)", "nie:url(?urn)", NULL);
#line 109 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp6_ = self->priv->categories_model;
#line 109 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp6_, TRACKER_QUERY_TYPE_MAIL, TRACKER_QUERY_MATCH_FTS, "?urn", "nie:url(?urn)", "nmo:messageSubject(?urn)", "tracker:coalesce(nco:fullname(?sender), nco:nickname(?sender), nco:ema" \
"ilAddress(?sender))", "nmo:receivedDate(?urn)", "fn:concat(\"To: \", tracker:coalesce(nco:fullname(?to), nco:nickname(?" \
"to), nco:emailAddress(?to)))", NULL);
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp7_ = self->priv->categories_model;
#line 117 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp7_, TRACKER_QUERY_TYPE_FOLDERS, TRACKER_QUERY_MATCH_FTS, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "nie:url(?parent)", "nfo:fileLastModified(?urn)", "?tooltip", NULL);
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp8_ = self->priv->categories_model;
#line 125 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp8_, TRACKER_QUERY_TYPE_BOOKMARKS, TRACKER_QUERY_MATCH_FTS, "?urn", "nie:url(?bookmark)", "nie:title(?urn)", "nie:url(?bookmark)", "nie:contentLastModified(?urn)", "nie:url(?bookmark)", NULL);
#line 135 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp9_ = tracker_result_store_new (7);
#line 135 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->files_model);
#line 135 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->files_model = _tmp9_;
#line 136 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp10_ = self->priv->files_model;
#line 136 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp10_, TRACKER_QUERY_TYPE_ALL, TRACKER_QUERY_MATCH_FTS, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "nie:url(?urn)", "nfo:fileSize(?urn)", "nfo:fileLastModified(?urn)", "nie:url(?urn)", NULL);
#line 146 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp11_ = tracker_result_store_new (7);
#line 146 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->files_in_title_model);
#line 146 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->files_in_title_model = _tmp11_;
#line 147 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp12_ = self->priv->files_in_title_model;
#line 147 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp12_, TRACKER_QUERY_TYPE_ALL, TRACKER_QUERY_MATCH_TITLES, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "nie:url(?urn)", "nfo:fileSize(?urn)", "nfo:fileLastModified(?urn)", "nie:url(?urn)", NULL);
#line 158 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp13_ = tracker_result_store_new (6);
#line 158 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->images_model);
#line 158 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->images_model = _tmp13_;
#line 159 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp14_ = self->priv->images_model;
#line 159 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_set_icon_size (_tmp14_, 128);
#line 160 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp15_ = self->priv->images_model;
#line 160 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp15_, TRACKER_QUERY_TYPE_IMAGES, TRACKER_QUERY_MATCH_NONE, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "nfo:fileSize(?urn)", "nfo:fileLastModified(?urn)", "nie:url(?urn)", NULL);
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp16_ = tracker_result_store_new (6);
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->images_in_title_model);
#line 170 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->images_in_title_model = _tmp16_;
#line 171 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp17_ = self->priv->images_in_title_model;
#line 171 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_set_icon_size (_tmp17_, 128);
#line 172 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp18_ = self->priv->images_in_title_model;
#line 172 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_result_store_add_query (_tmp18_, TRACKER_QUERY_TYPE_IMAGES, TRACKER_QUERY_MATCH_TITLES, "?urn", "nie:url(?urn)", "tracker:coalesce(nie:title(?urn), nfo:fileName(?urn))", "nfo:fileSize(?urn)", "nfo:fileLastModified(?urn)", "nie:url(?urn)", NULL);
#line 394 "tracker-needle.c"
}


TrackerNeedle* tracker_needle_construct (GType object_type) {
	TrackerNeedle* self = NULL;
	TrackerHistory* _tmp0_;
#line 182 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self = (TrackerNeedle*) g_type_create_instance (object_type);
#line 183 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_create_models (self);
#line 184 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = tracker_history_new ();
#line 184 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tracker_history_unref0 (self->priv->history);
#line 184 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->history = _tmp0_;
#line 182 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return self;
#line 413 "tracker-needle.c"
}


TrackerNeedle* tracker_needle_new (void) {
#line 182 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return tracker_needle_construct (TRACKER_TYPE_NEEDLE);
#line 420 "tracker-needle.c"
}


void tracker_needle_show (TrackerNeedle* self) {
	GtkWindow* _tmp0_;
#line 187 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 188 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_setup_ui (self);
#line 190 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = self->priv->window;
#line 190 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_show ((GtkWidget*) _tmp0_);
#line 434 "tracker-needle.c"
}


void tracker_needle_set_search (TrackerNeedle* self, gchar** args, int args_length1) {
	gchar** _tmp0_;
	gint _tmp0__length1;
#line 193 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 194 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = args;
#line 194 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0__length1 = args_length1;
#line 194 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp0_ != NULL) {
#line 449 "tracker-needle.c"
		gchar* _tmp1_;
		gchar* text;
		gchar** _tmp2_;
		gint _tmp2__length1;
		const gchar* _tmp12_;
		GtkEntry* _tmp13_;
		const gchar* _tmp14_;
#line 195 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp1_ = g_strdup ("");
#line 195 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		text = _tmp1_;
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp2_ = args;
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp2__length1 = args_length1;
#line 465 "tracker-needle.c"
		{
			gchar** s_collection = NULL;
			gint s_collection_length1 = 0;
			gint _s_collection_size_ = 0;
			gint s_it = 0;
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			s_collection = _tmp2_;
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			s_collection_length1 = _tmp2__length1;
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			for (s_it = 0; s_it < _tmp2__length1; s_it = s_it + 1) {
#line 477 "tracker-needle.c"
				gchar* _tmp3_;
				gchar* s = NULL;
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp3_ = g_strdup (s_collection[s_it]);
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				s = _tmp3_;
#line 484 "tracker-needle.c"
				{
					const gchar* _tmp4_;
					gint _tmp5_;
					gint _tmp6_;
					const gchar* _tmp9_;
					const gchar* _tmp10_;
					gchar* _tmp11_;
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_tmp4_ = text;
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_tmp5_ = strlen (_tmp4_);
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_tmp6_ = _tmp5_;
#line 198 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					if (_tmp6_ > 1) {
#line 500 "tracker-needle.c"
						const gchar* _tmp7_;
						gchar* _tmp8_;
#line 199 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
						_tmp7_ = text;
#line 199 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
						_tmp8_ = g_strconcat (_tmp7_, " ", NULL);
#line 199 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
						_g_free0 (text);
#line 199 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
						text = _tmp8_;
#line 511 "tracker-needle.c"
					}
#line 201 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_tmp9_ = text;
#line 201 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_tmp10_ = s;
#line 201 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_tmp11_ = g_strconcat (_tmp9_, _tmp10_, NULL);
#line 201 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_g_free0 (text);
#line 201 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					text = _tmp11_;
#line 197 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
					_g_free0 (s);
#line 525 "tracker-needle.c"
				}
			}
		}
#line 204 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp12_ = text;
#line 204 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_debug ("tracker-needle.vala:204: Setting search criteria to: '%s'\n", _tmp12_);
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp13_ = self->priv->search;
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp14_ = text;
#line 205 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_entry_set_text (_tmp13_, _tmp14_);
#line 194 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (text);
#line 541 "tracker-needle.c"
	}
}


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


static void tracker_needle_store_state_changed (TrackerNeedle* self, GObject* object, GParamSpec* p) {
	GObject* _tmp0_;
	TrackerResultStore* _tmp1_;
	TrackerResultStore* store;
	TrackerResultStore* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
#line 209 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 209 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (object != NULL);
#line 209 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (p != NULL);
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = object;
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = _g_object_ref0 (TRACKER_RESULT_STORE (_tmp0_));
#line 211 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	store = _tmp1_;
#line 213 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = store;
#line 213 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = tracker_result_store_get_active (_tmp2_);
#line 213 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = _tmp3_;
#line 213 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp4_) {
#line 580 "tracker-needle.c"
		GtkToolItem* _tmp5_;
		GtkSpinner* _tmp6_;
#line 214 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp5_ = self->priv->spinner_shell;
#line 214 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp5_);
#line 215 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp6_ = self->priv->spinner;
#line 215 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_spinner_start (_tmp6_);
#line 591 "tracker-needle.c"
	} else {
		GtkToolItem* _tmp7_;
		GtkSpinner* _tmp8_;
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp7_ = self->priv->spinner_shell;
#line 217 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp7_);
#line 218 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp8_ = self->priv->spinner;
#line 218 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_spinner_stop (_tmp8_);
#line 603 "tracker-needle.c"
	}
#line 209 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (store);
#line 607 "tracker-needle.c"
}


static void _gtk_main_quit_gtk_object_destroy (GtkObject* _sender, gpointer self) {
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_main_quit ();
#line 614 "tracker-needle.c"
}


static gboolean _tracker_needle_window_key_press_event_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
	gboolean result;
	result = tracker_needle_window_key_press_event (self, _sender, event);
#line 250 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return result;
#line 623 "tracker-needle.c"
}


static void _tracker_needle_view_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) {
#line 253 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_view_toggled (self);
#line 630 "tracker-needle.c"
}


static void _tracker_needle_find_in_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) {
#line 264 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_find_in_toggled (self);
#line 637 "tracker-needle.c"
}


static void _tracker_needle_search_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
#line 275 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_search_changed (self, _sender);
#line 644 "tracker-needle.c"
}


static void _tracker_needle_search_activated_gtk_entry_activate (GtkEntry* _sender, gpointer self) {
#line 276 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_search_activated (self, _sender);
#line 651 "tracker-needle.c"
}


static void _tracker_needle_show_tags_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 284 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_show_tags_clicked (self);
#line 658 "tracker-needle.c"
}


static void _tracker_needle_show_stats_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 287 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_show_stats_clicked (self);
#line 665 "tracker-needle.c"
}


static void _tracker_needle_view_row_selected_gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self) {
#line 300 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_view_row_selected (self, _sender, path, column);
#line 672 "tracker-needle.c"
}


static void _tracker_needle_store_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 301 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_store_state_changed (self, _sender, pspec);
#line 679 "tracker-needle.c"
}


static void _tracker_needle_icon_item_selected_gtk_icon_view_item_activated (GtkIconView* _sender, GtkTreePath* path, gpointer self) {
#line 311 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_icon_item_selected (self, _sender, path);
#line 686 "tracker-needle.c"
}


static void tracker_needle_setup_ui (TrackerNeedle* self) {
	GtkBuilder* _tmp0_;
	GtkBuilder* builder;
	gint _tmp6_ = 0;
	gint _tmp7_ = 0;
	gint _tmp8_ = 0;
	GObject* _tmp9_ = NULL;
	GtkWindow* _tmp10_;
	GtkWindow* _tmp11_;
	GtkWindow* _tmp12_;
	GObject* _tmp13_ = NULL;
	GtkToggleToolButton* _tmp14_;
	GtkToggleToolButton* _tmp15_;
	GObject* _tmp16_ = NULL;
	GtkToggleToolButton* _tmp17_;
	GtkToggleToolButton* _tmp18_;
	GObject* _tmp19_ = NULL;
	GtkToggleToolButton* _tmp20_;
	GtkToggleToolButton* _tmp21_;
	GObject* _tmp22_ = NULL;
	GtkSeparatorToolItem* _tmp23_;
	GObject* _tmp24_ = NULL;
	GtkToggleToolButton* _tmp25_;
	GtkToggleToolButton* _tmp26_;
	GObject* _tmp27_ = NULL;
	GtkToggleToolButton* _tmp28_;
	GtkToggleToolButton* _tmp29_;
	GObject* _tmp30_ = NULL;
	GtkToggleToolButton* _tmp31_;
	GtkToggleToolButton* _tmp32_;
	GObject* _tmp33_ = NULL;
	GtkToolItem* _tmp34_;
	GObject* _tmp35_ = NULL;
	GtkComboBoxEntry* _tmp36_;
	GtkComboBoxEntry* _tmp37_;
	GtkWidget* _tmp38_ = NULL;
	GtkEntry* _tmp39_;
	GtkEntry* _tmp40_;
	GtkEntry* _tmp41_;
	TrackerHistory* _tmp42_;
	gint _tmp43_ = 0;
	gchar** _tmp44_ = NULL;
	gchar** _tmp45_;
	gint _tmp45__length1;
	GtkSpinner* _tmp46_;
	GtkSpinner* _tmp47_;
	GObject* _tmp48_ = NULL;
	GtkToolItem* _tmp49_;
	GtkToolItem* _tmp50_;
	GtkSpinner* _tmp51_;
	GObject* _tmp52_ = NULL;
	GtkToggleToolButton* _tmp53_;
	GtkToggleToolButton* _tmp54_;
	GObject* _tmp55_ = NULL;
	GtkToolButton* _tmp56_;
	GtkToolButton* _tmp57_;
	GObject* _tmp58_ = NULL;
	GtkHBox* _tmp59_;
	GtkTreeView* treeview = NULL;
	GtkIconView* iconview = NULL;
	TrackerViewDisplay _tmp60_;
	TrackerView* _tmp61_;
	TrackerView* _tmp62_;
	GtkHBox* _tmp63_;
	TrackerView* _tmp64_;
	TrackerViewDisplay _tmp65_;
	TrackerResultStore* _tmp66_;
	TrackerView* _tmp67_;
	TrackerView* _tmp68_;
	TrackerView* _tmp69_;
	GtkWidget* _tmp70_ = NULL;
	GtkTreeView* _tmp71_;
	GtkTreeView* _tmp72_;
	TrackerView* _tmp73_;
	TrackerResultStore* _tmp74_;
	TrackerResultStore* _tmp75_;
	GtkHBox* _tmp76_;
	TrackerView* _tmp77_;
	TrackerViewDisplay _tmp78_;
	TrackerView* _tmp79_;
	TrackerView* _tmp80_;
	TrackerView* _tmp81_;
	GtkWidget* _tmp82_ = NULL;
	GtkTreeView* _tmp83_;
	GtkTreeView* _tmp84_;
	GtkHBox* _tmp85_;
	TrackerView* _tmp86_;
	TrackerViewDisplay _tmp87_;
	TrackerView* _tmp88_;
	TrackerView* _tmp89_;
	TrackerView* _tmp90_;
	GtkWidget* _tmp91_ = NULL;
	GtkIconView* _tmp92_;
	GtkHBox* _tmp93_;
	TrackerView* _tmp94_;
	TrackerTagList* _tmp95_;
	TrackerTagList* _tmp96_;
	TrackerTagList* _tmp97_;
	GtkHBox* _tmp98_;
	TrackerTagList* _tmp99_;
	GtkToggleToolButton* _tmp100_;
	GError * _inner_error_ = NULL;
#line 222 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 223 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = gtk_builder_new ();
#line 223 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	builder = _tmp0_;
#line 798 "tracker-needle.c"
	{
#line 227 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_builder_add_from_file (builder, SRCDIR TRACKER_NEEDLE_UI_FILE, &_inner_error_);
#line 227 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_inner_error_ != NULL) {
#line 804 "tracker-needle.c"
			goto __catch19_g_error;
		}
	}
	goto __finally19;
	__catch19_g_error:
	{
		GError* e = NULL;
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		e = _inner_error_;
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_inner_error_ = NULL;
#line 816 "tracker-needle.c"
		{
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			gtk_builder_add_from_file (builder, TRACKER_UI_DIR TRACKER_NEEDLE_UI_FILE, &_inner_error_);
#line 231 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			if (_inner_error_ != NULL) {
#line 822 "tracker-needle.c"
				goto __catch20_g_error;
			}
		}
		goto __finally20;
		__catch20_g_error:
		{
			GError* e = NULL;
			GError* _tmp1_;
			const gchar* _tmp2_;
			GtkMessageDialog* _tmp3_;
			GtkMessageDialog* _tmp4_;
			GtkMessageDialog* msg;
			GtkMessageDialog* _tmp5_;
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			e = _inner_error_;
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_inner_error_ = NULL;
#line 233 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp1_ = e;
#line 233 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp2_ = _tmp1_->message;
#line 233 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CANCEL, "Failed to load UI file, %s\n", _tmp2_);
#line 233 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp4_ = g_object_ref_sink (_tmp3_);
#line 233 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			msg = _tmp4_;
#line 239 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp5_ = msg;
#line 239 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			gtk_dialog_run ((GtkDialog*) _tmp5_);
#line 240 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			gtk_main_quit ();
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (msg);
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_error_free0 (e);
#line 860 "tracker-needle.c"
		}
		__finally20:
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_inner_error_ != NULL) {
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_error_free0 (e);
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_error_free0 (e);
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (builder);
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			g_clear_error (&_inner_error_);
#line 230 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			return;
#line 877 "tracker-needle.c"
		}
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_error_free0 (e);
#line 881 "tracker-needle.c"
	}
	__finally19:
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_inner_error_ != NULL) {
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_object_unref0 (builder);
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_clear_error (&_inner_error_);
#line 225 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return;
#line 894 "tracker-needle.c"
	}
#line 244 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &_tmp6_, NULL);
#line 244 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->size_small = _tmp6_;
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_icon_size_lookup (GTK_ICON_SIZE_DND, &_tmp7_, NULL);
#line 245 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->size_medium = _tmp7_;
#line 246 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &_tmp8_, NULL);
#line 246 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->size_big = _tmp8_;
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp9_ = gtk_builder_get_object (builder, "window_needle");
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp10_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp9_) ? ((GtkWindow*) _tmp9_) : NULL);
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->window);
#line 248 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->window = _tmp10_;
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp11_ = self->priv->window;
#line 249 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect ((GtkObject*) _tmp11_, "destroy", (GCallback) _gtk_main_quit_gtk_object_destroy, NULL);
#line 250 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp12_ = self->priv->window;
#line 250 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect ((GtkWidget*) _tmp12_, "key-press-event", (GCallback) _tracker_needle_window_key_press_event_gtk_widget_key_press_event, self);
#line 252 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp13_ = gtk_builder_get_object (builder, "toolbutton_view_filelist");
#line 252 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp14_ = _g_object_ref0 (GTK_IS_TOGGLE_TOOL_BUTTON (_tmp13_) ? ((GtkToggleToolButton*) _tmp13_) : NULL);
#line 252 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view_filelist);
#line 252 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->view_filelist = _tmp14_;
#line 253 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp15_ = self->priv->view_filelist;
#line 253 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp15_, "toggled", (GCallback) _tracker_needle_view_toggled_gtk_toggle_tool_button_toggled, self);
#line 255 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp16_ = gtk_builder_get_object (builder, "toolbutton_view_icons");
#line 255 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp17_ = _g_object_ref0 (GTK_IS_TOGGLE_TOOL_BUTTON (_tmp16_) ? ((GtkToggleToolButton*) _tmp16_) : NULL);
#line 255 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view_icons);
#line 255 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->view_icons = _tmp17_;
#line 256 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp18_ = self->priv->view_icons;
#line 256 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp18_, "toggled", (GCallback) _tracker_needle_view_toggled_gtk_toggle_tool_button_toggled, self);
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp19_ = gtk_builder_get_object (builder, "toolbutton_view_categories");
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp20_ = _g_object_ref0 (GTK_IS_TOGGLE_TOOL_BUTTON (_tmp19_) ? ((GtkToggleToolButton*) _tmp19_) : NULL);
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view_categories);
#line 258 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->view_categories = _tmp20_;
#line 259 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp21_ = self->priv->view_categories;
#line 259 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp21_, "toggled", (GCallback) _tracker_needle_view_toggled_gtk_toggle_tool_button_toggled, self);
#line 261 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp22_ = gtk_builder_get_object (builder, "separator_secondary");
#line 261 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp23_ = _g_object_ref0 (GTK_IS_SEPARATOR_TOOL_ITEM (_tmp22_) ? ((GtkSeparatorToolItem*) _tmp22_) : NULL);
#line 261 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->separator_secondary);
#line 261 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->separator_secondary = _tmp23_;
#line 263 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp24_ = gtk_builder_get_object (builder, "toolbutton_find_in_contents");
#line 263 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp25_ = _g_object_ref0 (GTK_IS_TOGGLE_TOOL_BUTTON (_tmp24_) ? ((GtkToggleToolButton*) _tmp24_) : NULL);
#line 263 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->find_in_contents);
#line 263 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->find_in_contents = _tmp25_;
#line 264 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp26_ = self->priv->find_in_contents;
#line 264 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp26_, "toggled", (GCallback) _tracker_needle_find_in_toggled_gtk_toggle_tool_button_toggled, self);
#line 266 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp27_ = gtk_builder_get_object (builder, "toolbutton_find_in_titles");
#line 266 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp28_ = _g_object_ref0 (GTK_IS_TOGGLE_TOOL_BUTTON (_tmp27_) ? ((GtkToggleToolButton*) _tmp27_) : NULL);
#line 266 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->find_in_titles);
#line 266 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->find_in_titles = _tmp28_;
#line 267 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp29_ = self->priv->find_in_titles;
#line 267 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp29_, "toggled", (GCallback) _tracker_needle_find_in_toggled_gtk_toggle_tool_button_toggled, self);
#line 269 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp30_ = gtk_builder_get_object (builder, "toolbutton_find_in_all");
#line 269 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp31_ = _g_object_ref0 (GTK_IS_TOGGLE_TOOL_BUTTON (_tmp30_) ? ((GtkToggleToolButton*) _tmp30_) : NULL);
#line 269 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->find_in_all);
#line 269 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->find_in_all = _tmp31_;
#line 270 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp32_ = self->priv->find_in_all;
#line 270 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp32_, "toggled", (GCallback) _tracker_needle_find_in_toggled_gtk_toggle_tool_button_toggled, self);
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp33_ = gtk_builder_get_object (builder, "toolitem_search_entry");
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp34_ = _g_object_ref0 (GTK_IS_TOOL_ITEM (_tmp33_) ? ((GtkToolItem*) _tmp33_) : NULL);
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->search_entry);
#line 272 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->search_entry = _tmp34_;
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp35_ = gtk_builder_get_object (builder, "comboboxentry_search");
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp36_ = _g_object_ref0 (GTK_IS_COMBO_BOX_ENTRY (_tmp35_) ? ((GtkComboBoxEntry*) _tmp35_) : NULL);
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->search_list);
#line 273 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->search_list = _tmp36_;
#line 274 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp37_ = self->priv->search_list;
#line 274 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp38_ = gtk_bin_get_child ((GtkBin*) _tmp37_);
#line 274 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp39_ = _g_object_ref0 (GTK_IS_ENTRY (_tmp38_) ? ((GtkEntry*) _tmp38_) : NULL);
#line 274 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->search);
#line 274 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->search = _tmp39_;
#line 275 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp40_ = self->priv->search;
#line 275 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect ((GtkEditable*) _tmp40_, "changed", (GCallback) _tracker_needle_search_changed_gtk_editable_changed, self);
#line 276 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp41_ = self->priv->search;
#line 276 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp41_, "activate", (GCallback) _tracker_needle_search_activated_gtk_entry_activate, self);
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp42_ = self->priv->history;
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp44_ = tracker_history_get (_tmp42_, &_tmp43_);
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp45_ = _tmp44_;
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp45__length1 = _tmp43_;
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_search_history_insert (self, _tmp45_, _tmp43_);
#line 277 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp45_ = (_vala_array_free (_tmp45_, _tmp45__length1, (GDestroyNotify) g_free), NULL);
#line 279 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp46_ = (GtkSpinner*) gtk_spinner_new ();
#line 279 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp47_ = g_object_ref_sink (_tmp46_);
#line 279 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->spinner);
#line 279 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->spinner = _tmp47_;
#line 280 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp48_ = gtk_builder_get_object (builder, "toolcustom_spinner");
#line 280 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp49_ = _g_object_ref0 (GTK_IS_TOOL_ITEM (_tmp48_) ? ((GtkToolItem*) _tmp48_) : NULL);
#line 280 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->spinner_shell);
#line 280 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->spinner_shell = _tmp49_;
#line 281 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp50_ = self->priv->spinner_shell;
#line 281 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp51_ = self->priv->spinner;
#line 281 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_container_add ((GtkContainer*) _tmp50_, (GtkWidget*) _tmp51_);
#line 283 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp52_ = gtk_builder_get_object (builder, "toolbutton_show_tags");
#line 283 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp53_ = _g_object_ref0 (GTK_IS_TOGGLE_TOOL_BUTTON (_tmp52_) ? ((GtkToggleToolButton*) _tmp52_) : NULL);
#line 283 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->show_tags);
#line 283 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->show_tags = _tmp53_;
#line 284 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp54_ = self->priv->show_tags;
#line 284 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect ((GtkToolButton*) _tmp54_, "clicked", (GCallback) _tracker_needle_show_tags_clicked_gtk_tool_button_clicked, self);
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp55_ = gtk_builder_get_object (builder, "toolbutton_show_stats");
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp56_ = _g_object_ref0 (GTK_IS_TOOL_BUTTON (_tmp55_) ? ((GtkToolButton*) _tmp55_) : NULL);
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->show_stats);
#line 286 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->show_stats = _tmp56_;
#line 287 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp57_ = self->priv->show_stats;
#line 287 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp57_, "clicked", (GCallback) _tracker_needle_show_stats_clicked_gtk_tool_button_clicked, self);
#line 289 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp58_ = gtk_builder_get_object (builder, "hbox_view");
#line 289 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp59_ = _g_object_ref0 (GTK_IS_HBOX (_tmp58_) ? ((GtkHBox*) _tmp58_) : NULL);
#line 289 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view);
#line 289 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->view = _tmp59_;
#line 295 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp60_ = TRACKER_VIEW_DISPLAY_NO_RESULTS;
#line 295 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp61_ = tracker_view_new (&_tmp60_, NULL);
#line 295 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp62_ = g_object_ref_sink (_tmp61_);
#line 295 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_noresults);
#line 295 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->sw_noresults = _tmp62_;
#line 296 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp63_ = self->priv->view;
#line 296 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp64_ = self->priv->sw_noresults;
#line 296 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_box_pack_start ((GtkBox*) _tmp63_, (GtkWidget*) _tmp64_, TRUE, TRUE, (guint) 0);
#line 298 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp65_ = TRACKER_VIEW_DISPLAY_CATEGORIES;
#line 298 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp66_ = self->priv->categories_model;
#line 298 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp67_ = tracker_view_new (&_tmp65_, _tmp66_);
#line 298 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp68_ = g_object_ref_sink (_tmp67_);
#line 298 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_categories);
#line 298 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->sw_categories = _tmp68_;
#line 299 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp69_ = self->priv->sw_categories;
#line 299 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp70_ = gtk_bin_get_child ((GtkBin*) _tmp69_);
#line 299 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp71_ = _g_object_ref0 (GTK_TREE_VIEW (_tmp70_));
#line 299 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (treeview);
#line 299 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	treeview = _tmp71_;
#line 300 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp72_ = treeview;
#line 300 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp72_, "row-activated", (GCallback) _tracker_needle_view_row_selected_gtk_tree_view_row_activated, self);
#line 301 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp73_ = self->priv->sw_categories;
#line 301 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp74_ = tracker_view_get_store (_tmp73_);
#line 301 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp75_ = _tmp74_;
#line 301 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect ((GObject*) _tmp75_, "notify::active", (GCallback) _tracker_needle_store_state_changed_g_object_notify, self);
#line 302 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp76_ = self->priv->view;
#line 302 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp77_ = self->priv->sw_categories;
#line 302 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_box_pack_start ((GtkBox*) _tmp76_, (GtkWidget*) _tmp77_, TRUE, TRUE, (guint) 0);
#line 304 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp78_ = TRACKER_VIEW_DISPLAY_FILE_LIST;
#line 304 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp79_ = tracker_view_new (&_tmp78_, NULL);
#line 304 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp80_ = g_object_ref_sink (_tmp79_);
#line 304 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_filelist);
#line 304 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->sw_filelist = _tmp80_;
#line 305 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp81_ = self->priv->sw_filelist;
#line 305 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp82_ = gtk_bin_get_child ((GtkBin*) _tmp81_);
#line 305 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp83_ = _g_object_ref0 (GTK_TREE_VIEW (_tmp82_));
#line 305 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (treeview);
#line 305 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	treeview = _tmp83_;
#line 306 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp84_ = treeview;
#line 306 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (_tmp84_, "row-activated", (GCallback) _tracker_needle_view_row_selected_gtk_tree_view_row_activated, self);
#line 307 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp85_ = self->priv->view;
#line 307 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp86_ = self->priv->sw_filelist;
#line 307 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_box_pack_start ((GtkBox*) _tmp85_, (GtkWidget*) _tmp86_, TRUE, TRUE, (guint) 0);
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp87_ = TRACKER_VIEW_DISPLAY_FILE_ICONS;
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp88_ = tracker_view_new (&_tmp87_, NULL);
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp89_ = g_object_ref_sink (_tmp88_);
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_icons);
#line 309 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->sw_icons = _tmp89_;
#line 310 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp90_ = self->priv->sw_icons;
#line 310 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp91_ = gtk_bin_get_child ((GtkBin*) _tmp90_);
#line 310 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp92_ = _g_object_ref0 (GTK_ICON_VIEW (_tmp91_));
#line 310 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (iconview);
#line 310 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	iconview = _tmp92_;
#line 311 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_signal_connect (iconview, "item-activated", (GCallback) _tracker_needle_icon_item_selected_gtk_icon_view_item_activated, self);
#line 312 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp93_ = self->priv->view;
#line 312 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp94_ = self->priv->sw_icons;
#line 312 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_box_pack_start ((GtkBox*) _tmp93_, (GtkWidget*) _tmp94_, TRUE, TRUE, (guint) 0);
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp95_ = tracker_tag_list_new ();
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp96_ = g_object_ref_sink (_tmp95_);
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->taglist);
#line 315 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->taglist = _tmp96_;
#line 316 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp97_ = self->priv->taglist;
#line 316 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_hide ((GtkWidget*) _tmp97_);
#line 317 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp98_ = self->priv->view;
#line 317 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp99_ = self->priv->taglist;
#line 317 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_box_pack_end ((GtkBox*) _tmp98_, (GtkWidget*) _tmp99_, FALSE, TRUE, (guint) 0);
#line 319 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp100_ = self->priv->view_categories;
#line 319 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_toggle_tool_button_set_active (_tmp100_, TRUE);
#line 222 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (iconview);
#line 222 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (treeview);
#line 222 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (builder);
#line 1246 "tracker-needle.c"
}


static gboolean tracker_needle_window_key_press_event (TrackerNeedle* self, GtkWidget* widget, GdkEventKey* event) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	GdkEventKey _tmp1_;
	GdkModifierType _tmp2_;
	gboolean _tmp6_;
#line 322 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 322 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 322 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = *event;
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = _tmp1_.state;
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if ((_tmp2_ & GDK_CONTROL_MASK) == GDK_CONTROL_MASK) {
#line 1268 "tracker-needle.c"
		GdkEventKey _tmp3_;
		guint _tmp4_;
		const gchar* _tmp5_ = NULL;
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp3_ = *event;
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp4_ = _tmp3_.keyval;
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp5_ = gdk_keyval_name (_tmp4_);
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = g_strcmp0 (_tmp5_, "w") == 0;
#line 1280 "tracker-needle.c"
	} else {
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = FALSE;
#line 1284 "tracker-needle.c"
	}
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp6_ = _tmp0_;
#line 325 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp6_) {
#line 1290 "tracker-needle.c"
		GtkWidget* _tmp7_;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp7_ = widget;
#line 326 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_object_destroy ((GtkObject*) _tmp7_);
#line 1296 "tracker-needle.c"
	}
#line 329 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	result = FALSE;
#line 329 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return result;
#line 1302 "tracker-needle.c"
}


static gboolean _tracker_needle_search_run_gsource_func (gpointer self) {
	gboolean result;
	result = tracker_needle_search_run (self);
#line 337 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return result;
#line 1311 "tracker-needle.c"
}


static void tracker_needle_search_changed (TrackerNeedle* self, GtkEditable* editable) {
	guint _tmp0_;
	guint _tmp2_ = 0U;
#line 332 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 332 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (editable != NULL);
#line 333 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = self->priv->last_search_id;
#line 333 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 1326 "tracker-needle.c"
		guint _tmp1_;
#line 334 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp1_ = self->priv->last_search_id;
#line 334 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_source_remove (_tmp1_);
#line 1332 "tracker-needle.c"
	}
#line 337 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, _tracker_needle_search_run_gsource_func, tracker_needle_ref (self), tracker_needle_unref);
#line 337 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->last_search_id = _tmp2_;
#line 1338 "tracker-needle.c"
}


static void tracker_needle_search_activated (TrackerNeedle* self, GtkEntry* entry) {
	guint _tmp0_;
#line 340 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 340 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (entry != NULL);
#line 341 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = self->priv->last_search_id;
#line 341 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 1352 "tracker-needle.c"
		guint _tmp1_;
#line 342 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp1_ = self->priv->last_search_id;
#line 342 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_source_remove (_tmp1_);
#line 343 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		self->priv->last_search_id = (guint) 0;
#line 1360 "tracker-needle.c"
	}
#line 346 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_search_run (self);
#line 1364 "tracker-needle.c"
}


static void tracker_needle_search_finished (TrackerNeedle* self, TrackerResultStore* store) {
	gboolean _tmp0_ = FALSE;
	TrackerResultStore* _tmp1_;
	gboolean _tmp4_;
#line 349 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = store;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp1_ == NULL) {
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = TRUE;
#line 1380 "tracker-needle.c"
	} else {
		TrackerResultStore* _tmp2_;
		gboolean _tmp3_ = FALSE;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp2_ = store;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp3_ = tracker_result_store_has_results (_tmp2_);
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = !_tmp3_;
#line 1390 "tracker-needle.c"
	}
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = _tmp0_;
#line 351 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp4_) {
#line 1396 "tracker-needle.c"
		TrackerView* _tmp5_;
		TrackerView* _tmp6_;
		TrackerView* _tmp7_;
		TrackerView* _tmp8_;
#line 352 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp5_ = self->priv->sw_noresults;
#line 352 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 353 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp6_ = self->priv->sw_icons;
#line 353 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp6_);
#line 354 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp7_ = self->priv->sw_categories;
#line 354 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp7_);
#line 355 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp8_ = self->priv->sw_filelist;
#line 355 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp8_);
#line 1417 "tracker-needle.c"
	}
}


static GtkTreeIter* _gtk_tree_iter_dup (GtkTreeIter* self) {
	GtkTreeIter* dup;
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	dup = g_new0 (GtkTreeIter, 1);
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	memcpy (dup, self, sizeof (GtkTreeIter));
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return dup;
#line 1430 "tracker-needle.c"
}


static gpointer __gtk_tree_iter_dup0 (gpointer self) {
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return self ? _gtk_tree_iter_dup (self) : NULL;
#line 1437 "tracker-needle.c"
}


static GtkTreeIter* tracker_needle_search_history_find_or_insert (TrackerNeedle* self, const gchar* criteria, gboolean* add_to_model) {
	GtkTreeIter* result = NULL;
	const gchar* _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	GtkComboBoxEntry* _tmp3_;
	GtkComboBox* _tmp4_;
	GtkComboBox* combo;
	GtkComboBox* _tmp5_;
	GtkTreeModel* _tmp6_ = NULL;
	GtkTreeModel* _tmp7_;
	GtkTreeModel* model;
	const gchar* _tmp8_;
	gchar* _tmp9_ = NULL;
	gchar* criteria_folded;
	GtkTreeIter iter = {0};
	GtkTreeModel* _tmp10_;
	GtkTreeIter _tmp11_ = {0};
	gboolean _tmp12_ = FALSE;
	gboolean valid;
	gboolean* _tmp23_;
#line 359 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 359 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (criteria != NULL, NULL);
#line 360 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = criteria;
#line 360 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = strlen (_tmp0_);
#line 360 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = _tmp1_;
#line 360 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp2_ < 1) {
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		result = NULL;
#line 361 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return result;
#line 1478 "tracker-needle.c"
	}
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = self->priv->search_list;
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = _g_object_ref0 (GTK_IS_COMBO_BOX (_tmp3_) ? ((GtkComboBox*) _tmp3_) : NULL);
#line 364 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	combo = _tmp4_;
#line 365 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp5_ = combo;
#line 365 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp6_ = gtk_combo_box_get_model (_tmp5_);
#line 365 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 365 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	model = _tmp7_;
#line 366 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp8_ = criteria;
#line 366 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp9_ = g_utf8_casefold (_tmp8_, (gssize) (-1));
#line 366 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	criteria_folded = _tmp9_;
#line 369 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp10_ = model;
#line 369 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp12_ = gtk_tree_model_iter_children (_tmp10_, &_tmp11_, NULL);
#line 369 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	iter = _tmp11_;
#line 369 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	valid = _tmp12_;
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	while (TRUE) {
#line 1510 "tracker-needle.c"
		gboolean _tmp13_;
		gchar* text = NULL;
		GtkTreeModel* _tmp14_;
		GtkTreeIter _tmp15_;
		const gchar* _tmp16_;
		gchar* _tmp17_ = NULL;
		gchar* text_folded;
		const gchar* _tmp18_;
		const gchar* _tmp19_;
		GtkTreeModel* _tmp21_;
		gboolean _tmp22_ = FALSE;
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp13_ = valid;
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (!_tmp13_) {
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			break;
#line 1528 "tracker-needle.c"
		}
#line 374 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp14_ = model;
#line 374 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp15_ = iter;
#line 374 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_tree_model_get (_tmp14_, &_tmp15_, 0, &text, -1, -1);
#line 376 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp16_ = text;
#line 376 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp17_ = g_utf8_casefold (_tmp16_, (gssize) (-1));
#line 376 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		text_folded = _tmp17_;
#line 378 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp18_ = text_folded;
#line 378 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp19_ = criteria_folded;
#line 378 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (g_strcmp0 (_tmp18_, _tmp19_) == 0) {
#line 1548 "tracker-needle.c"
			GtkTreeIter* _tmp20_;
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp20_ = __gtk_tree_iter_dup0 (&iter);
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			result = _tmp20_;
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_free0 (text_folded);
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_free0 (text);
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_free0 (criteria_folded);
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (model);
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (combo);
#line 379 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			return result;
#line 1566 "tracker-needle.c"
		}
#line 382 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp21_ = model;
#line 382 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp22_ = gtk_tree_model_iter_next (_tmp21_, &iter);
#line 382 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		valid = _tmp22_;
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (text_folded);
#line 371 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (text);
#line 1578 "tracker-needle.c"
	}
#line 385 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp23_ = add_to_model;
#line 385 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (*_tmp23_) {
#line 1584 "tracker-needle.c"
		GtkTreeIter new_iter = {0};
		GtkTreeModel* _tmp24_;
		GtkListStore* _tmp25_;
		GtkListStore* store;
		GtkListStore* _tmp26_;
		GtkTreeIter _tmp27_ = {0};
		GtkListStore* _tmp28_;
		GtkTreeIter _tmp29_;
		const gchar* _tmp30_;
		TrackerHistory* _tmp31_;
		const gchar* _tmp32_;
#line 388 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp24_ = model;
#line 388 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp25_ = _g_object_ref0 (GTK_LIST_STORE (_tmp24_));
#line 388 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		store = _tmp25_;
#line 389 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp26_ = store;
#line 389 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_list_store_prepend (_tmp26_, &_tmp27_);
#line 389 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		new_iter = _tmp27_;
#line 390 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp28_ = store;
#line 390 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp29_ = new_iter;
#line 390 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp30_ = criteria;
#line 390 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_list_store_set (_tmp28_, &_tmp29_, 0, _tmp30_, -1, -1);
#line 392 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp31_ = self->priv->history;
#line 392 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp32_ = criteria;
#line 392 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_history_add (_tmp31_, _tmp32_);
#line 385 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_object_unref0 (store);
#line 1624 "tracker-needle.c"
	}
#line 395 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	result = NULL;
#line 395 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_free0 (criteria_folded);
#line 395 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (model);
#line 395 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (combo);
#line 395 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return result;
#line 1636 "tracker-needle.c"
}


static void tracker_needle_search_history_insert (TrackerNeedle* self, gchar** history, int history_length1) {
	gchar** _tmp0_;
	gint _tmp0__length1;
#line 398 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = history;
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0__length1 = history_length1;
#line 1649 "tracker-needle.c"
	{
		gchar** criteria_collection = NULL;
		gint criteria_collection_length1 = 0;
		gint _criteria_collection_size_ = 0;
		gint criteria_it = 0;
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		criteria_collection = _tmp0_;
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		criteria_collection_length1 = _tmp0__length1;
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		for (criteria_it = 0; criteria_it < _tmp0__length1; criteria_it = criteria_it + 1) {
#line 1661 "tracker-needle.c"
			gchar* _tmp1_;
			gchar* criteria = NULL;
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp1_ = g_strdup (criteria_collection[criteria_it]);
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			criteria = _tmp1_;
#line 1668 "tracker-needle.c"
			{
				const gchar* _tmp2_;
				gboolean _tmp3_;
				GtkTreeIter* _tmp4_ = NULL;
				GtkTreeIter* _tmp5_;
#line 400 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp2_ = criteria;
#line 400 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp3_ = TRUE;
#line 400 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp4_ = tracker_needle_search_history_find_or_insert (self, _tmp2_, &_tmp3_);
#line 400 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp5_ = _tmp4_;
#line 400 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_g_free0 (_tmp5_);
#line 399 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_g_free0 (criteria);
#line 1686 "tracker-needle.c"
			}
		}
	}
}


static gchar* string_strip (const gchar* self) {
	gchar* result = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _result_;
	const gchar* _tmp1_;
#line 1229 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1230 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1230 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1231 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1231 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_strstrip (_tmp1_);
#line 1232 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	result = _result_;
#line 1232 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	return result;
#line 1712 "tracker-needle.c"
}


static gboolean tracker_needle_search_run (TrackerNeedle* self) {
	gboolean result = FALSE;
	GtkEntry* _tmp0_;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	gchar* str;
	const gchar* _tmp3_;
	gchar* _tmp4_ = NULL;
	gchar* criteria;
	TrackerResultStore* store;
	const gchar* _tmp5_;
	gint _tmp6_;
	gint _tmp7_;
	const gchar* _tmp17_;
	gboolean _tmp18_;
	GtkTreeIter* _tmp19_ = NULL;
	GtkTreeIter* _tmp20_;
	TrackerView* _tmp21_;
	GtkToggleToolButton* _tmp22_;
	gboolean _tmp23_;
	gboolean _tmp24_;
	GtkToggleToolButton* _tmp36_;
	gboolean _tmp37_;
	gboolean _tmp38_;
	GtkToggleToolButton* _tmp43_;
	gboolean _tmp44_;
	gboolean _tmp45_;
	TrackerResultStore* _tmp57_;
#line 404 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 405 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->last_search_id = (guint) 0;
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = self->priv->search;
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 407 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	str = _tmp2_;
#line 408 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = str;
#line 408 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = string_strip (_tmp3_);
#line 408 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	criteria = _tmp4_;
#line 409 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	store = NULL;
#line 411 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp5_ = criteria;
#line 411 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp6_ = strlen (_tmp5_);
#line 411 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp7_ = _tmp6_;
#line 411 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp7_ < 3) {
#line 1772 "tracker-needle.c"
		gboolean _tmp8_ = FALSE;
		GtkToggleToolButton* _tmp9_;
		gboolean _tmp10_;
		gboolean _tmp11_;
		gboolean _tmp15_;
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp9_ = self->priv->view_icons;
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp10_ = gtk_toggle_tool_button_get_active (_tmp9_);
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp11_ = _tmp10_;
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (!_tmp11_) {
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp8_ = TRUE;
#line 1788 "tracker-needle.c"
		} else {
			GtkToggleToolButton* _tmp12_;
			gboolean _tmp13_;
			gboolean _tmp14_;
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp12_ = self->priv->find_in_all;
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp13_ = gtk_toggle_tool_button_get_active (_tmp12_);
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp14_ = _tmp13_;
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp8_ = !_tmp14_;
#line 1801 "tracker-needle.c"
		}
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp15_ = _tmp8_;
#line 413 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_tmp15_) {
#line 1807 "tracker-needle.c"
			TrackerResultStore* _tmp16_;
#line 414 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp16_ = store;
#line 414 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			tracker_needle_search_finished (self, _tmp16_);
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			result = FALSE;
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (store);
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_free0 (criteria);
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_free0 (str);
#line 415 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			return result;
#line 1823 "tracker-needle.c"
		}
	}
#line 419 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp17_ = criteria;
#line 419 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp18_ = TRUE;
#line 419 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp19_ = tracker_needle_search_history_find_or_insert (self, _tmp17_, &_tmp18_);
#line 419 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp20_ = _tmp19_;
#line 419 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_free0 (_tmp20_);
#line 422 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp21_ = self->priv->sw_noresults;
#line 422 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_hide ((GtkWidget*) _tmp21_);
#line 424 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp22_ = self->priv->view_icons;
#line 424 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp23_ = gtk_toggle_tool_button_get_active (_tmp22_);
#line 424 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp24_ = _tmp23_;
#line 424 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp24_) {
#line 1848 "tracker-needle.c"
		TrackerView* _tmp25_;
		GtkToggleToolButton* _tmp26_;
		gboolean _tmp27_;
		gboolean _tmp28_;
		TrackerView* _tmp33_;
		TrackerResultStore* _tmp34_;
#line 425 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp25_ = self->priv->sw_icons;
#line 425 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_show ((GtkWidget*) _tmp25_);
#line 427 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp26_ = self->priv->find_in_all;
#line 427 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp27_ = gtk_toggle_tool_button_get_active (_tmp26_);
#line 427 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp28_ = _tmp27_;
#line 427 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_tmp28_) {
#line 1867 "tracker-needle.c"
			TrackerResultStore* _tmp29_;
			TrackerResultStore* _tmp30_;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp29_ = self->priv->images_model;
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp30_ = _g_object_ref0 (_tmp29_);
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (store);
#line 428 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			store = _tmp30_;
#line 1878 "tracker-needle.c"
		} else {
			TrackerResultStore* _tmp31_;
			TrackerResultStore* _tmp32_;
#line 430 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp31_ = self->priv->images_in_title_model;
#line 430 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp32_ = _g_object_ref0 (_tmp31_);
#line 430 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (store);
#line 430 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			store = _tmp32_;
#line 1890 "tracker-needle.c"
		}
#line 433 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp33_ = self->priv->sw_icons;
#line 433 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp34_ = store;
#line 433 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_view_set_store (_tmp33_, _tmp34_);
#line 1898 "tracker-needle.c"
	} else {
		TrackerView* _tmp35_;
#line 435 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp35_ = self->priv->sw_icons;
#line 435 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp35_);
#line 1905 "tracker-needle.c"
	}
#line 438 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp36_ = self->priv->view_categories;
#line 438 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp37_ = gtk_toggle_tool_button_get_active (_tmp36_);
#line 438 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp38_ = _tmp37_;
#line 438 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp38_) {
#line 1915 "tracker-needle.c"
		TrackerView* _tmp39_;
		TrackerResultStore* _tmp40_;
		TrackerResultStore* _tmp41_;
#line 439 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp39_ = self->priv->sw_categories;
#line 439 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_show ((GtkWidget*) _tmp39_);
#line 440 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp40_ = self->priv->categories_model;
#line 440 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp41_ = _g_object_ref0 (_tmp40_);
#line 440 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_object_unref0 (store);
#line 440 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		store = _tmp41_;
#line 1931 "tracker-needle.c"
	} else {
		TrackerView* _tmp42_;
#line 442 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp42_ = self->priv->sw_categories;
#line 442 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp42_);
#line 1938 "tracker-needle.c"
	}
#line 445 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp43_ = self->priv->view_filelist;
#line 445 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp44_ = gtk_toggle_tool_button_get_active (_tmp43_);
#line 445 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp45_ = _tmp44_;
#line 445 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp45_) {
#line 1948 "tracker-needle.c"
		TrackerView* _tmp46_;
		GtkToggleToolButton* _tmp47_;
		gboolean _tmp48_;
		gboolean _tmp49_;
		TrackerView* _tmp54_;
		TrackerResultStore* _tmp55_;
#line 446 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp46_ = self->priv->sw_filelist;
#line 446 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_show ((GtkWidget*) _tmp46_);
#line 448 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp47_ = self->priv->find_in_contents;
#line 448 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp48_ = gtk_toggle_tool_button_get_active (_tmp47_);
#line 448 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp49_ = _tmp48_;
#line 448 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_tmp49_) {
#line 1967 "tracker-needle.c"
			TrackerResultStore* _tmp50_;
			TrackerResultStore* _tmp51_;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp50_ = self->priv->files_model;
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp51_ = _g_object_ref0 (_tmp50_);
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (store);
#line 449 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			store = _tmp51_;
#line 1978 "tracker-needle.c"
		} else {
			TrackerResultStore* _tmp52_;
			TrackerResultStore* _tmp53_;
#line 451 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp52_ = self->priv->files_in_title_model;
#line 451 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp53_ = _g_object_ref0 (_tmp52_);
#line 451 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_object_unref0 (store);
#line 451 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			store = _tmp53_;
#line 1990 "tracker-needle.c"
		}
#line 454 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp54_ = self->priv->sw_filelist;
#line 454 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp55_ = store;
#line 454 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_view_set_store (_tmp54_, _tmp55_);
#line 1998 "tracker-needle.c"
	} else {
		TrackerView* _tmp56_;
#line 456 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp56_ = self->priv->sw_filelist;
#line 456 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp56_);
#line 2005 "tracker-needle.c"
	}
#line 459 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp57_ = store;
#line 459 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp57_ != NULL) {
#line 2011 "tracker-needle.c"
		TrackerResultStore* _tmp58_;
		GtkEntry* _tmp59_;
		const gchar* _tmp60_ = NULL;
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp58_ = store;
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp59_ = self->priv->search;
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp60_ = gtk_entry_get_text (_tmp59_);
#line 460 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_result_store_set_search_term (_tmp58_, _tmp60_);
#line 2023 "tracker-needle.c"
	}
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	result = FALSE;
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (store);
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_free0 (criteria);
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_free0 (str);
#line 463 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return result;
#line 2035 "tracker-needle.c"
}


static void tracker_needle_view_toggled (TrackerNeedle* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GtkToggleToolButton* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp8_;
	gboolean _tmp12_;
	gboolean _tmp13_ = FALSE;
	GtkToggleToolButton* _tmp14_;
	gboolean _tmp15_;
	gboolean _tmp16_;
	gboolean _tmp20_;
	TrackerView* _tmp30_;
	TrackerView* _tmp31_;
	TrackerView* _tmp32_;
	TrackerView* _tmp33_;
	gboolean _tmp34_ = FALSE;
	GtkToggleToolButton* _tmp35_;
	gboolean _tmp36_;
	gboolean _tmp37_;
	GtkSeparatorToolItem* _tmp41_;
	gboolean _tmp42_;
	GtkToggleToolButton* _tmp43_;
	GtkToggleToolButton* _tmp44_;
	gboolean _tmp45_;
	gboolean _tmp46_;
	gboolean _tmp47_ = FALSE;
	GtkToggleToolButton* _tmp48_;
	gboolean _tmp49_;
	gboolean _tmp50_;
	GtkToggleToolButton* _tmp54_;
	gboolean _tmp55_;
	GtkToggleToolButton* _tmp56_;
	GtkToggleToolButton* _tmp57_;
	gboolean _tmp58_;
	gboolean _tmp59_;
#line 466 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = self->priv->view_icons;
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = gtk_toggle_tool_button_get_active (_tmp2_);
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = _tmp3_;
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (!_tmp4_) {
#line 2086 "tracker-needle.c"
		GtkToggleToolButton* _tmp5_;
		gboolean _tmp6_;
		gboolean _tmp7_;
#line 468 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp5_ = self->priv->view_filelist;
#line 468 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp6_ = gtk_toggle_tool_button_get_active (_tmp5_);
#line 468 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp7_ = _tmp6_;
#line 468 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp1_ = !_tmp7_;
#line 2098 "tracker-needle.c"
	} else {
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp1_ = FALSE;
#line 2102 "tracker-needle.c"
	}
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp8_ = _tmp1_;
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp8_) {
#line 2108 "tracker-needle.c"
		GtkToggleToolButton* _tmp9_;
		gboolean _tmp10_;
		gboolean _tmp11_;
#line 469 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp9_ = self->priv->view_categories;
#line 469 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp10_ = gtk_toggle_tool_button_get_active (_tmp9_);
#line 469 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp11_ = _tmp10_;
#line 469 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = !_tmp11_;
#line 2120 "tracker-needle.c"
	} else {
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = FALSE;
#line 2124 "tracker-needle.c"
	}
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp12_ = _tmp0_;
#line 467 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp12_) {
#line 470 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return;
#line 2132 "tracker-needle.c"
	}
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp14_ = self->priv->view_categories;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp15_ = gtk_toggle_tool_button_get_active (_tmp14_);
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp16_ = _tmp15_;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp16_) {
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp13_ = TRUE;
#line 2144 "tracker-needle.c"
	} else {
		GtkToggleToolButton* _tmp17_;
		gboolean _tmp18_;
		gboolean _tmp19_;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp17_ = self->priv->view_filelist;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp18_ = gtk_toggle_tool_button_get_active (_tmp17_);
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp19_ = _tmp18_;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp13_ = _tmp19_;
#line 2157 "tracker-needle.c"
	}
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp20_ = _tmp13_;
#line 473 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp20_) {
#line 2163 "tracker-needle.c"
		gboolean _tmp21_;
#line 474 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp21_ = tracker_needle_current_find_in_filelist;
#line 474 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_tmp21_) {
#line 2169 "tracker-needle.c"
			GtkToggleToolButton* _tmp22_;
#line 475 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp22_ = self->priv->find_in_contents;
#line 475 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			gtk_toggle_tool_button_set_active (_tmp22_, TRUE);
#line 2175 "tracker-needle.c"
		} else {
			GtkToggleToolButton* _tmp23_;
#line 477 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp23_ = self->priv->find_in_titles;
#line 477 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			gtk_toggle_tool_button_set_active (_tmp23_, TRUE);
#line 2182 "tracker-needle.c"
		}
	} else {
		GtkToggleToolButton* _tmp24_;
		gboolean _tmp25_;
		gboolean _tmp26_;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp24_ = self->priv->view_icons;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp25_ = gtk_toggle_tool_button_get_active (_tmp24_);
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp26_ = _tmp25_;
#line 479 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_tmp26_) {
#line 2196 "tracker-needle.c"
			gboolean _tmp27_;
#line 480 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp27_ = tracker_needle_current_find_in_icons;
#line 480 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			if (_tmp27_) {
#line 2202 "tracker-needle.c"
				GtkToggleToolButton* _tmp28_;
#line 481 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp28_ = self->priv->find_in_titles;
#line 481 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				gtk_toggle_tool_button_set_active (_tmp28_, TRUE);
#line 2208 "tracker-needle.c"
			} else {
				GtkToggleToolButton* _tmp29_;
#line 483 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp29_ = self->priv->find_in_all;
#line 483 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				gtk_toggle_tool_button_set_active (_tmp29_, TRUE);
#line 2215 "tracker-needle.c"
			}
		}
	}
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp30_ = self->priv->sw_noresults;
#line 488 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_show ((GtkWidget*) _tmp30_);
#line 489 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp31_ = self->priv->sw_icons;
#line 489 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_hide ((GtkWidget*) _tmp31_);
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp32_ = self->priv->sw_filelist;
#line 490 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_hide ((GtkWidget*) _tmp32_);
#line 491 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp33_ = self->priv->sw_categories;
#line 491 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_hide ((GtkWidget*) _tmp33_);
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp35_ = self->priv->view_filelist;
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp36_ = gtk_toggle_tool_button_get_active (_tmp35_);
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp37_ = _tmp36_;
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp37_) {
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp34_ = TRUE;
#line 2245 "tracker-needle.c"
	} else {
		GtkToggleToolButton* _tmp38_;
		gboolean _tmp39_;
		gboolean _tmp40_;
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp38_ = self->priv->view_icons;
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp39_ = gtk_toggle_tool_button_get_active (_tmp38_);
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp40_ = _tmp39_;
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp34_ = _tmp40_;
#line 2258 "tracker-needle.c"
	}
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp41_ = self->priv->separator_secondary;
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp42_ = _tmp34_;
#line 494 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp41_, _tmp42_);
#line 495 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp43_ = self->priv->find_in_contents;
#line 495 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp44_ = self->priv->view_filelist;
#line 495 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp45_ = gtk_toggle_tool_button_get_active (_tmp44_);
#line 495 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp46_ = _tmp45_;
#line 495 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp43_, _tmp46_);
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp48_ = self->priv->view_filelist;
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp49_ = gtk_toggle_tool_button_get_active (_tmp48_);
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp50_ = _tmp49_;
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp50_) {
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp47_ = TRUE;
#line 2286 "tracker-needle.c"
	} else {
		GtkToggleToolButton* _tmp51_;
		gboolean _tmp52_;
		gboolean _tmp53_;
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp51_ = self->priv->view_icons;
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp52_ = gtk_toggle_tool_button_get_active (_tmp51_);
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp53_ = _tmp52_;
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp47_ = _tmp53_;
#line 2299 "tracker-needle.c"
	}
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp54_ = self->priv->find_in_titles;
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp55_ = _tmp47_;
#line 496 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp54_, _tmp55_);
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp56_ = self->priv->find_in_all;
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp57_ = self->priv->view_icons;
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp58_ = gtk_toggle_tool_button_get_active (_tmp57_);
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp59_ = _tmp58_;
#line 497 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp56_, _tmp59_);
#line 499 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_search_run (self);
#line 2319 "tracker-needle.c"
}


static void tracker_needle_find_in_toggled (TrackerNeedle* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GtkToggleToolButton* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp8_;
	gboolean _tmp12_;
	GtkToggleToolButton* _tmp13_;
	gboolean _tmp14_;
	gboolean _tmp15_;
	GtkToggleToolButton* _tmp25_;
	gboolean _tmp26_;
	gboolean _tmp27_;
#line 503 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = self->priv->find_in_contents;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = gtk_toggle_tool_button_get_active (_tmp2_);
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = _tmp3_;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (!_tmp4_) {
#line 2347 "tracker-needle.c"
		GtkToggleToolButton* _tmp5_;
		gboolean _tmp6_;
		gboolean _tmp7_;
#line 505 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp5_ = self->priv->find_in_titles;
#line 505 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp6_ = gtk_toggle_tool_button_get_active (_tmp5_);
#line 505 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp7_ = _tmp6_;
#line 505 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp1_ = !_tmp7_;
#line 2359 "tracker-needle.c"
	} else {
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp1_ = FALSE;
#line 2363 "tracker-needle.c"
	}
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp8_ = _tmp1_;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp8_) {
#line 2369 "tracker-needle.c"
		GtkToggleToolButton* _tmp9_;
		gboolean _tmp10_;
		gboolean _tmp11_;
#line 506 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp9_ = self->priv->find_in_all;
#line 506 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp10_ = gtk_toggle_tool_button_get_active (_tmp9_);
#line 506 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp11_ = _tmp10_;
#line 506 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = !_tmp11_;
#line 2381 "tracker-needle.c"
	} else {
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp0_ = FALSE;
#line 2385 "tracker-needle.c"
	}
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp12_ = _tmp0_;
#line 504 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp12_) {
#line 507 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return;
#line 2393 "tracker-needle.c"
	}
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp13_ = self->priv->find_in_contents;
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp14_ = gtk_toggle_tool_button_get_active (_tmp13_);
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp15_ = _tmp14_;
#line 510 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp15_) {
#line 2403 "tracker-needle.c"
		GtkToolItem* _tmp16_;
#line 511 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_debug ("tracker-needle.vala:511: Find in toggled to 'contents'");
#line 513 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp16_ = self->priv->search_entry;
#line 513 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp16_, TRUE);
#line 515 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_needle_search_run (self);
#line 2413 "tracker-needle.c"
	} else {
		GtkToggleToolButton* _tmp17_;
		gboolean _tmp18_;
		gboolean _tmp19_;
#line 516 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp17_ = self->priv->find_in_titles;
#line 516 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp18_ = gtk_toggle_tool_button_get_active (_tmp17_);
#line 516 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp19_ = _tmp18_;
#line 516 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_tmp19_) {
#line 2426 "tracker-needle.c"
			GtkToolItem* _tmp20_;
#line 517 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			g_debug ("tracker-needle.vala:517: Find in toggled to 'titles'");
#line 519 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp20_ = self->priv->search_entry;
#line 519 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			gtk_widget_set_sensitive ((GtkWidget*) _tmp20_, TRUE);
#line 521 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			tracker_needle_search_run (self);
#line 2436 "tracker-needle.c"
		} else {
			GtkToggleToolButton* _tmp21_;
			gboolean _tmp22_;
			gboolean _tmp23_;
#line 522 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp21_ = self->priv->find_in_all;
#line 522 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp22_ = gtk_toggle_tool_button_get_active (_tmp21_);
#line 522 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp23_ = _tmp22_;
#line 522 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			if (_tmp23_) {
#line 2449 "tracker-needle.c"
				GtkToolItem* _tmp24_;
#line 523 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				g_debug ("tracker-needle.vala:523: Find in toggled to 'all'");
#line 526 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				_tmp24_ = self->priv->search_entry;
#line 526 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				gtk_widget_set_sensitive ((GtkWidget*) _tmp24_, FALSE);
#line 528 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
				tracker_needle_search_run (self);
#line 2459 "tracker-needle.c"
			}
		}
	}
#line 531 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp25_ = self->priv->view_filelist;
#line 531 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp26_ = gtk_toggle_tool_button_get_active (_tmp25_);
#line 531 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp27_ = _tmp26_;
#line 531 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp27_) {
#line 2471 "tracker-needle.c"
		GtkToggleToolButton* _tmp28_;
		gboolean _tmp29_;
		gboolean _tmp30_;
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp28_ = self->priv->find_in_contents;
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp29_ = gtk_toggle_tool_button_get_active (_tmp28_);
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp30_ = _tmp29_;
#line 532 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_needle_current_find_in_filelist = _tmp30_;
#line 2483 "tracker-needle.c"
	} else {
		GtkToggleToolButton* _tmp31_;
		gboolean _tmp32_;
		gboolean _tmp33_;
#line 533 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp31_ = self->priv->view_icons;
#line 533 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp32_ = gtk_toggle_tool_button_get_active (_tmp31_);
#line 533 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp33_ = _tmp32_;
#line 533 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_tmp33_) {
#line 2496 "tracker-needle.c"
			GtkToggleToolButton* _tmp34_;
			gboolean _tmp35_;
			gboolean _tmp36_;
#line 534 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp34_ = self->priv->find_in_titles;
#line 534 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp35_ = gtk_toggle_tool_button_get_active (_tmp34_);
#line 534 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp36_ = _tmp35_;
#line 534 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			tracker_needle_current_find_in_icons = _tmp36_;
#line 2508 "tracker-needle.c"
		}
	}
}


static gint string_index_of (const gchar* self, const gchar* needle, gint start_index) {
	gint result = 0;
	gint _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* _result_;
	gchar* _tmp3_;
#line 1055 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 1055 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, 0);
#line 1056 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 1056 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp1_ = needle;
#line 1056 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp2_ = strstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_);
#line 1056 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 1058 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 1058 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 2537 "tracker-needle.c"
		gchar* _tmp4_;
#line 1059 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 1059 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 1059 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		return result;
#line 2545 "tracker-needle.c"
	} else {
#line 1061 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		result = -1;
#line 1061 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		return result;
#line 2551 "tracker-needle.c"
	}
}


static void tracker_needle_launch_selected (TrackerNeedle* self, GtkTreeModel* model, GtkTreePath* path, gint col) {
	GtkTreeIter iter = {0};
	GtkTreeModel* _tmp0_;
	GtkTreePath* _tmp1_;
	GtkTreeIter _tmp2_ = {0};
	const gchar* uri = NULL;
	GtkTreeModel* _tmp3_;
	GtkTreeIter _tmp4_;
	gint _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gint _tmp9_ = 0;
	GError * _inner_error_ = NULL;
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (model != NULL);
#line 538 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (path != NULL);
#line 540 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = model;
#line 540 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = path;
#line 540 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_tree_model_get_iter (_tmp0_, &_tmp2_, _tmp1_);
#line 540 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	iter = _tmp2_;
#line 543 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = model;
#line 543 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp4_ = iter;
#line 543 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp5_ = col;
#line 543 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_tree_model_get (_tmp3_, &_tmp4_, _tmp5_, &uri, -1);
#line 545 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp6_ = uri;
#line 545 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp6_ == NULL) {
#line 546 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return;
#line 2598 "tracker-needle.c"
	}
#line 549 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp7_ = uri;
#line 549 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_debug ("tracker-needle.vala:549: Selected uri:'%s'", _tmp7_);
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp8_ = uri;
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp9_ = string_index_of (_tmp8_, "://", 0);
#line 553 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp9_ < 1) {
#line 2610 "tracker-needle.c"
		const gchar* _tmp10_;
		gchar** _tmp11_;
		gchar** _tmp12_ = NULL;
		gchar** command;
		gint command_length1;
		gint _command_size_;
		gchar** _tmp13_;
		gint _tmp13__length1;
		const gchar* _tmp14_;
		GPid child_pid = 0;
		gchar** _tmp15_ = NULL;
		gchar** argv;
		gint argv_length1;
		gint _argv_size_;
		gchar** _tmp16_;
		gint _tmp16__length1;
		gchar** _tmp17_;
		gint _tmp17__length1;
		const gchar* _tmp18_;
		gchar* _tmp19_;
		gchar* _tmp20_;
		GPid _tmp30_;
#line 554 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp10_ = uri;
#line 554 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp12_ = _tmp11_ = g_strsplit (_tmp10_, " ", 0);
#line 554 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		command = _tmp12_;
#line 554 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		command_length1 = _vala_array_length (_tmp11_);
#line 554 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_command_size_ = command_length1;
#line 555 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp13_ = command;
#line 555 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp13__length1 = command_length1;
#line 555 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp14_ = _tmp13_[0];
#line 555 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_debug ("tracker-needle.vala:555: Attempting to spawn_async() '%s'", _tmp14_);
#line 558 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp15_ = g_new0 (gchar*, 1 + 1);
#line 558 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		argv = _tmp15_;
#line 558 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		argv_length1 = 1;
#line 558 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_argv_size_ = argv_length1;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp16_ = argv;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp16__length1 = argv_length1;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp17_ = command;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp17__length1 = command_length1;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp18_ = _tmp17_[0];
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp19_ = g_strdup (_tmp18_);
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp16_[0]);
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp16_[0] = _tmp19_;
#line 559 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp20_ = _tmp16_[0];
#line 2677 "tracker-needle.c"
		{
			gchar** _tmp21_;
			gint _tmp21__length1;
			GPid _tmp22_ = 0;
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp21_ = argv;
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp21__length1 = argv_length1;
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			g_spawn_async ("/usr/bin", _tmp21_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp22_, &_inner_error_);
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			child_pid = _tmp22_;
#line 562 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			if (_inner_error_ != NULL) {
#line 2692 "tracker-needle.c"
				goto __catch21_g_error;
			}
		}
		goto __finally21;
		__catch21_g_error:
		{
			GError* e = NULL;
			gchar** _tmp23_;
			gint _tmp23__length1;
			const gchar* _tmp24_;
			GError* _tmp25_;
			gint _tmp26_;
			GError* _tmp27_;
			gint _tmp28_;
			const gchar* _tmp29_ = NULL;
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			e = _inner_error_;
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_inner_error_ = NULL;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp23_ = command;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp23__length1 = command_length1;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp24_ = _tmp23_[0];
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp25_ = e;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp26_ = _tmp25_->code;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp27_ = e;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp28_ = _tmp27_->code;
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_tmp29_ = g_strerror (_tmp28_);
#line 569 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			g_warning ("tracker-needle.vala:569: Could not launch '%s', %d->%s", _tmp24_, _tmp26_, _tmp29_);
#line 570 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			_g_error_free0 (e);
#line 570 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
#line 570 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			command = (_vala_array_free (command, command_length1, (GDestroyNotify) g_free), NULL);
#line 570 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			return;
#line 2738 "tracker-needle.c"
		}
		__finally21:
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_inner_error_ != NULL) {
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			command = (_vala_array_free (command, command_length1, (GDestroyNotify) g_free), NULL);
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			g_clear_error (&_inner_error_);
#line 561 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			return;
#line 2753 "tracker-needle.c"
		}
#line 573 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp30_ = child_pid;
#line 573 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_debug ("tracker-needle.vala:573: Launched application with PID:%d", (gint) _tmp30_);
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		command = (_vala_array_free (command, command_length1, (GDestroyNotify) g_free), NULL);
#line 574 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return;
#line 2765 "tracker-needle.c"
	}
	{
		const gchar* _tmp31_;
		const gchar* _tmp32_;
#line 578 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp31_ = uri;
#line 578 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_debug ("tracker-needle.vala:578: Attempting to launch application for uri:'%s'", _tmp31_);
#line 579 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp32_ = uri;
#line 579 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_app_info_launch_default_for_uri (_tmp32_, NULL, &_inner_error_);
#line 579 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_inner_error_ != NULL) {
#line 2780 "tracker-needle.c"
			goto __catch22_g_error;
		}
	}
	goto __finally22;
	__catch22_g_error:
	{
		GError* e = NULL;
		GError* _tmp33_;
		const gchar* _tmp34_;
		gchar* _tmp35_;
		gchar* _tmp36_;
#line 577 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		e = _inner_error_;
#line 577 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_inner_error_ = NULL;
#line 581 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp33_ = e;
#line 581 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp34_ = _tmp33_->message;
#line 581 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp35_ = g_strconcat ("Could not launch application: ", _tmp34_, NULL);
#line 581 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp36_ = _tmp35_;
#line 581 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_warning ("tracker-needle.vala:581: %s", _tmp36_);
#line 581 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp36_);
#line 577 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_error_free0 (e);
#line 2810 "tracker-needle.c"
	}
	__finally22:
#line 577 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_inner_error_ != NULL) {
#line 577 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 577 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_clear_error (&_inner_error_);
#line 577 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return;
#line 2821 "tracker-needle.c"
	}
}


static void tracker_needle_view_row_selected (TrackerNeedle* self, GtkTreeView* view, GtkTreePath* path, GtkTreeViewColumn* column) {
	GtkTreeView* _tmp0_;
	GtkTreeModel* _tmp1_ = NULL;
	GtkTreeModel* _tmp2_;
	GtkTreeModel* model;
	GtkTreePath* _tmp3_;
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (view != NULL);
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (path != NULL);
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (column != NULL);
#line 586 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = view;
#line 586 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = gtk_tree_view_get_model (_tmp0_);
#line 586 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 586 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	model = _tmp2_;
#line 587 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = path;
#line 587 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_launch_selected (self, model, _tmp3_, 1);
#line 585 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (model);
#line 2854 "tracker-needle.c"
}


static void tracker_needle_icon_item_selected (TrackerNeedle* self, GtkIconView* view, GtkTreePath* path) {
	GtkIconView* _tmp0_;
	GtkTreeModel* _tmp1_ = NULL;
	GtkTreeModel* _tmp2_;
	GtkTreeModel* model;
	GtkTreePath* _tmp3_;
#line 590 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 590 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (view != NULL);
#line 590 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (path != NULL);
#line 591 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = view;
#line 591 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = gtk_icon_view_get_model (_tmp0_);
#line 591 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 591 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	model = _tmp2_;
#line 592 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp3_ = path;
#line 592 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_launch_selected (self, model, _tmp3_, 1);
#line 590 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (model);
#line 2884 "tracker-needle.c"
}


static void tracker_needle_show_tags_clicked (TrackerNeedle* self) {
	GtkToggleToolButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
#line 595 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = self->priv->show_tags;
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = gtk_toggle_tool_button_get_active (_tmp0_);
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp2_ = _tmp1_;
#line 596 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp2_) {
#line 2902 "tracker-needle.c"
		TrackerTagList* _tmp3_;
#line 597 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_debug ("tracker-needle.vala:597: Showing tags");
#line 598 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp3_ = self->priv->taglist;
#line 598 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_show ((GtkWidget*) _tmp3_);
#line 2910 "tracker-needle.c"
	} else {
		TrackerTagList* _tmp4_;
#line 600 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_debug ("tracker-needle.vala:600: Hiding tags");
#line 601 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp4_ = self->priv->taglist;
#line 601 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		gtk_widget_hide ((GtkWidget*) _tmp4_);
#line 2919 "tracker-needle.c"
	}
}


static void tracker_needle_show_stats_clicked (TrackerNeedle* self) {
	TrackerStats* _tmp0_;
	TrackerStats* _tmp1_;
	TrackerStats* s;
#line 605 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (self != NULL);
#line 606 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_debug ("tracker-needle.vala:606: Showing stats dialog");
#line 607 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = tracker_stats_new ();
#line 607 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = g_object_ref_sink (_tmp0_);
#line 607 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	s = _tmp1_;
#line 608 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_widget_show ((GtkWidget*) s);
#line 605 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (s);
#line 2942 "tracker-needle.c"
}


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


static void tracker_value_needle_free_value (GValue* value) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (value->data[0].v_pointer) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_needle_unref (value->data[0].v_pointer);
#line 2958 "tracker-needle.c"
	}
}


static void tracker_value_needle_copy_value (const GValue* src_value, GValue* dest_value) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (src_value->data[0].v_pointer) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		dest_value->data[0].v_pointer = tracker_needle_ref (src_value->data[0].v_pointer);
#line 2968 "tracker-needle.c"
	} else {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		dest_value->data[0].v_pointer = NULL;
#line 2972 "tracker-needle.c"
	}
}


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


static gchar* tracker_value_needle_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (collect_values[0].v_pointer) {
#line 2987 "tracker-needle.c"
		TrackerNeedle* object;
		object = collect_values[0].v_pointer;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (object->parent_instance.g_class == NULL) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2994 "tracker-needle.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.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 2998 "tracker-needle.c"
		}
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		value->data[0].v_pointer = tracker_needle_ref (object);
#line 3002 "tracker-needle.c"
	} else {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		value->data[0].v_pointer = NULL;
#line 3006 "tracker-needle.c"
	}
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return NULL;
#line 3010 "tracker-needle.c"
}


static gchar* tracker_value_needle_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TrackerNeedle** object_p;
	object_p = collect_values[0].v_pointer;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (!object_p) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 3021 "tracker-needle.c"
	}
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (!value->data[0].v_pointer) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		*object_p = NULL;
#line 3027 "tracker-needle.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		*object_p = value->data[0].v_pointer;
#line 3031 "tracker-needle.c"
	} else {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		*object_p = tracker_needle_ref (value->data[0].v_pointer);
#line 3035 "tracker-needle.c"
	}
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return NULL;
#line 3039 "tracker-needle.c"
}


GParamSpec* tracker_param_spec_needle (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	TrackerParamSpecNeedle* spec;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TRACKER_TYPE_NEEDLE), NULL);
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return G_PARAM_SPEC (spec);
#line 3053 "tracker-needle.c"
}


gpointer tracker_value_get_needle (const GValue* value) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_NEEDLE), NULL);
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return value->data[0].v_pointer;
#line 3062 "tracker-needle.c"
}


void tracker_value_set_needle (GValue* value, gpointer v_object) {
	TrackerNeedle* old;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_NEEDLE));
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	old = value->data[0].v_pointer;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (v_object) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_NEEDLE));
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		value->data[0].v_pointer = v_object;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_needle_ref (value->data[0].v_pointer);
#line 3082 "tracker-needle.c"
	} else {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		value->data[0].v_pointer = NULL;
#line 3086 "tracker-needle.c"
	}
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (old) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_needle_unref (old);
#line 3092 "tracker-needle.c"
	}
}


void tracker_value_take_needle (GValue* value, gpointer v_object) {
	TrackerNeedle* old;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_NEEDLE));
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	old = value->data[0].v_pointer;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (v_object) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_NEEDLE));
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		value->data[0].v_pointer = v_object;
#line 3111 "tracker-needle.c"
	} else {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		value->data[0].v_pointer = NULL;
#line 3115 "tracker-needle.c"
	}
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (old) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		tracker_needle_unref (old);
#line 3121 "tracker-needle.c"
	}
}


static void tracker_needle_class_init (TrackerNeedleClass * klass) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_parent_class = g_type_class_peek_parent (klass);
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	TRACKER_NEEDLE_CLASS (klass)->finalize = tracker_needle_finalize;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_type_class_add_private (klass, sizeof (TrackerNeedlePrivate));
#line 3133 "tracker-needle.c"
}


static void tracker_needle_instance_init (TrackerNeedle * self) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv = TRACKER_NEEDLE_GET_PRIVATE (self);
#line 52 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->last_search_id = (guint) 0;
#line 53 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->size_small = 0;
#line 54 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->size_medium = 0;
#line 55 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->priv->size_big = 0;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self->ref_count = 1;
#line 3150 "tracker-needle.c"
}


static void tracker_needle_finalize (TrackerNeedle* obj) {
	TrackerNeedle * self;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	self = TRACKER_NEEDLE (obj);
#line 30 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tracker_history_unref0 (self->priv->history);
#line 31 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->window);
#line 32 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view_categories);
#line 33 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view_filelist);
#line 34 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view_icons);
#line 35 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->separator_secondary);
#line 36 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->find_in_contents);
#line 37 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->find_in_titles);
#line 38 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->find_in_all);
#line 39 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->search_entry);
#line 40 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->search_list);
#line 41 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->search);
#line 42 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->spinner);
#line 43 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->spinner_shell);
#line 44 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->show_tags);
#line 45 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->show_stats);
#line 46 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->view);
#line 47 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_noresults);
#line 48 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_categories);
#line 49 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_filelist);
#line 50 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->sw_icons);
#line 51 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->taglist);
#line 59 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->categories_model);
#line 60 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->files_model);
#line 61 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->files_in_title_model);
#line 62 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->images_model);
#line 63 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_object_unref0 (self->priv->images_in_title_model);
#line 3212 "tracker-needle.c"
}


GType tracker_needle_get_type (void) {
	static volatile gsize tracker_needle_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_needle_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { tracker_value_needle_init, tracker_value_needle_free_value, tracker_value_needle_copy_value, tracker_value_needle_peek_pointer, "p", tracker_value_needle_collect_value, "p", tracker_value_needle_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TrackerNeedleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_needle_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerNeedle), 0, (GInstanceInitFunc) tracker_needle_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_needle_type_id;
		tracker_needle_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TrackerNeedle", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&tracker_needle_type_id__volatile, tracker_needle_type_id);
	}
	return tracker_needle_type_id__volatile;
}


gpointer tracker_needle_ref (gpointer instance) {
	TrackerNeedle* self;
	self = instance;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_atomic_int_inc (&self->ref_count);
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return instance;
#line 3237 "tracker-needle.c"
}


void tracker_needle_unref (gpointer instance) {
	TrackerNeedle* self;
	self = instance;
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		TRACKER_NEEDLE_GET_CLASS (self)->finalize (self);
#line 28 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 3250 "tracker-needle.c"
	}
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	const gchar* _tmp0_ = NULL;
	GOptionContext* _tmp1_;
	GOptionContext* context;
	gboolean _tmp14_;
	TrackerNeedle* _tmp39_;
	TrackerNeedle* n;
	TrackerNeedle* _tmp40_;
	TrackerNeedle* _tmp41_;
	gchar** _tmp42_;
	gint _tmp42__length1;
	GError * _inner_error_ = NULL;
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp0_ = _ ("Desktop Search user interface using Tracker");
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp1_ = g_option_context_new (_tmp0_);
#line 635 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	context = _tmp1_;
#line 3274 "tracker-needle.c"
	{
		GOptionContext* _tmp2_;
		GOptionContext* _tmp3_;
		GOptionContext* _tmp4_;
		GOptionGroup* _tmp5_ = NULL;
		GOptionContext* _tmp6_;
#line 638 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp2_ = context;
#line 638 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_option_context_set_help_enabled (_tmp2_, TRUE);
#line 639 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp3_ = context;
#line 639 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_option_context_add_main_entries (_tmp3_, options, NULL);
#line 640 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp4_ = context;
#line 640 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp5_ = gtk_get_option_group (TRUE);
#line 640 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_option_context_add_group (_tmp4_, _tmp5_);
#line 641 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp6_ = context;
#line 641 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_option_context_parse (_tmp6_, &args_length1, &args, &_inner_error_);
#line 641 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		if (_inner_error_ != NULL) {
#line 3301 "tracker-needle.c"
			goto __catch23_g_error;
		}
	}
	goto __finally23;
	__catch23_g_error:
	{
		GError* e = NULL;
		GError* _tmp7_;
		const gchar* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
		GOptionContext* _tmp11_;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_;
#line 637 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		e = _inner_error_;
#line 637 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_inner_error_ = NULL;
#line 643 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp7_ = e;
#line 643 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp8_ = _tmp7_->message;
#line 643 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp9_ = g_strconcat (_tmp8_, "\n\n", NULL);
#line 643 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp10_ = _tmp9_;
#line 643 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_printerr ("%s", _tmp10_);
#line 643 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp10_);
#line 644 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp11_ = context;
#line 644 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp12_ = g_option_context_get_help (_tmp11_, TRUE, NULL);
#line 644 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp13_ = _tmp12_;
#line 644 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_printerr ("%s", _tmp13_);
#line 644 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp13_);
#line 645 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		result = 1;
#line 645 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_error_free0 (e);
#line 645 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_option_context_free0 (context);
#line 645 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return result;
#line 3350 "tracker-needle.c"
	}
	__finally23:
#line 637 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_inner_error_ != NULL) {
#line 637 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_option_context_free0 (context);
#line 637 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 637 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_clear_error (&_inner_error_);
#line 637 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return 0;
#line 3363 "tracker-needle.c"
	}
#line 648 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp14_ = print_version;
#line 648 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	if (_tmp14_) {
#line 3369 "tracker-needle.c"
		gchar* _tmp15_;
		gchar* about;
		gchar* _tmp16_;
		gchar* license;
		const gchar* _tmp17_;
		gchar* _tmp18_;
		const gchar* _tmp19_;
		gchar* _tmp20_;
		const gchar* _tmp21_;
		gchar* _tmp22_;
		const gchar* _tmp23_;
		gchar* _tmp24_;
		const gchar* _tmp25_;
		gchar* _tmp26_;
		const gchar* _tmp27_;
		gchar* _tmp28_;
		const gchar* _tmp29_;
		gchar* _tmp30_;
		gchar* _tmp31_;
		gchar* _tmp32_;
		gchar* _tmp33_;
		const gchar* _tmp34_;
		gchar* _tmp35_;
		gchar* _tmp36_;
		gchar* _tmp37_;
		gchar* _tmp38_;
#line 649 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp15_ = g_strdup ("");
#line 649 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		about = _tmp15_;
#line 650 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp16_ = g_strdup ("");
#line 650 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		license = _tmp16_;
#line 652 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp17_ = about;
#line 652 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp18_ = g_strconcat (_tmp17_, "Tracker " PACKAGE_VERSION "\n", NULL);
#line 652 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (about);
#line 652 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		about = _tmp18_;
#line 654 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp19_ = license;
#line 654 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp20_ = g_strconcat (_tmp19_, "This program is free software and comes without any warranty.\n", NULL);
#line 654 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (license);
#line 654 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		license = _tmp20_;
#line 655 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp21_ = license;
#line 655 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp22_ = g_strconcat (_tmp21_, "It is licensed under version 2 or later of the General Public ", NULL);
#line 655 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (license);
#line 655 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		license = _tmp22_;
#line 656 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp23_ = license;
#line 656 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp24_ = g_strconcat (_tmp23_, "License which can be viewed at:\n", NULL);
#line 656 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (license);
#line 656 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		license = _tmp24_;
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp25_ = license;
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp26_ = g_strconcat (_tmp25_, "\n", NULL);
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (license);
#line 657 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		license = _tmp26_;
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp27_ = license;
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp28_ = g_strconcat (_tmp27_, "  http://www.gnu.org/licenses/gpl.txt\n", NULL);
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (license);
#line 658 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		license = _tmp28_;
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp29_ = about;
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp30_ = g_strconcat ("\n", _tmp29_, NULL);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp31_ = _tmp30_;
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp32_ = g_strconcat (_tmp31_, "\n", NULL);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp33_ = _tmp32_;
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp34_ = license;
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp35_ = g_strconcat (_tmp33_, _tmp34_, NULL);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp36_ = _tmp35_;
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp37_ = g_strconcat (_tmp36_, "\n", NULL);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_tmp38_ = _tmp37_;
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		g_print ("%s", _tmp38_);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp38_);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp36_);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp33_);
#line 660 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (_tmp31_);
#line 661 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		result = 0;
#line 661 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (license);
#line 661 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_free0 (about);
#line 661 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		_g_option_context_free0 (context);
#line 661 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
		return result;
#line 3492 "tracker-needle.c"
	}
#line 664 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_init (&args_length1, &args);
#line 666 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
#line 667 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#line 668 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	textdomain (GETTEXT_PACKAGE);
#line 670 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp39_ = tracker_needle_new ();
#line 670 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	n = _tmp39_;
#line 671 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp40_ = n;
#line 671 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_show (_tmp40_);
#line 673 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp41_ = n;
#line 673 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp42_ = search_criteria;
#line 673 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tmp42__length1 = _vala_array_length (search_criteria);
#line 673 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	tracker_needle_set_search (_tmp41_, _tmp42_, _tmp42__length1);
#line 675 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	gtk_main ();
#line 677 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	result = 0;
#line 677 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_tracker_needle_unref0 (n);
#line 677 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	_g_option_context_free0 (context);
#line 677 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return result;
#line 3528 "tracker-needle.c"
}


int main (int argc, char ** argv) {
#line 634 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	g_type_init ();
#line 634 "/home/martyn/Source/tracker/src/tracker-needle/tracker-needle.vala"
	return _vala_main (argv, argc);
#line 3537 "tracker-needle.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);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



