/* combobox.c generated by valac 0.26.1, the Vala compiler
 * generated from combobox.vala, do not modify */

/* 
    Copyright 2013 Julien Lavergne <gilir@ubuntu.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <glib/gstdio.h>


#define LDEFAULT_APPS_TYPE_DBUS_BACKEND (ldefault_apps_dbus_backend_get_type ())
#define LDEFAULT_APPS_DBUS_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LDEFAULT_APPS_TYPE_DBUS_BACKEND, LDefaultAppsDbusBackend))
#define LDEFAULT_APPS_DBUS_BACKEND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LDEFAULT_APPS_TYPE_DBUS_BACKEND, LDefaultAppsDbusBackendClass))
#define LDEFAULT_APPS_IS_DBUS_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LDEFAULT_APPS_TYPE_DBUS_BACKEND))
#define LDEFAULT_APPS_IS_DBUS_BACKEND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LDEFAULT_APPS_TYPE_DBUS_BACKEND))
#define LDEFAULT_APPS_DBUS_BACKEND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LDEFAULT_APPS_TYPE_DBUS_BACKEND, LDefaultAppsDbusBackendClass))

typedef struct _LDefaultAppsDbusBackend LDefaultAppsDbusBackend;
typedef struct _LDefaultAppsDbusBackendClass LDefaultAppsDbusBackendClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block5Data Block5Data;
typedef struct _Block6Data Block6Data;
typedef struct _Block7Data Block7Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block8Data Block8Data;
typedef struct _Block9Data Block9Data;
typedef struct _Block10Data Block10Data;
typedef struct _Block11Data Block11Data;

#define LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT (ldefault_apps_combo_item_object_get_type ())
#define LDEFAULT_APPS_COMBO_ITEM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject))
#define LDEFAULT_APPS_COMBO_ITEM_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObjectClass))
#define LDEFAULT_APPS_IS_COMBO_ITEM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT))
#define LDEFAULT_APPS_IS_COMBO_ITEM_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT))
#define LDEFAULT_APPS_COMBO_ITEM_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObjectClass))

typedef struct _LDefaultAppsComboItemObject LDefaultAppsComboItemObject;
typedef struct _LDefaultAppsComboItemObjectClass LDefaultAppsComboItemObjectClass;
typedef struct _Block12Data Block12Data;
typedef struct _LDefaultAppsComboItemObjectPrivate LDefaultAppsComboItemObjectPrivate;
typedef struct _Block13Data Block13Data;
typedef struct _Block14Data Block14Data;
typedef struct _Block15Data Block15Data;
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
typedef struct _Block16Data Block16Data;
typedef struct _Block17Data Block17Data;

struct _Block5Data {
	int _ref_count_;
	GtkEntry* entry;
	LDefaultAppsDbusBackend* dbus_backend;
	gchar* key1;
};

struct _Block6Data {
	int _ref_count_;
	LDefaultAppsDbusBackend* dbus_backend;
	gchar* key1;
	gchar* key2;
};

struct _Block7Data {
	int _ref_count_;
	gchar* message_label;
};

struct _Block8Data {
	int _ref_count_;
	gchar** more_list_copy;
	gint more_list_copy_length1;
	gint _more_list_copy_size_;
	GtkBuilder* builder;
	LDefaultAppsDbusBackend* dbus_backend;
	GKeyFile* kf;
	gchar* item;
	gchar* more_help;
	gchar* generic_item;
};

struct _Block9Data {
	int _ref_count_;
	LDefaultAppsDbusBackend* dbus_backend;
	GKeyFile* kf;
	gchar* item;
	gchar** more_list;
	gint more_list_length1;
};

struct _Block10Data {
	int _ref_count_;
	Block9Data * _data9_;
	gint a;
};

struct _Block11Data {
	int _ref_count_;
	Block10Data * _data10_;
	GtkEntry* manual_entry;
};

struct _Block12Data {
	int _ref_count_;
	Block10Data * _data10_;
	GtkEntry* entry;
};

struct _LDefaultAppsComboItemObject {
	GObject parent_instance;
	LDefaultAppsComboItemObjectPrivate * priv;
	gchar** tmp_item_array;
	gint tmp_item_array_length1;
};

struct _LDefaultAppsComboItemObjectClass {
	GObjectClass parent_class;
};

struct _LDefaultAppsComboItemObjectPrivate {
	gchar* _name;
	gchar* _exec;
	GtkImage* _icon;
	gchar* _icon_name;
	gchar* _desktop_path;
	gchar* _install_package;
};

struct _Block13Data {
	int _ref_count_;
	GtkComboBox* return_combobox;
	GtkListStore* list_store;
	GtkTreeIter iter;
	LDefaultAppsDbusBackend* dbus_backend;
	GKeyFile* kf;
	gchar* combobox_list_name;
};

struct _Block14Data {
	int _ref_count_;
	GtkWindow* window_mime;
};

struct _Block15Data {
	int _ref_count_;
	Block14Data * _data14_;
	gchar** mime_list;
	gint mime_list_length1;
	gint _mime_list_size_;
};

struct _Block16Data {
	int _ref_count_;
	Block15Data * _data15_;
	gchar* base_name;
};

struct _Block17Data {
	int _ref_count_;
	GtkListStore* list_store;
	GtkTreeIter iter;
	GtkComboBox* return_combobox;
	GtkBuilder* builder;
	gchar* entry_name;
};


static gpointer ldefault_apps_combo_item_object_parent_class = NULL;

GType ldefault_apps_dbus_backend_get_type (void) G_GNUC_CONST;
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);
void ldefault_apps_init_entry (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1);
void ldefault_apps_init_reload_button (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2);
void ldefault_apps_init_help_message (GtkBuilder* builder, const gchar* item, const gchar* message_label);
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);
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);
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);
gchar* ldefault_apps_dbus_backend_Get (LDefaultAppsDbusBackend* self, const gchar* key1, const gchar* key2);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (void * _userdata_);
static void __lambda7_ (Block5Data* _data5_);
void ldefault_apps_dbus_backend_Set (LDefaultAppsDbusBackend* self, const gchar* key1, const gchar* key2, const gchar* command_to_set);
static void ___lambda7__gtk_editable_changed (GtkEditable* _sender, gpointer self);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (void * _userdata_);
static void __lambda8_ (Block6Data* _data6_);
void ldefault_apps_dbus_backend_Launch (LDefaultAppsDbusBackend* self, const gchar* name, const gchar* option);
static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self);
static Block7Data* block7_data_ref (Block7Data* _data7_);
static void block7_data_unref (void * _userdata_);
static void __lambda9_ (Block7Data* _data7_);
static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self);
static Block8Data* block8_data_ref (Block8Data* _data8_);
static void block8_data_unref (void * _userdata_);
static gchar** _vala_array_dup2 (gchar** self, int length);
static void __lambda10_ (Block8Data* _data8_);
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);
static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self);
static Block9Data* block9_data_ref (Block9Data* _data9_);
static void block9_data_unref (void * _userdata_);
static Block10Data* block10_data_ref (Block10Data* _data10_);
static void block10_data_unref (void * _userdata_);
static Block11Data* block11_data_ref (Block11Data* _data11_);
static void block11_data_unref (void * _userdata_);
static void ______lambda11_ (Block11Data* _data11_);
static void _______lambda11__gtk_editable_changed (GtkEditable* _sender, gpointer self);
static void ______lambda12_ (Block10Data* _data10_);
gchar** ldefault_apps_get_mime_list (GKeyFile* kf, const gchar* key1, const gchar* mode, int* result_length1);
GType ldefault_apps_combo_item_object_get_type (void) G_GNUC_CONST;
LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_new (const gchar* item);
LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_construct (GType object_type, const gchar* item);
const gchar* ldefault_apps_combo_item_object_get_exec (LDefaultAppsComboItemObject* self);
const gchar* ldefault_apps_combo_item_object_get_desktop_path (LDefaultAppsComboItemObject* self);
void ldefault_apps_create_mime_associate_window (LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* combobox_list_name, const gchar* command);
static void _______lambda12__gtk_button_clicked (GtkButton* _sender, gpointer self);
const gchar* ldefault_apps_combo_item_object_get_icon_name (LDefaultAppsComboItemObject* self);
const gchar* ldefault_apps_combo_item_object_get_name (LDefaultAppsComboItemObject* self);
static void ______lambda15_ (Block10Data* _data10_);
static void _______lambda15__gtk_button_clicked (GtkButton* _sender, gpointer self);
static void ______lambda16_ (Block10Data* _data10_);
static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self);
static void ______lambda17_ (Block10Data* _data10_);
static void _______lambda17__gtk_button_clicked (GtkButton* _sender, gpointer self);
static Block12Data* block12_data_ref (Block12Data* _data12_);
static void block12_data_unref (void * _userdata_);
static void _______lambda18_ (Block12Data* _data12_);
static void ________lambda18__gtk_editable_changed (GtkEditable* _sender, gpointer self);
#define LDEFAULT_APPS_COMBO_ITEM_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObjectPrivate))
enum  {
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_DUMMY_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE
};
void ldefault_apps_combo_item_object_set_name (LDefaultAppsComboItemObject* self, const gchar* value);
void ldefault_apps_combo_item_object_set_exec (LDefaultAppsComboItemObject* self, const gchar* value);
GtkImage* ldefault_apps_combo_item_object_create_image (LDefaultAppsComboItemObject* self, const gchar* item_image_string);
void ldefault_apps_combo_item_object_set_icon (LDefaultAppsComboItemObject* self, GtkImage* value);
void ldefault_apps_combo_item_object_set_icon_name (LDefaultAppsComboItemObject* self, const gchar* value);
void ldefault_apps_combo_item_object_set_desktop_path (LDefaultAppsComboItemObject* self, const gchar* value);
void ldefault_apps_combo_item_object_set_install_package (LDefaultAppsComboItemObject* self, const gchar* value);
GtkImage* ldefault_apps_combo_item_object_get_icon (LDefaultAppsComboItemObject* self);
const gchar* ldefault_apps_combo_item_object_get_install_package (LDefaultAppsComboItemObject* self);
static void ldefault_apps_combo_item_object_finalize (GObject* obj);
static void _vala_ldefault_apps_combo_item_object_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_ldefault_apps_combo_item_object_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static Block13Data* block13_data_ref (Block13Data* _data13_);
static void block13_data_unref (void * _userdata_);
static void __lambda19_ (Block13Data* _data13_);
static void ___lambda19__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
static gboolean __lambda20_ (void);
static gboolean ___lambda20__gtk_widget_scroll_event (GtkWidget* _sender, GdkEventScroll* event, gpointer self);
static Block14Data* block14_data_ref (Block14Data* _data14_);
static void block14_data_unref (void * _userdata_);
static Block15Data* block15_data_ref (Block15Data* _data15_);
static void block15_data_unref (void * _userdata_);
static Block16Data* block16_data_ref (Block16Data* _data16_);
static void block16_data_unref (void * _userdata_);
static void _____lambda13_ (Block16Data* _data16_);
void ldefault_apps_save_mime_type (gchar** mime_list, int mime_list_length1, const gchar* base_name);
static void ______lambda13__gtk_button_clicked (GtkButton* _sender, gpointer self);
static void _____lambda14_ (Block16Data* _data16_);
static void ______lambda14__gtk_button_clicked (GtkButton* _sender, gpointer self);
GKeyFile* ldefault_apps_load_key_conf (const gchar* config_path_directory, const gchar* conf_name);
gchar* ldefault_apps_return_combobox_text (GtkComboBox* combo);
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);
static Block17Data* block17_data_ref (Block17Data* _data17_);
static void block17_data_unref (void * _userdata_);
static void __lambda21_ (Block17Data* _data17_);
static void ___lambda21__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


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) {
	GtkBuilder* _tmp0_ = NULL;
	LDefaultAppsDbusBackend* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GtkBuilder* _tmp3_ = NULL;
	LDefaultAppsDbusBackend* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GtkBuilder* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	GtkBuilder* _tmp10_ = NULL;
	LDefaultAppsDbusBackend* _tmp11_ = NULL;
	GKeyFile* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	gchar** _tmp14_ = NULL;
	gint _tmp14__length1 = 0;
	const gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	g_return_if_fail (builder != NULL);
	g_return_if_fail (kf != NULL);
	g_return_if_fail (dbus_backend != NULL);
	g_return_if_fail (key1 != NULL);
	g_return_if_fail (key2 != NULL);
	g_return_if_fail (message_help != NULL);
	g_return_if_fail (more_help != NULL);
	_tmp0_ = builder;
	_tmp1_ = dbus_backend;
	_tmp2_ = key1;
	ldefault_apps_init_entry (_tmp0_, _tmp1_, _tmp2_);
	_tmp3_ = builder;
	_tmp4_ = dbus_backend;
	_tmp5_ = key1;
	_tmp6_ = key2;
	ldefault_apps_init_reload_button (_tmp3_, _tmp4_, _tmp5_, _tmp6_);
	_tmp7_ = builder;
	_tmp8_ = key1;
	_tmp9_ = message_help;
	ldefault_apps_init_help_message (_tmp7_, _tmp8_, _tmp9_);
	_tmp10_ = builder;
	_tmp11_ = dbus_backend;
	_tmp12_ = kf;
	_tmp13_ = key1;
	_tmp14_ = more_list;
	_tmp14__length1 = more_list_length1;
	_tmp15_ = more_help;
	_tmp16_ = generic_item;
	ldefault_apps_init_more_button (_tmp10_, _tmp11_, _tmp12_, _tmp13_, _tmp14_, _tmp14__length1, _tmp15_, _tmp16_);
}


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) {
	GtkBuilder* _tmp0_ = NULL;
	LDefaultAppsDbusBackend* _tmp1_ = NULL;
	GKeyFile* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	LDefaultAppsDbusBackend* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	GtkComboBox* _tmp12_ = NULL;
	GtkComboBox* _tmp13_ = NULL;
	GtkBuilder* _tmp14_ = NULL;
	LDefaultAppsDbusBackend* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	GtkBuilder* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	GtkBuilder* _tmp21_ = NULL;
	LDefaultAppsDbusBackend* _tmp22_ = NULL;
	GKeyFile* _tmp23_ = NULL;
	const gchar* _tmp24_ = NULL;
	gchar** _tmp25_ = NULL;
	gint _tmp25__length1 = 0;
	const gchar* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	g_return_if_fail (builder != NULL);
	g_return_if_fail (kf != NULL);
	g_return_if_fail (dbus_backend != NULL);
	g_return_if_fail (key1 != NULL);
	g_return_if_fail (key2 != NULL);
	g_return_if_fail (message_help != NULL);
	g_return_if_fail (more_help != NULL);
	_tmp0_ = builder;
	_tmp1_ = dbus_backend;
	_tmp2_ = kf;
	_tmp3_ = key1;
	_tmp4_ = g_strconcat (_tmp3_, "_combobox", NULL);
	_tmp5_ = _tmp4_;
	_tmp6_ = key1;
	_tmp7_ = dbus_backend;
	_tmp8_ = key1;
	_tmp9_ = ldefault_apps_dbus_backend_Get (_tmp7_, _tmp8_, "command");
	_tmp10_ = _tmp9_;
	_tmp11_ = generic_item;
	_tmp12_ = ldefault_apps_init_combobox (_tmp0_, _tmp1_, _tmp2_, _tmp5_, _tmp6_, _tmp10_, _tmp11_);
	_tmp13_ = _tmp12_;
	_g_object_unref0 (_tmp13_);
	_g_free0 (_tmp10_);
	_g_free0 (_tmp5_);
	_tmp14_ = builder;
	_tmp15_ = dbus_backend;
	_tmp16_ = key1;
	_tmp17_ = key2;
	ldefault_apps_init_reload_button (_tmp14_, _tmp15_, _tmp16_, _tmp17_);
	_tmp18_ = builder;
	_tmp19_ = key1;
	_tmp20_ = message_help;
	ldefault_apps_init_help_message (_tmp18_, _tmp19_, _tmp20_);
	_tmp21_ = builder;
	_tmp22_ = dbus_backend;
	_tmp23_ = kf;
	_tmp24_ = key1;
	_tmp25_ = more_list;
	_tmp25__length1 = more_list_length1;
	_tmp26_ = more_help;
	_tmp27_ = generic_item;
	ldefault_apps_init_more_button (_tmp21_, _tmp22_, _tmp23_, _tmp24_, _tmp25_, _tmp25__length1, _tmp26_, _tmp27_);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static Block5Data* block5_data_ref (Block5Data* _data5_) {
	g_atomic_int_inc (&_data5_->_ref_count_);
	return _data5_;
}


static void block5_data_unref (void * _userdata_) {
	Block5Data* _data5_;
	_data5_ = (Block5Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
		_g_object_unref0 (_data5_->entry);
		_g_object_unref0 (_data5_->dbus_backend);
		_g_free0 (_data5_->key1);
		g_slice_free (Block5Data, _data5_);
	}
}


static void __lambda7_ (Block5Data* _data5_) {
	const gchar* _tmp0_ = NULL;
	_tmp0_ = gtk_entry_get_text (_data5_->entry);
	if (_tmp0_ != NULL) {
		LDefaultAppsDbusBackend* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		_tmp1_ = _data5_->dbus_backend;
		_tmp2_ = _data5_->key1;
		_tmp3_ = gtk_entry_get_text (_data5_->entry);
		ldefault_apps_dbus_backend_Set (_tmp1_, _tmp2_, "command", _tmp3_);
	}
}


static void ___lambda7__gtk_editable_changed (GtkEditable* _sender, gpointer self) {
	__lambda7_ (self);
}


void ldefault_apps_init_entry (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1) {
	Block5Data* _data5_;
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	LDefaultAppsDbusBackend* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* default_text = NULL;
	LDefaultAppsDbusBackend* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* entry_name = NULL;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GtkBuilder* _tmp9_ = NULL;
	GObject* _tmp10_ = NULL;
	GtkEntry* _tmp11_ = NULL;
	g_return_if_fail (builder != NULL);
	g_return_if_fail (dbus_backend != NULL);
	g_return_if_fail (key1 != NULL);
	_data5_ = g_slice_new0 (Block5Data);
	_data5_->_ref_count_ = 1;
	_tmp0_ = dbus_backend;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (_data5_->dbus_backend);
	_data5_->dbus_backend = _tmp1_;
	_tmp2_ = key1;
	_tmp3_ = g_strdup (_tmp2_);
	_g_free0 (_data5_->key1);
	_data5_->key1 = _tmp3_;
	_tmp4_ = _data5_->dbus_backend;
	_tmp5_ = _data5_->key1;
	_tmp6_ = ldefault_apps_dbus_backend_Get (_tmp4_, _tmp5_, "command");
	default_text = _tmp6_;
	_tmp7_ = _data5_->key1;
	_tmp8_ = g_strconcat (_tmp7_, "_entry", NULL);
	entry_name = _tmp8_;
	_tmp9_ = builder;
	_tmp10_ = gtk_builder_get_object (_tmp9_, entry_name);
	_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp10_) : NULL);
	_data5_->entry = _tmp11_;
	gtk_entry_set_text (_data5_->entry, default_text);
	g_signal_connect_data ((GtkEditable*) _data5_->entry, "changed", (GCallback) ___lambda7__gtk_editable_changed, block5_data_ref (_data5_), (GClosureNotify) block5_data_unref, 0);
	gtk_widget_show_all ((GtkWidget*) _data5_->entry);
	_g_free0 (entry_name);
	_g_free0 (default_text);
	block5_data_unref (_data5_);
	_data5_ = NULL;
}


static Block6Data* block6_data_ref (Block6Data* _data6_) {
	g_atomic_int_inc (&_data6_->_ref_count_);
	return _data6_;
}


static void block6_data_unref (void * _userdata_) {
	Block6Data* _data6_;
	_data6_ = (Block6Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
		_g_object_unref0 (_data6_->dbus_backend);
		_g_free0 (_data6_->key1);
		_g_free0 (_data6_->key2);
		g_slice_free (Block6Data, _data6_);
	}
}


static void __lambda8_ (Block6Data* _data6_) {
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	_tmp0_ = _data6_->dbus_backend;
	_tmp1_ = _data6_->key1;
	_tmp2_ = _data6_->key2;
	ldefault_apps_dbus_backend_Launch (_tmp0_, _tmp1_, _tmp2_);
}


static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	__lambda8_ (self);
}


void ldefault_apps_init_reload_button (GtkBuilder* builder, LDefaultAppsDbusBackend* dbus_backend, const gchar* key1, const gchar* key2) {
	Block6Data* _data6_;
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	LDefaultAppsDbusBackend* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	GtkButton* button = NULL;
	GtkBuilder* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	GObject* _tmp10_ = NULL;
	GtkButton* _tmp11_ = NULL;
	GtkButton* _tmp12_ = NULL;
	g_return_if_fail (builder != NULL);
	g_return_if_fail (dbus_backend != NULL);
	g_return_if_fail (key1 != NULL);
	g_return_if_fail (key2 != NULL);
	_data6_ = g_slice_new0 (Block6Data);
	_data6_->_ref_count_ = 1;
	_tmp0_ = dbus_backend;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (_data6_->dbus_backend);
	_data6_->dbus_backend = _tmp1_;
	_tmp2_ = key1;
	_tmp3_ = g_strdup (_tmp2_);
	_g_free0 (_data6_->key1);
	_data6_->key1 = _tmp3_;
	_tmp4_ = key2;
	_tmp5_ = g_strdup (_tmp4_);
	_g_free0 (_data6_->key2);
	_data6_->key2 = _tmp5_;
	_tmp6_ = builder;
	_tmp7_ = _data6_->key1;
	_tmp8_ = g_strconcat (_tmp7_, "_reload", NULL);
	_tmp9_ = _tmp8_;
	_tmp10_ = gtk_builder_get_object (_tmp6_, _tmp9_);
	_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp10_) : NULL);
	_tmp12_ = _tmp11_;
	_g_free0 (_tmp9_);
	button = _tmp12_;
	g_signal_connect_data (button, "clicked", (GCallback) ___lambda8__gtk_button_clicked, block6_data_ref (_data6_), (GClosureNotify) block6_data_unref, 0);
	_g_object_unref0 (button);
	block6_data_unref (_data6_);
	_data6_ = NULL;
}


static Block7Data* block7_data_ref (Block7Data* _data7_) {
	g_atomic_int_inc (&_data7_->_ref_count_);
	return _data7_;
}


static void block7_data_unref (void * _userdata_) {
	Block7Data* _data7_;
	_data7_ = (Block7Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
		_g_free0 (_data7_->message_label);
		g_slice_free (Block7Data, _data7_);
	}
}


static void __lambda9_ (Block7Data* _data7_) {
	GtkWindow* help_window = NULL;
	GtkWindow* _tmp0_ = NULL;
	GtkLabel* help_label = NULL;
	const gchar* _tmp6_ = NULL;
	GtkLabel* _tmp7_ = NULL;
	GError * _inner_error_ = NULL;
	_tmp0_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
	g_object_ref_sink (_tmp0_);
	help_window = _tmp0_;
	g_object_set (help_window, "window-position", GTK_WIN_POS_CENTER, NULL);
	gtk_window_set_default_size (help_window, 350, 70);
	gtk_window_set_skip_taskbar_hint (help_window, TRUE);
	{
		GdkPixbuf* _tmp1_ = NULL;
		GtkIconTheme* _tmp2_ = NULL;
		GdkPixbuf* _tmp3_ = NULL;
		_tmp2_ = gtk_icon_theme_get_default ();
		_tmp3_ = gtk_icon_theme_load_icon (_tmp2_, "preferences-desktop", 48, 0, &_inner_error_);
		_tmp1_ = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch10_g_error;
		}
		gtk_window_set_icon (help_window, _tmp1_);
		_g_object_unref0 (_tmp1_);
	}
	goto __finally10;
	__catch10_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		_tmp4_ = e;
		_tmp5_ = _tmp4_->message;
		g_message ("combobox.vala:90: Could not load application icon: %s\n", _tmp5_);
		_g_error_free0 (e);
	}
	__finally10:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_g_object_unref0 (help_window);
		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);
		g_clear_error (&_inner_error_);
		return;
	}
	_tmp6_ = _data7_->message_label;
	_tmp7_ = (GtkLabel*) gtk_label_new (_tmp6_);
	g_object_ref_sink (_tmp7_);
	help_label = _tmp7_;
	gtk_container_add ((GtkContainer*) help_window, (GtkWidget*) help_label);
	gtk_widget_show_all ((GtkWidget*) help_window);
	_g_object_unref0 (help_label);
	_g_object_unref0 (help_window);
}


static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	__lambda9_ (self);
}


void ldefault_apps_init_help_message (GtkBuilder* builder, const gchar* item, const gchar* message_label) {
	Block7Data* _data7_;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GtkButton* help_button = NULL;
	GtkBuilder* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	GObject* _tmp6_ = NULL;
	GtkButton* _tmp7_ = NULL;
	GtkButton* _tmp8_ = NULL;
	g_return_if_fail (builder != NULL);
	g_return_if_fail (item != NULL);
	g_return_if_fail (message_label != NULL);
	_data7_ = g_slice_new0 (Block7Data);
	_data7_->_ref_count_ = 1;
	_tmp0_ = message_label;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (_data7_->message_label);
	_data7_->message_label = _tmp1_;
	_tmp2_ = builder;
	_tmp3_ = item;
	_tmp4_ = g_strconcat (_tmp3_, "_help_button", NULL);
	_tmp5_ = _tmp4_;
	_tmp6_ = gtk_builder_get_object (_tmp2_, _tmp5_);
	_tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp6_) : NULL);
	_tmp8_ = _tmp7_;
	_g_free0 (_tmp5_);
	help_button = _tmp8_;
	g_signal_connect_data (help_button, "clicked", (GCallback) ___lambda9__gtk_button_clicked, block7_data_ref (_data7_), (GClosureNotify) block7_data_unref, 0);
	_g_object_unref0 (help_button);
	block7_data_unref (_data7_);
	_data7_ = NULL;
}


static Block8Data* block8_data_ref (Block8Data* _data8_) {
	g_atomic_int_inc (&_data8_->_ref_count_);
	return _data8_;
}


static void block8_data_unref (void * _userdata_) {
	Block8Data* _data8_;
	_data8_ = (Block8Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
		_data8_->more_list_copy = (_vala_array_free (_data8_->more_list_copy, _data8_->more_list_copy_length1, (GDestroyNotify) g_free), NULL);
		_g_object_unref0 (_data8_->builder);
		_g_object_unref0 (_data8_->dbus_backend);
		_g_free0 (_data8_->item);
		_g_free0 (_data8_->more_help);
		_g_free0 (_data8_->generic_item);
		g_slice_free (Block8Data, _data8_);
	}
}


static gchar** _vala_array_dup2 (gchar** self, int length) {
	gchar** result;
	int i;
	result = g_new0 (gchar*, length + 1);
	for (i = 0; i < length; i++) {
		gchar* _tmp0_ = NULL;
		_tmp0_ = g_strdup (self[i]);
		result[i] = _tmp0_;
	}
	return result;
}


static void __lambda10_ (Block8Data* _data8_) {
	GtkBuilder* _tmp0_ = NULL;
	LDefaultAppsDbusBackend* _tmp1_ = NULL;
	GKeyFile* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	_tmp0_ = _data8_->builder;
	_tmp1_ = _data8_->dbus_backend;
	_tmp2_ = _data8_->kf;
	_tmp3_ = _data8_->item;
	_tmp4_ = _data8_->more_help;
	_tmp5_ = _data8_->generic_item;
	ldefault_apps_init_windows_more (_tmp0_, _tmp1_, _tmp2_, _tmp3_, _data8_->more_list_copy, _data8_->more_list_copy_length1, _tmp4_, _tmp5_);
}


static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	__lambda10_ (self);
}


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) {
	Block8Data* _data8_;
	GtkBuilder* _tmp0_ = NULL;
	GtkBuilder* _tmp1_ = NULL;
	LDefaultAppsDbusBackend* _tmp2_ = NULL;
	LDefaultAppsDbusBackend* _tmp3_ = NULL;
	GKeyFile* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar** _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	gchar** _tmp12_ = NULL;
	gint _tmp12__length1 = 0;
	GtkButton* button = NULL;
	GtkBuilder* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	GObject* _tmp17_ = NULL;
	GtkButton* _tmp18_ = NULL;
	GtkButton* _tmp19_ = NULL;
	g_return_if_fail (builder != NULL);
	g_return_if_fail (dbus_backend != NULL);
	g_return_if_fail (kf != NULL);
	g_return_if_fail (item != NULL);
	g_return_if_fail (more_help != NULL);
	g_return_if_fail (generic_item != NULL);
	_data8_ = g_slice_new0 (Block8Data);
	_data8_->_ref_count_ = 1;
	_tmp0_ = builder;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (_data8_->builder);
	_data8_->builder = _tmp1_;
	_tmp2_ = dbus_backend;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	_g_object_unref0 (_data8_->dbus_backend);
	_data8_->dbus_backend = _tmp3_;
	_tmp4_ = kf;
	_data8_->kf = _tmp4_;
	_tmp5_ = item;
	_tmp6_ = g_strdup (_tmp5_);
	_g_free0 (_data8_->item);
	_data8_->item = _tmp6_;
	_tmp7_ = more_help;
	_tmp8_ = g_strdup (_tmp7_);
	_g_free0 (_data8_->more_help);
	_data8_->more_help = _tmp8_;
	_tmp9_ = generic_item;
	_tmp10_ = g_strdup (_tmp9_);
	_g_free0 (_data8_->generic_item);
	_data8_->generic_item = _tmp10_;
	_tmp11_ = more_list;
	_tmp11__length1 = more_list_length1;
	_tmp12_ = (_tmp11_ != NULL) ? _vala_array_dup2 (_tmp11_, _tmp11__length1) : ((gpointer) _tmp11_);
	_tmp12__length1 = _tmp11__length1;
	_data8_->more_list_copy = _tmp12_;
	_data8_->more_list_copy_length1 = _tmp12__length1;
	_data8_->_more_list_copy_size_ = _data8_->more_list_copy_length1;
	_tmp13_ = _data8_->builder;
	_tmp14_ = _data8_->item;
	_tmp15_ = g_strconcat (_tmp14_, "_more", NULL);
	_tmp16_ = _tmp15_;
	_tmp17_ = gtk_builder_get_object (_tmp13_, _tmp16_);
	_tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp17_) : NULL);
	_tmp19_ = _tmp18_;
	_g_free0 (_tmp16_);
	button = _tmp19_;
	g_signal_connect_data (button, "clicked", (GCallback) ___lambda10__gtk_button_clicked, block8_data_ref (_data8_), (GClosureNotify) block8_data_unref, 0);
	_g_object_unref0 (button);
	block8_data_unref (_data8_);
	_data8_ = NULL;
}


static Block9Data* block9_data_ref (Block9Data* _data9_) {
	g_atomic_int_inc (&_data9_->_ref_count_);
	return _data9_;
}


static void block9_data_unref (void * _userdata_) {
	Block9Data* _data9_;
	_data9_ = (Block9Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
		_g_object_unref0 (_data9_->dbus_backend);
		_g_free0 (_data9_->item);
		g_slice_free (Block9Data, _data9_);
	}
}


static Block10Data* block10_data_ref (Block10Data* _data10_) {
	g_atomic_int_inc (&_data10_->_ref_count_);
	return _data10_;
}


static void block10_data_unref (void * _userdata_) {
	Block10Data* _data10_;
	_data10_ = (Block10Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
		block9_data_unref (_data10_->_data9_);
		_data10_->_data9_ = NULL;
		g_slice_free (Block10Data, _data10_);
	}
}


static Block11Data* block11_data_ref (Block11Data* _data11_) {
	g_atomic_int_inc (&_data11_->_ref_count_);
	return _data11_;
}


static void block11_data_unref (void * _userdata_) {
	Block11Data* _data11_;
	_data11_ = (Block11Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
		_g_object_unref0 (_data11_->manual_entry);
		block10_data_unref (_data11_->_data10_);
		_data11_->_data10_ = NULL;
		g_slice_free (Block11Data, _data11_);
	}
}


static void ______lambda11_ (Block11Data* _data11_) {
	Block10Data* _data10_;
	Block9Data* _data9_;
	GtkEntry* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	_data10_ = _data11_->_data10_;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data11_->manual_entry;
	_tmp1_ = gtk_entry_get_text (_tmp0_);
	if (_tmp1_ != NULL) {
		LDefaultAppsDbusBackend* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GtkEntry* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		_tmp2_ = _data9_->dbus_backend;
		_tmp3_ = _data9_->item;
		_tmp4_ = _data11_->manual_entry;
		_tmp5_ = gtk_entry_get_text (_tmp4_);
		ldefault_apps_dbus_backend_Set (_tmp2_, _tmp3_, "command", _tmp5_);
	}
}


static void _______lambda11__gtk_editable_changed (GtkEditable* _sender, gpointer self) {
	______lambda11_ (self);
}


static void ______lambda12_ (Block10Data* _data10_) {
	Block9Data* _data9_;
	gchar** combobox_list = NULL;
	gint combobox_list_length1 = 0;
	gint _combobox_list_size_ = 0;
	GKeyFile* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gchar** _tmp3_ = NULL;
	gchar* default_path = NULL;
	gchar* _tmp4_ = NULL;
	gchar* default_exec = NULL;
	gchar* _tmp5_ = NULL;
	LDefaultAppsDbusBackend* _tmp28_ = NULL;
	GKeyFile* _tmp29_ = NULL;
	const gchar* _tmp30_ = NULL;
	const gchar* _tmp31_ = NULL;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data9_->kf;
	_tmp1_ = _data9_->item;
	_tmp3_ = ldefault_apps_get_mime_list (_tmp0_, _tmp1_, "installed", &_tmp2_);
	combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
	combobox_list = _tmp3_;
	combobox_list_length1 = _tmp2_;
	_combobox_list_size_ = combobox_list_length1;
	_tmp4_ = g_strdup ("");
	default_path = _tmp4_;
	_tmp5_ = g_strdup ("");
	default_exec = _tmp5_;
	{
		gint b = 0;
		b = 0;
		{
			gboolean _tmp6_ = FALSE;
			_tmp6_ = TRUE;
			while (TRUE) {
				gint _tmp8_ = 0;
				gchar** _tmp9_ = NULL;
				gint _tmp9__length1 = 0;
				gchar* item_list = NULL;
				gchar** _tmp10_ = NULL;
				gint _tmp10__length1 = 0;
				gint _tmp11_ = 0;
				const gchar* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				LDefaultAppsComboItemObject* combo_item = NULL;
				const gchar* _tmp14_ = NULL;
				LDefaultAppsComboItemObject* _tmp15_ = NULL;
				const gchar* _tmp16_ = NULL;
				LDefaultAppsComboItemObject* _tmp17_ = NULL;
				const gchar* _tmp18_ = NULL;
				const gchar* _tmp19_ = NULL;
				if (!_tmp6_) {
					gint _tmp7_ = 0;
					_tmp7_ = b;
					b = _tmp7_ + 1;
				}
				_tmp6_ = FALSE;
				_tmp8_ = b;
				_tmp9_ = combobox_list;
				_tmp9__length1 = combobox_list_length1;
				if (!(_tmp8_ < _tmp9__length1)) {
					break;
				}
				_tmp10_ = combobox_list;
				_tmp10__length1 = combobox_list_length1;
				_tmp11_ = b;
				_tmp12_ = _tmp10_[_tmp11_];
				_tmp13_ = g_strdup (_tmp12_);
				item_list = _tmp13_;
				_tmp14_ = item_list;
				_tmp15_ = ldefault_apps_combo_item_object_new (_tmp14_);
				combo_item = _tmp15_;
				_tmp16_ = _data9_->item;
				_tmp17_ = combo_item;
				_tmp18_ = ldefault_apps_combo_item_object_get_exec (_tmp17_);
				_tmp19_ = _tmp18_;
				if (g_strcmp0 (_tmp16_, _tmp19_) == 0) {
					LDefaultAppsComboItemObject* _tmp20_ = NULL;
					const gchar* _tmp21_ = NULL;
					const gchar* _tmp22_ = NULL;
					gchar* _tmp23_ = NULL;
					LDefaultAppsComboItemObject* _tmp24_ = NULL;
					const gchar* _tmp25_ = NULL;
					const gchar* _tmp26_ = NULL;
					gchar* _tmp27_ = NULL;
					_tmp20_ = combo_item;
					_tmp21_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp20_);
					_tmp22_ = _tmp21_;
					_tmp23_ = g_strdup (_tmp22_);
					_g_free0 (default_path);
					default_path = _tmp23_;
					_tmp24_ = combo_item;
					_tmp25_ = ldefault_apps_combo_item_object_get_exec (_tmp24_);
					_tmp26_ = _tmp25_;
					_tmp27_ = g_strdup (_tmp26_);
					_g_free0 (default_exec);
					default_exec = _tmp27_;
				}
				_g_object_unref0 (combo_item);
				_g_free0 (item_list);
			}
		}
	}
	_tmp28_ = _data9_->dbus_backend;
	_tmp29_ = _data9_->kf;
	_tmp30_ = _data9_->item;
	_tmp31_ = default_exec;
	ldefault_apps_create_mime_associate_window (_tmp28_, _tmp29_, _tmp30_, _tmp31_);
	_g_free0 (default_exec);
	_g_free0 (default_path);
	combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
}


static void _______lambda12__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	______lambda12_ (self);
}


static void ______lambda15_ (Block10Data* _data10_) {
	Block9Data* _data9_;
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data9_->dbus_backend;
	_tmp1_ = _data9_->item;
	ldefault_apps_dbus_backend_Set (_tmp0_, _tmp1_, "autostart", "true");
}


static void _______lambda15__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	______lambda15_ (self);
}


static void ______lambda16_ (Block10Data* _data10_) {
	Block9Data* _data9_;
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data9_->dbus_backend;
	ldefault_apps_dbus_backend_Set (_tmp0_, "desktop_manager", "command", "filemanager");
}


static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	______lambda16_ (self);
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	glong _tmp13_ = 0L;
	glong _tmp16_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	gchar* _tmp21_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = strlen (self);
	_tmp1_ = _tmp0_;
	string_length = (glong) _tmp1_;
	_tmp2_ = start;
	if (_tmp2_ < ((glong) 0)) {
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		_tmp3_ = string_length;
		_tmp4_ = start;
		start = _tmp3_ + _tmp4_;
	}
	_tmp5_ = end;
	if (_tmp5_ < ((glong) 0)) {
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
		_tmp6_ = string_length;
		_tmp7_ = end;
		end = _tmp6_ + _tmp7_;
	}
	_tmp9_ = start;
	if (_tmp9_ >= ((glong) 0)) {
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
		_tmp10_ = start;
		_tmp11_ = string_length;
		_tmp8_ = _tmp10_ <= _tmp11_;
	} else {
		_tmp8_ = FALSE;
	}
	g_return_val_if_fail (_tmp8_, NULL);
	_tmp13_ = end;
	if (_tmp13_ >= ((glong) 0)) {
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
		_tmp14_ = end;
		_tmp15_ = string_length;
		_tmp12_ = _tmp14_ <= _tmp15_;
	} else {
		_tmp12_ = FALSE;
	}
	g_return_val_if_fail (_tmp12_, NULL);
	_tmp16_ = start;
	_tmp17_ = end;
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
	_tmp18_ = start;
	_tmp19_ = end;
	_tmp20_ = start;
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
	result = _tmp21_;
	return result;
}


static void ______lambda17_ (Block10Data* _data10_) {
	Block9Data* _data9_;
	gchar* default_text = NULL;
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* default_command = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	const gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	GQuark _tmp14_ = 0U;
	static GQuark _tmp13_label0 = 0;
	static GQuark _tmp13_label1 = 0;
	GError * _inner_error_ = NULL;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data9_->dbus_backend;
	_tmp1_ = _data9_->item;
	_tmp2_ = ldefault_apps_dbus_backend_Get (_tmp0_, _tmp1_, "command");
	default_text = _tmp2_;
	_tmp3_ = default_text;
	_tmp4_ = string_slice (_tmp3_, (glong) 0, (glong) 1);
	_tmp5_ = _tmp4_;
	_tmp6_ = g_strcmp0 (_tmp5_, "/") == 0;
	_g_free0 (_tmp5_);
	if (_tmp6_) {
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		_tmp7_ = default_text;
		_tmp8_ = g_strdup (_tmp7_);
		_g_free0 (default_command);
		default_command = _tmp8_;
	} else {
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		_tmp9_ = default_text;
		_tmp10_ = g_strconcat ("/usr/bin/", _tmp9_, NULL);
		_g_free0 (default_command);
		default_command = _tmp10_;
	}
	_tmp11_ = _data9_->item;
	_tmp12_ = _tmp11_;
	_tmp14_ = (NULL == _tmp12_) ? 0 : g_quark_from_string (_tmp12_);
	if (_tmp14_ == ((0 != _tmp13_label0) ? _tmp13_label0 : (_tmp13_label0 = g_quark_from_static_string ("webbrowser")))) {
		switch (0) {
			default:
			{
				{
					const gchar* _tmp15_ = NULL;
					gchar* _tmp16_ = NULL;
					gchar* _tmp17_ = NULL;
					gchar* _tmp18_ = NULL;
					gchar* _tmp19_ = NULL;
					_tmp15_ = default_command;
					_tmp16_ = g_strconcat ("gksu \"update-alternatives --set x-www-browser ", _tmp15_, NULL);
					_tmp17_ = _tmp16_;
					_tmp18_ = g_strconcat (_tmp17_, "\"", NULL);
					_tmp19_ = _tmp18_;
					g_spawn_command_line_async (_tmp19_, &_inner_error_);
					_g_free0 (_tmp19_);
					_g_free0 (_tmp17_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == G_SPAWN_ERROR) {
							goto __catch12_g_spawn_error;
						}
						_g_free0 (default_command);
						_g_free0 (default_text);
						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);
						g_clear_error (&_inner_error_);
						return;
					}
				}
				goto __finally12;
				__catch12_g_spawn_error:
				{
					GError* err = NULL;
					GError* _tmp20_ = NULL;
					const gchar* _tmp21_ = NULL;
					err = _inner_error_;
					_inner_error_ = NULL;
					_tmp20_ = err;
					_tmp21_ = _tmp20_->message;
					g_warning ("combobox.vala:310: %s", _tmp21_);
					_g_error_free0 (err);
				}
				__finally12:
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					_g_free0 (default_command);
					_g_free0 (default_text);
					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);
					g_clear_error (&_inner_error_);
					return;
				}
				break;
			}
		}
	} else if (_tmp14_ == ((0 != _tmp13_label1) ? _tmp13_label1 : (_tmp13_label1 = g_quark_from_static_string ("terminal_manager")))) {
		switch (0) {
			default:
			{
				{
					const gchar* _tmp22_ = NULL;
					gchar* _tmp23_ = NULL;
					gchar* _tmp24_ = NULL;
					gchar* _tmp25_ = NULL;
					gchar* _tmp26_ = NULL;
					_tmp22_ = default_command;
					_tmp23_ = g_strconcat ("gksu \"update-alternatives --set x-terminal-emulator ", _tmp22_, NULL);
					_tmp24_ = _tmp23_;
					_tmp25_ = g_strconcat (_tmp24_, "\"", NULL);
					_tmp26_ = _tmp25_;
					g_spawn_command_line_async (_tmp26_, &_inner_error_);
					_g_free0 (_tmp26_);
					_g_free0 (_tmp24_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == G_SPAWN_ERROR) {
							goto __catch13_g_spawn_error;
						}
						_g_free0 (default_command);
						_g_free0 (default_text);
						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);
						g_clear_error (&_inner_error_);
						return;
					}
				}
				goto __finally13;
				__catch13_g_spawn_error:
				{
					GError* err = NULL;
					GError* _tmp27_ = NULL;
					const gchar* _tmp28_ = NULL;
					err = _inner_error_;
					_inner_error_ = NULL;
					_tmp27_ = err;
					_tmp28_ = _tmp27_->message;
					g_warning ("combobox.vala:322: %s", _tmp28_);
					_g_error_free0 (err);
				}
				__finally13:
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					_g_free0 (default_command);
					_g_free0 (default_text);
					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);
					g_clear_error (&_inner_error_);
					return;
				}
				break;
			}
		}
	}
	_g_free0 (default_command);
	_g_free0 (default_text);
}


static void _______lambda17__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	______lambda17_ (self);
}


static Block12Data* block12_data_ref (Block12Data* _data12_) {
	g_atomic_int_inc (&_data12_->_ref_count_);
	return _data12_;
}


static void block12_data_unref (void * _userdata_) {
	Block12Data* _data12_;
	_data12_ = (Block12Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
		_g_object_unref0 (_data12_->entry);
		block10_data_unref (_data12_->_data10_);
		_data12_->_data10_ = NULL;
		g_slice_free (Block12Data, _data12_);
	}
}


static void _______lambda18_ (Block12Data* _data12_) {
	Block10Data* _data10_;
	Block9Data* _data9_;
	GtkEntry* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	_data10_ = _data12_->_data10_;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data12_->entry;
	_tmp1_ = gtk_entry_get_text (_tmp0_);
	if (_tmp1_ != NULL) {
		LDefaultAppsDbusBackend* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
		gint _tmp5_ = 0;
		const gchar* _tmp6_ = NULL;
		GtkEntry* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		_tmp2_ = _data9_->dbus_backend;
		_tmp3_ = _data9_->item;
		_tmp4_ = _data9_->more_list;
		_tmp4__length1 = _data9_->more_list_length1;
		_tmp5_ = _data10_->a;
		_tmp6_ = _tmp4_[_tmp5_];
		_tmp7_ = _data12_->entry;
		_tmp8_ = gtk_entry_get_text (_tmp7_);
		ldefault_apps_dbus_backend_Set (_tmp2_, _tmp3_, _tmp6_, _tmp8_);
	}
}


static void ________lambda18__gtk_editable_changed (GtkEditable* _sender, gpointer self) {
	_______lambda18_ (self);
}


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) {
	Block9Data* _data9_;
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	LDefaultAppsDbusBackend* _tmp1_ = NULL;
	GKeyFile* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar** _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	GtkWindow* window = NULL;
	GtkWindow* _tmp6_ = NULL;
	GtkWindow* _tmp7_ = NULL;
	GtkWindow* _tmp8_ = NULL;
	GtkScrolledWindow* more_scrolled = NULL;
	GtkScrolledWindow* _tmp15_ = NULL;
	GtkScrolledWindow* _tmp16_ = NULL;
	GtkWindow* _tmp17_ = NULL;
	GtkScrolledWindow* _tmp18_ = NULL;
	GtkViewport* more_view_port = NULL;
	GtkViewport* _tmp19_ = NULL;
	GtkScrolledWindow* _tmp20_ = NULL;
	GtkViewport* _tmp21_ = NULL;
	GtkVBox* master_vbox = NULL;
	GtkVBox* _tmp22_ = NULL;
	GtkViewport* _tmp23_ = NULL;
	GtkVBox* _tmp24_ = NULL;
	GtkLabel* help_message = NULL;
	const gchar* _tmp25_ = NULL;
	GtkLabel* _tmp26_ = NULL;
	GtkVBox* _tmp27_ = NULL;
	GtkLabel* _tmp28_ = NULL;
	GtkWindow* _tmp183_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (builder != NULL);
	g_return_if_fail (dbus_backend != NULL);
	g_return_if_fail (kf != NULL);
	g_return_if_fail (item != NULL);
	g_return_if_fail (message_help != NULL);
	g_return_if_fail (generic_item != NULL);
	_data9_ = g_slice_new0 (Block9Data);
	_data9_->_ref_count_ = 1;
	_tmp0_ = dbus_backend;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (_data9_->dbus_backend);
	_data9_->dbus_backend = _tmp1_;
	_tmp2_ = kf;
	_data9_->kf = _tmp2_;
	_tmp3_ = item;
	_tmp4_ = g_strdup (_tmp3_);
	_g_free0 (_data9_->item);
	_data9_->item = _tmp4_;
	_tmp5_ = more_list;
	_tmp5__length1 = more_list_length1;
	_data9_->more_list = _tmp5_;
	_data9_->more_list_length1 = _tmp5__length1;
	_tmp6_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
	g_object_ref_sink (_tmp6_);
	window = _tmp6_;
	_tmp7_ = window;
	g_object_set (_tmp7_, "window-position", GTK_WIN_POS_CENTER, NULL);
	_tmp8_ = window;
	gtk_window_set_default_size (_tmp8_, 300, 500);
	{
		GdkPixbuf* _tmp9_ = NULL;
		GtkIconTheme* _tmp10_ = NULL;
		GdkPixbuf* _tmp11_ = NULL;
		GtkWindow* _tmp12_ = NULL;
		_tmp10_ = gtk_icon_theme_get_default ();
		_tmp11_ = gtk_icon_theme_load_icon (_tmp10_, "preferences-desktop", 48, 0, &_inner_error_);
		_tmp9_ = _tmp11_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch11_g_error;
		}
		_tmp12_ = window;
		gtk_window_set_icon (_tmp12_, _tmp9_);
		_g_object_unref0 (_tmp9_);
	}
	goto __finally11;
	__catch11_g_error:
	{
		GError* e = NULL;
		GError* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		_tmp13_ = e;
		_tmp14_ = _tmp13_->message;
		g_message ("combobox.vala:120: Could not load application icon: %s\n", _tmp14_);
		_g_error_free0 (e);
	}
	__finally11:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_g_object_unref0 (window);
		block9_data_unref (_data9_);
		_data9_ = NULL;
		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);
		g_clear_error (&_inner_error_);
		return;
	}
	_tmp15_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
	g_object_ref_sink (_tmp15_);
	more_scrolled = _tmp15_;
	_tmp16_ = more_scrolled;
	gtk_scrolled_window_set_policy (_tmp16_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
	_tmp17_ = window;
	_tmp18_ = more_scrolled;
	gtk_container_add ((GtkContainer*) _tmp17_, (GtkWidget*) _tmp18_);
	_tmp19_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
	g_object_ref_sink (_tmp19_);
	more_view_port = _tmp19_;
	_tmp20_ = more_scrolled;
	_tmp21_ = more_view_port;
	gtk_container_add ((GtkContainer*) _tmp20_, (GtkWidget*) _tmp21_);
	_tmp22_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
	g_object_ref_sink (_tmp22_);
	master_vbox = _tmp22_;
	_tmp23_ = more_view_port;
	_tmp24_ = master_vbox;
	gtk_container_add ((GtkContainer*) _tmp23_, (GtkWidget*) _tmp24_);
	_tmp25_ = message_help;
	_tmp26_ = (GtkLabel*) gtk_label_new (_tmp25_);
	g_object_ref_sink (_tmp26_);
	help_message = _tmp26_;
	_tmp27_ = master_vbox;
	_tmp28_ = help_message;
	gtk_container_add ((GtkContainer*) _tmp27_, (GtkWidget*) _tmp28_);
	{
		Block10Data* _data10_;
		_data10_ = g_slice_new0 (Block10Data);
		_data10_->_ref_count_ = 1;
		_data10_->_data9_ = block9_data_ref (_data9_);
		_data10_->a = 0;
		{
			gboolean _tmp29_ = FALSE;
			_tmp29_ = TRUE;
			while (TRUE) {
				gint _tmp31_ = 0;
				gchar** _tmp32_ = NULL;
				gint _tmp32__length1 = 0;
				gchar** _tmp33_ = NULL;
				gint _tmp33__length1 = 0;
				gint _tmp34_ = 0;
				const gchar* _tmp35_ = NULL;
				const gchar* _tmp36_ = NULL;
				GQuark _tmp38_ = 0U;
				static GQuark _tmp37_label0 = 0;
				static GQuark _tmp37_label1 = 0;
				static GQuark _tmp37_label2 = 0;
				static GQuark _tmp37_label3 = 0;
				static GQuark _tmp37_label4 = 0;
				static GQuark _tmp37_label5 = 0;
				if (!_tmp29_) {
					gint _tmp30_ = 0;
					_tmp30_ = _data10_->a;
					_data10_->a = _tmp30_ + 1;
				}
				_tmp29_ = FALSE;
				_tmp31_ = _data10_->a;
				_tmp32_ = _data9_->more_list;
				_tmp32__length1 = _data9_->more_list_length1;
				if (!(_tmp31_ < _tmp32__length1)) {
					break;
				}
				_tmp33_ = _data9_->more_list;
				_tmp33__length1 = _data9_->more_list_length1;
				_tmp34_ = _data10_->a;
				_tmp35_ = _tmp33_[_tmp34_];
				_tmp36_ = _tmp35_;
				_tmp38_ = (NULL == _tmp36_) ? 0 : g_quark_from_string (_tmp36_);
				if (_tmp38_ == ((0 != _tmp37_label0) ? _tmp37_label0 : (_tmp37_label0 = g_quark_from_static_string ("combobox_manual")))) {
					switch (0) {
						default:
						{
							Block11Data* _data11_;
							GtkHBox* box = NULL;
							GtkHBox* _tmp39_ = NULL;
							GtkVBox* _tmp40_ = NULL;
							GtkHBox* _tmp41_ = NULL;
							GtkLabel* label = NULL;
							const gchar* _tmp42_ = NULL;
							GtkLabel* _tmp43_ = NULL;
							GtkHBox* _tmp44_ = NULL;
							GtkLabel* _tmp45_ = NULL;
							gchar* default_text = NULL;
							LDefaultAppsDbusBackend* _tmp46_ = NULL;
							const gchar* _tmp47_ = NULL;
							gchar* _tmp48_ = NULL;
							GtkEntry* _tmp49_ = NULL;
							GtkEntry* _tmp50_ = NULL;
							const gchar* _tmp51_ = NULL;
							GtkEntry* _tmp52_ = NULL;
							GtkHBox* _tmp53_ = NULL;
							GtkEntry* _tmp54_ = NULL;
							_data11_ = g_slice_new0 (Block11Data);
							_data11_->_ref_count_ = 1;
							_data11_->_data10_ = block10_data_ref (_data10_);
							_tmp39_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
							g_object_ref_sink (_tmp39_);
							box = _tmp39_;
							_tmp40_ = master_vbox;
							_tmp41_ = box;
							gtk_container_add ((GtkContainer*) _tmp40_, (GtkWidget*) _tmp41_);
							_tmp42_ = _ ("Manual setting");
							_tmp43_ = (GtkLabel*) gtk_label_new (_tmp42_);
							g_object_ref_sink (_tmp43_);
							label = _tmp43_;
							_tmp44_ = box;
							_tmp45_ = label;
							gtk_container_add ((GtkContainer*) _tmp44_, (GtkWidget*) _tmp45_);
							_tmp46_ = _data9_->dbus_backend;
							_tmp47_ = _data9_->item;
							_tmp48_ = ldefault_apps_dbus_backend_Get (_tmp46_, _tmp47_, "command");
							default_text = _tmp48_;
							_tmp49_ = (GtkEntry*) gtk_entry_new ();
							g_object_ref_sink (_tmp49_);
							_data11_->manual_entry = _tmp49_;
							_tmp50_ = _data11_->manual_entry;
							_tmp51_ = default_text;
							gtk_entry_set_text (_tmp50_, _tmp51_);
							_tmp52_ = _data11_->manual_entry;
							g_signal_connect_data ((GtkEditable*) _tmp52_, "changed", (GCallback) _______lambda11__gtk_editable_changed, block11_data_ref (_data11_), (GClosureNotify) block11_data_unref, 0);
							_tmp53_ = box;
							_tmp54_ = _data11_->manual_entry;
							gtk_container_add ((GtkContainer*) _tmp53_, (GtkWidget*) _tmp54_);
							_g_free0 (default_text);
							_g_object_unref0 (label);
							_g_object_unref0 (box);
							block11_data_unref (_data11_);
							_data11_ = NULL;
							break;
						}
					}
				} else if (_tmp38_ == ((0 != _tmp37_label1) ? _tmp37_label1 : (_tmp37_label1 = g_quark_from_static_string ("mime_association")))) {
					switch (0) {
						default:
						{
							GtkHBox* box = NULL;
							GtkHBox* _tmp55_ = NULL;
							GtkVBox* _tmp56_ = NULL;
							GtkHBox* _tmp57_ = NULL;
							GtkLabel* label = NULL;
							const gchar* _tmp58_ = NULL;
							GtkLabel* _tmp59_ = NULL;
							GtkHBox* _tmp60_ = NULL;
							GtkLabel* _tmp61_ = NULL;
							GtkButton* button = NULL;
							const gchar* _tmp62_ = NULL;
							GtkButton* _tmp63_ = NULL;
							GtkButton* _tmp64_ = NULL;
							GtkHBox* _tmp65_ = NULL;
							GtkButton* _tmp66_ = NULL;
							_tmp55_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
							g_object_ref_sink (_tmp55_);
							box = _tmp55_;
							_tmp56_ = master_vbox;
							_tmp57_ = box;
							gtk_container_add ((GtkContainer*) _tmp56_, (GtkWidget*) _tmp57_);
							_tmp58_ = _ ("Mime Association");
							_tmp59_ = (GtkLabel*) gtk_label_new (_tmp58_);
							g_object_ref_sink (_tmp59_);
							label = _tmp59_;
							_tmp60_ = box;
							_tmp61_ = label;
							gtk_container_add ((GtkContainer*) _tmp60_, (GtkWidget*) _tmp61_);
							_tmp62_ = _ ("Apply");
							_tmp63_ = (GtkButton*) gtk_button_new_with_label (_tmp62_);
							g_object_ref_sink (_tmp63_);
							button = _tmp63_;
							_tmp64_ = button;
							g_signal_connect_data (_tmp64_, "clicked", (GCallback) _______lambda12__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
							_tmp65_ = box;
							_tmp66_ = button;
							gtk_container_add ((GtkContainer*) _tmp65_, (GtkWidget*) _tmp66_);
							_g_object_unref0 (button);
							_g_object_unref0 (label);
							_g_object_unref0 (box);
							break;
						}
					}
				} else if (_tmp38_ == ((0 != _tmp37_label2) ? _tmp37_label2 : (_tmp37_label2 = g_quark_from_static_string ("mime_available")))) {
					switch (0) {
						default:
						{
							GtkVBox* box = NULL;
							GtkVBox* _tmp67_ = NULL;
							GtkVBox* _tmp68_ = NULL;
							GtkVBox* _tmp69_ = NULL;
							GtkLabel* label = NULL;
							const gchar* _tmp70_ = NULL;
							GtkLabel* _tmp71_ = NULL;
							GtkVBox* _tmp72_ = NULL;
							GtkLabel* _tmp73_ = NULL;
							GtkListStore* list_store = NULL;
							GtkListStore* _tmp74_ = NULL;
							GtkTreeIter iter = {0};
							gchar** list = NULL;
							gint list_length1 = 0;
							gint _list_size_ = 0;
							const gchar* _tmp75_ = NULL;
							GtkTreeView* return_treeview = NULL;
							GtkListStore* _tmp104_ = NULL;
							GtkTreeView* _tmp105_ = NULL;
							GtkCellRendererPixbuf* renderer_image = NULL;
							GtkCellRendererPixbuf* _tmp106_ = NULL;
							GtkTreeView* _tmp107_ = NULL;
							GtkCellRendererPixbuf* _tmp108_ = NULL;
							GtkCellRendererText* renderer = NULL;
							GtkCellRendererText* _tmp109_ = NULL;
							GtkTreeView* _tmp110_ = NULL;
							GtkCellRendererText* _tmp111_ = NULL;
							GtkCellRendererPixbuf* renderer_apply = NULL;
							GtkCellRendererPixbuf* _tmp112_ = NULL;
							GtkTreeView* _tmp113_ = NULL;
							GtkCellRendererPixbuf* _tmp114_ = NULL;
							GtkVBox* _tmp115_ = NULL;
							GtkTreeView* _tmp116_ = NULL;
							_tmp67_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
							g_object_ref_sink (_tmp67_);
							box = _tmp67_;
							_tmp68_ = master_vbox;
							_tmp69_ = box;
							gtk_container_add ((GtkContainer*) _tmp68_, (GtkWidget*) _tmp69_);
							_tmp70_ = _ ("Available applications");
							_tmp71_ = (GtkLabel*) gtk_label_new (_tmp70_);
							g_object_ref_sink (_tmp71_);
							label = _tmp71_;
							_tmp72_ = box;
							_tmp73_ = label;
							gtk_container_add ((GtkContainer*) _tmp72_, (GtkWidget*) _tmp73_);
							_tmp74_ = gtk_list_store_new (3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
							list_store = _tmp74_;
							_tmp75_ = generic_item;
							if (_tmp75_ != NULL) {
								GKeyFile* _tmp76_ = NULL;
								const gchar* _tmp77_ = NULL;
								gint _tmp78_ = 0;
								gchar** _tmp79_ = NULL;
								_tmp76_ = _data9_->kf;
								_tmp77_ = generic_item;
								_tmp79_ = ldefault_apps_get_mime_list (_tmp76_, _tmp77_, "available", &_tmp78_);
								list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
								list = _tmp79_;
								list_length1 = _tmp78_;
								_list_size_ = list_length1;
							} else {
								GKeyFile* _tmp80_ = NULL;
								const gchar* _tmp81_ = NULL;
								gint _tmp82_ = 0;
								gchar** _tmp83_ = NULL;
								_tmp80_ = _data9_->kf;
								_tmp81_ = _data9_->item;
								_tmp83_ = ldefault_apps_get_mime_list (_tmp80_, _tmp81_, "available", &_tmp82_);
								list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
								list = _tmp83_;
								list_length1 = _tmp82_;
								_list_size_ = list_length1;
							}
							{
								gint c = 0;
								c = 0;
								{
									gboolean _tmp84_ = FALSE;
									_tmp84_ = TRUE;
									while (TRUE) {
										gint _tmp86_ = 0;
										gchar** _tmp87_ = NULL;
										gint _tmp87__length1 = 0;
										gchar* item_list = NULL;
										gchar** _tmp88_ = NULL;
										gint _tmp88__length1 = 0;
										gint _tmp89_ = 0;
										const gchar* _tmp90_ = NULL;
										gchar* _tmp91_ = NULL;
										LDefaultAppsComboItemObject* combo_item = NULL;
										const gchar* _tmp92_ = NULL;
										LDefaultAppsComboItemObject* _tmp93_ = NULL;
										GtkListStore* _tmp94_ = NULL;
										GtkTreeIter _tmp95_ = {0};
										GtkListStore* _tmp96_ = NULL;
										GtkTreeIter _tmp97_ = {0};
										LDefaultAppsComboItemObject* _tmp98_ = NULL;
										const gchar* _tmp99_ = NULL;
										const gchar* _tmp100_ = NULL;
										LDefaultAppsComboItemObject* _tmp101_ = NULL;
										const gchar* _tmp102_ = NULL;
										const gchar* _tmp103_ = NULL;
										if (!_tmp84_) {
											gint _tmp85_ = 0;
											_tmp85_ = c;
											c = _tmp85_ + 1;
										}
										_tmp84_ = FALSE;
										_tmp86_ = c;
										_tmp87_ = list;
										_tmp87__length1 = list_length1;
										if (!(_tmp86_ < _tmp87__length1)) {
											break;
										}
										_tmp88_ = list;
										_tmp88__length1 = list_length1;
										_tmp89_ = c;
										_tmp90_ = _tmp88_[_tmp89_];
										_tmp91_ = g_strdup (_tmp90_);
										item_list = _tmp91_;
										_tmp92_ = item_list;
										_tmp93_ = ldefault_apps_combo_item_object_new (_tmp92_);
										combo_item = _tmp93_;
										_tmp94_ = list_store;
										gtk_list_store_append (_tmp94_, &_tmp95_);
										iter = _tmp95_;
										_tmp96_ = list_store;
										_tmp97_ = iter;
										_tmp98_ = combo_item;
										_tmp99_ = ldefault_apps_combo_item_object_get_icon_name (_tmp98_);
										_tmp100_ = _tmp99_;
										_tmp101_ = combo_item;
										_tmp102_ = ldefault_apps_combo_item_object_get_name (_tmp101_);
										_tmp103_ = _tmp102_;
										gtk_list_store_set (_tmp96_, &_tmp97_, 0, _tmp100_, 1, _tmp103_, 2, "gtk-apply", -1);
										_g_object_unref0 (combo_item);
										_g_free0 (item_list);
									}
								}
							}
							_tmp104_ = list_store;
							_tmp105_ = (GtkTreeView*) gtk_tree_view_new_with_model ((GtkTreeModel*) _tmp104_);
							g_object_ref_sink (_tmp105_);
							return_treeview = _tmp105_;
							_tmp106_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
							g_object_ref_sink (_tmp106_);
							renderer_image = _tmp106_;
							_tmp107_ = return_treeview;
							_tmp108_ = renderer_image;
							gtk_tree_view_insert_column_with_attributes (_tmp107_, -1, "Icon", (GtkCellRenderer*) _tmp108_, "icon-name", 0, NULL);
							_tmp109_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
							g_object_ref_sink (_tmp109_);
							renderer = _tmp109_;
							_tmp110_ = return_treeview;
							_tmp111_ = renderer;
							gtk_tree_view_insert_column_with_attributes (_tmp110_, -1, "Name", (GtkCellRenderer*) _tmp111_, "text", 1, NULL);
							_tmp112_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
							g_object_ref_sink (_tmp112_);
							renderer_apply = _tmp112_;
							_tmp113_ = return_treeview;
							_tmp114_ = renderer_apply;
							gtk_tree_view_insert_column_with_attributes (_tmp113_, -1, "", (GtkCellRenderer*) _tmp114_, "icon-name", 2, NULL);
							_tmp115_ = box;
							_tmp116_ = return_treeview;
							gtk_container_add ((GtkContainer*) _tmp115_, (GtkWidget*) _tmp116_);
							_g_object_unref0 (renderer_apply);
							_g_object_unref0 (renderer);
							_g_object_unref0 (renderer_image);
							_g_object_unref0 (return_treeview);
							list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
							_g_object_unref0 (list_store);
							_g_object_unref0 (label);
							_g_object_unref0 (box);
							break;
						}
					}
				} else if (_tmp38_ == ((0 != _tmp37_label3) ? _tmp37_label3 : (_tmp37_label3 = g_quark_from_static_string ("autostart")))) {
					switch (0) {
						default:
						{
							GtkHBox* hbox = NULL;
							GtkHBox* _tmp117_ = NULL;
							GtkVBox* _tmp118_ = NULL;
							GtkHBox* _tmp119_ = NULL;
							GtkCheckButton* check_button = NULL;
							GtkCheckButton* _tmp120_ = NULL;
							GtkCheckButton* _tmp121_ = NULL;
							const gchar* _tmp122_ = NULL;
							gchar* default_text = NULL;
							LDefaultAppsDbusBackend* _tmp123_ = NULL;
							const gchar* _tmp124_ = NULL;
							gchar* _tmp125_ = NULL;
							const gchar* _tmp126_ = NULL;
							GtkCheckButton* _tmp129_ = NULL;
							GtkHBox* _tmp130_ = NULL;
							GtkCheckButton* _tmp131_ = NULL;
							_tmp117_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
							g_object_ref_sink (_tmp117_);
							hbox = _tmp117_;
							_tmp118_ = master_vbox;
							_tmp119_ = hbox;
							gtk_container_add ((GtkContainer*) _tmp118_, (GtkWidget*) _tmp119_);
							_tmp120_ = (GtkCheckButton*) gtk_check_button_new ();
							g_object_ref_sink (_tmp120_);
							check_button = _tmp120_;
							_tmp121_ = check_button;
							_tmp122_ = _ ("Autostart the application ?");
							gtk_button_set_label ((GtkButton*) _tmp121_, _tmp122_);
							_tmp123_ = _data9_->dbus_backend;
							_tmp124_ = _data9_->item;
							_tmp125_ = ldefault_apps_dbus_backend_Get (_tmp123_, _tmp124_, "autostart");
							default_text = _tmp125_;
							_tmp126_ = default_text;
							if (g_strcmp0 (_tmp126_, "true") == 0) {
								GtkCheckButton* _tmp127_ = NULL;
								_tmp127_ = check_button;
								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp127_, TRUE);
							} else {
								GtkCheckButton* _tmp128_ = NULL;
								_tmp128_ = check_button;
								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp128_, FALSE);
							}
							_tmp129_ = check_button;
							g_signal_connect_data ((GtkButton*) _tmp129_, "clicked", (GCallback) _______lambda15__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
							_tmp130_ = hbox;
							_tmp131_ = check_button;
							gtk_container_add ((GtkContainer*) _tmp130_, (GtkWidget*) _tmp131_);
							_g_free0 (default_text);
							_g_object_unref0 (check_button);
							_g_object_unref0 (hbox);
							break;
						}
					}
				} else if (_tmp38_ == ((0 != _tmp37_label4) ? _tmp37_label4 : (_tmp37_label4 = g_quark_from_static_string ("handle_desktop")))) {
					switch (0) {
						default:
						{
							GtkHBox* hbox = NULL;
							GtkHBox* _tmp132_ = NULL;
							GtkVBox* _tmp133_ = NULL;
							GtkHBox* _tmp134_ = NULL;
							GtkCheckButton* check_button = NULL;
							GtkCheckButton* _tmp135_ = NULL;
							GtkCheckButton* _tmp136_ = NULL;
							const gchar* _tmp137_ = NULL;
							gchar* default_text = NULL;
							LDefaultAppsDbusBackend* _tmp138_ = NULL;
							gchar* _tmp139_ = NULL;
							const gchar* _tmp140_ = NULL;
							GtkCheckButton* _tmp143_ = NULL;
							GtkHBox* _tmp144_ = NULL;
							GtkCheckButton* _tmp145_ = NULL;
							_tmp132_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
							g_object_ref_sink (_tmp132_);
							hbox = _tmp132_;
							_tmp133_ = master_vbox;
							_tmp134_ = hbox;
							gtk_container_add ((GtkContainer*) _tmp133_, (GtkWidget*) _tmp134_);
							_tmp135_ = (GtkCheckButton*) gtk_check_button_new ();
							g_object_ref_sink (_tmp135_);
							check_button = _tmp135_;
							_tmp136_ = check_button;
							_tmp137_ = _ ("Handle the desktop with it ?");
							gtk_button_set_label ((GtkButton*) _tmp136_, _tmp137_);
							_tmp138_ = _data9_->dbus_backend;
							_tmp139_ = ldefault_apps_dbus_backend_Get (_tmp138_, "desktop_manager", "command");
							default_text = _tmp139_;
							_tmp140_ = default_text;
							if (g_strcmp0 (_tmp140_, "filemanager") == 0) {
								GtkCheckButton* _tmp141_ = NULL;
								_tmp141_ = check_button;
								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp141_, TRUE);
							} else {
								GtkCheckButton* _tmp142_ = NULL;
								_tmp142_ = check_button;
								gtk_toggle_button_set_active ((GtkToggleButton*) _tmp142_, FALSE);
							}
							_tmp143_ = check_button;
							g_signal_connect_data ((GtkButton*) _tmp143_, "clicked", (GCallback) _______lambda16__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
							_tmp144_ = hbox;
							_tmp145_ = check_button;
							gtk_container_add ((GtkContainer*) _tmp144_, (GtkWidget*) _tmp145_);
							_g_free0 (default_text);
							_g_object_unref0 (check_button);
							_g_object_unref0 (hbox);
							break;
						}
					}
				} else if (_tmp38_ == ((0 != _tmp37_label5) ? _tmp37_label5 : (_tmp37_label5 = g_quark_from_static_string ("debian_default")))) {
					switch (0) {
						default:
						{
							GtkHBox* box = NULL;
							GtkHBox* _tmp146_ = NULL;
							GtkVBox* _tmp147_ = NULL;
							GtkHBox* _tmp148_ = NULL;
							GtkLabel* label = NULL;
							const gchar* _tmp149_ = NULL;
							GtkLabel* _tmp150_ = NULL;
							GtkHBox* _tmp151_ = NULL;
							GtkLabel* _tmp152_ = NULL;
							GtkButton* button = NULL;
							const gchar* _tmp153_ = NULL;
							GtkButton* _tmp154_ = NULL;
							GtkButton* _tmp155_ = NULL;
							GtkHBox* _tmp156_ = NULL;
							GtkButton* _tmp157_ = NULL;
							_tmp146_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
							g_object_ref_sink (_tmp146_);
							box = _tmp146_;
							_tmp147_ = master_vbox;
							_tmp148_ = box;
							gtk_container_add ((GtkContainer*) _tmp147_, (GtkWidget*) _tmp148_);
							_tmp149_ = _ ("Set debian default programs");
							_tmp150_ = (GtkLabel*) gtk_label_new (_tmp149_);
							g_object_ref_sink (_tmp150_);
							label = _tmp150_;
							_tmp151_ = box;
							_tmp152_ = label;
							gtk_container_add ((GtkContainer*) _tmp151_, (GtkWidget*) _tmp152_);
							_tmp153_ = _ ("Apply");
							_tmp154_ = (GtkButton*) gtk_button_new_with_label (_tmp153_);
							g_object_ref_sink (_tmp154_);
							button = _tmp154_;
							_tmp155_ = button;
							g_signal_connect_data (_tmp155_, "clicked", (GCallback) _______lambda17__gtk_button_clicked, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
							_tmp156_ = box;
							_tmp157_ = button;
							gtk_container_add ((GtkContainer*) _tmp156_, (GtkWidget*) _tmp157_);
							_g_object_unref0 (button);
							_g_object_unref0 (label);
							_g_object_unref0 (box);
							break;
						}
					}
				} else {
					switch (0) {
						default:
						{
							gchar** _tmp158_ = NULL;
							gint _tmp158__length1 = 0;
							gint _tmp159_ = 0;
							const gchar* _tmp160_ = NULL;
							_tmp158_ = _data9_->more_list;
							_tmp158__length1 = _data9_->more_list_length1;
							_tmp159_ = _data10_->a;
							_tmp160_ = _tmp158_[_tmp159_];
							if (_tmp160_ != NULL) {
								Block12Data* _data12_;
								GtkHBox* hbox = NULL;
								GtkHBox* _tmp161_ = NULL;
								GtkVBox* _tmp162_ = NULL;
								GtkHBox* _tmp163_ = NULL;
								GtkLabel* label = NULL;
								gchar** _tmp164_ = NULL;
								gint _tmp164__length1 = 0;
								gint _tmp165_ = 0;
								const gchar* _tmp166_ = NULL;
								GtkLabel* _tmp167_ = NULL;
								GtkHBox* _tmp168_ = NULL;
								GtkLabel* _tmp169_ = NULL;
								GtkEntry* _tmp170_ = NULL;
								gchar* default_text = NULL;
								LDefaultAppsDbusBackend* _tmp171_ = NULL;
								const gchar* _tmp172_ = NULL;
								gchar** _tmp173_ = NULL;
								gint _tmp173__length1 = 0;
								gint _tmp174_ = 0;
								const gchar* _tmp175_ = NULL;
								gchar* _tmp176_ = NULL;
								GtkEntry* _tmp177_ = NULL;
								const gchar* _tmp178_ = NULL;
								GtkEntry* _tmp179_ = NULL;
								GtkEntry* _tmp180_ = NULL;
								GtkHBox* _tmp181_ = NULL;
								GtkEntry* _tmp182_ = NULL;
								_data12_ = g_slice_new0 (Block12Data);
								_data12_->_ref_count_ = 1;
								_data12_->_data10_ = block10_data_ref (_data10_);
								_tmp161_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
								g_object_ref_sink (_tmp161_);
								hbox = _tmp161_;
								_tmp162_ = master_vbox;
								_tmp163_ = hbox;
								gtk_container_add ((GtkContainer*) _tmp162_, (GtkWidget*) _tmp163_);
								_tmp164_ = _data9_->more_list;
								_tmp164__length1 = _data9_->more_list_length1;
								_tmp165_ = _data10_->a;
								_tmp166_ = _tmp164_[_tmp165_];
								_tmp167_ = (GtkLabel*) gtk_label_new (_tmp166_);
								g_object_ref_sink (_tmp167_);
								label = _tmp167_;
								_tmp168_ = hbox;
								_tmp169_ = label;
								gtk_container_add ((GtkContainer*) _tmp168_, (GtkWidget*) _tmp169_);
								_tmp170_ = (GtkEntry*) gtk_entry_new ();
								g_object_ref_sink (_tmp170_);
								_data12_->entry = _tmp170_;
								_tmp171_ = _data9_->dbus_backend;
								_tmp172_ = _data9_->item;
								_tmp173_ = _data9_->more_list;
								_tmp173__length1 = _data9_->more_list_length1;
								_tmp174_ = _data10_->a;
								_tmp175_ = _tmp173_[_tmp174_];
								_tmp176_ = ldefault_apps_dbus_backend_Get (_tmp171_, _tmp172_, _tmp175_);
								default_text = _tmp176_;
								_tmp177_ = _data12_->entry;
								_tmp178_ = default_text;
								gtk_entry_set_text (_tmp177_, _tmp178_);
								_tmp179_ = _data12_->entry;
								g_signal_connect_data ((GtkEditable*) _tmp179_, "changed", (GCallback) ________lambda18__gtk_editable_changed, block12_data_ref (_data12_), (GClosureNotify) block12_data_unref, 0);
								_tmp180_ = _data12_->entry;
								gtk_widget_show_all ((GtkWidget*) _tmp180_);
								_tmp181_ = hbox;
								_tmp182_ = _data12_->entry;
								gtk_container_add ((GtkContainer*) _tmp181_, (GtkWidget*) _tmp182_);
								_g_free0 (default_text);
								_g_object_unref0 (label);
								_g_object_unref0 (hbox);
								block12_data_unref (_data12_);
								_data12_ = NULL;
							}
							break;
						}
					}
				}
			}
		}
		block10_data_unref (_data10_);
		_data10_ = NULL;
	}
	_tmp183_ = window;
	gtk_widget_show_all ((GtkWidget*) _tmp183_);
	_g_object_unref0 (help_message);
	_g_object_unref0 (master_vbox);
	_g_object_unref0 (more_view_port);
	_g_object_unref0 (more_scrolled);
	_g_object_unref0 (window);
	block9_data_unref (_data9_);
	_data9_ = NULL;
}


LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_construct (GType object_type, const gchar* item) {
	LDefaultAppsComboItemObject * self = NULL;
	const gchar* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gchar** _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	const gchar* _tmp4_ = NULL;
	gchar** _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	const gchar* _tmp6_ = NULL;
	gchar** _tmp7_ = NULL;
	gint _tmp7__length1 = 0;
	const gchar* _tmp8_ = NULL;
	GtkImage* _tmp9_ = NULL;
	GtkImage* _tmp10_ = NULL;
	gchar** _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	const gchar* _tmp12_ = NULL;
	gchar** _tmp13_ = NULL;
	gint _tmp13__length1 = 0;
	const gchar* _tmp14_ = NULL;
	gchar** _tmp15_ = NULL;
	gint _tmp15__length1 = 0;
	const gchar* _tmp16_ = NULL;
	g_return_val_if_fail (item != NULL, NULL);
	self = (LDefaultAppsComboItemObject*) g_object_new (object_type, NULL);
	_tmp0_ = item;
	_tmp2_ = _tmp1_ = g_strsplit_set (_tmp0_, ",", 0);
	self->tmp_item_array = (_vala_array_free (self->tmp_item_array, self->tmp_item_array_length1, (GDestroyNotify) g_free), NULL);
	self->tmp_item_array = _tmp2_;
	self->tmp_item_array_length1 = _vala_array_length (_tmp1_);
	_tmp3_ = self->tmp_item_array;
	_tmp3__length1 = self->tmp_item_array_length1;
	_tmp4_ = _tmp3_[0];
	ldefault_apps_combo_item_object_set_name (self, _tmp4_);
	_tmp5_ = self->tmp_item_array;
	_tmp5__length1 = self->tmp_item_array_length1;
	_tmp6_ = _tmp5_[1];
	ldefault_apps_combo_item_object_set_exec (self, _tmp6_);
	_tmp7_ = self->tmp_item_array;
	_tmp7__length1 = self->tmp_item_array_length1;
	_tmp8_ = _tmp7_[2];
	_tmp9_ = ldefault_apps_combo_item_object_create_image (self, _tmp8_);
	_tmp10_ = _tmp9_;
	ldefault_apps_combo_item_object_set_icon (self, _tmp10_);
	_g_object_unref0 (_tmp10_);
	_tmp11_ = self->tmp_item_array;
	_tmp11__length1 = self->tmp_item_array_length1;
	_tmp12_ = _tmp11_[2];
	ldefault_apps_combo_item_object_set_icon_name (self, _tmp12_);
	_tmp13_ = self->tmp_item_array;
	_tmp13__length1 = self->tmp_item_array_length1;
	_tmp14_ = _tmp13_[3];
	ldefault_apps_combo_item_object_set_desktop_path (self, _tmp14_);
	_tmp15_ = self->tmp_item_array;
	_tmp15__length1 = self->tmp_item_array_length1;
	_tmp16_ = _tmp15_[4];
	ldefault_apps_combo_item_object_set_install_package (self, _tmp16_);
	return self;
}


LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_new (const gchar* item) {
	return ldefault_apps_combo_item_object_construct (LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, item);
}


GtkImage* ldefault_apps_combo_item_object_create_image (LDefaultAppsComboItemObject* self, const gchar* item_image_string) {
	GtkImage* result = NULL;
	GtkImage* image = NULL;
	GtkImage* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (item_image_string != NULL, NULL);
	_tmp0_ = (GtkImage*) gtk_image_new ();
	g_object_ref_sink (_tmp0_);
	image = _tmp0_;
	_tmp1_ = item_image_string;
	_tmp2_ = string_slice (_tmp1_, (glong) 0, (glong) 1);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strcmp0 (_tmp3_, "/") == 0;
	_g_free0 (_tmp3_);
	if (_tmp4_) {
		GtkImage* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		_tmp5_ = image;
		_tmp6_ = item_image_string;
		gtk_image_set_from_file (_tmp5_, _tmp6_);
	} else {
		GtkImage* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		_tmp7_ = image;
		_tmp8_ = item_image_string;
		gtk_image_set_from_icon_name (_tmp7_, _tmp8_, GTK_ICON_SIZE_MENU);
	}
	result = image;
	return result;
}


const gchar* ldefault_apps_combo_item_object_get_name (LDefaultAppsComboItemObject* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_name;
	result = _tmp0_;
	return result;
}


void ldefault_apps_combo_item_object_set_name (LDefaultAppsComboItemObject* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_name);
	self->priv->_name = _tmp1_;
	g_object_notify ((GObject *) self, "name");
}


const gchar* ldefault_apps_combo_item_object_get_exec (LDefaultAppsComboItemObject* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_exec;
	result = _tmp0_;
	return result;
}


void ldefault_apps_combo_item_object_set_exec (LDefaultAppsComboItemObject* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_exec);
	self->priv->_exec = _tmp1_;
	g_object_notify ((GObject *) self, "exec");
}


GtkImage* ldefault_apps_combo_item_object_get_icon (LDefaultAppsComboItemObject* self) {
	GtkImage* result;
	GtkImage* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_icon;
	result = _tmp0_;
	return result;
}


void ldefault_apps_combo_item_object_set_icon (LDefaultAppsComboItemObject* self, GtkImage* value) {
	GtkImage* _tmp0_ = NULL;
	GtkImage* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->priv->_icon);
	self->priv->_icon = _tmp1_;
	g_object_notify ((GObject *) self, "icon");
}


const gchar* ldefault_apps_combo_item_object_get_icon_name (LDefaultAppsComboItemObject* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_icon_name;
	result = _tmp0_;
	return result;
}


void ldefault_apps_combo_item_object_set_icon_name (LDefaultAppsComboItemObject* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_icon_name);
	self->priv->_icon_name = _tmp1_;
	g_object_notify ((GObject *) self, "icon-name");
}


const gchar* ldefault_apps_combo_item_object_get_desktop_path (LDefaultAppsComboItemObject* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_desktop_path;
	result = _tmp0_;
	return result;
}


void ldefault_apps_combo_item_object_set_desktop_path (LDefaultAppsComboItemObject* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_desktop_path);
	self->priv->_desktop_path = _tmp1_;
	g_object_notify ((GObject *) self, "desktop-path");
}


const gchar* ldefault_apps_combo_item_object_get_install_package (LDefaultAppsComboItemObject* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_install_package;
	result = _tmp0_;
	return result;
}


void ldefault_apps_combo_item_object_set_install_package (LDefaultAppsComboItemObject* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_install_package);
	self->priv->_install_package = _tmp1_;
	g_object_notify ((GObject *) self, "install-package");
}


static void ldefault_apps_combo_item_object_class_init (LDefaultAppsComboItemObjectClass * klass) {
	ldefault_apps_combo_item_object_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (LDefaultAppsComboItemObjectPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_ldefault_apps_combo_item_object_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_ldefault_apps_combo_item_object_set_property;
	G_OBJECT_CLASS (klass)->finalize = ldefault_apps_combo_item_object_finalize;
	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));
	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));
	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));
	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));
	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));
	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));
}


static void ldefault_apps_combo_item_object_instance_init (LDefaultAppsComboItemObject * self) {
	self->priv = LDEFAULT_APPS_COMBO_ITEM_OBJECT_GET_PRIVATE (self);
}


static void ldefault_apps_combo_item_object_finalize (GObject* obj) {
	LDefaultAppsComboItemObject * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject);
	_g_free0 (self->priv->_name);
	_g_free0 (self->priv->_exec);
	_g_object_unref0 (self->priv->_icon);
	_g_free0 (self->priv->_icon_name);
	_g_free0 (self->priv->_desktop_path);
	_g_free0 (self->priv->_install_package);
	self->tmp_item_array = (_vala_array_free (self->tmp_item_array, self->tmp_item_array_length1, (GDestroyNotify) g_free), NULL);
	G_OBJECT_CLASS (ldefault_apps_combo_item_object_parent_class)->finalize (obj);
}


GType ldefault_apps_combo_item_object_get_type (void) {
	static volatile gsize ldefault_apps_combo_item_object_type_id__volatile = 0;
	if (g_once_init_enter (&ldefault_apps_combo_item_object_type_id__volatile)) {
		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 };
		GType ldefault_apps_combo_item_object_type_id;
		ldefault_apps_combo_item_object_type_id = g_type_register_static (G_TYPE_OBJECT, "LDefaultAppsComboItemObject", &g_define_type_info, 0);
		g_once_init_leave (&ldefault_apps_combo_item_object_type_id__volatile, ldefault_apps_combo_item_object_type_id);
	}
	return ldefault_apps_combo_item_object_type_id__volatile;
}


static void _vala_ldefault_apps_combo_item_object_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	LDefaultAppsComboItemObject * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject);
	switch (property_id) {
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_name (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_exec (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON:
		g_value_set_object (value, ldefault_apps_combo_item_object_get_icon (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_icon_name (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_desktop_path (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_install_package (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_ldefault_apps_combo_item_object_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	LDefaultAppsComboItemObject * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, LDEFAULT_APPS_TYPE_COMBO_ITEM_OBJECT, LDefaultAppsComboItemObject);
	switch (property_id) {
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME:
		ldefault_apps_combo_item_object_set_name (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC:
		ldefault_apps_combo_item_object_set_exec (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON:
		ldefault_apps_combo_item_object_set_icon (self, g_value_get_object (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME:
		ldefault_apps_combo_item_object_set_icon_name (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH:
		ldefault_apps_combo_item_object_set_desktop_path (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE:
		ldefault_apps_combo_item_object_set_install_package (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static Block13Data* block13_data_ref (Block13Data* _data13_) {
	g_atomic_int_inc (&_data13_->_ref_count_);
	return _data13_;
}


static void block13_data_unref (void * _userdata_) {
	Block13Data* _data13_;
	_data13_ = (Block13Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data13_->_ref_count_)) {
		_g_object_unref0 (_data13_->list_store);
		_g_object_unref0 (_data13_->return_combobox);
		_g_object_unref0 (_data13_->dbus_backend);
		_g_free0 (_data13_->combobox_list_name);
		g_slice_free (Block13Data, _data13_);
	}
}


static void __lambda19_ (Block13Data* _data13_) {
	GValue val1 = {0};
	GValue val2 = {0};
	GtkComboBox* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkListStore* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GValue _tmp4_ = {0};
	GtkListStore* _tmp5_ = NULL;
	GtkTreeIter _tmp6_ = {0};
	GValue _tmp7_ = {0};
	GValue _tmp8_ = {0};
	GValue _tmp9_ = {0};
	const gchar* _tmp10_ = NULL;
	LDefaultAppsDbusBackend* _tmp17_ = NULL;
	GKeyFile* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	_tmp0_ = _data13_->return_combobox;
	gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
	_data13_->iter = _tmp1_;
	_tmp2_ = _data13_->list_store;
	_tmp3_ = _data13_->iter;
	gtk_tree_model_get_value ((GtkTreeModel*) _tmp2_, &_tmp3_, 2, &_tmp4_);
	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
	val1 = _tmp4_;
	_tmp5_ = _data13_->list_store;
	_tmp6_ = _data13_->iter;
	gtk_tree_model_get_value ((GtkTreeModel*) _tmp5_, &_tmp6_, 3, &_tmp7_);
	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
	val2 = _tmp7_;
	_tmp8_ = val1;
	_tmp9_ = val2;
	g_message ("combobox.vala:515: Selection: %d, %s\n", g_value_get_int (&_tmp8_), g_value_get_string (&_tmp9_));
	_tmp10_ = g_value_get_string (&val2);
	if (_tmp10_ != NULL) {
		LDefaultAppsDbusBackend* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		GValue _tmp15_ = {0};
		GValue _tmp16_ = {0};
		_tmp11_ = _data13_->dbus_backend;
		_tmp12_ = _data13_->combobox_list_name;
		_tmp13_ = g_value_get_string (&val2);
		ldefault_apps_dbus_backend_Set (_tmp11_, _tmp12_, "command", _tmp13_);
		_tmp14_ = _data13_->combobox_list_name;
		_tmp15_ = val1;
		_tmp16_ = val2;
		g_message ("combobox.vala:520: Setting %s: %d, %s\n", _tmp14_, g_value_get_int (&_tmp15_), g_value_get_string (&_tmp16_));
	}
	_tmp17_ = _data13_->dbus_backend;
	_tmp18_ = _data13_->kf;
	_tmp19_ = _data13_->combobox_list_name;
	_tmp20_ = g_value_get_string (&val2);
	ldefault_apps_create_mime_associate_window (_tmp17_, _tmp18_, _tmp19_, _tmp20_);
	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
}


static void ___lambda19__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
	__lambda19_ (self);
}


static gboolean __lambda20_ (void) {
	gboolean result = FALSE;
	result = TRUE;
	return result;
}


static gboolean ___lambda20__gtk_widget_scroll_event (GtkWidget* _sender, GdkEventScroll* event, gpointer self) {
	gboolean result;
	result = __lambda20_ ();
	return result;
}


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) {
	GtkComboBox* result = NULL;
	Block13Data* _data13_;
	LDefaultAppsDbusBackend* _tmp0_ = NULL;
	LDefaultAppsDbusBackend* _tmp1_ = NULL;
	GKeyFile* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GtkBuilder* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GObject* _tmp7_ = NULL;
	GtkComboBox* _tmp8_ = NULL;
	GtkListStore* _tmp9_ = NULL;
	gint default_index = 0;
	gboolean default_set = FALSE;
	gchar** combobox_list = NULL;
	gint combobox_list_length1 = 0;
	gint _combobox_list_size_ = 0;
	const gchar* _tmp10_ = NULL;
	GtkListStore* _tmp19_ = NULL;
	GtkTreeIter _tmp20_ = {0};
	GtkListStore* _tmp21_ = NULL;
	GtkTreeIter _tmp22_ = {0};
	const gchar* _tmp23_ = NULL;
	const gchar* _tmp53_ = NULL;
	const gchar* _tmp54_ = NULL;
	gboolean _tmp55_ = FALSE;
	GtkComboBox* _tmp67_ = NULL;
	GtkListStore* _tmp68_ = NULL;
	GtkCellRendererPixbuf* renderer_image = NULL;
	GtkCellRendererPixbuf* _tmp69_ = NULL;
	GtkComboBox* _tmp70_ = NULL;
	GtkCellRendererPixbuf* _tmp71_ = NULL;
	GtkComboBox* _tmp72_ = NULL;
	GtkCellRendererPixbuf* _tmp73_ = NULL;
	GtkCellRendererText* renderer = NULL;
	GtkCellRendererText* _tmp74_ = NULL;
	GtkComboBox* _tmp75_ = NULL;
	GtkCellRendererText* _tmp76_ = NULL;
	GtkComboBox* _tmp77_ = NULL;
	GtkCellRendererText* _tmp78_ = NULL;
	GtkComboBox* _tmp79_ = NULL;
	gint _tmp80_ = 0;
	GtkComboBox* _tmp93_ = NULL;
	GtkComboBox* _tmp94_ = NULL;
	GtkComboBox* _tmp95_ = NULL;
	GtkComboBox* _tmp96_ = NULL;
	g_return_val_if_fail (builder != NULL, NULL);
	g_return_val_if_fail (dbus_backend != NULL, NULL);
	g_return_val_if_fail (kf != NULL, NULL);
	g_return_val_if_fail (combobox_name != NULL, NULL);
	g_return_val_if_fail (combobox_list_name != NULL, NULL);
	g_return_val_if_fail (by_default != NULL, NULL);
	_data13_ = g_slice_new0 (Block13Data);
	_data13_->_ref_count_ = 1;
	_tmp0_ = dbus_backend;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (_data13_->dbus_backend);
	_data13_->dbus_backend = _tmp1_;
	_tmp2_ = kf;
	_data13_->kf = _tmp2_;
	_tmp3_ = combobox_list_name;
	_tmp4_ = g_strdup (_tmp3_);
	_g_free0 (_data13_->combobox_list_name);
	_data13_->combobox_list_name = _tmp4_;
	_tmp5_ = builder;
	_tmp6_ = combobox_name;
	_tmp7_ = gtk_builder_get_object (_tmp5_, _tmp6_);
	_tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, GTK_TYPE_COMBO_BOX) ? ((GtkComboBox*) _tmp7_) : NULL);
	_data13_->return_combobox = _tmp8_;
	_tmp9_ = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING);
	_data13_->list_store = _tmp9_;
	default_index = -1;
	default_set = FALSE;
	_tmp10_ = generic_item;
	if (_tmp10_ != NULL) {
		GKeyFile* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		gint _tmp13_ = 0;
		gchar** _tmp14_ = NULL;
		_tmp11_ = _data13_->kf;
		_tmp12_ = generic_item;
		_tmp14_ = ldefault_apps_get_mime_list (_tmp11_, _tmp12_, "installed", &_tmp13_);
		combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
		combobox_list = _tmp14_;
		combobox_list_length1 = _tmp13_;
		_combobox_list_size_ = combobox_list_length1;
	} else {
		GKeyFile* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		gint _tmp17_ = 0;
		gchar** _tmp18_ = NULL;
		_tmp15_ = _data13_->kf;
		_tmp16_ = _data13_->combobox_list_name;
		_tmp18_ = ldefault_apps_get_mime_list (_tmp15_, _tmp16_, "installed", &_tmp17_);
		combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
		combobox_list = _tmp18_;
		combobox_list_length1 = _tmp17_;
		_combobox_list_size_ = combobox_list_length1;
	}
	_tmp19_ = _data13_->list_store;
	gtk_list_store_append (_tmp19_, &_tmp20_);
	_data13_->iter = _tmp20_;
	_tmp21_ = _data13_->list_store;
	_tmp22_ = _data13_->iter;
	_tmp23_ = _ ("Disable");
	gtk_list_store_set (_tmp21_, &_tmp22_, 0, "window-close", 1, _tmp23_, 2, 0, 3, "", -1);
	{
		gint a = 0;
		a = 0;
		{
			gboolean _tmp24_ = FALSE;
			_tmp24_ = TRUE;
			while (TRUE) {
				gint _tmp26_ = 0;
				gchar** _tmp27_ = NULL;
				gint _tmp27__length1 = 0;
				gchar* item_list = NULL;
				gchar** _tmp28_ = NULL;
				gint _tmp28__length1 = 0;
				gint _tmp29_ = 0;
				const gchar* _tmp30_ = NULL;
				gchar* _tmp31_ = NULL;
				LDefaultAppsComboItemObject* combo_item = NULL;
				const gchar* _tmp32_ = NULL;
				LDefaultAppsComboItemObject* _tmp33_ = NULL;
				GtkListStore* _tmp34_ = NULL;
				GtkTreeIter _tmp35_ = {0};
				GtkListStore* _tmp36_ = NULL;
				GtkTreeIter _tmp37_ = {0};
				LDefaultAppsComboItemObject* _tmp38_ = NULL;
				const gchar* _tmp39_ = NULL;
				const gchar* _tmp40_ = NULL;
				LDefaultAppsComboItemObject* _tmp41_ = NULL;
				const gchar* _tmp42_ = NULL;
				const gchar* _tmp43_ = NULL;
				gint _tmp44_ = 0;
				LDefaultAppsComboItemObject* _tmp45_ = NULL;
				const gchar* _tmp46_ = NULL;
				const gchar* _tmp47_ = NULL;
				LDefaultAppsComboItemObject* _tmp48_ = NULL;
				const gchar* _tmp49_ = NULL;
				const gchar* _tmp50_ = NULL;
				const gchar* _tmp51_ = NULL;
				if (!_tmp24_) {
					gint _tmp25_ = 0;
					_tmp25_ = a;
					a = _tmp25_ + 1;
				}
				_tmp24_ = FALSE;
				_tmp26_ = a;
				_tmp27_ = combobox_list;
				_tmp27__length1 = combobox_list_length1;
				if (!(_tmp26_ < _tmp27__length1)) {
					break;
				}
				_tmp28_ = combobox_list;
				_tmp28__length1 = combobox_list_length1;
				_tmp29_ = a;
				_tmp30_ = _tmp28_[_tmp29_];
				_tmp31_ = g_strdup (_tmp30_);
				item_list = _tmp31_;
				_tmp32_ = item_list;
				_tmp33_ = ldefault_apps_combo_item_object_new (_tmp32_);
				combo_item = _tmp33_;
				_tmp34_ = _data13_->list_store;
				gtk_list_store_append (_tmp34_, &_tmp35_);
				_data13_->iter = _tmp35_;
				_tmp36_ = _data13_->list_store;
				_tmp37_ = _data13_->iter;
				_tmp38_ = combo_item;
				_tmp39_ = ldefault_apps_combo_item_object_get_icon_name (_tmp38_);
				_tmp40_ = _tmp39_;
				_tmp41_ = combo_item;
				_tmp42_ = ldefault_apps_combo_item_object_get_name (_tmp41_);
				_tmp43_ = _tmp42_;
				_tmp44_ = a;
				_tmp45_ = combo_item;
				_tmp46_ = ldefault_apps_combo_item_object_get_exec (_tmp45_);
				_tmp47_ = _tmp46_;
				gtk_list_store_set (_tmp36_, &_tmp37_, 0, _tmp40_, 1, _tmp43_, 2, _tmp44_, 3, _tmp47_, -1);
				_tmp48_ = combo_item;
				_tmp49_ = ldefault_apps_combo_item_object_get_exec (_tmp48_);
				_tmp50_ = _tmp49_;
				_tmp51_ = by_default;
				if (g_strcmp0 (_tmp50_, _tmp51_) == 0) {
					gint _tmp52_ = 0;
					_tmp52_ = a;
					default_index = _tmp52_ + 1;
					default_set = TRUE;
				}
				_g_object_unref0 (combo_item);
				_g_free0 (item_list);
			}
		}
	}
	_tmp53_ = by_default;
	g_message ("combobox.vala:443: Defaut = %s", _tmp53_);
	_tmp54_ = by_default;
	if (g_strcmp0 (_tmp54_, "") == 0) {
		default_index = 0;
		default_set = TRUE;
	}
	_tmp55_ = default_set;
	if (_tmp55_ == FALSE) {
		GValue val = {0};
		gint last_position = 0;
		GtkListStore* _tmp56_ = NULL;
		GtkTreeIter _tmp57_ = {0};
		GtkListStore* _tmp58_ = NULL;
		GtkTreeIter _tmp59_ = {0};
		GValue _tmp60_ = {0};
		gint _tmp61_ = 0;
		GtkListStore* _tmp62_ = NULL;
		GtkTreeIter _tmp63_ = {0};
		const gchar* _tmp64_ = NULL;
		gint _tmp65_ = 0;
		const gchar* _tmp66_ = NULL;
		_tmp56_ = _data13_->list_store;
		gtk_list_store_append (_tmp56_, &_tmp57_);
		_data13_->iter = _tmp57_;
		_tmp58_ = _data13_->list_store;
		_tmp59_ = _data13_->iter;
		gtk_tree_model_get_value ((GtkTreeModel*) _tmp58_, &_tmp59_, 2, &_tmp60_);
		G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
		val = _tmp60_;
		_tmp61_ = g_value_get_int (&val);
		last_position = _tmp61_ + 1;
		_tmp62_ = _data13_->list_store;
		_tmp63_ = _data13_->iter;
		_tmp64_ = by_default;
		_tmp65_ = last_position;
		_tmp66_ = by_default;
		gtk_list_store_set (_tmp62_, &_tmp63_, 0, "", 1, _tmp64_, 2, _tmp65_, 3, _tmp66_, -1);
		G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
	}
	_tmp67_ = _data13_->return_combobox;
	_tmp68_ = _data13_->list_store;
	gtk_combo_box_set_model (_tmp67_, (GtkTreeModel*) _tmp68_);
	_tmp69_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
	g_object_ref_sink (_tmp69_);
	renderer_image = _tmp69_;
	_tmp70_ = _data13_->return_combobox;
	_tmp71_ = renderer_image;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp70_, (GtkCellRenderer*) _tmp71_, FALSE);
	_tmp72_ = _data13_->return_combobox;
	_tmp73_ = renderer_image;
	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp72_, (GtkCellRenderer*) _tmp73_, "icon-name", 0);
	_tmp74_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp74_);
	renderer = _tmp74_;
	_tmp75_ = _data13_->return_combobox;
	_tmp76_ = renderer;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp75_, (GtkCellRenderer*) _tmp76_, FALSE);
	_tmp77_ = _data13_->return_combobox;
	_tmp78_ = renderer;
	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp77_, (GtkCellRenderer*) _tmp78_, "text", 1);
	_tmp79_ = _data13_->return_combobox;
	gtk_combo_box_set_active (_tmp79_, 0);
	_tmp80_ = default_index;
	if (_tmp80_ == (-1)) {
		const gchar* _tmp81_ = NULL;
		const gchar* _tmp82_ = NULL;
		GQuark _tmp84_ = 0U;
		static GQuark _tmp83_label0 = 0;
		static GQuark _tmp83_label1 = 0;
		static GQuark _tmp83_label2 = 0;
		g_message ("combobox.vala:484: Iter == -1");
		_tmp81_ = by_default;
		_tmp82_ = _tmp81_;
		_tmp84_ = (NULL == _tmp82_) ? 0 : g_quark_from_string (_tmp82_);
		if (_tmp84_ == ((0 != _tmp83_label0) ? _tmp83_label0 : (_tmp83_label0 = g_quark_from_static_string (NULL)))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp85_ = NULL;
					_tmp85_ = _data13_->return_combobox;
					gtk_combo_box_set_active (_tmp85_, 0);
					break;
				}
			}
		} else if (_tmp84_ == ((0 != _tmp83_label1) ? _tmp83_label1 : (_tmp83_label1 = g_quark_from_static_string ("")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp86_ = NULL;
					_tmp86_ = _data13_->return_combobox;
					gtk_combo_box_set_active (_tmp86_, 0);
					break;
				}
			}
		} else if (_tmp84_ == ((0 != _tmp83_label2) ? _tmp83_label2 : (_tmp83_label2 = g_quark_from_static_string (" ")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp87_ = NULL;
					_tmp87_ = _data13_->return_combobox;
					gtk_combo_box_set_active (_tmp87_, 0);
					break;
				}
			}
		} else {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp88_ = NULL;
					GtkTreeIter _tmp89_ = {0};
					_tmp88_ = _data13_->return_combobox;
					_tmp89_ = _data13_->iter;
					gtk_combo_box_set_active_iter (_tmp88_, &_tmp89_);
					break;
				}
			}
		}
	} else {
		gint _tmp90_ = 0;
		GtkComboBox* _tmp91_ = NULL;
		gint _tmp92_ = 0;
		_tmp90_ = default_index;
		g_message ("combobox.vala:503: Iter == %d", _tmp90_);
		_tmp91_ = _data13_->return_combobox;
		_tmp92_ = default_index;
		gtk_combo_box_set_active (_tmp91_, _tmp92_);
	}
	_tmp93_ = _data13_->return_combobox;
	g_signal_connect_data (_tmp93_, "changed", (GCallback) ___lambda19__gtk_combo_box_changed, block13_data_ref (_data13_), (GClosureNotify) block13_data_unref, 0);
	_tmp94_ = _data13_->return_combobox;
	g_signal_connect ((GtkWidget*) _tmp94_, "scroll-event", (GCallback) ___lambda20__gtk_widget_scroll_event, NULL);
	_tmp95_ = _data13_->return_combobox;
	_tmp96_ = _g_object_ref0 (_tmp95_);
	result = _tmp96_;
	_g_object_unref0 (renderer);
	_g_object_unref0 (renderer_image);
	combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
	block13_data_unref (_data13_);
	_data13_ = NULL;
	return result;
}


static Block14Data* block14_data_ref (Block14Data* _data14_) {
	g_atomic_int_inc (&_data14_->_ref_count_);
	return _data14_;
}


static void block14_data_unref (void * _userdata_) {
	Block14Data* _data14_;
	_data14_ = (Block14Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data14_->_ref_count_)) {
		_g_object_unref0 (_data14_->window_mime);
		g_slice_free (Block14Data, _data14_);
	}
}


static Block15Data* block15_data_ref (Block15Data* _data15_) {
	g_atomic_int_inc (&_data15_->_ref_count_);
	return _data15_;
}


static void block15_data_unref (void * _userdata_) {
	Block15Data* _data15_;
	_data15_ = (Block15Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data15_->_ref_count_)) {
		_data15_->mime_list = (_vala_array_free (_data15_->mime_list, _data15_->mime_list_length1, (GDestroyNotify) g_free), NULL);
		block14_data_unref (_data15_->_data14_);
		_data15_->_data14_ = NULL;
		g_slice_free (Block15Data, _data15_);
	}
}


static Block16Data* block16_data_ref (Block16Data* _data16_) {
	g_atomic_int_inc (&_data16_->_ref_count_);
	return _data16_;
}


static void block16_data_unref (void * _userdata_) {
	Block16Data* _data16_;
	_data16_ = (Block16Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data16_->_ref_count_)) {
		_g_free0 (_data16_->base_name);
		block15_data_unref (_data16_->_data15_);
		_data16_->_data15_ = NULL;
		g_slice_free (Block16Data, _data16_);
	}
}


static void _____lambda13_ (Block16Data* _data16_) {
	Block15Data* _data15_;
	Block14Data* _data14_;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	const gchar* _tmp1_ = NULL;
	_data15_ = _data16_->_data15_;
	_data14_ = _data15_->_data14_;
	_tmp0_ = _data15_->mime_list;
	_tmp0__length1 = _data15_->mime_list_length1;
	_tmp1_ = _data16_->base_name;
	ldefault_apps_save_mime_type (_tmp0_, _tmp0__length1, _tmp1_);
	gtk_object_destroy ((GtkObject*) _data14_->window_mime);
}


static void ______lambda13__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	_____lambda13_ (self);
}


static void _____lambda14_ (Block16Data* _data16_) {
	Block15Data* _data15_;
	Block14Data* _data14_;
	_data15_ = _data16_->_data15_;
	_data14_ = _data15_->_data14_;
	gtk_object_destroy ((GtkObject*) _data14_->window_mime);
}


static void ______lambda14__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	_____lambda14_ (self);
}


void ldefault_apps_create_mime_associate_window (LDefaultAppsDbusBackend* dbus_backend, GKeyFile* kf, const gchar* combobox_list_name, const gchar* command) {
	Block14Data* _data14_;
	GtkWindow* _tmp0_ = NULL;
	GtkScrolledWindow* scrolled = NULL;
	GtkScrolledWindow* _tmp6_ = NULL;
	GtkScrolledWindow* _tmp7_ = NULL;
	GtkScrolledWindow* _tmp8_ = NULL;
	GtkViewport* mime_view_port = NULL;
	GtkViewport* _tmp9_ = NULL;
	GtkViewport* _tmp10_ = NULL;
	GtkScrolledWindow* _tmp11_ = NULL;
	GtkViewport* _tmp12_ = NULL;
	GtkVBox* mime_vbox = NULL;
	GtkVBox* _tmp13_ = NULL;
	GtkViewport* _tmp14_ = NULL;
	GtkVBox* _tmp15_ = NULL;
	GtkLabel* info_label = NULL;
	const gchar* _tmp16_ = NULL;
	GtkLabel* _tmp17_ = NULL;
	GtkVBox* _tmp18_ = NULL;
	GtkLabel* _tmp19_ = NULL;
	gchar** mime_combobox_list = NULL;
	gint mime_combobox_list_length1 = 0;
	gint _mime_combobox_list_size_ = 0;
	GKeyFile* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	gint _tmp22_ = 0;
	gchar** _tmp23_ = NULL;
	gchar* default_path = NULL;
	gchar* _tmp24_ = NULL;
	const gchar* _tmp50_ = NULL;
	const gchar* _tmp51_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (dbus_backend != NULL);
	g_return_if_fail (kf != NULL);
	g_return_if_fail (combobox_list_name != NULL);
	g_return_if_fail (command != NULL);
	_data14_ = g_slice_new0 (Block14Data);
	_data14_->_ref_count_ = 1;
	_tmp0_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
	g_object_ref_sink (_tmp0_);
	_data14_->window_mime = _tmp0_;
	g_object_set (_data14_->window_mime, "window-position", GTK_WIN_POS_CENTER, NULL);
	gtk_window_set_default_size (_data14_->window_mime, 400, 200);
	gtk_window_set_skip_taskbar_hint (_data14_->window_mime, TRUE);
	{
		GdkPixbuf* _tmp1_ = NULL;
		GtkIconTheme* _tmp2_ = NULL;
		GdkPixbuf* _tmp3_ = NULL;
		_tmp2_ = gtk_icon_theme_get_default ();
		_tmp3_ = gtk_icon_theme_load_icon (_tmp2_, "preferences-desktop", 48, 0, &_inner_error_);
		_tmp1_ = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch14_g_error;
		}
		gtk_window_set_icon (_data14_->window_mime, _tmp1_);
		_g_object_unref0 (_tmp1_);
	}
	goto __finally14;
	__catch14_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		_tmp4_ = e;
		_tmp5_ = _tmp4_->message;
		g_message ("combobox.vala:549: Could not load application icon: %s\n", _tmp5_);
		_g_error_free0 (e);
	}
	__finally14:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		block14_data_unref (_data14_);
		_data14_ = NULL;
		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);
		g_clear_error (&_inner_error_);
		return;
	}
	_tmp6_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
	g_object_ref_sink (_tmp6_);
	scrolled = _tmp6_;
	_tmp7_ = scrolled;
	gtk_scrolled_window_set_policy (_tmp7_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
	_tmp8_ = scrolled;
	gtk_container_add ((GtkContainer*) _data14_->window_mime, (GtkWidget*) _tmp8_);
	_tmp9_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
	g_object_ref_sink (_tmp9_);
	mime_view_port = _tmp9_;
	_tmp10_ = mime_view_port;
	gtk_widget_set_size_request ((GtkWidget*) _tmp10_, 200, 200);
	_tmp11_ = scrolled;
	_tmp12_ = mime_view_port;
	gtk_container_add ((GtkContainer*) _tmp11_, (GtkWidget*) _tmp12_);
	_tmp13_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
	g_object_ref_sink (_tmp13_);
	mime_vbox = _tmp13_;
	_tmp14_ = mime_view_port;
	_tmp15_ = mime_vbox;
	gtk_container_add ((GtkContainer*) _tmp14_, (GtkWidget*) _tmp15_);
	_tmp16_ = _ ("Do you want to assiociate the following Mimetype ?\n");
	_tmp17_ = (GtkLabel*) gtk_label_new (_tmp16_);
	g_object_ref_sink (_tmp17_);
	info_label = _tmp17_;
	_tmp18_ = mime_vbox;
	_tmp19_ = info_label;
	gtk_container_add ((GtkContainer*) _tmp18_, (GtkWidget*) _tmp19_);
	_tmp20_ = kf;
	_tmp21_ = combobox_list_name;
	_tmp23_ = ldefault_apps_get_mime_list (_tmp20_, _tmp21_, "installed", &_tmp22_);
	mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
	mime_combobox_list = _tmp23_;
	mime_combobox_list_length1 = _tmp22_;
	_mime_combobox_list_size_ = mime_combobox_list_length1;
	_tmp24_ = g_strdup ("");
	default_path = _tmp24_;
	{
		gint b = 0;
		b = 0;
		{
			gboolean _tmp25_ = FALSE;
			_tmp25_ = TRUE;
			while (TRUE) {
				gint _tmp27_ = 0;
				gchar** _tmp28_ = NULL;
				gint _tmp28__length1 = 0;
				gchar* item_list = NULL;
				gchar** _tmp29_ = NULL;
				gint _tmp29__length1 = 0;
				gint _tmp30_ = 0;
				const gchar* _tmp31_ = NULL;
				gchar* _tmp32_ = NULL;
				LDefaultAppsComboItemObject* combo_item = NULL;
				const gchar* _tmp33_ = NULL;
				LDefaultAppsComboItemObject* _tmp34_ = NULL;
				LDefaultAppsComboItemObject* _tmp35_ = NULL;
				const gchar* _tmp36_ = NULL;
				const gchar* _tmp37_ = NULL;
				const gchar* _tmp38_ = NULL;
				LDefaultAppsComboItemObject* _tmp39_ = NULL;
				const gchar* _tmp40_ = NULL;
				const gchar* _tmp41_ = NULL;
				const gchar* _tmp42_ = NULL;
				LDefaultAppsComboItemObject* _tmp43_ = NULL;
				const gchar* _tmp44_ = NULL;
				const gchar* _tmp45_ = NULL;
				if (!_tmp25_) {
					gint _tmp26_ = 0;
					_tmp26_ = b;
					b = _tmp26_ + 1;
				}
				_tmp25_ = FALSE;
				_tmp27_ = b;
				_tmp28_ = mime_combobox_list;
				_tmp28__length1 = mime_combobox_list_length1;
				if (!(_tmp27_ < _tmp28__length1)) {
					break;
				}
				_tmp29_ = mime_combobox_list;
				_tmp29__length1 = mime_combobox_list_length1;
				_tmp30_ = b;
				_tmp31_ = _tmp29_[_tmp30_];
				_tmp32_ = g_strdup (_tmp31_);
				item_list = _tmp32_;
				_tmp33_ = item_list;
				_tmp34_ = ldefault_apps_combo_item_object_new (_tmp33_);
				combo_item = _tmp34_;
				_tmp35_ = combo_item;
				_tmp36_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp35_);
				_tmp37_ = _tmp36_;
				g_message ("combobox.vala:575: combo_item.desktop_path: %s", _tmp37_);
				_tmp38_ = combobox_list_name;
				g_message ("combobox.vala:576: combobox_list_name: %s", _tmp38_);
				_tmp39_ = combo_item;
				_tmp40_ = ldefault_apps_combo_item_object_get_exec (_tmp39_);
				_tmp41_ = _tmp40_;
				g_message ("combobox.vala:577: combo_item.exec: %s", _tmp41_);
				_tmp42_ = command;
				_tmp43_ = combo_item;
				_tmp44_ = ldefault_apps_combo_item_object_get_exec (_tmp43_);
				_tmp45_ = _tmp44_;
				if (g_strcmp0 (_tmp42_, _tmp45_) == 0) {
					LDefaultAppsComboItemObject* _tmp46_ = NULL;
					const gchar* _tmp47_ = NULL;
					const gchar* _tmp48_ = NULL;
					gchar* _tmp49_ = NULL;
					_tmp46_ = combo_item;
					_tmp47_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp46_);
					_tmp48_ = _tmp47_;
					_tmp49_ = g_strdup (_tmp48_);
					_g_free0 (default_path);
					default_path = _tmp49_;
				}
				_g_object_unref0 (combo_item);
				_g_free0 (item_list);
			}
		}
	}
	_tmp50_ = default_path;
	g_message ("combobox.vala:585: Look at default_path: %s", _tmp50_);
	_tmp51_ = default_path;
	if (g_strcmp0 (_tmp51_, "") != 0) {
		Block15Data* _data15_;
		GKeyFile* kf_mime = NULL;
		GKeyFile* _tmp52_ = NULL;
		_data15_ = g_slice_new0 (Block15Data);
		_data15_->_ref_count_ = 1;
		_data15_->_data14_ = block14_data_ref (_data14_);
		_tmp52_ = g_key_file_new ();
		kf_mime = _tmp52_;
		{
			GKeyFile* _tmp53_ = NULL;
			const gchar* _tmp54_ = NULL;
			_tmp53_ = kf_mime;
			_tmp54_ = default_path;
			g_key_file_load_from_file (_tmp53_, _tmp54_, G_KEY_FILE_NONE, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == G_KEY_FILE_ERROR) {
					goto __catch15_g_key_file_error;
				}
				if (_inner_error_->domain == G_FILE_ERROR) {
					goto __catch15_g_file_error;
				}
				_g_key_file_free0 (kf_mime);
				block15_data_unref (_data15_);
				_data15_ = NULL;
				_g_free0 (default_path);
				mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
				_g_object_unref0 (info_label);
				_g_object_unref0 (mime_vbox);
				_g_object_unref0 (mime_view_port);
				_g_object_unref0 (scrolled);
				block14_data_unref (_data14_);
				_data14_ = NULL;
				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);
				g_clear_error (&_inner_error_);
				return;
			}
		}
		goto __finally15;
		__catch15_g_key_file_error:
		{
			GError* err = NULL;
			GError* _tmp55_ = NULL;
			const gchar* _tmp56_ = NULL;
			err = _inner_error_;
			_inner_error_ = NULL;
			_tmp55_ = err;
			_tmp56_ = _tmp55_->message;
			g_warning ("combobox.vala:597: %s", _tmp56_);
			_g_error_free0 (err);
		}
		goto __finally15;
		__catch15_g_file_error:
		{
			GError* err = NULL;
			GError* _tmp57_ = NULL;
			const gchar* _tmp58_ = NULL;
			err = _inner_error_;
			_inner_error_ = NULL;
			_tmp57_ = err;
			_tmp58_ = _tmp57_->message;
			g_warning ("combobox.vala:601: %s", _tmp58_);
			_g_error_free0 (err);
		}
		__finally15:
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_key_file_free0 (kf_mime);
			block15_data_unref (_data15_);
			_data15_ = NULL;
			_g_free0 (default_path);
			mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
			_g_object_unref0 (info_label);
			_g_object_unref0 (mime_vbox);
			_g_object_unref0 (mime_view_port);
			_g_object_unref0 (scrolled);
			block14_data_unref (_data14_);
			_data14_ = NULL;
			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);
			g_clear_error (&_inner_error_);
			return;
		}
		{
			gchar** _tmp59_ = NULL;
			GKeyFile* _tmp60_ = NULL;
			gsize _tmp61_;
			gchar** _tmp62_ = NULL;
			gint _tmp59__length1 = 0;
			gint __tmp59__size_ = 0;
			gchar** _tmp63_ = NULL;
			gint _tmp63__length1 = 0;
			gchar** _tmp64_ = NULL;
			gint _tmp64__length1 = 0;
			_tmp60_ = kf_mime;
			_tmp62_ = g_key_file_get_string_list (_tmp60_, "Desktop Entry", "MimeType", &_tmp61_, &_inner_error_);
			_tmp59_ = _tmp62_;
			_tmp59__length1 = _tmp61_;
			__tmp59__size_ = _tmp59__length1;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == G_KEY_FILE_ERROR) {
					goto __catch16_g_key_file_error;
				}
				_g_key_file_free0 (kf_mime);
				block15_data_unref (_data15_);
				_data15_ = NULL;
				_g_free0 (default_path);
				mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
				_g_object_unref0 (info_label);
				_g_object_unref0 (mime_vbox);
				_g_object_unref0 (mime_view_port);
				_g_object_unref0 (scrolled);
				block14_data_unref (_data14_);
				_data14_ = NULL;
				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);
				g_clear_error (&_inner_error_);
				return;
			}
			_tmp63_ = _tmp59_;
			_tmp63__length1 = _tmp59__length1;
			_tmp59_ = NULL;
			_tmp59__length1 = 0;
			_data15_->mime_list = (_vala_array_free (_data15_->mime_list, _data15_->mime_list_length1, (GDestroyNotify) g_free), NULL);
			_data15_->mime_list = _tmp63_;
			_data15_->mime_list_length1 = _tmp63__length1;
			_data15_->_mime_list_size_ = _data15_->mime_list_length1;
			_tmp64_ = _data15_->mime_list;
			_tmp64__length1 = _data15_->mime_list_length1;
			if (_tmp64__length1 >= 1) {
				Block16Data* _data16_;
				const gchar* _tmp65_ = NULL;
				gchar* _tmp66_ = NULL;
				GtkHBox* hbox_buttons = NULL;
				GtkHBox* _tmp67_ = NULL;
				GtkButton* ok_button = NULL;
				GtkButton* _tmp68_ = NULL;
				GtkButton* cancel_button = NULL;
				const gchar* _tmp69_ = NULL;
				GtkButton* _tmp70_ = NULL;
				GtkVBox* _tmp71_ = NULL;
				GtkHBox* _tmp72_ = NULL;
				GtkHBox* _tmp73_ = NULL;
				GtkButton* _tmp74_ = NULL;
				GtkHBox* _tmp75_ = NULL;
				GtkButton* _tmp76_ = NULL;
				GtkButton* _tmp90_ = NULL;
				GtkButton* _tmp91_ = NULL;
				_data16_ = g_slice_new0 (Block16Data);
				_data16_->_ref_count_ = 1;
				_data16_->_data15_ = block15_data_ref (_data15_);
				_tmp65_ = default_path;
				_tmp66_ = g_path_get_basename (_tmp65_);
				_data16_->base_name = _tmp66_;
				_tmp67_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
				g_object_ref_sink (_tmp67_);
				hbox_buttons = _tmp67_;
				_tmp68_ = (GtkButton*) gtk_button_new_with_label ("OK");
				g_object_ref_sink (_tmp68_);
				ok_button = _tmp68_;
				_tmp69_ = _ ("Cancel");
				_tmp70_ = (GtkButton*) gtk_button_new_with_label (_tmp69_);
				g_object_ref_sink (_tmp70_);
				cancel_button = _tmp70_;
				_tmp71_ = mime_vbox;
				_tmp72_ = hbox_buttons;
				gtk_container_add ((GtkContainer*) _tmp71_, (GtkWidget*) _tmp72_);
				_tmp73_ = hbox_buttons;
				_tmp74_ = ok_button;
				gtk_container_add ((GtkContainer*) _tmp73_, (GtkWidget*) _tmp74_);
				_tmp75_ = hbox_buttons;
				_tmp76_ = cancel_button;
				gtk_container_add ((GtkContainer*) _tmp75_, (GtkWidget*) _tmp76_);
				g_message ("combobox.vala:616: Enter mime try");
				{
					gint i = 0;
					i = 0;
					{
						gboolean _tmp77_ = FALSE;
						_tmp77_ = TRUE;
						while (TRUE) {
							gint _tmp79_ = 0;
							gchar** _tmp80_ = NULL;
							gint _tmp80__length1 = 0;
							gchar* message_mime = NULL;
							gchar** _tmp81_ = NULL;
							gint _tmp81__length1 = 0;
							gint _tmp82_ = 0;
							const gchar* _tmp83_ = NULL;
							gchar* _tmp84_ = NULL;
							const gchar* _tmp85_ = NULL;
							GtkLabel* label_mime = NULL;
							const gchar* _tmp86_ = NULL;
							GtkLabel* _tmp87_ = NULL;
							GtkVBox* _tmp88_ = NULL;
							GtkLabel* _tmp89_ = NULL;
							if (!_tmp77_) {
								gint _tmp78_ = 0;
								_tmp78_ = i;
								i = _tmp78_ + 1;
							}
							_tmp77_ = FALSE;
							_tmp79_ = i;
							_tmp80_ = _data15_->mime_list;
							_tmp80__length1 = _data15_->mime_list_length1;
							if (!(_tmp79_ < _tmp80__length1)) {
								break;
							}
							_tmp81_ = _data15_->mime_list;
							_tmp81__length1 = _data15_->mime_list_length1;
							_tmp82_ = i;
							_tmp83_ = _tmp81_[_tmp82_];
							_tmp84_ = g_strconcat (_tmp83_, "\n", NULL);
							message_mime = _tmp84_;
							_tmp85_ = message_mime;
							g_message ("combobox.vala:620: Look at message_mime: %s", _tmp85_);
							_tmp86_ = message_mime;
							_tmp87_ = (GtkLabel*) gtk_label_new (_tmp86_);
							g_object_ref_sink (_tmp87_);
							label_mime = _tmp87_;
							_tmp88_ = mime_vbox;
							_tmp89_ = label_mime;
							gtk_container_add ((GtkContainer*) _tmp88_, (GtkWidget*) _tmp89_);
							_g_object_unref0 (label_mime);
							_g_free0 (message_mime);
						}
					}
				}
				_tmp90_ = ok_button;
				g_signal_connect_data (_tmp90_, "clicked", (GCallback) ______lambda13__gtk_button_clicked, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
				_tmp91_ = cancel_button;
				g_signal_connect_data (_tmp91_, "clicked", (GCallback) ______lambda14__gtk_button_clicked, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
				gtk_widget_show_all ((GtkWidget*) _data14_->window_mime);
				_g_object_unref0 (cancel_button);
				_g_object_unref0 (ok_button);
				_g_object_unref0 (hbox_buttons);
				block16_data_unref (_data16_);
				_data16_ = NULL;
			} else {
				gtk_object_destroy ((GtkObject*) _data14_->window_mime);
			}
			_tmp59_ = (_vala_array_free (_tmp59_, _tmp59__length1, (GDestroyNotify) g_free), NULL);
		}
		goto __finally16;
		__catch16_g_key_file_error:
		{
			GError* err = NULL;
			GError* _tmp92_ = NULL;
			const gchar* _tmp93_ = NULL;
			err = _inner_error_;
			_inner_error_ = NULL;
			_tmp92_ = err;
			_tmp93_ = _tmp92_->message;
			g_warning ("combobox.vala:643: %s", _tmp93_);
			_g_error_free0 (err);
		}
		__finally16:
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_key_file_free0 (kf_mime);
			block15_data_unref (_data15_);
			_data15_ = NULL;
			_g_free0 (default_path);
			mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
			_g_object_unref0 (info_label);
			_g_object_unref0 (mime_vbox);
			_g_object_unref0 (mime_view_port);
			_g_object_unref0 (scrolled);
			block14_data_unref (_data14_);
			_data14_ = NULL;
			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);
			g_clear_error (&_inner_error_);
			return;
		}
		_g_key_file_free0 (kf_mime);
		block15_data_unref (_data15_);
		_data15_ = NULL;
	}
	_g_free0 (default_path);
	mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
	_g_object_unref0 (info_label);
	_g_object_unref0 (mime_vbox);
	_g_object_unref0 (mime_view_port);
	_g_object_unref0 (scrolled);
	block14_data_unref (_data14_);
	_data14_ = NULL;
}


void ldefault_apps_save_mime_type (gchar** mime_list, int mime_list_length1, const gchar* base_name) {
	gchar* mimeapps_list_directory = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GKeyFile* kf_mimeapps = NULL;
	const gchar* _tmp2_ = NULL;
	GKeyFile* _tmp3_ = NULL;
	gchar* mimeapps_list_path = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar** _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	gchar* str = NULL;
	GKeyFile* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (base_name != NULL);
	_tmp0_ = g_get_home_dir ();
	_tmp1_ = g_build_filename (_tmp0_, ".local", "share", "applications", NULL);
	mimeapps_list_directory = _tmp1_;
	_tmp2_ = mimeapps_list_directory;
	_tmp3_ = ldefault_apps_load_key_conf (_tmp2_, "mimeapps.list");
	kf_mimeapps = _tmp3_;
	_tmp4_ = mimeapps_list_directory;
	_tmp5_ = g_build_filename (_tmp4_, "mimeapps.list", NULL);
	mimeapps_list_path = _tmp5_;
	_tmp6_ = mime_list;
	_tmp6__length1 = mime_list_length1;
	if (_tmp6_ != NULL) {
		{
			gint i = 0;
			i = 0;
			{
				gboolean _tmp7_ = FALSE;
				_tmp7_ = TRUE;
				while (TRUE) {
					gint _tmp9_ = 0;
					gchar** _tmp10_ = NULL;
					gint _tmp10__length1 = 0;
					GKeyFile* _tmp11_ = NULL;
					gchar** _tmp12_ = NULL;
					gint _tmp12__length1 = 0;
					gint _tmp13_ = 0;
					const gchar* _tmp14_ = NULL;
					const gchar* _tmp15_ = NULL;
					GKeyFile* _tmp16_ = NULL;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
					gint _tmp18_ = 0;
					const gchar* _tmp19_ = NULL;
					const gchar* _tmp20_ = NULL;
					if (!_tmp7_) {
						gint _tmp8_ = 0;
						_tmp8_ = i;
						i = _tmp8_ + 1;
					}
					_tmp7_ = FALSE;
					_tmp9_ = i;
					_tmp10_ = mime_list;
					_tmp10__length1 = mime_list_length1;
					if (!(_tmp9_ < _tmp10__length1)) {
						break;
					}
					_tmp11_ = kf_mimeapps;
					_tmp12_ = mime_list;
					_tmp12__length1 = mime_list_length1;
					_tmp13_ = i;
					_tmp14_ = _tmp12_[_tmp13_];
					_tmp15_ = base_name;
					g_key_file_set_string (_tmp11_, "Added Associations", _tmp14_, _tmp15_);
					_tmp16_ = kf_mimeapps;
					_tmp17_ = mime_list;
					_tmp17__length1 = mime_list_length1;
					_tmp18_ = i;
					_tmp19_ = _tmp17_[_tmp18_];
					_tmp20_ = base_name;
					g_key_file_set_string (_tmp16_, "Default Applications", _tmp19_, _tmp20_);
				}
			}
		}
	}
	_tmp21_ = kf_mimeapps;
	_tmp22_ = g_key_file_to_data (_tmp21_, NULL, NULL);
	str = _tmp22_;
	{
		const gchar* _tmp23_ = NULL;
		gint _tmp24_ = 0;
		gint _tmp25_ = 0;
		_tmp23_ = mimeapps_list_path;
		_tmp24_ = strlen (str);
		_tmp25_ = _tmp24_;
		g_file_set_contents (_tmp23_, str, (gssize) _tmp25_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == G_FILE_ERROR) {
				goto __catch17_g_file_error;
			}
			_g_free0 (str);
			_g_free0 (mimeapps_list_path);
			_g_key_file_free0 (kf_mimeapps);
			_g_free0 (mimeapps_list_directory);
			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);
			g_clear_error (&_inner_error_);
			return;
		}
	}
	goto __finally17;
	__catch17_g_file_error:
	{
		GError* err = NULL;
		GError* _tmp26_ = NULL;
		const gchar* _tmp27_ = NULL;
		err = _inner_error_;
		_inner_error_ = NULL;
		_tmp26_ = err;
		_tmp27_ = _tmp26_->message;
		g_warning ("combobox.vala:670: %s", _tmp27_);
		_g_error_free0 (err);
	}
	__finally17:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_g_free0 (str);
		_g_free0 (mimeapps_list_path);
		_g_key_file_free0 (kf_mimeapps);
		_g_free0 (mimeapps_list_directory);
		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);
		g_clear_error (&_inner_error_);
		return;
	}
	_g_free0 (str);
	_g_free0 (mimeapps_list_path);
	_g_key_file_free0 (kf_mimeapps);
	_g_free0 (mimeapps_list_directory);
}


gchar* ldefault_apps_return_combobox_text (GtkComboBox* combo) {
	gchar* result = NULL;
	GtkTreeIter iter = {0};
	GtkListStore* model = NULL;
	GValue value1 = {0};
	GtkComboBox* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkComboBox* _tmp2_ = NULL;
	GtkTreeModel* _tmp3_ = NULL;
	GtkListStore* _tmp4_ = NULL;
	GtkTreeIter _tmp5_ = {0};
	GValue _tmp6_ = {0};
	GValue _tmp7_ = {0};
	GValue _tmp8_ = {0};
	gchar* _tmp9_ = NULL;
	g_return_val_if_fail (combo != NULL, NULL);
	_tmp0_ = combo;
	gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
	iter = _tmp1_;
	_tmp2_ = combo;
	_tmp3_ = gtk_combo_box_get_model (_tmp2_);
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GTK_TYPE_LIST_STORE, GtkListStore));
	_g_object_unref0 (model);
	model = _tmp4_;
	_tmp5_ = iter;
	gtk_tree_model_get_value ((GtkTreeModel*) model, &_tmp5_, 0, &_tmp6_);
	G_IS_VALUE (&value1) ? (g_value_unset (&value1), NULL) : NULL;
	value1 = _tmp6_;
	_tmp7_ = value1;
	g_message ("combobox.vala:684:  Return value for %s", g_value_get_string (&_tmp7_));
	_tmp8_ = value1;
	_tmp9_ = g_strdup (g_value_get_string (&_tmp8_));
	result = _tmp9_;
	G_IS_VALUE (&value1) ? (g_value_unset (&value1), NULL) : NULL;
	_g_object_unref0 (model);
	return result;
}


gchar** ldefault_apps_get_mime_list (GKeyFile* kf, const gchar* key1, const gchar* mode, int* result_length1) {
	gchar** result = NULL;
	gchar* keys = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar** return_value = NULL;
	gchar** _tmp6_ = NULL;
	gint return_value_length1 = 0;
	gint _return_value_size_ = 0;
	gchar** _tmp14_ = NULL;
	gint _tmp14__length1 = 0;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (kf != NULL, NULL);
	g_return_val_if_fail (key1 != NULL, NULL);
	g_return_val_if_fail (mode != NULL, NULL);
	_tmp0_ = key1;
	_tmp1_ = g_strconcat (_tmp0_, "/", NULL);
	_tmp2_ = _tmp1_;
	_tmp3_ = mode;
	_tmp4_ = g_strconcat (_tmp2_, _tmp3_, NULL);
	_tmp5_ = _tmp4_;
	_g_free0 (_tmp2_);
	keys = _tmp5_;
	_tmp6_ = g_new0 (gchar*, 0 + 1);
	return_value = _tmp6_;
	return_value_length1 = 0;
	_return_value_size_ = return_value_length1;
	{
		gchar** _tmp7_ = NULL;
		GKeyFile* _tmp8_ = NULL;
		gsize _tmp9_;
		gchar** _tmp10_ = NULL;
		gint _tmp7__length1 = 0;
		gint __tmp7__size_ = 0;
		gchar** _tmp11_ = NULL;
		gint _tmp11__length1 = 0;
		_tmp8_ = kf;
		_tmp10_ = g_key_file_get_string_list (_tmp8_, "Mime", keys, &_tmp9_, &_inner_error_);
		_tmp7_ = _tmp10_;
		_tmp7__length1 = _tmp9_;
		__tmp7__size_ = _tmp7__length1;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == G_KEY_FILE_ERROR) {
				goto __catch18_g_key_file_error;
			}
			return_value = (_vala_array_free (return_value, return_value_length1, (GDestroyNotify) g_free), NULL);
			_g_free0 (keys);
			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);
			g_clear_error (&_inner_error_);
			return NULL;
		}
		_tmp11_ = _tmp7_;
		_tmp11__length1 = _tmp7__length1;
		_tmp7_ = NULL;
		_tmp7__length1 = 0;
		return_value = (_vala_array_free (return_value, return_value_length1, (GDestroyNotify) g_free), NULL);
		return_value = _tmp11_;
		return_value_length1 = _tmp11__length1;
		_return_value_size_ = return_value_length1;
		_tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
	}
	goto __finally18;
	__catch18_g_key_file_error:
	{
		GError* err = NULL;
		GError* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		err = _inner_error_;
		_inner_error_ = NULL;
		_tmp12_ = err;
		_tmp13_ = _tmp12_->message;
		g_warning ("combobox.vala:700: %s", _tmp13_);
		_g_error_free0 (err);
	}
	__finally18:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		return_value = (_vala_array_free (return_value, return_value_length1, (GDestroyNotify) g_free), NULL);
		_g_free0 (keys);
		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);
		g_clear_error (&_inner_error_);
		return NULL;
	}
	_tmp14_ = return_value;
	_tmp14__length1 = return_value_length1;
	if (result_length1) {
		*result_length1 = _tmp14__length1;
	}
	result = _tmp14_;
	_g_free0 (keys);
	return result;
}


static Block17Data* block17_data_ref (Block17Data* _data17_) {
	g_atomic_int_inc (&_data17_->_ref_count_);
	return _data17_;
}


static void block17_data_unref (void * _userdata_) {
	Block17Data* _data17_;
	_data17_ = (Block17Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data17_->_ref_count_)) {
		_g_object_unref0 (_data17_->return_combobox);
		_g_object_unref0 (_data17_->list_store);
		_g_object_unref0 (_data17_->builder);
		_g_free0 (_data17_->entry_name);
		g_slice_free (Block17Data, _data17_);
	}
}


static void __lambda21_ (Block17Data* _data17_) {
	GValue val1 = {0};
	GValue val2 = {0};
	GtkComboBox* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkListStore* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GValue _tmp4_ = {0};
	GtkListStore* _tmp5_ = NULL;
	GtkTreeIter _tmp6_ = {0};
	GValue _tmp7_ = {0};
	GValue _tmp8_ = {0};
	GValue _tmp9_ = {0};
	const gchar* _tmp10_ = NULL;
	_tmp0_ = _data17_->return_combobox;
	gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
	_data17_->iter = _tmp1_;
	_tmp2_ = _data17_->list_store;
	_tmp3_ = _data17_->iter;
	gtk_tree_model_get_value ((GtkTreeModel*) _tmp2_, &_tmp3_, 0, &_tmp4_);
	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
	val1 = _tmp4_;
	_tmp5_ = _data17_->list_store;
	_tmp6_ = _data17_->iter;
	gtk_tree_model_get_value ((GtkTreeModel*) _tmp5_, &_tmp6_, 1, &_tmp7_);
	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
	val2 = _tmp7_;
	_tmp8_ = val1;
	_tmp9_ = val2;
	g_message ("combobox.vala:788: Selection: %s, %d\n", g_value_get_string (&_tmp8_), g_value_get_int (&_tmp9_));
	_tmp10_ = _data17_->entry_name;
	if (_tmp10_ != NULL) {
		GtkEntry* entry = NULL;
		GtkBuilder* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		GObject* _tmp13_ = NULL;
		GtkEntry* _tmp14_ = NULL;
		GValue _tmp15_ = {0};
		_tmp11_ = _data17_->builder;
		_tmp12_ = _data17_->entry_name;
		_tmp13_ = gtk_builder_get_object (_tmp11_, _tmp12_);
		_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp13_) : NULL);
		entry = _tmp14_;
		_tmp15_ = val2;
		if (g_value_get_int (&_tmp15_) == 99) {
			GtkEntry* _tmp16_ = NULL;
			_tmp16_ = entry;
			gtk_widget_show_all ((GtkWidget*) _tmp16_);
		} else {
		}
		_g_object_unref0 (entry);
	}
	G_IS_VALUE (&val2) ? (g_value_unset (&val2), NULL) : NULL;
	G_IS_VALUE (&val1) ? (g_value_unset (&val1), NULL) : NULL;
}


static void ___lambda21__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
	__lambda21_ (self);
}


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) {
	GtkComboBox* result = NULL;
	Block17Data* _data17_;
	GtkBuilder* _tmp0_ = NULL;
	GtkBuilder* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GtkListStore* _tmp4_ = NULL;
	gint default_index = 0;
	GtkListStore* _tmp22_ = NULL;
	GtkTreeIter _tmp23_ = {0};
	GtkListStore* _tmp24_ = NULL;
	GtkTreeIter _tmp25_ = {0};
	const gchar* _tmp26_ = NULL;
	GtkBuilder* _tmp27_ = NULL;
	const gchar* _tmp28_ = NULL;
	GObject* _tmp29_ = NULL;
	GtkComboBox* _tmp30_ = NULL;
	GtkComboBox* _tmp31_ = NULL;
	GtkListStore* _tmp32_ = NULL;
	GtkCellRendererText* renderer = NULL;
	GtkCellRendererText* _tmp33_ = NULL;
	GtkComboBox* _tmp34_ = NULL;
	GtkCellRendererText* _tmp35_ = NULL;
	GtkComboBox* _tmp36_ = NULL;
	GtkCellRendererText* _tmp37_ = NULL;
	GtkComboBox* _tmp38_ = NULL;
	gint _tmp39_ = 0;
	GtkComboBox* _tmp65_ = NULL;
	GtkComboBox* _tmp66_ = NULL;
	GtkComboBox* _tmp67_ = NULL;
	g_return_val_if_fail (builder != NULL, NULL);
	g_return_val_if_fail (combobox_name != NULL, NULL);
	g_return_val_if_fail (by_default != NULL, NULL);
	_data17_ = g_slice_new0 (Block17Data);
	_data17_->_ref_count_ = 1;
	_tmp0_ = builder;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (_data17_->builder);
	_data17_->builder = _tmp1_;
	_tmp2_ = entry_name;
	_tmp3_ = g_strdup (_tmp2_);
	_g_free0 (_data17_->entry_name);
	_data17_->entry_name = _tmp3_;
	_tmp4_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT);
	_data17_->list_store = _tmp4_;
	default_index = -1;
	{
		gint a = 0;
		a = 0;
		{
			gboolean _tmp5_ = FALSE;
			_tmp5_ = TRUE;
			while (TRUE) {
				gint _tmp7_ = 0;
				gchar** _tmp8_ = NULL;
				gint _tmp8__length1 = 0;
				GtkListStore* _tmp9_ = NULL;
				GtkTreeIter _tmp10_ = {0};
				GtkListStore* _tmp11_ = NULL;
				GtkTreeIter _tmp12_ = {0};
				gchar** _tmp13_ = NULL;
				gint _tmp13__length1 = 0;
				gint _tmp14_ = 0;
				const gchar* _tmp15_ = NULL;
				gint _tmp16_ = 0;
				gchar** _tmp17_ = NULL;
				gint _tmp17__length1 = 0;
				gint _tmp18_ = 0;
				const gchar* _tmp19_ = NULL;
				const gchar* _tmp20_ = NULL;
				if (!_tmp5_) {
					gint _tmp6_ = 0;
					_tmp6_ = a;
					a = _tmp6_ + 1;
				}
				_tmp5_ = FALSE;
				_tmp7_ = a;
				_tmp8_ = combobox_list;
				_tmp8__length1 = combobox_list_length1;
				if (!(_tmp7_ < _tmp8__length1)) {
					break;
				}
				_tmp9_ = _data17_->list_store;
				gtk_list_store_append (_tmp9_, &_tmp10_);
				_data17_->iter = _tmp10_;
				_tmp11_ = _data17_->list_store;
				_tmp12_ = _data17_->iter;
				_tmp13_ = combobox_list;
				_tmp13__length1 = combobox_list_length1;
				_tmp14_ = a;
				_tmp15_ = _tmp13_[_tmp14_];
				_tmp16_ = a;
				gtk_list_store_set (_tmp11_, &_tmp12_, 0, _tmp15_, 1, _tmp16_, -1);
				_tmp17_ = combobox_list;
				_tmp17__length1 = combobox_list_length1;
				_tmp18_ = a;
				_tmp19_ = _tmp17_[_tmp18_];
				_tmp20_ = by_default;
				if (g_strcmp0 (_tmp19_, _tmp20_) == 0) {
					gint _tmp21_ = 0;
					_tmp21_ = a;
					default_index = _tmp21_;
				}
			}
		}
	}
	_tmp22_ = _data17_->list_store;
	gtk_list_store_append (_tmp22_, &_tmp23_);
	_data17_->iter = _tmp23_;
	_tmp24_ = _data17_->list_store;
	_tmp25_ = _data17_->iter;
	gtk_list_store_set (_tmp24_, &_tmp25_, 0, "Other", 1, 99, -1);
	_tmp26_ = by_default;
	g_message ("combobox.vala:728: Defaut = %s", _tmp26_);
	_tmp27_ = _data17_->builder;
	_tmp28_ = combobox_name;
	_tmp29_ = gtk_builder_get_object (_tmp27_, _tmp28_);
	_tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, GTK_TYPE_COMBO_BOX) ? ((GtkComboBox*) _tmp29_) : NULL);
	_data17_->return_combobox = _tmp30_;
	_tmp31_ = _data17_->return_combobox;
	_tmp32_ = _data17_->list_store;
	gtk_combo_box_set_model (_tmp31_, (GtkTreeModel*) _tmp32_);
	_tmp33_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp33_);
	renderer = _tmp33_;
	_tmp34_ = _data17_->return_combobox;
	_tmp35_ = renderer;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp34_, (GtkCellRenderer*) _tmp35_, TRUE);
	_tmp36_ = _data17_->return_combobox;
	_tmp37_ = renderer;
	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp36_, (GtkCellRenderer*) _tmp37_, "text", 0);
	_tmp38_ = _data17_->return_combobox;
	gtk_combo_box_set_active (_tmp38_, 0);
	_tmp39_ = default_index;
	if (_tmp39_ == (-1)) {
		const gchar* _tmp40_ = NULL;
		const gchar* _tmp41_ = NULL;
		GQuark _tmp43_ = 0U;
		static GQuark _tmp42_label0 = 0;
		static GQuark _tmp42_label1 = 0;
		static GQuark _tmp42_label2 = 0;
		_tmp40_ = by_default;
		_tmp41_ = _tmp40_;
		_tmp43_ = (NULL == _tmp41_) ? 0 : g_quark_from_string (_tmp41_);
		if (_tmp43_ == ((0 != _tmp42_label0) ? _tmp42_label0 : (_tmp42_label0 = g_quark_from_static_string (NULL)))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp44_ = NULL;
					_tmp44_ = _data17_->return_combobox;
					gtk_combo_box_set_active (_tmp44_, 0);
					break;
				}
			}
		} else if (_tmp43_ == ((0 != _tmp42_label1) ? _tmp42_label1 : (_tmp42_label1 = g_quark_from_static_string ("")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp45_ = NULL;
					_tmp45_ = _data17_->return_combobox;
					gtk_combo_box_set_active (_tmp45_, 0);
					break;
				}
			}
		} else if (_tmp43_ == ((0 != _tmp42_label2) ? _tmp42_label2 : (_tmp42_label2 = g_quark_from_static_string (" ")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp46_ = NULL;
					_tmp46_ = _data17_->return_combobox;
					gtk_combo_box_set_active (_tmp46_, 0);
					break;
				}
			}
		} else {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp47_ = NULL;
					GtkTreeIter _tmp48_ = {0};
					const gchar* _tmp49_ = NULL;
					_tmp47_ = _data17_->return_combobox;
					_tmp48_ = _data17_->iter;
					gtk_combo_box_set_active_iter (_tmp47_, &_tmp48_);
					_tmp49_ = _data17_->entry_name;
					if (_tmp49_ != NULL) {
						GtkEntry* entry_default = NULL;
						GtkBuilder* _tmp50_ = NULL;
						const gchar* _tmp51_ = NULL;
						GObject* _tmp52_ = NULL;
						GtkEntry* _tmp53_ = NULL;
						GtkEntry* _tmp54_ = NULL;
						const gchar* _tmp55_ = NULL;
						GtkEntry* _tmp56_ = NULL;
						_tmp50_ = _data17_->builder;
						_tmp51_ = _data17_->entry_name;
						_tmp52_ = gtk_builder_get_object (_tmp50_, _tmp51_);
						_tmp53_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp52_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp52_) : NULL);
						entry_default = _tmp53_;
						_tmp54_ = entry_default;
						_tmp55_ = by_default;
						gtk_entry_set_text (_tmp54_, _tmp55_);
						_tmp56_ = entry_default;
						gtk_widget_show_all ((GtkWidget*) _tmp56_);
						_g_object_unref0 (entry_default);
					}
					break;
				}
			}
		}
	} else {
		gint _tmp57_ = 0;
		GtkComboBox* _tmp58_ = NULL;
		gint _tmp59_ = 0;
		const gchar* _tmp60_ = NULL;
		_tmp57_ = default_index;
		g_message ("combobox.vala:765: Iter == %d", _tmp57_);
		_tmp58_ = _data17_->return_combobox;
		_tmp59_ = default_index;
		gtk_combo_box_set_active (_tmp58_, _tmp59_);
		_tmp60_ = _data17_->entry_name;
		if (_tmp60_ != NULL) {
			GtkEntry* entry_default = NULL;
			GtkBuilder* _tmp61_ = NULL;
			const gchar* _tmp62_ = NULL;
			GObject* _tmp63_ = NULL;
			GtkEntry* _tmp64_ = NULL;
			_tmp61_ = _data17_->builder;
			_tmp62_ = _data17_->entry_name;
			_tmp63_ = gtk_builder_get_object (_tmp61_, _tmp62_);
			_tmp64_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp63_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp63_) : NULL);
			entry_default = _tmp64_;
			_g_object_unref0 (entry_default);
		}
	}
	_tmp65_ = _data17_->return_combobox;
	g_signal_connect_data (_tmp65_, "changed", (GCallback) ___lambda21__gtk_combo_box_changed, block17_data_ref (_data17_), (GClosureNotify) block17_data_unref, 0);
	_tmp66_ = _data17_->return_combobox;
	_tmp67_ = _g_object_ref0 (_tmp66_);
	result = _tmp67_;
	_g_object_unref0 (renderer);
	block17_data_unref (_data17_);
	_data17_ = NULL;
	return result;
}


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


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


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



