1 /* combobox.c generated by valac 0.34.7, the Vala compiler
2  * generated from combobox.vala, do not modify */
3 
4 /*
5     Copyright 2013 Julien Lavergne <gilir@ubuntu.com>
6 
7     This program is free software: you can redistribute it and/or modify
8     it under the terms of the GNU General Public License as published by
9     the Free Software Foundation, either version 3 of the License, or
10     (at your option) any later version.
11 
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16 
17     You should have received a copy of the GNU General Public License
18     along with this program.  If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #include <glib.h>
22 #include <glib-object.h>
23 #include <gtk/gtk.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <gdk-pixbuf/gdk-pixbuf.h>
27 #include <glib/gi18n-lib.h>
28 #include <gdk/gdk.h>
29 #include <glib/gstdio.h>
30 
31 
32 #define LDEFAULT_APPS_TYPE_DBUS_BACKEND (ldefault_apps_dbus_backend_get_type ())
33 #define LDEFAULT_APPS_DBUS_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LDEFAULT_APPS_TYPE_DBUS_BACKEND, LDefaultAppsDbusBackend))
34 #define LDEFAULT_APPS_DBUS_BACKEND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LDEFAULT_APPS_TYPE_DBUS_BACKEND, LDefaultAppsDbusBackendClass))
35 #define LDEFAULT_APPS_IS_DBUS_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LDEFAULT_APPS_TYPE_DBUS_BACKEND))
36 #define LDEFAULT_APPS_IS_DBUS_BACKEND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LDEFAULT_APPS_TYPE_DBUS_BACKEND))
37 #define LDEFAULT_APPS_DBUS_BACKEND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LDEFAULT_APPS_TYPE_DBUS_BACKEND, LDefaultAppsDbusBackendClass))
38 
39 typedef struct _LDefaultAppsDbusBackend LDefaultAppsDbusBackend;
40 typedef struct _LDefaultAppsDbusBackendClass LDefaultAppsDbusBackendClass;
41 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
42 #define _g_free0(var) (var = (g_free (var), NULL))
43 typedef struct _Block5Data Block5Data;
44 typedef struct _Block6Data Block6Data;
45 typedef struct _Block7Data Block7Data;
46 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
47 #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
48 typedef struct _Block8Data Block8Data;
49 typedef struct _Block9Data Block9Data;
50 typedef struct _Block10Data Block10Data;
51 typedef struct _Block11Data Block11Data;
52 
53 #define LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT (ldefault_apps_combo_item_object_get_type ())
54 #define LDEFAULT_APPS_COMBO_ITEM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject))
55 #define LDEFAULT_APPS_COMBO_ITEM_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObjectClass))
56 #define LDEFAULT_APPS_IS_COMBO_ITEM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT))
57 #define LDEFAULT_APPS_IS_COMBO_ITEM_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT))
58 #define LDEFAULT_APPS_COMBO_ITEM_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObjectClass))
59 
60 typedef struct _LDefaultAppsComboItemObject LDefaultAppsComboItemObject;
61 typedef struct _LDefaultAppsComboItemObjectClass LDefaultAppsComboItemObjectClass;
62 typedef struct _Block12Data Block12Data;
63 typedef struct _LDefaultAppsComboItemObjectPrivate LDefaultAppsComboItemObjectPrivate;
64 typedef struct _Block13Data Block13Data;
65 typedef struct _Block14Data Block14Data;
66 typedef struct _Block15Data Block15Data;
67 typedef struct _Block16Data Block16Data;
68 typedef struct _Block17Data Block17Data;
69 
70 struct _Block5Data {
71 	int _ref_count_;
72 	GtkEntry* entry;
73 	LDefaultAppsDbusBackend* dbus_backend;
74 	gchar* key1;
75 };
76 
77 struct _Block6Data {
78 	int _ref_count_;
79 	LDefaultAppsDbusBackend* dbus_backend;
80 	gchar* key1;
81 	gchar* key2;
82 };
83 
84 struct _Block7Data {
85 	int _ref_count_;
86 	gchar* message_label;
87 };
88 
89 struct _Block8Data {
90 	int _ref_count_;
91 	gchar** more_list_copy;
92 	gint more_list_copy_length1;
93 	gint _more_list_copy_size_;
94 	GtkBuilder* builder;
95 	LDefaultAppsDbusBackend* dbus_backend;
96 	GKeyFile* kf;
97 	gchar* item;
98 	gchar* more_help;
99 	gchar* generic_item;
100 };
101 
102 struct _Block9Data {
103 	int _ref_count_;
104 	LDefaultAppsDbusBackend* dbus_backend;
105 	GKeyFile* kf;
106 	gchar* item;
107 	gchar** more_list;
108 	gint more_list_length1;
109 };
110 
111 struct _Block10Data {
112 	int _ref_count_;
113 	Block9Data * _data9_;
114 	gint a;
115 };
116 
117 struct _Block11Data {
118 	int _ref_count_;
119 	Block10Data * _data10_;
120 	GtkEntry* manual_entry;
121 };
122 
123 struct _Block12Data {
124 	int _ref_count_;
125 	Block10Data * _data10_;
126 	GtkEntry* entry;
127 };
128 
129 struct _LDefaultAppsComboItemObject {
130 	GObject parent_instance;
131 	LDefaultAppsComboItemObjectPrivate * priv;
132 	gchar** tmp_item_array;
133 	gint tmp_item_array_length1;
134 };
135 
136 struct _LDefaultAppsComboItemObjectClass {
137 	GObjectClass parent_class;
138 };
139 
140 struct _LDefaultAppsComboItemObjectPrivate {
141 	gchar* _name;
142 	gchar* _exec;
143 	GtkImage* _icon;
144 	gchar* _icon_name;
145 	gchar* _desktop_path;
146 	gchar* _install_package;
147 };
148 
149 struct _Block13Data {
150 	int _ref_count_;
151 	GtkComboBox* return_combobox;
152 	GtkListStore* list_store;
153 	GtkTreeIter iter;
154 	LDefaultAppsDbusBackend* dbus_backend;
155 	GKeyFile* kf;
156 	gchar* combobox_list_name;
157 };
158 
159 struct _Block14Data {
160 	int _ref_count_;
161 	GtkWindow* window_mime;
162 };
163 
164 struct _Block15Data {
165 	int _ref_count_;
166 	Block14Data * _data14_;
167 	gchar** mime_list;
168 	gint mime_list_length1;
169 	gint _mime_list_size_;
170 };
171 
172 struct _Block16Data {
173 	int _ref_count_;
174 	Block15Data * _data15_;
175 	gchar* base_name;
176 };
177 
178 struct _Block17Data {
179 	int _ref_count_;
180 	GtkListStore* list_store;
181 	GtkTreeIter iter;
182 	GtkComboBox* return_combobox;
183 	GtkBuilder* builder;
184 	gchar* entry_name;
185 };
186 
187 
188 static gpointer ldefault_apps_combo_item_object_parent_class = NULL;
189 
190 GType ldefault_apps_dbus_backend_get_type (void) G_GNUC_CONST;
191 void ldefault_apps_init_application (GtkBuilder* builder, GKeyFile* kf, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2, const gchar* message_help, gchar** more_list, int more_list_length1, const gchar* more_help, const gchar* generic_item);
192 void ldefault_apps_init_entry (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1);
193 void ldefault_apps_init_reload_button (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2);
194 void ldefault_apps_init_help_message (GtkBuilder* builder, const gchar* item, const gchar* message_label);
195 void ldefault_apps_init_more_button (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* item, gchar** more_list, int more_list_length1, const gchar* more_help, const gchar* generic_item);
196 void ldefault_apps_init_application_combobox (GtkBuilder* builder, GKeyFile* kf, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2, const gchar* message_help, gchar** more_list, int more_list_length1, const gchar* more_help, const gchar* generic_item);
197 GtkComboBox* ldefault_apps_init_combobox (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* combobox_name, const gchar* combobox_list_name, const gchar* by_default, const gchar* generic_item);
198 gchar* ldefault_apps_dbus_backend_Get (LDefaultAppsDbusBackend* self, const gchar* key1, const gchar* key2);
199 static Block5Data* block5_data_ref (Block5Data* _data5_);
200 static void block5_data_unref (void * _userdata_);
201 static void __lambda7_ (Block5Data* _data5_);
202 void ldefault_apps_dbus_backend_Set (LDefaultAppsDbusBackend* self, const gchar* key1, const gchar* key2, const gchar* command_to_set);
203 static void ___lambda7__gtk_editable_changed (GtkEditable* _sender, gpointer self);
204 static Block6Data* block6_data_ref (Block6Data* _data6_);
205 static void block6_data_unref (void * _userdata_);
206 static void __lambda8_ (Block6Data* _data6_);
207 void ldefault_apps_dbus_backend_Launch (LDefaultAppsDbusBackend* self, const gchar* name, const gchar* option);
208 static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self);
209 static Block7Data* block7_data_ref (Block7Data* _data7_);
210 static void block7_data_unref (void * _userdata_);
211 static void __lambda9_ (Block7Data* _data7_);
212 static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self);
213 static Block8Data* block8_data_ref (Block8Data* _data8_);
214 static void block8_data_unref (void * _userdata_);
215 static gchar** _vala_array_dup2 (gchar** self, int length);
216 static void __lambda10_ (Block8Data* _data8_);
217 void ldefault_apps_init_windows_more (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* item, gchar** more_list, int more_list_length1, const gchar* message_help, const gchar* generic_item);
218 static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self);
219 static Block9Data* block9_data_ref (Block9Data* _data9_);
220 static void block9_data_unref (void * _userdata_);
221 static Block10Data* block10_data_ref (Block10Data* _data10_);
222 static void block10_data_unref (void * _userdata_);
223 static Block11Data* block11_data_ref (Block11Data* _data11_);
224 static void block11_data_unref (void * _userdata_);
225 static void ______lambda11_ (Block11Data* _data11_);
226 static void _______lambda11__gtk_editable_changed (GtkEditable* _sender, gpointer self);
227 static void ______lambda12_ (Block10Data* _data10_);
228 gchar** ldefault_apps_get_mime_list (GKeyFile* kf, const gchar* key1, const gchar* mode, int* result_length1);
229 GType ldefault_apps_combo_item_object_get_type (void) G_GNUC_CONST;
230 LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_new (const gchar* item);
231 LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_construct (GType object_type, const gchar* item);
232 const gchar* ldefault_apps_combo_item_object_get_exec (LDefaultAppsComboItemObject* self);
233 const gchar* ldefault_apps_combo_item_object_get_desktop_path (LDefaultAppsComboItemObject* self);
234 void ldefault_apps_create_mime_associate_window (LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* combobox_list_name, const gchar* command);
235 static void _______lambda12__gtk_button_clicked (GtkButton* _sender, gpointer self);
236 const gchar* ldefault_apps_combo_item_object_get_icon_name (LDefaultAppsComboItemObject* self);
237 const gchar* ldefault_apps_combo_item_object_get_name (LDefaultAppsComboItemObject* self);
238 static void ______lambda15_ (Block10Data* _data10_);
239 static void _______lambda15__gtk_button_clicked (GtkButton* _sender, gpointer self);
240 static void ______lambda16_ (Block10Data* _data10_);
241 static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self);
242 static void ______lambda17_ (Block10Data* _data10_);
243 static void _______lambda17__gtk_button_clicked (GtkButton* _sender, gpointer self);
244 static Block12Data* block12_data_ref (Block12Data* _data12_);
245 static void block12_data_unref (void * _userdata_);
246 static void _______lambda18_ (Block12Data* _data12_);
247 static void ________lambda18__gtk_editable_changed (GtkEditable* _sender, gpointer self);
248 #define LDEFAULT_APPS_COMBO_ITEM_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObjectPrivate))
249 enum  {
250 	LDEFAULT_APPS_COMBO_ITEM_OBJECT_DUMMY_PROPERTY,
251 	LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME,
252 	LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC,
253 	LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON,
254 	LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME,
255 	LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH,
256 	LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE
257 };
258 void ldefault_apps_combo_item_object_set_name (LDefaultAppsComboItemObject* self, const gchar* value);
259 void ldefault_apps_combo_item_object_set_exec (LDefaultAppsComboItemObject* self, const gchar* value);
260 GtkImage* ldefault_apps_combo_item_object_create_image (LDefaultAppsComboItemObject* self, const gchar* item_image_string);
261 void ldefault_apps_combo_item_object_set_icon (LDefaultAppsComboItemObject* self, GtkImage* value);
262 void ldefault_apps_combo_item_object_set_icon_name (LDefaultAppsComboItemObject* self, const gchar* value);
263 void ldefault_apps_combo_item_object_set_desktop_path (LDefaultAppsComboItemObject* self, const gchar* value);
264 void ldefault_apps_combo_item_object_set_install_package (LDefaultAppsComboItemObject* self, const gchar* value);
265 GtkImage* ldefault_apps_combo_item_object_get_icon (LDefaultAppsComboItemObject* self);
266 const gchar* ldefault_apps_combo_item_object_get_install_package (LDefaultAppsComboItemObject* self);
267 static void ldefault_apps_combo_item_object_finalize (GObject* obj);
268 static void _vala_ldefault_apps_combo_item_object_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
269 static void _vala_ldefault_apps_combo_item_object_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
270 static Block13Data* block13_data_ref (Block13Data* _data13_);
271 static void block13_data_unref (void * _userdata_);
272 static void __lambda19_ (Block13Data* _data13_);
273 static void ___lambda19__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
274 static gboolean __lambda20_ (void);
275 static gboolean ___lambda20__gtk_widget_scroll_event (GtkWidget* _sender, GdkEventScroll* event, gpointer self);
276 static Block14Data* block14_data_ref (Block14Data* _data14_);
277 static void block14_data_unref (void * _userdata_);
278 static Block15Data* block15_data_ref (Block15Data* _data15_);
279 static void block15_data_unref (void * _userdata_);
280 static Block16Data* block16_data_ref (Block16Data* _data16_);
281 static void block16_data_unref (void * _userdata_);
282 static void _____lambda13_ (Block16Data* _data16_);
283 void ldefault_apps_save_mime_type (gchar** mime_list, int mime_list_length1, const gchar* base_name);
284 static void ______lambda13__gtk_button_clicked (GtkButton* _sender, gpointer self);
285 static void _____lambda14_ (Block16Data* _data16_);
286 static void ______lambda14__gtk_button_clicked (GtkButton* _sender, gpointer self);
287 GKeyFile* ldefault_apps_load_key_conf (const gchar* config_path_directory, const gchar* conf_name);
288 gchar* ldefault_apps_return_combobox_text (GtkComboBox* combo);
289 GtkComboBox* ldefault_apps_ui_combobox_init (GtkBuilder* builder, const gchar* combobox_name, gchar** combobox_list, int combobox_list_length1, const gchar* entry_name, const gchar* by_default);
290 static Block17Data* block17_data_ref (Block17Data* _data17_);
291 static void block17_data_unref (void * _userdata_);
292 static void __lambda21_ (Block17Data* _data17_);
293 static void ___lambda21__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
294 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
295 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
296 static gint _vala_array_length (gpointer array);
297 
298 
ldefault_apps_init_application(GtkBuilder * builder,GKeyFile * kf,LDefaultAppsDbusBackend * dbus_backend,const gchar * key1,const gchar * key2,const gchar * message_help,gchar ** more_list,int more_list_length1,const gchar * more_help,const gchar * generic_item)299 void ldefault_apps_init_application (GtkBuilder* builder, GKeyFile* kf, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2, const gchar* message_help, gchar** more_list, int more_list_length1, const gchar* more_help, const gchar* generic_item) {
300 	GtkBuilder* _tmp0_ = NULL;
301 	LDefaultAppsDbusBackend* _tmp1_ = NULL;
302 	const gchar* _tmp2_ = NULL;
303 	GtkBuilder* _tmp3_ = NULL;
304 	LDefaultAppsDbusBackend* _tmp4_ = NULL;
305 	const gchar* _tmp5_ = NULL;
306 	const gchar* _tmp6_ = NULL;
307 	GtkBuilder* _tmp7_ = NULL;
308 	const gchar* _tmp8_ = NULL;
309 	const gchar* _tmp9_ = NULL;
310 	GtkBuilder* _tmp10_ = NULL;
311 	LDefaultAppsDbusBackend* _tmp11_ = NULL;
312 	GKeyFile* _tmp12_ = NULL;
313 	const gchar* _tmp13_ = NULL;
314 	gchar** _tmp14_ = NULL;
315 	gint _tmp14__length1 = 0;
316 	const gchar* _tmp15_ = NULL;
317 	const gchar* _tmp16_ = NULL;
318 	g_return_if_fail (builder != NULL);
319 	g_return_if_fail (kf != NULL);
320 	g_return_if_fail (dbus_backend != NULL);
321 	g_return_if_fail (key1 != NULL);
322 	g_return_if_fail (key2 != NULL);
323 	g_return_if_fail (message_help != NULL);
324 	g_return_if_fail (more_help != NULL);
325 	_tmp0_ = builder;
326 	_tmp1_ = dbus_backend;
327 	_tmp2_ = key1;
328 	ldefault_apps_init_entry (_tmp0_, _tmp1_, _tmp2_);
329 	_tmp3_ = builder;
330 	_tmp4_ = dbus_backend;
331 	_tmp5_ = key1;
332 	_tmp6_ = key2;
333 	ldefault_apps_init_reload_button (_tmp3_, _tmp4_, _tmp5_, _tmp6_);
334 	_tmp7_ = builder;
335 	_tmp8_ = key1;
336 	_tmp9_ = message_help;
337 	ldefault_apps_init_help_message (_tmp7_, _tmp8_, _tmp9_);
338 	_tmp10_ = builder;
339 	_tmp11_ = dbus_backend;
340 	_tmp12_ = kf;
341 	_tmp13_ = key1;
342 	_tmp14_ = more_list;
343 	_tmp14__length1 = more_list_length1;
344 	_tmp15_ = more_help;
345 	_tmp16_ = generic_item;
346 	ldefault_apps_init_more_button (_tmp10_, _tmp11_, _tmp12_, _tmp13_, _tmp14_, _tmp14__length1, _tmp15_, _tmp16_);
347 }
348 
349 
ldefault_apps_init_application_combobox(GtkBuilder * builder,GKeyFile * kf,LDefaultAppsDbusBackend * dbus_backend,const gchar * key1,const gchar * key2,const gchar * message_help,gchar ** more_list,int more_list_length1,const gchar * more_help,const gchar * generic_item)350 void ldefault_apps_init_application_combobox (GtkBuilder* builder, GKeyFile* kf, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2, const gchar* message_help, gchar** more_list, int more_list_length1, const gchar* more_help, const gchar* generic_item) {
351 	GtkBuilder* _tmp0_ = NULL;
352 	LDefaultAppsDbusBackend* _tmp1_ = NULL;
353 	GKeyFile* _tmp2_ = NULL;
354 	const gchar* _tmp3_ = NULL;
355 	gchar* _tmp4_ = NULL;
356 	gchar* _tmp5_ = NULL;
357 	const gchar* _tmp6_ = NULL;
358 	LDefaultAppsDbusBackend* _tmp7_ = NULL;
359 	const gchar* _tmp8_ = NULL;
360 	gchar* _tmp9_ = NULL;
361 	gchar* _tmp10_ = NULL;
362 	const gchar* _tmp11_ = NULL;
363 	GtkComboBox* _tmp12_ = NULL;
364 	GtkComboBox* _tmp13_ = NULL;
365 	GtkBuilder* _tmp14_ = NULL;
366 	LDefaultAppsDbusBackend* _tmp15_ = NULL;
367 	const gchar* _tmp16_ = NULL;
368 	const gchar* _tmp17_ = NULL;
369 	GtkBuilder* _tmp18_ = NULL;
370 	const gchar* _tmp19_ = NULL;
371 	const gchar* _tmp20_ = NULL;
372 	GtkBuilder* _tmp21_ = NULL;
373 	LDefaultAppsDbusBackend* _tmp22_ = NULL;
374 	GKeyFile* _tmp23_ = NULL;
375 	const gchar* _tmp24_ = NULL;
376 	gchar** _tmp25_ = NULL;
377 	gint _tmp25__length1 = 0;
378 	const gchar* _tmp26_ = NULL;
379 	const gchar* _tmp27_ = NULL;
380 	g_return_if_fail (builder != NULL);
381 	g_return_if_fail (kf != NULL);
382 	g_return_if_fail (dbus_backend != NULL);
383 	g_return_if_fail (key1 != NULL);
384 	g_return_if_fail (key2 != NULL);
385 	g_return_if_fail (message_help != NULL);
386 	g_return_if_fail (more_help != NULL);
387 	_tmp0_ = builder;
388 	_tmp1_ = dbus_backend;
389 	_tmp2_ = kf;
390 	_tmp3_ = key1;
391 	_tmp4_ = g_strconcat (_tmp3_, "_combobox", NULL);
392 	_tmp5_ = _tmp4_;
393 	_tmp6_ = key1;
394 	_tmp7_ = dbus_backend;
395 	_tmp8_ = key1;
396 	_tmp9_ = ldefault_apps_dbus_backend_Get (_tmp7_, _tmp8_, "command");
397 	_tmp10_ = _tmp9_;
398 	_tmp11_ = generic_item;
399 	_tmp12_ = ldefault_apps_init_combobox (_tmp0_, _tmp1_, _tmp2_, _tmp5_, _tmp6_, _tmp10_, _tmp11_);
400 	_tmp13_ = _tmp12_;
401 	_g_object_unref0 (_tmp13_);
402 	_g_free0 (_tmp10_);
403 	_g_free0 (_tmp5_);
404 	_tmp14_ = builder;
405 	_tmp15_ = dbus_backend;
406 	_tmp16_ = key1;
407 	_tmp17_ = key2;
408 	ldefault_apps_init_reload_button (_tmp14_, _tmp15_, _tmp16_, _tmp17_);
409 	_tmp18_ = builder;
410 	_tmp19_ = key1;
411 	_tmp20_ = message_help;
412 	ldefault_apps_init_help_message (_tmp18_, _tmp19_, _tmp20_);
413 	_tmp21_ = builder;
414 	_tmp22_ = dbus_backend;
415 	_tmp23_ = kf;
416 	_tmp24_ = key1;
417 	_tmp25_ = more_list;
418 	_tmp25__length1 = more_list_length1;
419 	_tmp26_ = more_help;
420 	_tmp27_ = generic_item;
421 	ldefault_apps_init_more_button (_tmp21_, _tmp22_, _tmp23_, _tmp24_, _tmp25_, _tmp25__length1, _tmp26_, _tmp27_);
422 }
423 
424 
_g_object_ref0(gpointer self)425 static gpointer _g_object_ref0 (gpointer self) {
426 	return self ? g_object_ref (self) : NULL;
427 }
428 
429 
block5_data_ref(Block5Data * _data5_)430 static Block5Data* block5_data_ref (Block5Data* _data5_) {
431 	g_atomic_int_inc (&_data5_->_ref_count_);
432 	return _data5_;
433 }
434 
435 
block5_data_unref(void * _userdata_)436 static void block5_data_unref (void * _userdata_) {
437 	Block5Data* _data5_;
438 	_data5_ = (Block5Data*) _userdata_;
439 	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
440 		_g_object_unref0 (_data5_->entry);
441 		_g_object_unref0 (_data5_->dbus_backend);
442 		_g_free0 (_data5_->key1);
443 		g_slice_free (Block5Data, _data5_);
444 	}
445 }
446 
447 
__lambda7_(Block5Data * _data5_)448 static void __lambda7_ (Block5Data* _data5_) {
449 	const gchar* _tmp0_ = NULL;
450 	_tmp0_ = gtk_entry_get_text (_data5_->entry);
451 	if (_tmp0_ != NULL) {
452 		LDefaultAppsDbusBackend* _tmp1_ = NULL;
453 		const gchar* _tmp2_ = NULL;
454 		const gchar* _tmp3_ = NULL;
455 		_tmp1_ = _data5_->dbus_backend;
456 		_tmp2_ = _data5_->key1;
457 		_tmp3_ = gtk_entry_get_text (_data5_->entry);
458 		ldefault_apps_dbus_backend_Set (_tmp1_, _tmp2_, "command", _tmp3_);
459 	}
460 }
461 
462 
___lambda7__gtk_editable_changed(GtkEditable * _sender,gpointer self)463 static void ___lambda7__gtk_editable_changed (GtkEditable* _sender, gpointer self) {
464 	__lambda7_ (self);
465 }
466 
467 
ldefault_apps_init_entry(GtkBuilder * builder,LDefaultAppsDbusBackend * dbus_backend,const gchar * key1)468 void ldefault_apps_init_entry (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1) {
469 	Block5Data* _data5_;
470 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
471 	LDefaultAppsDbusBackend* _tmp1_ = NULL;
472 	const gchar* _tmp2_ = NULL;
473 	gchar* _tmp3_ = NULL;
474 	gchar* default_text = NULL;
475 	LDefaultAppsDbusBackend* _tmp4_ = NULL;
476 	const gchar* _tmp5_ = NULL;
477 	gchar* _tmp6_ = NULL;
478 	gchar* entry_name = NULL;
479 	const gchar* _tmp7_ = NULL;
480 	gchar* _tmp8_ = NULL;
481 	GtkBuilder* _tmp9_ = NULL;
482 	GObject* _tmp10_ = NULL;
483 	GtkEntry* _tmp11_ = NULL;
484 	g_return_if_fail (builder != NULL);
485 	g_return_if_fail (dbus_backend != NULL);
486 	g_return_if_fail (key1 != NULL);
487 	_data5_ = g_slice_new0 (Block5Data);
488 	_data5_->_ref_count_ = 1;
489 	_tmp0_ = dbus_backend;
490 	_tmp1_ = _g_object_ref0 (_tmp0_);
491 	_g_object_unref0 (_data5_->dbus_backend);
492 	_data5_->dbus_backend = _tmp1_;
493 	_tmp2_ = key1;
494 	_tmp3_ = g_strdup (_tmp2_);
495 	_g_free0 (_data5_->key1);
496 	_data5_->key1 = _tmp3_;
497 	_tmp4_ = _data5_->dbus_backend;
498 	_tmp5_ = _data5_->key1;
499 	_tmp6_ = ldefault_apps_dbus_backend_Get (_tmp4_, _tmp5_, "command");
500 	default_text = _tmp6_;
501 	_tmp7_ = _data5_->key1;
502 	_tmp8_ = g_strconcat (_tmp7_, "_entry", NULL);
503 	entry_name = _tmp8_;
504 	_tmp9_ = builder;
505 	_tmp10_ = gtk_builder_get_object (_tmp9_, entry_name);
506 	_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp10_) : NULL);
507 	_data5_->entry = _tmp11_;
508 	gtk_entry_set_text (_data5_->entry, default_text);
509 	g_signal_connect_data ((GtkEditable*) _data5_->entry, "changed", (GCallback) ___lambda7__gtk_editable_changed, block5_data_ref (_data5_), (GClosureNotify) block5_data_unref, 0);
510 	gtk_widget_show_all ((GtkWidget*) _data5_->entry);
511 	_g_free0 (entry_name);
512 	_g_free0 (default_text);
513 	block5_data_unref (_data5_);
514 	_data5_ = NULL;
515 }
516 
517 
block6_data_ref(Block6Data * _data6_)518 static Block6Data* block6_data_ref (Block6Data* _data6_) {
519 	g_atomic_int_inc (&_data6_->_ref_count_);
520 	return _data6_;
521 }
522 
523 
block6_data_unref(void * _userdata_)524 static void block6_data_unref (void * _userdata_) {
525 	Block6Data* _data6_;
526 	_data6_ = (Block6Data*) _userdata_;
527 	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
528 		_g_object_unref0 (_data6_->dbus_backend);
529 		_g_free0 (_data6_->key1);
530 		_g_free0 (_data6_->key2);
531 		g_slice_free (Block6Data, _data6_);
532 	}
533 }
534 
535 
__lambda8_(Block6Data * _data6_)536 static void __lambda8_ (Block6Data* _data6_) {
537 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
538 	const gchar* _tmp1_ = NULL;
539 	const gchar* _tmp2_ = NULL;
540 	_tmp0_ = _data6_->dbus_backend;
541 	_tmp1_ = _data6_->key1;
542 	_tmp2_ = _data6_->key2;
543 	ldefault_apps_dbus_backend_Launch (_tmp0_, _tmp1_, _tmp2_);
544 }
545 
546 
___lambda8__gtk_button_clicked(GtkButton * _sender,gpointer self)547 static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self) {
548 	__lambda8_ (self);
549 }
550 
551 
ldefault_apps_init_reload_button(GtkBuilder * builder,LDefaultAppsDbusBackend * dbus_backend,const gchar * key1,const gchar * key2)552 void ldefault_apps_init_reload_button (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2) {
553 	Block6Data* _data6_;
554 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
555 	LDefaultAppsDbusBackend* _tmp1_ = NULL;
556 	const gchar* _tmp2_ = NULL;
557 	gchar* _tmp3_ = NULL;
558 	const gchar* _tmp4_ = NULL;
559 	gchar* _tmp5_ = NULL;
560 	GtkButton* button = NULL;
561 	GtkBuilder* _tmp6_ = NULL;
562 	const gchar* _tmp7_ = NULL;
563 	gchar* _tmp8_ = NULL;
564 	gchar* _tmp9_ = NULL;
565 	GObject* _tmp10_ = NULL;
566 	GtkButton* _tmp11_ = NULL;
567 	GtkButton* _tmp12_ = NULL;
568 	g_return_if_fail (builder != NULL);
569 	g_return_if_fail (dbus_backend != NULL);
570 	g_return_if_fail (key1 != NULL);
571 	g_return_if_fail (key2 != NULL);
572 	_data6_ = g_slice_new0 (Block6Data);
573 	_data6_->_ref_count_ = 1;
574 	_tmp0_ = dbus_backend;
575 	_tmp1_ = _g_object_ref0 (_tmp0_);
576 	_g_object_unref0 (_data6_->dbus_backend);
577 	_data6_->dbus_backend = _tmp1_;
578 	_tmp2_ = key1;
579 	_tmp3_ = g_strdup (_tmp2_);
580 	_g_free0 (_data6_->key1);
581 	_data6_->key1 = _tmp3_;
582 	_tmp4_ = key2;
583 	_tmp5_ = g_strdup (_tmp4_);
584 	_g_free0 (_data6_->key2);
585 	_data6_->key2 = _tmp5_;
586 	_tmp6_ = builder;
587 	_tmp7_ = _data6_->key1;
588 	_tmp8_ = g_strconcat (_tmp7_, "_reload", NULL);
589 	_tmp9_ = _tmp8_;
590 	_tmp10_ = gtk_builder_get_object (_tmp6_, _tmp9_);
591 	_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp10_) : NULL);
592 	_tmp12_ = _tmp11_;
593 	_g_free0 (_tmp9_);
594 	button = _tmp12_;
595 	g_signal_connect_data (button, "clicked", (GCallback) ___lambda8__gtk_button_clicked, block6_data_ref (_data6_), (GClosureNotify) block6_data_unref, 0);
596 	_g_object_unref0 (button);
597 	block6_data_unref (_data6_);
598 	_data6_ = NULL;
599 }
600 
601 
block7_data_ref(Block7Data * _data7_)602 static Block7Data* block7_data_ref (Block7Data* _data7_) {
603 	g_atomic_int_inc (&_data7_->_ref_count_);
604 	return _data7_;
605 }
606 
607 
block7_data_unref(void * _userdata_)608 static void block7_data_unref (void * _userdata_) {
609 	Block7Data* _data7_;
610 	_data7_ = (Block7Data*) _userdata_;
611 	if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
612 		_g_free0 (_data7_->message_label);
613 		g_slice_free (Block7Data, _data7_);
614 	}
615 }
616 
617 
__lambda9_(Block7Data * _data7_)618 static void __lambda9_ (Block7Data* _data7_) {
619 	GtkWindow* help_window = NULL;
620 	GtkWindow* _tmp0_ = NULL;
621 	GtkLabel* help_label = NULL;
622 	const gchar* _tmp6_ = NULL;
623 	GtkLabel* _tmp7_ = NULL;
624 	GError * _inner_error_ = NULL;
625 	_tmp0_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
626 	g_object_ref_sink (_tmp0_);
627 	help_window = _tmp0_;
628 	g_object_set (help_window, "window-position", GTK_WIN_POS_CENTER, NULL);
629 	gtk_window_set_default_size (help_window, 350, 70);
630 	gtk_window_set_skip_taskbar_hint (help_window, TRUE);
631 	{
632 		GdkPixbuf* _tmp1_ = NULL;
633 		GtkIconTheme* _tmp2_ = NULL;
634 		GdkPixbuf* _tmp3_ = NULL;
635 		_tmp2_ = gtk_icon_theme_get_default ();
636 		_tmp3_ = gtk_icon_theme_load_icon (_tmp2_, "preferences-desktop", 48, 0, &_inner_error_);
637 		_tmp1_ = _tmp3_;
638 		if (G_UNLIKELY (_inner_error_ != NULL)) {
639 			goto __catch10_g_error;
640 		}
641 		gtk_window_set_icon (help_window, _tmp1_);
642 		_g_object_unref0 (_tmp1_);
643 	}
644 	goto __finally10;
645 	__catch10_g_error:
646 	{
647 		GError* e = NULL;
648 		GError* _tmp4_ = NULL;
649 		const gchar* _tmp5_ = NULL;
650 		e = _inner_error_;
651 		_inner_error_ = NULL;
652 		_tmp4_ = e;
653 		_tmp5_ = _tmp4_->message;
654 		g_message ("combobox.vala:90: Could not load application icon: %s\n", _tmp5_);
655 		_g_error_free0 (e);
656 	}
657 	__finally10:
658 	if (G_UNLIKELY (_inner_error_ != NULL)) {
659 		_g_object_unref0 (help_window);
660 		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);
661 		g_clear_error (&_inner_error_);
662 		return;
663 	}
664 	_tmp6_ = _data7_->message_label;
665 	_tmp7_ = (GtkLabel*) gtk_label_new (_tmp6_);
666 	g_object_ref_sink (_tmp7_);
667 	help_label = _tmp7_;
668 	gtk_container_add ((GtkContainer*) help_window, (GtkWidget*) help_label);
669 	gtk_widget_show_all ((GtkWidget*) help_window);
670 	_g_object_unref0 (help_label);
671 	_g_object_unref0 (help_window);
672 }
673 
674 
___lambda9__gtk_button_clicked(GtkButton * _sender,gpointer self)675 static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) {
676 	__lambda9_ (self);
677 }
678 
679 
ldefault_apps_init_help_message(GtkBuilder * builder,const gchar * item,const gchar * message_label)680 void ldefault_apps_init_help_message (GtkBuilder* builder, const gchar* item, const gchar* message_label) {
681 	Block7Data* _data7_;
682 	const gchar* _tmp0_ = NULL;
683 	gchar* _tmp1_ = NULL;
684 	GtkButton* help_button = NULL;
685 	GtkBuilder* _tmp2_ = NULL;
686 	const gchar* _tmp3_ = NULL;
687 	gchar* _tmp4_ = NULL;
688 	gchar* _tmp5_ = NULL;
689 	GObject* _tmp6_ = NULL;
690 	GtkButton* _tmp7_ = NULL;
691 	GtkButton* _tmp8_ = NULL;
692 	g_return_if_fail (builder != NULL);
693 	g_return_if_fail (item != NULL);
694 	g_return_if_fail (message_label != NULL);
695 	_data7_ = g_slice_new0 (Block7Data);
696 	_data7_->_ref_count_ = 1;
697 	_tmp0_ = message_label;
698 	_tmp1_ = g_strdup (_tmp0_);
699 	_g_free0 (_data7_->message_label);
700 	_data7_->message_label = _tmp1_;
701 	_tmp2_ = builder;
702 	_tmp3_ = item;
703 	_tmp4_ = g_strconcat (_tmp3_, "_help_button", NULL);
704 	_tmp5_ = _tmp4_;
705 	_tmp6_ = gtk_builder_get_object (_tmp2_, _tmp5_);
706 	_tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp6_) : NULL);
707 	_tmp8_ = _tmp7_;
708 	_g_free0 (_tmp5_);
709 	help_button = _tmp8_;
710 	g_signal_connect_data (help_button, "clicked", (GCallback) ___lambda9__gtk_button_clicked, block7_data_ref (_data7_), (GClosureNotify) block7_data_unref, 0);
711 	_g_object_unref0 (help_button);
712 	block7_data_unref (_data7_);
713 	_data7_ = NULL;
714 }
715 
716 
_g_key_file_ref0(gpointer self)717 static gpointer _g_key_file_ref0 (gpointer self) {
718 	return self ? g_key_file_ref (self) : NULL;
719 }
720 
721 
block8_data_ref(Block8Data * _data8_)722 static Block8Data* block8_data_ref (Block8Data* _data8_) {
723 	g_atomic_int_inc (&_data8_->_ref_count_);
724 	return _data8_;
725 }
726 
727 
block8_data_unref(void * _userdata_)728 static void block8_data_unref (void * _userdata_) {
729 	Block8Data* _data8_;
730 	_data8_ = (Block8Data*) _userdata_;
731 	if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
732 		_data8_->more_list_copy = (_vala_array_free (_data8_->more_list_copy, _data8_->more_list_copy_length1, (GDestroyNotify) g_free), NULL);
733 		_g_object_unref0 (_data8_->builder);
734 		_g_object_unref0 (_data8_->dbus_backend);
735 		_g_key_file_unref0 (_data8_->kf);
736 		_g_free0 (_data8_->item);
737 		_g_free0 (_data8_->more_help);
738 		_g_free0 (_data8_->generic_item);
739 		g_slice_free (Block8Data, _data8_);
740 	}
741 }
742 
743 
_vala_array_dup2(gchar ** self,int length)744 static gchar** _vala_array_dup2 (gchar** self, int length) {
745 	gchar** result;
746 	int i;
747 	result = g_new0 (gchar*, length + 1);
748 	for (i = 0; i < length; i++) {
749 		gchar* _tmp0_ = NULL;
750 		_tmp0_ = g_strdup (self[i]);
751 		result[i] = _tmp0_;
752 	}
753 	return result;
754 }
755 
756 
__lambda10_(Block8Data * _data8_)757 static void __lambda10_ (Block8Data* _data8_) {
758 	GtkBuilder* _tmp0_ = NULL;
759 	LDefaultAppsDbusBackend* _tmp1_ = NULL;
760 	GKeyFile* _tmp2_ = NULL;
761 	const gchar* _tmp3_ = NULL;
762 	const gchar* _tmp4_ = NULL;
763 	const gchar* _tmp5_ = NULL;
764 	_tmp0_ = _data8_->builder;
765 	_tmp1_ = _data8_->dbus_backend;
766 	_tmp2_ = _data8_->kf;
767 	_tmp3_ = _data8_->item;
768 	_tmp4_ = _data8_->more_help;
769 	_tmp5_ = _data8_->generic_item;
770 	ldefault_apps_init_windows_more (_tmp0_, _tmp1_, _tmp2_, _tmp3_, _data8_->more_list_copy, _data8_->more_list_copy_length1, _tmp4_, _tmp5_);
771 }
772 
773 
___lambda10__gtk_button_clicked(GtkButton * _sender,gpointer self)774 static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self) {
775 	__lambda10_ (self);
776 }
777 
778 
ldefault_apps_init_more_button(GtkBuilder * builder,LDefaultAppsDbusBackend * dbus_backend,GKeyFile * kf,const gchar * item,gchar ** more_list,int more_list_length1,const gchar * more_help,const gchar * generic_item)779 void ldefault_apps_init_more_button (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* item, gchar** more_list, int more_list_length1, const gchar* more_help, const gchar* generic_item) {
780 	Block8Data* _data8_;
781 	GtkBuilder* _tmp0_ = NULL;
782 	GtkBuilder* _tmp1_ = NULL;
783 	LDefaultAppsDbusBackend* _tmp2_ = NULL;
784 	LDefaultAppsDbusBackend* _tmp3_ = NULL;
785 	GKeyFile* _tmp4_ = NULL;
786 	GKeyFile* _tmp5_ = NULL;
787 	const gchar* _tmp6_ = NULL;
788 	gchar* _tmp7_ = NULL;
789 	const gchar* _tmp8_ = NULL;
790 	gchar* _tmp9_ = NULL;
791 	const gchar* _tmp10_ = NULL;
792 	gchar* _tmp11_ = NULL;
793 	gchar** _tmp12_ = NULL;
794 	gint _tmp12__length1 = 0;
795 	gchar** _tmp13_ = NULL;
796 	gint _tmp13__length1 = 0;
797 	GtkButton* button = NULL;
798 	GtkBuilder* _tmp14_ = NULL;
799 	const gchar* _tmp15_ = NULL;
800 	gchar* _tmp16_ = NULL;
801 	gchar* _tmp17_ = NULL;
802 	GObject* _tmp18_ = NULL;
803 	GtkButton* _tmp19_ = NULL;
804 	GtkButton* _tmp20_ = NULL;
805 	g_return_if_fail (builder != NULL);
806 	g_return_if_fail (dbus_backend != NULL);
807 	g_return_if_fail (kf != NULL);
808 	g_return_if_fail (item != NULL);
809 	g_return_if_fail (more_help != NULL);
810 	g_return_if_fail (generic_item != NULL);
811 	_data8_ = g_slice_new0 (Block8Data);
812 	_data8_->_ref_count_ = 1;
813 	_tmp0_ = builder;
814 	_tmp1_ = _g_object_ref0 (_tmp0_);
815 	_g_object_unref0 (_data8_->builder);
816 	_data8_->builder = _tmp1_;
817 	_tmp2_ = dbus_backend;
818 	_tmp3_ = _g_object_ref0 (_tmp2_);
819 	_g_object_unref0 (_data8_->dbus_backend);
820 	_data8_->dbus_backend = _tmp3_;
821 	_tmp4_ = kf;
822 	_tmp5_ = _g_key_file_ref0 (_tmp4_);
823 	_g_key_file_unref0 (_data8_->kf);
824 	_data8_->kf = _tmp5_;
825 	_tmp6_ = item;
826 	_tmp7_ = g_strdup (_tmp6_);
827 	_g_free0 (_data8_->item);
828 	_data8_->item = _tmp7_;
829 	_tmp8_ = more_help;
830 	_tmp9_ = g_strdup (_tmp8_);
831 	_g_free0 (_data8_->more_help);
832 	_data8_->more_help = _tmp9_;
833 	_tmp10_ = generic_item;
834 	_tmp11_ = g_strdup (_tmp10_);
835 	_g_free0 (_data8_->generic_item);
836 	_data8_->generic_item = _tmp11_;
837 	_tmp12_ = more_list;
838 	_tmp12__length1 = more_list_length1;
839 	_tmp13_ = (_tmp12_ != NULL) ? _vala_array_dup2 (_tmp12_, _tmp12__length1) : ((gpointer) _tmp12_);
840 	_tmp13__length1 = _tmp12__length1;
841 	_data8_->more_list_copy = _tmp13_;
842 	_data8_->more_list_copy_length1 = _tmp13__length1;
843 	_data8_->_more_list_copy_size_ = _data8_->more_list_copy_length1;
844 	_tmp14_ = _data8_->builder;
845 	_tmp15_ = _data8_->item;
846 	_tmp16_ = g_strconcat (_tmp15_, "_more", NULL);
847 	_tmp17_ = _tmp16_;
848 	_tmp18_ = gtk_builder_get_object (_tmp14_, _tmp17_);
849 	_tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp18_) : NULL);
850 	_tmp20_ = _tmp19_;
851 	_g_free0 (_tmp17_);
852 	button = _tmp20_;
853 	g_signal_connect_data (button, "clicked", (GCallback) ___lambda10__gtk_button_clicked, block8_data_ref (_data8_), (GClosureNotify) block8_data_unref, 0);
854 	_g_object_unref0 (button);
855 	block8_data_unref (_data8_);
856 	_data8_ = NULL;
857 }
858 
859 
block9_data_ref(Block9Data * _data9_)860 static Block9Data* block9_data_ref (Block9Data* _data9_) {
861 	g_atomic_int_inc (&_data9_->_ref_count_);
862 	return _data9_;
863 }
864 
865 
block9_data_unref(void * _userdata_)866 static void block9_data_unref (void * _userdata_) {
867 	Block9Data* _data9_;
868 	_data9_ = (Block9Data*) _userdata_;
869 	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
870 		_g_object_unref0 (_data9_->dbus_backend);
871 		_g_key_file_unref0 (_data9_->kf);
872 		_g_free0 (_data9_->item);
873 		g_slice_free (Block9Data, _data9_);
874 	}
875 }
876 
877 
block10_data_ref(Block10Data * _data10_)878 static Block10Data* block10_data_ref (Block10Data* _data10_) {
879 	g_atomic_int_inc (&_data10_->_ref_count_);
880 	return _data10_;
881 }
882 
883 
block10_data_unref(void * _userdata_)884 static void block10_data_unref (void * _userdata_) {
885 	Block10Data* _data10_;
886 	_data10_ = (Block10Data*) _userdata_;
887 	if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
888 		block9_data_unref (_data10_->_data9_);
889 		_data10_->_data9_ = NULL;
890 		g_slice_free (Block10Data, _data10_);
891 	}
892 }
893 
894 
block11_data_ref(Block11Data * _data11_)895 static Block11Data* block11_data_ref (Block11Data* _data11_) {
896 	g_atomic_int_inc (&_data11_->_ref_count_);
897 	return _data11_;
898 }
899 
900 
block11_data_unref(void * _userdata_)901 static void block11_data_unref (void * _userdata_) {
902 	Block11Data* _data11_;
903 	_data11_ = (Block11Data*) _userdata_;
904 	if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
905 		_g_object_unref0 (_data11_->manual_entry);
906 		block10_data_unref (_data11_->_data10_);
907 		_data11_->_data10_ = NULL;
908 		g_slice_free (Block11Data, _data11_);
909 	}
910 }
911 
912 
______lambda11_(Block11Data * _data11_)913 static void ______lambda11_ (Block11Data* _data11_) {
914 	Block10Data* _data10_;
915 	Block9Data* _data9_;
916 	GtkEntry* _tmp0_ = NULL;
917 	const gchar* _tmp1_ = NULL;
918 	_data10_ = _data11_->_data10_;
919 	_data9_ = _data10_->_data9_;
920 	_tmp0_ = _data11_->manual_entry;
921 	_tmp1_ = gtk_entry_get_text (_tmp0_);
922 	if (_tmp1_ != NULL) {
923 		LDefaultAppsDbusBackend* _tmp2_ = NULL;
924 		const gchar* _tmp3_ = NULL;
925 		GtkEntry* _tmp4_ = NULL;
926 		const gchar* _tmp5_ = NULL;
927 		_tmp2_ = _data9_->dbus_backend;
928 		_tmp3_ = _data9_->item;
929 		_tmp4_ = _data11_->manual_entry;
930 		_tmp5_ = gtk_entry_get_text (_tmp4_);
931 		ldefault_apps_dbus_backend_Set (_tmp2_, _tmp3_, "command", _tmp5_);
932 	}
933 }
934 
935 
_______lambda11__gtk_editable_changed(GtkEditable * _sender,gpointer self)936 static void _______lambda11__gtk_editable_changed (GtkEditable* _sender, gpointer self) {
937 	______lambda11_ (self);
938 }
939 
940 
______lambda12_(Block10Data * _data10_)941 static void ______lambda12_ (Block10Data* _data10_) {
942 	Block9Data* _data9_;
943 	gchar** combobox_list = NULL;
944 	gint combobox_list_length1 = 0;
945 	gint _combobox_list_size_ = 0;
946 	GKeyFile* _tmp0_ = NULL;
947 	const gchar* _tmp1_ = NULL;
948 	gint _tmp2_ = 0;
949 	gchar** _tmp3_ = NULL;
950 	gchar* default_path = NULL;
951 	gchar* _tmp4_ = NULL;
952 	gchar* default_exec = NULL;
953 	gchar* _tmp5_ = NULL;
954 	LDefaultAppsDbusBackend* _tmp28_ = NULL;
955 	GKeyFile* _tmp29_ = NULL;
956 	const gchar* _tmp30_ = NULL;
957 	const gchar* _tmp31_ = NULL;
958 	_data9_ = _data10_->_data9_;
959 	_tmp0_ = _data9_->kf;
960 	_tmp1_ = _data9_->item;
961 	_tmp3_ = ldefault_apps_get_mime_list (_tmp0_, _tmp1_, "installed", &_tmp2_);
962 	combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
963 	combobox_list = _tmp3_;
964 	combobox_list_length1 = _tmp2_;
965 	_combobox_list_size_ = combobox_list_length1;
966 	_tmp4_ = g_strdup ("");
967 	default_path = _tmp4_;
968 	_tmp5_ = g_strdup ("");
969 	default_exec = _tmp5_;
970 	{
971 		gint b = 0;
972 		b = 0;
973 		{
974 			gboolean _tmp6_ = FALSE;
975 			_tmp6_ = TRUE;
976 			while (TRUE) {
977 				gint _tmp8_ = 0;
978 				gchar** _tmp9_ = NULL;
979 				gint _tmp9__length1 = 0;
980 				gchar* item_list = NULL;
981 				gchar** _tmp10_ = NULL;
982 				gint _tmp10__length1 = 0;
983 				gint _tmp11_ = 0;
984 				const gchar* _tmp12_ = NULL;
985 				gchar* _tmp13_ = NULL;
986 				LDefaultAppsComboItemObject* combo_item = NULL;
987 				const gchar* _tmp14_ = NULL;
988 				LDefaultAppsComboItemObject* _tmp15_ = NULL;
989 				const gchar* _tmp16_ = NULL;
990 				LDefaultAppsComboItemObject* _tmp17_ = NULL;
991 				const gchar* _tmp18_ = NULL;
992 				const gchar* _tmp19_ = NULL;
993 				if (!_tmp6_) {
994 					gint _tmp7_ = 0;
995 					_tmp7_ = b;
996 					b = _tmp7_ + 1;
997 				}
998 				_tmp6_ = FALSE;
999 				_tmp8_ = b;
1000 				_tmp9_ = combobox_list;
1001 				_tmp9__length1 = combobox_list_length1;
1002 				if (!(_tmp8_ < _tmp9__length1)) {
1003 					break;
1004 				}
1005 				_tmp10_ = combobox_list;
1006 				_tmp10__length1 = combobox_list_length1;
1007 				_tmp11_ = b;
1008 				_tmp12_ = _tmp10_[_tmp11_];
1009 				_tmp13_ = g_strdup (_tmp12_);
1010 				item_list = _tmp13_;
1011 				_tmp14_ = item_list;
1012 				_tmp15_ = ldefault_apps_combo_item_object_new (_tmp14_);
1013 				combo_item = _tmp15_;
1014 				_tmp16_ = _data9_->item;
1015 				_tmp17_ = combo_item;
1016 				_tmp18_ = ldefault_apps_combo_item_object_get_exec (_tmp17_);
1017 				_tmp19_ = _tmp18_;
1018 				if (g_strcmp0 (_tmp16_, _tmp19_) == 0) {
1019 					LDefaultAppsComboItemObject* _tmp20_ = NULL;
1020 					const gchar* _tmp21_ = NULL;
1021 					const gchar* _tmp22_ = NULL;
1022 					gchar* _tmp23_ = NULL;
1023 					LDefaultAppsComboItemObject* _tmp24_ = NULL;
1024 					const gchar* _tmp25_ = NULL;
1025 					const gchar* _tmp26_ = NULL;
1026 					gchar* _tmp27_ = NULL;
1027 					_tmp20_ = combo_item;
1028 					_tmp21_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp20_);
1029 					_tmp22_ = _tmp21_;
1030 					_tmp23_ = g_strdup (_tmp22_);
1031 					_g_free0 (default_path);
1032 					default_path = _tmp23_;
1033 					_tmp24_ = combo_item;
1034 					_tmp25_ = ldefault_apps_combo_item_object_get_exec (_tmp24_);
1035 					_tmp26_ = _tmp25_;
1036 					_tmp27_ = g_strdup (_tmp26_);
1037 					_g_free0 (default_exec);
1038 					default_exec = _tmp27_;
1039 				}
1040 				_g_object_unref0 (combo_item);
1041 				_g_free0 (item_list);
1042 			}
1043 		}
1044 	}
1045 	_tmp28_ = _data9_->dbus_backend;
1046 	_tmp29_ = _data9_->kf;
1047 	_tmp30_ = _data9_->item;
1048 	_tmp31_ = default_exec;
1049 	ldefault_apps_create_mime_associate_window (_tmp28_, _tmp29_, _tmp30_, _tmp31_);
1050 	_g_free0 (default_exec);
1051 	_g_free0 (default_path);
1052 	combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
1053 }
1054 
1055 
_______lambda12__gtk_button_clicked(GtkButton * _sender,gpointer self)1056 static void _______lambda12__gtk_button_clicked (GtkButton* _sender, gpointer self) {
1057 	______lambda12_ (self);
1058 }
1059 
1060 
______lambda15_(Block10Data * _data10_)1061 static void ______lambda15_ (Block10Data* _data10_) {
1062 	Block9Data* _data9_;
1063 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
1064 	const gchar* _tmp1_ = NULL;
1065 	_data9_ = _data10_->_data9_;
1066 	_tmp0_ = _data9_->dbus_backend;
1067 	_tmp1_ = _data9_->item;
1068 	ldefault_apps_dbus_backend_Set (_tmp0_, _tmp1_, "autostart", "true");
1069 }
1070 
1071 
_______lambda15__gtk_button_clicked(GtkButton * _sender,gpointer self)1072 static void _______lambda15__gtk_button_clicked (GtkButton* _sender, gpointer self) {
1073 	______lambda15_ (self);
1074 }
1075 
1076 
______lambda16_(Block10Data * _data10_)1077 static void ______lambda16_ (Block10Data* _data10_) {
1078 	Block9Data* _data9_;
1079 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
1080 	_data9_ = _data10_->_data9_;
1081 	_tmp0_ = _data9_->dbus_backend;
1082 	ldefault_apps_dbus_backend_Set (_tmp0_, "desktop_manager", "command", "filemanager");
1083 }
1084 
1085 
_______lambda16__gtk_button_clicked(GtkButton * _sender,gpointer self)1086 static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self) {
1087 	______lambda16_ (self);
1088 }
1089 
1090 
string_slice(const gchar * self,glong start,glong end)1091 static gchar* string_slice (const gchar* self, glong start, glong end) {
1092 	gchar* result = NULL;
1093 	glong string_length = 0L;
1094 	gint _tmp0_ = 0;
1095 	gint _tmp1_ = 0;
1096 	glong _tmp2_ = 0L;
1097 	glong _tmp5_ = 0L;
1098 	gboolean _tmp8_ = FALSE;
1099 	glong _tmp9_ = 0L;
1100 	gboolean _tmp12_ = FALSE;
1101 	glong _tmp13_ = 0L;
1102 	glong _tmp16_ = 0L;
1103 	glong _tmp17_ = 0L;
1104 	glong _tmp18_ = 0L;
1105 	glong _tmp19_ = 0L;
1106 	glong _tmp20_ = 0L;
1107 	gchar* _tmp21_ = NULL;
1108 	g_return_val_if_fail (self != NULL, NULL);
1109 	_tmp0_ = strlen (self);
1110 	_tmp1_ = _tmp0_;
1111 	string_length = (glong) _tmp1_;
1112 	_tmp2_ = start;
1113 	if (_tmp2_ < ((glong) 0)) {
1114 		glong _tmp3_ = 0L;
1115 		glong _tmp4_ = 0L;
1116 		_tmp3_ = string_length;
1117 		_tmp4_ = start;
1118 		start = _tmp3_ + _tmp4_;
1119 	}
1120 	_tmp5_ = end;
1121 	if (_tmp5_ < ((glong) 0)) {
1122 		glong _tmp6_ = 0L;
1123 		glong _tmp7_ = 0L;
1124 		_tmp6_ = string_length;
1125 		_tmp7_ = end;
1126 		end = _tmp6_ + _tmp7_;
1127 	}
1128 	_tmp9_ = start;
1129 	if (_tmp9_ >= ((glong) 0)) {
1130 		glong _tmp10_ = 0L;
1131 		glong _tmp11_ = 0L;
1132 		_tmp10_ = start;
1133 		_tmp11_ = string_length;
1134 		_tmp8_ = _tmp10_ <= _tmp11_;
1135 	} else {
1136 		_tmp8_ = FALSE;
1137 	}
1138 	g_return_val_if_fail (_tmp8_, NULL);
1139 	_tmp13_ = end;
1140 	if (_tmp13_ >= ((glong) 0)) {
1141 		glong _tmp14_ = 0L;
1142 		glong _tmp15_ = 0L;
1143 		_tmp14_ = end;
1144 		_tmp15_ = string_length;
1145 		_tmp12_ = _tmp14_ <= _tmp15_;
1146 	} else {
1147 		_tmp12_ = FALSE;
1148 	}
1149 	g_return_val_if_fail (_tmp12_, NULL);
1150 	_tmp16_ = start;
1151 	_tmp17_ = end;
1152 	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
1153 	_tmp18_ = start;
1154 	_tmp19_ = end;
1155 	_tmp20_ = start;
1156 	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
1157 	result = _tmp21_;
1158 	return result;
1159 }
1160 
1161 
______lambda17_(Block10Data * _data10_)1162 static void ______lambda17_ (Block10Data* _data10_) {
1163 	Block9Data* _data9_;
1164 	gchar* default_text = NULL;
1165 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
1166 	const gchar* _tmp1_ = NULL;
1167 	gchar* _tmp2_ = NULL;
1168 	gchar* default_command = NULL;
1169 	const gchar* _tmp3_ = NULL;
1170 	gchar* _tmp4_ = NULL;
1171 	gchar* _tmp5_ = NULL;
1172 	gboolean _tmp6_ = FALSE;
1173 	const gchar* _tmp11_ = NULL;
1174 	const gchar* _tmp12_ = NULL;
1175 	GQuark _tmp14_ = 0U;
1176 	static GQuark _tmp13_label0 = 0;
1177 	static GQuark _tmp13_label1 = 0;
1178 	GError * _inner_error_ = NULL;
1179 	_data9_ = _data10_->_data9_;
1180 	_tmp0_ = _data9_->dbus_backend;
1181 	_tmp1_ = _data9_->item;
1182 	_tmp2_ = ldefault_apps_dbus_backend_Get (_tmp0_, _tmp1_, "command");
1183 	default_text = _tmp2_;
1184 	_tmp3_ = default_text;
1185 	_tmp4_ = string_slice (_tmp3_, (glong) 0, (glong) 1);
1186 	_tmp5_ = _tmp4_;
1187 	_tmp6_ = g_strcmp0 (_tmp5_, "/") == 0;
1188 	_g_free0 (_tmp5_);
1189 	if (_tmp6_) {
1190 		const gchar* _tmp7_ = NULL;
1191 		gchar* _tmp8_ = NULL;
1192 		_tmp7_ = default_text;
1193 		_tmp8_ = g_strdup (_tmp7_);
1194 		_g_free0 (default_command);
1195 		default_command = _tmp8_;
1196 	} else {
1197 		const gchar* _tmp9_ = NULL;
1198 		gchar* _tmp10_ = NULL;
1199 		_tmp9_ = default_text;
1200 		_tmp10_ = g_strconcat ("/usr/bin/", _tmp9_, NULL);
1201 		_g_free0 (default_command);
1202 		default_command = _tmp10_;
1203 	}
1204 	_tmp11_ = _data9_->item;
1205 	_tmp12_ = _tmp11_;
1206 	_tmp14_ = (NULL == _tmp12_) ? 0 : g_quark_from_string (_tmp12_);
1207 	if (_tmp14_ == ((0 != _tmp13_label0) ? _tmp13_label0 : (_tmp13_label0 = g_quark_from_static_string ("webbrowser")))) {
1208 		switch (0) {
1209 			default:
1210 			{
1211 				{
1212 					const gchar* _tmp15_ = NULL;
1213 					gchar* _tmp16_ = NULL;
1214 					gchar* _tmp17_ = NULL;
1215 					gchar* _tmp18_ = NULL;
1216 					gchar* _tmp19_ = NULL;
1217 					_tmp15_ = default_command;
1218 					_tmp16_ = g_strconcat ("gksu \"update-alternatives --set x-www-browser ", _tmp15_, NULL);
1219 					_tmp17_ = _tmp16_;
1220 					_tmp18_ = g_strconcat (_tmp17_, "\"", NULL);
1221 					_tmp19_ = _tmp18_;
1222 					g_spawn_command_line_async (_tmp19_, &_inner_error_);
1223 					_g_free0 (_tmp19_);
1224 					_g_free0 (_tmp17_);
1225 					if (G_UNLIKELY (_inner_error_ != NULL)) {
1226 						if (_inner_error_->domain == G_SPAWN_ERROR) {
1227 							goto __catch12_g_spawn_error;
1228 						}
1229 						_g_free0 (default_command);
1230 						_g_free0 (default_text);
1231 						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);
1232 						g_clear_error (&_inner_error_);
1233 						return;
1234 					}
1235 				}
1236 				goto __finally12;
1237 				__catch12_g_spawn_error:
1238 				{
1239 					GError* err = NULL;
1240 					GError* _tmp20_ = NULL;
1241 					const gchar* _tmp21_ = NULL;
1242 					err = _inner_error_;
1243 					_inner_error_ = NULL;
1244 					_tmp20_ = err;
1245 					_tmp21_ = _tmp20_->message;
1246 					g_warning ("combobox.vala:310: %s", _tmp21_);
1247 					_g_error_free0 (err);
1248 				}
1249 				__finally12:
1250 				if (G_UNLIKELY (_inner_error_ != NULL)) {
1251 					_g_free0 (default_command);
1252 					_g_free0 (default_text);
1253 					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);
1254 					g_clear_error (&_inner_error_);
1255 					return;
1256 				}
1257 				break;
1258 			}
1259 		}
1260 	} else if (_tmp14_ == ((0 != _tmp13_label1) ? _tmp13_label1 : (_tmp13_label1 = g_quark_from_static_string ("terminal_manager")))) {
1261 		switch (0) {
1262 			default:
1263 			{
1264 				{
1265 					const gchar* _tmp22_ = NULL;
1266 					gchar* _tmp23_ = NULL;
1267 					gchar* _tmp24_ = NULL;
1268 					gchar* _tmp25_ = NULL;
1269 					gchar* _tmp26_ = NULL;
1270 					_tmp22_ = default_command;
1271 					_tmp23_ = g_strconcat ("gksu \"update-alternatives --set x-terminal-emulator ", _tmp22_, NULL);
1272 					_tmp24_ = _tmp23_;
1273 					_tmp25_ = g_strconcat (_tmp24_, "\"", NULL);
1274 					_tmp26_ = _tmp25_;
1275 					g_spawn_command_line_async (_tmp26_, &_inner_error_);
1276 					_g_free0 (_tmp26_);
1277 					_g_free0 (_tmp24_);
1278 					if (G_UNLIKELY (_inner_error_ != NULL)) {
1279 						if (_inner_error_->domain == G_SPAWN_ERROR) {
1280 							goto __catch13_g_spawn_error;
1281 						}
1282 						_g_free0 (default_command);
1283 						_g_free0 (default_text);
1284 						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);
1285 						g_clear_error (&_inner_error_);
1286 						return;
1287 					}
1288 				}
1289 				goto __finally13;
1290 				__catch13_g_spawn_error:
1291 				{
1292 					GError* err = NULL;
1293 					GError* _tmp27_ = NULL;
1294 					const gchar* _tmp28_ = NULL;
1295 					err = _inner_error_;
1296 					_inner_error_ = NULL;
1297 					_tmp27_ = err;
1298 					_tmp28_ = _tmp27_->message;
1299 					g_warning ("combobox.vala:322: %s", _tmp28_);
1300 					_g_error_free0 (err);
1301 				}
1302 				__finally13:
1303 				if (G_UNLIKELY (_inner_error_ != NULL)) {
1304 					_g_free0 (default_command);
1305 					_g_free0 (default_text);
1306 					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);
1307 					g_clear_error (&_inner_error_);
1308 					return;
1309 				}
1310 				break;
1311 			}
1312 		}
1313 	}
1314 	_g_free0 (default_command);
1315 	_g_free0 (default_text);
1316 }
1317 
1318 
_______lambda17__gtk_button_clicked(GtkButton * _sender,gpointer self)1319 static void _______lambda17__gtk_button_clicked (GtkButton* _sender, gpointer self) {
1320 	______lambda17_ (self);
1321 }
1322 
1323 
block12_data_ref(Block12Data * _data12_)1324 static Block12Data* block12_data_ref (Block12Data* _data12_) {
1325 	g_atomic_int_inc (&_data12_->_ref_count_);
1326 	return _data12_;
1327 }
1328 
1329 
block12_data_unref(void * _userdata_)1330 static void block12_data_unref (void * _userdata_) {
1331 	Block12Data* _data12_;
1332 	_data12_ = (Block12Data*) _userdata_;
1333 	if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
1334 		_g_object_unref0 (_data12_->entry);
1335 		block10_data_unref (_data12_->_data10_);
1336 		_data12_->_data10_ = NULL;
1337 		g_slice_free (Block12Data, _data12_);
1338 	}
1339 }
1340 
1341 
_______lambda18_(Block12Data * _data12_)1342 static void _______lambda18_ (Block12Data* _data12_) {
1343 	Block10Data* _data10_;
1344 	Block9Data* _data9_;
1345 	GtkEntry* _tmp0_ = NULL;
1346 	const gchar* _tmp1_ = NULL;
1347 	_data10_ = _data12_->_data10_;
1348 	_data9_ = _data10_->_data9_;
1349 	_tmp0_ = _data12_->entry;
1350 	_tmp1_ = gtk_entry_get_text (_tmp0_);
1351 	if (_tmp1_ != NULL) {
1352 		LDefaultAppsDbusBackend* _tmp2_ = NULL;
1353 		const gchar* _tmp3_ = NULL;
1354 		gchar** _tmp4_ = NULL;
1355 		gint _tmp4__length1 = 0;
1356 		gint _tmp5_ = 0;
1357 		const gchar* _tmp6_ = NULL;
1358 		GtkEntry* _tmp7_ = NULL;
1359 		const gchar* _tmp8_ = NULL;
1360 		_tmp2_ = _data9_->dbus_backend;
1361 		_tmp3_ = _data9_->item;
1362 		_tmp4_ = _data9_->more_list;
1363 		_tmp4__length1 = _data9_->more_list_length1;
1364 		_tmp5_ = _data10_->a;
1365 		_tmp6_ = _tmp4_[_tmp5_];
1366 		_tmp7_ = _data12_->entry;
1367 		_tmp8_ = gtk_entry_get_text (_tmp7_);
1368 		ldefault_apps_dbus_backend_Set (_tmp2_, _tmp3_, _tmp6_, _tmp8_);
1369 	}
1370 }
1371 
1372 
________lambda18__gtk_editable_changed(GtkEditable * _sender,gpointer self)1373 static void ________lambda18__gtk_editable_changed (GtkEditable* _sender, gpointer self) {
1374 	_______lambda18_ (self);
1375 }
1376 
1377 
ldefault_apps_init_windows_more(GtkBuilder * builder,LDefaultAppsDbusBackend * dbus_backend,GKeyFile * kf,const gchar * item,gchar ** more_list,int more_list_length1,const gchar * message_help,const gchar * generic_item)1378 void ldefault_apps_init_windows_more (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* item, gchar** more_list, int more_list_length1, const gchar* message_help, const gchar* generic_item) {
1379 	Block9Data* _data9_;
1380 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
1381 	LDefaultAppsDbusBackend* _tmp1_ = NULL;
1382 	GKeyFile* _tmp2_ = NULL;
1383 	GKeyFile* _tmp3_ = NULL;
1384 	const gchar* _tmp4_ = NULL;
1385 	gchar* _tmp5_ = NULL;
1386 	gchar** _tmp6_ = NULL;
1387 	gint _tmp6__length1 = 0;
1388 	GtkWindow* window = NULL;
1389 	GtkWindow* _tmp7_ = NULL;
1390 	GtkWindow* _tmp8_ = NULL;
1391 	GtkWindow* _tmp9_ = NULL;
1392 	GtkScrolledWindow* more_scrolled = NULL;
1393 	GtkScrolledWindow* _tmp16_ = NULL;
1394 	GtkScrolledWindow* _tmp17_ = NULL;
1395 	GtkWindow* _tmp18_ = NULL;
1396 	GtkScrolledWindow* _tmp19_ = NULL;
1397 	GtkViewport* more_view_port = NULL;
1398 	GtkViewport* _tmp20_ = NULL;
1399 	GtkScrolledWindow* _tmp21_ = NULL;
1400 	GtkViewport* _tmp22_ = NULL;
1401 	GtkVBox* master_vbox = NULL;
1402 	GtkVBox* _tmp23_ = NULL;
1403 	GtkViewport* _tmp24_ = NULL;
1404 	GtkVBox* _tmp25_ = NULL;
1405 	GtkLabel* help_message = NULL;
1406 	const gchar* _tmp26_ = NULL;
1407 	GtkLabel* _tmp27_ = NULL;
1408 	GtkVBox* _tmp28_ = NULL;
1409 	GtkLabel* _tmp29_ = NULL;
1410 	GtkWindow* _tmp184_ = NULL;
1411 	GError * _inner_error_ = NULL;
1412 	g_return_if_fail (builder != NULL);
1413 	g_return_if_fail (dbus_backend != NULL);
1414 	g_return_if_fail (kf != NULL);
1415 	g_return_if_fail (item != NULL);
1416 	g_return_if_fail (message_help != NULL);
1417 	g_return_if_fail (generic_item != NULL);
1418 	_data9_ = g_slice_new0 (Block9Data);
1419 	_data9_->_ref_count_ = 1;
1420 	_tmp0_ = dbus_backend;
1421 	_tmp1_ = _g_object_ref0 (_tmp0_);
1422 	_g_object_unref0 (_data9_->dbus_backend);
1423 	_data9_->dbus_backend = _tmp1_;
1424 	_tmp2_ = kf;
1425 	_tmp3_ = _g_key_file_ref0 (_tmp2_);
1426 	_g_key_file_unref0 (_data9_->kf);
1427 	_data9_->kf = _tmp3_;
1428 	_tmp4_ = item;
1429 	_tmp5_ = g_strdup (_tmp4_);
1430 	_g_free0 (_data9_->item);
1431 	_data9_->item = _tmp5_;
1432 	_tmp6_ = more_list;
1433 	_tmp6__length1 = more_list_length1;
1434 	_data9_->more_list = _tmp6_;
1435 	_data9_->more_list_length1 = _tmp6__length1;
1436 	_tmp7_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
1437 	g_object_ref_sink (_tmp7_);
1438 	window = _tmp7_;
1439 	_tmp8_ = window;
1440 	g_object_set (_tmp8_, "window-position", GTK_WIN_POS_CENTER, NULL);
1441 	_tmp9_ = window;
1442 	gtk_window_set_default_size (_tmp9_, 300, 500);
1443 	{
1444 		GdkPixbuf* _tmp10_ = NULL;
1445 		GtkIconTheme* _tmp11_ = NULL;
1446 		GdkPixbuf* _tmp12_ = NULL;
1447 		GtkWindow* _tmp13_ = NULL;
1448 		_tmp11_ = gtk_icon_theme_get_default ();
1449 		_tmp12_ = gtk_icon_theme_load_icon (_tmp11_, "preferences-desktop", 48, 0, &_inner_error_);
1450 		_tmp10_ = _tmp12_;
1451 		if (G_UNLIKELY (_inner_error_ != NULL)) {
1452 			goto __catch11_g_error;
1453 		}
1454 		_tmp13_ = window;
1455 		gtk_window_set_icon (_tmp13_, _tmp10_);
1456 		_g_object_unref0 (_tmp10_);
1457 	}
1458 	goto __finally11;
1459 	__catch11_g_error:
1460 	{
1461 		GError* e = NULL;
1462 		GError* _tmp14_ = NULL;
1463 		const gchar* _tmp15_ = NULL;
1464 		e = _inner_error_;
1465 		_inner_error_ = NULL;
1466 		_tmp14_ = e;
1467 		_tmp15_ = _tmp14_->message;
1468 		g_message ("combobox.vala:120: Could not load application icon: %s\n", _tmp15_);
1469 		_g_error_free0 (e);
1470 	}
1471 	__finally11:
1472 	if (G_UNLIKELY (_inner_error_ != NULL)) {
1473 		_g_object_unref0 (window);
1474 		block9_data_unref (_data9_);
1475 		_data9_ = NULL;
1476 		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);
1477 		g_clear_error (&_inner_error_);
1478 		return;
1479 	}
1480 	_tmp16_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
1481 	g_object_ref_sink (_tmp16_);
1482 	more_scrolled = _tmp16_;
1483 	_tmp17_ = more_scrolled;
1484 	gtk_scrolled_window_set_policy (_tmp17_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
1485 	_tmp18_ = window;
1486 	_tmp19_ = more_scrolled;
1487 	gtk_container_add ((GtkContainer*) _tmp18_, (GtkWidget*) _tmp19_);
1488 	_tmp20_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
1489 	g_object_ref_sink (_tmp20_);
1490 	more_view_port = _tmp20_;
1491 	_tmp21_ = more_scrolled;
1492 	_tmp22_ = more_view_port;
1493 	gtk_container_add ((GtkContainer*) _tmp21_, (GtkWidget*) _tmp22_);
1494 	_tmp23_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
1495 	g_object_ref_sink (_tmp23_);
1496 	master_vbox = _tmp23_;
1497 	_tmp24_ = more_view_port;
1498 	_tmp25_ = master_vbox;
1499 	gtk_container_add ((GtkContainer*) _tmp24_, (GtkWidget*) _tmp25_);
1500 	_tmp26_ = message_help;
1501 	_tmp27_ = (GtkLabel*) gtk_label_new (_tmp26_);
1502 	g_object_ref_sink (_tmp27_);
1503 	help_message = _tmp27_;
1504 	_tmp28_ = master_vbox;
1505 	_tmp29_ = help_message;
1506 	gtk_container_add ((GtkContainer*) _tmp28_, (GtkWidget*) _tmp29_);
1507 	{
1508 		Block10Data* _data10_;
1509 		_data10_ = g_slice_new0 (Block10Data);
1510 		_data10_->_ref_count_ = 1;
1511 		_data10_->_data9_ = block9_data_ref (_data9_);
1512 		_data10_->a = 0;
1513 		{
1514 			gboolean _tmp30_ = FALSE;
1515 			_tmp30_ = TRUE;
1516 			while (TRUE) {
1517 				gint _tmp32_ = 0;
1518 				gchar** _tmp33_ = NULL;
1519 				gint _tmp33__length1 = 0;
1520 				gchar** _tmp34_ = NULL;
1521 				gint _tmp34__length1 = 0;
1522 				gint _tmp35_ = 0;
1523 				const gchar* _tmp36_ = NULL;
1524 				const gchar* _tmp37_ = NULL;
1525 				GQuark _tmp39_ = 0U;
1526 				static GQuark _tmp38_label0 = 0;
1527 				static GQuark _tmp38_label1 = 0;
1528 				static GQuark _tmp38_label2 = 0;
1529 				static GQuark _tmp38_label3 = 0;
1530 				static GQuark _tmp38_label4 = 0;
1531 				static GQuark _tmp38_label5 = 0;
1532 				if (!_tmp30_) {
1533 					gint _tmp31_ = 0;
1534 					_tmp31_ = _data10_->a;
1535 					_data10_->a = _tmp31_ + 1;
1536 				}
1537 				_tmp30_ = FALSE;
1538 				_tmp32_ = _data10_->a;
1539 				_tmp33_ = _data9_->more_list;
1540 				_tmp33__length1 = _data9_->more_list_length1;
1541 				if (!(_tmp32_ < _tmp33__length1)) {
1542 					break;
1543 				}
1544 				_tmp34_ = _data9_->more_list;
1545 				_tmp34__length1 = _data9_->more_list_length1;
1546 				_tmp35_ = _data10_->a;
1547 				_tmp36_ = _tmp34_[_tmp35_];
1548 				_tmp37_ = _tmp36_;
1549 				_tmp39_ = (NULL == _tmp37_) ? 0 : g_quark_from_string (_tmp37_);
1550 				if (_tmp39_ == ((0 != _tmp38_label0) ? _tmp38_label0 : (_tmp38_label0 = g_quark_from_static_string ("combobox_manual")))) {
1551 					switch (0) {
1552 						default:
1553 						{
1554 							Block11Data* _data11_;
1555 							GtkHBox* box = NULL;
1556 							GtkHBox* _tmp40_ = NULL;
1557 							GtkVBox* _tmp41_ = NULL;
1558 							GtkHBox* _tmp42_ = NULL;
1559 							GtkLabel* label = NULL;
1560 							const gchar* _tmp43_ = NULL;
1561 							GtkLabel* _tmp44_ = NULL;
1562 							GtkHBox* _tmp45_ = NULL;
1563 							GtkLabel* _tmp46_ = NULL;
1564 							gchar* default_text = NULL;
1565 							LDefaultAppsDbusBackend* _tmp47_ = NULL;
1566 							const gchar* _tmp48_ = NULL;
1567 							gchar* _tmp49_ = NULL;
1568 							GtkEntry* _tmp50_ = NULL;
1569 							GtkEntry* _tmp51_ = NULL;
1570 							const gchar* _tmp52_ = NULL;
1571 							GtkEntry* _tmp53_ = NULL;
1572 							GtkHBox* _tmp54_ = NULL;
1573 							GtkEntry* _tmp55_ = NULL;
1574 							_data11_ = g_slice_new0 (Block11Data);
1575 							_data11_->_ref_count_ = 1;
1576 							_data11_->_data10_ = block10_data_ref (_data10_);
1577 							_tmp40_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
1578 							g_object_ref_sink (_tmp40_);
1579 							box = _tmp40_;
1580 							_tmp41_ = master_vbox;
1581 							_tmp42_ = box;
1582 							gtk_container_add ((GtkContainer*) _tmp41_, (GtkWidget*) _tmp42_);
1583 							_tmp43_ = _ ("Manual setting");
1584 							_tmp44_ = (GtkLabel*) gtk_label_new (_tmp43_);
1585 							g_object_ref_sink (_tmp44_);
1586 							label = _tmp44_;
1587 							_tmp45_ = box;
1588 							_tmp46_ = label;
1589 							gtk_container_add ((GtkContainer*) _tmp45_, (GtkWidget*) _tmp46_);
1590 							_tmp47_ = _data9_->dbus_backend;
1591 							_tmp48_ = _data9_->item;
1592 							_tmp49_ = ldefault_apps_dbus_backend_Get (_tmp47_, _tmp48_, "command");
1593 							default_text = _tmp49_;
1594 							_tmp50_ = (GtkEntry*) gtk_entry_new ();
1595 							g_object_ref_sink (_tmp50_);
1596 							_data11_->manual_entry = _tmp50_;
1597 							_tmp51_ = _data11_->manual_entry;
1598 							_tmp52_ = default_text;
1599 							gtk_entry_set_text (_tmp51_, _tmp52_);
1600 							_tmp53_ = _data11_->manual_entry;
1601 							g_signal_connect_data ((GtkEditable*) _tmp53_, "changed", (GCallback) _______lambda11__gtk_editable_changed, block11_data_ref (_data11_), (GClosureNotify) block11_data_unref, 0);
1602 							_tmp54_ = box;
1603 							_tmp55_ = _data11_->manual_entry;
1604 							gtk_container_add ((GtkContainer*) _tmp54_, (GtkWidget*) _tmp55_);
1605 							_g_free0 (default_text);
1606 							_g_object_unref0 (label);
1607 							_g_object_unref0 (box);
1608 							block11_data_unref (_data11_);
1609 							_data11_ = NULL;
1610 							break;
1611 						}
1612 					}
1613 				} else if (_tmp39_ == ((0 != _tmp38_label1) ? _tmp38_label1 : (_tmp38_label1 = g_quark_from_static_string ("mime_association")))) {
1614 					switch (0) {
1615 						default:
1616 						{
1617 							GtkHBox* box = NULL;
1618 							GtkHBox* _tmp56_ = NULL;
1619 							GtkVBox* _tmp57_ = NULL;
1620 							GtkHBox* _tmp58_ = NULL;
1621 							GtkLabel* label = NULL;
1622 							const gchar* _tmp59_ = NULL;
1623 							GtkLabel* _tmp60_ = NULL;
1624 							GtkHBox* _tmp61_ = NULL;
1625 							GtkLabel* _tmp62_ = NULL;
1626 							GtkButton* button = NULL;
1627 							const gchar* _tmp63_ = NULL;
1628 							GtkButton* _tmp64_ = NULL;
1629 							GtkButton* _tmp65_ = NULL;
1630 							GtkHBox* _tmp66_ = NULL;
1631 							GtkButton* _tmp67_ = NULL;
1632 							_tmp56_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
1633 							g_object_ref_sink (_tmp56_);
1634 							box = _tmp56_;
1635 							_tmp57_ = master_vbox;
1636 							_tmp58_ = box;
1637 							gtk_container_add ((GtkContainer*) _tmp57_, (GtkWidget*) _tmp58_);
1638 							_tmp59_ = _ ("Mime Association");
1639 							_tmp60_ = (GtkLabel*) gtk_label_new (_tmp59_);
1640 							g_object_ref_sink (_tmp60_);
1641 							label = _tmp60_;
1642 							_tmp61_ = box;
1643 							_tmp62_ = label;
1644 							gtk_container_add ((GtkContainer*) _tmp61_, (GtkWidget*) _tmp62_);
1645 							_tmp63_ = _ ("Apply");
1646 							_tmp64_ = (GtkButton*) gtk_button_new_with_label (_tmp63_);
1647 							g_object_ref_sink (_tmp64_);
1648 							button = _tmp64_;
1649 							_tmp65_ = button;
1650 							g_signal_connect_data (_tmp65_, "clicked", (GCallback) _______lambda12__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
1651 							_tmp66_ = box;
1652 							_tmp67_ = button;
1653 							gtk_container_add ((GtkContainer*) _tmp66_, (GtkWidget*) _tmp67_);
1654 							_g_object_unref0 (button);
1655 							_g_object_unref0 (label);
1656 							_g_object_unref0 (box);
1657 							break;
1658 						}
1659 					}
1660 				} else if (_tmp39_ == ((0 != _tmp38_label2) ? _tmp38_label2 : (_tmp38_label2 = g_quark_from_static_string ("mime_available")))) {
1661 					switch (0) {
1662 						default:
1663 						{
1664 							GtkVBox* box = NULL;
1665 							GtkVBox* _tmp68_ = NULL;
1666 							GtkVBox* _tmp69_ = NULL;
1667 							GtkVBox* _tmp70_ = NULL;
1668 							GtkLabel* label = NULL;
1669 							const gchar* _tmp71_ = NULL;
1670 							GtkLabel* _tmp72_ = NULL;
1671 							GtkVBox* _tmp73_ = NULL;
1672 							GtkLabel* _tmp74_ = NULL;
1673 							GtkListStore* list_store = NULL;
1674 							GtkListStore* _tmp75_ = NULL;
1675 							GtkTreeIter iter = {0};
1676 							gchar** list = NULL;
1677 							gint list_length1 = 0;
1678 							gint _list_size_ = 0;
1679 							const gchar* _tmp76_ = NULL;
1680 							GtkTreeView* return_treeview = NULL;
1681 							GtkListStore* _tmp105_ = NULL;
1682 							GtkTreeView* _tmp106_ = NULL;
1683 							GtkCellRendererPixbuf* renderer_image = NULL;
1684 							GtkCellRendererPixbuf* _tmp107_ = NULL;
1685 							GtkTreeView* _tmp108_ = NULL;
1686 							GtkCellRendererPixbuf* _tmp109_ = NULL;
1687 							GtkCellRendererText* renderer = NULL;
1688 							GtkCellRendererText* _tmp110_ = NULL;
1689 							GtkTreeView* _tmp111_ = NULL;
1690 							GtkCellRendererText* _tmp112_ = NULL;
1691 							GtkCellRendererPixbuf* renderer_apply = NULL;
1692 							GtkCellRendererPixbuf* _tmp113_ = NULL;
1693 							GtkTreeView* _tmp114_ = NULL;
1694 							GtkCellRendererPixbuf* _tmp115_ = NULL;
1695 							GtkVBox* _tmp116_ = NULL;
1696 							GtkTreeView* _tmp117_ = NULL;
1697 							_tmp68_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
1698 							g_object_ref_sink (_tmp68_);
1699 							box = _tmp68_;
1700 							_tmp69_ = master_vbox;
1701 							_tmp70_ = box;
1702 							gtk_container_add ((GtkContainer*) _tmp69_, (GtkWidget*) _tmp70_);
1703 							_tmp71_ = _ ("Available applications");
1704 							_tmp72_ = (GtkLabel*) gtk_label_new (_tmp71_);
1705 							g_object_ref_sink (_tmp72_);
1706 							label = _tmp72_;
1707 							_tmp73_ = box;
1708 							_tmp74_ = label;
1709 							gtk_container_add ((GtkContainer*) _tmp73_, (GtkWidget*) _tmp74_);
1710 							_tmp75_ = gtk_list_store_new (3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
1711 							list_store = _tmp75_;
1712 							_tmp76_ = generic_item;
1713 							if (_tmp76_ != NULL) {
1714 								GKeyFile* _tmp77_ = NULL;
1715 								const gchar* _tmp78_ = NULL;
1716 								gint _tmp79_ = 0;
1717 								gchar** _tmp80_ = NULL;
1718 								_tmp77_ = _data9_->kf;
1719 								_tmp78_ = generic_item;
1720 								_tmp80_ = ldefault_apps_get_mime_list (_tmp77_, _tmp78_, "available", &_tmp79_);
1721 								list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
1722 								list = _tmp80_;
1723 								list_length1 = _tmp79_;
1724 								_list_size_ = list_length1;
1725 							} else {
1726 								GKeyFile* _tmp81_ = NULL;
1727 								const gchar* _tmp82_ = NULL;
1728 								gint _tmp83_ = 0;
1729 								gchar** _tmp84_ = NULL;
1730 								_tmp81_ = _data9_->kf;
1731 								_tmp82_ = _data9_->item;
1732 								_tmp84_ = ldefault_apps_get_mime_list (_tmp81_, _tmp82_, "available", &_tmp83_);
1733 								list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
1734 								list = _tmp84_;
1735 								list_length1 = _tmp83_;
1736 								_list_size_ = list_length1;
1737 							}
1738 							{
1739 								gint c = 0;
1740 								c = 0;
1741 								{
1742 									gboolean _tmp85_ = FALSE;
1743 									_tmp85_ = TRUE;
1744 									while (TRUE) {
1745 										gint _tmp87_ = 0;
1746 										gchar** _tmp88_ = NULL;
1747 										gint _tmp88__length1 = 0;
1748 										gchar* item_list = NULL;
1749 										gchar** _tmp89_ = NULL;
1750 										gint _tmp89__length1 = 0;
1751 										gint _tmp90_ = 0;
1752 										const gchar* _tmp91_ = NULL;
1753 										gchar* _tmp92_ = NULL;
1754 										LDefaultAppsComboItemObject* combo_item = NULL;
1755 										const gchar* _tmp93_ = NULL;
1756 										LDefaultAppsComboItemObject* _tmp94_ = NULL;
1757 										GtkListStore* _tmp95_ = NULL;
1758 										GtkTreeIter _tmp96_ = {0};
1759 										GtkListStore* _tmp97_ = NULL;
1760 										GtkTreeIter _tmp98_ = {0};
1761 										LDefaultAppsComboItemObject* _tmp99_ = NULL;
1762 										const gchar* _tmp100_ = NULL;
1763 										const gchar* _tmp101_ = NULL;
1764 										LDefaultAppsComboItemObject* _tmp102_ = NULL;
1765 										const gchar* _tmp103_ = NULL;
1766 										const gchar* _tmp104_ = NULL;
1767 										if (!_tmp85_) {
1768 											gint _tmp86_ = 0;
1769 											_tmp86_ = c;
1770 											c = _tmp86_ + 1;
1771 										}
1772 										_tmp85_ = FALSE;
1773 										_tmp87_ = c;
1774 										_tmp88_ = list;
1775 										_tmp88__length1 = list_length1;
1776 										if (!(_tmp87_ < _tmp88__length1)) {
1777 											break;
1778 										}
1779 										_tmp89_ = list;
1780 										_tmp89__length1 = list_length1;
1781 										_tmp90_ = c;
1782 										_tmp91_ = _tmp89_[_tmp90_];
1783 										_tmp92_ = g_strdup (_tmp91_);
1784 										item_list = _tmp92_;
1785 										_tmp93_ = item_list;
1786 										_tmp94_ = ldefault_apps_combo_item_object_new (_tmp93_);
1787 										combo_item = _tmp94_;
1788 										_tmp95_ = list_store;
1789 										gtk_list_store_append (_tmp95_, &_tmp96_);
1790 										iter = _tmp96_;
1791 										_tmp97_ = list_store;
1792 										_tmp98_ = iter;
1793 										_tmp99_ = combo_item;
1794 										_tmp100_ = ldefault_apps_combo_item_object_get_icon_name (_tmp99_);
1795 										_tmp101_ = _tmp100_;
1796 										_tmp102_ = combo_item;
1797 										_tmp103_ = ldefault_apps_combo_item_object_get_name (_tmp102_);
1798 										_tmp104_ = _tmp103_;
1799 										gtk_list_store_set (_tmp97_, &_tmp98_, 0, _tmp101_, 1, _tmp104_, 2, "gtk-apply", -1);
1800 										_g_object_unref0 (combo_item);
1801 										_g_free0 (item_list);
1802 									}
1803 								}
1804 							}
1805 							_tmp105_ = list_store;
1806 							_tmp106_ = (GtkTreeView*) gtk_tree_view_new_with_model ((GtkTreeModel*) _tmp105_);
1807 							g_object_ref_sink (_tmp106_);
1808 							return_treeview = _tmp106_;
1809 							_tmp107_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
1810 							g_object_ref_sink (_tmp107_);
1811 							renderer_image = _tmp107_;
1812 							_tmp108_ = return_treeview;
1813 							_tmp109_ = renderer_image;
1814 							gtk_tree_view_insert_column_with_attributes (_tmp108_, -1, "Icon", (GtkCellRenderer*) _tmp109_, "icon-name", 0, NULL);
1815 							_tmp110_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
1816 							g_object_ref_sink (_tmp110_);
1817 							renderer = _tmp110_;
1818 							_tmp111_ = return_treeview;
1819 							_tmp112_ = renderer;
1820 							gtk_tree_view_insert_column_with_attributes (_tmp111_, -1, "Name", (GtkCellRenderer*) _tmp112_, "text", 1, NULL);
1821 							_tmp113_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
1822 							g_object_ref_sink (_tmp113_);
1823 							renderer_apply = _tmp113_;
1824 							_tmp114_ = return_treeview;
1825 							_tmp115_ = renderer_apply;
1826 							gtk_tree_view_insert_column_with_attributes (_tmp114_, -1, "", (GtkCellRenderer*) _tmp115_, "icon-name", 2, NULL);
1827 							_tmp116_ = box;
1828 							_tmp117_ = return_treeview;
1829 							gtk_container_add ((GtkContainer*) _tmp116_, (GtkWidget*) _tmp117_);
1830 							_g_object_unref0 (renderer_apply);
1831 							_g_object_unref0 (renderer);
1832 							_g_object_unref0 (renderer_image);
1833 							_g_object_unref0 (return_treeview);
1834 							list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
1835 							_g_object_unref0 (list_store);
1836 							_g_object_unref0 (label);
1837 							_g_object_unref0 (box);
1838 							break;
1839 						}
1840 					}
1841 				} else if (_tmp39_ == ((0 != _tmp38_label3) ? _tmp38_label3 : (_tmp38_label3 = g_quark_from_static_string ("autostart")))) {
1842 					switch (0) {
1843 						default:
1844 						{
1845 							GtkHBox* hbox = NULL;
1846 							GtkHBox* _tmp118_ = NULL;
1847 							GtkVBox* _tmp119_ = NULL;
1848 							GtkHBox* _tmp120_ = NULL;
1849 							GtkCheckButton* check_button = NULL;
1850 							GtkCheckButton* _tmp121_ = NULL;
1851 							GtkCheckButton* _tmp122_ = NULL;
1852 							const gchar* _tmp123_ = NULL;
1853 							gchar* default_text = NULL;
1854 							LDefaultAppsDbusBackend* _tmp124_ = NULL;
1855 							const gchar* _tmp125_ = NULL;
1856 							gchar* _tmp126_ = NULL;
1857 							const gchar* _tmp127_ = NULL;
1858 							GtkCheckButton* _tmp130_ = NULL;
1859 							GtkHBox* _tmp131_ = NULL;
1860 							GtkCheckButton* _tmp132_ = NULL;
1861 							_tmp118_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
1862 							g_object_ref_sink (_tmp118_);
1863 							hbox = _tmp118_;
1864 							_tmp119_ = master_vbox;
1865 							_tmp120_ = hbox;
1866 							gtk_container_add ((GtkContainer*) _tmp119_, (GtkWidget*) _tmp120_);
1867 							_tmp121_ = (GtkCheckButton*) gtk_check_button_new ();
1868 							g_object_ref_sink (_tmp121_);
1869 							check_button = _tmp121_;
1870 							_tmp122_ = check_button;
1871 							_tmp123_ = _ ("Autostart the application ?");
1872 							gtk_button_set_label ((GtkButton*) _tmp122_, _tmp123_);
1873 							_tmp124_ = _data9_->dbus_backend;
1874 							_tmp125_ = _data9_->item;
1875 							_tmp126_ = ldefault_apps_dbus_backend_Get (_tmp124_, _tmp125_, "autostart");
1876 							default_text = _tmp126_;
1877 							_tmp127_ = default_text;
1878 							if (g_strcmp0 (_tmp127_, "true") == 0) {
1879 								GtkCheckButton* _tmp128_ = NULL;
1880 								_tmp128_ = check_button;
1881 								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp128_, TRUE);
1882 							} else {
1883 								GtkCheckButton* _tmp129_ = NULL;
1884 								_tmp129_ = check_button;
1885 								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp129_, FALSE);
1886 							}
1887 							_tmp130_ = check_button;
1888 							g_signal_connect_data ((GtkButton*) _tmp130_, "clicked", (GCallback) _______lambda15__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
1889 							_tmp131_ = hbox;
1890 							_tmp132_ = check_button;
1891 							gtk_container_add ((GtkContainer*) _tmp131_, (GtkWidget*) _tmp132_);
1892 							_g_free0 (default_text);
1893 							_g_object_unref0 (check_button);
1894 							_g_object_unref0 (hbox);
1895 							break;
1896 						}
1897 					}
1898 				} else if (_tmp39_ == ((0 != _tmp38_label4) ? _tmp38_label4 : (_tmp38_label4 = g_quark_from_static_string ("handle_desktop")))) {
1899 					switch (0) {
1900 						default:
1901 						{
1902 							GtkHBox* hbox = NULL;
1903 							GtkHBox* _tmp133_ = NULL;
1904 							GtkVBox* _tmp134_ = NULL;
1905 							GtkHBox* _tmp135_ = NULL;
1906 							GtkCheckButton* check_button = NULL;
1907 							GtkCheckButton* _tmp136_ = NULL;
1908 							GtkCheckButton* _tmp137_ = NULL;
1909 							const gchar* _tmp138_ = NULL;
1910 							gchar* default_text = NULL;
1911 							LDefaultAppsDbusBackend* _tmp139_ = NULL;
1912 							gchar* _tmp140_ = NULL;
1913 							const gchar* _tmp141_ = NULL;
1914 							GtkCheckButton* _tmp144_ = NULL;
1915 							GtkHBox* _tmp145_ = NULL;
1916 							GtkCheckButton* _tmp146_ = NULL;
1917 							_tmp133_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
1918 							g_object_ref_sink (_tmp133_);
1919 							hbox = _tmp133_;
1920 							_tmp134_ = master_vbox;
1921 							_tmp135_ = hbox;
1922 							gtk_container_add ((GtkContainer*) _tmp134_, (GtkWidget*) _tmp135_);
1923 							_tmp136_ = (GtkCheckButton*) gtk_check_button_new ();
1924 							g_object_ref_sink (_tmp136_);
1925 							check_button = _tmp136_;
1926 							_tmp137_ = check_button;
1927 							_tmp138_ = _ ("Handle the desktop with it ?");
1928 							gtk_button_set_label ((GtkButton*) _tmp137_, _tmp138_);
1929 							_tmp139_ = _data9_->dbus_backend;
1930 							_tmp140_ = ldefault_apps_dbus_backend_Get (_tmp139_, "desktop_manager", "command");
1931 							default_text = _tmp140_;
1932 							_tmp141_ = default_text;
1933 							if (g_strcmp0 (_tmp141_, "filemanager") == 0) {
1934 								GtkCheckButton* _tmp142_ = NULL;
1935 								_tmp142_ = check_button;
1936 								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp142_, TRUE);
1937 							} else {
1938 								GtkCheckButton* _tmp143_ = NULL;
1939 								_tmp143_ = check_button;
1940 								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp143_, FALSE);
1941 							}
1942 							_tmp144_ = check_button;
1943 							g_signal_connect_data ((GtkButton*) _tmp144_, "clicked", (GCallback) _______lambda16__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
1944 							_tmp145_ = hbox;
1945 							_tmp146_ = check_button;
1946 							gtk_container_add ((GtkContainer*) _tmp145_, (GtkWidget*) _tmp146_);
1947 							_g_free0 (default_text);
1948 							_g_object_unref0 (check_button);
1949 							_g_object_unref0 (hbox);
1950 							break;
1951 						}
1952 					}
1953 				} else if (_tmp39_ == ((0 != _tmp38_label5) ? _tmp38_label5 : (_tmp38_label5 = g_quark_from_static_string ("debian_default")))) {
1954 					switch (0) {
1955 						default:
1956 						{
1957 							GtkHBox* box = NULL;
1958 							GtkHBox* _tmp147_ = NULL;
1959 							GtkVBox* _tmp148_ = NULL;
1960 							GtkHBox* _tmp149_ = NULL;
1961 							GtkLabel* label = NULL;
1962 							const gchar* _tmp150_ = NULL;
1963 							GtkLabel* _tmp151_ = NULL;
1964 							GtkHBox* _tmp152_ = NULL;
1965 							GtkLabel* _tmp153_ = NULL;
1966 							GtkButton* button = NULL;
1967 							const gchar* _tmp154_ = NULL;
1968 							GtkButton* _tmp155_ = NULL;
1969 							GtkButton* _tmp156_ = NULL;
1970 							GtkHBox* _tmp157_ = NULL;
1971 							GtkButton* _tmp158_ = NULL;
1972 							_tmp147_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
1973 							g_object_ref_sink (_tmp147_);
1974 							box = _tmp147_;
1975 							_tmp148_ = master_vbox;
1976 							_tmp149_ = box;
1977 							gtk_container_add ((GtkContainer*) _tmp148_, (GtkWidget*) _tmp149_);
1978 							_tmp150_ = _ ("Set debian default programs");
1979 							_tmp151_ = (GtkLabel*) gtk_label_new (_tmp150_);
1980 							g_object_ref_sink (_tmp151_);
1981 							label = _tmp151_;
1982 							_tmp152_ = box;
1983 							_tmp153_ = label;
1984 							gtk_container_add ((GtkContainer*) _tmp152_, (GtkWidget*) _tmp153_);
1985 							_tmp154_ = _ ("Apply");
1986 							_tmp155_ = (GtkButton*) gtk_button_new_with_label (_tmp154_);
1987 							g_object_ref_sink (_tmp155_);
1988 							button = _tmp155_;
1989 							_tmp156_ = button;
1990 							g_signal_connect_data (_tmp156_, "clicked", (GCallback) _______lambda17__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
1991 							_tmp157_ = box;
1992 							_tmp158_ = button;
1993 							gtk_container_add ((GtkContainer*) _tmp157_, (GtkWidget*) _tmp158_);
1994 							_g_object_unref0 (button);
1995 							_g_object_unref0 (label);
1996 							_g_object_unref0 (box);
1997 							break;
1998 						}
1999 					}
2000 				} else {
2001 					switch (0) {
2002 						default:
2003 						{
2004 							gchar** _tmp159_ = NULL;
2005 							gint _tmp159__length1 = 0;
2006 							gint _tmp160_ = 0;
2007 							const gchar* _tmp161_ = NULL;
2008 							_tmp159_ = _data9_->more_list;
2009 							_tmp159__length1 = _data9_->more_list_length1;
2010 							_tmp160_ = _data10_->a;
2011 							_tmp161_ = _tmp159_[_tmp160_];
2012 							if (_tmp161_ != NULL) {
2013 								Block12Data* _data12_;
2014 								GtkHBox* hbox = NULL;
2015 								GtkHBox* _tmp162_ = NULL;
2016 								GtkVBox* _tmp163_ = NULL;
2017 								GtkHBox* _tmp164_ = NULL;
2018 								GtkLabel* label = NULL;
2019 								gchar** _tmp165_ = NULL;
2020 								gint _tmp165__length1 = 0;
2021 								gint _tmp166_ = 0;
2022 								const gchar* _tmp167_ = NULL;
2023 								GtkLabel* _tmp168_ = NULL;
2024 								GtkHBox* _tmp169_ = NULL;
2025 								GtkLabel* _tmp170_ = NULL;
2026 								GtkEntry* _tmp171_ = NULL;
2027 								gchar* default_text = NULL;
2028 								LDefaultAppsDbusBackend* _tmp172_ = NULL;
2029 								const gchar* _tmp173_ = NULL;
2030 								gchar** _tmp174_ = NULL;
2031 								gint _tmp174__length1 = 0;
2032 								gint _tmp175_ = 0;
2033 								const gchar* _tmp176_ = NULL;
2034 								gchar* _tmp177_ = NULL;
2035 								GtkEntry* _tmp178_ = NULL;
2036 								const gchar* _tmp179_ = NULL;
2037 								GtkEntry* _tmp180_ = NULL;
2038 								GtkEntry* _tmp181_ = NULL;
2039 								GtkHBox* _tmp182_ = NULL;
2040 								GtkEntry* _tmp183_ = NULL;
2041 								_data12_ = g_slice_new0 (Block12Data);
2042 								_data12_->_ref_count_ = 1;
2043 								_data12_->_data10_ = block10_data_ref (_data10_);
2044 								_tmp162_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
2045 								g_object_ref_sink (_tmp162_);
2046 								hbox = _tmp162_;
2047 								_tmp163_ = master_vbox;
2048 								_tmp164_ = hbox;
2049 								gtk_container_add ((GtkContainer*) _tmp163_, (GtkWidget*) _tmp164_);
2050 								_tmp165_ = _data9_->more_list;
2051 								_tmp165__length1 = _data9_->more_list_length1;
2052 								_tmp166_ = _data10_->a;
2053 								_tmp167_ = _tmp165_[_tmp166_];
2054 								_tmp168_ = (GtkLabel*) gtk_label_new (_tmp167_);
2055 								g_object_ref_sink (_tmp168_);
2056 								label = _tmp168_;
2057 								_tmp169_ = hbox;
2058 								_tmp170_ = label;
2059 								gtk_container_add ((GtkContainer*) _tmp169_, (GtkWidget*) _tmp170_);
2060 								_tmp171_ = (GtkEntry*) gtk_entry_new ();
2061 								g_object_ref_sink (_tmp171_);
2062 								_data12_->entry = _tmp171_;
2063 								_tmp172_ = _data9_->dbus_backend;
2064 								_tmp173_ = _data9_->item;
2065 								_tmp174_ = _data9_->more_list;
2066 								_tmp174__length1 = _data9_->more_list_length1;
2067 								_tmp175_ = _data10_->a;
2068 								_tmp176_ = _tmp174_[_tmp175_];
2069 								_tmp177_ = ldefault_apps_dbus_backend_Get (_tmp172_, _tmp173_, _tmp176_);
2070 								default_text = _tmp177_;
2071 								_tmp178_ = _data12_->entry;
2072 								_tmp179_ = default_text;
2073 								gtk_entry_set_text (_tmp178_, _tmp179_);
2074 								_tmp180_ = _data12_->entry;
2075 								g_signal_connect_data ((GtkEditable*) _tmp180_, "changed", (GCallback) ________lambda18__gtk_editable_changed, block12_data_ref (_data12_), (GClosureNotify) block12_data_unref, 0);
2076 								_tmp181_ = _data12_->entry;
2077 								gtk_widget_show_all ((GtkWidget*) _tmp181_);
2078 								_tmp182_ = hbox;
2079 								_tmp183_ = _data12_->entry;
2080 								gtk_container_add ((GtkContainer*) _tmp182_, (GtkWidget*) _tmp183_);
2081 								_g_free0 (default_text);
2082 								_g_object_unref0 (label);
2083 								_g_object_unref0 (hbox);
2084 								block12_data_unref (_data12_);
2085 								_data12_ = NULL;
2086 							}
2087 							break;
2088 						}
2089 					}
2090 				}
2091 			}
2092 		}
2093 		block10_data_unref (_data10_);
2094 		_data10_ = NULL;
2095 	}
2096 	_tmp184_ = window;
2097 	gtk_widget_show_all ((GtkWidget*) _tmp184_);
2098 	_g_object_unref0 (help_message);
2099 	_g_object_unref0 (master_vbox);
2100 	_g_object_unref0 (more_view_port);
2101 	_g_object_unref0 (more_scrolled);
2102 	_g_object_unref0 (window);
2103 	block9_data_unref (_data9_);
2104 	_data9_ = NULL;
2105 }
2106 
2107 
ldefault_apps_combo_item_object_construct(GType object_type,const gchar * item)2108 LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_construct (GType object_type, const gchar* item) {
2109 	LDefaultAppsComboItemObject * self = NULL;
2110 	const gchar* _tmp0_ = NULL;
2111 	gchar** _tmp1_ = NULL;
2112 	gchar** _tmp2_ = NULL;
2113 	gchar** _tmp3_ = NULL;
2114 	gint _tmp3__length1 = 0;
2115 	const gchar* _tmp4_ = NULL;
2116 	gchar** _tmp5_ = NULL;
2117 	gint _tmp5__length1 = 0;
2118 	const gchar* _tmp6_ = NULL;
2119 	gchar** _tmp7_ = NULL;
2120 	gint _tmp7__length1 = 0;
2121 	const gchar* _tmp8_ = NULL;
2122 	GtkImage* _tmp9_ = NULL;
2123 	GtkImage* _tmp10_ = NULL;
2124 	gchar** _tmp11_ = NULL;
2125 	gint _tmp11__length1 = 0;
2126 	const gchar* _tmp12_ = NULL;
2127 	gchar** _tmp13_ = NULL;
2128 	gint _tmp13__length1 = 0;
2129 	const gchar* _tmp14_ = NULL;
2130 	gchar** _tmp15_ = NULL;
2131 	gint _tmp15__length1 = 0;
2132 	const gchar* _tmp16_ = NULL;
2133 	g_return_val_if_fail (item != NULL, NULL);
2134 	self = (LDefaultAppsComboItemObject*) g_object_new (object_type, NULL);
2135 	_tmp0_ = item;
2136 	_tmp2_ = _tmp1_ = g_strsplit_set (_tmp0_, ",", 0);
2137 	self->tmp_item_array = (_vala_array_free (self->tmp_item_array, self->tmp_item_array_length1, (GDestroyNotify) g_free), NULL);
2138 	self->tmp_item_array = _tmp2_;
2139 	self->tmp_item_array_length1 = _vala_array_length (_tmp1_);
2140 	_tmp3_ = self->tmp_item_array;
2141 	_tmp3__length1 = self->tmp_item_array_length1;
2142 	_tmp4_ = _tmp3_[0];
2143 	ldefault_apps_combo_item_object_set_name (self, _tmp4_);
2144 	_tmp5_ = self->tmp_item_array;
2145 	_tmp5__length1 = self->tmp_item_array_length1;
2146 	_tmp6_ = _tmp5_[1];
2147 	ldefault_apps_combo_item_object_set_exec (self, _tmp6_);
2148 	_tmp7_ = self->tmp_item_array;
2149 	_tmp7__length1 = self->tmp_item_array_length1;
2150 	_tmp8_ = _tmp7_[2];
2151 	_tmp9_ = ldefault_apps_combo_item_object_create_image (self, _tmp8_);
2152 	_tmp10_ = _tmp9_;
2153 	ldefault_apps_combo_item_object_set_icon (self, _tmp10_);
2154 	_g_object_unref0 (_tmp10_);
2155 	_tmp11_ = self->tmp_item_array;
2156 	_tmp11__length1 = self->tmp_item_array_length1;
2157 	_tmp12_ = _tmp11_[2];
2158 	ldefault_apps_combo_item_object_set_icon_name (self, _tmp12_);
2159 	_tmp13_ = self->tmp_item_array;
2160 	_tmp13__length1 = self->tmp_item_array_length1;
2161 	_tmp14_ = _tmp13_[3];
2162 	ldefault_apps_combo_item_object_set_desktop_path (self, _tmp14_);
2163 	_tmp15_ = self->tmp_item_array;
2164 	_tmp15__length1 = self->tmp_item_array_length1;
2165 	_tmp16_ = _tmp15_[4];
2166 	ldefault_apps_combo_item_object_set_install_package (self, _tmp16_);
2167 	return self;
2168 }
2169 
2170 
ldefault_apps_combo_item_object_new(const gchar * item)2171 LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_new (const gchar* item) {
2172 	return ldefault_apps_combo_item_object_construct (LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, item);
2173 }
2174 
2175 
ldefault_apps_combo_item_object_create_image(LDefaultAppsComboItemObject * self,const gchar * item_image_string)2176 GtkImage* ldefault_apps_combo_item_object_create_image (LDefaultAppsComboItemObject* self, const gchar* item_image_string) {
2177 	GtkImage* result = NULL;
2178 	GtkImage* image = NULL;
2179 	GtkImage* _tmp0_ = NULL;
2180 	const gchar* _tmp1_ = NULL;
2181 	gchar* _tmp2_ = NULL;
2182 	gchar* _tmp3_ = NULL;
2183 	gboolean _tmp4_ = FALSE;
2184 	g_return_val_if_fail (self != NULL, NULL);
2185 	g_return_val_if_fail (item_image_string != NULL, NULL);
2186 	_tmp0_ = (GtkImage*) gtk_image_new ();
2187 	g_object_ref_sink (_tmp0_);
2188 	image = _tmp0_;
2189 	_tmp1_ = item_image_string;
2190 	_tmp2_ = string_slice (_tmp1_, (glong) 0, (glong) 1);
2191 	_tmp3_ = _tmp2_;
2192 	_tmp4_ = g_strcmp0 (_tmp3_, "/") == 0;
2193 	_g_free0 (_tmp3_);
2194 	if (_tmp4_) {
2195 		GtkImage* _tmp5_ = NULL;
2196 		const gchar* _tmp6_ = NULL;
2197 		_tmp5_ = image;
2198 		_tmp6_ = item_image_string;
2199 		gtk_image_set_from_file (_tmp5_, _tmp6_);
2200 	} else {
2201 		GtkImage* _tmp7_ = NULL;
2202 		const gchar* _tmp8_ = NULL;
2203 		_tmp7_ = image;
2204 		_tmp8_ = item_image_string;
2205 		gtk_image_set_from_icon_name (_tmp7_, _tmp8_, GTK_ICON_SIZE_MENU);
2206 	}
2207 	result = image;
2208 	return result;
2209 }
2210 
2211 
ldefault_apps_combo_item_object_get_name(LDefaultAppsComboItemObject * self)2212 const gchar* ldefault_apps_combo_item_object_get_name (LDefaultAppsComboItemObject* self) {
2213 	const gchar* result;
2214 	const gchar* _tmp0_ = NULL;
2215 	g_return_val_if_fail (self != NULL, NULL);
2216 	_tmp0_ = self->priv->_name;
2217 	result = _tmp0_;
2218 	return result;
2219 }
2220 
2221 
ldefault_apps_combo_item_object_set_name(LDefaultAppsComboItemObject * self,const gchar * value)2222 void ldefault_apps_combo_item_object_set_name (LDefaultAppsComboItemObject* self, const gchar* value) {
2223 	const gchar* _tmp0_ = NULL;
2224 	gchar* _tmp1_ = NULL;
2225 	g_return_if_fail (self != NULL);
2226 	_tmp0_ = value;
2227 	_tmp1_ = g_strdup (_tmp0_);
2228 	_g_free0 (self->priv->_name);
2229 	self->priv->_name = _tmp1_;
2230 	g_object_notify ((GObject *) self, "name");
2231 }
2232 
2233 
ldefault_apps_combo_item_object_get_exec(LDefaultAppsComboItemObject * self)2234 const gchar* ldefault_apps_combo_item_object_get_exec (LDefaultAppsComboItemObject* self) {
2235 	const gchar* result;
2236 	const gchar* _tmp0_ = NULL;
2237 	g_return_val_if_fail (self != NULL, NULL);
2238 	_tmp0_ = self->priv->_exec;
2239 	result = _tmp0_;
2240 	return result;
2241 }
2242 
2243 
ldefault_apps_combo_item_object_set_exec(LDefaultAppsComboItemObject * self,const gchar * value)2244 void ldefault_apps_combo_item_object_set_exec (LDefaultAppsComboItemObject* self, const gchar* value) {
2245 	const gchar* _tmp0_ = NULL;
2246 	gchar* _tmp1_ = NULL;
2247 	g_return_if_fail (self != NULL);
2248 	_tmp0_ = value;
2249 	_tmp1_ = g_strdup (_tmp0_);
2250 	_g_free0 (self->priv->_exec);
2251 	self->priv->_exec = _tmp1_;
2252 	g_object_notify ((GObject *) self, "exec");
2253 }
2254 
2255 
ldefault_apps_combo_item_object_get_icon(LDefaultAppsComboItemObject * self)2256 GtkImage* ldefault_apps_combo_item_object_get_icon (LDefaultAppsComboItemObject* self) {
2257 	GtkImage* result;
2258 	GtkImage* _tmp0_ = NULL;
2259 	g_return_val_if_fail (self != NULL, NULL);
2260 	_tmp0_ = self->priv->_icon;
2261 	result = _tmp0_;
2262 	return result;
2263 }
2264 
2265 
ldefault_apps_combo_item_object_set_icon(LDefaultAppsComboItemObject * self,GtkImage * value)2266 void ldefault_apps_combo_item_object_set_icon (LDefaultAppsComboItemObject* self, GtkImage* value) {
2267 	GtkImage* _tmp0_ = NULL;
2268 	GtkImage* _tmp1_ = NULL;
2269 	g_return_if_fail (self != NULL);
2270 	_tmp0_ = value;
2271 	_tmp1_ = _g_object_ref0 (_tmp0_);
2272 	_g_object_unref0 (self->priv->_icon);
2273 	self->priv->_icon = _tmp1_;
2274 	g_object_notify ((GObject *) self, "icon");
2275 }
2276 
2277 
ldefault_apps_combo_item_object_get_icon_name(LDefaultAppsComboItemObject * self)2278 const gchar* ldefault_apps_combo_item_object_get_icon_name (LDefaultAppsComboItemObject* self) {
2279 	const gchar* result;
2280 	const gchar* _tmp0_ = NULL;
2281 	g_return_val_if_fail (self != NULL, NULL);
2282 	_tmp0_ = self->priv->_icon_name;
2283 	result = _tmp0_;
2284 	return result;
2285 }
2286 
2287 
ldefault_apps_combo_item_object_set_icon_name(LDefaultAppsComboItemObject * self,const gchar * value)2288 void ldefault_apps_combo_item_object_set_icon_name (LDefaultAppsComboItemObject* self, const gchar* value) {
2289 	const gchar* _tmp0_ = NULL;
2290 	gchar* _tmp1_ = NULL;
2291 	g_return_if_fail (self != NULL);
2292 	_tmp0_ = value;
2293 	_tmp1_ = g_strdup (_tmp0_);
2294 	_g_free0 (self->priv->_icon_name);
2295 	self->priv->_icon_name = _tmp1_;
2296 	g_object_notify ((GObject *) self, "icon-name");
2297 }
2298 
2299 
ldefault_apps_combo_item_object_get_desktop_path(LDefaultAppsComboItemObject * self)2300 const gchar* ldefault_apps_combo_item_object_get_desktop_path (LDefaultAppsComboItemObject* self) {
2301 	const gchar* result;
2302 	const gchar* _tmp0_ = NULL;
2303 	g_return_val_if_fail (self != NULL, NULL);
2304 	_tmp0_ = self->priv->_desktop_path;
2305 	result = _tmp0_;
2306 	return result;
2307 }
2308 
2309 
ldefault_apps_combo_item_object_set_desktop_path(LDefaultAppsComboItemObject * self,const gchar * value)2310 void ldefault_apps_combo_item_object_set_desktop_path (LDefaultAppsComboItemObject* self, const gchar* value) {
2311 	const gchar* _tmp0_ = NULL;
2312 	gchar* _tmp1_ = NULL;
2313 	g_return_if_fail (self != NULL);
2314 	_tmp0_ = value;
2315 	_tmp1_ = g_strdup (_tmp0_);
2316 	_g_free0 (self->priv->_desktop_path);
2317 	self->priv->_desktop_path = _tmp1_;
2318 	g_object_notify ((GObject *) self, "desktop-path");
2319 }
2320 
2321 
ldefault_apps_combo_item_object_get_install_package(LDefaultAppsComboItemObject * self)2322 const gchar* ldefault_apps_combo_item_object_get_install_package (LDefaultAppsComboItemObject* self) {
2323 	const gchar* result;
2324 	const gchar* _tmp0_ = NULL;
2325 	g_return_val_if_fail (self != NULL, NULL);
2326 	_tmp0_ = self->priv->_install_package;
2327 	result = _tmp0_;
2328 	return result;
2329 }
2330 
2331 
ldefault_apps_combo_item_object_set_install_package(LDefaultAppsComboItemObject * self,const gchar * value)2332 void ldefault_apps_combo_item_object_set_install_package (LDefaultAppsComboItemObject* self, const gchar* value) {
2333 	const gchar* _tmp0_ = NULL;
2334 	gchar* _tmp1_ = NULL;
2335 	g_return_if_fail (self != NULL);
2336 	_tmp0_ = value;
2337 	_tmp1_ = g_strdup (_tmp0_);
2338 	_g_free0 (self->priv->_install_package);
2339 	self->priv->_install_package = _tmp1_;
2340 	g_object_notify ((GObject *) self, "install-package");
2341 }
2342 
2343 
ldefault_apps_combo_item_object_class_init(LDefaultAppsComboItemObjectClass * klass)2344 static void ldefault_apps_combo_item_object_class_init (LDefaultAppsComboItemObjectClass * klass) {
2345 	ldefault_apps_combo_item_object_parent_class = g_type_class_peek_parent (klass);
2346 	g_type_class_add_private (klass, sizeof (LDefaultAppsComboItemObjectPrivate));
2347 	G_OBJECT_CLASS (klass)->get_property = _vala_ldefault_apps_combo_item_object_get_property;
2348 	G_OBJECT_CLASS (klass)->set_property = _vala_ldefault_apps_combo_item_object_set_property;
2349 	G_OBJECT_CLASS (klass)->finalize = ldefault_apps_combo_item_object_finalize;
2350 	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
2351 	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC, g_param_spec_string ("exec", "exec", "exec", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
2352 	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON, g_param_spec_object ("icon", "icon", "icon", GTK_TYPE_IMAGE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
2353 	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
2354 	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH, g_param_spec_string ("desktop-path", "desktop-path", "desktop-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
2355 	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE, g_param_spec_string ("install-package", "install-package", "install-package", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
2356 }
2357 
2358 
ldefault_apps_combo_item_object_instance_init(LDefaultAppsComboItemObject * self)2359 static void ldefault_apps_combo_item_object_instance_init (LDefaultAppsComboItemObject * self) {
2360 	self->priv = LDEFAULT_APPS_COMBO_ITEM_OBJECT_GET_PRIVATE (self);
2361 }
2362 
2363 
ldefault_apps_combo_item_object_finalize(GObject * obj)2364 static void ldefault_apps_combo_item_object_finalize (GObject* obj) {
2365 	LDefaultAppsComboItemObject * self;
2366 	self = G_TYPE_CHECK_INSTANCE_CAST (obj, LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject);
2367 	_g_free0 (self->priv->_name);
2368 	_g_free0 (self->priv->_exec);
2369 	_g_object_unref0 (self->priv->_icon);
2370 	_g_free0 (self->priv->_icon_name);
2371 	_g_free0 (self->priv->_desktop_path);
2372 	_g_free0 (self->priv->_install_package);
2373 	self->tmp_item_array = (_vala_array_free (self->tmp_item_array, self->tmp_item_array_length1, (GDestroyNotify) g_free), NULL);
2374 	G_OBJECT_CLASS (ldefault_apps_combo_item_object_parent_class)->finalize (obj);
2375 }
2376 
2377 
ldefault_apps_combo_item_object_get_type(void)2378 GType ldefault_apps_combo_item_object_get_type (void) {
2379 	static volatile gsize ldefault_apps_combo_item_object_type_id__volatile = 0;
2380 	if (g_once_init_enter (&ldefault_apps_combo_item_object_type_id__volatile)) {
2381 		static const GTypeInfo g_define_type_info = { sizeof (LDefaultAppsComboItemObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) ldefault_apps_combo_item_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LDefaultAppsComboItemObject), 0, (GInstanceInitFunc) ldefault_apps_combo_item_object_instance_init, NULL };
2382 		GType ldefault_apps_combo_item_object_type_id;
2383 		ldefault_apps_combo_item_object_type_id = g_type_register_static (G_TYPE_OBJECT, "LDefaultAppsComboItemObject", &g_define_type_info, 0);
2384 		g_once_init_leave (&ldefault_apps_combo_item_object_type_id__volatile, ldefault_apps_combo_item_object_type_id);
2385 	}
2386 	return ldefault_apps_combo_item_object_type_id__volatile;
2387 }
2388 
2389 
_vala_ldefault_apps_combo_item_object_get_property(GObject * object,guint property_id,GValue * value,GParamSpec * pspec)2390 static void _vala_ldefault_apps_combo_item_object_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
2391 	LDefaultAppsComboItemObject * self;
2392 	self = G_TYPE_CHECK_INSTANCE_CAST (object, LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject);
2393 	switch (property_id) {
2394 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME:
2395 		g_value_set_string (value, ldefault_apps_combo_item_object_get_name (self));
2396 		break;
2397 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC:
2398 		g_value_set_string (value, ldefault_apps_combo_item_object_get_exec (self));
2399 		break;
2400 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON:
2401 		g_value_set_object (value, ldefault_apps_combo_item_object_get_icon (self));
2402 		break;
2403 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME:
2404 		g_value_set_string (value, ldefault_apps_combo_item_object_get_icon_name (self));
2405 		break;
2406 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH:
2407 		g_value_set_string (value, ldefault_apps_combo_item_object_get_desktop_path (self));
2408 		break;
2409 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE:
2410 		g_value_set_string (value, ldefault_apps_combo_item_object_get_install_package (self));
2411 		break;
2412 		default:
2413 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
2414 		break;
2415 	}
2416 }
2417 
2418 
_vala_ldefault_apps_combo_item_object_set_property(GObject * object,guint property_id,const GValue * value,GParamSpec * pspec)2419 static void _vala_ldefault_apps_combo_item_object_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
2420 	LDefaultAppsComboItemObject * self;
2421 	self = G_TYPE_CHECK_INSTANCE_CAST (object, LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject);
2422 	switch (property_id) {
2423 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME:
2424 		ldefault_apps_combo_item_object_set_name (self, g_value_get_string (value));
2425 		break;
2426 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC:
2427 		ldefault_apps_combo_item_object_set_exec (self, g_value_get_string (value));
2428 		break;
2429 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON:
2430 		ldefault_apps_combo_item_object_set_icon (self, g_value_get_object (value));
2431 		break;
2432 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME:
2433 		ldefault_apps_combo_item_object_set_icon_name (self, g_value_get_string (value));
2434 		break;
2435 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH:
2436 		ldefault_apps_combo_item_object_set_desktop_path (self, g_value_get_string (value));
2437 		break;
2438 		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE:
2439 		ldefault_apps_combo_item_object_set_install_package (self, g_value_get_string (value));
2440 		break;
2441 		default:
2442 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
2443 		break;
2444 	}
2445 }
2446 
2447 
block13_data_ref(Block13Data * _data13_)2448 static Block13Data* block13_data_ref (Block13Data* _data13_) {
2449 	g_atomic_int_inc (&_data13_->_ref_count_);
2450 	return _data13_;
2451 }
2452 
2453 
block13_data_unref(void * _userdata_)2454 static void block13_data_unref (void * _userdata_) {
2455 	Block13Data* _data13_;
2456 	_data13_ = (Block13Data*) _userdata_;
2457 	if (g_atomic_int_dec_and_test (&_data13_->_ref_count_)) {
2458 		_g_object_unref0 (_data13_->list_store);
2459 		_g_object_unref0 (_data13_->return_combobox);
2460 		_g_object_unref0 (_data13_->dbus_backend);
2461 		_g_key_file_unref0 (_data13_->kf);
2462 		_g_free0 (_data13_->combobox_list_name);
2463 		g_slice_free (Block13Data, _data13_);
2464 	}
2465 }
2466 
2467 
__lambda19_(Block13Data * _data13_)2468 static void __lambda19_ (Block13Data* _data13_) {
2469 	GValue val1 = {0};
2470 	GValue val2 = {0};
2471 	GtkComboBox* _tmp0_ = NULL;
2472 	GtkTreeIter _tmp1_ = {0};
2473 	GtkListStore* _tmp2_ = NULL;
2474 	GtkTreeIter _tmp3_ = {0};
2475 	GValue _tmp4_ = {0};
2476 	GtkListStore* _tmp5_ = NULL;
2477 	GtkTreeIter _tmp6_ = {0};
2478 	GValue _tmp7_ = {0};
2479 	GValue _tmp8_ = {0};
2480 	GValue _tmp9_ = {0};
2481 	const gchar* _tmp10_ = NULL;
2482 	LDefaultAppsDbusBackend* _tmp17_ = NULL;
2483 	GKeyFile* _tmp18_ = NULL;
2484 	const gchar* _tmp19_ = NULL;
2485 	const gchar* _tmp20_ = NULL;
2486 	_tmp0_ = _data13_->return_combobox;
2487 	gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
2488 	_data13_->iter = _tmp1_;
2489 	_tmp2_ = _data13_->list_store;
2490 	_tmp3_ = _data13_->iter;
2491 	gtk_tree_model_get_value ((GtkTreeModel*) _tmp2_, &_tmp3_, 2, &_tmp4_);
2492 	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
2493 	val1 = _tmp4_;
2494 	_tmp5_ = _data13_->list_store;
2495 	_tmp6_ = _data13_->iter;
2496 	gtk_tree_model_get_value ((GtkTreeModel*) _tmp5_, &_tmp6_, 3, &_tmp7_);
2497 	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
2498 	val2 = _tmp7_;
2499 	_tmp8_ = val1;
2500 	_tmp9_ = val2;
2501 	g_message ("combobox.vala:515: Selection: %d, %s\n", g_value_get_int (&_tmp8_), g_value_get_string (&_tmp9_));
2502 	_tmp10_ = g_value_get_string (&val2);
2503 	if (_tmp10_ != NULL) {
2504 		LDefaultAppsDbusBackend* _tmp11_ = NULL;
2505 		const gchar* _tmp12_ = NULL;
2506 		const gchar* _tmp13_ = NULL;
2507 		const gchar* _tmp14_ = NULL;
2508 		GValue _tmp15_ = {0};
2509 		GValue _tmp16_ = {0};
2510 		_tmp11_ = _data13_->dbus_backend;
2511 		_tmp12_ = _data13_->combobox_list_name;
2512 		_tmp13_ = g_value_get_string (&val2);
2513 		ldefault_apps_dbus_backend_Set (_tmp11_, _tmp12_, "command", _tmp13_);
2514 		_tmp14_ = _data13_->combobox_list_name;
2515 		_tmp15_ = val1;
2516 		_tmp16_ = val2;
2517 		g_message ("combobox.vala:520: Setting %s: %d, %s\n", _tmp14_, g_value_get_int (&_tmp15_), g_value_get_string (&_tmp16_));
2518 	}
2519 	_tmp17_ = _data13_->dbus_backend;
2520 	_tmp18_ = _data13_->kf;
2521 	_tmp19_ = _data13_->combobox_list_name;
2522 	_tmp20_ = g_value_get_string (&val2);
2523 	ldefault_apps_create_mime_associate_window (_tmp17_, _tmp18_, _tmp19_, _tmp20_);
2524 	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
2525 	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
2526 }
2527 
2528 
___lambda19__gtk_combo_box_changed(GtkComboBox * _sender,gpointer self)2529 static void ___lambda19__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
2530 	__lambda19_ (self);
2531 }
2532 
2533 
__lambda20_(void)2534 static gboolean __lambda20_ (void) {
2535 	gboolean result = FALSE;
2536 	result = TRUE;
2537 	return result;
2538 }
2539 
2540 
___lambda20__gtk_widget_scroll_event(GtkWidget * _sender,GdkEventScroll * event,gpointer self)2541 static gboolean ___lambda20__gtk_widget_scroll_event (GtkWidget* _sender, GdkEventScroll* event, gpointer self) {
2542 	gboolean result;
2543 	result = __lambda20_ ();
2544 	return result;
2545 }
2546 
2547 
ldefault_apps_init_combobox(GtkBuilder * builder,LDefaultAppsDbusBackend * dbus_backend,GKeyFile * kf,const gchar * combobox_name,const gchar * combobox_list_name,const gchar * by_default,const gchar * generic_item)2548 GtkComboBox* ldefault_apps_init_combobox (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* combobox_name, const gchar* combobox_list_name, const gchar* by_default, const gchar* generic_item) {
2549 	GtkComboBox* result = NULL;
2550 	Block13Data* _data13_;
2551 	LDefaultAppsDbusBackend* _tmp0_ = NULL;
2552 	LDefaultAppsDbusBackend* _tmp1_ = NULL;
2553 	GKeyFile* _tmp2_ = NULL;
2554 	GKeyFile* _tmp3_ = NULL;
2555 	const gchar* _tmp4_ = NULL;
2556 	gchar* _tmp5_ = NULL;
2557 	GtkBuilder* _tmp6_ = NULL;
2558 	const gchar* _tmp7_ = NULL;
2559 	GObject* _tmp8_ = NULL;
2560 	GtkComboBox* _tmp9_ = NULL;
2561 	GtkListStore* _tmp10_ = NULL;
2562 	gint default_index = 0;
2563 	gboolean default_set = FALSE;
2564 	gchar** combobox_list = NULL;
2565 	gint combobox_list_length1 = 0;
2566 	gint _combobox_list_size_ = 0;
2567 	const gchar* _tmp11_ = NULL;
2568 	GtkListStore* _tmp20_ = NULL;
2569 	GtkTreeIter _tmp21_ = {0};
2570 	GtkListStore* _tmp22_ = NULL;
2571 	GtkTreeIter _tmp23_ = {0};
2572 	const gchar* _tmp24_ = NULL;
2573 	const gchar* _tmp54_ = NULL;
2574 	const gchar* _tmp55_ = NULL;
2575 	gboolean _tmp56_ = FALSE;
2576 	GtkComboBox* _tmp68_ = NULL;
2577 	GtkListStore* _tmp69_ = NULL;
2578 	GtkCellRendererPixbuf* renderer_image = NULL;
2579 	GtkCellRendererPixbuf* _tmp70_ = NULL;
2580 	GtkComboBox* _tmp71_ = NULL;
2581 	GtkCellRendererPixbuf* _tmp72_ = NULL;
2582 	GtkComboBox* _tmp73_ = NULL;
2583 	GtkCellRendererPixbuf* _tmp74_ = NULL;
2584 	GtkCellRendererText* renderer = NULL;
2585 	GtkCellRendererText* _tmp75_ = NULL;
2586 	GtkComboBox* _tmp76_ = NULL;
2587 	GtkCellRendererText* _tmp77_ = NULL;
2588 	GtkComboBox* _tmp78_ = NULL;
2589 	GtkCellRendererText* _tmp79_ = NULL;
2590 	GtkComboBox* _tmp80_ = NULL;
2591 	gint _tmp81_ = 0;
2592 	GtkComboBox* _tmp94_ = NULL;
2593 	GtkComboBox* _tmp95_ = NULL;
2594 	GtkComboBox* _tmp96_ = NULL;
2595 	GtkComboBox* _tmp97_ = NULL;
2596 	g_return_val_if_fail (builder != NULL, NULL);
2597 	g_return_val_if_fail (dbus_backend != NULL, NULL);
2598 	g_return_val_if_fail (kf != NULL, NULL);
2599 	g_return_val_if_fail (combobox_name != NULL, NULL);
2600 	g_return_val_if_fail (combobox_list_name != NULL, NULL);
2601 	g_return_val_if_fail (by_default != NULL, NULL);
2602 	_data13_ = g_slice_new0 (Block13Data);
2603 	_data13_->_ref_count_ = 1;
2604 	_tmp0_ = dbus_backend;
2605 	_tmp1_ = _g_object_ref0 (_tmp0_);
2606 	_g_object_unref0 (_data13_->dbus_backend);
2607 	_data13_->dbus_backend = _tmp1_;
2608 	_tmp2_ = kf;
2609 	_tmp3_ = _g_key_file_ref0 (_tmp2_);
2610 	_g_key_file_unref0 (_data13_->kf);
2611 	_data13_->kf = _tmp3_;
2612 	_tmp4_ = combobox_list_name;
2613 	_tmp5_ = g_strdup (_tmp4_);
2614 	_g_free0 (_data13_->combobox_list_name);
2615 	_data13_->combobox_list_name = _tmp5_;
2616 	_tmp6_ = builder;
2617 	_tmp7_ = combobox_name;
2618 	_tmp8_ = gtk_builder_get_object (_tmp6_, _tmp7_);
2619 	_tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, GTK_TYPE_COMBO_BOX) ? ((GtkComboBox*) _tmp8_) : NULL);
2620 	_data13_->return_combobox = _tmp9_;
2621 	_tmp10_ = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING);
2622 	_data13_->list_store = _tmp10_;
2623 	default_index = -1;
2624 	default_set = FALSE;
2625 	_tmp11_ = generic_item;
2626 	if (_tmp11_ != NULL) {
2627 		GKeyFile* _tmp12_ = NULL;
2628 		const gchar* _tmp13_ = NULL;
2629 		gint _tmp14_ = 0;
2630 		gchar** _tmp15_ = NULL;
2631 		_tmp12_ = _data13_->kf;
2632 		_tmp13_ = generic_item;
2633 		_tmp15_ = ldefault_apps_get_mime_list (_tmp12_, _tmp13_, "installed", &_tmp14_);
2634 		combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
2635 		combobox_list = _tmp15_;
2636 		combobox_list_length1 = _tmp14_;
2637 		_combobox_list_size_ = combobox_list_length1;
2638 	} else {
2639 		GKeyFile* _tmp16_ = NULL;
2640 		const gchar* _tmp17_ = NULL;
2641 		gint _tmp18_ = 0;
2642 		gchar** _tmp19_ = NULL;
2643 		_tmp16_ = _data13_->kf;
2644 		_tmp17_ = _data13_->combobox_list_name;
2645 		_tmp19_ = ldefault_apps_get_mime_list (_tmp16_, _tmp17_, "installed", &_tmp18_);
2646 		combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
2647 		combobox_list = _tmp19_;
2648 		combobox_list_length1 = _tmp18_;
2649 		_combobox_list_size_ = combobox_list_length1;
2650 	}
2651 	_tmp20_ = _data13_->list_store;
2652 	gtk_list_store_append (_tmp20_, &_tmp21_);
2653 	_data13_->iter = _tmp21_;
2654 	_tmp22_ = _data13_->list_store;
2655 	_tmp23_ = _data13_->iter;
2656 	_tmp24_ = _ ("Disable");
2657 	gtk_list_store_set (_tmp22_, &_tmp23_, 0, "window-close", 1, _tmp24_, 2, 0, 3, "", -1);
2658 	{
2659 		gint a = 0;
2660 		a = 0;
2661 		{
2662 			gboolean _tmp25_ = FALSE;
2663 			_tmp25_ = TRUE;
2664 			while (TRUE) {
2665 				gint _tmp27_ = 0;
2666 				gchar** _tmp28_ = NULL;
2667 				gint _tmp28__length1 = 0;
2668 				gchar* item_list = NULL;
2669 				gchar** _tmp29_ = NULL;
2670 				gint _tmp29__length1 = 0;
2671 				gint _tmp30_ = 0;
2672 				const gchar* _tmp31_ = NULL;
2673 				gchar* _tmp32_ = NULL;
2674 				LDefaultAppsComboItemObject* combo_item = NULL;
2675 				const gchar* _tmp33_ = NULL;
2676 				LDefaultAppsComboItemObject* _tmp34_ = NULL;
2677 				GtkListStore* _tmp35_ = NULL;
2678 				GtkTreeIter _tmp36_ = {0};
2679 				GtkListStore* _tmp37_ = NULL;
2680 				GtkTreeIter _tmp38_ = {0};
2681 				LDefaultAppsComboItemObject* _tmp39_ = NULL;
2682 				const gchar* _tmp40_ = NULL;
2683 				const gchar* _tmp41_ = NULL;
2684 				LDefaultAppsComboItemObject* _tmp42_ = NULL;
2685 				const gchar* _tmp43_ = NULL;
2686 				const gchar* _tmp44_ = NULL;
2687 				gint _tmp45_ = 0;
2688 				LDefaultAppsComboItemObject* _tmp46_ = NULL;
2689 				const gchar* _tmp47_ = NULL;
2690 				const gchar* _tmp48_ = NULL;
2691 				LDefaultAppsComboItemObject* _tmp49_ = NULL;
2692 				const gchar* _tmp50_ = NULL;
2693 				const gchar* _tmp51_ = NULL;
2694 				const gchar* _tmp52_ = NULL;
2695 				if (!_tmp25_) {
2696 					gint _tmp26_ = 0;
2697 					_tmp26_ = a;
2698 					a = _tmp26_ + 1;
2699 				}
2700 				_tmp25_ = FALSE;
2701 				_tmp27_ = a;
2702 				_tmp28_ = combobox_list;
2703 				_tmp28__length1 = combobox_list_length1;
2704 				if (!(_tmp27_ < _tmp28__length1)) {
2705 					break;
2706 				}
2707 				_tmp29_ = combobox_list;
2708 				_tmp29__length1 = combobox_list_length1;
2709 				_tmp30_ = a;
2710 				_tmp31_ = _tmp29_[_tmp30_];
2711 				_tmp32_ = g_strdup (_tmp31_);
2712 				item_list = _tmp32_;
2713 				_tmp33_ = item_list;
2714 				_tmp34_ = ldefault_apps_combo_item_object_new (_tmp33_);
2715 				combo_item = _tmp34_;
2716 				_tmp35_ = _data13_->list_store;
2717 				gtk_list_store_append (_tmp35_, &_tmp36_);
2718 				_data13_->iter = _tmp36_;
2719 				_tmp37_ = _data13_->list_store;
2720 				_tmp38_ = _data13_->iter;
2721 				_tmp39_ = combo_item;
2722 				_tmp40_ = ldefault_apps_combo_item_object_get_icon_name (_tmp39_);
2723 				_tmp41_ = _tmp40_;
2724 				_tmp42_ = combo_item;
2725 				_tmp43_ = ldefault_apps_combo_item_object_get_name (_tmp42_);
2726 				_tmp44_ = _tmp43_;
2727 				_tmp45_ = a;
2728 				_tmp46_ = combo_item;
2729 				_tmp47_ = ldefault_apps_combo_item_object_get_exec (_tmp46_);
2730 				_tmp48_ = _tmp47_;
2731 				gtk_list_store_set (_tmp37_, &_tmp38_, 0, _tmp41_, 1, _tmp44_, 2, _tmp45_, 3, _tmp48_, -1);
2732 				_tmp49_ = combo_item;
2733 				_tmp50_ = ldefault_apps_combo_item_object_get_exec (_tmp49_);
2734 				_tmp51_ = _tmp50_;
2735 				_tmp52_ = by_default;
2736 				if (g_strcmp0 (_tmp51_, _tmp52_) == 0) {
2737 					gint _tmp53_ = 0;
2738 					_tmp53_ = a;
2739 					default_index = _tmp53_ + 1;
2740 					default_set = TRUE;
2741 				}
2742 				_g_object_unref0 (combo_item);
2743 				_g_free0 (item_list);
2744 			}
2745 		}
2746 	}
2747 	_tmp54_ = by_default;
2748 	g_message ("combobox.vala:443: Default = %s", _tmp54_);
2749 	_tmp55_ = by_default;
2750 	if (g_strcmp0 (_tmp55_, "") == 0) {
2751 		default_index = 0;
2752 		default_set = TRUE;
2753 	}
2754 	_tmp56_ = default_set;
2755 	if (_tmp56_ == FALSE) {
2756 		GValue val = {0};
2757 		gint last_position = 0;
2758 		GtkListStore* _tmp57_ = NULL;
2759 		GtkTreeIter _tmp58_ = {0};
2760 		GtkListStore* _tmp59_ = NULL;
2761 		GtkTreeIter _tmp60_ = {0};
2762 		GValue _tmp61_ = {0};
2763 		gint _tmp62_ = 0;
2764 		GtkListStore* _tmp63_ = NULL;
2765 		GtkTreeIter _tmp64_ = {0};
2766 		const gchar* _tmp65_ = NULL;
2767 		gint _tmp66_ = 0;
2768 		const gchar* _tmp67_ = NULL;
2769 		_tmp57_ = _data13_->list_store;
2770 		gtk_list_store_append (_tmp57_, &_tmp58_);
2771 		_data13_->iter = _tmp58_;
2772 		_tmp59_ = _data13_->list_store;
2773 		_tmp60_ = _data13_->iter;
2774 		gtk_tree_model_get_value ((GtkTreeModel*) _tmp59_, &_tmp60_, 2, &_tmp61_);
2775 		G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
2776 		val = _tmp61_;
2777 		_tmp62_ = g_value_get_int (&val);
2778 		last_position = _tmp62_ + 1;
2779 		_tmp63_ = _data13_->list_store;
2780 		_tmp64_ = _data13_->iter;
2781 		_tmp65_ = by_default;
2782 		_tmp66_ = last_position;
2783 		_tmp67_ = by_default;
2784 		gtk_list_store_set (_tmp63_, &_tmp64_, 0, "", 1, _tmp65_, 2, _tmp66_, 3, _tmp67_, -1);
2785 		G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
2786 	}
2787 	_tmp68_ = _data13_->return_combobox;
2788 	_tmp69_ = _data13_->list_store;
2789 	gtk_combo_box_set_model (_tmp68_, (GtkTreeModel*) _tmp69_);
2790 	_tmp70_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
2791 	g_object_ref_sink (_tmp70_);
2792 	renderer_image = _tmp70_;
2793 	_tmp71_ = _data13_->return_combobox;
2794 	_tmp72_ = renderer_image;
2795 	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp71_, (GtkCellRenderer*) _tmp72_, FALSE);
2796 	_tmp73_ = _data13_->return_combobox;
2797 	_tmp74_ = renderer_image;
2798 	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp73_, (GtkCellRenderer*) _tmp74_, "icon-name", 0);
2799 	_tmp75_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
2800 	g_object_ref_sink (_tmp75_);
2801 	renderer = _tmp75_;
2802 	_tmp76_ = _data13_->return_combobox;
2803 	_tmp77_ = renderer;
2804 	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp76_, (GtkCellRenderer*) _tmp77_, FALSE);
2805 	_tmp78_ = _data13_->return_combobox;
2806 	_tmp79_ = renderer;
2807 	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp78_, (GtkCellRenderer*) _tmp79_, "text", 1);
2808 	_tmp80_ = _data13_->return_combobox;
2809 	gtk_combo_box_set_active (_tmp80_, 0);
2810 	_tmp81_ = default_index;
2811 	if (_tmp81_ == -1) {
2812 		const gchar* _tmp82_ = NULL;
2813 		const gchar* _tmp83_ = NULL;
2814 		GQuark _tmp85_ = 0U;
2815 		static GQuark _tmp84_label0 = 0;
2816 		static GQuark _tmp84_label1 = 0;
2817 		static GQuark _tmp84_label2 = 0;
2818 		g_message ("combobox.vala:484: Iter == -1");
2819 		_tmp82_ = by_default;
2820 		_tmp83_ = _tmp82_;
2821 		_tmp85_ = (NULL == _tmp83_) ? 0 : g_quark_from_string (_tmp83_);
2822 		if (_tmp85_ == ((0 != _tmp84_label0) ? _tmp84_label0 : (_tmp84_label0 = g_quark_from_static_string (NULL)))) {
2823 			switch (0) {
2824 				default:
2825 				{
2826 					GtkComboBox* _tmp86_ = NULL;
2827 					_tmp86_ = _data13_->return_combobox;
2828 					gtk_combo_box_set_active (_tmp86_, 0);
2829 					break;
2830 				}
2831 			}
2832 		} else if (_tmp85_ == ((0 != _tmp84_label1) ? _tmp84_label1 : (_tmp84_label1 = g_quark_from_static_string ("")))) {
2833 			switch (0) {
2834 				default:
2835 				{
2836 					GtkComboBox* _tmp87_ = NULL;
2837 					_tmp87_ = _data13_->return_combobox;
2838 					gtk_combo_box_set_active (_tmp87_, 0);
2839 					break;
2840 				}
2841 			}
2842 		} else if (_tmp85_ == ((0 != _tmp84_label2) ? _tmp84_label2 : (_tmp84_label2 = g_quark_from_static_string (" ")))) {
2843 			switch (0) {
2844 				default:
2845 				{
2846 					GtkComboBox* _tmp88_ = NULL;
2847 					_tmp88_ = _data13_->return_combobox;
2848 					gtk_combo_box_set_active (_tmp88_, 0);
2849 					break;
2850 				}
2851 			}
2852 		} else {
2853 			switch (0) {
2854 				default:
2855 				{
2856 					GtkComboBox* _tmp89_ = NULL;
2857 					GtkTreeIter _tmp90_ = {0};
2858 					_tmp89_ = _data13_->return_combobox;
2859 					_tmp90_ = _data13_->iter;
2860 					gtk_combo_box_set_active_iter (_tmp89_, &_tmp90_);
2861 					break;
2862 				}
2863 			}
2864 		}
2865 	} else {
2866 		gint _tmp91_ = 0;
2867 		GtkComboBox* _tmp92_ = NULL;
2868 		gint _tmp93_ = 0;
2869 		_tmp91_ = default_index;
2870 		g_message ("combobox.vala:503: Iter == %d", _tmp91_);
2871 		_tmp92_ = _data13_->return_combobox;
2872 		_tmp93_ = default_index;
2873 		gtk_combo_box_set_active (_tmp92_, _tmp93_);
2874 	}
2875 	_tmp94_ = _data13_->return_combobox;
2876 	g_signal_connect_data (_tmp94_, "changed", (GCallback) ___lambda19__gtk_combo_box_changed, block13_data_ref (_data13_), (GClosureNotify) block13_data_unref, 0);
2877 	_tmp95_ = _data13_->return_combobox;
2878 	g_signal_connect ((GtkWidget*) _tmp95_, "scroll-event", (GCallback) ___lambda20__gtk_widget_scroll_event, NULL);
2879 	_tmp96_ = _data13_->return_combobox;
2880 	_tmp97_ = _g_object_ref0 (_tmp96_);
2881 	result = _tmp97_;
2882 	_g_object_unref0 (renderer);
2883 	_g_object_unref0 (renderer_image);
2884 	combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
2885 	block13_data_unref (_data13_);
2886 	_data13_ = NULL;
2887 	return result;
2888 }
2889 
2890 
block14_data_ref(Block14Data * _data14_)2891 static Block14Data* block14_data_ref (Block14Data* _data14_) {
2892 	g_atomic_int_inc (&_data14_->_ref_count_);
2893 	return _data14_;
2894 }
2895 
2896 
block14_data_unref(void * _userdata_)2897 static void block14_data_unref (void * _userdata_) {
2898 	Block14Data* _data14_;
2899 	_data14_ = (Block14Data*) _userdata_;
2900 	if (g_atomic_int_dec_and_test (&_data14_->_ref_count_)) {
2901 		_g_object_unref0 (_data14_->window_mime);
2902 		g_slice_free (Block14Data, _data14_);
2903 	}
2904 }
2905 
2906 
block15_data_ref(Block15Data * _data15_)2907 static Block15Data* block15_data_ref (Block15Data* _data15_) {
2908 	g_atomic_int_inc (&_data15_->_ref_count_);
2909 	return _data15_;
2910 }
2911 
2912 
block15_data_unref(void * _userdata_)2913 static void block15_data_unref (void * _userdata_) {
2914 	Block15Data* _data15_;
2915 	_data15_ = (Block15Data*) _userdata_;
2916 	if (g_atomic_int_dec_and_test (&_data15_->_ref_count_)) {
2917 		_data15_->mime_list = (_vala_array_free (_data15_->mime_list, _data15_->mime_list_length1, (GDestroyNotify) g_free), NULL);
2918 		block14_data_unref (_data15_->_data14_);
2919 		_data15_->_data14_ = NULL;
2920 		g_slice_free (Block15Data, _data15_);
2921 	}
2922 }
2923 
2924 
block16_data_ref(Block16Data * _data16_)2925 static Block16Data* block16_data_ref (Block16Data* _data16_) {
2926 	g_atomic_int_inc (&_data16_->_ref_count_);
2927 	return _data16_;
2928 }
2929 
2930 
block16_data_unref(void * _userdata_)2931 static void block16_data_unref (void * _userdata_) {
2932 	Block16Data* _data16_;
2933 	_data16_ = (Block16Data*) _userdata_;
2934 	if (g_atomic_int_dec_and_test (&_data16_->_ref_count_)) {
2935 		_g_free0 (_data16_->base_name);
2936 		block15_data_unref (_data16_->_data15_);
2937 		_data16_->_data15_ = NULL;
2938 		g_slice_free (Block16Data, _data16_);
2939 	}
2940 }
2941 
2942 
_____lambda13_(Block16Data * _data16_)2943 static void _____lambda13_ (Block16Data* _data16_) {
2944 	Block15Data* _data15_;
2945 	Block14Data* _data14_;
2946 	gchar** _tmp0_ = NULL;
2947 	gint _tmp0__length1 = 0;
2948 	const gchar* _tmp1_ = NULL;
2949 	_data15_ = _data16_->_data15_;
2950 	_data14_ = _data15_->_data14_;
2951 	_tmp0_ = _data15_->mime_list;
2952 	_tmp0__length1 = _data15_->mime_list_length1;
2953 	_tmp1_ = _data16_->base_name;
2954 	ldefault_apps_save_mime_type (_tmp0_, _tmp0__length1, _tmp1_);
2955 	gtk_object_destroy ((GtkObject*) _data14_->window_mime);
2956 }
2957 
2958 
______lambda13__gtk_button_clicked(GtkButton * _sender,gpointer self)2959 static void ______lambda13__gtk_button_clicked (GtkButton* _sender, gpointer self) {
2960 	_____lambda13_ (self);
2961 }
2962 
2963 
_____lambda14_(Block16Data * _data16_)2964 static void _____lambda14_ (Block16Data* _data16_) {
2965 	Block15Data* _data15_;
2966 	Block14Data* _data14_;
2967 	_data15_ = _data16_->_data15_;
2968 	_data14_ = _data15_->_data14_;
2969 	gtk_object_destroy ((GtkObject*) _data14_->window_mime);
2970 }
2971 
2972 
______lambda14__gtk_button_clicked(GtkButton * _sender,gpointer self)2973 static void ______lambda14__gtk_button_clicked (GtkButton* _sender, gpointer self) {
2974 	_____lambda14_ (self);
2975 }
2976 
2977 
ldefault_apps_create_mime_associate_window(LDefaultAppsDbusBackend * dbus_backend,GKeyFile * kf,const gchar * combobox_list_name,const gchar * command)2978 void ldefault_apps_create_mime_associate_window (LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* combobox_list_name, const gchar* command) {
2979 	Block14Data* _data14_;
2980 	GtkWindow* _tmp0_ = NULL;
2981 	GtkScrolledWindow* scrolled = NULL;
2982 	GtkScrolledWindow* _tmp6_ = NULL;
2983 	GtkScrolledWindow* _tmp7_ = NULL;
2984 	GtkScrolledWindow* _tmp8_ = NULL;
2985 	GtkViewport* mime_view_port = NULL;
2986 	GtkViewport* _tmp9_ = NULL;
2987 	GtkViewport* _tmp10_ = NULL;
2988 	GtkScrolledWindow* _tmp11_ = NULL;
2989 	GtkViewport* _tmp12_ = NULL;
2990 	GtkVBox* mime_vbox = NULL;
2991 	GtkVBox* _tmp13_ = NULL;
2992 	GtkViewport* _tmp14_ = NULL;
2993 	GtkVBox* _tmp15_ = NULL;
2994 	GtkLabel* info_label = NULL;
2995 	const gchar* _tmp16_ = NULL;
2996 	GtkLabel* _tmp17_ = NULL;
2997 	GtkVBox* _tmp18_ = NULL;
2998 	GtkLabel* _tmp19_ = NULL;
2999 	gchar** mime_combobox_list = NULL;
3000 	gint mime_combobox_list_length1 = 0;
3001 	gint _mime_combobox_list_size_ = 0;
3002 	GKeyFile* _tmp20_ = NULL;
3003 	const gchar* _tmp21_ = NULL;
3004 	gint _tmp22_ = 0;
3005 	gchar** _tmp23_ = NULL;
3006 	gchar* default_path = NULL;
3007 	gchar* _tmp24_ = NULL;
3008 	const gchar* _tmp50_ = NULL;
3009 	const gchar* _tmp51_ = NULL;
3010 	GError * _inner_error_ = NULL;
3011 	g_return_if_fail (dbus_backend != NULL);
3012 	g_return_if_fail (kf != NULL);
3013 	g_return_if_fail (combobox_list_name != NULL);
3014 	g_return_if_fail (command != NULL);
3015 	_data14_ = g_slice_new0 (Block14Data);
3016 	_data14_->_ref_count_ = 1;
3017 	_tmp0_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
3018 	g_object_ref_sink (_tmp0_);
3019 	_data14_->window_mime = _tmp0_;
3020 	g_object_set (_data14_->window_mime, "window-position", GTK_WIN_POS_CENTER, NULL);
3021 	gtk_window_set_default_size (_data14_->window_mime, 400, 200);
3022 	gtk_window_set_skip_taskbar_hint (_data14_->window_mime, TRUE);
3023 	{
3024 		GdkPixbuf* _tmp1_ = NULL;
3025 		GtkIconTheme* _tmp2_ = NULL;
3026 		GdkPixbuf* _tmp3_ = NULL;
3027 		_tmp2_ = gtk_icon_theme_get_default ();
3028 		_tmp3_ = gtk_icon_theme_load_icon (_tmp2_, "preferences-desktop", 48, 0, &_inner_error_);
3029 		_tmp1_ = _tmp3_;
3030 		if (G_UNLIKELY (_inner_error_ != NULL)) {
3031 			goto __catch14_g_error;
3032 		}
3033 		gtk_window_set_icon (_data14_->window_mime, _tmp1_);
3034 		_g_object_unref0 (_tmp1_);
3035 	}
3036 	goto __finally14;
3037 	__catch14_g_error:
3038 	{
3039 		GError* e = NULL;
3040 		GError* _tmp4_ = NULL;
3041 		const gchar* _tmp5_ = NULL;
3042 		e = _inner_error_;
3043 		_inner_error_ = NULL;
3044 		_tmp4_ = e;
3045 		_tmp5_ = _tmp4_->message;
3046 		g_message ("combobox.vala:549: Could not load application icon: %s\n", _tmp5_);
3047 		_g_error_free0 (e);
3048 	}
3049 	__finally14:
3050 	if (G_UNLIKELY (_inner_error_ != NULL)) {
3051 		block14_data_unref (_data14_);
3052 		_data14_ = NULL;
3053 		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);
3054 		g_clear_error (&_inner_error_);
3055 		return;
3056 	}
3057 	_tmp6_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
3058 	g_object_ref_sink (_tmp6_);
3059 	scrolled = _tmp6_;
3060 	_tmp7_ = scrolled;
3061 	gtk_scrolled_window_set_policy (_tmp7_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
3062 	_tmp8_ = scrolled;
3063 	gtk_container_add ((GtkContainer*) _data14_->window_mime, (GtkWidget*) _tmp8_);
3064 	_tmp9_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
3065 	g_object_ref_sink (_tmp9_);
3066 	mime_view_port = _tmp9_;
3067 	_tmp10_ = mime_view_port;
3068 	gtk_widget_set_size_request ((GtkWidget*) _tmp10_, 200, 200);
3069 	_tmp11_ = scrolled;
3070 	_tmp12_ = mime_view_port;
3071 	gtk_container_add ((GtkContainer*) _tmp11_, (GtkWidget*) _tmp12_);
3072 	_tmp13_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
3073 	g_object_ref_sink (_tmp13_);
3074 	mime_vbox = _tmp13_;
3075 	_tmp14_ = mime_view_port;
3076 	_tmp15_ = mime_vbox;
3077 	gtk_container_add ((GtkContainer*) _tmp14_, (GtkWidget*) _tmp15_);
3078 	_tmp16_ = _ ("Do you want to assiociate the following Mimetype ?\n");
3079 	_tmp17_ = (GtkLabel*) gtk_label_new (_tmp16_);
3080 	g_object_ref_sink (_tmp17_);
3081 	info_label = _tmp17_;
3082 	_tmp18_ = mime_vbox;
3083 	_tmp19_ = info_label;
3084 	gtk_container_add ((GtkContainer*) _tmp18_, (GtkWidget*) _tmp19_);
3085 	_tmp20_ = kf;
3086 	_tmp21_ = combobox_list_name;
3087 	_tmp23_ = ldefault_apps_get_mime_list (_tmp20_, _tmp21_, "installed", &_tmp22_);
3088 	mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
3089 	mime_combobox_list = _tmp23_;
3090 	mime_combobox_list_length1 = _tmp22_;
3091 	_mime_combobox_list_size_ = mime_combobox_list_length1;
3092 	_tmp24_ = g_strdup ("");
3093 	default_path = _tmp24_;
3094 	{
3095 		gint b = 0;
3096 		b = 0;
3097 		{
3098 			gboolean _tmp25_ = FALSE;
3099 			_tmp25_ = TRUE;
3100 			while (TRUE) {
3101 				gint _tmp27_ = 0;
3102 				gchar** _tmp28_ = NULL;
3103 				gint _tmp28__length1 = 0;
3104 				gchar* item_list = NULL;
3105 				gchar** _tmp29_ = NULL;
3106 				gint _tmp29__length1 = 0;
3107 				gint _tmp30_ = 0;
3108 				const gchar* _tmp31_ = NULL;
3109 				gchar* _tmp32_ = NULL;
3110 				LDefaultAppsComboItemObject* combo_item = NULL;
3111 				const gchar* _tmp33_ = NULL;
3112 				LDefaultAppsComboItemObject* _tmp34_ = NULL;
3113 				LDefaultAppsComboItemObject* _tmp35_ = NULL;
3114 				const gchar* _tmp36_ = NULL;
3115 				const gchar* _tmp37_ = NULL;
3116 				const gchar* _tmp38_ = NULL;
3117 				LDefaultAppsComboItemObject* _tmp39_ = NULL;
3118 				const gchar* _tmp40_ = NULL;
3119 				const gchar* _tmp41_ = NULL;
3120 				const gchar* _tmp42_ = NULL;
3121 				LDefaultAppsComboItemObject* _tmp43_ = NULL;
3122 				const gchar* _tmp44_ = NULL;
3123 				const gchar* _tmp45_ = NULL;
3124 				if (!_tmp25_) {
3125 					gint _tmp26_ = 0;
3126 					_tmp26_ = b;
3127 					b = _tmp26_ + 1;
3128 				}
3129 				_tmp25_ = FALSE;
3130 				_tmp27_ = b;
3131 				_tmp28_ = mime_combobox_list;
3132 				_tmp28__length1 = mime_combobox_list_length1;
3133 				if (!(_tmp27_ < _tmp28__length1)) {
3134 					break;
3135 				}
3136 				_tmp29_ = mime_combobox_list;
3137 				_tmp29__length1 = mime_combobox_list_length1;
3138 				_tmp30_ = b;
3139 				_tmp31_ = _tmp29_[_tmp30_];
3140 				_tmp32_ = g_strdup (_tmp31_);
3141 				item_list = _tmp32_;
3142 				_tmp33_ = item_list;
3143 				_tmp34_ = ldefault_apps_combo_item_object_new (_tmp33_);
3144 				combo_item = _tmp34_;
3145 				_tmp35_ = combo_item;
3146 				_tmp36_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp35_);
3147 				_tmp37_ = _tmp36_;
3148 				g_message ("combobox.vala:575: combo_item.desktop_path: %s", _tmp37_);
3149 				_tmp38_ = combobox_list_name;
3150 				g_message ("combobox.vala:576: combobox_list_name: %s", _tmp38_);
3151 				_tmp39_ = combo_item;
3152 				_tmp40_ = ldefault_apps_combo_item_object_get_exec (_tmp39_);
3153 				_tmp41_ = _tmp40_;
3154 				g_message ("combobox.vala:577: combo_item.exec: %s", _tmp41_);
3155 				_tmp42_ = command;
3156 				_tmp43_ = combo_item;
3157 				_tmp44_ = ldefault_apps_combo_item_object_get_exec (_tmp43_);
3158 				_tmp45_ = _tmp44_;
3159 				if (g_strcmp0 (_tmp42_, _tmp45_) == 0) {
3160 					LDefaultAppsComboItemObject* _tmp46_ = NULL;
3161 					const gchar* _tmp47_ = NULL;
3162 					const gchar* _tmp48_ = NULL;
3163 					gchar* _tmp49_ = NULL;
3164 					_tmp46_ = combo_item;
3165 					_tmp47_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp46_);
3166 					_tmp48_ = _tmp47_;
3167 					_tmp49_ = g_strdup (_tmp48_);
3168 					_g_free0 (default_path);
3169 					default_path = _tmp49_;
3170 				}
3171 				_g_object_unref0 (combo_item);
3172 				_g_free0 (item_list);
3173 			}
3174 		}
3175 	}
3176 	_tmp50_ = default_path;
3177 	g_message ("combobox.vala:585: Look at default_path: %s", _tmp50_);
3178 	_tmp51_ = default_path;
3179 	if (g_strcmp0 (_tmp51_, "") != 0) {
3180 		Block15Data* _data15_;
3181 		GKeyFile* kf_mime = NULL;
3182 		GKeyFile* _tmp52_ = NULL;
3183 		_data15_ = g_slice_new0 (Block15Data);
3184 		_data15_->_ref_count_ = 1;
3185 		_data15_->_data14_ = block14_data_ref (_data14_);
3186 		_tmp52_ = g_key_file_new ();
3187 		kf_mime = _tmp52_;
3188 		{
3189 			GKeyFile* _tmp53_ = NULL;
3190 			const gchar* _tmp54_ = NULL;
3191 			_tmp53_ = kf_mime;
3192 			_tmp54_ = default_path;
3193 			g_key_file_load_from_file (_tmp53_, _tmp54_, G_KEY_FILE_NONE, &_inner_error_);
3194 			if (G_UNLIKELY (_inner_error_ != NULL)) {
3195 				if (_inner_error_->domain == G_KEY_FILE_ERROR) {
3196 					goto __catch15_g_key_file_error;
3197 				}
3198 				if (_inner_error_->domain == G_FILE_ERROR) {
3199 					goto __catch15_g_file_error;
3200 				}
3201 				_g_key_file_unref0 (kf_mime);
3202 				block15_data_unref (_data15_);
3203 				_data15_ = NULL;
3204 				_g_free0 (default_path);
3205 				mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
3206 				_g_object_unref0 (info_label);
3207 				_g_object_unref0 (mime_vbox);
3208 				_g_object_unref0 (mime_view_port);
3209 				_g_object_unref0 (scrolled);
3210 				block14_data_unref (_data14_);
3211 				_data14_ = NULL;
3212 				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);
3213 				g_clear_error (&_inner_error_);
3214 				return;
3215 			}
3216 		}
3217 		goto __finally15;
3218 		__catch15_g_key_file_error:
3219 		{
3220 			GError* err = NULL;
3221 			GError* _tmp55_ = NULL;
3222 			const gchar* _tmp56_ = NULL;
3223 			err = _inner_error_;
3224 			_inner_error_ = NULL;
3225 			_tmp55_ = err;
3226 			_tmp56_ = _tmp55_->message;
3227 			g_warning ("combobox.vala:597: %s", _tmp56_);
3228 			_g_error_free0 (err);
3229 		}
3230 		goto __finally15;
3231 		__catch15_g_file_error:
3232 		{
3233 			GError* err = NULL;
3234 			GError* _tmp57_ = NULL;
3235 			const gchar* _tmp58_ = NULL;
3236 			err = _inner_error_;
3237 			_inner_error_ = NULL;
3238 			_tmp57_ = err;
3239 			_tmp58_ = _tmp57_->message;
3240 			g_warning ("combobox.vala:601: %s", _tmp58_);
3241 			_g_error_free0 (err);
3242 		}
3243 		__finally15:
3244 		if (G_UNLIKELY (_inner_error_ != NULL)) {
3245 			_g_key_file_unref0 (kf_mime);
3246 			block15_data_unref (_data15_);
3247 			_data15_ = NULL;
3248 			_g_free0 (default_path);
3249 			mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
3250 			_g_object_unref0 (info_label);
3251 			_g_object_unref0 (mime_vbox);
3252 			_g_object_unref0 (mime_view_port);
3253 			_g_object_unref0 (scrolled);
3254 			block14_data_unref (_data14_);
3255 			_data14_ = NULL;
3256 			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);
3257 			g_clear_error (&_inner_error_);
3258 			return;
3259 		}
3260 		{
3261 			gchar** _tmp59_ = NULL;
3262 			GKeyFile* _tmp60_ = NULL;
3263 			gsize _tmp61_;
3264 			gchar** _tmp62_ = NULL;
3265 			gint _tmp59__length1 = 0;
3266 			gint __tmp59__size_ = 0;
3267 			gchar** _tmp63_ = NULL;
3268 			gint _tmp63__length1 = 0;
3269 			gchar** _tmp64_ = NULL;
3270 			gint _tmp64__length1 = 0;
3271 			_tmp60_ = kf_mime;
3272 			_tmp62_ = g_key_file_get_string_list (_tmp60_, "Desktop Entry", "MimeType", &_tmp61_, &_inner_error_);
3273 			_tmp59_ = _tmp62_;
3274 			_tmp59__length1 = _tmp61_;
3275 			__tmp59__size_ = _tmp59__length1;
3276 			if (G_UNLIKELY (_inner_error_ != NULL)) {
3277 				if (_inner_error_->domain == G_KEY_FILE_ERROR) {
3278 					goto __catch16_g_key_file_error;
3279 				}
3280 				_g_key_file_unref0 (kf_mime);
3281 				block15_data_unref (_data15_);
3282 				_data15_ = NULL;
3283 				_g_free0 (default_path);
3284 				mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
3285 				_g_object_unref0 (info_label);
3286 				_g_object_unref0 (mime_vbox);
3287 				_g_object_unref0 (mime_view_port);
3288 				_g_object_unref0 (scrolled);
3289 				block14_data_unref (_data14_);
3290 				_data14_ = NULL;
3291 				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);
3292 				g_clear_error (&_inner_error_);
3293 				return;
3294 			}
3295 			_tmp63_ = _tmp59_;
3296 			_tmp63__length1 = _tmp59__length1;
3297 			_tmp59_ = NULL;
3298 			_tmp59__length1 = 0;
3299 			_data15_->mime_list = (_vala_array_free (_data15_->mime_list, _data15_->mime_list_length1, (GDestroyNotify) g_free), NULL);
3300 			_data15_->mime_list = _tmp63_;
3301 			_data15_->mime_list_length1 = _tmp63__length1;
3302 			_data15_->_mime_list_size_ = _data15_->mime_list_length1;
3303 			_tmp64_ = _data15_->mime_list;
3304 			_tmp64__length1 = _data15_->mime_list_length1;
3305 			if (_tmp64__length1 >= 1) {
3306 				Block16Data* _data16_;
3307 				const gchar* _tmp65_ = NULL;
3308 				gchar* _tmp66_ = NULL;
3309 				GtkHBox* hbox_buttons = NULL;
3310 				GtkHBox* _tmp67_ = NULL;
3311 				GtkButton* ok_button = NULL;
3312 				GtkButton* _tmp68_ = NULL;
3313 				GtkButton* cancel_button = NULL;
3314 				const gchar* _tmp69_ = NULL;
3315 				GtkButton* _tmp70_ = NULL;
3316 				GtkVBox* _tmp71_ = NULL;
3317 				GtkHBox* _tmp72_ = NULL;
3318 				GtkHBox* _tmp73_ = NULL;
3319 				GtkButton* _tmp74_ = NULL;
3320 				GtkHBox* _tmp75_ = NULL;
3321 				GtkButton* _tmp76_ = NULL;
3322 				GtkButton* _tmp90_ = NULL;
3323 				GtkButton* _tmp91_ = NULL;
3324 				_data16_ = g_slice_new0 (Block16Data);
3325 				_data16_->_ref_count_ = 1;
3326 				_data16_->_data15_ = block15_data_ref (_data15_);
3327 				_tmp65_ = default_path;
3328 				_tmp66_ = g_path_get_basename (_tmp65_);
3329 				_data16_->base_name = _tmp66_;
3330 				_tmp67_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
3331 				g_object_ref_sink (_tmp67_);
3332 				hbox_buttons = _tmp67_;
3333 				_tmp68_ = (GtkButton*) gtk_button_new_with_label ("OK");
3334 				g_object_ref_sink (_tmp68_);
3335 				ok_button = _tmp68_;
3336 				_tmp69_ = _ ("Cancel");
3337 				_tmp70_ = (GtkButton*) gtk_button_new_with_label (_tmp69_);
3338 				g_object_ref_sink (_tmp70_);
3339 				cancel_button = _tmp70_;
3340 				_tmp71_ = mime_vbox;
3341 				_tmp72_ = hbox_buttons;
3342 				gtk_container_add ((GtkContainer*) _tmp71_, (GtkWidget*) _tmp72_);
3343 				_tmp73_ = hbox_buttons;
3344 				_tmp74_ = ok_button;
3345 				gtk_container_add ((GtkContainer*) _tmp73_, (GtkWidget*) _tmp74_);
3346 				_tmp75_ = hbox_buttons;
3347 				_tmp76_ = cancel_button;
3348 				gtk_container_add ((GtkContainer*) _tmp75_, (GtkWidget*) _tmp76_);
3349 				g_message ("combobox.vala:616: Enter mime try");
3350 				{
3351 					gint i = 0;
3352 					i = 0;
3353 					{
3354 						gboolean _tmp77_ = FALSE;
3355 						_tmp77_ = TRUE;
3356 						while (TRUE) {
3357 							gint _tmp79_ = 0;
3358 							gchar** _tmp80_ = NULL;
3359 							gint _tmp80__length1 = 0;
3360 							gchar* message_mime = NULL;
3361 							gchar** _tmp81_ = NULL;
3362 							gint _tmp81__length1 = 0;
3363 							gint _tmp82_ = 0;
3364 							const gchar* _tmp83_ = NULL;
3365 							gchar* _tmp84_ = NULL;
3366 							const gchar* _tmp85_ = NULL;
3367 							GtkLabel* label_mime = NULL;
3368 							const gchar* _tmp86_ = NULL;
3369 							GtkLabel* _tmp87_ = NULL;
3370 							GtkVBox* _tmp88_ = NULL;
3371 							GtkLabel* _tmp89_ = NULL;
3372 							if (!_tmp77_) {
3373 								gint _tmp78_ = 0;
3374 								_tmp78_ = i;
3375 								i = _tmp78_ + 1;
3376 							}
3377 							_tmp77_ = FALSE;
3378 							_tmp79_ = i;
3379 							_tmp80_ = _data15_->mime_list;
3380 							_tmp80__length1 = _data15_->mime_list_length1;
3381 							if (!(_tmp79_ < _tmp80__length1)) {
3382 								break;
3383 							}
3384 							_tmp81_ = _data15_->mime_list;
3385 							_tmp81__length1 = _data15_->mime_list_length1;
3386 							_tmp82_ = i;
3387 							_tmp83_ = _tmp81_[_tmp82_];
3388 							_tmp84_ = g_strconcat (_tmp83_, "\n", NULL);
3389 							message_mime = _tmp84_;
3390 							_tmp85_ = message_mime;
3391 							g_message ("combobox.vala:620: Look at message_mime: %s", _tmp85_);
3392 							_tmp86_ = message_mime;
3393 							_tmp87_ = (GtkLabel*) gtk_label_new (_tmp86_);
3394 							g_object_ref_sink (_tmp87_);
3395 							label_mime = _tmp87_;
3396 							_tmp88_ = mime_vbox;
3397 							_tmp89_ = label_mime;
3398 							gtk_container_add ((GtkContainer*) _tmp88_, (GtkWidget*) _tmp89_);
3399 							_g_object_unref0 (label_mime);
3400 							_g_free0 (message_mime);
3401 						}
3402 					}
3403 				}
3404 				_tmp90_ = ok_button;
3405 				g_signal_connect_data (_tmp90_, "clicked", (GCallback) ______lambda13__gtk_button_clicked, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
3406 				_tmp91_ = cancel_button;
3407 				g_signal_connect_data (_tmp91_, "clicked", (GCallback) ______lambda14__gtk_button_clicked, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
3408 				gtk_widget_show_all ((GtkWidget*) _data14_->window_mime);
3409 				_g_object_unref0 (cancel_button);
3410 				_g_object_unref0 (ok_button);
3411 				_g_object_unref0 (hbox_buttons);
3412 				block16_data_unref (_data16_);
3413 				_data16_ = NULL;
3414 			} else {
3415 				gtk_object_destroy ((GtkObject*) _data14_->window_mime);
3416 			}
3417 			_tmp59_ = (_vala_array_free (_tmp59_, _tmp59__length1, (GDestroyNotify) g_free), NULL);
3418 		}
3419 		goto __finally16;
3420 		__catch16_g_key_file_error:
3421 		{
3422 			GError* err = NULL;
3423 			GError* _tmp92_ = NULL;
3424 			const gchar* _tmp93_ = NULL;
3425 			err = _inner_error_;
3426 			_inner_error_ = NULL;
3427 			_tmp92_ = err;
3428 			_tmp93_ = _tmp92_->message;
3429 			g_warning ("combobox.vala:643: %s", _tmp93_);
3430 			_g_error_free0 (err);
3431 		}
3432 		__finally16:
3433 		if (G_UNLIKELY (_inner_error_ != NULL)) {
3434 			_g_key_file_unref0 (kf_mime);
3435 			block15_data_unref (_data15_);
3436 			_data15_ = NULL;
3437 			_g_free0 (default_path);
3438 			mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
3439 			_g_object_unref0 (info_label);
3440 			_g_object_unref0 (mime_vbox);
3441 			_g_object_unref0 (mime_view_port);
3442 			_g_object_unref0 (scrolled);
3443 			block14_data_unref (_data14_);
3444 			_data14_ = NULL;
3445 			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);
3446 			g_clear_error (&_inner_error_);
3447 			return;
3448 		}
3449 		_g_key_file_unref0 (kf_mime);
3450 		block15_data_unref (_data15_);
3451 		_data15_ = NULL;
3452 	}
3453 	_g_free0 (default_path);
3454 	mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
3455 	_g_object_unref0 (info_label);
3456 	_g_object_unref0 (mime_vbox);
3457 	_g_object_unref0 (mime_view_port);
3458 	_g_object_unref0 (scrolled);
3459 	block14_data_unref (_data14_);
3460 	_data14_ = NULL;
3461 }
3462 
3463 
ldefault_apps_save_mime_type(gchar ** mime_list,int mime_list_length1,const gchar * base_name)3464 void ldefault_apps_save_mime_type (gchar** mime_list, int mime_list_length1, const gchar* base_name) {
3465 	gchar* mimeapps_list_directory = NULL;
3466 	const gchar* _tmp0_ = NULL;
3467 	gchar* _tmp1_ = NULL;
3468 	GKeyFile* kf_mimeapps = NULL;
3469 	const gchar* _tmp2_ = NULL;
3470 	GKeyFile* _tmp3_ = NULL;
3471 	gchar* mimeapps_list_path = NULL;
3472 	const gchar* _tmp4_ = NULL;
3473 	gchar* _tmp5_ = NULL;
3474 	gchar** _tmp6_ = NULL;
3475 	gint _tmp6__length1 = 0;
3476 	gchar* str = NULL;
3477 	GKeyFile* _tmp21_ = NULL;
3478 	gchar* _tmp22_ = NULL;
3479 	GError * _inner_error_ = NULL;
3480 	g_return_if_fail (base_name != NULL);
3481 	_tmp0_ = g_get_home_dir ();
3482 	_tmp1_ = g_build_filename (_tmp0_, ".local", "share", "applications", NULL);
3483 	mimeapps_list_directory = _tmp1_;
3484 	_tmp2_ = mimeapps_list_directory;
3485 	_tmp3_ = ldefault_apps_load_key_conf (_tmp2_, "mimeapps.list");
3486 	kf_mimeapps = _tmp3_;
3487 	_tmp4_ = mimeapps_list_directory;
3488 	_tmp5_ = g_build_filename (_tmp4_, "mimeapps.list", NULL);
3489 	mimeapps_list_path = _tmp5_;
3490 	_tmp6_ = mime_list;
3491 	_tmp6__length1 = mime_list_length1;
3492 	if (_tmp6_ != NULL) {
3493 		{
3494 			gint i = 0;
3495 			i = 0;
3496 			{
3497 				gboolean _tmp7_ = FALSE;
3498 				_tmp7_ = TRUE;
3499 				while (TRUE) {
3500 					gint _tmp9_ = 0;
3501 					gchar** _tmp10_ = NULL;
3502 					gint _tmp10__length1 = 0;
3503 					GKeyFile* _tmp11_ = NULL;
3504 					gchar** _tmp12_ = NULL;
3505 					gint _tmp12__length1 = 0;
3506 					gint _tmp13_ = 0;
3507 					const gchar* _tmp14_ = NULL;
3508 					const gchar* _tmp15_ = NULL;
3509 					GKeyFile* _tmp16_ = NULL;
3510 					gchar** _tmp17_ = NULL;
3511 					gint _tmp17__length1 = 0;
3512 					gint _tmp18_ = 0;
3513 					const gchar* _tmp19_ = NULL;
3514 					const gchar* _tmp20_ = NULL;
3515 					if (!_tmp7_) {
3516 						gint _tmp8_ = 0;
3517 						_tmp8_ = i;
3518 						i = _tmp8_ + 1;
3519 					}
3520 					_tmp7_ = FALSE;
3521 					_tmp9_ = i;
3522 					_tmp10_ = mime_list;
3523 					_tmp10__length1 = mime_list_length1;
3524 					if (!(_tmp9_ < _tmp10__length1)) {
3525 						break;
3526 					}
3527 					_tmp11_ = kf_mimeapps;
3528 					_tmp12_ = mime_list;
3529 					_tmp12__length1 = mime_list_length1;
3530 					_tmp13_ = i;
3531 					_tmp14_ = _tmp12_[_tmp13_];
3532 					_tmp15_ = base_name;
3533 					g_key_file_set_string (_tmp11_, "Added Associations", _tmp14_, _tmp15_);
3534 					_tmp16_ = kf_mimeapps;
3535 					_tmp17_ = mime_list;
3536 					_tmp17__length1 = mime_list_length1;
3537 					_tmp18_ = i;
3538 					_tmp19_ = _tmp17_[_tmp18_];
3539 					_tmp20_ = base_name;
3540 					g_key_file_set_string (_tmp16_, "Default Applications", _tmp19_, _tmp20_);
3541 				}
3542 			}
3543 		}
3544 	}
3545 	_tmp21_ = kf_mimeapps;
3546 	_tmp22_ = g_key_file_to_data (_tmp21_, NULL, NULL);
3547 	str = _tmp22_;
3548 	{
3549 		const gchar* _tmp23_ = NULL;
3550 		gint _tmp24_ = 0;
3551 		gint _tmp25_ = 0;
3552 		_tmp23_ = mimeapps_list_path;
3553 		_tmp24_ = strlen (str);
3554 		_tmp25_ = _tmp24_;
3555 		g_file_set_contents (_tmp23_, str, (gssize) _tmp25_, &_inner_error_);
3556 		if (G_UNLIKELY (_inner_error_ != NULL)) {
3557 			if (_inner_error_->domain == G_FILE_ERROR) {
3558 				goto __catch17_g_file_error;
3559 			}
3560 			_g_free0 (str);
3561 			_g_free0 (mimeapps_list_path);
3562 			_g_key_file_unref0 (kf_mimeapps);
3563 			_g_free0 (mimeapps_list_directory);
3564 			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);
3565 			g_clear_error (&_inner_error_);
3566 			return;
3567 		}
3568 	}
3569 	goto __finally17;
3570 	__catch17_g_file_error:
3571 	{
3572 		GError* err = NULL;
3573 		GError* _tmp26_ = NULL;
3574 		const gchar* _tmp27_ = NULL;
3575 		err = _inner_error_;
3576 		_inner_error_ = NULL;
3577 		_tmp26_ = err;
3578 		_tmp27_ = _tmp26_->message;
3579 		g_warning ("combobox.vala:670: %s", _tmp27_);
3580 		_g_error_free0 (err);
3581 	}
3582 	__finally17:
3583 	if (G_UNLIKELY (_inner_error_ != NULL)) {
3584 		_g_free0 (str);
3585 		_g_free0 (mimeapps_list_path);
3586 		_g_key_file_unref0 (kf_mimeapps);
3587 		_g_free0 (mimeapps_list_directory);
3588 		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);
3589 		g_clear_error (&_inner_error_);
3590 		return;
3591 	}
3592 	_g_free0 (str);
3593 	_g_free0 (mimeapps_list_path);
3594 	_g_key_file_unref0 (kf_mimeapps);
3595 	_g_free0 (mimeapps_list_directory);
3596 }
3597 
3598 
ldefault_apps_return_combobox_text(GtkComboBox * combo)3599 gchar* ldefault_apps_return_combobox_text (GtkComboBox* combo) {
3600 	gchar* result = NULL;
3601 	GtkTreeIter iter = {0};
3602 	GtkListStore* model = NULL;
3603 	GValue value1 = {0};
3604 	GtkComboBox* _tmp0_ = NULL;
3605 	GtkTreeIter _tmp1_ = {0};
3606 	GtkComboBox* _tmp2_ = NULL;
3607 	GtkTreeModel* _tmp3_ = NULL;
3608 	GtkListStore* _tmp4_ = NULL;
3609 	GtkTreeIter _tmp5_ = {0};
3610 	GValue _tmp6_ = {0};
3611 	GValue _tmp7_ = {0};
3612 	GValue _tmp8_ = {0};
3613 	gchar* _tmp9_ = NULL;
3614 	g_return_val_if_fail (combo != NULL, NULL);
3615 	_tmp0_ = combo;
3616 	gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
3617 	iter = _tmp1_;
3618 	_tmp2_ = combo;
3619 	_tmp3_ = gtk_combo_box_get_model (_tmp2_);
3620 	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GTK_TYPE_LIST_STORE, GtkListStore));
3621 	_g_object_unref0 (model);
3622 	model = _tmp4_;
3623 	_tmp5_ = iter;
3624 	gtk_tree_model_get_value ((GtkTreeModel*) model, &_tmp5_, 0, &_tmp6_);
3625 	G_IS_VALUE (&value1) ? (g_value_unset (&value1), NULL) : NULL;
3626 	value1 = _tmp6_;
3627 	_tmp7_ = value1;
3628 	g_message ("combobox.vala:684:  Return value for %s", g_value_get_string (&_tmp7_));
3629 	_tmp8_ = value1;
3630 	_tmp9_ = g_strdup (g_value_get_string (&_tmp8_));
3631 	result = _tmp9_;
3632 	G_IS_VALUE (&value1) ? (g_value_unset (&value1), NULL) : NULL;
3633 	_g_object_unref0 (model);
3634 	return result;
3635 }
3636 
3637 
ldefault_apps_get_mime_list(GKeyFile * kf,const gchar * key1,const gchar * mode,int * result_length1)3638 gchar** ldefault_apps_get_mime_list (GKeyFile* kf, const gchar* key1, const gchar* mode, int* result_length1) {
3639 	gchar** result = NULL;
3640 	gchar* keys = NULL;
3641 	const gchar* _tmp0_ = NULL;
3642 	gchar* _tmp1_ = NULL;
3643 	gchar* _tmp2_ = NULL;
3644 	const gchar* _tmp3_ = NULL;
3645 	gchar* _tmp4_ = NULL;
3646 	gchar* _tmp5_ = NULL;
3647 	gchar** return_value = NULL;
3648 	gchar** _tmp6_ = NULL;
3649 	gint return_value_length1 = 0;
3650 	gint _return_value_size_ = 0;
3651 	gchar** _tmp14_ = NULL;
3652 	gint _tmp14__length1 = 0;
3653 	GError * _inner_error_ = NULL;
3654 	g_return_val_if_fail (kf != NULL, NULL);
3655 	g_return_val_if_fail (key1 != NULL, NULL);
3656 	g_return_val_if_fail (mode != NULL, NULL);
3657 	_tmp0_ = key1;
3658 	_tmp1_ = g_strconcat (_tmp0_, "/", NULL);
3659 	_tmp2_ = _tmp1_;
3660 	_tmp3_ = mode;
3661 	_tmp4_ = g_strconcat (_tmp2_, _tmp3_, NULL);
3662 	_tmp5_ = _tmp4_;
3663 	_g_free0 (_tmp2_);
3664 	keys = _tmp5_;
3665 	_tmp6_ = g_new0 (gchar*, 0 + 1);
3666 	return_value = _tmp6_;
3667 	return_value_length1 = 0;
3668 	_return_value_size_ = return_value_length1;
3669 	{
3670 		gchar** _tmp7_ = NULL;
3671 		GKeyFile* _tmp8_ = NULL;
3672 		gsize _tmp9_;
3673 		gchar** _tmp10_ = NULL;
3674 		gint _tmp7__length1 = 0;
3675 		gint __tmp7__size_ = 0;
3676 		gchar** _tmp11_ = NULL;
3677 		gint _tmp11__length1 = 0;
3678 		_tmp8_ = kf;
3679 		_tmp10_ = g_key_file_get_string_list (_tmp8_, "Mime", keys, &_tmp9_, &_inner_error_);
3680 		_tmp7_ = _tmp10_;
3681 		_tmp7__length1 = _tmp9_;
3682 		__tmp7__size_ = _tmp7__length1;
3683 		if (G_UNLIKELY (_inner_error_ != NULL)) {
3684 			if (_inner_error_->domain == G_KEY_FILE_ERROR) {
3685 				goto __catch18_g_key_file_error;
3686 			}
3687 			return_value = (_vala_array_free (return_value, return_value_length1, (GDestroyNotify) g_free), NULL);
3688 			_g_free0 (keys);
3689 			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);
3690 			g_clear_error (&_inner_error_);
3691 			return NULL;
3692 		}
3693 		_tmp11_ = _tmp7_;
3694 		_tmp11__length1 = _tmp7__length1;
3695 		_tmp7_ = NULL;
3696 		_tmp7__length1 = 0;
3697 		return_value = (_vala_array_free (return_value, return_value_length1, (GDestroyNotify) g_free), NULL);
3698 		return_value = _tmp11_;
3699 		return_value_length1 = _tmp11__length1;
3700 		_return_value_size_ = return_value_length1;
3701 		_tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
3702 	}
3703 	goto __finally18;
3704 	__catch18_g_key_file_error:
3705 	{
3706 		GError* err = NULL;
3707 		GError* _tmp12_ = NULL;
3708 		const gchar* _tmp13_ = NULL;
3709 		err = _inner_error_;
3710 		_inner_error_ = NULL;
3711 		_tmp12_ = err;
3712 		_tmp13_ = _tmp12_->message;
3713 		g_warning ("combobox.vala:700: %s", _tmp13_);
3714 		_g_error_free0 (err);
3715 	}
3716 	__finally18:
3717 	if (G_UNLIKELY (_inner_error_ != NULL)) {
3718 		return_value = (_vala_array_free (return_value, return_value_length1, (GDestroyNotify) g_free), NULL);
3719 		_g_free0 (keys);
3720 		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);
3721 		g_clear_error (&_inner_error_);
3722 		return NULL;
3723 	}
3724 	_tmp14_ = return_value;
3725 	_tmp14__length1 = return_value_length1;
3726 	if (result_length1) {
3727 		*result_length1 = _tmp14__length1;
3728 	}
3729 	result = _tmp14_;
3730 	_g_free0 (keys);
3731 	return result;
3732 }
3733 
3734 
block17_data_ref(Block17Data * _data17_)3735 static Block17Data* block17_data_ref (Block17Data* _data17_) {
3736 	g_atomic_int_inc (&_data17_->_ref_count_);
3737 	return _data17_;
3738 }
3739 
3740 
block17_data_unref(void * _userdata_)3741 static void block17_data_unref (void * _userdata_) {
3742 	Block17Data* _data17_;
3743 	_data17_ = (Block17Data*) _userdata_;
3744 	if (g_atomic_int_dec_and_test (&_data17_->_ref_count_)) {
3745 		_g_object_unref0 (_data17_->return_combobox);
3746 		_g_object_unref0 (_data17_->list_store);
3747 		_g_object_unref0 (_data17_->builder);
3748 		_g_free0 (_data17_->entry_name);
3749 		g_slice_free (Block17Data, _data17_);
3750 	}
3751 }
3752 
3753 
__lambda21_(Block17Data * _data17_)3754 static void __lambda21_ (Block17Data* _data17_) {
3755 	GValue val1 = {0};
3756 	GValue val2 = {0};
3757 	GtkComboBox* _tmp0_ = NULL;
3758 	GtkTreeIter _tmp1_ = {0};
3759 	GtkListStore* _tmp2_ = NULL;
3760 	GtkTreeIter _tmp3_ = {0};
3761 	GValue _tmp4_ = {0};
3762 	GtkListStore* _tmp5_ = NULL;
3763 	GtkTreeIter _tmp6_ = {0};
3764 	GValue _tmp7_ = {0};
3765 	GValue _tmp8_ = {0};
3766 	GValue _tmp9_ = {0};
3767 	const gchar* _tmp10_ = NULL;
3768 	_tmp0_ = _data17_->return_combobox;
3769 	gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
3770 	_data17_->iter = _tmp1_;
3771 	_tmp2_ = _data17_->list_store;
3772 	_tmp3_ = _data17_->iter;
3773 	gtk_tree_model_get_value ((GtkTreeModel*) _tmp2_, &_tmp3_, 0, &_tmp4_);
3774 	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
3775 	val1 = _tmp4_;
3776 	_tmp5_ = _data17_->list_store;
3777 	_tmp6_ = _data17_->iter;
3778 	gtk_tree_model_get_value ((GtkTreeModel*) _tmp5_, &_tmp6_, 1, &_tmp7_);
3779 	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
3780 	val2 = _tmp7_;
3781 	_tmp8_ = val1;
3782 	_tmp9_ = val2;
3783 	g_message ("combobox.vala:788: Selection: %s, %d\n", g_value_get_string (&_tmp8_), g_value_get_int (&_tmp9_));
3784 	_tmp10_ = _data17_->entry_name;
3785 	if (_tmp10_ != NULL) {
3786 		GtkEntry* entry = NULL;
3787 		GtkBuilder* _tmp11_ = NULL;
3788 		const gchar* _tmp12_ = NULL;
3789 		GObject* _tmp13_ = NULL;
3790 		GtkEntry* _tmp14_ = NULL;
3791 		GValue _tmp15_ = {0};
3792 		_tmp11_ = _data17_->builder;
3793 		_tmp12_ = _data17_->entry_name;
3794 		_tmp13_ = gtk_builder_get_object (_tmp11_, _tmp12_);
3795 		_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp13_) : NULL);
3796 		entry = _tmp14_;
3797 		_tmp15_ = val2;
3798 		if (g_value_get_int (&_tmp15_) == 99) {
3799 			GtkEntry* _tmp16_ = NULL;
3800 			_tmp16_ = entry;
3801 			gtk_widget_show_all ((GtkWidget*) _tmp16_);
3802 		} else {
3803 		}
3804 		_g_object_unref0 (entry);
3805 	}
3806 	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
3807 	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
3808 }
3809 
3810 
___lambda21__gtk_combo_box_changed(GtkComboBox * _sender,gpointer self)3811 static void ___lambda21__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
3812 	__lambda21_ (self);
3813 }
3814 
3815 
ldefault_apps_ui_combobox_init(GtkBuilder * builder,const gchar * combobox_name,gchar ** combobox_list,int combobox_list_length1,const gchar * entry_name,const gchar * by_default)3816 GtkComboBox* ldefault_apps_ui_combobox_init (GtkBuilder* builder, const gchar* combobox_name, gchar** combobox_list, int combobox_list_length1, const gchar* entry_name, const gchar* by_default) {
3817 	GtkComboBox* result = NULL;
3818 	Block17Data* _data17_;
3819 	GtkBuilder* _tmp0_ = NULL;
3820 	GtkBuilder* _tmp1_ = NULL;
3821 	const gchar* _tmp2_ = NULL;
3822 	gchar* _tmp3_ = NULL;
3823 	GtkListStore* _tmp4_ = NULL;
3824 	gint default_index = 0;
3825 	GtkListStore* _tmp22_ = NULL;
3826 	GtkTreeIter _tmp23_ = {0};
3827 	GtkListStore* _tmp24_ = NULL;
3828 	GtkTreeIter _tmp25_ = {0};
3829 	const gchar* _tmp26_ = NULL;
3830 	GtkBuilder* _tmp27_ = NULL;
3831 	const gchar* _tmp28_ = NULL;
3832 	GObject* _tmp29_ = NULL;
3833 	GtkComboBox* _tmp30_ = NULL;
3834 	GtkComboBox* _tmp31_ = NULL;
3835 	GtkListStore* _tmp32_ = NULL;
3836 	GtkCellRendererText* renderer = NULL;
3837 	GtkCellRendererText* _tmp33_ = NULL;
3838 	GtkComboBox* _tmp34_ = NULL;
3839 	GtkCellRendererText* _tmp35_ = NULL;
3840 	GtkComboBox* _tmp36_ = NULL;
3841 	GtkCellRendererText* _tmp37_ = NULL;
3842 	GtkComboBox* _tmp38_ = NULL;
3843 	gint _tmp39_ = 0;
3844 	GtkComboBox* _tmp65_ = NULL;
3845 	GtkComboBox* _tmp66_ = NULL;
3846 	GtkComboBox* _tmp67_ = NULL;
3847 	g_return_val_if_fail (builder != NULL, NULL);
3848 	g_return_val_if_fail (combobox_name != NULL, NULL);
3849 	g_return_val_if_fail (by_default != NULL, NULL);
3850 	_data17_ = g_slice_new0 (Block17Data);
3851 	_data17_->_ref_count_ = 1;
3852 	_tmp0_ = builder;
3853 	_tmp1_ = _g_object_ref0 (_tmp0_);
3854 	_g_object_unref0 (_data17_->builder);
3855 	_data17_->builder = _tmp1_;
3856 	_tmp2_ = entry_name;
3857 	_tmp3_ = g_strdup (_tmp2_);
3858 	_g_free0 (_data17_->entry_name);
3859 	_data17_->entry_name = _tmp3_;
3860 	_tmp4_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT);
3861 	_data17_->list_store = _tmp4_;
3862 	default_index = -1;
3863 	{
3864 		gint a = 0;
3865 		a = 0;
3866 		{
3867 			gboolean _tmp5_ = FALSE;
3868 			_tmp5_ = TRUE;
3869 			while (TRUE) {
3870 				gint _tmp7_ = 0;
3871 				gchar** _tmp8_ = NULL;
3872 				gint _tmp8__length1 = 0;
3873 				GtkListStore* _tmp9_ = NULL;
3874 				GtkTreeIter _tmp10_ = {0};
3875 				GtkListStore* _tmp11_ = NULL;
3876 				GtkTreeIter _tmp12_ = {0};
3877 				gchar** _tmp13_ = NULL;
3878 				gint _tmp13__length1 = 0;
3879 				gint _tmp14_ = 0;
3880 				const gchar* _tmp15_ = NULL;
3881 				gint _tmp16_ = 0;
3882 				gchar** _tmp17_ = NULL;
3883 				gint _tmp17__length1 = 0;
3884 				gint _tmp18_ = 0;
3885 				const gchar* _tmp19_ = NULL;
3886 				const gchar* _tmp20_ = NULL;
3887 				if (!_tmp5_) {
3888 					gint _tmp6_ = 0;
3889 					_tmp6_ = a;
3890 					a = _tmp6_ + 1;
3891 				}
3892 				_tmp5_ = FALSE;
3893 				_tmp7_ = a;
3894 				_tmp8_ = combobox_list;
3895 				_tmp8__length1 = combobox_list_length1;
3896 				if (!(_tmp7_ < _tmp8__length1)) {
3897 					break;
3898 				}
3899 				_tmp9_ = _data17_->list_store;
3900 				gtk_list_store_append (_tmp9_, &_tmp10_);
3901 				_data17_->iter = _tmp10_;
3902 				_tmp11_ = _data17_->list_store;
3903 				_tmp12_ = _data17_->iter;
3904 				_tmp13_ = combobox_list;
3905 				_tmp13__length1 = combobox_list_length1;
3906 				_tmp14_ = a;
3907 				_tmp15_ = _tmp13_[_tmp14_];
3908 				_tmp16_ = a;
3909 				gtk_list_store_set (_tmp11_, &_tmp12_, 0, _tmp15_, 1, _tmp16_, -1);
3910 				_tmp17_ = combobox_list;
3911 				_tmp17__length1 = combobox_list_length1;
3912 				_tmp18_ = a;
3913 				_tmp19_ = _tmp17_[_tmp18_];
3914 				_tmp20_ = by_default;
3915 				if (g_strcmp0 (_tmp19_, _tmp20_) == 0) {
3916 					gint _tmp21_ = 0;
3917 					_tmp21_ = a;
3918 					default_index = _tmp21_;
3919 				}
3920 			}
3921 		}
3922 	}
3923 	_tmp22_ = _data17_->list_store;
3924 	gtk_list_store_append (_tmp22_, &_tmp23_);
3925 	_data17_->iter = _tmp23_;
3926 	_tmp24_ = _data17_->list_store;
3927 	_tmp25_ = _data17_->iter;
3928 	gtk_list_store_set (_tmp24_, &_tmp25_, 0, "Other", 1, 99, -1);
3929 	_tmp26_ = by_default;
3930 	g_message ("combobox.vala:728: Default = %s", _tmp26_);
3931 	_tmp27_ = _data17_->builder;
3932 	_tmp28_ = combobox_name;
3933 	_tmp29_ = gtk_builder_get_object (_tmp27_, _tmp28_);
3934 	_tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, GTK_TYPE_COMBO_BOX) ? ((GtkComboBox*) _tmp29_) : NULL);
3935 	_data17_->return_combobox = _tmp30_;
3936 	_tmp31_ = _data17_->return_combobox;
3937 	_tmp32_ = _data17_->list_store;
3938 	gtk_combo_box_set_model (_tmp31_, (GtkTreeModel*) _tmp32_);
3939 	_tmp33_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
3940 	g_object_ref_sink (_tmp33_);
3941 	renderer = _tmp33_;
3942 	_tmp34_ = _data17_->return_combobox;
3943 	_tmp35_ = renderer;
3944 	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp34_, (GtkCellRenderer*) _tmp35_, TRUE);
3945 	_tmp36_ = _data17_->return_combobox;
3946 	_tmp37_ = renderer;
3947 	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp36_, (GtkCellRenderer*) _tmp37_, "text", 0);
3948 	_tmp38_ = _data17_->return_combobox;
3949 	gtk_combo_box_set_active (_tmp38_, 0);
3950 	_tmp39_ = default_index;
3951 	if (_tmp39_ == -1) {
3952 		const gchar* _tmp40_ = NULL;
3953 		const gchar* _tmp41_ = NULL;
3954 		GQuark _tmp43_ = 0U;
3955 		static GQuark _tmp42_label0 = 0;
3956 		static GQuark _tmp42_label1 = 0;
3957 		static GQuark _tmp42_label2 = 0;
3958 		_tmp40_ = by_default;
3959 		_tmp41_ = _tmp40_;
3960 		_tmp43_ = (NULL == _tmp41_) ? 0 : g_quark_from_string (_tmp41_);
3961 		if (_tmp43_ == ((0 != _tmp42_label0) ? _tmp42_label0 : (_tmp42_label0 = g_quark_from_static_string (NULL)))) {
3962 			switch (0) {
3963 				default:
3964 				{
3965 					GtkComboBox* _tmp44_ = NULL;
3966 					_tmp44_ = _data17_->return_combobox;
3967 					gtk_combo_box_set_active (_tmp44_, 0);
3968 					break;
3969 				}
3970 			}
3971 		} else if (_tmp43_ == ((0 != _tmp42_label1) ? _tmp42_label1 : (_tmp42_label1 = g_quark_from_static_string ("")))) {
3972 			switch (0) {
3973 				default:
3974 				{
3975 					GtkComboBox* _tmp45_ = NULL;
3976 					_tmp45_ = _data17_->return_combobox;
3977 					gtk_combo_box_set_active (_tmp45_, 0);
3978 					break;
3979 				}
3980 			}
3981 		} else if (_tmp43_ == ((0 != _tmp42_label2) ? _tmp42_label2 : (_tmp42_label2 = g_quark_from_static_string (" ")))) {
3982 			switch (0) {
3983 				default:
3984 				{
3985 					GtkComboBox* _tmp46_ = NULL;
3986 					_tmp46_ = _data17_->return_combobox;
3987 					gtk_combo_box_set_active (_tmp46_, 0);
3988 					break;
3989 				}
3990 			}
3991 		} else {
3992 			switch (0) {
3993 				default:
3994 				{
3995 					GtkComboBox* _tmp47_ = NULL;
3996 					GtkTreeIter _tmp48_ = {0};
3997 					const gchar* _tmp49_ = NULL;
3998 					_tmp47_ = _data17_->return_combobox;
3999 					_tmp48_ = _data17_->iter;
4000 					gtk_combo_box_set_active_iter (_tmp47_, &_tmp48_);
4001 					_tmp49_ = _data17_->entry_name;
4002 					if (_tmp49_ != NULL) {
4003 						GtkEntry* entry_default = NULL;
4004 						GtkBuilder* _tmp50_ = NULL;
4005 						const gchar* _tmp51_ = NULL;
4006 						GObject* _tmp52_ = NULL;
4007 						GtkEntry* _tmp53_ = NULL;
4008 						GtkEntry* _tmp54_ = NULL;
4009 						const gchar* _tmp55_ = NULL;
4010 						GtkEntry* _tmp56_ = NULL;
4011 						_tmp50_ = _data17_->builder;
4012 						_tmp51_ = _data17_->entry_name;
4013 						_tmp52_ = gtk_builder_get_object (_tmp50_, _tmp51_);
4014 						_tmp53_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp52_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp52_) : NULL);
4015 						entry_default = _tmp53_;
4016 						_tmp54_ = entry_default;
4017 						_tmp55_ = by_default;
4018 						gtk_entry_set_text (_tmp54_, _tmp55_);
4019 						_tmp56_ = entry_default;
4020 						gtk_widget_show_all ((GtkWidget*) _tmp56_);
4021 						_g_object_unref0 (entry_default);
4022 					}
4023 					break;
4024 				}
4025 			}
4026 		}
4027 	} else {
4028 		gint _tmp57_ = 0;
4029 		GtkComboBox* _tmp58_ = NULL;
4030 		gint _tmp59_ = 0;
4031 		const gchar* _tmp60_ = NULL;
4032 		_tmp57_ = default_index;
4033 		g_message ("combobox.vala:765: Iter == %d", _tmp57_);
4034 		_tmp58_ = _data17_->return_combobox;
4035 		_tmp59_ = default_index;
4036 		gtk_combo_box_set_active (_tmp58_, _tmp59_);
4037 		_tmp60_ = _data17_->entry_name;
4038 		if (_tmp60_ != NULL) {
4039 			GtkEntry* entry_default = NULL;
4040 			GtkBuilder* _tmp61_ = NULL;
4041 			const gchar* _tmp62_ = NULL;
4042 			GObject* _tmp63_ = NULL;
4043 			GtkEntry* _tmp64_ = NULL;
4044 			_tmp61_ = _data17_->builder;
4045 			_tmp62_ = _data17_->entry_name;
4046 			_tmp63_ = gtk_builder_get_object (_tmp61_, _tmp62_);
4047 			_tmp64_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp63_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp63_) : NULL);
4048 			entry_default = _tmp64_;
4049 			_g_object_unref0 (entry_default);
4050 		}
4051 	}
4052 	_tmp65_ = _data17_->return_combobox;
4053 	g_signal_connect_data (_tmp65_, "changed", (GCallback) ___lambda21__gtk_combo_box_changed, block17_data_ref (_data17_), (GClosureNotify) block17_data_unref, 0);
4054 	_tmp66_ = _data17_->return_combobox;
4055 	_tmp67_ = _g_object_ref0 (_tmp66_);
4056 	result = _tmp67_;
4057 	_g_object_unref0 (renderer);
4058 	block17_data_unref (_data17_);
4059 	_data17_ = NULL;
4060 	return result;
4061 }
4062 
4063 
_vala_array_destroy(gpointer array,gint array_length,GDestroyNotify destroy_func)4064 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
4065 	if ((array != NULL) && (destroy_func != NULL)) {
4066 		int i;
4067 		for (i = 0; i < array_length; i = i + 1) {
4068 			if (((gpointer*) array)[i] != NULL) {
4069 				destroy_func (((gpointer*) array)[i]);
4070 			}
4071 		}
4072 	}
4073 }
4074 
4075 
_vala_array_free(gpointer array,gint array_length,GDestroyNotify destroy_func)4076 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
4077 	_vala_array_destroy (array, array_length, destroy_func);
4078 	g_free (array);
4079 }
4080 
4081 
_vala_array_length(gpointer array)4082 static gint _vala_array_length (gpointer array) {
4083 	int length;
4084 	length = 0;
4085 	if (array) {
4086 		while (((gpointer*) array)[length]) {
4087 			length++;
4088 		}
4089 	}
4090 	return length;
4091 }
4092 
4093 
4094 
4095