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_);
3814 #line 685 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3815 env = _tmp29_;
3816 #line 689 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3817 _tmp30_ = env;
3818 #line 689 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3819 if (_tmp30_ != NULL) {
3820 #line 3821 "tracker-preferences.c"
3821 const gchar* _tmp31_;
3822 gchar* _tmp32_;
3823 #line 690 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3824 _tmp31_ = env;
3825 #line 690 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3826 _tmp32_ = g_strdup (_tmp31_);
3827 #line 690 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3828 _g_free0 (output);
3829 #line 690 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3830 output = _tmp32_;
3831 #line 3832 "tracker-preferences.c"
3832 }
3833 }
3834 }
3835 #line 693 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3836 result = output;
3837 #line 693 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3838 return result;
3839 #line 3840 "tracker-preferences.c"
3840 }
3841
3842
3843 static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value) {
3844 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3845 if ((*length) == (*size)) {
3846 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3847 *size = (*size) ? (2 * (*size)) : 4;
3848 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3849 *array = g_renew (gchar*, *array, (*size) + 1);
3850 #line 3851 "tracker-preferences.c"
3851 }
3852 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3853 (*array)[(*length)++] = value;
3854 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3855 (*array)[*length] = NULL;
3856 #line 3857 "tracker-preferences.c"
3857 }
3858
3859
3860 static gchar** tracker_preferences_model_to_strv (TrackerPreferences* self, GtkListStore* model, gboolean recurse_required, gboolean recurse_value, int* result_length1) {
3861 gchar** result = NULL;
3862 gchar** _tmp0_ = NULL;
3863 gchar** list;
3864 gint list_length1;
3865 gint _list_size_;
3866 GtkTreeIter iter = {0};
3867 gboolean valid = FALSE;
3868 gchar** _tmp23_;
3869 gint _tmp23__length1;
3870 #line 696 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3871 g_return_val_if_fail (self != NULL, NULL);
3872 #line 696 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3873 g_return_val_if_fail (model != NULL, NULL);
3874 #line 697 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3875 _tmp0_ = g_new0 (gchar*, 0 + 1);
3876 #line 697 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3877 list = _tmp0_;
3878 #line 697 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3879 list_length1 = 0;
3880 #line 697 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3881 _list_size_ = list_length1;
3882 #line 3883 "tracker-preferences.c"
3883 {
3884 GtkListStore* _tmp1_;
3885 GtkTreeIter _tmp2_ = {0};
3886 gboolean _tmp3_ = FALSE;
3887 gboolean _tmp4_;
3888 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3889 _tmp1_ = model;
3890 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3891 _tmp3_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp1_, &_tmp2_);
3892 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3893 iter = _tmp2_;
3894 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3895 valid = _tmp3_;
3896 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3897 _tmp4_ = TRUE;
3898 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3899 while (TRUE) {
3900 #line 3901 "tracker-preferences.c"
3901 gboolean _tmp5_;
3902 gboolean _tmp8_;
3903 GValue value = {0};
3904 GtkListStore* _tmp9_;
3905 GtkTreeIter _tmp10_;
3906 GValue _tmp11_ = {0};
3907 gboolean _tmp12_;
3908 const gchar* _tmp18_ = NULL;
3909 gchar* _tmp19_ = NULL;
3910 gchar* dir;
3911 gchar** _tmp20_;
3912 gint _tmp20__length1;
variable '_tmp20__length1' set but not used
(emitted by gcc)
3913 const gchar* _tmp21_;
3914 gchar* _tmp22_;
3915 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3916 _tmp5_ = _tmp4_;
3917 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3918 if (!_tmp5_) {
3919 #line 3920 "tracker-preferences.c"
3920 GtkListStore* _tmp6_;
3921 gboolean _tmp7_ = FALSE;
3922 #line 703 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3923 _tmp6_ = model;
3924 #line 703 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3925 _tmp7_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp6_, &iter);
3926 #line 703 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3927 valid = _tmp7_;
3928 #line 3929 "tracker-preferences.c"
3929 }
3930 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3931 _tmp4_ = FALSE;
3932 #line 702 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3933 _tmp8_ = valid;
3934 #line 702 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3935 if (!_tmp8_) {
3936 #line 702 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3937 break;
3938 #line 3939 "tracker-preferences.c"
3939 }
3940 #line 706 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3941 _tmp9_ = model;
3942 #line 706 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3943 _tmp10_ = iter;
3944 #line 706 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3945 gtk_tree_model_get_value ((GtkTreeModel*) _tmp9_, &_tmp10_, 0, &_tmp11_);
3946 #line 706 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3947 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
3948 #line 706 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3949 value = _tmp11_;
3950 #line 708 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3951 _tmp12_ = recurse_required;
3952 #line 708 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3953 if (_tmp12_) {
3954 #line 3955 "tracker-preferences.c"
3955 GValue recurse = {0};
3956 GtkListStore* _tmp13_;
3957 GtkTreeIter _tmp14_;
3958 GValue _tmp15_ = {0};
3959 gboolean _tmp16_;
3960 gboolean _tmp17_ = FALSE;
3961 #line 711 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3962 _tmp13_ = model;
3963 #line 711 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3964 _tmp14_ = iter;
3965 #line 711 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3966 gtk_tree_model_get_value ((GtkTreeModel*) _tmp13_, &_tmp14_, 1, &_tmp15_);
3967 #line 711 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3968 G_IS_VALUE (&recurse) ? (g_value_unset (&recurse), NULL) : NULL;
3969 #line 711 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3970 recurse = _tmp15_;
3971 #line 713 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3972 _tmp16_ = recurse_value;
3973 #line 713 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3974 _tmp17_ = g_value_get_boolean (&recurse);
3975 #line 713 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3976 if (_tmp16_ != _tmp17_) {
3977 #line 714 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3978 G_IS_VALUE (&recurse) ? (g_value_unset (&recurse), NULL) : NULL;
3979 #line 714 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3980 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
3981 #line 714 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3982 continue;
3983 #line 3984 "tracker-preferences.c"
3984 }
3985 #line 708 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3986 G_IS_VALUE (&recurse) ? (g_value_unset (&recurse), NULL) : NULL;
3987 #line 3988 "tracker-preferences.c"
3988 }
3989 #line 719 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3990 _tmp18_ = g_value_get_string (&value);
3991 #line 719 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3992 _tmp19_ = tracker_preferences_dir_to_config (self, _tmp18_);
3993 #line 719 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3994 dir = _tmp19_;
3995 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3996 _tmp20_ = list;
3997 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
3998 _tmp20__length1 = list_length1;
3999 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4000 _tmp21_ = dir;
4001 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4002 _tmp22_ = g_strdup (_tmp21_);
4003 #line 720 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4004 _vala_array_add2 (&list, &list_length1, &_list_size_, _tmp22_);
4005 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4006 _g_free0 (dir);
4007 #line 701 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4008 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
4009 #line 4010 "tracker-preferences.c"
4010 }
4011 }
4012 #line 723 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4013 _tmp23_ = list;
4014 #line 723 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4015 _tmp23__length1 = list_length1;
4016 #line 723 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4017 if (result_length1) {
4018 #line 723 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4019 *result_length1 = _tmp23__length1;
4020 #line 4021 "tracker-preferences.c"
4021 }
4022 #line 723 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4023 result = _tmp23_;
4024 #line 723 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4025 return result;
4026 #line 4027 "tracker-preferences.c"
4027 }
4028
4029
4030 gboolean tracker_preferences_model_contains (TrackerPreferences* self, GtkTreeModel* model, const gchar* needle) {
4031 gboolean result = FALSE;
4032 GtkTreeIter iter = {0};
4033 gchar* needle_evaluated = NULL;
4034 gboolean valid = FALSE;
4035 const gchar* _tmp0_;
4036 gchar* _tmp1_ = NULL;
4037 #line 726 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4038 g_return_val_if_fail (self != NULL, FALSE);
4039 #line 726 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4040 g_return_val_if_fail (model != NULL, FALSE);
4041 #line 726 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4042 g_return_val_if_fail (needle != NULL, FALSE);
4043 #line 731 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4044 _tmp0_ = needle;
4045 #line 731 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4046 _tmp1_ = tracker_preferences_dir_from_config (self, _tmp0_);
4047 #line 731 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4048 _g_free0 (needle_evaluated);
4049 #line 731 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4050 needle_evaluated = _tmp1_;
4051 #line 4052 "tracker-preferences.c"
4052 {
4053 GtkTreeModel* _tmp2_;
4054 GtkTreeIter _tmp3_ = {0};
4055 gboolean _tmp4_ = FALSE;
4056 gboolean _tmp5_;
4057 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4058 _tmp2_ = model;
4059 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4060 _tmp4_ = gtk_tree_model_get_iter_first (_tmp2_, &_tmp3_);
4061 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4062 iter = _tmp3_;
4063 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4064 valid = _tmp4_;
4065 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4066 _tmp5_ = TRUE;
4067 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4068 while (TRUE) {
4069 #line 4070 "tracker-preferences.c"
4070 gboolean _tmp6_;
4071 gboolean _tmp9_;
4072 GValue value = {0};
4073 GtkTreeModel* _tmp10_;
4074 GtkTreeIter _tmp11_;
4075 GValue _tmp12_ = {0};
4076 const gchar* _tmp13_ = NULL;
4077 const gchar* _tmp14_;
4078 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4079 _tmp6_ = _tmp5_;
4080 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4081 if (!_tmp6_) {
4082 #line 4083 "tracker-preferences.c"
4083 GtkTreeModel* _tmp7_;
4084 gboolean _tmp8_ = FALSE;
4085 #line 735 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4086 _tmp7_ = model;
4087 #line 735 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4088 _tmp8_ = gtk_tree_model_iter_next (_tmp7_, &iter);
4089 #line 735 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4090 valid = _tmp8_;
4091 #line 4092 "tracker-preferences.c"
4092 }
4093 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4094 _tmp5_ = FALSE;
4095 #line 734 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4096 _tmp9_ = valid;
4097 #line 734 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4098 if (!_tmp9_) {
4099 #line 734 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4100 break;
4101 #line 4102 "tracker-preferences.c"
4102 }
4103 #line 738 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4104 _tmp10_ = model;
4105 #line 738 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4106 _tmp11_ = iter;
4107 #line 738 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4108 gtk_tree_model_get_value (_tmp10_, &_tmp11_, 0, &_tmp12_);
4109 #line 738 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4110 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
4111 #line 738 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4112 value = _tmp12_;
4113 #line 740 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4114 _tmp13_ = g_value_get_string (&value);
4115 #line 740 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4116 _tmp14_ = needle_evaluated;
4117 #line 740 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4118 if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
4119 #line 741 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4120 result = TRUE;
4121 #line 741 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4122 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
4123 #line 741 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4124 _g_free0 (needle_evaluated);
4125 #line 741 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4126 return result;
4127 #line 4128 "tracker-preferences.c"
4128 }
4129 #line 733 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4130 G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
4131 #line 4132 "tracker-preferences.c"
4132 }
4133 }
4134 #line 745 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4135 result = FALSE;
4136 #line 745 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4137 _g_free0 (needle_evaluated);
4138 #line 745 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4139 return result;
4140 #line 4141 "tracker-preferences.c"
4141 }
4142
4143
4144 static void tracker_preferences_model_populate (TrackerPreferences* self, GtkListStore* model, gchar** list, int list_length1, gboolean have_recurse, gboolean recurse) {
4145 gint position;
4146 gchar** _tmp0_;
4147 gint _tmp0__length1;
4148 GError * _inner_error_ = NULL;
4149 #line 748 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4150 g_return_if_fail (self != NULL);
4151 #line 748 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4152 g_return_if_fail (model != NULL);
4153 #line 749 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4154 position = 0;
4155 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4156 _tmp0_ = list;
4157 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4158 _tmp0__length1 = list_length1;
4159 #line 4160 "tracker-preferences.c"
4160 {
4161 gchar** s_collection = NULL;
4162 gint s_collection_length1 = 0;
4163 gint _s_collection_size_ = 0;
4164 gint s_it = 0;
4165 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4166 s_collection = _tmp0_;
4167 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4168 s_collection_length1 = _tmp0__length1;
4169 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4170 for (s_it = 0; s_it < _tmp0__length1; s_it = s_it + 1) {
4171 #line 4172 "tracker-preferences.c"
4172 gchar* _tmp1_;
4173 gchar* s = NULL;
4174 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4175 _tmp1_ = g_strdup (s_collection[s_it]);
4176 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4177 s = _tmp1_;
4178 #line 4179 "tracker-preferences.c"
4179 {
4180 gboolean ignore;
4181 GUserDirectory* _tmp2_;
4182 gint _tmp2__length1;
4183 gboolean _tmp15_;
4184 const gchar* _tmp17_;
4185 gchar* _tmp18_ = NULL;
4186 gchar* str;
4187 #line 753 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4188 ignore = FALSE;
4189 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4190 _tmp2_ = self->priv->ignored_user_directories;
4191 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4192 _tmp2__length1 = self->priv->ignored_user_directories_length1;
4193 #line 4194 "tracker-preferences.c"
4194 {
4195 GUserDirectory* ud_collection = NULL;
4196 gint ud_collection_length1 = 0;
4197 gint _ud_collection_size_ = 0;
unused variable '_ud_collection_size_'
(emitted by gcc)
4198 gint ud_it = 0;
4199 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4200 ud_collection = _tmp2_;
4201 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4202 ud_collection_length1 = _tmp2__length1;
4203 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4204 for (ud_it = 0; ud_it < _tmp2__length1; ud_it = ud_it + 1) {
4205 #line 4206 "tracker-preferences.c"
4206 GUserDirectory ud = 0;
4207 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4208 ud = ud_collection[ud_it];
4209 #line 4210 "tracker-preferences.c"
4210 {
4211 GUserDirectory _tmp3_;
4212 const gchar* _tmp4_ = NULL;
4213 gchar* _tmp5_;
4214 gchar* ud_string;
4215 const gchar* _tmp6_;
4216 const gchar* _tmp7_;
4217 gint _tmp8_ = 0;
4218 gchar* _tmp9_ = NULL;
4219 gchar* _tmp10_;
4220 gchar* _tmp11_ = NULL;
4221 gchar* _tmp12_;
4222 gchar* output;
4223 const gchar* _tmp13_;
4224 const gchar* _tmp14_;
4225 #line 757 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4226 _tmp3_ = ud;
4227 #line 757 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4228 _tmp4_ = _g_user_directory_to_string (_tmp3_);
4229 #line 757 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4230 _tmp5_ = g_strdup (_tmp4_);
4231 #line 757 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4232 ud_string = _tmp5_;
4233 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4234 _tmp6_ = ud_string;
4235 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4236 _tmp7_ = ud_string;
4237 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4238 _tmp8_ = string_last_index_of_char (_tmp7_, (gunichar) '_', 0);
4239 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4240 _tmp9_ = string_substring (_tmp6_, (glong) (_tmp8_ + 1), (glong) (-1));
4241 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4242 _tmp10_ = _tmp9_;
4243 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4244 _tmp11_ = g_strdup_printf ("&%s", _tmp10_);
4245 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4246 _tmp12_ = _tmp11_;
4247 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4248 _g_free0 (_tmp10_);
4249 #line 758 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4250 output = _tmp12_;
4251 #line 760 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4252 _tmp13_ = s;
4253 #line 760 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4254 _tmp14_ = output;
4255 #line 760 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4256 if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
4257 #line 761 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4258 ignore = TRUE;
4259 #line 762 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4260 _g_free0 (output);
4261 #line 762 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4262 _g_free0 (ud_string);
4263 #line 762 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4264 break;
4265 #line 4266 "tracker-preferences.c"
4266 }
4267 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4268 _g_free0 (output);
4269 #line 756 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4270 _g_free0 (ud_string);
4271 #line 4272 "tracker-preferences.c"
4272 }
4273 }
4274 }
4275 #line 766 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4276 _tmp15_ = ignore;
4277 #line 766 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4278 if (_tmp15_) {
4279 #line 4280 "tracker-preferences.c"
4280 const gchar* _tmp16_;
4281 #line 767 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4282 _tmp16_ = s;
4283 #line 767 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4284 g_debug ("tracker-preferences.vala:767: Ignoring '%s' (duplicates other entries " \
4285 "in config)", _tmp16_);
4286 #line 768 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4287 _g_free0 (s);
4288 #line 768 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4289 continue;
4290 #line 4290 "tracker-preferences.c"
4291 }
4292 #line 771 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4293 _tmp17_ = s;
4294 #line 771 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4295 _tmp18_ = tracker_preferences_dir_from_config (self, _tmp17_);
4296 #line 771 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4297 str = _tmp18_;
4298 #line 4298 "tracker-preferences.c"
4299 {
4300 gboolean _tmp19_;
4301 #line 774 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4302 _tmp19_ = have_recurse;
4303 #line 774 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4304 if (_tmp19_) {
4305 #line 4305 "tracker-preferences.c"
4306 const gchar* _tmp20_;
4307 gchar* _tmp21_ = NULL;
4308 gchar* _tmp22_;
4309 GtkListStore* _tmp23_;
4310 gint _tmp24_;
4311 gchar* _tmp25_;
4312 gboolean _tmp26_;
4313 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4314 _tmp20_ = str;
4315 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4316 _tmp21_ = g_filename_to_utf8 (_tmp20_, (gssize) (-1), NULL, NULL, &_inner_error_);
4317 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4318 _tmp22_ = _tmp21_;
4319 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4320 if (_inner_error_ != NULL) {
4321 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4322 if (_inner_error_->domain == G_CONVERT_ERROR) {
4323 #line 4323 "tracker-preferences.c"
4324 goto __catch3_g_convert_error;
4325 }
4326 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4327 _g_free0 (str);
4328 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4329 _g_free0 (s);
4330 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4331 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);
4332 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4333 g_clear_error (&_inner_error_);
4334 #line 778 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4335 return;
4336 #line 4336 "tracker-preferences.c"
4337 }
4338 #line 775 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4339 _tmp23_ = model;
4340 #line 775 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4341 _tmp24_ = position;
4342 #line 775 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4343 position = _tmp24_ + 1;
4344 #line 775 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4345 _tmp25_ = _tmp22_;
4346 #line 775 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4347 _tmp26_ = recurse;
4348 #line 775 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4349 gtk_list_store_insert_with_values (_tmp23_, NULL, _tmp24_, 0, _tmp25_, 1, _tmp26_, -1, -1);
4350 #line 775 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4351 _g_free0 (_tmp25_);
4352 #line 4352 "tracker-preferences.c"
4353 } else {
4354 const gchar* _tmp27_;
4355 gchar* _tmp28_ = NULL;
4356 gchar* _tmp29_;
4357 GtkListStore* _tmp30_;
4358 gint _tmp31_;
4359 gchar* _tmp32_;
4360 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4361 _tmp27_ = str;
4362 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4363 _tmp28_ = g_filename_to_utf8 (_tmp27_, (gssize) (-1), NULL, NULL, &_inner_error_);
4364 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4365 _tmp29_ = _tmp28_;
4366 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4367 if (_inner_error_ != NULL) {
4368 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4369 if (_inner_error_->domain == G_CONVERT_ERROR) {
4370 #line 4370 "tracker-preferences.c"
4371 goto __catch3_g_convert_error;
4372 }
4373 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4374 _g_free0 (str);
4375 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4376 _g_free0 (s);
4377 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4378 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);
4379 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4380 g_clear_error (&_inner_error_);
4381 #line 789 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4382 return;
4383 #line 4383 "tracker-preferences.c"
4384 }
4385 #line 786 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4386 _tmp30_ = model;
4387 #line 786 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4388 _tmp31_ = position;
4389 #line 786 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4390 position = _tmp31_ + 1;
4391 #line 786 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4392 _tmp32_ = _tmp29_;
4393 #line 786 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4394 gtk_list_store_insert_with_values (_tmp30_, NULL, _tmp31_, 0, _tmp32_, -1, -1);
4395 #line 786 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4396 _g_free0 (_tmp32_);
4397 #line 4397 "tracker-preferences.c"
4398 }
4399 }
4400 goto __finally3;
4401 __catch3_g_convert_error:
4402 {
4403 GError* e = NULL;
4404 GError* _tmp33_;
4405 const gchar* _tmp34_;
4406 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4407 e = _inner_error_;
4408 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4409 _inner_error_ = NULL;
4410 #line 795 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4411 _tmp33_ = e;
4412 #line 795 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4413 _tmp34_ = _tmp33_->message;
4414 #line 795 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4415 g_print ("Could not convert filename to UTF8: %s", _tmp34_);
4416 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4417 _g_error_free0 (e);
4418 #line 4418 "tracker-preferences.c"
4419 }
4420 __finally3:
4421 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4422 if (_inner_error_ != NULL) {
4423 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4424 _g_free0 (str);
4425 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4426 _g_free0 (s);
4427 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4428 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);
4429 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4430 g_clear_error (&_inner_error_);
4431 #line 773 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4432 return;
4433 #line 4433 "tracker-preferences.c"
4434 }
4435 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4436 _g_free0 (str);
4437 #line 751 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4438 _g_free0 (s);
4439 #line 4439 "tracker-preferences.c"
4440 }
4441 }
4442 }
4443 }
4444
4445
4446 static Block1Data* block1_data_ref (Block1Data* _data1_) {
4447 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4448 g_atomic_int_inc (&_data1_->_ref_count_);
4449 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4450 return _data1_;
4451 #line 4451 "tracker-preferences.c"
4452 }
4453
4454
4455 static void block1_data_unref (void * _userdata_) {
4456 Block1Data* _data1_;
4457 _data1_ = (Block1Data*) _userdata_;
4458 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4459 if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
4460 #line 4460 "tracker-preferences.c"
4461 TrackerPreferences * self;
4462 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4463 self = _data1_->self;
4464 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4465 _g_object_unref0 (_data1_->store);
4466 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4467 _tracker_preferences_unref0 (self);
4468 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4469 g_slice_free (Block1Data, _data1_);
4470 #line 4470 "tracker-preferences.c"
4471 }
4472 }
4473
4474
4475 static void ___lambda4_ (Block1Data* _data1_, GtkCellRendererToggle* toggle, const gchar* path) {
variable 'self' set but not used
(emitted by gcc)
4476 TrackerPreferences * self;
4477 const gchar* _tmp0_;
4478 GtkTreePath* _tmp1_;
4479 GtkTreePath* tree_path;
4480 GtkTreeIter iter = {0};
4481 GtkListStore* _tmp2_;
4482 GtkTreeIter _tmp3_ = {0};
4483 GtkListStore* _tmp4_;
4484 GtkTreeIter _tmp5_;
4485 GtkCellRendererToggle* _tmp6_;
4486 gboolean _tmp7_;
4487 gboolean _tmp8_;
4488 #line 828 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4489 self = _data1_->self;
4490 #line 828 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4491 g_return_if_fail (toggle != NULL);
4492 #line 828 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4493 g_return_if_fail (path != NULL);
4494 #line 829 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4495 _tmp0_ = path;
4496 #line 829 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4497 _tmp1_ = gtk_tree_path_new_from_string (_tmp0_);
4498 #line 829 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4499 tree_path = _tmp1_;
4500 #line 832 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4501 _tmp2_ = _data1_->store;
4502 #line 832 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4503 gtk_tree_model_get_iter ((GtkTreeModel*) _tmp2_, &_tmp3_, tree_path);
4504 #line 832 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4505 iter = _tmp3_;
4506 #line 833 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4507 _tmp4_ = _data1_->store;
4508 #line 833 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4509 _tmp5_ = iter;
4510 #line 833 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4511 _tmp6_ = toggle;
4512 #line 833 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4513 _tmp7_ = gtk_cell_renderer_toggle_get_active (_tmp6_);
4514 #line 833 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4515 _tmp8_ = _tmp7_;
4516 #line 833 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4517 gtk_list_store_set (_tmp4_, &_tmp5_, 1, !_tmp8_, -1);
4518 #line 828 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4519 _gtk_tree_path_free0 (tree_path);
4520 #line 4520 "tracker-preferences.c"
4521 }
4522
4523
4524 static void ____lambda4__gtk_cell_renderer_toggle_toggled (GtkCellRendererToggle* _sender, const gchar* path, gpointer self) {
4525 #line 828 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4526 ___lambda4_ (self, _sender, path);
4527 #line 4527 "tracker-preferences.c"
4528 }
4529
4530
4531 static void tracker_preferences_treeview_setup (TrackerPreferences* self, GtkTreeView* view, const gchar* title, gboolean show_recurse_column, gboolean sort) {
4532 GtkTreeViewColumn* column = NULL;
4533 GtkTreeView* _tmp0_;
4534 GList* _tmp1_ = NULL;
4535 GList* columns;
4536 GList* _tmp2_;
4537 const gchar* _tmp6_;
4538 GtkCellRendererText* _tmp7_;
4539 GtkCellRendererText* _tmp8_;
4540 GtkTreeViewColumn* _tmp9_;
4541 GtkTreeViewColumn* _tmp10_;
4542 GtkTreeView* _tmp11_;
4543 GtkTreeViewColumn* _tmp12_;
4544 gboolean _tmp13_;
4545 gboolean _tmp26_;
4546 #line 800 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4547 g_return_if_fail (self != NULL);
4548 #line 800 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4549 g_return_if_fail (view != NULL);
4550 #line 800 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4551 g_return_if_fail (title != NULL);
4552 #line 802 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4553 _tmp0_ = view;
4554 #line 802 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4555 _tmp1_ = gtk_tree_view_get_columns (_tmp0_);
4556 #line 802 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4557 columns = _tmp1_;
4558 #line 805 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4559 _tmp2_ = columns;
4560 #line 4560 "tracker-preferences.c"
4561 {
4562 GList* c_collection = NULL;
4563 GList* c_it = NULL;
4564 #line 805 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4565 c_collection = _tmp2_;
4566 #line 805 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4567 for (c_it = c_collection; c_it != NULL; c_it = c_it->next) {
4568 #line 4568 "tracker-preferences.c"
4569 GtkTreeViewColumn* _tmp3_;
4570 GtkTreeViewColumn* c = NULL;
4571 #line 805 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4572 _tmp3_ = _g_object_ref0 ((GtkTreeViewColumn*) c_it->data);
4573 #line 805 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4574 c = _tmp3_;
4575 #line 4575 "tracker-preferences.c"
4576 {
4577 GtkTreeView* _tmp4_;
4578 GtkTreeViewColumn* _tmp5_;
4579 #line 806 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4580 _tmp4_ = view;
4581 #line 806 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4582 _tmp5_ = c;
4583 #line 806 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4584 gtk_tree_view_remove_column (_tmp4_, _tmp5_);
4585 #line 805 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4586 _g_object_unref0 (c);
4587 #line 4587 "tracker-preferences.c"
4588 }
4589 }
4590 }
4591 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4592 _tmp6_ = title;
4593 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4594 _tmp7_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
4595 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4596 g_object_ref_sink (_tmp7_);
4597 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4598 _tmp8_ = _tmp7_;
4599 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4600 _tmp9_ = gtk_tree_view_column_new_with_attributes (_tmp6_, (GtkCellRenderer*) _tmp8_, "text", 0, NULL, NULL);
4601 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4602 g_object_ref_sink (_tmp9_);
4603 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4604 _g_object_unref0 (column);
4605 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4606 column = _tmp9_;
4607 #line 809 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4608 _g_object_unref0 (_tmp8_);
4609 #line 813 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4610 _tmp10_ = column;
4611 #line 813 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4612 gtk_tree_view_column_set_expand (_tmp10_, TRUE);
4613 #line 814 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4614 _tmp11_ = view;
4615 #line 814 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4616 _tmp12_ = column;
4617 #line 814 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4618 gtk_tree_view_append_column (_tmp11_, _tmp12_);
4619 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4620 _tmp13_ = show_recurse_column;
4621 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4622 if (_tmp13_) {
4623 #line 4623 "tracker-preferences.c"
4624 Block1Data* _data1_;
4625 GtkTreeView* _tmp14_;
4626 GtkTreeModel* _tmp15_ = NULL;
4627 GtkListStore* _tmp16_;
4628 GtkCellRendererToggle* _tmp17_;
4629 GtkCellRendererToggle* cell;
4630 const gchar* _tmp18_ = NULL;
4631 GtkCellRendererToggle* _tmp19_;
4632 GtkTreeViewColumn* _tmp20_;
4633 GtkTreeViewColumn* _tmp21_;
4634 GtkTreeViewColumn* _tmp22_;
4635 GtkTreeView* _tmp23_;
4636 GtkTreeViewColumn* _tmp24_;
4637 GtkCellRendererToggle* _tmp25_;
4638 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4639 _data1_ = g_slice_new0 (Block1Data);
4640 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4641 _data1_->_ref_count_ = 1;
4642 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4643 _data1_->self = tracker_preferences_ref (self);
4644 #line 817 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4645 _tmp14_ = view;
4646 #line 817 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4647 _tmp15_ = gtk_tree_view_get_model (_tmp14_);
4648 #line 817 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4649 _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp15_) : NULL);
4650 #line 817 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4651 _data1_->store = _tmp16_;
4652 #line 818 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4653 _tmp17_ = (GtkCellRendererToggle*) gtk_cell_renderer_toggle_new ();
4654 #line 818 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4655 g_object_ref_sink (_tmp17_);
4656 #line 818 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4657 cell = _tmp17_;
4658 #line 820 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4659 _tmp18_ = _ ("Recurse");
4660 #line 820 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4661 _tmp19_ = cell;
4662 #line 820 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4663 _tmp20_ = gtk_tree_view_column_new_with_attributes (_tmp18_, (GtkCellRenderer*) _tmp19_, "active", 1, NULL, NULL);
4664 #line 820 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4665 g_object_ref_sink (_tmp20_);
4666 #line 820 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4667 _g_object_unref0 (column);
4668 #line 820 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4669 column = _tmp20_;
4670 #line 824 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4671 _tmp21_ = column;
4672 #line 824 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4673 gtk_tree_view_column_set_expand (_tmp21_, FALSE);
4674 #line 825 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4675 _tmp22_ = column;
4676 #line 825 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4677 gtk_tree_view_column_set_fixed_width (_tmp22_, 50);
4678 #line 826 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4679 _tmp23_ = view;
4680 #line 826 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4681 _tmp24_ = column;
4682 #line 826 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4683 gtk_tree_view_append_column (_tmp23_, _tmp24_);
4684 #line 828 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4685 _tmp25_ = cell;
4686 #line 828 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4687 g_signal_connect_data (_tmp25_, "toggled", (GCallback) ____lambda4__gtk_cell_renderer_toggle_toggled, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
4688 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4689 _g_object_unref0 (cell);
4690 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4691 block1_data_unref (_data1_);
4692 #line 816 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4693 _data1_ = NULL;
4694 #line 4694 "tracker-preferences.c"
4695 }
4696 #line 837 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4697 _tmp26_ = sort;
4698 #line 837 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4699 if (_tmp26_) {
4700 #line 4700 "tracker-preferences.c"
4701 GtkTreeView* _tmp27_;
4702 GtkTreeModel* _tmp28_ = NULL;
4703 GtkTreeSortable* _tmp29_;
4704 GtkTreeSortable* sortable;
4705 GtkTreeSortable* _tmp30_;
4706 #line 838 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4707 _tmp27_ = view;
4708 #line 838 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4709 _tmp28_ = gtk_tree_view_get_model (_tmp27_);
4710 #line 838 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4711 _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, GTK_TYPE_TREE_SORTABLE) ? ((GtkTreeSortable*) _tmp28_) : NULL);
4712 #line 838 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4713 sortable = _tmp29_;
4714 #line 839 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4715 _tmp30_ = sortable;
4716 #line 839 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4717 gtk_tree_sortable_set_sort_column_id (_tmp30_, 0, GTK_SORT_ASCENDING);
4718 #line 837 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4719 _g_object_unref0 (sortable);
4720 #line 4720 "tracker-preferences.c"
4721 }
4722 #line 800 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4723 _g_list_free0 (columns);
4724 #line 800 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4725 _g_object_unref0 (column);
4726 #line 4726 "tracker-preferences.c"
4727 }
4728
4729
4730 static void _vala_array_add3 (gchar*** array, int* length, int* size, gchar* value) {
4731 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4732 if ((*length) == (*size)) {
4733 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4734 *size = (*size) ? (2 * (*size)) : 4;
4735 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4736 *array = g_renew (gchar*, *array, (*size) + 1);
4737 #line 4737 "tracker-preferences.c"
4738 }
4739 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4740 (*array)[(*length)++] = value;
4741 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4742 (*array)[*length] = NULL;
4743 #line 4743 "tracker-preferences.c"
4744 }
4745
4746
4747 static void _vala_array_add4 (GUserDirectory** array, int* length, int* size, GUserDirectory value) {
4748 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4749 if ((*length) == (*size)) {
4750 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4751 *size = (*size) ? (2 * (*size)) : 4;
4752 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4753 *array = g_renew (GUserDirectory, *array, *size);
4754 #line 4754 "tracker-preferences.c"
4755 }
4756 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4757 (*array)[(*length)++] = value;
4758 #line 4758 "tracker-preferences.c"
4759 }
4760
4761
4762 static void _vala_array_add5 (gchar*** array, int* length, int* size, gchar* value) {
4763 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4764 if ((*length) == (*size)) {
4765 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4766 *size = (*size) ? (2 * (*size)) : 4;
4767 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4768 *array = g_renew (gchar*, *array, (*size) + 1);
4769 #line 4769 "tracker-preferences.c"
4770 }
4771 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4772 (*array)[(*length)++] = value;
4773 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4774 (*array)[*length] = NULL;
4775 #line 4775 "tracker-preferences.c"
4776 }
4777
4778
4779 static void tracker_preferences_sanitize_user_dirs (TrackerPreferences* self) {
4780 gchar** all_dirs;
4781 gint all_dirs_length1;
4782 gint _all_dirs_size_;
4783 gchar** _tmp0_;
4784 gint _tmp0__length1;
4785 const gchar* _tmp1_;
4786 gchar* _tmp2_;
4787 GUserDirectory* _tmp24_;
4788 gint _tmp24__length1;
4789 #line 843 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4790 g_return_if_fail (self != NULL);
4791 #line 844 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4792 all_dirs = NULL;
4793 #line 844 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4794 all_dirs_length1 = 0;
4795 #line 844 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4796 _all_dirs_size_ = all_dirs_length1;
4797 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4798 _tmp0_ = all_dirs;
4799 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4800 _tmp0__length1 = all_dirs_length1;
4801 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4802 _tmp1_ = self->priv->HOME_STRING_EVALUATED;
4803 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4804 _tmp2_ = g_strdup (_tmp1_);
4805 #line 846 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4806 _vala_array_add3 (&all_dirs, &all_dirs_length1, &_all_dirs_size_, _tmp2_);
4807 #line 4807 "tracker-preferences.c"
4808 {
4809 gint i;
4810 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4811 i = 0;
4812 #line 4812 "tracker-preferences.c"
4813 {
4814 gboolean _tmp3_;
4815 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4816 _tmp3_ = TRUE;
4817 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4818 while (TRUE) {
4819 #line 4819 "tracker-preferences.c"
4820 gboolean _tmp4_;
4821 gint _tmp6_;
4822 gint _tmp7_;
4823 GUserDirectory ud;
4824 GUserDirectory _tmp8_;
4825 const gchar* _tmp9_ = NULL;
4826 gchar* _tmp10_;
4827 gchar* dir;
4828 const gchar* _tmp11_;
4829 gchar** _tmp12_;
4830 gint _tmp12__length1;
4831 gchar** _tmp21_;
4832 gint _tmp21__length1;
4833 const gchar* _tmp22_;
4834 gchar* _tmp23_;
4835 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4836 _tmp4_ = _tmp3_;
4837 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4838 if (!_tmp4_) {
4839 #line 4839 "tracker-preferences.c"
4840 gint _tmp5_;
4841 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4842 _tmp5_ = i;
4843 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4844 i = _tmp5_ + 1;
4845 #line 4845 "tracker-preferences.c"
4846 }
4847 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4848 _tmp3_ = FALSE;
4849 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4850 _tmp6_ = i;
4851 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4852 if (!(_tmp6_ < ((gint) G_USER_N_DIRECTORIES))) {
4853 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4854 break;
4855 #line 4855 "tracker-preferences.c"
4856 }
4857 #line 849 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4858 _tmp7_ = i;
4859 #line 849 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4860 ud = (GUserDirectory) _tmp7_;
4861 #line 851 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4862 _tmp8_ = ud;
4863 #line 851 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4864 _tmp9_ = g_get_user_special_dir (_tmp8_);
4865 #line 851 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4866 _tmp10_ = g_strdup (_tmp9_);
4867 #line 851 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4868 dir = _tmp10_;
4869 #line 852 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4870 _tmp11_ = dir;
4871 #line 852 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4872 if (_tmp11_ == NULL) {
4873 #line 853 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4874 _g_free0 (dir);
4875 #line 853 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4876 continue;
4877 #line 4877 "tracker-preferences.c"
4878 }
4879 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4880 _tmp12_ = all_dirs;
4881 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4882 _tmp12__length1 = all_dirs_length1;
4883 #line 4883 "tracker-preferences.c"
4884 {
4885 gchar** d_collection = NULL;
4886 gint d_collection_length1 = 0;
4887 gint _d_collection_size_ = 0;
4888 gint d_it = 0;
4889 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4890 d_collection = _tmp12_;
4891 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4892 d_collection_length1 = _tmp12__length1;
4893 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4894 for (d_it = 0; d_it < _tmp12__length1; d_it = d_it + 1) {
4895 #line 4895 "tracker-preferences.c"
4896 gchar* _tmp13_;
4897 gchar* d = NULL;
4898 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4899 _tmp13_ = g_strdup (d_collection[d_it]);
4900 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4901 d = _tmp13_;
4902 #line 4902 "tracker-preferences.c"
4903 {
4904 const gchar* _tmp14_;
4905 const gchar* _tmp15_;
4906 #line 857 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4907 _tmp14_ = d;
4908 #line 857 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4909 _tmp15_ = dir;
4910 #line 857 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4911 if (g_strcmp0 (_tmp14_, _tmp15_) == 0) {
4912 #line 4912 "tracker-preferences.c"
4913 const gchar* _tmp16_;
4914 GUserDirectory _tmp17_;
4915 GUserDirectory _tmp18_;
4916 #line 858 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4917 _tmp16_ = d;
4918 #line 858 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4919 _tmp17_ = ud;
4920 #line 858 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4921 g_debug ("tracker-preferences.vala:858: Directory '%s' duplicated in XDG dir %d", _tmp16_, (gint) _tmp17_);
4922 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4923 _tmp18_ = ud;
4924 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4925 switch (_tmp18_) {
4926 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4927 case G_USER_DIRECTORY_DESKTOP:
4928 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4929 case G_USER_DIRECTORY_DOCUMENTS:
4930 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4931 case G_USER_DIRECTORY_DOWNLOAD:
4932 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4933 case G_USER_DIRECTORY_MUSIC:
4934 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4935 case G_USER_DIRECTORY_PICTURES:
4936 #line 860 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4937 case G_USER_DIRECTORY_VIDEOS:
4938 #line 4938 "tracker-preferences.c"
4939 {
4940 GUserDirectory* _tmp19_;
variable '_tmp19__length1' set but not used
(emitted by gcc)
4941 gint _tmp19__length1;
4942 GUserDirectory _tmp20_;
4943 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4944 _tmp19_ = self->priv->ignored_user_directories;
4945 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4946 _tmp19__length1 = self->priv->ignored_user_directories_length1;
4947 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4948 _tmp20_ = ud;
4949 #line 867 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4950 _vala_array_add4 (&self->priv->ignored_user_directories, &self->priv->ignored_user_directories_length1, &self->priv->_ignored_user_directories_size_, _tmp20_);
4951 #line 868 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4952 break;
4953 #line 4953 "tracker-preferences.c"
4954 }
4955 default:
4956 {
4957 #line 873 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4958 break;
4959 #line 4959 "tracker-preferences.c"
4960 }
4961 }
4962 #line 876 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4963 _g_free0 (d);
4964 #line 876 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4965 break;
4966 #line 4966 "tracker-preferences.c"
4967 }
4968 #line 856 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4969 _g_free0 (d);
4970 #line 4970 "tracker-preferences.c"
4971 }
4972 }
4973 }
4974 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4975 _tmp21_ = all_dirs;
4976 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4977 _tmp21__length1 = all_dirs_length1;
4978 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4979 _tmp22_ = dir;
4980 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4981 _tmp23_ = g_strdup (_tmp22_);
4982 #line 882 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4983 _vala_array_add5 (&all_dirs, &all_dirs_length1, &_all_dirs_size_, _tmp23_);
4984 #line 848 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4985 _g_free0 (dir);
4986 #line 4986 "tracker-preferences.c"
4987 }
4988 }
4989 }
4990 #line 885 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4991 _tmp24_ = self->priv->ignored_user_directories;
4992 #line 885 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
4993 _tmp24__length1 = self->priv->ignored_user_directories_length1;
4994 #line 4994 "tracker-preferences.c"
4995 {
4996 GUserDirectory* ud_collection = NULL;
4997 gint ud_collection_length1 = 0;
4998 gint _ud_collection_size_ = 0;
4999 gint ud_it = 0;
5000 #line 885 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5001 ud_collection = _tmp24_;
5002 #line 885 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5003 ud_collection_length1 = _tmp24__length1;
5004 #line 885 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5005 for (ud_it = 0; ud_it < _tmp24__length1; ud_it = ud_it + 1) {
5006 #line 5006 "tracker-preferences.c"
5007 GUserDirectory ud = 0;
5008 #line 885 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5009 ud = ud_collection[ud_it];
5010 #line 5010 "tracker-preferences.c"
5011 {
5012 GUserDirectory _tmp25_;
5013 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5014 _tmp25_ = ud;
5015 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5016 switch (_tmp25_) {
5017 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5018 case G_USER_DIRECTORY_DESKTOP:
5019 #line 5019 "tracker-preferences.c"
5020 {
5021 GtkToggleButton* _tmp26_;
5022 #line 888 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5023 _tmp26_ = self->priv->togglebutton_desktop;
5024 #line 888 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5025 gtk_widget_set_sensitive ((GtkWidget*) _tmp26_, FALSE);
5026 #line 889 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5027 break;
5028 #line 5028 "tracker-preferences.c"
5029 }
5030 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5031 case G_USER_DIRECTORY_DOCUMENTS:
5032 #line 5032 "tracker-preferences.c"
5033 {
5034 GtkToggleButton* _tmp27_;
5035 #line 891 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5036 _tmp27_ = self->priv->togglebutton_documents;
5037 #line 891 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5038 gtk_widget_set_sensitive ((GtkWidget*) _tmp27_, FALSE);
5039 #line 892 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5040 break;
5041 #line 5041 "tracker-preferences.c"
5042 }
5043 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5044 case G_USER_DIRECTORY_DOWNLOAD:
5045 #line 5045 "tracker-preferences.c"
5046 {
5047 GtkToggleButton* _tmp28_;
5048 #line 894 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5049 _tmp28_ = self->priv->togglebutton_download;
5050 #line 894 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5051 gtk_widget_set_sensitive ((GtkWidget*) _tmp28_, FALSE);
5052 #line 895 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5053 break;
5054 #line 5054 "tracker-preferences.c"
5055 }
5056 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5057 case G_USER_DIRECTORY_MUSIC:
5058 #line 5058 "tracker-preferences.c"
5059 {
5060 GtkToggleButton* _tmp29_;
5061 #line 897 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5062 _tmp29_ = self->priv->togglebutton_music;
5063 #line 897 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5064 gtk_widget_set_sensitive ((GtkWidget*) _tmp29_, FALSE);
5065 #line 898 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5066 break;
5067 #line 5067 "tracker-preferences.c"
5068 }
5069 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5070 case G_USER_DIRECTORY_PICTURES:
5071 #line 5071 "tracker-preferences.c"
5072 {
5073 GtkToggleButton* _tmp30_;
5074 #line 900 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5075 _tmp30_ = self->priv->togglebutton_pictures;
5076 #line 900 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5077 gtk_widget_set_sensitive ((GtkWidget*) _tmp30_, FALSE);
5078 #line 901 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5079 break;
5080 #line 5080 "tracker-preferences.c"
5081 }
5082 #line 886 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5083 case G_USER_DIRECTORY_VIDEOS:
5084 #line 5084 "tracker-preferences.c"
5085 {
5086 GtkToggleButton* _tmp31_;
5087 #line 903 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5088 _tmp31_ = self->priv->togglebutton_videos;
5089 #line 903 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5090 gtk_widget_set_sensitive ((GtkWidget*) _tmp31_, FALSE);
5091 #line 904 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5092 break;
5093 #line 5093 "tracker-preferences.c"
5094 }
5095 default:
5096 {
5097 #line 906 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5098 break;
5099 #line 5099 "tracker-preferences.c"
5100 }
5101 }
5102 }
5103 }
5104 }
5105 #line 843 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5106 all_dirs = (_vala_array_free (all_dirs, all_dirs_length1, (GDestroyNotify) g_free), NULL);
5107 #line 5107 "tracker-preferences.c"
5108 }
5109
5110
5111 static void tracker_value_preferences_init (GValue* value) {
5112 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5113 value->data[0].v_pointer = NULL;
5114 #line 5114 "tracker-preferences.c"
5115 }
5116
5117
5118 static void tracker_value_preferences_free_value (GValue* value) {
5119 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5120 if (value->data[0].v_pointer) {
5121 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5122 tracker_preferences_unref (value->data[0].v_pointer);
5123 #line 5123 "tracker-preferences.c"
5124 }
5125 }
5126
5127
5128 static void tracker_value_preferences_copy_value (const GValue* src_value, GValue* dest_value) {
5129 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5130 if (src_value->data[0].v_pointer) {
5131 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5132 dest_value->data[0].v_pointer = tracker_preferences_ref (src_value->data[0].v_pointer);
5133 #line 5133 "tracker-preferences.c"
5134 } else {
5135 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5136 dest_value->data[0].v_pointer = NULL;
5137 #line 5137 "tracker-preferences.c"
5138 }
5139 }
5140
5141
5142 static gpointer tracker_value_preferences_peek_pointer (const GValue* value) {
5143 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5144 return value->data[0].v_pointer;
5145 #line 5145 "tracker-preferences.c"
5146 }
5147
5148
5149 static gchar* tracker_value_preferences_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
5150 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5151 if (collect_values[0].v_pointer) {
5152 #line 5152 "tracker-preferences.c"
5153 TrackerPreferences* object;
5154 object = collect_values[0].v_pointer;
5155 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5156 if (object->parent_instance.g_class == NULL) {
5157 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5158 return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
5159 #line 5159 "tracker-preferences.c"
5160 } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
5161 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5162 return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
5163 #line 5163 "tracker-preferences.c"
5164 }
5165 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5166 value->data[0].v_pointer = tracker_preferences_ref (object);
5167 #line 5167 "tracker-preferences.c"
5168 } else {
5169 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5170 value->data[0].v_pointer = NULL;
5171 #line 5171 "tracker-preferences.c"
5172 }
5173 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5174 return NULL;
5175 #line 5175 "tracker-preferences.c"
5176 }
5177
5178
5179 static gchar* tracker_value_preferences_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
5180 TrackerPreferences** object_p;
5181 object_p = collect_values[0].v_pointer;
5182 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5183 if (!object_p) {
5184 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5185 return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
5186 #line 5186 "tracker-preferences.c"
5187 }
5188 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5189 if (!value->data[0].v_pointer) {
5190 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5191 *object_p = NULL;
5192 #line 5192 "tracker-preferences.c"
5193 } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
5194 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5195 *object_p = value->data[0].v_pointer;
5196 #line 5196 "tracker-preferences.c"
5197 } else {
5198 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5199 *object_p = tracker_preferences_ref (value->data[0].v_pointer);
5200 #line 5200 "tracker-preferences.c"
5201 }
5202 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5203 return NULL;
5204 #line 5204 "tracker-preferences.c"
5205 }
5206
5207
5208 GParamSpec* tracker_param_spec_preferences (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
5209 TrackerParamSpecPreferences* spec;
5210 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5211 g_return_val_if_fail (g_type_is_a (object_type, TRACKER_TYPE_PREFERENCES), NULL);
5212 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5213 spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
5214 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5215 G_PARAM_SPEC (spec)->value_type = object_type;
5216 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5217 return G_PARAM_SPEC (spec);
5218 #line 5218 "tracker-preferences.c"
5219 }
5220
5221
5222 gpointer tracker_value_get_preferences (const GValue* value) {
5223 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5224 g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_PREFERENCES), NULL);
5225 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5226 return value->data[0].v_pointer;
5227 #line 5227 "tracker-preferences.c"
5228 }
5229
5230
5231 void tracker_value_set_preferences (GValue* value, gpointer v_object) {
5232 TrackerPreferences* old;
5233 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5234 g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_PREFERENCES));
5235 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5236 old = value->data[0].v_pointer;
5237 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5238 if (v_object) {
5239 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5240 g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_PREFERENCES));
5241 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5242 g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
5243 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5244 value->data[0].v_pointer = v_object;
5245 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5246 tracker_preferences_ref (value->data[0].v_pointer);
5247 #line 5247 "tracker-preferences.c"
5248 } else {
5249 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5250 value->data[0].v_pointer = NULL;
5251 #line 5251 "tracker-preferences.c"
5252 }
5253 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5254 if (old) {
5255 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5256 tracker_preferences_unref (old);
5257 #line 5257 "tracker-preferences.c"
5258 }
5259 }
5260
5261
5262 void tracker_value_take_preferences (GValue* value, gpointer v_object) {
5263 TrackerPreferences* old;
5264 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5265 g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_PREFERENCES));
5266 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5267 old = value->data[0].v_pointer;
5268 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5269 if (v_object) {
5270 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5271 g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_PREFERENCES));
5272 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5273 g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
5274 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5275 value->data[0].v_pointer = v_object;
5276 #line 5276 "tracker-preferences.c"
5277 } else {
5278 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5279 value->data[0].v_pointer = NULL;
5280 #line 5280 "tracker-preferences.c"
5281 }
5282 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5283 if (old) {
5284 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5285 tracker_preferences_unref (old);
5286 #line 5286 "tracker-preferences.c"
5287 }
5288 }
5289
5290
5291 static void tracker_preferences_class_init (TrackerPreferencesClass * klass) {
5292 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5293 tracker_preferences_parent_class = g_type_class_peek_parent (klass);
5294 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5295 TRACKER_PREFERENCES_CLASS (klass)->finalize = tracker_preferences_finalize;
5296 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5297 g_type_class_add_private (klass, sizeof (TrackerPreferencesPrivate));
5298 #line 5298 "tracker-preferences.c"
5299 }
5300
5301
5302 static void tracker_preferences_instance_init (TrackerPreferences * self) {
5303 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5304 self->priv = TRACKER_PREFERENCES_GET_PRIVATE (self);
5305 #line 32 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5306 self->priv->settings_miner_fs = NULL;
5307 #line 33 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5308 self->priv->settings_extract = NULL;
5309 #line 39 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5310 self->priv->ignored_user_directories = NULL;
5311 #line 39 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5312 self->priv->ignored_user_directories_length1 = 0;
5313 #line 39 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5314 self->priv->_ignored_user_directories_size_ = self->priv->ignored_user_directories_length1;
5315 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5316 self->ref_count = 1;
5317 #line 5317 "tracker-preferences.c"
5318 }
5319
5320
5321 static void tracker_preferences_finalize (TrackerPreferences* obj) {
5322 TrackerPreferences * self;
5323 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5324 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_TYPE_PREFERENCES, TrackerPreferences);
5325 #line 32 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5326 _g_object_unref0 (self->priv->settings_miner_fs);
5327 #line 33 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5328 _g_object_unref0 (self->priv->settings_extract);
5329 #line 37 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5330 _g_free0 (self->priv->HOME_STRING_EVALUATED);
5331 #line 39 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5332 self->priv->ignored_user_directories = (g_free (self->priv->ignored_user_directories), NULL);
5333 #line 41 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5334 _g_object_unref0 (self->priv->window);
5335 #line 42 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5336 _g_object_unref0 (self->priv->checkbutton_enable_index_on_battery_first_time);
5337 #line 43 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5338 _g_object_unref0 (self->priv->checkbutton_enable_index_on_battery);
5339 #line 44 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5340 _g_object_unref0 (self->priv->spinbutton_delay);
5341 #line 45 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5342 _g_object_unref0 (self->priv->checkbutton_enable_monitoring);
5343 #line 46 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5344 _g_object_unref0 (self->priv->checkbutton_index_removable_media);
5345 #line 47 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5346 _g_object_unref0 (self->priv->checkbutton_index_optical_discs);
5347 #line 48 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5348 _g_object_unref0 (self->priv->hscale_disk_space_limit);
5349 #line 49 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5350 _g_object_unref0 (self->priv->radiobutton_sched_idle_always);
5351 #line 50 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5352 _g_object_unref0 (self->priv->radiobutton_sched_idle_first_index);
5353 #line 51 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5354 _g_object_unref0 (self->priv->radiobutton_sched_idle_never);
5355 #line 52 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5356 _g_object_unref0 (self->priv->hscale_drop_device_threshold);
5357 #line 53 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5358 _g_object_unref0 (self->priv->liststore_index);
5359 #line 54 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5360 _g_object_unref0 (self->priv->liststore_ignored_directories);
5361 #line 55 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5362 _g_object_unref0 (self->priv->liststore_ignored_files);
5363 #line 56 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5364 _g_object_unref0 (self->priv->liststore_ignored_directories_with_content);
5365 #line 57 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5366 _g_object_unref0 (self->priv->treeview_index);
5367 #line 58 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5368 _g_object_unref0 (self->priv->treeview_ignored_directories);
5369 #line 59 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5370 _g_object_unref0 (self->priv->treeview_ignored_directories_with_content);
5371 #line 60 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5372 _g_object_unref0 (self->priv->treeview_ignored_files);
5373 #line 61 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5374 _g_object_unref0 (self->priv->treeviewcolumn_index1);
5375 #line 62 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5376 _g_object_unref0 (self->priv->treeviewcolumn_index2);
5377 #line 63 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5378 _g_object_unref0 (self->priv->togglebutton_home);
5379 #line 64 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5380 _g_object_unref0 (self->priv->togglebutton_desktop);
5381 #line 65 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5382 _g_object_unref0 (self->priv->togglebutton_documents);
5383 #line 66 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5384 _g_object_unref0 (self->priv->togglebutton_music);
5385 #line 67 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5386 _g_object_unref0 (self->priv->togglebutton_pictures);
5387 #line 68 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5388 _g_object_unref0 (self->priv->togglebutton_videos);
5389 #line 69 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5390 _g_object_unref0 (self->priv->togglebutton_download);
5391 #line 70 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5392 _g_object_unref0 (self->priv->hbox_duplicate_warning);
5393 #line 71 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5394 _g_object_unref0 (self->priv->button_reindex);
5395 #line 72 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5396 _g_object_unref0 (self->priv->notebook);
5397 #line 5397 "tracker-preferences.c"
5398 }
5399
5400
5401 GType tracker_preferences_get_type (void) {
5402 static volatile gsize tracker_preferences_type_id__volatile = 0;
5403 if (g_once_init_enter (&tracker_preferences_type_id__volatile)) {
5404 static const GTypeValueTable g_define_type_value_table = { tracker_value_preferences_init, tracker_value_preferences_free_value, tracker_value_preferences_copy_value, tracker_value_preferences_peek_pointer, "p", tracker_value_preferences_collect_value, "p", tracker_value_preferences_lcopy_value };
5405 static const GTypeInfo g_define_type_info = { sizeof (TrackerPreferencesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_preferences_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerPreferences), 0, (GInstanceInitFunc) tracker_preferences_instance_init, &g_define_type_value_table };
5406 static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
5407 GType tracker_preferences_type_id;
5408 tracker_preferences_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TrackerPreferences", &g_define_type_info, &g_define_type_fundamental_info, 0);
5409 g_once_init_leave (&tracker_preferences_type_id__volatile, tracker_preferences_type_id);
5410 }
5411 return tracker_preferences_type_id__volatile;
5412 }
5413
5414
5415 gpointer tracker_preferences_ref (gpointer instance) {
5416 TrackerPreferences* self;
5417 self = instance;
5418 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5419 g_atomic_int_inc (&self->ref_count);
5420 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5421 return instance;
5422 #line 5422 "tracker-preferences.c"
5423 }
5424
5425
5426 void tracker_preferences_unref (gpointer instance) {
5427 TrackerPreferences* self;
5428 self = instance;
5429 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5430 if (g_atomic_int_dec_and_test (&self->ref_count)) {
5431 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5432 TRACKER_PREFERENCES_GET_CLASS (self)->finalize (self);
5433 #line 31 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5434 g_type_free_instance ((GTypeInstance *) self);
5435 #line 5435 "tracker-preferences.c"
5436 }
5437 }
5438
5439
5440 gint _vala_main (gchar** args, int args_length1) {
5441 gint result = 0;
5442 const gchar* _tmp0_ = NULL;
5443 GOptionContext* _tmp1_;
5444 GOptionContext* context;
5445 gboolean _tmp14_;
5446 TrackerPreferences* _tmp39_;
5447 TrackerPreferences* p;
5448 TrackerPreferences* _tmp40_;
5449 GError * _inner_error_ = NULL;
5450 #line 926 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5451 _tmp0_ = _ ("Desktop Search preferences");
5452 #line 926 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5453 _tmp1_ = g_option_context_new (_tmp0_);
5454 #line 926 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5455 context = _tmp1_;
5456 #line 5456 "tracker-preferences.c"
5457 {
5458 GOptionContext* _tmp2_;
5459 GOptionContext* _tmp3_;
5460 GOptionContext* _tmp4_;
5461 GOptionGroup* _tmp5_ = NULL;
5462 GOptionContext* _tmp6_;
5463 #line 929 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5464 _tmp2_ = context;
5465 #line 929 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5466 g_option_context_set_help_enabled (_tmp2_, TRUE);
5467 #line 930 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5468 _tmp3_ = context;
5469 #line 930 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5470 g_option_context_add_main_entries (_tmp3_, options, NULL);
5471 #line 931 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5472 _tmp4_ = context;
5473 #line 931 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5474 _tmp5_ = gtk_get_option_group (TRUE);
5475 #line 931 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5476 g_option_context_add_group (_tmp4_, _tmp5_);
5477 #line 932 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5478 _tmp6_ = context;
5479 #line 932 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5480 g_option_context_parse (_tmp6_, &args_length1, &args, &_inner_error_);
5481 #line 932 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5482 if (_inner_error_ != NULL) {
5483 #line 5483 "tracker-preferences.c"
5484 goto __catch4_g_error;
5485 }
5486 }
5487 goto __finally4;
5488 __catch4_g_error:
5489 {
5490 GError* e = NULL;
5491 GError* _tmp7_;
5492 const gchar* _tmp8_;
5493 gchar* _tmp9_;
5494 gchar* _tmp10_;
5495 GOptionContext* _tmp11_;
5496 gchar* _tmp12_ = NULL;
5497 gchar* _tmp13_;
5498 #line 928 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5499 e = _inner_error_;
5500 #line 928 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5501 _inner_error_ = NULL;
5502 #line 934 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5503 _tmp7_ = e;
5504 #line 934 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5505 _tmp8_ = _tmp7_->message;
5506 #line 934 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5507 _tmp9_ = g_strconcat (_tmp8_, "\n\n", NULL);
5508 #line 934 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5509 _tmp10_ = _tmp9_;
5510 #line 934 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5511 g_printerr ("%s", _tmp10_);
5512 #line 934 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5513 _g_free0 (_tmp10_);
5514 #line 935 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5515 _tmp11_ = context;
5516 #line 935 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5517 _tmp12_ = g_option_context_get_help (_tmp11_, TRUE, NULL);
5518 #line 935 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5519 _tmp13_ = _tmp12_;
5520 #line 935 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5521 g_printerr ("%s", _tmp13_);
5522 #line 935 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5523 _g_free0 (_tmp13_);
5524 #line 936 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5525 result = 1;
5526 #line 936 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5527 _g_error_free0 (e);
5528 #line 936 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5529 _g_option_context_free0 (context);
5530 #line 936 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5531 return result;
5532 #line 5532 "tracker-preferences.c"
5533 }
5534 __finally4:
5535 #line 928 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5536 if (_inner_error_ != NULL) {
5537 #line 928 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5538 _g_option_context_free0 (context);
5539 #line 928 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5540 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);
5541 #line 928 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5542 g_clear_error (&_inner_error_);
5543 #line 928 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5544 return 0;
5545 #line 5545 "tracker-preferences.c"
5546 }
5547 #line 939 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5548 _tmp14_ = print_version;
5549 #line 939 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5550 if (_tmp14_) {
5551 #line 5551 "tracker-preferences.c"
5552 gchar* _tmp15_;
5553 gchar* about;
5554 gchar* _tmp16_;
5555 gchar* license;
5556 const gchar* _tmp17_;
5557 gchar* _tmp18_;
5558 const gchar* _tmp19_;
5559 gchar* _tmp20_;
5560 const gchar* _tmp21_;
5561 gchar* _tmp22_;
5562 const gchar* _tmp23_;
5563 gchar* _tmp24_;
5564 const gchar* _tmp25_;
5565 gchar* _tmp26_;
5566 const gchar* _tmp27_;
5567 gchar* _tmp28_;
5568 const gchar* _tmp29_;
5569 gchar* _tmp30_;
5570 gchar* _tmp31_;
5571 gchar* _tmp32_;
5572 gchar* _tmp33_;
5573 const gchar* _tmp34_;
5574 gchar* _tmp35_;
5575 gchar* _tmp36_;
5576 gchar* _tmp37_;
5577 gchar* _tmp38_;
5578 #line 940 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5579 _tmp15_ = g_strdup ("");
5580 #line 940 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5581 about = _tmp15_;
5582 #line 941 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5583 _tmp16_ = g_strdup ("");
5584 #line 941 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5585 license = _tmp16_;
5586 #line 943 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5587 _tmp17_ = about;
5588 #line 943 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5589 _tmp18_ = g_strconcat (_tmp17_, "Tracker " PACKAGE_VERSION "\n", NULL);
5590 #line 943 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5591 _g_free0 (about);
5592 #line 943 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5593 about = _tmp18_;
5594 #line 945 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5595 _tmp19_ = license;
5596 #line 945 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5597 _tmp20_ = g_strconcat (_tmp19_, "This program is free software and comes without any warranty.\n", NULL);
5598 #line 945 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5599 _g_free0 (license);
5600 #line 945 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5601 license = _tmp20_;
5602 #line 946 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5603 _tmp21_ = license;
5604 #line 946 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5605 _tmp22_ = g_strconcat (_tmp21_, "It is licensed under version 2 or later of the General Public ", NULL);
5606 #line 946 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5607 _g_free0 (license);
5608 #line 946 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5609 license = _tmp22_;
5610 #line 947 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5611 _tmp23_ = license;
5612 #line 947 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5613 _tmp24_ = g_strconcat (_tmp23_, "License which can be viewed at:\n", NULL);
5614 #line 947 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5615 _g_free0 (license);
5616 #line 947 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5617 license = _tmp24_;
5618 #line 948 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5619 _tmp25_ = license;
5620 #line 948 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5621 _tmp26_ = g_strconcat (_tmp25_, "\n", NULL);
5622 #line 948 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5623 _g_free0 (license);
5624 #line 948 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5625 license = _tmp26_;
5626 #line 949 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5627 _tmp27_ = license;
5628 #line 949 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5629 _tmp28_ = g_strconcat (_tmp27_, " http://www.gnu.org/licenses/gpl.txt\n", NULL);
5630 #line 949 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5631 _g_free0 (license);
5632 #line 949 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5633 license = _tmp28_;
5634 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5635 _tmp29_ = about;
5636 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5637 _tmp30_ = g_strconcat ("\n", _tmp29_, NULL);
5638 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5639 _tmp31_ = _tmp30_;
5640 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5641 _tmp32_ = g_strconcat (_tmp31_, "\n", NULL);
5642 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5643 _tmp33_ = _tmp32_;
5644 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5645 _tmp34_ = license;
5646 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5647 _tmp35_ = g_strconcat (_tmp33_, _tmp34_, NULL);
5648 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5649 _tmp36_ = _tmp35_;
5650 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5651 _tmp37_ = g_strconcat (_tmp36_, "\n", NULL);
5652 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5653 _tmp38_ = _tmp37_;
5654 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5655 g_print ("%s", _tmp38_);
5656 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5657 _g_free0 (_tmp38_);
5658 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5659 _g_free0 (_tmp36_);
5660 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5661 _g_free0 (_tmp33_);
5662 #line 951 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5663 _g_free0 (_tmp31_);
5664 #line 952 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5665 result = 0;
5666 #line 952 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5667 _g_free0 (license);
5668 #line 952 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5669 _g_free0 (about);
5670 #line 952 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5671 _g_option_context_free0 (context);
5672 #line 952 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5673 return result;
5674 #line 5674 "tracker-preferences.c"
5675 }
5676 #line 955 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5677 gtk_init (&args_length1, &args);
5678 #line 957 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5679 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
5680 #line 958 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5681 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
5682 #line 959 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5683 textdomain (GETTEXT_PACKAGE);
5684 #line 961 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5685 _tmp39_ = tracker_preferences_new ();
5686 #line 961 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5687 p = _tmp39_;
5688 #line 962 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5689 _tmp40_ = p;
5690 #line 962 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5691 tracker_preferences_show (_tmp40_);
5692 #line 964 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5693 gtk_main ();
5694 #line 966 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5695 result = 0;
5696 #line 966 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5697 _tracker_preferences_unref0 (p);
5698 #line 966 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5699 _g_option_context_free0 (context);
5700 #line 966 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5701 return result;
5702 #line 5702 "tracker-preferences.c"
5703 }
5704
5705
5706 int main (int argc, char ** argv) {
5707 #line 925 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5708 g_type_init ();
5709 #line 925 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala"
5710 return _vala_main (argv, argc);
5711 #line 5711 "tracker-preferences.c"
5712 }
5713
5714
5715 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
5716 if ((array != NULL) && (destroy_func != NULL)) {
5717 int i;
5718 for (i = 0; i < array_length; i = i + 1) {
5719 if (((gpointer*) array)[i] != NULL) {
5720 destroy_func (((gpointer*) array)[i]);
5721 }
5722 }
5723 }
5724 }
5725
5726
5727 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
5728 _vala_array_destroy (array, array_length, destroy_func);
5729 g_free (array);
5730 }
5731
5732
5733 static gint _vala_array_length (gpointer array) {
5734 int length;
5735 length = 0;
5736 if (array) {
5737 while (((gpointer*) array)[length]) {
5738 length++;
5739 }
5740 }
5741 return length;
5742 }