tracker-0.16.2/src/tracker-preferences/tracker-preferences.c

Location Tool Test ID Function Issue
tracker-preferences.c:460:18 gcc unused-but-set-variable tracker_preferences_setup_ui variable '_tmp149_' set but not used
tracker-preferences.c:2251:7 gcc unused-but-set-variable tracker_preferences_button_reindex_clicked_cb variable 'status' set but not used
tracker-preferences.c:2379:8 gcc unused-variable tracker_preferences_toggles_update unused variable '_ud_collection_size_'
tracker-preferences.c:2723:9 gcc unused-but-set-variable tracker_preferences_store_add_dir variable '_matches_size_' set but not used
tracker-preferences.c:2987:10 gcc unused-but-set-variable tracker_preferences_store_del_dir variable '_matches_size_' set but not used
tracker-preferences.c:3183:10 gcc unused-but-set-variable tracker_preferences_dir_match_user_directories variable '_tmp10__length1' set but not used
tracker-preferences.c:3912:9 gcc unused-but-set-variable tracker_preferences_model_to_strv variable '_tmp20__length1' set but not used
tracker-preferences.c:4197:11 gcc unused-variable tracker_preferences_model_populate unused variable '_ud_collection_size_'
tracker-preferences.c:4475:23 gcc unused-but-set-variable ___lambda4_ variable 'self' set but not used
tracker-preferences.c:4940:16 gcc unused-but-set-variable tracker_preferences_sanitize_user_dirs variable '_tmp19__length1' set but not used

Incomplete coverage

Tool Failure ID Location Function Message Data
clang-analyzer no-output-found tracker-preferences.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
   1 /* tracker-preferences.c generated by valac 0.18.1, the Vala compiler
   2  * generated from tracker-preferences.vala, do not modify */
   3 
   4 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
   5 /*
   6  * Copyright (C) 2009, Nokia
   7  *
   8  * This library is free software; you can redistribute it and/or
   9  * modify it under the terms of the GNU General Public
  10  * License as published by the Free Software Foundation; either
  11  * version 2 of the License, or (at your option) any later version.
  12  *
  13  * This library is distributed in the hope that it will be useful,
  14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16  * General Public License for more details.
  17  *
  18  * You should have received a copy of the GNU General Public
  19  * License along with this library; if not, write to the
  20  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21  * Boston, MA  02110-1301, USA.
  22  */
  23 
  24 #include <glib.h>
  25 #include <glib-object.h>
  26 #include <gio/gio.h>
  27 #include <stdlib.h>
  28 #include <string.h>
  29 #include <gtk/gtk.h>
  30 #include <glib/gi18n-lib.h>
  31 #include <float.h>
  32 #include <math.h>
  33 #include <gmodule.h>
  34 #include <stdio.h>
  35 #include "config.h"
  36 #include <gobject/gvaluecollector.h>
  37 
  38 
  39 #define TRACKER_TYPE_PREFERENCES (tracker_preferences_get_type ())
  40 #define TRACKER_PREFERENCES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_PREFERENCES, TrackerPreferences))
  41 #define TRACKER_PREFERENCES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_PREFERENCES, TrackerPreferencesClass))
  42 #define TRACKER_IS_PREFERENCES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_PREFERENCES))
  43 #define TRACKER_IS_PREFERENCES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_PREFERENCES))
  44 #define TRACKER_PREFERENCES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_PREFERENCES, TrackerPreferencesClass))
  45 
  46 typedef struct _TrackerPreferences TrackerPreferences;
  47 typedef struct _TrackerPreferencesClass TrackerPreferencesClass;
  48 typedef struct _TrackerPreferencesPrivate TrackerPreferencesPrivate;
  49 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
  50 #define _g_free0(var) (var = (g_free (var), NULL))
  51 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
  52 #define _g_module_close0(var) ((var == NULL) ? NULL : (var = (g_module_close (var), NULL)))
  53 #define __g_list_free__gtk_tree_path_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__gtk_tree_path_free0_ (var), NULL)))
  54 #define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
  55 typedef struct _Block1Data Block1Data;
  56 #define _tracker_preferences_unref0(var) ((var == NULL) ? NULL : (var = (tracker_preferences_unref (var), NULL)))
  57 #define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
  58 typedef struct _TrackerParamSpecPreferences TrackerParamSpecPreferences;
  59 #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
  60 
  61 struct _TrackerPreferences {
  62 	GTypeInstance parent_instance;
  63 	volatile int ref_count;
  64 	TrackerPreferencesPrivate * priv;
  65 };
  66 
  67 struct _TrackerPreferencesClass {
  68 	GTypeClass parent_class;
  69 	void (*finalize) (TrackerPreferences *self);
  70 };
  71 
  72 struct _TrackerPreferencesPrivate {
  73 	GSettings* settings_miner_fs;
  74 	GSettings* settings_extract;
  75 	gchar* HOME_STRING_EVALUATED;
  76 	GUserDirectory* ignored_user_directories;
  77 	gint ignored_user_directories_length1;
  78 	gint _ignored_user_directories_size_;
  79 	GtkWindow* window;
  80 	GtkCheckButton* checkbutton_enable_index_on_battery_first_time;
  81 	GtkCheckButton* checkbutton_enable_index_on_battery;
  82 	GtkSpinButton* spinbutton_delay;
  83 	GtkCheckButton* checkbutton_enable_monitoring;
  84 	GtkCheckButton* checkbutton_index_removable_media;
  85 	GtkCheckButton* checkbutton_index_optical_discs;
  86 	GtkScale* hscale_disk_space_limit;
  87 	GtkRadioButton* radiobutton_sched_idle_always;
  88 	GtkRadioButton* radiobutton_sched_idle_first_index;
  89 	GtkRadioButton* radiobutton_sched_idle_never;
  90 	GtkScale* hscale_drop_device_threshold;
  91 	GtkListStore* liststore_index;
  92 	GtkListStore* liststore_ignored_directories;
  93 	GtkListStore* liststore_ignored_files;
  94 	GtkListStore* liststore_ignored_directories_with_content;
  95 	GtkTreeView* treeview_index;
  96 	GtkTreeView* treeview_ignored_directories;
  97 	GtkTreeView* treeview_ignored_directories_with_content;
  98 	GtkTreeView* treeview_ignored_files;
  99 	GtkTreeViewColumn* treeviewcolumn_index1;
 100 	GtkTreeViewColumn* treeviewcolumn_index2;
 101 	GtkToggleButton* togglebutton_home;
 102 	GtkToggleButton* togglebutton_desktop;
 103 	GtkToggleButton* togglebutton_documents;
 104 	GtkToggleButton* togglebutton_music;
 105 	GtkToggleButton* togglebutton_pictures;
 106 	GtkToggleButton* togglebutton_videos;
 107 	GtkToggleButton* togglebutton_download;
 108 	GtkHBox* hbox_duplicate_warning;
 109 	GtkButton* button_reindex;
 110 	GtkNotebook* notebook;
 111 };
 112 
 113 struct _Block1Data {
 114 	int _ref_count_;
 115 	TrackerPreferences * self;
 116 	GtkListStore* store;
 117 };
 118 
 119 struct _TrackerParamSpecPreferences {
 120 	GParamSpec parent_instance;
 121 };
 122 
 123 
 124 static gpointer tracker_preferences_parent_class = NULL;
 125 extern gboolean print_version;
 126 gboolean print_version = FALSE;
 127 
 128 gpointer tracker_preferences_ref (gpointer instance);
 129 void tracker_preferences_unref (gpointer instance);
 130 GParamSpec* tracker_param_spec_preferences (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
 131 void tracker_value_set_preferences (GValue* value, gpointer v_object);
 132 void tracker_value_take_preferences (GValue* value, gpointer v_object);
 133 gpointer tracker_value_get_preferences (const GValue* value);
 134 GType tracker_preferences_get_type (void) G_GNUC_CONST;
 135 #define TRACKER_PREFERENCES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_PREFERENCES, TrackerPreferencesPrivate))
 136 enum  {
 137 	TRACKER_PREFERENCES_DUMMY_PROPERTY
 138 };
 139 #define TRACKER_PREFERENCES_UI_FILE "tracker-preferences.ui"
 140 #define TRACKER_PREFERENCES_HOME_STRING "$HOME"
 141 TrackerPreferences* tracker_preferences_new (void);
 142 TrackerPreferences* tracker_preferences_construct (GType object_type);
 143 static gchar* tracker_preferences_dir_from_config (TrackerPreferences* self, const gchar* input);
 144 static void __lambda2_ (TrackerPreferences* self, const gchar* key);
 145 static void ___lambda2__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
 146 static void __lambda3_ (TrackerPreferences* self, const gchar* key);
 147 static void ___lambda3__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
 148 void tracker_preferences_setup_ui (TrackerPreferences* self);
 149 static void tracker_preferences_treeview_setup (TrackerPreferences* self, GtkTreeView* view, const gchar* title, gboolean show_recurse_column, gboolean sort);
 150 static void tracker_preferences_sanitize_user_dirs (TrackerPreferences* self);
 151 static void tracker_preferences_model_populate (TrackerPreferences* self, GtkListStore* model, gchar** list, int list_length1, gboolean have_recurse, gboolean recurse);
 152 gboolean tracker_preferences_model_contains (TrackerPreferences* self, GtkTreeModel* model, const gchar* needle);
 153 static void tracker_preferences_connect_signals (GtkBuilder* builder, GObject* object, const gchar* signal_name, const gchar* handler_name, GObject* connect_object, GConnectFlags flags, TrackerPreferences* self);
 154 static void _tracker_preferences_connect_signals_gtk_builder_connect_func (GtkBuilder* builder, GObject* object, const gchar* signal_name, const gchar* handler_name, GObject* connect_object, GConnectFlags flags, gpointer self);
 155 void tracker_preferences_show (TrackerPreferences* self);
 156 void tracker_preferences_response_cb (GtkDialog* source, gint response_id, TrackerPreferences* self);
 157 static gchar** tracker_preferences_model_to_strv (TrackerPreferences* self, GtkListStore* model, gboolean recurse_required, gboolean recurse_value, int* result_length1);
 158 void tracker_preferences_spinbutton_delay_value_changed_cb (GtkSpinButton* source, TrackerPreferences* self);
 159 void tracker_preferences_checkbutton_enable_monitoring_toggled_cb (GtkCheckButton* source, TrackerPreferences* self);
 160 void tracker_preferences_checkbutton_enable_index_on_battery_toggled_cb (GtkCheckButton* source, TrackerPreferences* self);
 161 void tracker_preferences_checkbutton_enable_index_on_battery_first_time_toggled_cb (GtkCheckButton* source, TrackerPreferences* self);
 162 void tracker_preferences_checkbutton_index_removable_media_toggled_cb (GtkCheckButton* source, TrackerPreferences* self);
 163 void tracker_preferences_checkbutton_index_optical_discs_toggled_cb (GtkCheckButton* source, TrackerPreferences* self);
 164 gchar* tracker_preferences_hscale_disk_space_limit_format_value_cb (GtkScale* source, gdouble value, TrackerPreferences* self);
 165 gchar* tracker_preferences_hscale_drop_device_threshold_format_value_cb (GtkScale* source, gdouble value, TrackerPreferences* self);
 166 void tracker_preferences_button_index_add_clicked_cb (GtkButton* source, TrackerPreferences* self);
 167 static void tracker_preferences_store_add_dir (TrackerPreferences* self, GtkListStore* store);
 168 void tracker_preferences_button_index_remove_clicked_cb (GtkButton* source, TrackerPreferences* self);
 169 static void tracker_preferences_store_del_dir (TrackerPreferences* self, GtkTreeView* view);
 170 void tracker_preferences_button_ignored_directories_globs_add_clicked_cb (GtkButton* source, TrackerPreferences* self);
 171 static void tracker_preferences_store_add_value_dialog (TrackerPreferences* self, GtkListStore* store);
 172 void tracker_preferences_button_ignored_directories_add_clicked_cb (GtkButton* source, TrackerPreferences* self);
 173 void tracker_preferences_button_ignored_directories_remove_clicked_cb (GtkButton* source, TrackerPreferences* self);
 174 void tracker_preferences_button_ignored_directories_with_content_add_clicked_cb (GtkButton* source, TrackerPreferences* self);
 175 void tracker_preferences_button_ignored_directories_with_content_remove_clicked_cb (GtkButton* source, TrackerPreferences* self);
 176 void tracker_preferences_button_ignored_files_add_clicked_cb (GtkButton* source, TrackerPreferences* self);
 177 void tracker_preferences_button_ignored_files_remove_clicked_cb (GtkButton* source, TrackerPreferences* self);
 178 static void tracker_preferences_togglebutton_directory_update_model (TrackerPreferences* self, GtkToggleButton* source, GtkListStore* store, const gchar* to_check);
 179 void tracker_preferences_togglebutton_home_toggled_cb (GtkToggleButton* source, TrackerPreferences* self);
 180 void tracker_preferences_togglebutton_desktop_toggled_cb (GtkToggleButton* source, TrackerPreferences* self);
 181 void tracker_preferences_togglebutton_documents_toggled_cb (GtkToggleButton* source, TrackerPreferences* self);
 182 void tracker_preferences_togglebutton_music_toggled_cb (GtkToggleButton* source, TrackerPreferences* self);
 183 void tracker_preferences_togglebutton_pictures_toggled_cb (GtkToggleButton* source, TrackerPreferences* self);
 184 void tracker_preferences_togglebutton_videos_toggled_cb (GtkToggleButton* source, TrackerPreferences* self);
 185 void tracker_preferences_togglebutton_download_toggled_cb (GtkToggleButton* source, TrackerPreferences* self);
 186 void tracker_preferences_button_reindex_clicked_cb (GtkButton* source, TrackerPreferences* self);
 187 static void tracker_preferences_toggles_update (TrackerPreferences* self, GUserDirectory* matches, int matches_length1, gboolean active);
 188 static GUserDirectory* tracker_preferences_dir_match_user_directories (TrackerPreferences* self, const gchar* input, int* result_length1);
 189 static void _gtk_tree_path_free0_ (gpointer var);
 190 static void _g_list_free__gtk_tree_path_free0_ (GList* self);
 191 static void _vala_array_add1 (GUserDirectory** array, int* length, int* size, GUserDirectory value);
 192 static gchar* tracker_preferences_dir_to_config (TrackerPreferences* self, const gchar* input);
 193 const gchar* g_user_directory_to_string (GUserDirectory self);
 194 static const char* _g_user_directory_to_string (GUserDirectory value);
 195 static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value);
 196 static Block1Data* block1_data_ref (Block1Data* _data1_);
 197 static void block1_data_unref (void * _userdata_);
 198 static void ___lambda4_ (Block1Data* _data1_, GtkCellRendererToggle* toggle, const gchar* path);
 199 static void ____lambda4__gtk_cell_renderer_toggle_toggled (GtkCellRendererToggle* _sender, const gchar* path, gpointer self);
 200 static void _vala_array_add3 (gchar*** array, int* length, int* size, gchar* value);
 201 static void _vala_array_add4 (GUserDirectory** array, int* length, int* size, GUserDirectory value);
 202 static void _vala_array_add5 (gchar*** array, int* length, int* size, gchar* value);
 203 static void tracker_preferences_finalize (TrackerPreferences* obj);
 204 gint _vala_main (gchar** args, int args_length1);
 205 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
 206 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
 207 static gint _vala_array_length (gpointer array);
 208 
 209 const GOptionEntry options[2] = {{"version", 'V', 0, G_OPTION_ARG_NONE, &print_version, "Print version", NULL}, {NULL}};
 210 
 211 static void __lambda2_ (TrackerPreferences* self, const gchar* key) {
 212 	const gchar* _tmp0_;
 213 #line 83 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 214 	g_return_if_fail (key != NULL);
 215 #line 84 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 216 	_tmp0_ = key;
 217 #line 84 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 218 	g_print ("tracker-miner-fs: Key '%s' changed\n", _tmp0_);
 219 #line 220 "tracker-preferences.c"
 220 }
 221 
 222 
 223 static void ___lambda2__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
 224 #line 83 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 225 	__lambda2_ (self, key);
 226 #line 227 "tracker-preferences.c"
 227 }
 228 
 229 
 230 static void __lambda3_ (TrackerPreferences* self, const gchar* key) {
 231 	const gchar* _tmp0_;
 232 #line 87 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 233 	g_return_if_fail (key != NULL);
 234 #line 88 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 235 	_tmp0_ = key;
 236 #line 88 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 237 	g_print ("tracker-extract: Key '%s' changed\n", _tmp0_);
 238 #line 239 "tracker-preferences.c"
 239 }
 240 
 241 
 242 static void ___lambda3__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
 243 #line 87 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 244 	__lambda3_ (self, key);
 245 #line 246 "tracker-preferences.c"
 246 }
 247 
 248 
 249 TrackerPreferences* tracker_preferences_construct (GType object_type) {
 250 	TrackerPreferences* self = NULL;
 251 	gchar* _tmp0_ = NULL;
 252 	GSettings* _tmp1_;
 253 	GSettings* _tmp2_;
 254 	GSettings* _tmp3_;
 255 	GSettings* _tmp4_;
 256 #line 74 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 257 	self = (TrackerPreferences*) g_type_create_instance (object_type);
 258 #line 75 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 259 	g_debug ("tracker-preferences.vala:75: Getting current settings");
 260 #line 77 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 261 	_tmp0_ = tracker_preferences_dir_from_config (self, TRACKER_PREFERENCES_HOME_STRING);
 262 #line 77 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 263 	_g_free0 (self->priv->HOME_STRING_EVALUATED);
 264 #line 77 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 265 	self->priv->HOME_STRING_EVALUATED = _tmp0_;
 266 #line 79 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 267 	_tmp1_ = g_settings_new ("org.freedesktop.Tracker.Miner.Files");
 268 #line 79 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 269 	_g_object_unref0 (self->priv->settings_miner_fs);
 270 #line 79 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 271 	self->priv->settings_miner_fs = _tmp1_;
 272 #line 80 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 273 	_tmp2_ = g_settings_new ("org.freedesktop.Tracker.Extract");
 274 #line 80 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 275 	_g_object_unref0 (self->priv->settings_extract);
 276 #line 80 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 277 	self->priv->settings_extract = _tmp2_;
 278 #line 83 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 279 	_tmp3_ = self->priv->settings_miner_fs;
 280 #line 83 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 281 	g_signal_connect (_tmp3_, "changed", (GCallback) ___lambda2__g_settings_changed, self);
 282 #line 87 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 283 	_tmp4_ = self->priv->settings_extract;
 284 #line 87 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 285 	g_signal_connect (_tmp4_, "changed", (GCallback) ___lambda3__g_settings_changed, self);
 286 #line 74 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 287 	return self;
 288 #line 289 "tracker-preferences.c"
 289 }
 290 
 291 
 292 TrackerPreferences* tracker_preferences_new (void) {
 293 #line 74 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 294 	return tracker_preferences_construct (TRACKER_TYPE_PREFERENCES);
 295 #line 296 "tracker-preferences.c"
 296 }
 297 
 298 
 299 static gpointer _g_object_ref0 (gpointer self) {
 300 #line 116 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 301 	return self ? g_object_ref (self) : NULL;
 302 #line 303 "tracker-preferences.c"
 303 }
 304 
 305 
 306 static void _tracker_preferences_connect_signals_gtk_builder_connect_func (GtkBuilder* builder, GObject* object, const gchar* signal_name, const gchar* handler_name, GObject* connect_object, GConnectFlags flags, gpointer self) {
 307 #line 216 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
 308 	tracker_preferences_connect_signals (builder, object, signal_name, handler_name, connect_object, flags, self);
 309 #line 310 "tracker-preferences.c"
 310 }
 311 
 312 
 313 void tracker_preferences_setup_ui (TrackerPreferences* self) {
 314 	GtkBuilder* _tmp0_;
 315 	GtkBuilder* builder;
 316 	GObject* _tmp5_ = NULL;
 317 	GtkWindow* _tmp6_;
 318 	GObject* _tmp7_ = NULL;
 319 	GtkNotebook* _tmp8_;
 320 	GObject* _tmp9_ = NULL;
 321 	GtkCheckButton* _tmp10_;
 322 	GObject* _tmp11_ = NULL;
 323 	GtkCheckButton* _tmp12_;
 324 	GObject* _tmp13_ = NULL;
 325 	GtkCheckButton* _tmp14_;
 326 	GObject* _tmp15_ = NULL;
 327 	GtkSpinButton* _tmp16_;
 328 	GObject* _tmp17_ = NULL;
 329 	GtkCheckButton* _tmp18_;
 330 	GObject* _tmp19_ = NULL;
 331 	GtkCheckButton* _tmp20_;
 332 	GtkCheckButton* _tmp21_;
 333 	GtkCheckButton* _tmp22_;
 334 	gboolean _tmp23_;
 335 	gboolean _tmp24_;
 336 	GObject* _tmp25_ = NULL;
 337 	GtkScale* _tmp26_;
 338 	GObject* _tmp27_ = NULL;
 339 	GtkRadioButton* _tmp28_;
 340 	GObject* _tmp29_ = NULL;
 341 	GtkRadioButton* _tmp30_;
 342 	GObject* _tmp31_ = NULL;
 343 	GtkRadioButton* _tmp32_;
 344 	GObject* _tmp33_ = NULL;
 345 	GtkScale* _tmp34_;
 346 	GObject* _tmp35_ = NULL;
 347 	GtkToggleButton* _tmp36_;
 348 	GObject* _tmp37_ = NULL;
 349 	GtkToggleButton* _tmp38_;
 350 	GObject* _tmp39_ = NULL;
 351 	GtkToggleButton* _tmp40_;
 352 	GObject* _tmp41_ = NULL;
 353 	GtkToggleButton* _tmp42_;
 354 	GObject* _tmp43_ = NULL;
 355 	GtkToggleButton* _tmp44_;
 356 	GObject* _tmp45_ = NULL;
 357 	GtkToggleButton* _tmp46_;
 358 	GObject* _tmp47_ = NULL;
 359 	GtkToggleButton* _tmp48_;
 360 	GObject* _tmp49_ = NULL;
 361 	GtkHBox* _tmp50_;
 362 	GObject* _tmp51_ = NULL;
 363 	GtkButton* _tmp52_;
 364 	GObject* _tmp53_ = NULL;
 365 	GtkTreeView* _tmp54_;
 366 	GObject* _tmp55_ = NULL;
 367 	GtkTreeViewColumn* _tmp56_;
 368 	GObject* _tmp57_ = NULL;
 369 	GtkTreeViewColumn* _tmp58_;
 370 	GObject* _tmp59_ = NULL;
 371 	GtkTreeView* _tmp60_;
 372 	GObject* _tmp61_ = NULL;
 373 	GtkTreeView* _tmp62_;
 374 	GObject* _tmp63_ = NULL;
 375 	GtkTreeView* _tmp64_;
 376 	GtkTreeView* _tmp65_;
 377 	const gchar* _tmp66_ = NULL;
 378 	GtkTreeView* _tmp67_;
 379 	const gchar* _tmp68_ = NULL;
 380 	GtkTreeView* _tmp69_;
 381 	const gchar* _tmp70_ = NULL;
 382 	GtkTreeView* _tmp71_;
 383 	const gchar* _tmp72_ = NULL;
 384 	GObject* _tmp73_ = NULL;
 385 	GtkListStore* _tmp74_;
 386 	GtkListStore* _tmp75_;
 387 	GObject* _tmp76_ = NULL;
 388 	GtkListStore* _tmp77_;
 389 	GObject* _tmp78_ = NULL;
 390 	GtkListStore* _tmp79_;
 391 	GObject* _tmp80_ = NULL;
 392 	GtkListStore* _tmp81_;
 393 	GtkCheckButton* _tmp82_;
 394 	GSettings* _tmp83_;
 395 	gboolean _tmp84_ = FALSE;
 396 	GtkCheckButton* _tmp85_;
 397 	GtkCheckButton* _tmp86_;
 398 	gboolean _tmp87_;
 399 	gboolean _tmp88_;
 400 	GtkCheckButton* _tmp89_;
 401 	GSettings* _tmp90_;
 402 	gboolean _tmp91_ = FALSE;
 403 	GtkSpinButton* _tmp92_;
 404 	GtkSpinButton* _tmp93_;
 405 	GSettings* _tmp94_;
 406 	gint _tmp95_ = 0;
 407 	GtkCheckButton* _tmp96_;
 408 	GSettings* _tmp97_;
 409 	gboolean _tmp98_ = FALSE;
 410 	GtkCheckButton* _tmp99_;
 411 	GSettings* _tmp100_;
 412 	gboolean _tmp101_ = FALSE;
 413 	GtkCheckButton* _tmp102_;
 414 	GtkCheckButton* _tmp103_;
 415 	gboolean _tmp104_;
 416 	gboolean _tmp105_;
 417 	GtkCheckButton* _tmp106_;
 418 	GSettings* _tmp107_;
 419 	gboolean _tmp108_ = FALSE;
 420 	GtkScale* _tmp109_;
 421 	GSettings* _tmp110_;
 422 	gint _tmp111_ = 0;
 423 	GtkScale* _tmp112_;
 424 	GSettings* _tmp113_;
 425 	gint _tmp114_ = 0;
 426 	GSettings* _tmp115_;
 427 	gint _tmp116_ = 0;
 428 	gint sched_idle;
 429 	gint _tmp117_;
 430 	GtkListStore* _tmp124_;
 431 	GSettings* _tmp125_;
 432 	gchar** _tmp126_;
 433 	gchar** _tmp127_ = NULL;
 434 	gchar** _tmp128_;
 435 	gint _tmp128__length1;
 436 	GtkListStore* _tmp129_;
 437 	GSettings* _tmp130_;
 438 	gchar** _tmp131_;
 439 	gchar** _tmp132_ = NULL;
 440 	gchar** _tmp133_;
 441 	gint _tmp133__length1;
 442 	GtkListStore* _tmp134_;
 443 	GSettings* _tmp135_;
 444 	gchar** _tmp136_;
 445 	gchar** _tmp137_ = NULL;
 446 	gchar** _tmp138_;
 447 	gint _tmp138__length1;
 448 	GtkListStore* _tmp139_;
 449 	GSettings* _tmp140_;
 450 	gchar** _tmp141_;
 451 	gchar** _tmp142_ = NULL;
 452 	gchar** _tmp143_;
 453 	gint _tmp143__length1;
 454 	GtkListStore* _tmp144_;
 455 	GSettings* _tmp145_;
 456 	gchar** _tmp146_;
 457 	gchar** _tmp147_ = NULL;
 458 	gchar** _tmp148_;
 459 	gint _tmp148__length1;
 460 	GUserDirectory* _tmp149_;
variable '_tmp149_' set but not used
(emitted by gcc)
461 gint _tmp149__length1; 462 GtkToggleButton* _tmp152_; 463 GtkListStore* _tmp153_; 464 const gchar* _tmp154_; 465 gboolean _tmp155_ = FALSE; 466 GtkToggleButton* _tmp156_; 467 GtkListStore* _tmp157_; 468 gboolean _tmp158_ = FALSE; 469 GtkToggleButton* _tmp159_; 470 GtkListStore* _tmp160_; 471 gboolean _tmp161_ = FALSE; 472 GtkToggleButton* _tmp162_; 473 GtkListStore* _tmp163_; 474 gboolean _tmp164_ = FALSE; 475 GtkToggleButton* _tmp165_; 476 GtkListStore* _tmp166_; 477 gboolean _tmp167_ = FALSE; 478 GtkToggleButton* _tmp168_; 479 GtkListStore* _tmp169_; 480 gboolean _tmp170_ = FALSE; 481 GtkToggleButton* _tmp171_; 482 GtkListStore* _tmp172_; 483 gboolean _tmp173_ = FALSE; 484 GError * _inner_error_ = NULL; 485 #line 92 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 486 g_return_if_fail (self != NULL); 487 #line 93 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 488 _tmp0_ = gtk_builder_new (); 489 #line 93 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 490 builder = _tmp0_; 491 #line 492 "tracker-preferences.c" 492 { 493 #line 96 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 494 g_debug ("tracker-preferences.vala:96: Trying to use UI file:'%s'", SRCDIR TRACKER_PREFERENCES_UI_FILE); 495 #line 97 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 496 gtk_builder_add_from_file (builder, SRCDIR TRACKER_PREFERENCES_UI_FILE, &_inner_error_); 497 #line 97 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 498 if (_inner_error_ != NULL) { 499 #line 500 "tracker-preferences.c" 500 goto __catch0_g_error; 501 } 502 } 503 goto __finally0; 504 __catch0_g_error: 505 { 506 GError* e = NULL; 507 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 508 e = _inner_error_; 509 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 510 _inner_error_ = NULL; 511 #line 512 "tracker-preferences.c" 512 { 513 #line 101 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 514 g_debug ("tracker-preferences.vala:101: Trying to use UI file:'%s'", TRACKER_UI_DIR TRACKER_PREFERENCES_UI_FILE); 515 #line 102 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 516 gtk_builder_add_from_file (builder, TRACKER_UI_DIR TRACKER_PREFERENCES_UI_FILE, &_inner_error_); 517 #line 102 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 518 if (_inner_error_ != NULL) { 519 #line 520 "tracker-preferences.c" 520 goto __catch1_g_error; 521 } 522 } 523 goto __finally1; 524 __catch1_g_error: 525 { 526 GError* e = NULL; 527 GError* _tmp1_; 528 const gchar* _tmp2_; 529 GtkMessageDialog* _tmp3_; 530 GtkMessageDialog* msg; 531 GtkMessageDialog* _tmp4_; 532 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 533 e = _inner_error_; 534 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 535 _inner_error_ = NULL; 536 #line 104 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 537 _tmp1_ = e; 538 #line 104 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 539 _tmp2_ = _tmp1_->message; 540 #line 104 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 541 _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CANCEL, "Failed to load UI file, %s\n", _tmp2_); 542 #line 104 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 543 g_object_ref_sink (_tmp3_); 544 #line 104 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 545 msg = _tmp3_; 546 #line 110 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 547 _tmp4_ = msg; 548 #line 110 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 549 gtk_dialog_run ((GtkDialog*) _tmp4_); 550 #line 111 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 551 gtk_main_quit (); 552 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 553 _g_object_unref0 (msg); 554 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 555 _g_error_free0 (e); 556 #line 557 "tracker-preferences.c" 557 } 558 __finally1: 559 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 560 if (_inner_error_ != NULL) { 561 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 562 _g_error_free0 (e); 563 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 564 _g_error_free0 (e); 565 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 566 _g_object_unref0 (builder); 567 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 568 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); 569 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 570 g_clear_error (&_inner_error_); 571 #line 100 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 572 return; 573 #line 574 "tracker-preferences.c" 574 } 575 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 576 _g_error_free0 (e); 577 #line 578 "tracker-preferences.c" 578 } 579 __finally0: 580 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 581 if (_inner_error_ != NULL) { 582 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 583 _g_object_unref0 (builder); 584 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 585 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); 586 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 587 g_clear_error (&_inner_error_); 588 #line 95 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 589 return; 590 #line 591 "tracker-preferences.c" 591 } 592 #line 116 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 593 _tmp5_ = gtk_builder_get_object (builder, "tracker-preferences"); 594 #line 116 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 595 _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, GTK_TYPE_WINDOW) ? ((GtkWindow*) _tmp5_) : NULL); 596 #line 116 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 597 _g_object_unref0 (self->priv->window); 598 #line 116 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 599 self->priv->window = _tmp6_; 600 #line 117 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 601 _tmp7_ = gtk_builder_get_object (builder, "notebook"); 602 #line 117 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 603 _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, GTK_TYPE_NOTEBOOK) ? ((GtkNotebook*) _tmp7_) : NULL); 604 #line 117 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 605 _g_object_unref0 (self->priv->notebook); 606 #line 117 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 607 self->priv->notebook = _tmp8_; 608 #line 119 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 609 _tmp9_ = gtk_builder_get_object (builder, "checkbutton_enable_monitoring"); 610 #line 119 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 611 _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, GTK_TYPE_CHECK_BUTTON) ? ((GtkCheckButton*) _tmp9_) : NULL); 612 #line 119 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 613 _g_object_unref0 (self->priv->checkbutton_enable_monitoring); 614 #line 119 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 615 self->priv->checkbutton_enable_monitoring = _tmp10_; 616 #line 120 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 617 _tmp11_ = gtk_builder_get_object (builder, "checkbutton_enable_index_on_battery"); 618 #line 120 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 619 _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, GTK_TYPE_CHECK_BUTTON) ? ((GtkCheckButton*) _tmp11_) : NULL); 620 #line 120 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 621 _g_object_unref0 (self->priv->checkbutton_enable_index_on_battery); 622 #line 120 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 623 self->priv->checkbutton_enable_index_on_battery = _tmp12_; 624 #line 121 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 625 _tmp13_ = gtk_builder_get_object (builder, "checkbutton_enable_index_on_battery_first_time"); 626 #line 121 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 627 _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, GTK_TYPE_CHECK_BUTTON) ? ((GtkCheckButton*) _tmp13_) : NULL); 628 #line 121 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 629 _g_object_unref0 (self->priv->checkbutton_enable_index_on_battery_first_time); 630 #line 121 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 631 self->priv->checkbutton_enable_index_on_battery_first_time = _tmp14_; 632 #line 122 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 633 _tmp15_ = gtk_builder_get_object (builder, "spinbutton_delay"); 634 #line 122 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 635 _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, GTK_TYPE_SPIN_BUTTON) ? ((GtkSpinButton*) _tmp15_) : NULL); 636 #line 122 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 637 _g_object_unref0 (self->priv->spinbutton_delay); 638 #line 122 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 639 self->priv->spinbutton_delay = _tmp16_; 640 #line 123 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 641 _tmp17_ = gtk_builder_get_object (builder, "checkbutton_index_removable_media"); 642 #line 123 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 643 _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, GTK_TYPE_CHECK_BUTTON) ? ((GtkCheckButton*) _tmp17_) : NULL); 644 #line 123 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 645 _g_object_unref0 (self->priv->checkbutton_index_removable_media); 646 #line 123 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 647 self->priv->checkbutton_index_removable_media = _tmp18_; 648 #line 124 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 649 _tmp19_ = gtk_builder_get_object (builder, "checkbutton_index_optical_discs"); 650 #line 124 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 651 _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, GTK_TYPE_CHECK_BUTTON) ? ((GtkCheckButton*) _tmp19_) : NULL); 652 #line 124 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 653 _g_object_unref0 (self->priv->checkbutton_index_optical_discs); 654 #line 124 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 655 self->priv->checkbutton_index_optical_discs = _tmp20_; 656 #line 125 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 657 _tmp21_ = self->priv->checkbutton_index_optical_discs; 658 #line 125 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 659 _tmp22_ = self->priv->checkbutton_index_removable_media; 660 #line 125 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 661 _tmp23_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp22_); 662 #line 125 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 663 _tmp24_ = _tmp23_; 664 #line 125 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 665 gtk_widget_set_sensitive ((GtkWidget*) _tmp21_, _tmp24_); 666 #line 126 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 667 _tmp25_ = gtk_builder_get_object (builder, "hscale_disk_space_limit"); 668 #line 126 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 669 _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, GTK_TYPE_SCALE) ? ((GtkScale*) _tmp25_) : NULL); 670 #line 126 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 671 _g_object_unref0 (self->priv->hscale_disk_space_limit); 672 #line 126 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 673 self->priv->hscale_disk_space_limit = _tmp26_; 674 #line 127 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 675 _tmp27_ = gtk_builder_get_object (builder, "radiobutton_sched_idle_always"); 676 #line 127 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 677 _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GTK_TYPE_RADIO_BUTTON) ? ((GtkRadioButton*) _tmp27_) : NULL); 678 #line 127 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 679 _g_object_unref0 (self->priv->radiobutton_sched_idle_always); 680 #line 127 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 681 self->priv->radiobutton_sched_idle_always = _tmp28_; 682 #line 128 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 683 _tmp29_ = gtk_builder_get_object (builder, "radiobutton_sched_idle_first_index"); 684 #line 128 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 685 _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, GTK_TYPE_RADIO_BUTTON) ? ((GtkRadioButton*) _tmp29_) : NULL); 686 #line 128 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 687 _g_object_unref0 (self->priv->radiobutton_sched_idle_first_index); 688 #line 128 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 689 self->priv->radiobutton_sched_idle_first_index = _tmp30_; 690 #line 129 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 691 _tmp31_ = gtk_builder_get_object (builder, "radiobutton_sched_idle_never"); 692 #line 129 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 693 _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, GTK_TYPE_RADIO_BUTTON) ? ((GtkRadioButton*) _tmp31_) : NULL); 694 #line 129 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 695 _g_object_unref0 (self->priv->radiobutton_sched_idle_never); 696 #line 129 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 697 self->priv->radiobutton_sched_idle_never = _tmp32_; 698 #line 130 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 699 _tmp33_ = gtk_builder_get_object (builder, "hscale_drop_device_threshold"); 700 #line 130 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 701 _tmp34_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp33_, GTK_TYPE_SCALE) ? ((GtkScale*) _tmp33_) : NULL); 702 #line 130 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 703 _g_object_unref0 (self->priv->hscale_drop_device_threshold); 704 #line 130 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 705 self->priv->hscale_drop_device_threshold = _tmp34_; 706 #line 131 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 707 _tmp35_ = gtk_builder_get_object (builder, "togglebutton_home"); 708 #line 131 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 709 _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, GTK_TYPE_TOGGLE_BUTTON) ? ((GtkToggleButton*) _tmp35_) : NULL); 710 #line 131 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 711 _g_object_unref0 (self->priv->togglebutton_home); 712 #line 131 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 713 self->priv->togglebutton_home = _tmp36_; 714 #line 132 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 715 _tmp37_ = gtk_builder_get_object (builder, "togglebutton_desktop"); 716 #line 132 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 717 _tmp38_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp37_, GTK_TYPE_TOGGLE_BUTTON) ? ((GtkToggleButton*) _tmp37_) : NULL); 718 #line 132 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 719 _g_object_unref0 (self->priv->togglebutton_desktop); 720 #line 132 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 721 self->priv->togglebutton_desktop = _tmp38_; 722 #line 133 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 723 _tmp39_ = gtk_builder_get_object (builder, "togglebutton_documents"); 724 #line 133 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 725 _tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, GTK_TYPE_TOGGLE_BUTTON) ? ((GtkToggleButton*) _tmp39_) : NULL); 726 #line 133 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 727 _g_object_unref0 (self->priv->togglebutton_documents); 728 #line 133 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 729 self->priv->togglebutton_documents = _tmp40_; 730 #line 134 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 731 _tmp41_ = gtk_builder_get_object (builder, "togglebutton_music"); 732 #line 134 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 733 _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp41_, GTK_TYPE_TOGGLE_BUTTON) ? ((GtkToggleButton*) _tmp41_) : NULL); 734 #line 134 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 735 _g_object_unref0 (self->priv->togglebutton_music); 736 #line 134 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 737 self->priv->togglebutton_music = _tmp42_; 738 #line 135 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 739 _tmp43_ = gtk_builder_get_object (builder, "togglebutton_pictures"); 740 #line 135 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 741 _tmp44_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp43_, GTK_TYPE_TOGGLE_BUTTON) ? ((GtkToggleButton*) _tmp43_) : NULL); 742 #line 135 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 743 _g_object_unref0 (self->priv->togglebutton_pictures); 744 #line 135 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 745 self->priv->togglebutton_pictures = _tmp44_; 746 #line 136 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 747 _tmp45_ = gtk_builder_get_object (builder, "togglebutton_videos"); 748 #line 136 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 749 _tmp46_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp45_, GTK_TYPE_TOGGLE_BUTTON) ? ((GtkToggleButton*) _tmp45_) : NULL); 750 #line 136 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 751 _g_object_unref0 (self->priv->togglebutton_videos); 752 #line 136 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 753 self->priv->togglebutton_videos = _tmp46_; 754 #line 137 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 755 _tmp47_ = gtk_builder_get_object (builder, "togglebutton_download"); 756 #line 137 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 757 _tmp48_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp47_, GTK_TYPE_TOGGLE_BUTTON) ? ((GtkToggleButton*) _tmp47_) : NULL); 758 #line 137 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 759 _g_object_unref0 (self->priv->togglebutton_download); 760 #line 137 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 761 self->priv->togglebutton_download = _tmp48_; 762 #line 138 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 763 _tmp49_ = gtk_builder_get_object (builder, "hbox_duplicate_warning"); 764 #line 138 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 765 _tmp50_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp49_, GTK_TYPE_HBOX) ? ((GtkHBox*) _tmp49_) : NULL); 766 #line 138 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 767 _g_object_unref0 (self->priv->hbox_duplicate_warning); 768 #line 138 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 769 self->priv->hbox_duplicate_warning = _tmp50_; 770 #line 140 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 771 _tmp51_ = gtk_builder_get_object (builder, "button_reindex"); 772 #line 140 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 773 _tmp52_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp51_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp51_) : NULL); 774 #line 140 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 775 _g_object_unref0 (self->priv->button_reindex); 776 #line 140 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 777 self->priv->button_reindex = _tmp52_; 778 #line 142 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 779 _tmp53_ = gtk_builder_get_object (builder, "treeview_index"); 780 #line 142 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 781 _tmp54_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp53_, GTK_TYPE_TREE_VIEW) ? ((GtkTreeView*) _tmp53_) : NULL); 782 #line 142 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 783 _g_object_unref0 (self->priv->treeview_index); 784 #line 142 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 785 self->priv->treeview_index = _tmp54_; 786 #line 143 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 787 _tmp55_ = gtk_builder_get_object (builder, "treeviewcolumn_index1"); 788 #line 143 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 789 _tmp56_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp55_, GTK_TYPE_TREE_VIEW_COLUMN) ? ((GtkTreeViewColumn*) _tmp55_) : NULL); 790 #line 143 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 791 _g_object_unref0 (self->priv->treeviewcolumn_index1); 792 #line 143 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 793 self->priv->treeviewcolumn_index1 = _tmp56_; 794 #line 144 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 795 _tmp57_ = gtk_builder_get_object (builder, "treeviewcolumn_index1"); 796 #line 144 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 797 _tmp58_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp57_, GTK_TYPE_TREE_VIEW_COLUMN) ? ((GtkTreeViewColumn*) _tmp57_) : NULL); 798 #line 144 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 799 _g_object_unref0 (self->priv->treeviewcolumn_index2); 800 #line 144 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 801 self->priv->treeviewcolumn_index2 = _tmp58_; 802 #line 145 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 803 _tmp59_ = gtk_builder_get_object (builder, "treeview_ignored_directories"); 804 #line 145 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 805 _tmp60_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp59_, GTK_TYPE_TREE_VIEW) ? ((GtkTreeView*) _tmp59_) : NULL); 806 #line 145 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 807 _g_object_unref0 (self->priv->treeview_ignored_directories); 808 #line 145 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 809 self->priv->treeview_ignored_directories = _tmp60_; 810 #line 146 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 811 _tmp61_ = gtk_builder_get_object (builder, "treeview_ignored_directories_with_content"); 812 #line 146 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 813 _tmp62_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp61_, GTK_TYPE_TREE_VIEW) ? ((GtkTreeView*) _tmp61_) : NULL); 814 #line 146 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 815 _g_object_unref0 (self->priv->treeview_ignored_directories_with_content); 816 #line 146 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 817 self->priv->treeview_ignored_directories_with_content = _tmp62_; 818 #line 147 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 819 _tmp63_ = gtk_builder_get_object (builder, "treeview_ignored_files"); 820 #line 147 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 821 _tmp64_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp63_, GTK_TYPE_TREE_VIEW) ? ((GtkTreeView*) _tmp63_) : NULL); 822 #line 147 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 823 _g_object_unref0 (self->priv->treeview_ignored_files); 824 #line 147 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 825 self->priv->treeview_ignored_files = _tmp64_; 826 #line 149 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 827 _tmp65_ = self->priv->treeview_index; 828 #line 149 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 829 _tmp66_ = _ ("Directory"); 830 #line 149 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 831 tracker_preferences_treeview_setup (self, _tmp65_, _tmp66_, TRUE, FALSE); 832 #line 150 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 833 _tmp67_ = self->priv->treeview_ignored_directories; 834 #line 150 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 835 _tmp68_ = _ ("Directory"); 836 #line 150 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 837 tracker_preferences_treeview_setup (self, _tmp67_, _tmp68_, FALSE, TRUE); 838 #line 151 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 839 _tmp69_ = self->priv->treeview_ignored_directories_with_content; 840 #line 151 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 841 _tmp70_ = _ ("Directory"); 842 #line 151 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 843 tracker_preferences_treeview_setup (self, _tmp69_, _tmp70_, FALSE, TRUE); 844 #line 152 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 845 _tmp71_ = self->priv->treeview_ignored_files; 846 #line 152 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 847 _tmp72_ = _ ("File"); 848 #line 152 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 849 tracker_preferences_treeview_setup (self, _tmp71_, _tmp72_, FALSE, TRUE); 850 #line 154 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 851 _tmp73_ = gtk_builder_get_object (builder, "liststore_index"); 852 #line 154 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 853 _tmp74_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp73_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp73_) : NULL); 854 #line 154 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 855 _g_object_unref0 (self->priv->liststore_index); 856 #line 154 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 857 self->priv->liststore_index = _tmp74_; 858 #line 155 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 859 _tmp75_ = self->priv->liststore_index; 860 #line 155 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 861 gtk_tree_sortable_set_sort_column_id ((GtkTreeSortable*) _tmp75_, 0, GTK_SORT_ASCENDING); 862 #line 156 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 863 _tmp76_ = gtk_builder_get_object (builder, "liststore_ignored_directories"); 864 #line 156 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 865 _tmp77_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp76_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp76_) : NULL); 866 #line 156 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 867 _g_object_unref0 (self->priv->liststore_ignored_directories); 868 #line 156 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 869 self->priv->liststore_ignored_directories = _tmp77_; 870 #line 157 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 871 _tmp78_ = gtk_builder_get_object (builder, "liststore_ignored_files"); 872 #line 157 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 873 _tmp79_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp78_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp78_) : NULL); 874 #line 157 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 875 _g_object_unref0 (self->priv->liststore_ignored_files); 876 #line 157 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 877 self->priv->liststore_ignored_files = _tmp79_; 878 #line 158 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 879 _tmp80_ = gtk_builder_get_object (builder, "liststore_ignored_directories_with_content"); 880 #line 158 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 881 _tmp81_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp80_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp80_) : NULL); 882 #line 158 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 883 _g_object_unref0 (self->priv->liststore_ignored_directories_with_content); 884 #line 158 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 885 self->priv->liststore_ignored_directories_with_content = _tmp81_; 886 #line 161 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 887 _tmp82_ = self->priv->checkbutton_enable_index_on_battery; 888 #line 161 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 889 _tmp83_ = self->priv->settings_miner_fs; 890 #line 161 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 891 _tmp84_ = g_settings_get_boolean (_tmp83_, "index-on-battery"); 892 #line 161 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 893 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp82_, _tmp84_); 894 #line 162 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 895 _tmp85_ = self->priv->checkbutton_enable_index_on_battery_first_time; 896 #line 162 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 897 _tmp86_ = self->priv->checkbutton_enable_index_on_battery; 898 #line 162 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 899 _tmp87_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp86_); 900 #line 162 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 901 _tmp88_ = _tmp87_; 902 #line 162 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 903 gtk_widget_set_sensitive ((GtkWidget*) _tmp85_, !_tmp88_); 904 #line 163 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 905 _tmp89_ = self->priv->checkbutton_enable_index_on_battery_first_time; 906 #line 163 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 907 _tmp90_ = self->priv->settings_miner_fs; 908 #line 163 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 909 _tmp91_ = g_settings_get_boolean (_tmp90_, "index-on-battery-first-time"); 910 #line 163 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 911 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp89_, _tmp91_); 912 #line 164 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 913 _tmp92_ = self->priv->spinbutton_delay; 914 #line 164 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 915 gtk_spin_button_set_increments (_tmp92_, (gdouble) 1, (gdouble) 1); 916 #line 165 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 917 _tmp93_ = self->priv->spinbutton_delay; 918 #line 165 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 919 _tmp94_ = self->priv->settings_miner_fs; 920 #line 165 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 921 _tmp95_ = g_settings_get_int (_tmp94_, "initial-sleep"); 922 #line 165 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 923 gtk_spin_button_set_value (_tmp93_, (gdouble) _tmp95_); 924 #line 166 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 925 _tmp96_ = self->priv->checkbutton_enable_monitoring; 926 #line 166 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 927 _tmp97_ = self->priv->settings_miner_fs; 928 #line 166 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 929 _tmp98_ = g_settings_get_boolean (_tmp97_, "enable-monitors"); 930 #line 166 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 931 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp96_, _tmp98_); 932 #line 167 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 933 _tmp99_ = self->priv->checkbutton_index_removable_media; 934 #line 167 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 935 _tmp100_ = self->priv->settings_miner_fs; 936 #line 167 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 937 _tmp101_ = g_settings_get_boolean (_tmp100_, "index-removable-devices"); 938 #line 167 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 939 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp99_, _tmp101_); 940 #line 168 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 941 _tmp102_ = self->priv->checkbutton_index_optical_discs; 942 #line 168 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 943 _tmp103_ = self->priv->checkbutton_index_removable_media; 944 #line 168 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 945 _tmp104_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp103_); 946 #line 168 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 947 _tmp105_ = _tmp104_; 948 #line 168 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 949 gtk_widget_set_sensitive ((GtkWidget*) _tmp102_, _tmp105_); 950 #line 169 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 951 _tmp106_ = self->priv->checkbutton_index_optical_discs; 952 #line 169 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 953 _tmp107_ = self->priv->settings_miner_fs; 954 #line 169 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 955 _tmp108_ = g_settings_get_boolean (_tmp107_, "index-optical-discs"); 956 #line 169 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 957 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp106_, _tmp108_); 958 #line 170 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 959 _tmp109_ = self->priv->hscale_disk_space_limit; 960 #line 170 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 961 _tmp110_ = self->priv->settings_miner_fs; 962 #line 170 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 963 _tmp111_ = g_settings_get_int (_tmp110_, "low-disk-space-limit"); 964 #line 170 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 965 gtk_range_set_value ((GtkRange*) _tmp109_, (gdouble) _tmp111_); 966 #line 171 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 967 _tmp112_ = self->priv->hscale_drop_device_threshold; 968 #line 171 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 969 _tmp113_ = self->priv->settings_miner_fs; 970 #line 171 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 971 _tmp114_ = g_settings_get_int (_tmp113_, "removable-days-threshold"); 972 #line 171 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 973 gtk_range_set_value ((GtkRange*) _tmp112_, (gdouble) _tmp114_); 974 #line 177 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 975 _tmp115_ = self->priv->settings_miner_fs; 976 #line 177 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 977 _tmp116_ = g_settings_get_enum (_tmp115_, "sched-idle"); 978 #line 177 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 979 sched_idle = _tmp116_; 980 #line 179 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 981 _tmp117_ = sched_idle; 982 #line 179 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 983 if (_tmp117_ == 0) { 984 #line 985 "tracker-preferences.c" 985 GtkRadioButton* _tmp118_; 986 #line 180 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 987 _tmp118_ = self->priv->radiobutton_sched_idle_always; 988 #line 180 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 989 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp118_, TRUE); 990 #line 991 "tracker-preferences.c" 991 } else { 992 gint _tmp119_; 993 #line 181 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 994 _tmp119_ = sched_idle; 995 #line 181 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 996 if (_tmp119_ == 1) { 997 #line 998 "tracker-preferences.c" 998 GtkRadioButton* _tmp120_; 999 #line 182 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1000 _tmp120_ = self->priv->radiobutton_sched_idle_first_index; 1001 #line 182 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1002 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp120_, TRUE); 1003 #line 1004 "tracker-preferences.c" 1004 } else { 1005 gint _tmp121_; 1006 #line 183 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1007 _tmp121_ = sched_idle; 1008 #line 183 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1009 if (_tmp121_ == 2) { 1010 #line 1011 "tracker-preferences.c" 1011 GtkRadioButton* _tmp122_; 1012 #line 184 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1013 _tmp122_ = self->priv->radiobutton_sched_idle_never; 1014 #line 184 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1015 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp122_, TRUE); 1016 #line 1017 "tracker-preferences.c" 1017 } else { 1018 GtkRadioButton* _tmp123_; 1019 #line 187 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1020 _tmp123_ = self->priv->radiobutton_sched_idle_first_index; 1021 #line 187 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1022 gtk_toggle_button_set_active ((GtkToggleButton*) _tmp123_, TRUE); 1023 #line 1024 "tracker-preferences.c" 1024 } 1025 } 1026 } 1027 #line 191 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1028 tracker_preferences_sanitize_user_dirs (self); 1029 #line 194 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1030 _tmp124_ = self->priv->liststore_index; 1031 #line 194 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1032 _tmp125_ = self->priv->settings_miner_fs; 1033 #line 194 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1034 _tmp127_ = _tmp126_ = g_settings_get_strv (_tmp125_, "index-recursive-directories"); 1035 #line 194 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1036 _tmp128_ = _tmp127_; 1037 #line 194 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1038 _tmp128__length1 = _vala_array_length (_tmp126_); 1039 #line 194 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1040 tracker_preferences_model_populate (self, _tmp124_, _tmp128_, _vala_array_length (_tmp126_), TRUE, TRUE); 1041 #line 194 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1042 _tmp128_ = (_vala_array_free (_tmp128_, _tmp128__length1, (GDestroyNotify) g_free), NULL); 1043 #line 195 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1044 _tmp129_ = self->priv->liststore_index; 1045 #line 195 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1046 _tmp130_ = self->priv->settings_miner_fs; 1047 #line 195 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1048 _tmp132_ = _tmp131_ = g_settings_get_strv (_tmp130_, "index-single-directories"); 1049 #line 195 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1050 _tmp133_ = _tmp132_; 1051 #line 195 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1052 _tmp133__length1 = _vala_array_length (_tmp131_); 1053 #line 195 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1054 tracker_preferences_model_populate (self, _tmp129_, _tmp133_, _vala_array_length (_tmp131_), TRUE, FALSE); 1055 #line 195 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1056 _tmp133_ = (_vala_array_free (_tmp133_, _tmp133__length1, (GDestroyNotify) g_free), NULL); 1057 #line 196 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1058 _tmp134_ = self->priv->liststore_ignored_directories; 1059 #line 196 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1060 _tmp135_ = self->priv->settings_miner_fs; 1061 #line 196 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1062 _tmp137_ = _tmp136_ = g_settings_get_strv (_tmp135_, "ignored-directories"); 1063 #line 196 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1064 _tmp138_ = _tmp137_; 1065 #line 196 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1066 _tmp138__length1 = _vala_array_length (_tmp136_); 1067 #line 196 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1068 tracker_preferences_model_populate (self, _tmp134_, _tmp138_, _vala_array_length (_tmp136_), FALSE, FALSE); 1069 #line 196 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1070 _tmp138_ = (_vala_array_free (_tmp138_, _tmp138__length1, (GDestroyNotify) g_free), NULL); 1071 #line 197 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1072 _tmp139_ = self->priv->liststore_ignored_files; 1073 #line 197 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1074 _tmp140_ = self->priv->settings_miner_fs; 1075 #line 197 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1076 _tmp142_ = _tmp141_ = g_settings_get_strv (_tmp140_, "ignored-files"); 1077 #line 197 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1078 _tmp143_ = _tmp142_; 1079 #line 197 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1080 _tmp143__length1 = _vala_array_length (_tmp141_); 1081 #line 197 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1082 tracker_preferences_model_populate (self, _tmp139_, _tmp143_, _vala_array_length (_tmp141_), FALSE, FALSE); 1083 #line 197 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1084 _tmp143_ = (_vala_array_free (_tmp143_, _tmp143__length1, (GDestroyNotify) g_free), NULL); 1085 #line 198 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1086 _tmp144_ = self->priv->liststore_ignored_directories_with_content; 1087 #line 198 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1088 _tmp145_ = self->priv->settings_miner_fs; 1089 #line 198 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1090 _tmp147_ = _tmp146_ = g_settings_get_strv (_tmp145_, "ignored-directories-with-content"); 1091 #line 198 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1092 _tmp148_ = _tmp147_; 1093 #line 198 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1094 _tmp148__length1 = _vala_array_length (_tmp146_); 1095 #line 198 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1096 tracker_preferences_model_populate (self, _tmp144_, _tmp148_, _vala_array_length (_tmp146_), FALSE, FALSE); 1097 #line 198 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1098 _tmp148_ = (_vala_array_free (_tmp148_, _tmp148__length1, (GDestroyNotify) g_free), NULL); 1099 #line 200 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1100 _tmp149_ = self->priv->ignored_user_directories; 1101 #line 200 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1102 _tmp149__length1 = self->priv->ignored_user_directories_length1; 1103 #line 200 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1104 if (_tmp149__length1 > 0) { 1105 #line 1106 "tracker-preferences.c" 1106 GtkHBox* _tmp150_; 1107 #line 201 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1108 _tmp150_ = self->priv->hbox_duplicate_warning; 1109 #line 201 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1110 gtk_widget_show ((GtkWidget*) _tmp150_); 1111 #line 1112 "tracker-preferences.c" 1112 } else { 1113 GtkHBox* _tmp151_; 1114 #line 203 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1115 _tmp151_ = self->priv->hbox_duplicate_warning; 1116 #line 203 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1117 gtk_widget_hide ((GtkWidget*) _tmp151_); 1118 #line 1119 "tracker-preferences.c" 1119 } 1120 #line 206 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1121 _tmp152_ = self->priv->togglebutton_home; 1122 #line 206 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1123 _tmp153_ = self->priv->liststore_index; 1124 #line 206 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1125 _tmp154_ = self->priv->HOME_STRING_EVALUATED; 1126 #line 206 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1127 _tmp155_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp153_, _tmp154_); 1128 #line 206 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1129 gtk_toggle_button_set_active (_tmp152_, _tmp155_); 1130 #line 207 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1131 _tmp156_ = self->priv->togglebutton_desktop; 1132 #line 207 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1133 _tmp157_ = self->priv->liststore_index; 1134 #line 207 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1135 _tmp158_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp157_, "&DESKTOP"); 1136 #line 207 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1137 gtk_toggle_button_set_active (_tmp156_, _tmp158_); 1138 #line 208 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1139 _tmp159_ = self->priv->togglebutton_documents; 1140 #line 208 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1141 _tmp160_ = self->priv->liststore_index; 1142 #line 208 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1143 _tmp161_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp160_, "&DOCUMENTS"); 1144 #line 208 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1145 gtk_toggle_button_set_active (_tmp159_, _tmp161_); 1146 #line 209 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1147 _tmp162_ = self->priv->togglebutton_music; 1148 #line 209 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1149 _tmp163_ = self->priv->liststore_index; 1150 #line 209 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1151 _tmp164_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp163_, "&MUSIC"); 1152 #line 209 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1153 gtk_toggle_button_set_active (_tmp162_, _tmp164_); 1154 #line 210 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1155 _tmp165_ = self->priv->togglebutton_pictures; 1156 #line 210 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1157 _tmp166_ = self->priv->liststore_index; 1158 #line 210 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1159 _tmp167_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp166_, "&PICTURES"); 1160 #line 210 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1161 gtk_toggle_button_set_active (_tmp165_, _tmp167_); 1162 #line 211 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1163 _tmp168_ = self->priv->togglebutton_videos; 1164 #line 211 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1165 _tmp169_ = self->priv->liststore_index; 1166 #line 211 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1167 _tmp170_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp169_, "&VIDEOS"); 1168 #line 211 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1169 gtk_toggle_button_set_active (_tmp168_, _tmp170_); 1170 #line 212 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1171 _tmp171_ = self->priv->togglebutton_download; 1172 #line 212 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1173 _tmp172_ = self->priv->liststore_index; 1174 #line 212 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1175 _tmp173_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp172_, "&DOWNLOAD"); 1176 #line 212 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1177 gtk_toggle_button_set_active (_tmp171_, _tmp173_); 1178 #line 216 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1179 gtk_builder_connect_signals_full (builder, _tracker_preferences_connect_signals_gtk_builder_connect_func, self); 1180 #line 92 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1181 _g_object_unref0 (builder); 1182 #line 1183 "tracker-preferences.c" 1183 } 1184 1185 1186 void tracker_preferences_show (TrackerPreferences* self) { 1187 GtkWindow* _tmp0_; 1188 #line 219 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1189 g_return_if_fail (self != NULL); 1190 #line 220 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1191 tracker_preferences_setup_ui (self); 1192 #line 222 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1193 _tmp0_ = self->priv->window; 1194 #line 222 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1195 gtk_widget_show ((GtkWidget*) _tmp0_); 1196 #line 1197 "tracker-preferences.c" 1197 } 1198 1199 1200 static void tracker_preferences_connect_signals (GtkBuilder* builder, GObject* object, const gchar* signal_name, const gchar* handler_name, GObject* connect_object, GConnectFlags flags, TrackerPreferences* self) { 1201 GModule* _tmp0_ = NULL; 1202 GModule* module; 1203 void* sym = NULL; 1204 GModule* _tmp1_; 1205 const gchar* _tmp2_; 1206 void* _tmp3_ = NULL; 1207 gboolean _tmp4_ = FALSE; 1208 #line 228 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1209 g_return_if_fail (self != NULL); 1210 #line 228 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1211 g_return_if_fail (builder != NULL); 1212 #line 228 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1213 g_return_if_fail (object != NULL); 1214 #line 228 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1215 g_return_if_fail (signal_name != NULL); 1216 #line 228 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1217 g_return_if_fail (handler_name != NULL); 1218 #line 232 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1219 _tmp0_ = g_module_open (NULL, G_MODULE_BIND_LAZY); 1220 #line 232 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1221 module = _tmp0_; 1222 #line 235 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1223 _tmp1_ = module; 1224 #line 235 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1225 _tmp2_ = handler_name; 1226 #line 235 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1227 _tmp4_ = g_module_symbol (_tmp1_, _tmp2_, &_tmp3_); 1228 #line 235 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1229 sym = _tmp3_; 1230 #line 235 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1231 if (!_tmp4_) { 1232 #line 1233 "tracker-preferences.c" 1233 FILE* _tmp5_; 1234 const gchar* _tmp6_; 1235 #line 236 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1236 _tmp5_ = stdout; 1237 #line 236 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1238 _tmp6_ = handler_name; 1239 #line 236 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1240 fprintf (_tmp5_, "Symbol not found! %s\n", _tmp6_); 1241 #line 1242 "tracker-preferences.c" 1242 } else { 1243 GObject* _tmp7_; 1244 const gchar* _tmp8_; 1245 void* _tmp9_; 1246 #line 238 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1247 _tmp7_ = object; 1248 #line 238 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1249 _tmp8_ = signal_name; 1250 #line 238 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1251 _tmp9_ = sym; 1252 #line 238 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1253 g_signal_connect (_tmp7_, _tmp8_, (GCallback) _tmp9_, self); 1254 #line 1255 "tracker-preferences.c" 1255 } 1256 #line 228 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1257 _g_module_close0 (module); 1258 #line 1259 "tracker-preferences.c" 1259 } 1260 1261 1262 void tracker_preferences_response_cb (GtkDialog* source, gint response_id, TrackerPreferences* self) { 1263 gint _tmp0_; 1264 gint _tmp1_; 1265 #line 243 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1266 g_return_if_fail (self != NULL); 1267 #line 243 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1268 g_return_if_fail (source != NULL); 1269 #line 244 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1270 _tmp0_ = response_id; 1271 #line 244 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1272 g_debug ("tracker-preferences.vala:244: Got response id %d (apply:%d, close:%d)", _tmp0_, (gint) GTK_RESPONSE_APPLY, (gint) GTK_RESPONSE_CLOSE); 1273 #line 246 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1274 _tmp1_ = response_id; 1275 #line 246 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1276 switch (_tmp1_) { 1277 #line 246 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1278 case GTK_RESPONSE_APPLY: 1279 #line 1280 "tracker-preferences.c" 1280 { 1281 GSettings* _tmp2_; 1282 GtkListStore* _tmp3_; 1283 gint _tmp4_ = 0; 1284 gchar** _tmp5_ = NULL; 1285 gchar** _tmp6_; 1286 gint _tmp6__length1; 1287 GSettings* _tmp7_; 1288 GtkListStore* _tmp8_; 1289 gint _tmp9_ = 0; 1290 gchar** _tmp10_ = NULL; 1291 gchar** _tmp11_; 1292 gint _tmp11__length1; 1293 GSettings* _tmp12_; 1294 GtkListStore* _tmp13_; 1295 gint _tmp14_ = 0; 1296 gchar** _tmp15_ = NULL; 1297 gchar** _tmp16_; 1298 gint _tmp16__length1; 1299 GSettings* _tmp17_; 1300 GtkListStore* _tmp18_; 1301 gint _tmp19_ = 0; 1302 gchar** _tmp20_ = NULL; 1303 gchar** _tmp21_; 1304 gint _tmp21__length1; 1305 GSettings* _tmp22_; 1306 GtkListStore* _tmp23_; 1307 gint _tmp24_ = 0; 1308 gchar** _tmp25_ = NULL; 1309 gchar** _tmp26_; 1310 gint _tmp26__length1; 1311 GSettings* _tmp27_; 1312 GtkScale* _tmp28_; 1313 gdouble _tmp29_ = 0.0; 1314 GSettings* _tmp30_; 1315 GtkScale* _tmp31_; 1316 gdouble _tmp32_ = 0.0; 1317 gint sched_idle = 0; 1318 GtkRadioButton* _tmp33_; 1319 gboolean _tmp34_; 1320 gboolean _tmp35_; 1321 GSettings* _tmp42_; 1322 gint _tmp43_; 1323 GSettings* _tmp44_; 1324 gint _tmp45_; 1325 GSettings* _tmp46_; 1326 GSettings* _tmp47_; 1327 #line 248 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1328 g_debug ("tracker-preferences.vala:248: Converting directories for storage"); 1329 #line 250 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1330 _tmp2_ = self->priv->settings_miner_fs; 1331 #line 250 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1332 _tmp3_ = self->priv->liststore_index; 1333 #line 250 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1334 _tmp5_ = tracker_preferences_model_to_strv (self, _tmp3_, TRUE, FALSE, &_tmp4_); 1335 #line 250 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1336 _tmp6_ = _tmp5_; 1337 #line 250 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1338 _tmp6__length1 = _tmp4_; 1339 #line 250 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1340 g_settings_set_strv (_tmp2_, "index-single-directories", _tmp6_); 1341 #line 250 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1342 _tmp6_ = (_vala_array_free (_tmp6_, _tmp6__length1, (GDestroyNotify) g_free), NULL); 1343 #line 251 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1344 _tmp7_ = self->priv->settings_miner_fs; 1345 #line 251 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1346 _tmp8_ = self->priv->liststore_index; 1347 #line 251 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1348 _tmp10_ = tracker_preferences_model_to_strv (self, _tmp8_, TRUE, TRUE, &_tmp9_); 1349 #line 251 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1350 _tmp11_ = _tmp10_; 1351 #line 251 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1352 _tmp11__length1 = _tmp9_; 1353 #line 251 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1354 g_settings_set_strv (_tmp7_, "index-recursive-directories", _tmp11_); 1355 #line 251 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1356 _tmp11_ = (_vala_array_free (_tmp11_, _tmp11__length1, (GDestroyNotify) g_free), NULL); 1357 #line 252 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1358 _tmp12_ = self->priv->settings_miner_fs; 1359 #line 252 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1360 _tmp13_ = self->priv->liststore_ignored_directories; 1361 #line 252 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1362 _tmp15_ = tracker_preferences_model_to_strv (self, _tmp13_, FALSE, FALSE, &_tmp14_); 1363 #line 252 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1364 _tmp16_ = _tmp15_; 1365 #line 252 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1366 _tmp16__length1 = _tmp14_; 1367 #line 252 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1368 g_settings_set_strv (_tmp12_, "ignored-directories", _tmp16_); 1369 #line 252 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1370 _tmp16_ = (_vala_array_free (_tmp16_, _tmp16__length1, (GDestroyNotify) g_free), NULL); 1371 #line 253 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1372 _tmp17_ = self->priv->settings_miner_fs; 1373 #line 253 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1374 _tmp18_ = self->priv->liststore_ignored_files; 1375 #line 253 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1376 _tmp20_ = tracker_preferences_model_to_strv (self, _tmp18_, FALSE, FALSE, &_tmp19_); 1377 #line 253 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1378 _tmp21_ = _tmp20_; 1379 #line 253 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1380 _tmp21__length1 = _tmp19_; 1381 #line 253 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1382 g_settings_set_strv (_tmp17_, "ignored-files", _tmp21_); 1383 #line 253 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1384 _tmp21_ = (_vala_array_free (_tmp21_, _tmp21__length1, (GDestroyNotify) g_free), NULL); 1385 #line 254 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1386 _tmp22_ = self->priv->settings_miner_fs; 1387 #line 254 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1388 _tmp23_ = self->priv->liststore_ignored_directories_with_content; 1389 #line 254 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1390 _tmp25_ = tracker_preferences_model_to_strv (self, _tmp23_, FALSE, FALSE, &_tmp24_); 1391 #line 254 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1392 _tmp26_ = _tmp25_; 1393 #line 254 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1394 _tmp26__length1 = _tmp24_; 1395 #line 254 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1396 g_settings_set_strv (_tmp22_, "ignored-directories-with-content", _tmp26_); 1397 #line 254 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1398 _tmp26_ = (_vala_array_free (_tmp26_, _tmp26__length1, (GDestroyNotify) g_free), NULL); 1399 #line 256 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1400 _tmp27_ = self->priv->settings_miner_fs; 1401 #line 256 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1402 _tmp28_ = self->priv->hscale_disk_space_limit; 1403 #line 256 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1404 _tmp29_ = gtk_range_get_value ((GtkRange*) _tmp28_); 1405 #line 256 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1406 g_settings_set_int (_tmp27_, "low-disk-space-limit", (gint) _tmp29_); 1407 #line 257 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1408 _tmp30_ = self->priv->settings_miner_fs; 1409 #line 257 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1410 _tmp31_ = self->priv->hscale_drop_device_threshold; 1411 #line 257 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1412 _tmp32_ = gtk_range_get_value ((GtkRange*) _tmp31_); 1413 #line 257 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1414 g_settings_set_int (_tmp30_, "removable-days-threshold", (gint) _tmp32_); 1415 #line 261 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1416 _tmp33_ = self->priv->radiobutton_sched_idle_always; 1417 #line 261 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1418 _tmp34_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp33_); 1419 #line 261 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1420 _tmp35_ = _tmp34_; 1421 #line 261 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1422 if (_tmp35_) { 1423 #line 262 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1424 sched_idle = 0; 1425 #line 1426 "tracker-preferences.c" 1426 } else { 1427 GtkRadioButton* _tmp36_; 1428 gboolean _tmp37_; 1429 gboolean _tmp38_; 1430 #line 263 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1431 _tmp36_ = self->priv->radiobutton_sched_idle_first_index; 1432 #line 263 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1433 _tmp37_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp36_); 1434 #line 263 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1435 _tmp38_ = _tmp37_; 1436 #line 263 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1437 if (_tmp38_) { 1438 #line 264 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1439 sched_idle = 1; 1440 #line 1441 "tracker-preferences.c" 1441 } else { 1442 GtkRadioButton* _tmp39_; 1443 gboolean _tmp40_; 1444 gboolean _tmp41_; 1445 #line 265 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1446 _tmp39_ = self->priv->radiobutton_sched_idle_never; 1447 #line 265 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1448 _tmp40_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp39_); 1449 #line 265 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1450 _tmp41_ = _tmp40_; 1451 #line 265 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1452 if (_tmp41_) { 1453 #line 266 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1454 sched_idle = 2; 1455 #line 1456 "tracker-preferences.c" 1456 } else { 1457 #line 268 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1458 g_assert_not_reached (); 1459 #line 1460 "tracker-preferences.c" 1460 } 1461 } 1462 } 1463 #line 275 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1464 _tmp42_ = self->priv->settings_miner_fs; 1465 #line 275 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1466 _tmp43_ = sched_idle; 1467 #line 275 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1468 g_settings_set_enum (_tmp42_, "sched-idle", _tmp43_); 1469 #line 276 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1470 _tmp44_ = self->priv->settings_extract; 1471 #line 276 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1472 _tmp45_ = sched_idle; 1473 #line 276 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1474 g_settings_set_enum (_tmp44_, "sched-idle", _tmp45_); 1475 #line 278 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1476 g_debug ("tracker-preferences.vala:278: Saving settings..."); 1477 #line 279 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1478 _tmp46_ = self->priv->settings_miner_fs; 1479 #line 279 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1480 g_settings_apply (_tmp46_); 1481 #line 280 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1482 g_debug ("tracker-preferences.vala:280: tracker-miner-fs: Done"); 1483 #line 281 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1484 _tmp47_ = self->priv->settings_extract; 1485 #line 281 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1486 g_settings_apply (_tmp47_); 1487 #line 282 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1488 g_debug ("tracker-preferences.vala:282: tracker-extract: Done"); 1489 #line 285 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1490 return; 1491 #line 1492 "tracker-preferences.c" 1492 } 1493 default: 1494 { 1495 #line 288 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1496 break; 1497 #line 1498 "tracker-preferences.c" 1498 } 1499 } 1500 #line 291 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1501 gtk_main_quit (); 1502 #line 1503 "tracker-preferences.c" 1503 } 1504 1505 1506 void tracker_preferences_spinbutton_delay_value_changed_cb (GtkSpinButton* source, TrackerPreferences* self) { 1507 GSettings* _tmp0_; 1508 GtkSpinButton* _tmp1_; 1509 gint _tmp2_ = 0; 1510 #line 295 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1511 g_return_if_fail (self != NULL); 1512 #line 295 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1513 g_return_if_fail (source != NULL); 1514 #line 296 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1515 _tmp0_ = self->priv->settings_miner_fs; 1516 #line 296 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1517 _tmp1_ = source; 1518 #line 296 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1519 _tmp2_ = gtk_spin_button_get_value_as_int (_tmp1_); 1520 #line 296 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1521 g_settings_set_int (_tmp0_, "initial-sleep", _tmp2_); 1522 #line 1523 "tracker-preferences.c" 1523 } 1524 1525 1526 void tracker_preferences_checkbutton_enable_monitoring_toggled_cb (GtkCheckButton* source, TrackerPreferences* self) { 1527 GSettings* _tmp0_; 1528 GtkCheckButton* _tmp1_; 1529 gboolean _tmp2_; 1530 gboolean _tmp3_; 1531 #line 300 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1532 g_return_if_fail (self != NULL); 1533 #line 300 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1534 g_return_if_fail (source != NULL); 1535 #line 301 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1536 _tmp0_ = self->priv->settings_miner_fs; 1537 #line 301 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1538 _tmp1_ = source; 1539 #line 301 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1540 _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_); 1541 #line 301 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1542 _tmp3_ = _tmp2_; 1543 #line 301 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1544 g_settings_set_boolean (_tmp0_, "enable-monitors", _tmp3_); 1545 #line 1546 "tracker-preferences.c" 1546 } 1547 1548 1549 void tracker_preferences_checkbutton_enable_index_on_battery_toggled_cb (GtkCheckButton* source, TrackerPreferences* self) { 1550 GSettings* _tmp0_; 1551 GtkCheckButton* _tmp1_; 1552 gboolean _tmp2_; 1553 gboolean _tmp3_; 1554 GtkCheckButton* _tmp4_; 1555 GtkCheckButton* _tmp5_; 1556 gboolean _tmp6_; 1557 gboolean _tmp7_; 1558 #line 305 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1559 g_return_if_fail (self != NULL); 1560 #line 305 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1561 g_return_if_fail (source != NULL); 1562 #line 306 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1563 _tmp0_ = self->priv->settings_miner_fs; 1564 #line 306 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1565 _tmp1_ = source; 1566 #line 306 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1567 _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_); 1568 #line 306 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1569 _tmp3_ = _tmp2_; 1570 #line 306 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1571 g_settings_set_boolean (_tmp0_, "index-on-battery", _tmp3_); 1572 #line 307 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1573 _tmp4_ = self->priv->checkbutton_enable_index_on_battery_first_time; 1574 #line 307 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1575 _tmp5_ = source; 1576 #line 307 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1577 _tmp6_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp5_); 1578 #line 307 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1579 _tmp7_ = _tmp6_; 1580 #line 307 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1581 gtk_widget_set_sensitive ((GtkWidget*) _tmp4_, !_tmp7_); 1582 #line 1583 "tracker-preferences.c" 1583 } 1584 1585 1586 void tracker_preferences_checkbutton_enable_index_on_battery_first_time_toggled_cb (GtkCheckButton* source, TrackerPreferences* self) { 1587 GSettings* _tmp0_; 1588 GtkCheckButton* _tmp1_; 1589 gboolean _tmp2_; 1590 gboolean _tmp3_; 1591 #line 311 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1592 g_return_if_fail (self != NULL); 1593 #line 311 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1594 g_return_if_fail (source != NULL); 1595 #line 312 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1596 _tmp0_ = self->priv->settings_miner_fs; 1597 #line 312 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1598 _tmp1_ = source; 1599 #line 312 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1600 _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_); 1601 #line 312 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1602 _tmp3_ = _tmp2_; 1603 #line 312 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1604 g_settings_set_boolean (_tmp0_, "index-on-battery-first-time", _tmp3_); 1605 #line 1606 "tracker-preferences.c" 1606 } 1607 1608 1609 void tracker_preferences_checkbutton_index_removable_media_toggled_cb (GtkCheckButton* source, TrackerPreferences* self) { 1610 GSettings* _tmp0_; 1611 GtkCheckButton* _tmp1_; 1612 gboolean _tmp2_; 1613 gboolean _tmp3_; 1614 GtkCheckButton* _tmp4_; 1615 GtkCheckButton* _tmp5_; 1616 gboolean _tmp6_; 1617 gboolean _tmp7_; 1618 #line 316 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1619 g_return_if_fail (self != NULL); 1620 #line 316 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1621 g_return_if_fail (source != NULL); 1622 #line 317 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1623 _tmp0_ = self->priv->settings_miner_fs; 1624 #line 317 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1625 _tmp1_ = source; 1626 #line 317 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1627 _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_); 1628 #line 317 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1629 _tmp3_ = _tmp2_; 1630 #line 317 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1631 g_settings_set_boolean (_tmp0_, "index-removable-devices", _tmp3_); 1632 #line 318 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1633 _tmp4_ = self->priv->checkbutton_index_optical_discs; 1634 #line 318 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1635 _tmp5_ = source; 1636 #line 318 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1637 _tmp6_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp5_); 1638 #line 318 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1639 _tmp7_ = _tmp6_; 1640 #line 318 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1641 gtk_widget_set_sensitive ((GtkWidget*) _tmp4_, _tmp7_); 1642 #line 1643 "tracker-preferences.c" 1643 } 1644 1645 1646 void tracker_preferences_checkbutton_index_optical_discs_toggled_cb (GtkCheckButton* source, TrackerPreferences* self) { 1647 GSettings* _tmp0_; 1648 GtkCheckButton* _tmp1_; 1649 gboolean _tmp2_; 1650 gboolean _tmp3_; 1651 #line 322 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1652 g_return_if_fail (self != NULL); 1653 #line 322 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1654 g_return_if_fail (source != NULL); 1655 #line 323 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1656 _tmp0_ = self->priv->settings_miner_fs; 1657 #line 323 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1658 _tmp1_ = source; 1659 #line 323 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1660 _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_); 1661 #line 323 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1662 _tmp3_ = _tmp2_; 1663 #line 323 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1664 g_settings_set_boolean (_tmp0_, "index-optical-discs", _tmp3_); 1665 #line 1666 "tracker-preferences.c" 1666 } 1667 1668 1669 gchar* tracker_preferences_hscale_disk_space_limit_format_value_cb (GtkScale* source, gdouble value, TrackerPreferences* self) { 1670 gchar* result = NULL; 1671 gdouble _tmp0_; 1672 const gchar* _tmp3_ = NULL; 1673 gdouble _tmp4_; 1674 gchar* _tmp5_ = NULL; 1675 #line 327 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1676 g_return_val_if_fail (self != NULL, NULL); 1677 #line 327 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1678 g_return_val_if_fail (source != NULL, NULL); 1679 #line 328 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1680 _tmp0_ = value; 1681 #line 328 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1682 if (((gint) _tmp0_) == (-1)) { 1683 #line 1684 "tracker-preferences.c" 1684 const gchar* _tmp1_ = NULL; 1685 gchar* _tmp2_; 1686 #line 329 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1687 _tmp1_ = _ ("Disabled"); 1688 #line 329 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1689 _tmp2_ = g_strdup (_tmp1_); 1690 #line 329 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1691 result = _tmp2_; 1692 #line 329 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1693 return result; 1694 #line 1695 "tracker-preferences.c" 1695 } 1696 #line 332 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1697 _tmp3_ = _ ("%d%%"); 1698 #line 332 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1699 _tmp4_ = value; 1700 #line 332 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1701 _tmp5_ = g_strdup_printf (_tmp3_, (gint) _tmp4_); 1702 #line 332 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1703 result = _tmp5_; 1704 #line 332 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1705 return result; 1706 #line 1707 "tracker-preferences.c" 1707 } 1708 1709 1710 gchar* tracker_preferences_hscale_drop_device_threshold_format_value_cb (GtkScale* source, gdouble value, TrackerPreferences* self) { 1711 gchar* result = NULL; 1712 gdouble _tmp0_; 1713 const gchar* _tmp3_ = NULL; 1714 gdouble _tmp4_; 1715 gchar* _tmp5_ = NULL; 1716 #line 336 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1717 g_return_val_if_fail (self != NULL, NULL); 1718 #line 336 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1719 g_return_val_if_fail (source != NULL, NULL); 1720 #line 337 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1721 _tmp0_ = value; 1722 #line 337 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1723 if (((gint) _tmp0_) == 0) { 1724 #line 1725 "tracker-preferences.c" 1725 const gchar* _tmp1_ = NULL; 1726 gchar* _tmp2_; 1727 #line 338 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1728 _tmp1_ = _ ("Disabled"); 1729 #line 338 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1730 _tmp2_ = g_strdup (_tmp1_); 1731 #line 338 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1732 result = _tmp2_; 1733 #line 338 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1734 return result; 1735 #line 1736 "tracker-preferences.c" 1736 } 1737 #line 341 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1738 _tmp3_ = _ ("%d"); 1739 #line 341 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1740 _tmp4_ = value; 1741 #line 341 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1742 _tmp5_ = g_strdup_printf (_tmp3_, (gint) _tmp4_); 1743 #line 341 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1744 result = _tmp5_; 1745 #line 341 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1746 return result; 1747 #line 1748 "tracker-preferences.c" 1748 } 1749 1750 1751 void tracker_preferences_button_index_add_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1752 GtkListStore* _tmp0_; 1753 #line 345 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1754 g_return_if_fail (self != NULL); 1755 #line 345 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1756 g_return_if_fail (source != NULL); 1757 #line 346 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1758 _tmp0_ = self->priv->liststore_index; 1759 #line 346 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1760 tracker_preferences_store_add_dir (self, _tmp0_); 1761 #line 1762 "tracker-preferences.c" 1762 } 1763 1764 1765 void tracker_preferences_button_index_remove_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1766 GtkTreeView* _tmp0_; 1767 #line 350 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1768 g_return_if_fail (self != NULL); 1769 #line 350 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1770 g_return_if_fail (source != NULL); 1771 #line 351 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1772 _tmp0_ = self->priv->treeview_index; 1773 #line 351 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1774 tracker_preferences_store_del_dir (self, _tmp0_); 1775 #line 1776 "tracker-preferences.c" 1776 } 1777 1778 1779 void tracker_preferences_button_ignored_directories_globs_add_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1780 GtkListStore* _tmp0_; 1781 #line 355 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1782 g_return_if_fail (self != NULL); 1783 #line 355 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1784 g_return_if_fail (source != NULL); 1785 #line 356 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1786 _tmp0_ = self->priv->liststore_ignored_directories; 1787 #line 356 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1788 tracker_preferences_store_add_value_dialog (self, _tmp0_); 1789 #line 1790 "tracker-preferences.c" 1790 } 1791 1792 1793 void tracker_preferences_button_ignored_directories_add_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1794 GtkListStore* _tmp0_; 1795 #line 360 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1796 g_return_if_fail (self != NULL); 1797 #line 360 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1798 g_return_if_fail (source != NULL); 1799 #line 361 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1800 _tmp0_ = self->priv->liststore_ignored_directories; 1801 #line 361 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1802 tracker_preferences_store_add_dir (self, _tmp0_); 1803 #line 1804 "tracker-preferences.c" 1804 } 1805 1806 1807 void tracker_preferences_button_ignored_directories_remove_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1808 GtkTreeView* _tmp0_; 1809 #line 365 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1810 g_return_if_fail (self != NULL); 1811 #line 365 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1812 g_return_if_fail (source != NULL); 1813 #line 366 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1814 _tmp0_ = self->priv->treeview_ignored_directories; 1815 #line 366 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1816 tracker_preferences_store_del_dir (self, _tmp0_); 1817 #line 1818 "tracker-preferences.c" 1818 } 1819 1820 1821 void tracker_preferences_button_ignored_directories_with_content_add_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1822 GtkListStore* _tmp0_; 1823 #line 370 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1824 g_return_if_fail (self != NULL); 1825 #line 370 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1826 g_return_if_fail (source != NULL); 1827 #line 371 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1828 _tmp0_ = self->priv->liststore_ignored_directories_with_content; 1829 #line 371 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1830 tracker_preferences_store_add_value_dialog (self, _tmp0_); 1831 #line 1832 "tracker-preferences.c" 1832 } 1833 1834 1835 void tracker_preferences_button_ignored_directories_with_content_remove_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1836 GtkTreeView* _tmp0_; 1837 #line 375 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1838 g_return_if_fail (self != NULL); 1839 #line 375 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1840 g_return_if_fail (source != NULL); 1841 #line 376 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1842 _tmp0_ = self->priv->treeview_ignored_directories_with_content; 1843 #line 376 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1844 tracker_preferences_store_del_dir (self, _tmp0_); 1845 #line 1846 "tracker-preferences.c" 1846 } 1847 1848 1849 void tracker_preferences_button_ignored_files_add_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1850 GtkListStore* _tmp0_; 1851 #line 380 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1852 g_return_if_fail (self != NULL); 1853 #line 380 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1854 g_return_if_fail (source != NULL); 1855 #line 381 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1856 _tmp0_ = self->priv->liststore_ignored_files; 1857 #line 381 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1858 tracker_preferences_store_add_value_dialog (self, _tmp0_); 1859 #line 1860 "tracker-preferences.c" 1860 } 1861 1862 1863 void tracker_preferences_button_ignored_files_remove_clicked_cb (GtkButton* source, TrackerPreferences* self) { 1864 GtkTreeView* _tmp0_; 1865 #line 385 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1866 g_return_if_fail (self != NULL); 1867 #line 385 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1868 g_return_if_fail (source != NULL); 1869 #line 386 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1870 _tmp0_ = self->priv->treeview_ignored_files; 1871 #line 386 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1872 tracker_preferences_store_del_dir (self, _tmp0_); 1873 #line 1874 "tracker-preferences.c" 1874 } 1875 1876 1877 static void tracker_preferences_togglebutton_directory_update_model (TrackerPreferences* self, GtkToggleButton* source, GtkListStore* store, const gchar* to_check) { 1878 gboolean _tmp0_ = FALSE; 1879 GtkToggleButton* _tmp1_; 1880 gboolean _tmp2_; 1881 gboolean _tmp3_; 1882 gboolean _tmp7_; 1883 gboolean _tmp21_ = FALSE; 1884 GtkToggleButton* _tmp22_; 1885 gboolean _tmp23_; 1886 gboolean _tmp24_; 1887 gboolean _tmp28_; 1888 #line 389 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1889 g_return_if_fail (self != NULL); 1890 #line 389 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1891 g_return_if_fail (source != NULL); 1892 #line 389 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1893 g_return_if_fail (store != NULL); 1894 #line 389 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1895 g_return_if_fail (to_check != NULL); 1896 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1897 _tmp1_ = source; 1898 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1899 _tmp2_ = gtk_toggle_button_get_active (_tmp1_); 1900 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1901 _tmp3_ = _tmp2_; 1902 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1903 if (_tmp3_) { 1904 #line 1905 "tracker-preferences.c" 1905 GtkListStore* _tmp4_; 1906 const gchar* _tmp5_; 1907 gboolean _tmp6_ = FALSE; 1908 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1909 _tmp4_ = store; 1910 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1911 _tmp5_ = to_check; 1912 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1913 _tmp6_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp4_, _tmp5_); 1914 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1915 _tmp0_ = !_tmp6_; 1916 #line 1917 "tracker-preferences.c" 1917 } else { 1918 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1919 _tmp0_ = FALSE; 1920 #line 1921 "tracker-preferences.c" 1921 } 1922 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1923 _tmp7_ = _tmp0_; 1924 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1925 if (_tmp7_) { 1926 #line 1927 "tracker-preferences.c" 1927 GtkTreeIter iter = {0}; 1928 GtkListStore* _tmp8_; 1929 GtkTreeIter _tmp9_ = {0}; 1930 GValue _tmp10_ = {0}; 1931 GValue v; 1932 const gchar* _tmp11_; 1933 const gchar* _tmp12_; 1934 const gchar* _tmp13_; 1935 gboolean recurse; 1936 GtkListStore* _tmp14_; 1937 GtkTreeIter _tmp15_; 1938 GValue _tmp16_; 1939 GtkListStore* _tmp17_; 1940 GtkTreeIter _tmp18_; 1941 gboolean _tmp19_; 1942 GValue _tmp20_ = {0}; 1943 #line 392 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1944 _tmp8_ = self->priv->liststore_index; 1945 #line 392 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1946 gtk_list_store_append (_tmp8_, &_tmp9_); 1947 #line 392 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1948 iter = _tmp9_; 1949 #line 393 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1950 g_value_init (&_tmp10_, G_TYPE_STRING); 1951 #line 393 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1952 v = _tmp10_; 1953 #line 394 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1954 _tmp11_ = to_check; 1955 #line 394 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1956 g_value_set_string (&v, _tmp11_); 1957 #line 396 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1958 _tmp12_ = to_check; 1959 #line 396 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1960 _tmp13_ = self->priv->HOME_STRING_EVALUATED; 1961 #line 396 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1962 recurse = g_strcmp0 (_tmp12_, _tmp13_) != 0; 1963 #line 397 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1964 _tmp14_ = self->priv->liststore_index; 1965 #line 397 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1966 _tmp15_ = iter; 1967 #line 397 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1968 _tmp16_ = v; 1969 #line 397 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1970 gtk_list_store_set_value (_tmp14_, &_tmp15_, 0, &_tmp16_); 1971 #line 398 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1972 _tmp17_ = self->priv->liststore_index; 1973 #line 398 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1974 _tmp18_ = iter; 1975 #line 398 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1976 _tmp19_ = recurse; 1977 #line 398 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1978 g_value_init (&_tmp20_, G_TYPE_BOOLEAN); 1979 #line 398 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1980 g_value_set_boolean (&_tmp20_, _tmp19_); 1981 #line 398 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1982 gtk_list_store_set_value (_tmp17_, &_tmp18_, 1, &_tmp20_); 1983 #line 398 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1984 G_IS_VALUE (&_tmp20_) ? (g_value_unset (&_tmp20_), NULL) : NULL; 1985 #line 390 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1986 G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL; 1987 #line 1988 "tracker-preferences.c" 1988 } 1989 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1990 _tmp22_ = source; 1991 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1992 _tmp23_ = gtk_toggle_button_get_active (_tmp22_); 1993 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1994 _tmp24_ = _tmp23_; 1995 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 1996 if (!_tmp24_) { 1997 #line 1998 "tracker-preferences.c" 1998 GtkListStore* _tmp25_; 1999 const gchar* _tmp26_; 2000 gboolean _tmp27_ = FALSE; 2001 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2002 _tmp25_ = store; 2003 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2004 _tmp26_ = to_check; 2005 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2006 _tmp27_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp25_, _tmp26_); 2007 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2008 _tmp21_ = _tmp27_; 2009 #line 2010 "tracker-preferences.c" 2010 } else { 2011 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2012 _tmp21_ = FALSE; 2013 #line 2014 "tracker-preferences.c" 2014 } 2015 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2016 _tmp28_ = _tmp21_; 2017 #line 401 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2018 if (_tmp28_) { 2019 #line 2020 "tracker-preferences.c" 2020 gboolean valid = FALSE; 2021 GtkTreeIter iter = {0}; 2022 GtkListStore* _tmp29_; 2023 GtkTreeIter _tmp30_ = {0}; 2024 gboolean _tmp31_ = FALSE; 2025 #line 405 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2026 _tmp29_ = store; 2027 #line 405 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2028 _tmp31_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp29_, &_tmp30_); 2029 #line 405 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2030 iter = _tmp30_; 2031 #line 405 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2032 valid = _tmp31_; 2033 #line 406 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2034 while (TRUE) { 2035 #line 2036 "tracker-preferences.c" 2036 gboolean _tmp32_; 2037 GValue value = {0}; 2038 GtkListStore* _tmp33_; 2039 GtkTreeIter _tmp34_; 2040 GValue _tmp35_ = {0}; 2041 const gchar* _tmp36_ = NULL; 2042 const gchar* _tmp37_; 2043 #line 406 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2044 _tmp32_ = valid; 2045 #line 406 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2046 if (!_tmp32_) { 2047 #line 406 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2048 break; 2049 #line 2050 "tracker-preferences.c" 2050 } 2051 #line 408 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2052 _tmp33_ = store; 2053 #line 408 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2054 _tmp34_ = iter; 2055 #line 408 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2056 gtk_tree_model_get_value ((GtkTreeModel*) _tmp33_, &_tmp34_, 0, &_tmp35_); 2057 #line 408 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2058 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL; 2059 #line 408 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2060 value = _tmp35_; 2061 #line 409 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2062 _tmp36_ = g_value_get_string (&value); 2063 #line 409 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2064 _tmp37_ = to_check; 2065 #line 409 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2066 if (g_strcmp0 (_tmp36_, _tmp37_) == 0) { 2067 #line 2068 "tracker-preferences.c" 2068 GtkListStore* _tmp38_; 2069 GtkTreeIter _tmp39_; 2070 GtkListStore* _tmp40_; 2071 GtkTreeIter _tmp41_ = {0}; 2072 gboolean _tmp42_ = FALSE; 2073 #line 410 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2074 _tmp38_ = store; 2075 #line 410 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2076 _tmp39_ = iter; 2077 #line 410 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2078 gtk_list_store_remove (_tmp38_, &_tmp39_); 2079 #line 411 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2080 _tmp40_ = store; 2081 #line 411 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2082 _tmp42_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp40_, &_tmp41_); 2083 #line 411 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2084 iter = _tmp41_; 2085 #line 411 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2086 valid = _tmp42_; 2087 #line 2088 "tracker-preferences.c" 2088 } else { 2089 GtkListStore* _tmp43_; 2090 gboolean _tmp44_ = FALSE; 2091 #line 413 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2092 _tmp43_ = store; 2093 #line 413 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2094 _tmp44_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp43_, &iter); 2095 #line 413 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2096 valid = _tmp44_; 2097 #line 2098 "tracker-preferences.c" 2098 } 2099 #line 406 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2100 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL; 2101 #line 2102 "tracker-preferences.c" 2102 } 2103 } 2104 } 2105 2106 2107 void tracker_preferences_togglebutton_home_toggled_cb (GtkToggleButton* source, TrackerPreferences* self) { 2108 GtkToggleButton* _tmp0_; 2109 GtkListStore* _tmp1_; 2110 const gchar* _tmp2_; 2111 #line 420 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2112 g_return_if_fail (self != NULL); 2113 #line 420 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2114 g_return_if_fail (source != NULL); 2115 #line 421 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2116 _tmp0_ = source; 2117 #line 421 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2118 _tmp1_ = self->priv->liststore_index; 2119 #line 421 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2120 _tmp2_ = self->priv->HOME_STRING_EVALUATED; 2121 #line 421 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2122 tracker_preferences_togglebutton_directory_update_model (self, _tmp0_, _tmp1_, _tmp2_); 2123 #line 2124 "tracker-preferences.c" 2124 } 2125 2126 2127 void tracker_preferences_togglebutton_desktop_toggled_cb (GtkToggleButton* source, TrackerPreferences* self) { 2128 GtkToggleButton* _tmp0_; 2129 GtkListStore* _tmp1_; 2130 const gchar* _tmp2_ = NULL; 2131 #line 425 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2132 g_return_if_fail (self != NULL); 2133 #line 425 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2134 g_return_if_fail (source != NULL); 2135 #line 426 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2136 _tmp0_ = source; 2137 #line 426 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2138 _tmp1_ = self->priv->liststore_index; 2139 #line 426 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2140 _tmp2_ = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP); 2141 #line 426 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2142 tracker_preferences_togglebutton_directory_update_model (self, _tmp0_, _tmp1_, _tmp2_); 2143 #line 2144 "tracker-preferences.c" 2144 } 2145 2146 2147 void tracker_preferences_togglebutton_documents_toggled_cb (GtkToggleButton* source, TrackerPreferences* self) { 2148 GtkToggleButton* _tmp0_; 2149 GtkListStore* _tmp1_; 2150 const gchar* _tmp2_ = NULL; 2151 #line 430 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2152 g_return_if_fail (self != NULL); 2153 #line 430 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2154 g_return_if_fail (source != NULL); 2155 #line 431 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2156 _tmp0_ = source; 2157 #line 431 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2158 _tmp1_ = self->priv->liststore_index; 2159 #line 431 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2160 _tmp2_ = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS); 2161 #line 431 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2162 tracker_preferences_togglebutton_directory_update_model (self, _tmp0_, _tmp1_, _tmp2_); 2163 #line 2164 "tracker-preferences.c" 2164 } 2165 2166 2167 void tracker_preferences_togglebutton_music_toggled_cb (GtkToggleButton* source, TrackerPreferences* self) { 2168 GtkToggleButton* _tmp0_; 2169 GtkListStore* _tmp1_; 2170 const gchar* _tmp2_ = NULL; 2171 #line 435 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2172 g_return_if_fail (self != NULL); 2173 #line 435 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2174 g_return_if_fail (source != NULL); 2175 #line 436 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2176 _tmp0_ = source; 2177 #line 436 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2178 _tmp1_ = self->priv->liststore_index; 2179 #line 436 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2180 _tmp2_ = g_get_user_special_dir (G_USER_DIRECTORY_MUSIC); 2181 #line 436 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2182 tracker_preferences_togglebutton_directory_update_model (self, _tmp0_, _tmp1_, _tmp2_); 2183 #line 2184 "tracker-preferences.c" 2184 } 2185 2186 2187 void tracker_preferences_togglebutton_pictures_toggled_cb (GtkToggleButton* source, TrackerPreferences* self) { 2188 GtkToggleButton* _tmp0_; 2189 GtkListStore* _tmp1_; 2190 const gchar* _tmp2_ = NULL; 2191 #line 440 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2192 g_return_if_fail (self != NULL); 2193 #line 440 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2194 g_return_if_fail (source != NULL); 2195 #line 441 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2196 _tmp0_ = source; 2197 #line 441 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2198 _tmp1_ = self->priv->liststore_index; 2199 #line 441 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2200 _tmp2_ = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES); 2201 #line 441 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2202 tracker_preferences_togglebutton_directory_update_model (self, _tmp0_, _tmp1_, _tmp2_); 2203 #line 2204 "tracker-preferences.c" 2204 } 2205 2206 2207 void tracker_preferences_togglebutton_videos_toggled_cb (GtkToggleButton* source, TrackerPreferences* self) { 2208 GtkToggleButton* _tmp0_; 2209 GtkListStore* _tmp1_; 2210 const gchar* _tmp2_ = NULL; 2211 #line 445 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2212 g_return_if_fail (self != NULL); 2213 #line 445 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2214 g_return_if_fail (source != NULL); 2215 #line 446 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2216 _tmp0_ = source; 2217 #line 446 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2218 _tmp1_ = self->priv->liststore_index; 2219 #line 446 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2220 _tmp2_ = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS); 2221 #line 446 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2222 tracker_preferences_togglebutton_directory_update_model (self, _tmp0_, _tmp1_, _tmp2_); 2223 #line 2224 "tracker-preferences.c" 2224 } 2225 2226 2227 void tracker_preferences_togglebutton_download_toggled_cb (GtkToggleButton* source, TrackerPreferences* self) { 2228 GtkToggleButton* _tmp0_; 2229 GtkListStore* _tmp1_; 2230 const gchar* _tmp2_ = NULL; 2231 #line 450 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2232 g_return_if_fail (self != NULL); 2233 #line 450 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2234 g_return_if_fail (source != NULL); 2235 #line 451 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2236 _tmp0_ = source; 2237 #line 451 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2238 _tmp1_ = self->priv->liststore_index; 2239 #line 451 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2240 _tmp2_ = g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD); 2241 #line 451 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2242 tracker_preferences_togglebutton_directory_update_model (self, _tmp0_, _tmp1_, _tmp2_); 2243 #line 2244 "tracker-preferences.c" 2244 } 2245 2246 2247 void tracker_preferences_button_reindex_clicked_cb (GtkButton* source, TrackerPreferences* self) { 2248 FILE* _tmp0_; 2249 gchar* output = NULL; 2250 gchar* errors = NULL; 2251 gint status = 0;
variable 'status' set but not used
(emitted by gcc)
2252 FILE* _tmp12_; 2253 FILE* _tmp13_; 2254 GError * _inner_error_ = NULL; 2255 #line 455 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2256 g_return_if_fail (self != NULL); 2257 #line 455 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2258 g_return_if_fail (source != NULL); 2259 #line 456 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2260 _tmp0_ = stdout; 2261 #line 456 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2262 fprintf (_tmp0_, "Reindexing...\n"); 2263 #line 2264 "tracker-preferences.c" 2264 { 2265 gchar* _tmp1_; 2266 gchar* _tmp2_; 2267 gchar* _tmp3_; 2268 gchar** _tmp4_ = NULL; 2269 gchar** _tmp5_; 2270 gint _tmp5__length1; 2271 gchar* _tmp6_ = NULL; 2272 gchar* _tmp7_ = NULL; 2273 gint _tmp8_ = 0; 2274 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2275 _tmp1_ = g_strdup ("tracker-control"); 2276 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2277 _tmp2_ = g_strdup ("--hard-reset"); 2278 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2279 _tmp3_ = g_strdup ("--start"); 2280 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2281 _tmp4_ = g_new0 (gchar*, 3 + 1); 2282 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2283 _tmp4_[0] = _tmp1_; 2284 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2285 _tmp4_[1] = _tmp2_; 2286 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2287 _tmp4_[2] = _tmp3_; 2288 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2289 _tmp5_ = _tmp4_; 2290 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2291 _tmp5__length1 = 3; 2292 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2293 g_spawn_sync (NULL, _tmp5_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp6_, &_tmp7_, &_tmp8_, &_inner_error_); 2294 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2295 _g_free0 (output); 2296 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2297 output = _tmp6_; 2298 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2299 _g_free0 (errors); 2300 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2301 errors = _tmp7_; 2302 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2303 status = _tmp8_; 2304 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2305 _tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL); 2306 #line 462 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2307 if (_inner_error_ != NULL) { 2308 #line 2309 "tracker-preferences.c" 2309 goto __catch2_g_error; 2310 } 2311 } 2312 goto __finally2; 2313 __catch2_g_error: 2314 { 2315 GError* e = NULL; 2316 FILE* _tmp9_; 2317 GError* _tmp10_; 2318 const gchar* _tmp11_; 2319 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2320 e = _inner_error_; 2321 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2322 _inner_error_ = NULL; 2323 #line 471 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2324 _tmp9_ = stderr; 2325 #line 471 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2326 _tmp10_ = e; 2327 #line 471 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2328 _tmp11_ = _tmp10_->message; 2329 #line 471 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2330 fprintf (_tmp9_, "Could not reindex: %s", _tmp11_); 2331 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2332 _g_error_free0 (e); 2333 #line 2334 "tracker-preferences.c" 2334 } 2335 __finally2: 2336 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2337 if (_inner_error_ != NULL) { 2338 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2339 _g_free0 (errors); 2340 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2341 _g_free0 (output); 2342 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2343 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); 2344 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2345 g_clear_error (&_inner_error_); 2346 #line 461 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2347 return; 2348 #line 2349 "tracker-preferences.c" 2349 } 2350 #line 473 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2351 _tmp12_ = stdout; 2352 #line 473 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2353 fprintf (_tmp12_, "%s\n", output); 2354 #line 474 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2355 _tmp13_ = stdout; 2356 #line 474 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2357 fprintf (_tmp13_, "Finishing...\n"); 2358 #line 455 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2359 _g_free0 (errors); 2360 #line 455 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2361 _g_free0 (output); 2362 #line 2363 "tracker-preferences.c" 2363 } 2364 2365 2366 static void tracker_preferences_toggles_update (TrackerPreferences* self, GUserDirectory* matches, int matches_length1, gboolean active) { 2367 GUserDirectory* _tmp0_; 2368 gint _tmp0__length1; 2369 #line 477 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2370 g_return_if_fail (self != NULL); 2371 #line 479 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2372 _tmp0_ = matches; 2373 #line 479 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2374 _tmp0__length1 = matches_length1; 2375 #line 2376 "tracker-preferences.c" 2376 { 2377 GUserDirectory* ud_collection = NULL; 2378 gint ud_collection_length1 = 0; 2379 gint _ud_collection_size_ = 0;
unused variable '_ud_collection_size_'
(emitted by gcc)
2380 gint ud_it = 0; 2381 #line 479 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2382 ud_collection = _tmp0_; 2383 #line 479 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2384 ud_collection_length1 = _tmp0__length1; 2385 #line 479 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2386 for (ud_it = 0; ud_it < _tmp0__length1; ud_it = ud_it + 1) { 2387 #line 2388 "tracker-preferences.c" 2388 GUserDirectory ud = 0; 2389 #line 479 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2390 ud = ud_collection[ud_it]; 2391 #line 2392 "tracker-preferences.c" 2392 { 2393 GUserDirectory _tmp1_; 2394 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2395 _tmp1_ = ud; 2396 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2397 switch (_tmp1_) { 2398 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2399 case G_USER_DIRECTORY_DESKTOP: 2400 #line 2401 "tracker-preferences.c" 2401 { 2402 GtkToggleButton* _tmp2_; 2403 gboolean _tmp3_; 2404 #line 482 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2405 _tmp2_ = self->priv->togglebutton_desktop; 2406 #line 482 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2407 _tmp3_ = active; 2408 #line 482 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2409 gtk_toggle_button_set_active (_tmp2_, _tmp3_); 2410 #line 483 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2411 break; 2412 #line 2413 "tracker-preferences.c" 2413 } 2414 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2415 case G_USER_DIRECTORY_DOCUMENTS: 2416 #line 2417 "tracker-preferences.c" 2417 { 2418 GtkToggleButton* _tmp4_; 2419 gboolean _tmp5_; 2420 #line 485 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2421 _tmp4_ = self->priv->togglebutton_documents; 2422 #line 485 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2423 _tmp5_ = active; 2424 #line 485 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2425 gtk_toggle_button_set_active (_tmp4_, _tmp5_); 2426 #line 486 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2427 break; 2428 #line 2429 "tracker-preferences.c" 2429 } 2430 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2431 case G_USER_DIRECTORY_DOWNLOAD: 2432 #line 2433 "tracker-preferences.c" 2433 { 2434 GtkToggleButton* _tmp6_; 2435 gboolean _tmp7_; 2436 #line 488 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2437 _tmp6_ = self->priv->togglebutton_download; 2438 #line 488 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2439 _tmp7_ = active; 2440 #line 488 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2441 gtk_toggle_button_set_active (_tmp6_, _tmp7_); 2442 #line 489 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2443 break; 2444 #line 2445 "tracker-preferences.c" 2445 } 2446 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2447 case G_USER_DIRECTORY_MUSIC: 2448 #line 2449 "tracker-preferences.c" 2449 { 2450 GtkToggleButton* _tmp8_; 2451 gboolean _tmp9_; 2452 #line 491 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2453 _tmp8_ = self->priv->togglebutton_music; 2454 #line 491 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2455 _tmp9_ = active; 2456 #line 491 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2457 gtk_toggle_button_set_active (_tmp8_, _tmp9_); 2458 #line 492 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2459 break; 2460 #line 2461 "tracker-preferences.c" 2461 } 2462 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2463 case G_USER_DIRECTORY_PICTURES: 2464 #line 2465 "tracker-preferences.c" 2465 { 2466 GtkToggleButton* _tmp10_; 2467 gboolean _tmp11_; 2468 #line 494 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2469 _tmp10_ = self->priv->togglebutton_pictures; 2470 #line 494 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2471 _tmp11_ = active; 2472 #line 494 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2473 gtk_toggle_button_set_active (_tmp10_, _tmp11_); 2474 #line 495 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2475 break; 2476 #line 2477 "tracker-preferences.c" 2477 } 2478 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2479 case G_USER_DIRECTORY_VIDEOS: 2480 #line 2481 "tracker-preferences.c" 2481 { 2482 GtkToggleButton* _tmp12_; 2483 gboolean _tmp13_; 2484 #line 497 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2485 _tmp12_ = self->priv->togglebutton_videos; 2486 #line 497 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2487 _tmp13_ = active; 2488 #line 497 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2489 gtk_toggle_button_set_active (_tmp12_, _tmp13_); 2490 #line 498 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2491 break; 2492 #line 2493 "tracker-preferences.c" 2493 } 2494 default: 2495 #line 480 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2496 break; 2497 #line 2498 "tracker-preferences.c" 2498 } 2499 } 2500 } 2501 } 2502 } 2503 2504 2505 static void tracker_preferences_store_add_value_dialog (TrackerPreferences* self, GtkListStore* store) { 2506 GtkDialog* dialog = NULL; 2507 GtkEntry* entry = NULL; 2508 GtkContainer* content_area = NULL; 2509 const gchar* _tmp0_ = NULL; 2510 GtkWindow* _tmp1_; 2511 GtkDialog* _tmp2_; 2512 GtkDialog* _tmp3_; 2513 GtkDialog* _tmp4_; 2514 GtkBox* _tmp5_ = NULL; 2515 GtkContainer* _tmp6_; 2516 GtkEntry* _tmp7_; 2517 GtkEntry* _tmp8_; 2518 GtkEntry* _tmp9_; 2519 GtkContainer* _tmp10_; 2520 GtkEntry* _tmp11_; 2521 GtkDialog* _tmp12_; 2522 gint _tmp13_ = 0; 2523 GtkDialog* _tmp28_; 2524 #line 503 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2525 g_return_if_fail (self != NULL); 2526 #line 503 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2527 g_return_if_fail (store != NULL); 2528 #line 508 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2529 _tmp0_ = _ ("Enter value"); 2530 #line 508 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2531 _tmp1_ = self->priv->window; 2532 #line 508 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2533 _tmp2_ = (GtkDialog*) gtk_dialog_new_with_buttons (_tmp0_, _tmp1_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL); 2534 #line 508 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2535 g_object_ref_sink (_tmp2_); 2536 #line 508 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2537 _g_object_unref0 (dialog); 2538 #line 508 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2539 dialog = _tmp2_; 2540 #line 514 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2541 _tmp3_ = dialog; 2542 #line 514 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2543 gtk_dialog_set_default_response (_tmp3_, (gint) GTK_RESPONSE_ACCEPT); 2544 #line 515 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2545 _tmp4_ = dialog; 2546 #line 515 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2547 _tmp5_ = gtk_dialog_get_content_area (_tmp4_); 2548 #line 515 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2549 _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GTK_TYPE_CONTAINER, GtkContainer)); 2550 #line 515 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2551 _g_object_unref0 (content_area); 2552 #line 515 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2553 content_area = _tmp6_; 2554 #line 516 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2555 _tmp7_ = (GtkEntry*) gtk_entry_new (); 2556 #line 516 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2557 g_object_ref_sink (_tmp7_); 2558 #line 516 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2559 _g_object_unref0 (entry); 2560 #line 516 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2561 entry = _tmp7_; 2562 #line 517 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2563 _tmp8_ = entry; 2564 #line 517 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2565 gtk_entry_set_activates_default (_tmp8_, TRUE); 2566 #line 518 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2567 _tmp9_ = entry; 2568 #line 518 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2569 gtk_widget_show ((GtkWidget*) _tmp9_); 2570 #line 519 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2571 _tmp10_ = content_area; 2572 #line 519 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2573 _tmp11_ = entry; 2574 #line 519 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2575 gtk_container_add (_tmp10_, (GtkWidget*) _tmp11_); 2576 #line 521 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2577 _tmp12_ = dialog; 2578 #line 521 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2579 _tmp13_ = gtk_dialog_run (_tmp12_); 2580 #line 521 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2581 if (_tmp13_ == ((gint) GTK_RESPONSE_ACCEPT)) { 2582 #line 2583 "tracker-preferences.c" 2583 GtkEntry* _tmp14_; 2584 const gchar* _tmp15_ = NULL; 2585 gchar* _tmp16_; 2586 gchar* text; 2587 gboolean _tmp17_ = FALSE; 2588 const gchar* _tmp18_; 2589 gboolean _tmp20_; 2590 #line 522 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2591 _tmp14_ = entry; 2592 #line 522 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2593 _tmp15_ = gtk_entry_get_text (_tmp14_); 2594 #line 522 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2595 _tmp16_ = g_strdup (_tmp15_); 2596 #line 522 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2597 text = _tmp16_; 2598 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2599 _tmp18_ = text; 2600 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2601 if (_tmp18_ != NULL) { 2602 #line 2603 "tracker-preferences.c" 2603 const gchar* _tmp19_; 2604 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2605 _tmp19_ = text; 2606 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2607 _tmp17_ = g_strcmp0 (_tmp19_, "") != 0; 2608 #line 2609 "tracker-preferences.c" 2609 } else { 2610 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2611 _tmp17_ = FALSE; 2612 #line 2613 "tracker-preferences.c" 2613 } 2614 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2615 _tmp20_ = _tmp17_; 2616 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2617 if (_tmp20_) { 2618 #line 2619 "tracker-preferences.c" 2619 GtkTreeIter iter = {0}; 2620 GtkListStore* _tmp21_; 2621 GtkTreeIter _tmp22_ = {0}; 2622 GValue _tmp23_ = {0}; 2623 GValue v; 2624 const gchar* _tmp24_; 2625 GtkListStore* _tmp25_; 2626 GtkTreeIter _tmp26_; 2627 GValue _tmp27_; 2628 #line 526 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2629 _tmp21_ = store; 2630 #line 526 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2631 gtk_list_store_append (_tmp21_, &_tmp22_); 2632 #line 526 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2633 iter = _tmp22_; 2634 #line 527 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2635 g_value_init (&_tmp23_, G_TYPE_STRING); 2636 #line 527 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2637 v = _tmp23_; 2638 #line 528 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2639 _tmp24_ = text; 2640 #line 528 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2641 g_value_set_string (&v, _tmp24_); 2642 #line 529 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2643 _tmp25_ = store; 2644 #line 529 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2645 _tmp26_ = iter; 2646 #line 529 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2647 _tmp27_ = v; 2648 #line 529 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2649 gtk_list_store_set_value (_tmp25_, &_tmp26_, 0, &_tmp27_); 2650 #line 524 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2651 G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL; 2652 #line 2653 "tracker-preferences.c" 2653 } 2654 #line 521 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2655 _g_free0 (text); 2656 #line 2657 "tracker-preferences.c" 2657 } 2658 #line 533 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2659 _tmp28_ = dialog; 2660 #line 533 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2661 gtk_widget_destroy ((GtkWidget*) _tmp28_); 2662 #line 503 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2663 _g_object_unref0 (content_area); 2664 #line 503 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2665 _g_object_unref0 (entry); 2666 #line 503 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2667 _g_object_unref0 (dialog); 2668 #line 2669 "tracker-preferences.c" 2669 } 2670 2671 2672 static void tracker_preferences_store_add_dir (TrackerPreferences* self, GtkListStore* store) { 2673 const gchar* _tmp0_ = NULL; 2674 GtkWindow* _tmp1_; 2675 GtkFileChooserDialog* _tmp2_; 2676 GtkFileChooserDialog* dialog; 2677 GtkFileChooserDialog* _tmp34_; 2678 #line 536 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2679 g_return_if_fail (self != NULL); 2680 #line 536 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2681 g_return_if_fail (store != NULL); 2682 #line 537 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2683 _tmp0_ = _ ("Select directory"); 2684 #line 537 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2685 _tmp1_ = self->priv->window; 2686 #line 537 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2687 _tmp2_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp0_, _tmp1_, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL); 2688 #line 537 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2689 g_object_ref_sink (_tmp2_); 2690 #line 537 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2691 dialog = _tmp2_; 2692 #line 545 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2693 while (TRUE) { 2694 #line 2695 "tracker-preferences.c" 2695 GtkFileChooserDialog* _tmp3_; 2696 gint _tmp4_ = 0; 2697 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2698 _tmp3_ = dialog; 2699 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2700 _tmp4_ = gtk_dialog_run ((GtkDialog*) _tmp3_); 2701 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2702 if (_tmp4_ == ((gint) GTK_RESPONSE_ACCEPT)) { 2703 #line 2704 "tracker-preferences.c" 2704 GtkTreeIter iter = {0}; 2705 GFile* f = NULL; 2706 GtkFileChooserDialog* _tmp5_; 2707 GFile* _tmp6_ = NULL; 2708 GFile* _tmp7_; 2709 GFile* _tmp8_; 2710 gchar* _tmp9_ = NULL; 2711 gchar* path; 2712 GtkListStore* _tmp10_; 2713 const gchar* _tmp11_; 2714 gboolean _tmp12_ = FALSE; 2715 GFile* _tmp18_; 2716 gchar* _tmp19_ = NULL; 2717 gchar* dir; 2718 const gchar* _tmp20_; 2719 gint _tmp21_ = 0; 2720 GUserDirectory* _tmp22_ = NULL; 2721 GUserDirectory* matches; 2722 gint matches_length1; 2723 gint _matches_size_;
variable '_matches_size_' set but not used
(emitted by gcc)
2724 GtkListStore* _tmp23_; 2725 GtkTreeIter _tmp24_ = {0}; 2726 GValue _tmp25_ = {0}; 2727 GValue v; 2728 const gchar* _tmp26_; 2729 GtkListStore* _tmp27_; 2730 GtkTreeIter _tmp28_; 2731 GValue _tmp29_; 2732 GUserDirectory* _tmp30_; 2733 gint _tmp30__length1; 2734 const gchar* _tmp31_; 2735 const gchar* _tmp32_; 2736 #line 550 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2737 _tmp5_ = dialog; 2738 #line 550 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2739 _tmp6_ = gtk_file_chooser_get_file ((GtkFileChooser*) _tmp5_); 2740 #line 550 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2741 _tmp7_ = _g_object_ref0 (_tmp6_); 2742 #line 550 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2743 _g_object_unref0 (f); 2744 #line 550 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2745 f = _tmp7_; 2746 #line 551 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2747 _tmp8_ = f; 2748 #line 551 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2749 _tmp9_ = g_file_get_path (_tmp8_); 2750 #line 551 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2751 path = _tmp9_; 2752 #line 553 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2753 _tmp10_ = store; 2754 #line 553 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2755 _tmp11_ = path; 2756 #line 553 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2757 _tmp12_ = tracker_preferences_model_contains (self, (GtkTreeModel*) _tmp10_, _tmp11_); 2758 #line 553 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2759 if (_tmp12_) { 2760 #line 2761 "tracker-preferences.c" 2761 GtkFileChooserDialog* _tmp13_; 2762 const gchar* _tmp14_ = NULL; 2763 GtkMessageDialog* _tmp15_; 2764 GtkMessageDialog* md; 2765 GtkMessageDialog* _tmp16_; 2766 GtkMessageDialog* _tmp17_; 2767 #line 554 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2768 _tmp13_ = dialog; 2769 #line 554 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2770 _tmp14_ = _ ("That directory is already selected as a location to index"); 2771 #line 554 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2772 _tmp15_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) _tmp13_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _tmp14_, NULL); 2773 #line 554 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2774 g_object_ref_sink (_tmp15_); 2775 #line 554 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2776 md = _tmp15_; 2777 #line 560 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2778 _tmp16_ = md; 2779 #line 560 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2780 gtk_dialog_run ((GtkDialog*) _tmp16_); 2781 #line 561 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2782 _tmp17_ = md; 2783 #line 561 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2784 gtk_widget_destroy ((GtkWidget*) _tmp17_); 2785 #line 562 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2786 _g_object_unref0 (md); 2787 #line 562 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2788 _g_free0 (path); 2789 #line 562 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2790 _g_object_unref0 (f); 2791 #line 562 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2792 continue; 2793 #line 2794 "tracker-preferences.c" 2794 } 2795 #line 565 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2796 _tmp18_ = f; 2797 #line 565 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2798 _tmp19_ = g_file_get_path (_tmp18_); 2799 #line 565 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2800 dir = _tmp19_; 2801 #line 568 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2802 _tmp20_ = dir; 2803 #line 568 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2804 _tmp22_ = tracker_preferences_dir_match_user_directories (self, _tmp20_, &_tmp21_); 2805 #line 568 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2806 matches = _tmp22_; 2807 #line 568 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2808 matches_length1 = _tmp21_; 2809 #line 568 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2810 _matches_size_ = matches_length1; 2811 #line 571 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2812 _tmp23_ = store; 2813 #line 571 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2814 gtk_list_store_append (_tmp23_, &_tmp24_); 2815 #line 571 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2816 iter = _tmp24_; 2817 #line 572 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2818 g_value_init (&_tmp25_, G_TYPE_STRING); 2819 #line 572 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2820 v = _tmp25_; 2821 #line 573 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2822 _tmp26_ = dir; 2823 #line 573 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2824 g_value_set_string (&v, _tmp26_); 2825 #line 574 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2826 _tmp27_ = store; 2827 #line 574 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2828 _tmp28_ = iter; 2829 #line 574 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2830 _tmp29_ = v; 2831 #line 574 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2832 gtk_list_store_set_value (_tmp27_, &_tmp28_, 0, &_tmp29_); 2833 #line 576 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2834 _tmp30_ = matches; 2835 #line 576 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2836 _tmp30__length1 = matches_length1; 2837 #line 576 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2838 tracker_preferences_toggles_update (self, _tmp30_, _tmp30__length1, TRUE); 2839 #line 578 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2840 _tmp31_ = dir; 2841 #line 578 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2842 _tmp32_ = self->priv->HOME_STRING_EVALUATED; 2843 #line 578 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2844 if (g_strcmp0 (_tmp31_, _tmp32_) == 0) { 2845 #line 2846 "tracker-preferences.c" 2846 GtkToggleButton* _tmp33_; 2847 #line 579 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2848 _tmp33_ = self->priv->togglebutton_home; 2849 #line 579 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2850 gtk_toggle_button_set_active (_tmp33_, TRUE); 2851 #line 2852 "tracker-preferences.c" 2852 } 2853 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2854 G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL; 2855 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2856 matches = (g_free (matches), NULL); 2857 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2858 _g_free0 (dir); 2859 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2860 _g_free0 (path); 2861 #line 546 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2862 _g_object_unref0 (f); 2863 #line 2864 "tracker-preferences.c" 2864 } 2865 #line 583 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2866 break; 2867 #line 2868 "tracker-preferences.c" 2868 } 2869 #line 586 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2870 _tmp34_ = dialog; 2871 #line 586 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2872 gtk_widget_destroy ((GtkWidget*) _tmp34_); 2873 #line 536 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2874 _g_object_unref0 (dialog); 2875 #line 2876 "tracker-preferences.c" 2876 } 2877 2878 2879 static void _gtk_tree_path_free0_ (gpointer var) { 2880 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2881 (var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)); 2882 #line 2883 "tracker-preferences.c" 2883 } 2884 2885 2886 static void _g_list_free__gtk_tree_path_free0_ (GList* self) { 2887 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2888 g_list_foreach (self, (GFunc) _gtk_tree_path_free0_, NULL); 2889 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2890 g_list_free (self); 2891 #line 2892 "tracker-preferences.c" 2892 } 2893 2894 2895 static gpointer _gtk_tree_path_copy0 (gpointer self) { 2896 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2897 return self ? gtk_tree_path_copy (self) : NULL; 2898 #line 2899 "tracker-preferences.c" 2899 } 2900 2901 2902 static void tracker_preferences_store_del_dir (TrackerPreferences* self, GtkTreeView* view) { 2903 GList* list = NULL; 2904 GtkListStore* store = NULL; 2905 GtkTreeModel* model = NULL; 2906 GtkTreeView* _tmp0_; 2907 GtkTreeSelection* _tmp1_ = NULL; 2908 GtkTreeSelection* _tmp2_; 2909 GtkTreeSelection* selection; 2910 GtkTreeSelection* _tmp3_; 2911 GtkTreeModel* _tmp4_ = NULL; 2912 GList* _tmp5_ = NULL; 2913 GtkTreeModel* _tmp6_; 2914 GtkTreeModel* _tmp7_; 2915 GtkListStore* _tmp8_; 2916 GList* _tmp9_; 2917 #line 589 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2918 g_return_if_fail (self != NULL); 2919 #line 589 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2920 g_return_if_fail (view != NULL); 2921 #line 594 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2922 _tmp0_ = view; 2923 #line 594 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2924 _tmp1_ = gtk_tree_view_get_selection (_tmp0_); 2925 #line 594 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2926 _tmp2_ = _g_object_ref0 (_tmp1_); 2927 #line 594 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2928 selection = _tmp2_; 2929 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2930 _tmp3_ = selection; 2931 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2932 _tmp5_ = gtk_tree_selection_get_selected_rows (_tmp3_, &_tmp4_); 2933 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2934 _g_object_unref0 (model); 2935 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2936 _tmp6_ = _g_object_ref0 (_tmp4_); 2937 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2938 model = _tmp6_; 2939 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2940 __g_list_free__gtk_tree_path_free0_0 (list); 2941 #line 595 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2942 list = _tmp5_; 2943 #line 597 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2944 _tmp7_ = model; 2945 #line 597 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2946 _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GTK_TYPE_LIST_STORE, GtkListStore)); 2947 #line 597 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2948 _g_object_unref0 (store); 2949 #line 597 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2950 store = _tmp8_; 2951 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2952 _tmp9_ = list; 2953 #line 2954 "tracker-preferences.c" 2954 { 2955 GList* path_collection = NULL; 2956 GList* path_it = NULL; 2957 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2958 path_collection = _tmp9_; 2959 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2960 for (path_it = path_collection; path_it != NULL; path_it = path_it->next) { 2961 #line 2962 "tracker-preferences.c" 2962 GtkTreePath* _tmp10_; 2963 GtkTreePath* path = NULL; 2964 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2965 _tmp10_ = _gtk_tree_path_copy0 ((GtkTreePath*) path_it->data); 2966 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2967 path = _tmp10_; 2968 #line 2969 "tracker-preferences.c" 2969 { 2970 GtkTreeIter iter = {0}; 2971 GtkTreeModel* _tmp11_; 2972 GtkTreePath* _tmp12_; 2973 GtkTreeIter _tmp13_ = {0}; 2974 gboolean _tmp14_ = FALSE; 2975 GValue value = {0}; 2976 GtkTreeModel* _tmp15_; 2977 GtkTreeIter _tmp16_; 2978 GValue _tmp17_ = {0}; 2979 const gchar* _tmp18_ = NULL; 2980 gchar* _tmp19_; 2981 gchar* dir; 2982 const gchar* _tmp20_; 2983 gint _tmp21_ = 0; 2984 GUserDirectory* _tmp22_ = NULL; 2985 GUserDirectory* matches; 2986 gint matches_length1; 2987 gint _matches_size_;
variable '_matches_size_' set but not used
(emitted by gcc)
2988 GtkListStore* _tmp23_; 2989 GtkTreeIter _tmp24_; 2990 GUserDirectory* _tmp25_; 2991 gint _tmp25__length1; 2992 const gchar* _tmp26_; 2993 const gchar* _tmp27_; 2994 #line 602 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2995 _tmp11_ = model; 2996 #line 602 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2997 _tmp12_ = path; 2998 #line 602 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 2999 _tmp14_ = gtk_tree_model_get_iter (_tmp11_, &_tmp13_, _tmp12_); 3000 #line 602 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3001 iter = _tmp13_; 3002 #line 602 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3003 if (!_tmp14_) { 3004 #line 603 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3005 _gtk_tree_path_free0 (path); 3006 #line 603 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3007 continue; 3008 #line 3009 "tracker-preferences.c" 3009 } 3010 #line 608 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3011 _tmp15_ = model; 3012 #line 608 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3013 _tmp16_ = iter; 3014 #line 608 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3015 gtk_tree_model_get_value (_tmp15_, &_tmp16_, 0, &_tmp17_); 3016 #line 608 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3017 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL; 3018 #line 608 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3019 value = _tmp17_; 3020 #line 609 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3021 _tmp18_ = g_value_get_string (&value); 3022 #line 609 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3023 _tmp19_ = g_strdup (_tmp18_); 3024 #line 609 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3025 dir = _tmp19_; 3026 #line 612 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3027 _tmp20_ = dir; 3028 #line 612 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3029 _tmp22_ = tracker_preferences_dir_match_user_directories (self, _tmp20_, &_tmp21_); 3030 #line 612 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3031 matches = _tmp22_; 3032 #line 612 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3033 matches_length1 = _tmp21_; 3034 #line 612 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3035 _matches_size_ = matches_length1; 3036 #line 614 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3037 _tmp23_ = store; 3038 #line 614 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3039 _tmp24_ = iter; 3040 #line 614 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3041 gtk_list_store_remove (_tmp23_, &_tmp24_); 3042 #line 617 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3043 _tmp25_ = matches; 3044 #line 617 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3045 _tmp25__length1 = matches_length1; 3046 #line 617 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3047 tracker_preferences_toggles_update (self, _tmp25_, _tmp25__length1, FALSE); 3048 #line 619 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3049 _tmp26_ = dir; 3050 #line 619 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3051 _tmp27_ = self->priv->HOME_STRING_EVALUATED; 3052 #line 619 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3053 if (g_strcmp0 (_tmp26_, _tmp27_) == 0) { 3054 #line 3055 "tracker-preferences.c" 3055 GtkToggleButton* _tmp28_; 3056 #line 620 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3057 _tmp28_ = self->priv->togglebutton_home; 3058 #line 620 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3059 gtk_toggle_button_set_active (_tmp28_, FALSE); 3060 #line 3061 "tracker-preferences.c" 3061 } 3062 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3063 matches = (g_free (matches), NULL); 3064 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3065 _g_free0 (dir); 3066 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3067 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL; 3068 #line 599 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3069 _gtk_tree_path_free0 (path); 3070 #line 3071 "tracker-preferences.c" 3071 } 3072 } 3073 } 3074 #line 589 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3075 _g_object_unref0 (selection); 3076 #line 589 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3077 _g_object_unref0 (model); 3078 #line 589 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3079 _g_object_unref0 (store); 3080 #line 589 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3081 __g_list_free__gtk_tree_path_free0_0 (list); 3082 #line 3083 "tracker-preferences.c" 3083 } 3084 3085 3086 static void _vala_array_add1 (GUserDirectory** array, int* length, int* size, GUserDirectory value) { 3087 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3088 if ((*length) == (*size)) { 3089 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3090 *size = (*size) ? (2 * (*size)) : 4; 3091 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3092 *array = g_renew (GUserDirectory, *array, *size); 3093 #line 3094 "tracker-preferences.c" 3094 } 3095 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3096 (*array)[(*length)++] = value; 3097 #line 3098 "tracker-preferences.c" 3098 } 3099 3100 3101 static GUserDirectory* tracker_preferences_dir_match_user_directories (TrackerPreferences* self, const gchar* input, int* result_length1) { 3102 GUserDirectory* result = NULL; 3103 GUserDirectory* _tmp0_ = NULL; 3104 GUserDirectory* matches; 3105 gint matches_length1; 3106 gint _matches_size_; 3107 gint i = 0; 3108 GUserDirectory* _tmp12_; 3109 gint _tmp12__length1; 3110 #line 624 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3111 g_return_val_if_fail (self != NULL, NULL); 3112 #line 624 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3113 g_return_val_if_fail (input != NULL, NULL); 3114 #line 625 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3115 _tmp0_ = g_new0 (GUserDirectory, 0); 3116 #line 625 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3117 matches = _tmp0_; 3118 #line 625 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3119 matches_length1 = 0; 3120 #line 625 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3121 _matches_size_ = matches_length1; 3122 #line 3123 "tracker-preferences.c" 3123 { 3124 gboolean _tmp1_; 3125 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3126 i = 0; 3127 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3128 _tmp1_ = TRUE; 3129 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3130 while (TRUE) { 3131 #line 3132 "tracker-preferences.c" 3132 gboolean _tmp2_; 3133 gint _tmp4_; 3134 gint _tmp5_; 3135 GUserDirectory ud; 3136 const gchar* dir; 3137 GUserDirectory _tmp6_; 3138 const gchar* _tmp7_ = NULL; 3139 const gchar* _tmp8_; 3140 const gchar* _tmp9_; 3141 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3142 _tmp2_ = _tmp1_; 3143 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3144 if (!_tmp2_) { 3145 #line 3146 "tracker-preferences.c" 3146 gint _tmp3_; 3147 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3148 _tmp3_ = i; 3149 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3150 i = _tmp3_ + 1; 3151 #line 3152 "tracker-preferences.c" 3152 } 3153 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3154 _tmp1_ = FALSE; 3155 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3156 _tmp4_ = i; 3157 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3158 if (!(_tmp4_ < ((gint) G_USER_N_DIRECTORIES))) { 3159 #line 628 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3160 break; 3161 #line 3162 "tracker-preferences.c" 3162 } 3163 #line 629 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3164 _tmp5_ = i; 3165 #line 629 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3166 ud = (GUserDirectory) _tmp5_; 3167 #line 630 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3168 dir = NULL; 3169 #line 632 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3170 _tmp6_ = ud; 3171 #line 632 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3172 _tmp7_ = g_get_user_special_dir (_tmp6_); 3173 #line 632 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3174 dir = _tmp7_; 3175 #line 633 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3176 _tmp8_ = input; 3177 #line 633 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3178 _tmp9_ = dir; 3179 #line 633 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3180 if (g_strcmp0 (_tmp8_, _tmp9_) == 0) { 3181 #line 3182 "tracker-preferences.c" 3182 GUserDirectory* _tmp10_; 3183 gint _tmp10__length1;
variable '_tmp10__length1' set but not used
(emitted by gcc)
3184 GUserDirectory _tmp11_; 3185 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3186 _tmp10_ = matches; 3187 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3188 _tmp10__length1 = matches_length1; 3189 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3190 _tmp11_ = ud; 3191 #line 634 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3192 _vala_array_add1 (&matches, &matches_length1, &_matches_size_, _tmp11_); 3193 #line 3194 "tracker-preferences.c" 3194 } 3195 } 3196 } 3197 #line 638 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3198 _tmp12_ = matches; 3199 #line 638 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3200 _tmp12__length1 = matches_length1; 3201 #line 638 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3202 if (result_length1) { 3203 #line 638 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3204 *result_length1 = _tmp12__length1; 3205 #line 3206 "tracker-preferences.c" 3206 } 3207 #line 638 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3208 result = _tmp12_; 3209 #line 638 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3210 return result; 3211 #line 3212 "tracker-preferences.c" 3212 } 3213 3214 3215 static const char* _g_user_directory_to_string (GUserDirectory value) { 3216 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3217 switch (value) { 3218 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3219 case G_USER_DIRECTORY_DESKTOP: 3220 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3221 return "G_USER_DIRECTORY_DESKTOP"; 3222 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3223 case G_USER_DIRECTORY_DOCUMENTS: 3224 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3225 return "G_USER_DIRECTORY_DOCUMENTS"; 3226 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3227 case G_USER_DIRECTORY_DOWNLOAD: 3228 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3229 return "G_USER_DIRECTORY_DOWNLOAD"; 3230 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3231 case G_USER_DIRECTORY_MUSIC: 3232 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3233 return "G_USER_DIRECTORY_MUSIC"; 3234 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3235 case G_USER_DIRECTORY_PICTURES: 3236 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3237 return "G_USER_DIRECTORY_PICTURES"; 3238 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3239 case G_USER_DIRECTORY_PUBLIC_SHARE: 3240 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3241 return "G_USER_DIRECTORY_PUBLIC_SHARE"; 3242 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3243 case G_USER_DIRECTORY_TEMPLATES: 3244 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3245 return "G_USER_DIRECTORY_TEMPLATES"; 3246 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3247 case G_USER_DIRECTORY_VIDEOS: 3248 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3249 return "G_USER_DIRECTORY_VIDEOS"; 3250 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3251 case G_USER_N_DIRECTORIES: 3252 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3253 return "G_USER_N_DIRECTORIES"; 3254 #line 3255 "tracker-preferences.c" 3255 } 3256 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3257 return NULL; 3258 #line 3259 "tracker-preferences.c" 3259 } 3260 3261 3262 static glong string_strnlen (gchar* str, glong maxlen) { 3263 glong result = 0L; 3264 gchar* _tmp0_; 3265 glong _tmp1_; 3266 gchar* _tmp2_ = NULL; 3267 gchar* end; 3268 gchar* _tmp3_; 3269 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3270 _tmp0_ = str; 3271 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3272 _tmp1_ = maxlen; 3273 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3274 _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); 3275 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3276 end = _tmp2_; 3277 #line 1148 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3278 _tmp3_ = end; 3279 #line 1148 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3280 if (_tmp3_ == NULL) { 3281 #line 3282 "tracker-preferences.c" 3282 glong _tmp4_; 3283 #line 1149 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3284 _tmp4_ = maxlen; 3285 #line 1149 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3286 result = _tmp4_; 3287 #line 1149 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3288 return result; 3289 #line 3290 "tracker-preferences.c" 3290 } else { 3291 gchar* _tmp5_; 3292 gchar* _tmp6_; 3293 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3294 _tmp5_ = end; 3295 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3296 _tmp6_ = str; 3297 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3298 result = (glong) (_tmp5_ - _tmp6_); 3299 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3300 return result; 3301 #line 3302 "tracker-preferences.c" 3302 } 3303 } 3304 3305 3306 static gchar* string_substring (const gchar* self, glong offset, glong len) { 3307 gchar* result = NULL; 3308 glong string_length = 0L; 3309 gboolean _tmp0_ = FALSE; 3310 glong _tmp1_; 3311 gboolean _tmp3_; 3312 glong _tmp9_; 3313 glong _tmp15_; 3314 glong _tmp18_; 3315 glong _tmp19_; 3316 glong _tmp20_; 3317 glong _tmp21_; 3318 glong _tmp22_; 3319 gchar* _tmp23_ = NULL; 3320 #line 1158 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3321 g_return_val_if_fail (self != NULL, NULL); 3322 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3323 _tmp1_ = offset; 3324 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3325 if (_tmp1_ >= ((glong) 0)) { 3326 #line 3327 "tracker-preferences.c" 3327 glong _tmp2_; 3328 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3329 _tmp2_ = len; 3330 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3331 _tmp0_ = _tmp2_ >= ((glong) 0); 3332 #line 3333 "tracker-preferences.c" 3333 } else { 3334 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3335 _tmp0_ = FALSE; 3336 #line 3337 "tracker-preferences.c" 3337 } 3338 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3339 _tmp3_ = _tmp0_; 3340 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3341 if (_tmp3_) { 3342 #line 3343 "tracker-preferences.c" 3343 glong _tmp4_; 3344 glong _tmp5_; 3345 glong _tmp6_ = 0L; 3346 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3347 _tmp4_ = offset; 3348 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3349 _tmp5_ = len; 3350 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3351 _tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_); 3352 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3353 string_length = _tmp6_; 3354 #line 3355 "tracker-preferences.c" 3355 } else { 3356 gint _tmp7_; 3357 gint _tmp8_; 3358 #line 1164 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3359 _tmp7_ = strlen (self); 3360 #line 1164 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3361 _tmp8_ = _tmp7_; 3362 #line 1164 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3363 string_length = (glong) _tmp8_; 3364 #line 3365 "tracker-preferences.c" 3365 } 3366 #line 1167 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3367 _tmp9_ = offset; 3368 #line 1167 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3369 if (_tmp9_ < ((glong) 0)) { 3370 #line 3371 "tracker-preferences.c" 3371 glong _tmp10_; 3372 glong _tmp11_; 3373 glong _tmp12_; 3374 #line 1168 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3375 _tmp10_ = string_length; 3376 #line 1168 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3377 _tmp11_ = offset; 3378 #line 1168 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3379 offset = _tmp10_ + _tmp11_; 3380 #line 1169 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3381 _tmp12_ = offset; 3382 #line 1169 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3383 g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL); 3384 #line 3385 "tracker-preferences.c" 3385 } else { 3386 glong _tmp13_; 3387 glong _tmp14_; 3388 #line 1171 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3389 _tmp13_ = offset; 3390 #line 1171 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3391 _tmp14_ = string_length; 3392 #line 1171 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3393 g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL); 3394 #line 3395 "tracker-preferences.c" 3395 } 3396 #line 1173 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3397 _tmp15_ = len; 3398 #line 1173 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3399 if (_tmp15_ < ((glong) 0)) { 3400 #line 3401 "tracker-preferences.c" 3401 glong _tmp16_; 3402 glong _tmp17_; 3403 #line 1174 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3404 _tmp16_ = string_length; 3405 #line 1174 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3406 _tmp17_ = offset; 3407 #line 1174 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3408 len = _tmp16_ - _tmp17_; 3409 #line 3410 "tracker-preferences.c" 3410 } 3411 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3412 _tmp18_ = offset; 3413 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3414 _tmp19_ = len; 3415 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3416 _tmp20_ = string_length; 3417 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3418 g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL); 3419 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3420 _tmp21_ = offset; 3421 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3422 _tmp22_ = len; 3423 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3424 _tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_); 3425 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3426 result = _tmp23_; 3427 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3428 return result; 3429 #line 3430 "tracker-preferences.c" 3430 } 3431 3432 3433 static gint string_last_index_of_char (const gchar* self, gunichar c, gint start_index) { 3434 gint result = 0; 3435 gint _tmp0_; 3436 gunichar _tmp1_; 3437 gchar* _tmp2_ = NULL; 3438 gchar* _result_; 3439 gchar* _tmp3_; 3440 #line 918 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3441 g_return_val_if_fail (self != NULL, 0); 3442 #line 919 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3443 _tmp0_ = start_index; 3444 #line 919 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3445 _tmp1_ = c; 3446 #line 919 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3447 _tmp2_ = g_utf8_strrchr (((gchar*) self) + _tmp0_, (gssize) (-1), _tmp1_); 3448 #line 919 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3449 _result_ = _tmp2_; 3450 #line 921 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3451 _tmp3_ = _result_; 3452 #line 921 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3453 if (_tmp3_ != NULL) { 3454 #line 3455 "tracker-preferences.c" 3455 gchar* _tmp4_; 3456 #line 922 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3457 _tmp4_ = _result_; 3458 #line 922 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3459 result = (gint) (_tmp4_ - ((gchar*) self)); 3460 #line 922 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3461 return result; 3462 #line 3463 "tracker-preferences.c" 3463 } else { 3464 #line 924 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3465 result = -1; 3466 #line 924 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 3467 return result; 3468 #line 3469 "tracker-preferences.c" 3469 } 3470 } 3471 3472 3473 static gchar* tracker_preferences_dir_to_config (TrackerPreferences* self, const gchar* input) { 3474 gchar* result = NULL; 3475 const gchar* _tmp0_; 3476 gchar* _tmp1_; 3477 gchar* output; 3478 gboolean _tmp2_ = FALSE; 3479 const gchar* _tmp3_; 3480 gboolean _tmp6_; 3481 #line 641 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3482 g_return_val_if_fail (self != NULL, NULL); 3483 #line 641 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3484 g_return_val_if_fail (input != NULL, NULL); 3485 #line 642 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3486 _tmp0_ = input; 3487 #line 642 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3488 _tmp1_ = g_strdup (_tmp0_); 3489 #line 642 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3490 output = _tmp1_; 3491 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3492 _tmp3_ = self->priv->HOME_STRING_EVALUATED; 3493 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3494 if (_tmp3_ != NULL) { 3495 #line 3496 "tracker-preferences.c" 3496 const gchar* _tmp4_; 3497 const gchar* _tmp5_; 3498 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3499 _tmp4_ = self->priv->HOME_STRING_EVALUATED; 3500 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3501 _tmp5_ = input; 3502 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3503 _tmp2_ = g_strcmp0 (_tmp4_, _tmp5_) == 0; 3504 #line 3505 "tracker-preferences.c" 3505 } else { 3506 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3507 _tmp2_ = FALSE; 3508 #line 3509 "tracker-preferences.c" 3509 } 3510 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3511 _tmp6_ = _tmp2_; 3512 #line 644 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3513 if (_tmp6_) { 3514 #line 3515 "tracker-preferences.c" 3515 gchar* _tmp7_; 3516 #line 645 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3517 _tmp7_ = g_strdup (TRACKER_PREFERENCES_HOME_STRING); 3518 #line 645 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3519 result = _tmp7_; 3520 #line 645 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3521 _g_free0 (output); 3522 #line 645 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3523 return result; 3524 #line 3525 "tracker-preferences.c" 3525 } 3526 { 3527 gint i; 3528 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3529 i = 0; 3530 #line 3531 "tracker-preferences.c" 3531 { 3532 gboolean _tmp8_; 3533 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3534 _tmp8_ = TRUE; 3535 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3536 while (TRUE) { 3537 #line 3538 "tracker-preferences.c" 3538 gboolean _tmp9_; 3539 gint _tmp11_; 3540 gint _tmp12_; 3541 GUserDirectory ud; 3542 const gchar* dir; 3543 GUserDirectory _tmp13_; 3544 const gchar* _tmp14_ = NULL; 3545 const gchar* _tmp15_; 3546 const gchar* _tmp16_; 3547 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3548 _tmp9_ = _tmp8_; 3549 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3550 if (!_tmp9_) { 3551 #line 3552 "tracker-preferences.c" 3552 gint _tmp10_; 3553 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3554 _tmp10_ = i; 3555 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3556 i = _tmp10_ + 1; 3557 #line 3558 "tracker-preferences.c" 3558 } 3559 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3560 _tmp8_ = FALSE; 3561 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3562 _tmp11_ = i; 3563 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3564 if (!(_tmp11_ < ((gint) G_USER_N_DIRECTORIES))) { 3565 #line 648 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3566 break; 3567 #line 3568 "tracker-preferences.c" 3568 } 3569 #line 649 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3570 _tmp12_ = i; 3571 #line 649 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3572 ud = (GUserDirectory) _tmp12_; 3573 #line 650 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3574 dir = NULL; 3575 #line 652 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3576 _tmp13_ = ud; 3577 #line 652 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3578 _tmp14_ = g_get_user_special_dir (_tmp13_); 3579 #line 652 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3580 dir = _tmp14_; 3581 #line 653 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3582 _tmp15_ = input; 3583 #line 653 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3584 _tmp16_ = dir; 3585 #line 653 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3586 if (g_strcmp0 (_tmp15_, _tmp16_) == 0) { 3587 #line 3588 "tracker-preferences.c" 3588 GUserDirectory _tmp17_; 3589 const gchar* _tmp18_ = NULL; 3590 gchar* _tmp19_; 3591 gchar* ud_string; 3592 const gchar* _tmp20_; 3593 const gchar* _tmp21_; 3594 gint _tmp22_ = 0; 3595 gchar* _tmp23_ = NULL; 3596 gchar* _tmp24_; 3597 gchar* _tmp25_ = NULL; 3598 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3599 _tmp17_ = ud; 3600 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3601 _tmp18_ = _g_user_directory_to_string (_tmp17_); 3602 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3603 _tmp19_ = g_strdup (_tmp18_); 3604 #line 655 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3605 ud_string = _tmp19_; 3606 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3607 _tmp20_ = ud_string; 3608 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3609 _tmp21_ = ud_string; 3610 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3611 _tmp22_ = string_last_index_of_char (_tmp21_, (gunichar) '_', 0); 3612 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3613 _tmp23_ = string_substring (_tmp20_, (glong) (_tmp22_ + 1), (glong) (-1)); 3614 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3615 _tmp24_ = _tmp23_; 3616 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3617 _tmp25_ = g_strdup_printf ("&%s", _tmp24_); 3618 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3619 _g_free0 (output); 3620 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3621 output = _tmp25_; 3622 #line 656 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3623 _g_free0 (_tmp24_); 3624 #line 653 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3625 _g_free0 (ud_string); 3626 #line 3627 "tracker-preferences.c" 3627 } 3628 } 3629 } 3630 } 3631 #line 660 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3632 result = output; 3633 #line 660 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3634 return result; 3635 #line 3636 "tracker-preferences.c" 3636 } 3637 3638 3639 static gchar* tracker_preferences_dir_from_config (TrackerPreferences* self, const gchar* input) { 3640 gchar* result = NULL; 3641 const gchar* _tmp0_; 3642 gchar* _tmp1_; 3643 gchar* output; 3644 const gchar* _tmp2_; 3645 gboolean _tmp3_ = FALSE; 3646 #line 663 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3647 g_return_val_if_fail (self != NULL, NULL); 3648 #line 663 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3649 g_return_val_if_fail (input != NULL, NULL); 3650 #line 664 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3651 _tmp0_ = input; 3652 #line 664 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3653 _tmp1_ = g_strdup (_tmp0_); 3654 #line 664 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3655 output = _tmp1_; 3656 #line 666 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3657 _tmp2_ = input; 3658 #line 666 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3659 _tmp3_ = g_str_has_prefix (_tmp2_, "&"); 3660 #line 666 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3661 if (_tmp3_) { 3662 #line 3663 "tracker-preferences.c" 3663 const gchar* dir; 3664 const gchar* _tmp4_; 3665 const gchar* _tmp5_ = NULL; 3666 gchar* _tmp6_ = NULL; 3667 gchar* ud_input; 3668 const gchar* _tmp20_; 3669 #line 667 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3670 dir = NULL; 3671 #line 670 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3672 _tmp4_ = input; 3673 #line 670 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3674 _tmp5_ = g_utf8_next_char (_tmp4_); 3675 #line 670 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3676 _tmp6_ = g_strdup_printf ("G_USER_DIRECTORY_%s", _tmp5_); 3677 #line 670 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3678 ud_input = _tmp6_; 3679 #line 3680 "tracker-preferences.c" 3680 { 3681 gint i; 3682 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3683 i = 0; 3684 #line 3685 "tracker-preferences.c" 3685 { 3686 gboolean _tmp7_; 3687 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3688 _tmp7_ = TRUE; 3689 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3690 while (TRUE) { 3691 #line 3692 "tracker-preferences.c" 3692 gboolean _tmp8_; 3693 gboolean _tmp10_ = FALSE; 3694 gint _tmp11_; 3695 gboolean _tmp13_; 3696 gint _tmp14_; 3697 GUserDirectory ud; 3698 const gchar* _tmp15_; 3699 GUserDirectory _tmp16_; 3700 const gchar* _tmp17_ = NULL; 3701 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3702 _tmp8_ = _tmp7_; 3703 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3704 if (!_tmp8_) { 3705 #line 3706 "tracker-preferences.c" 3706 gint _tmp9_; 3707 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3708 _tmp9_ = i; 3709 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3710 i = _tmp9_ + 1; 3711 #line 3712 "tracker-preferences.c" 3712 } 3713 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3714 _tmp7_ = FALSE; 3715 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3716 _tmp11_ = i; 3717 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3718 if (_tmp11_ < ((gint) G_USER_N_DIRECTORIES)) { 3719 #line 3720 "tracker-preferences.c" 3720 const gchar* _tmp12_; 3721 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3722 _tmp12_ = dir; 3723 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3724 _tmp10_ = _tmp12_ == NULL; 3725 #line 3726 "tracker-preferences.c" 3726 } else { 3727 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3728 _tmp10_ = FALSE; 3729 #line 3730 "tracker-preferences.c" 3730 } 3731 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3732 _tmp13_ = _tmp10_; 3733 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3734 if (!_tmp13_) { 3735 #line 672 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3736 break; 3737 #line 3738 "tracker-preferences.c" 3738 } 3739 #line 673 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3740 _tmp14_ = i; 3741 #line 673 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3742 ud = (GUserDirectory) _tmp14_; 3743 #line 675 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3744 _tmp15_ = ud_input; 3745 #line 675 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3746 _tmp16_ = ud; 3747 #line 675 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3748 _tmp17_ = _g_user_directory_to_string (_tmp16_); 3749 #line 675 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3750 if (g_strcmp0 (_tmp15_, _tmp17_) == 0) { 3751 #line 3752 "tracker-preferences.c" 3752 GUserDirectory _tmp18_; 3753 const gchar* _tmp19_ = NULL; 3754 #line 676 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3755 _tmp18_ = ud; 3756 #line 676 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3757 _tmp19_ = g_get_user_special_dir (_tmp18_); 3758 #line 676 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3759 dir = _tmp19_; 3760 #line 3761 "tracker-preferences.c" 3761 } 3762 } 3763 } 3764 } 3765 #line 682 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3766 _tmp20_ = dir; 3767 #line 682 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3768 if (_tmp20_ != NULL) { 3769 #line 3770 "tracker-preferences.c" 3770 const gchar* _tmp21_; 3771 gchar* _tmp22_; 3772 #line 683 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3773 _tmp21_ = dir; 3774 #line 683 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3775 _tmp22_ = g_strdup (_tmp21_); 3776 #line 683 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3777 _g_free0 (output); 3778 #line 683 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3779 output = _tmp22_; 3780 #line 3781 "tracker-preferences.c" 3781 } 3782 #line 666 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3783 _g_free0 (ud_input); 3784 #line 3785 "tracker-preferences.c" 3785 } else { 3786 const gchar* _tmp23_; 3787 gboolean _tmp24_ = FALSE; 3788 #line 684 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3789 _tmp23_ = input; 3790 #line 684 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3791 _tmp24_ = g_str_has_prefix (_tmp23_, "$"); 3792 #line 684 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3793 if (_tmp24_) { 3794 #line 3795 "tracker-preferences.c" 3795 const gchar* _tmp25_; 3796 gchar* _tmp26_ = NULL; 3797 gchar* _tmp27_; 3798 const gchar* _tmp28_ = NULL; 3799 const gchar* _tmp29_; 3800 const gchar* env; 3801 const gchar* _tmp30_; 3802 #line 685 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3803 _tmp25_ = input; 3804 #line 685 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3805 _tmp26_ = string_substring (_tmp25_, (glong) 1, (glong) (-1)); 3806 #line 685 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3807 _tmp27_ = _tmp26_; 3808 #line 685 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3809 _tmp28_ = g_getenv (_tmp27_); 3810 #line 685 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3811 _tmp29_ = _tmp28_; 3812 #line 685 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" 3813 _g_free0 (_tmp27_);