/* combobox.c generated by valac 0.56.18-dirty, 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 <gtk/gtk.h>
#include <glib.h>
#include <glib-object.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>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#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)))
#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (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;
enum  {
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_0_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE_PROPERTY,
	LDEFAULT_APPS_COMBO_ITEM_OBJECT_NUM_PROPERTIES
};
static GParamSpec* ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_NUM_PROPERTIES];
typedef struct _Block13Data Block13Data;
typedef struct _Block14Data Block14Data;
typedef struct _Block15Data Block15Data;
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 gint LDefaultAppsComboItemObject_private_offset;
static gpointer ldefault_apps_combo_item_object_parent_class = NULL;

VALA_EXTERN GType ldefault_apps_dbus_backend_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (LDefaultAppsDbusBackend, g_object_unref)
VALA_EXTERN 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,
                                     gint more_list_length1,
                                     const gchar* more_help,
                                     const gchar* generic_item);
VALA_EXTERN void ldefault_apps_init_entry (GtkBuilder* builder,
                               LDefaultAppsDbusBackend* dbus_backend,
                               const gchar* key1);
VALA_EXTERN void ldefault_apps_init_reload_button (GtkBuilder* builder,
                                       LDefaultAppsDbusBackend* dbus_backend,
                                       const gchar* key1,
                                       const gchar* key2);
VALA_EXTERN void ldefault_apps_init_help_message (GtkBuilder* builder,
                                      const gchar* item,
                                      const gchar* message_label);
VALA_EXTERN void ldefault_apps_init_more_button (GtkBuilder* builder,
                                     LDefaultAppsDbusBackend* dbus_backend,
                                     GKeyFile* kf,
                                     const gchar* item,
                                     gchar** more_list,
                                     gint more_list_length1,
                                     const gchar* more_help,
                                     const gchar* generic_item);
VALA_EXTERN 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,
                                              gint more_list_length1,
                                              const gchar* more_help,
                                              const gchar* generic_item);
VALA_EXTERN 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);
VALA_EXTERN 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_);
VALA_EXTERN 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_);
VALA_EXTERN 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,
                          gssize length);
static void __lambda10_ (Block8Data* _data8_);
VALA_EXTERN void ldefault_apps_init_windows_more (GtkBuilder* builder,
                                      LDefaultAppsDbusBackend* dbus_backend,
                                      GKeyFile* kf,
                                      const gchar* item,
                                      gchar** more_list,
                                      gint 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_);
VALA_EXTERN gchar** ldefault_apps_get_mime_list (GKeyFile* kf,
                                     const gchar* key1,
                                     const gchar* mode,
                                     gint* result_length1);
VALA_EXTERN GType ldefault_apps_combo_item_object_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (LDefaultAppsComboItemObject, g_object_unref)
VALA_EXTERN LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_new (const gchar* item);
VALA_EXTERN LDefaultAppsComboItemObject* ldefault_apps_combo_item_object_construct (GType object_type,
                                                                        const gchar* item);
VALA_EXTERN const gchar* ldefault_apps_combo_item_object_get_exec (LDefaultAppsComboItemObject* self);
VALA_EXTERN const gchar* ldefault_apps_combo_item_object_get_desktop_path (LDefaultAppsComboItemObject* self);
VALA_EXTERN 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);
VALA_EXTERN const gchar* ldefault_apps_combo_item_object_get_icon_name (LDefaultAppsComboItemObject* self);
VALA_EXTERN 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);
VALA_EXTERN void ldefault_apps_combo_item_object_set_name (LDefaultAppsComboItemObject* self,
                                               const gchar* value);
VALA_EXTERN void ldefault_apps_combo_item_object_set_exec (LDefaultAppsComboItemObject* self,
                                               const gchar* value);
VALA_EXTERN GtkImage* ldefault_apps_combo_item_object_create_image (LDefaultAppsComboItemObject* self,
                                                        const gchar* item_image_string);
VALA_EXTERN void ldefault_apps_combo_item_object_set_icon (LDefaultAppsComboItemObject* self,
                                               GtkImage* value);
VALA_EXTERN void ldefault_apps_combo_item_object_set_icon_name (LDefaultAppsComboItemObject* self,
                                                    const gchar* value);
VALA_EXTERN void ldefault_apps_combo_item_object_set_desktop_path (LDefaultAppsComboItemObject* self,
                                                       const gchar* value);
VALA_EXTERN void ldefault_apps_combo_item_object_set_install_package (LDefaultAppsComboItemObject* self,
                                                          const gchar* value);
VALA_EXTERN GtkImage* ldefault_apps_combo_item_object_get_icon (LDefaultAppsComboItemObject* self);
VALA_EXTERN const gchar* ldefault_apps_combo_item_object_get_install_package (LDefaultAppsComboItemObject* self);
static void ldefault_apps_combo_item_object_finalize (GObject * obj);
static GType ldefault_apps_combo_item_object_get_type_once (void);
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_);
VALA_EXTERN void ldefault_apps_save_mime_type (gchar** mime_list,
                                   gint 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);
VALA_EXTERN GKeyFile* ldefault_apps_load_key_conf (const gchar* config_path_directory,
                                       const gchar* conf_name);
VALA_EXTERN gchar* ldefault_apps_return_combobox_text (GtkComboBox* combo);
VALA_EXTERN GtkComboBox* ldefault_apps_ui_combobox_init (GtkBuilder* builder,
                                             const gchar* combobox_name,
                                             gchar** combobox_list,
                                             gint 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,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static gssize _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,
                                gint more_list_length1,
                                const gchar* more_help,
                                const gchar* generic_item)
{
	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);
	ldefault_apps_init_entry (builder, dbus_backend, key1);
	ldefault_apps_init_reload_button (builder, dbus_backend, key1, key2);
	ldefault_apps_init_help_message (builder, key1, message_help);
	ldefault_apps_init_more_button (builder, dbus_backend, kf, key1, more_list, (gint) more_list_length1, more_help, 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,
                                         gint more_list_length1,
                                         const gchar* more_help,
                                         const gchar* generic_item)
{
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	GtkComboBox* _tmp4_;
	GtkComboBox* _tmp5_;
	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_ = g_strconcat (key1, "_combobox", NULL);
	_tmp1_ = _tmp0_;
	_tmp2_ = ldefault_apps_dbus_backend_Get (dbus_backend, key1, "command");
	_tmp3_ = _tmp2_;
	_tmp4_ = ldefault_apps_init_combobox (builder, dbus_backend, kf, _tmp1_, key1, _tmp3_, generic_item);
	_tmp5_ = _tmp4_;
	_g_object_unref0 (_tmp5_);
	_g_free0 (_tmp3_);
	_g_free0 (_tmp1_);
	ldefault_apps_init_reload_button (builder, dbus_backend, key1, key2);
	ldefault_apps_init_help_message (builder, key1, message_help);
	ldefault_apps_init_more_button (builder, dbus_backend, kf, key1, more_list, (gint) more_list_length1, more_help, generic_item);
}

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_;
	_tmp0_ = gtk_entry_get_text (_data5_->entry);
	if (_tmp0_ != NULL) {
		const gchar* _tmp1_;
		_tmp1_ = gtk_entry_get_text (_data5_->entry);
		ldefault_apps_dbus_backend_Set (_data5_->dbus_backend, _data5_->key1, "command", _tmp1_);
	}
}

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_;
	gchar* _tmp1_;
	gchar* default_text = NULL;
	gchar* _tmp2_;
	gchar* entry_name = NULL;
	gchar* _tmp3_;
	GObject* _tmp4_;
	GtkEntry* _tmp5_;
	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_ = _g_object_ref0 (dbus_backend);
	_g_object_unref0 (_data5_->dbus_backend);
	_data5_->dbus_backend = _tmp0_;
	_tmp1_ = g_strdup (key1);
	_g_free0 (_data5_->key1);
	_data5_->key1 = _tmp1_;
	_tmp2_ = ldefault_apps_dbus_backend_Get (_data5_->dbus_backend, _data5_->key1, "command");
	default_text = _tmp2_;
	_tmp3_ = g_strconcat (_data5_->key1, "_entry", NULL);
	entry_name = _tmp3_;
	_tmp4_ = gtk_builder_get_object (builder, entry_name);
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp4_) : NULL);
	_data5_->entry = _tmp5_;
	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_)
{
	ldefault_apps_dbus_backend_Launch (_data6_->dbus_backend, _data6_->key1, _data6_->key2);
}

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_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GtkButton* button = NULL;
	gchar* _tmp3_;
	gchar* _tmp4_;
	GObject* _tmp5_;
	GtkButton* _tmp6_;
	GtkButton* _tmp7_;
	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_ = _g_object_ref0 (dbus_backend);
	_g_object_unref0 (_data6_->dbus_backend);
	_data6_->dbus_backend = _tmp0_;
	_tmp1_ = g_strdup (key1);
	_g_free0 (_data6_->key1);
	_data6_->key1 = _tmp1_;
	_tmp2_ = g_strdup (key2);
	_g_free0 (_data6_->key2);
	_data6_->key2 = _tmp2_;
	_tmp3_ = g_strconcat (_data6_->key1, "_reload", NULL);
	_tmp4_ = _tmp3_;
	_tmp5_ = gtk_builder_get_object (builder, _tmp4_);
	_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_button_get_type ()) ? ((GtkButton*) _tmp5_) : NULL);
	_tmp7_ = _tmp6_;
	_g_free0 (_tmp4_);
	button = _tmp7_;
	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_;
	GtkLabel* help_label = NULL;
	GtkLabel* _tmp6_;
	GError* _inner_error0_ = 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_;
		GdkPixbuf* _tmp3_;
		_tmp2_ = gtk_icon_theme_get_default ();
		_tmp3_ = gtk_icon_theme_load_icon (_tmp2_, "preferences-desktop", 48, 0, &_inner_error0_);
		_tmp1_ = _tmp3_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		gtk_window_set_icon (help_window, _tmp1_);
		_g_object_unref0 (_tmp1_);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp4_ = e;
		_tmp5_ = _tmp4_->message;
		g_message ("combobox.vala:90: Could not load application icon: %s\n", _tmp5_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		_g_object_unref0 (help_window);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return;
	}
	_tmp6_ = (GtkLabel*) gtk_label_new (_data7_->message_label);
	g_object_ref_sink (_tmp6_);
	help_label = _tmp6_;
	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_;
	gchar* _tmp0_;
	GtkButton* help_button = NULL;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GObject* _tmp3_;
	GtkButton* _tmp4_;
	GtkButton* _tmp5_;
	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_ = g_strdup (message_label);
	_g_free0 (_data7_->message_label);
	_data7_->message_label = _tmp0_;
	_tmp1_ = g_strconcat (item, "_help_button", NULL);
	_tmp2_ = _tmp1_;
	_tmp3_ = gtk_builder_get_object (builder, _tmp2_);
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_button_get_type ()) ? ((GtkButton*) _tmp3_) : NULL);
	_tmp5_ = _tmp4_;
	_g_free0 (_tmp2_);
	help_button = _tmp5_;
	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 gpointer
_g_key_file_ref0 (gpointer self)
{
	return self ? g_key_file_ref (self) : 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_key_file_unref0 (_data8_->kf);
		_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,
                  gssize length)
{
	if (length >= 0) {
		gchar** result;
		gssize i;
		result = g_new0 (gchar*, length + 1);
		for (i = 0; i < length; i++) {
			gchar* _tmp0_;
			_tmp0_ = g_strdup (self[i]);
			result[i] = _tmp0_;
		}
		return result;
	}
	return NULL;
}

static void
__lambda10_ (Block8Data* _data8_)
{
	ldefault_apps_init_windows_more (_data8_->builder, _data8_->dbus_backend, _data8_->kf, _data8_->item, _data8_->more_list_copy, (gint) _data8_->more_list_copy_length1, _data8_->more_help, _data8_->generic_item);
}

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,
                                gint more_list_length1,
                                const gchar* more_help,
                                const gchar* generic_item)
{
	Block8Data* _data8_;
	GtkBuilder* _tmp0_;
	LDefaultAppsDbusBackend* _tmp1_;
	GKeyFile* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar** _tmp6_;
	gint _tmp6__length1;
	GtkButton* button = NULL;
	gchar* _tmp7_;
	gchar* _tmp8_;
	GObject* _tmp9_;
	GtkButton* _tmp10_;
	GtkButton* _tmp11_;
	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_ = _g_object_ref0 (builder);
	_g_object_unref0 (_data8_->builder);
	_data8_->builder = _tmp0_;
	_tmp1_ = _g_object_ref0 (dbus_backend);
	_g_object_unref0 (_data8_->dbus_backend);
	_data8_->dbus_backend = _tmp1_;
	_tmp2_ = _g_key_file_ref0 (kf);
	_g_key_file_unref0 (_data8_->kf);
	_data8_->kf = _tmp2_;
	_tmp3_ = g_strdup (item);
	_g_free0 (_data8_->item);
	_data8_->item = _tmp3_;
	_tmp4_ = g_strdup (more_help);
	_g_free0 (_data8_->more_help);
	_data8_->more_help = _tmp4_;
	_tmp5_ = g_strdup (generic_item);
	_g_free0 (_data8_->generic_item);
	_data8_->generic_item = _tmp5_;
	_tmp6_ = (more_list != NULL) ? _vala_array_dup2 (more_list, more_list_length1) : more_list;
	_tmp6__length1 = more_list_length1;
	_data8_->more_list_copy = _tmp6_;
	_data8_->more_list_copy_length1 = _tmp6__length1;
	_data8_->_more_list_copy_size_ = _data8_->more_list_copy_length1;
	_tmp7_ = g_strconcat (_data8_->item, "_more", NULL);
	_tmp8_ = _tmp7_;
	_tmp9_ = gtk_builder_get_object (_data8_->builder, _tmp8_);
	_tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, gtk_button_get_type ()) ? ((GtkButton*) _tmp9_) : NULL);
	_tmp11_ = _tmp10_;
	_g_free0 (_tmp8_);
	button = _tmp11_;
	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_key_file_unref0 (_data9_->kf);
		_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_;
	const gchar* _tmp1_;
	_data10_ = _data11_->_data10_;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data11_->manual_entry;
	_tmp1_ = gtk_entry_get_text (_tmp0_);
	if (_tmp1_ != NULL) {
		GtkEntry* _tmp2_;
		const gchar* _tmp3_;
		_tmp2_ = _data11_->manual_entry;
		_tmp3_ = gtk_entry_get_text (_tmp2_);
		ldefault_apps_dbus_backend_Set (_data9_->dbus_backend, _data9_->item, "command", _tmp3_);
	}
}

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;
	gint _tmp0_ = 0;
	gchar** _tmp1_;
	gchar* default_path = NULL;
	gchar* _tmp2_;
	gchar* default_exec = NULL;
	gchar* _tmp3_;
	const gchar* _tmp23_;
	_data9_ = _data10_->_data9_;
	_tmp1_ = ldefault_apps_get_mime_list (_data9_->kf, _data9_->item, "installed", &_tmp0_);
	combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
	combobox_list = _tmp1_;
	combobox_list_length1 = _tmp0_;
	_combobox_list_size_ = combobox_list_length1;
	_tmp2_ = g_strdup ("");
	default_path = _tmp2_;
	_tmp3_ = g_strdup ("");
	default_exec = _tmp3_;
	{
		gint b = 0;
		b = 0;
		{
			gboolean _tmp4_ = FALSE;
			_tmp4_ = TRUE;
			while (TRUE) {
				gchar** _tmp6_;
				gint _tmp6__length1;
				gchar* item_list = NULL;
				gchar** _tmp7_;
				gint _tmp7__length1;
				const gchar* _tmp8_;
				gchar* _tmp9_;
				LDefaultAppsComboItemObject* combo_item = NULL;
				const gchar* _tmp10_;
				LDefaultAppsComboItemObject* _tmp11_;
				LDefaultAppsComboItemObject* _tmp12_;
				const gchar* _tmp13_;
				const gchar* _tmp14_;
				if (!_tmp4_) {
					gint _tmp5_;
					_tmp5_ = b;
					b = _tmp5_ + 1;
				}
				_tmp4_ = FALSE;
				_tmp6_ = combobox_list;
				_tmp6__length1 = combobox_list_length1;
				if (!(b < _tmp6__length1)) {
					break;
				}
				_tmp7_ = combobox_list;
				_tmp7__length1 = combobox_list_length1;
				_tmp8_ = _tmp7_[b];
				_tmp9_ = g_strdup (_tmp8_);
				item_list = _tmp9_;
				_tmp10_ = item_list;
				_tmp11_ = ldefault_apps_combo_item_object_new (_tmp10_);
				combo_item = _tmp11_;
				_tmp12_ = combo_item;
				_tmp13_ = ldefault_apps_combo_item_object_get_exec (_tmp12_);
				_tmp14_ = _tmp13_;
				if (g_strcmp0 (_data9_->item, _tmp14_) == 0) {
					LDefaultAppsComboItemObject* _tmp15_;
					const gchar* _tmp16_;
					const gchar* _tmp17_;
					gchar* _tmp18_;
					LDefaultAppsComboItemObject* _tmp19_;
					const gchar* _tmp20_;
					const gchar* _tmp21_;
					gchar* _tmp22_;
					_tmp15_ = combo_item;
					_tmp16_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp15_);
					_tmp17_ = _tmp16_;
					_tmp18_ = g_strdup (_tmp17_);
					_g_free0 (default_path);
					default_path = _tmp18_;
					_tmp19_ = combo_item;
					_tmp20_ = ldefault_apps_combo_item_object_get_exec (_tmp19_);
					_tmp21_ = _tmp20_;
					_tmp22_ = g_strdup (_tmp21_);
					_g_free0 (default_exec);
					default_exec = _tmp22_;
				}
				_g_object_unref0 (combo_item);
				_g_free0 (item_list);
			}
		}
	}
	_tmp23_ = default_exec;
	ldefault_apps_create_mime_associate_window (_data9_->dbus_backend, _data9_->kf, _data9_->item, _tmp23_);
	_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_;
	_data9_ = _data10_->_data9_;
	ldefault_apps_dbus_backend_Set (_data9_->dbus_backend, _data9_->item, "autostart", "true");
}

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

static void
______lambda16_ (Block10Data* _data10_)
{
	Block9Data* _data9_;
	_data9_ = _data10_->_data9_;
	ldefault_apps_dbus_backend_Set (_data9_->dbus_backend, "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)
{
	glong string_length = 0L;
	gint _tmp0_;
	gint _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gchar* _tmp4_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = strlen (self);
	_tmp1_ = _tmp0_;
	string_length = (glong) _tmp1_;
	if (start < ((glong) 0)) {
		start = string_length + start;
	}
	if (end < ((glong) 0)) {
		end = string_length + end;
	}
	if (start >= ((glong) 0)) {
		_tmp2_ = start <= string_length;
	} else {
		_tmp2_ = FALSE;
	}
	g_return_val_if_fail (_tmp2_, NULL);
	if (end >= ((glong) 0)) {
		_tmp3_ = end <= string_length;
	} else {
		_tmp3_ = FALSE;
	}
	g_return_val_if_fail (_tmp3_, NULL);
	g_return_val_if_fail (start <= end, NULL);
	_tmp4_ = g_strndup (((gchar*) self) + start, (gsize) (end - start));
	result = _tmp4_;
	return result;
}

static void
______lambda17_ (Block10Data* _data10_)
{
	Block9Data* _data9_;
	gchar* default_text = NULL;
	gchar* _tmp0_;
	gchar* default_command = NULL;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gboolean _tmp4_;
	const gchar* _tmp9_;
	GQuark _tmp11_ = 0U;
	static GQuark _tmp10_label0 = 0;
	static GQuark _tmp10_label1 = 0;
	GError* _inner_error0_ = NULL;
	_data9_ = _data10_->_data9_;
	_tmp0_ = ldefault_apps_dbus_backend_Get (_data9_->dbus_backend, _data9_->item, "command");
	default_text = _tmp0_;
	_tmp1_ = default_text;
	_tmp2_ = string_slice (_tmp1_, (glong) 0, (glong) 1);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strcmp0 (_tmp3_, "/") == 0;
	_g_free0 (_tmp3_);
	if (_tmp4_) {
		const gchar* _tmp5_;
		gchar* _tmp6_;
		_tmp5_ = default_text;
		_tmp6_ = g_strdup (_tmp5_);
		_g_free0 (default_command);
		default_command = _tmp6_;
	} else {
		const gchar* _tmp7_;
		gchar* _tmp8_;
		_tmp7_ = default_text;
		_tmp8_ = g_strconcat ("/usr/bin/", _tmp7_, NULL);
		_g_free0 (default_command);
		default_command = _tmp8_;
	}
	_tmp9_ = _data9_->item;
	_tmp11_ = (NULL == _tmp9_) ? 0 : g_quark_from_string (_tmp9_);
	if (_tmp11_ == ((0 != _tmp10_label0) ? _tmp10_label0 : (_tmp10_label0 = g_quark_from_static_string ("webbrowser")))) {
		switch (0) {
			default:
			{
				{
					const gchar* _tmp12_;
					gchar* _tmp13_;
					gchar* _tmp14_;
					gchar* _tmp15_;
					gchar* _tmp16_;
					_tmp12_ = default_command;
					_tmp13_ = g_strconcat ("gksu \"update-alternatives --set x-www-browser ", _tmp12_, NULL);
					_tmp14_ = _tmp13_;
					_tmp15_ = g_strconcat (_tmp14_, "\"", NULL);
					_tmp16_ = _tmp15_;
					g_spawn_command_line_async (_tmp16_, &_inner_error0_);
					_g_free0 (_tmp16_);
					_g_free0 (_tmp14_);
					if (G_UNLIKELY (_inner_error0_ != NULL)) {
						if (_inner_error0_->domain == G_SPAWN_ERROR) {
							goto __catch0_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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
						g_clear_error (&_inner_error0_);
						return;
					}
				}
				goto __finally0;
				__catch0_g_spawn_error:
				{
					GError* err = NULL;
					GError* _tmp17_;
					const gchar* _tmp18_;
					err = _inner_error0_;
					_inner_error0_ = NULL;
					_tmp17_ = err;
					_tmp18_ = _tmp17_->message;
					g_warning ("combobox.vala:310: %s", _tmp18_);
					_g_error_free0 (err);
				}
				__finally0:
				if (G_UNLIKELY (_inner_error0_ != NULL)) {
					_g_free0 (default_command);
					_g_free0 (default_text);
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
					g_clear_error (&_inner_error0_);
					return;
				}
				break;
			}
		}
	} else if (_tmp11_ == ((0 != _tmp10_label1) ? _tmp10_label1 : (_tmp10_label1 = g_quark_from_static_string ("terminal_manager")))) {
		switch (0) {
			default:
			{
				{
					const gchar* _tmp19_;
					gchar* _tmp20_;
					gchar* _tmp21_;
					gchar* _tmp22_;
					gchar* _tmp23_;
					_tmp19_ = default_command;
					_tmp20_ = g_strconcat ("gksu \"update-alternatives --set x-terminal-emulator ", _tmp19_, NULL);
					_tmp21_ = _tmp20_;
					_tmp22_ = g_strconcat (_tmp21_, "\"", NULL);
					_tmp23_ = _tmp22_;
					g_spawn_command_line_async (_tmp23_, &_inner_error0_);
					_g_free0 (_tmp23_);
					_g_free0 (_tmp21_);
					if (G_UNLIKELY (_inner_error0_ != NULL)) {
						if (_inner_error0_->domain == G_SPAWN_ERROR) {
							goto __catch1_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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
						g_clear_error (&_inner_error0_);
						return;
					}
				}
				goto __finally1;
				__catch1_g_spawn_error:
				{
					GError* err = NULL;
					GError* _tmp24_;
					const gchar* _tmp25_;
					err = _inner_error0_;
					_inner_error0_ = NULL;
					_tmp24_ = err;
					_tmp25_ = _tmp24_->message;
					g_warning ("combobox.vala:322: %s", _tmp25_);
					_g_error_free0 (err);
				}
				__finally1:
				if (G_UNLIKELY (_inner_error0_ != NULL)) {
					_g_free0 (default_command);
					_g_free0 (default_text);
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
					g_clear_error (&_inner_error0_);
					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_;
	const gchar* _tmp1_;
	_data10_ = _data12_->_data10_;
	_data9_ = _data10_->_data9_;
	_tmp0_ = _data12_->entry;
	_tmp1_ = gtk_entry_get_text (_tmp0_);
	if (_tmp1_ != NULL) {
		const gchar* _tmp2_;
		GtkEntry* _tmp3_;
		const gchar* _tmp4_;
		_tmp2_ = _data9_->more_list[_data10_->a];
		_tmp3_ = _data12_->entry;
		_tmp4_ = gtk_entry_get_text (_tmp3_);
		ldefault_apps_dbus_backend_Set (_data9_->dbus_backend, _data9_->item, _tmp2_, _tmp4_);
	}
}

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

static inline gpointer
ldefault_apps_combo_item_object_get_instance_private (LDefaultAppsComboItemObject* self)
{
	return G_STRUCT_MEMBER_P (self, LDefaultAppsComboItemObject_private_offset);
}

LDefaultAppsComboItemObject*
ldefault_apps_combo_item_object_construct (GType object_type,
                                           const gchar* item)
{
	LDefaultAppsComboItemObject * self = NULL;
	gchar** _tmp0_;
	gchar** _tmp1_;
	gchar** _tmp2_;
	gint _tmp2__length1;
	const gchar* _tmp3_;
	gchar** _tmp4_;
	gint _tmp4__length1;
	const gchar* _tmp5_;
	gchar** _tmp6_;
	gint _tmp6__length1;
	const gchar* _tmp7_;
	GtkImage* _tmp8_;
	GtkImage* _tmp9_;
	gchar** _tmp10_;
	gint _tmp10__length1;
	const gchar* _tmp11_;
	gchar** _tmp12_;
	gint _tmp12__length1;
	const gchar* _tmp13_;
	gchar** _tmp14_;
	gint _tmp14__length1;
	const gchar* _tmp15_;
	g_return_val_if_fail (item != NULL, NULL);
	self = (LDefaultAppsComboItemObject*) g_object_new (object_type, NULL);
	_tmp1_ = _tmp0_ = g_strsplit_set (item, ",", 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 = _tmp1_;
	self->tmp_item_array_length1 = _vala_array_length (_tmp0_);
	_tmp2_ = self->tmp_item_array;
	_tmp2__length1 = self->tmp_item_array_length1;
	_tmp3_ = _tmp2_[0];
	ldefault_apps_combo_item_object_set_name (self, _tmp3_);
	_tmp4_ = self->tmp_item_array;
	_tmp4__length1 = self->tmp_item_array_length1;
	_tmp5_ = _tmp4_[1];
	ldefault_apps_combo_item_object_set_exec (self, _tmp5_);
	_tmp6_ = self->tmp_item_array;
	_tmp6__length1 = self->tmp_item_array_length1;
	_tmp7_ = _tmp6_[2];
	_tmp8_ = ldefault_apps_combo_item_object_create_image (self, _tmp7_);
	_tmp9_ = _tmp8_;
	ldefault_apps_combo_item_object_set_icon (self, _tmp9_);
	_g_object_unref0 (_tmp9_);
	_tmp10_ = self->tmp_item_array;
	_tmp10__length1 = self->tmp_item_array_length1;
	_tmp11_ = _tmp10_[2];
	ldefault_apps_combo_item_object_set_icon_name (self, _tmp11_);
	_tmp12_ = self->tmp_item_array;
	_tmp12__length1 = self->tmp_item_array_length1;
	_tmp13_ = _tmp12_[3];
	ldefault_apps_combo_item_object_set_desktop_path (self, _tmp13_);
	_tmp14_ = self->tmp_item_array;
	_tmp14__length1 = self->tmp_item_array_length1;
	_tmp15_ = _tmp14_[4];
	ldefault_apps_combo_item_object_set_install_package (self, _tmp15_);
	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* image = NULL;
	GtkImage* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gboolean _tmp3_;
	GtkImage* result;
	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_ = string_slice (item_image_string, (glong) 0, (glong) 1);
	_tmp2_ = _tmp1_;
	_tmp3_ = g_strcmp0 (_tmp2_, "/") == 0;
	_g_free0 (_tmp2_);
	if (_tmp3_) {
		GtkImage* _tmp4_;
		_tmp4_ = image;
		gtk_image_set_from_file (_tmp4_, item_image_string);
	} else {
		GtkImage* _tmp5_;
		_tmp5_ = image;
		gtk_image_set_from_icon_name (_tmp5_, item_image_string, (GtkIconSize) 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_;
	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)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = ldefault_apps_combo_item_object_get_name (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_name);
		self->priv->_name = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME_PROPERTY]);
	}
}

const gchar*
ldefault_apps_combo_item_object_get_exec (LDefaultAppsComboItemObject* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	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)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = ldefault_apps_combo_item_object_get_exec (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_exec);
		self->priv->_exec = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC_PROPERTY]);
	}
}

GtkImage*
ldefault_apps_combo_item_object_get_icon (LDefaultAppsComboItemObject* self)
{
	GtkImage* result;
	GtkImage* _tmp0_;
	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* old_value;
	g_return_if_fail (self != NULL);
	old_value = ldefault_apps_combo_item_object_get_icon (self);
	if (old_value != value) {
		GtkImage* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_icon);
		self->priv->_icon = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_PROPERTY]);
	}
}

const gchar*
ldefault_apps_combo_item_object_get_icon_name (LDefaultAppsComboItemObject* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	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)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = ldefault_apps_combo_item_object_get_icon_name (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_icon_name);
		self->priv->_icon_name = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME_PROPERTY]);
	}
}

const gchar*
ldefault_apps_combo_item_object_get_desktop_path (LDefaultAppsComboItemObject* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	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)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = ldefault_apps_combo_item_object_get_desktop_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_desktop_path);
		self->priv->_desktop_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH_PROPERTY]);
	}
}

const gchar*
ldefault_apps_combo_item_object_get_install_package (LDefaultAppsComboItemObject* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	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)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = ldefault_apps_combo_item_object_get_install_package (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_install_package);
		self->priv->_install_package = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE_PROPERTY]);
	}
}

static void
ldefault_apps_combo_item_object_class_init (LDefaultAppsComboItemObjectClass * klass,
                                            gpointer klass_data)
{
	ldefault_apps_combo_item_object_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &LDefaultAppsComboItemObject_private_offset);
	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_PROPERTY, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_NAME_PROPERTY] = g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC_PROPERTY, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC_PROPERTY] = g_param_spec_string ("exec", "exec", "exec", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_PROPERTY, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_PROPERTY] = g_param_spec_object ("icon", "icon", "icon", gtk_image_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME_PROPERTY, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME_PROPERTY] = g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH_PROPERTY, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH_PROPERTY] = g_param_spec_string ("desktop-path", "desktop-path", "desktop-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE_PROPERTY, ldefault_apps_combo_item_object_properties[LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE_PROPERTY] = g_param_spec_string ("install-package", "install-package", "install-package", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
ldefault_apps_combo_item_object_instance_init (LDefaultAppsComboItemObject * self,
                                               gpointer klass)
{
	self->priv = ldefault_apps_combo_item_object_get_instance_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);
}

static GType
ldefault_apps_combo_item_object_get_type_once (void)
{
	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);
	LDefaultAppsComboItemObject_private_offset = g_type_add_instance_private (ldefault_apps_combo_item_object_type_id, sizeof (LDefaultAppsComboItemObjectPrivate));
	return ldefault_apps_combo_item_object_type_id;
}

GType
ldefault_apps_combo_item_object_get_type (void)
{
	static volatile gsize ldefault_apps_combo_item_object_type_id__once = 0;
	if (g_once_init_enter (&ldefault_apps_combo_item_object_type_id__once)) {
		GType ldefault_apps_combo_item_object_type_id;
		ldefault_apps_combo_item_object_type_id = ldefault_apps_combo_item_object_get_type_once ();
		g_once_init_leave (&ldefault_apps_combo_item_object_type_id__once, ldefault_apps_combo_item_object_type_id);
	}
	return ldefault_apps_combo_item_object_type_id__once;
}

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_PROPERTY:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_name (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC_PROPERTY:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_exec (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_PROPERTY:
		g_value_set_object (value, ldefault_apps_combo_item_object_get_icon (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME_PROPERTY:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_icon_name (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH_PROPERTY:
		g_value_set_string (value, ldefault_apps_combo_item_object_get_desktop_path (self));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE_PROPERTY:
		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_PROPERTY:
		ldefault_apps_combo_item_object_set_name (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_EXEC_PROPERTY:
		ldefault_apps_combo_item_object_set_exec (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_PROPERTY:
		ldefault_apps_combo_item_object_set_icon (self, g_value_get_object (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_ICON_NAME_PROPERTY:
		ldefault_apps_combo_item_object_set_icon_name (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_DESKTOP_PATH_PROPERTY:
		ldefault_apps_combo_item_object_set_desktop_path (self, g_value_get_string (value));
		break;
		case LDEFAULT_APPS_COMBO_ITEM_OBJECT_INSTALL_PACKAGE_PROPERTY:
		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_key_file_unref0 (_data13_->kf);
		_g_free0 (_data13_->combobox_list_name);
		g_slice_free (Block13Data, _data13_);
	}
}

static void
__lambda19_ (Block13Data* _data13_)
{
	GValue val1 = {0};
	GValue val2 = {0};
	GtkComboBox* _tmp0_;
	GtkTreeIter _tmp1_ = {0};
	GtkListStore* _tmp2_;
	GtkTreeIter _tmp3_;
	GValue _tmp4_ = {0};
	GtkListStore* _tmp5_;
	GtkTreeIter _tmp6_;
	GValue _tmp7_ = {0};
	GValue _tmp8_;
	GValue _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp14_;
	_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) {
		const gchar* _tmp11_;
		GValue _tmp12_;
		GValue _tmp13_;
		_tmp11_ = g_value_get_string (&val2);
		ldefault_apps_dbus_backend_Set (_data13_->dbus_backend, _data13_->combobox_list_name, "command", _tmp11_);
		_tmp12_ = val1;
		_tmp13_ = val2;
		g_message ("combobox.vala:520: Setting %s: %d, %s\n", _data13_->combobox_list_name, g_value_get_int (&_tmp12_), g_value_get_string (&_tmp13_));
	}
	_tmp14_ = g_value_get_string (&val2);
	ldefault_apps_create_mime_associate_window (_data13_->dbus_backend, _data13_->kf, _data13_->combobox_list_name, _tmp14_);
	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;
	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)
{
	Block13Data* _data13_;
	LDefaultAppsDbusBackend* _tmp0_;
	GKeyFile* _tmp1_;
	gchar* _tmp2_;
	GObject* _tmp3_;
	GtkComboBox* _tmp4_;
	GtkListStore* _tmp5_;
	gint default_index = 0;
	gboolean default_set = FALSE;
	gchar** combobox_list = NULL;
	gint combobox_list_length1 = 0;
	gint _combobox_list_size_ = 0;
	GtkListStore* _tmp10_;
	GtkTreeIter _tmp11_ = {0};
	GtkListStore* _tmp12_;
	GtkTreeIter _tmp13_;
	GtkComboBox* _tmp45_;
	GtkListStore* _tmp46_;
	GtkCellRendererPixbuf* renderer_image = NULL;
	GtkCellRendererPixbuf* _tmp47_;
	GtkComboBox* _tmp48_;
	GtkCellRendererPixbuf* _tmp49_;
	GtkComboBox* _tmp50_;
	GtkCellRendererPixbuf* _tmp51_;
	GtkCellRendererText* renderer = NULL;
	GtkCellRendererText* _tmp52_;
	GtkComboBox* _tmp53_;
	GtkCellRendererText* _tmp54_;
	GtkComboBox* _tmp55_;
	GtkCellRendererText* _tmp56_;
	GtkComboBox* _tmp57_;
	GtkComboBox* _tmp67_;
	GtkComboBox* _tmp68_;
	GtkComboBox* _tmp69_;
	GtkComboBox* _tmp70_;
	GtkComboBox* result;
	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_ = _g_object_ref0 (dbus_backend);
	_g_object_unref0 (_data13_->dbus_backend);
	_data13_->dbus_backend = _tmp0_;
	_tmp1_ = _g_key_file_ref0 (kf);
	_g_key_file_unref0 (_data13_->kf);
	_data13_->kf = _tmp1_;
	_tmp2_ = g_strdup (combobox_list_name);
	_g_free0 (_data13_->combobox_list_name);
	_data13_->combobox_list_name = _tmp2_;
	_tmp3_ = gtk_builder_get_object (builder, combobox_name);
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_combo_box_get_type ()) ? ((GtkComboBox*) _tmp3_) : NULL);
	_data13_->return_combobox = _tmp4_;
	_tmp5_ = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, -1);
	_data13_->list_store = _tmp5_;
	default_index = -1;
	default_set = FALSE;
	if (generic_item != NULL) {
		gint _tmp6_ = 0;
		gchar** _tmp7_;
		_tmp7_ = ldefault_apps_get_mime_list (_data13_->kf, generic_item, "installed", &_tmp6_);
		combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
		combobox_list = _tmp7_;
		combobox_list_length1 = _tmp6_;
		_combobox_list_size_ = combobox_list_length1;
	} else {
		gint _tmp8_ = 0;
		gchar** _tmp9_;
		_tmp9_ = ldefault_apps_get_mime_list (_data13_->kf, _data13_->combobox_list_name, "installed", &_tmp8_);
		combobox_list = (_vala_array_free (combobox_list, combobox_list_length1, (GDestroyNotify) g_free), NULL);
		combobox_list = _tmp9_;
		combobox_list_length1 = _tmp8_;
		_combobox_list_size_ = combobox_list_length1;
	}
	_tmp10_ = _data13_->list_store;
	gtk_list_store_append (_tmp10_, &_tmp11_);
	_data13_->iter = _tmp11_;
	_tmp12_ = _data13_->list_store;
	_tmp13_ = _data13_->iter;
	gtk_list_store_set (_tmp12_, &_tmp13_, 0, "window-close", 1, _ ("Disable"), 2, 0, 3, "", -1);
	{
		gint a = 0;
		a = 0;
		{
			gboolean _tmp14_ = FALSE;
			_tmp14_ = TRUE;
			while (TRUE) {
				gchar** _tmp16_;
				gint _tmp16__length1;
				gchar* item_list = NULL;
				gchar** _tmp17_;
				gint _tmp17__length1;
				const gchar* _tmp18_;
				gchar* _tmp19_;
				LDefaultAppsComboItemObject* combo_item = NULL;
				const gchar* _tmp20_;
				LDefaultAppsComboItemObject* _tmp21_;
				GtkListStore* _tmp22_;
				GtkTreeIter _tmp23_ = {0};
				GtkListStore* _tmp24_;
				GtkTreeIter _tmp25_;
				LDefaultAppsComboItemObject* _tmp26_;
				const gchar* _tmp27_;
				const gchar* _tmp28_;
				LDefaultAppsComboItemObject* _tmp29_;
				const gchar* _tmp30_;
				const gchar* _tmp31_;
				LDefaultAppsComboItemObject* _tmp32_;
				const gchar* _tmp33_;
				const gchar* _tmp34_;
				LDefaultAppsComboItemObject* _tmp35_;
				const gchar* _tmp36_;
				const gchar* _tmp37_;
				if (!_tmp14_) {
					gint _tmp15_;
					_tmp15_ = a;
					a = _tmp15_ + 1;
				}
				_tmp14_ = FALSE;
				_tmp16_ = combobox_list;
				_tmp16__length1 = combobox_list_length1;
				if (!(a < _tmp16__length1)) {
					break;
				}
				_tmp17_ = combobox_list;
				_tmp17__length1 = combobox_list_length1;
				_tmp18_ = _tmp17_[a];
				_tmp19_ = g_strdup (_tmp18_);
				item_list = _tmp19_;
				_tmp20_ = item_list;
				_tmp21_ = ldefault_apps_combo_item_object_new (_tmp20_);
				combo_item = _tmp21_;
				_tmp22_ = _data13_->list_store;
				gtk_list_store_append (_tmp22_, &_tmp23_);
				_data13_->iter = _tmp23_;
				_tmp24_ = _data13_->list_store;
				_tmp25_ = _data13_->iter;
				_tmp26_ = combo_item;
				_tmp27_ = ldefault_apps_combo_item_object_get_icon_name (_tmp26_);
				_tmp28_ = _tmp27_;
				_tmp29_ = combo_item;
				_tmp30_ = ldefault_apps_combo_item_object_get_name (_tmp29_);
				_tmp31_ = _tmp30_;
				_tmp32_ = combo_item;
				_tmp33_ = ldefault_apps_combo_item_object_get_exec (_tmp32_);
				_tmp34_ = _tmp33_;
				gtk_list_store_set (_tmp24_, &_tmp25_, 0, _tmp28_, 1, _tmp31_, 2, a, 3, _tmp34_, -1);
				_tmp35_ = combo_item;
				_tmp36_ = ldefault_apps_combo_item_object_get_exec (_tmp35_);
				_tmp37_ = _tmp36_;
				if (g_strcmp0 (_tmp37_, by_default) == 0) {
					default_index = a + 1;
					default_set = TRUE;
				}
				_g_object_unref0 (combo_item);
				_g_free0 (item_list);
			}
		}
	}
	g_message ("combobox.vala:443: Default = %s", by_default);
	if (g_strcmp0 (by_default, "") == 0) {
		default_index = 0;
		default_set = TRUE;
	}
	if (default_set == FALSE) {
		GValue val = {0};
		gint last_position = 0;
		GtkListStore* _tmp38_;
		GtkTreeIter _tmp39_ = {0};
		GtkListStore* _tmp40_;
		GtkTreeIter _tmp41_;
		GValue _tmp42_ = {0};
		GtkListStore* _tmp43_;
		GtkTreeIter _tmp44_;
		_tmp38_ = _data13_->list_store;
		gtk_list_store_append (_tmp38_, &_tmp39_);
		_data13_->iter = _tmp39_;
		_tmp40_ = _data13_->list_store;
		_tmp41_ = _data13_->iter;
		gtk_tree_model_get_value ((GtkTreeModel*) _tmp40_, &_tmp41_, 2, &_tmp42_);
		G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
		val = _tmp42_;
		last_position = g_value_get_int (&val) + 1;
		_tmp43_ = _data13_->list_store;
		_tmp44_ = _data13_->iter;
		gtk_list_store_set (_tmp43_, &_tmp44_, 0, "", 1, by_default, 2, last_position, 3, by_default, -1);
		G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
	}
	_tmp45_ = _data13_->return_combobox;
	_tmp46_ = _data13_->list_store;
	gtk_combo_box_set_model (_tmp45_, (GtkTreeModel*) _tmp46_);
	_tmp47_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
	g_object_ref_sink (_tmp47_);
	renderer_image = _tmp47_;
	_tmp48_ = _data13_->return_combobox;
	_tmp49_ = renderer_image;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp48_, (GtkCellRenderer*) _tmp49_, FALSE);
	_tmp50_ = _data13_->return_combobox;
	_tmp51_ = renderer_image;
	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp50_, (GtkCellRenderer*) _tmp51_, "icon-name", 0);
	_tmp52_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp52_);
	renderer = _tmp52_;
	_tmp53_ = _data13_->return_combobox;
	_tmp54_ = renderer;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp53_, (GtkCellRenderer*) _tmp54_, FALSE);
	_tmp55_ = _data13_->return_combobox;
	_tmp56_ = renderer;
	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp55_, (GtkCellRenderer*) _tmp56_, "text", 1);
	_tmp57_ = _data13_->return_combobox;
	gtk_combo_box_set_active (_tmp57_, 0);
	if (default_index == -1) {
		const gchar* _tmp58_;
		GQuark _tmp60_ = 0U;
		static GQuark _tmp59_label0 = 0;
		static GQuark _tmp59_label1 = 0;
		static GQuark _tmp59_label2 = 0;
		g_message ("combobox.vala:484: Iter == -1");
		_tmp58_ = by_default;
		_tmp60_ = (NULL == _tmp58_) ? 0 : g_quark_from_string (_tmp58_);
		if (_tmp60_ == ((0 != _tmp59_label0) ? _tmp59_label0 : (_tmp59_label0 = g_quark_from_static_string (NULL)))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp61_;
					_tmp61_ = _data13_->return_combobox;
					gtk_combo_box_set_active (_tmp61_, 0);
					break;
				}
			}
		} else if (_tmp60_ == ((0 != _tmp59_label1) ? _tmp59_label1 : (_tmp59_label1 = g_quark_from_static_string ("")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp62_;
					_tmp62_ = _data13_->return_combobox;
					gtk_combo_box_set_active (_tmp62_, 0);
					break;
				}
			}
		} else if (_tmp60_ == ((0 != _tmp59_label2) ? _tmp59_label2 : (_tmp59_label2 = g_quark_from_static_string (" ")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp63_;
					_tmp63_ = _data13_->return_combobox;
					gtk_combo_box_set_active (_tmp63_, 0);
					break;
				}
			}
		} else {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp64_;
					GtkTreeIter _tmp65_;
					_tmp64_ = _data13_->return_combobox;
					_tmp65_ = _data13_->iter;
					gtk_combo_box_set_active_iter (_tmp64_, &_tmp65_);
					break;
				}
			}
		}
	} else {
		GtkComboBox* _tmp66_;
		g_message ("combobox.vala:503: Iter == %d", default_index);
		_tmp66_ = _data13_->return_combobox;
		gtk_combo_box_set_active (_tmp66_, default_index);
	}
	_tmp67_ = _data13_->return_combobox;
	g_signal_connect_data (_tmp67_, "changed", (GCallback) ___lambda19__gtk_combo_box_changed, block13_data_ref (_data13_), (GClosureNotify) block13_data_unref, 0);
	_tmp68_ = _data13_->return_combobox;
	g_signal_connect ((GtkWidget*) _tmp68_, "scroll-event", (GCallback) ___lambda20__gtk_widget_scroll_event, NULL);
	_tmp69_ = _data13_->return_combobox;
	_tmp70_ = _g_object_ref0 (_tmp69_);
	result = _tmp70_;
	_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_;
	gint _tmp0__length1;
	const gchar* _tmp1_;
	_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_, (gint) _tmp0__length1, _tmp1_);
	gtk_widget_destroy ((GtkWidget*) _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_widget_destroy ((GtkWidget*) _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_;
	GtkScrolledWindow* scrolled = NULL;
	GtkScrolledWindow* _tmp6_;
	GtkScrolledWindow* _tmp7_;
	GtkScrolledWindow* _tmp8_;
	GtkViewport* mime_view_port = NULL;
	GtkViewport* _tmp9_;
	GtkViewport* _tmp10_;
	GtkScrolledWindow* _tmp11_;
	GtkViewport* _tmp12_;
	GtkVBox* mime_vbox = NULL;
	GtkVBox* _tmp13_;
	GtkViewport* _tmp14_;
	GtkVBox* _tmp15_;
	GtkLabel* info_label = NULL;
	GtkLabel* _tmp16_;
	GtkVBox* _tmp17_;
	GtkLabel* _tmp18_;
	gchar** mime_combobox_list = NULL;
	gint mime_combobox_list_length1 = 0;
	gint _mime_combobox_list_size_ = 0;
	gint _tmp19_ = 0;
	gchar** _tmp20_;
	gchar* default_path = NULL;
	gchar* _tmp21_;
	const gchar* _tmp43_;
	const gchar* _tmp44_;
	GError* _inner_error0_ = 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_;
		GdkPixbuf* _tmp3_;
		_tmp2_ = gtk_icon_theme_get_default ();
		_tmp3_ = gtk_icon_theme_load_icon (_tmp2_, "preferences-desktop", 48, 0, &_inner_error0_);
		_tmp1_ = _tmp3_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		gtk_window_set_icon (_data14_->window_mime, _tmp1_);
		_g_object_unref0 (_tmp1_);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp4_ = e;
		_tmp5_ = _tmp4_->message;
		g_message ("combobox.vala:549: Could not load application icon: %s\n", _tmp5_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		block14_data_unref (_data14_);
		_data14_ = NULL;
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		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_ = (GtkLabel*) gtk_label_new (_ ("Do you want to associate the following Mimetype?\n"));
	g_object_ref_sink (_tmp16_);
	info_label = _tmp16_;
	_tmp17_ = mime_vbox;
	_tmp18_ = info_label;
	gtk_container_add ((GtkContainer*) _tmp17_, (GtkWidget*) _tmp18_);
	_tmp20_ = ldefault_apps_get_mime_list (kf, combobox_list_name, "installed", &_tmp19_);
	mime_combobox_list = (_vala_array_free (mime_combobox_list, mime_combobox_list_length1, (GDestroyNotify) g_free), NULL);
	mime_combobox_list = _tmp20_;
	mime_combobox_list_length1 = _tmp19_;
	_mime_combobox_list_size_ = mime_combobox_list_length1;
	_tmp21_ = g_strdup ("");
	default_path = _tmp21_;
	{
		gint b = 0;
		b = 0;
		{
			gboolean _tmp22_ = FALSE;
			_tmp22_ = TRUE;
			while (TRUE) {
				gchar** _tmp24_;
				gint _tmp24__length1;
				gchar* item_list = NULL;
				gchar** _tmp25_;
				gint _tmp25__length1;
				const gchar* _tmp26_;
				gchar* _tmp27_;
				LDefaultAppsComboItemObject* combo_item = NULL;
				const gchar* _tmp28_;
				LDefaultAppsComboItemObject* _tmp29_;
				LDefaultAppsComboItemObject* _tmp30_;
				const gchar* _tmp31_;
				const gchar* _tmp32_;
				LDefaultAppsComboItemObject* _tmp33_;
				const gchar* _tmp34_;
				const gchar* _tmp35_;
				LDefaultAppsComboItemObject* _tmp36_;
				const gchar* _tmp37_;
				const gchar* _tmp38_;
				if (!_tmp22_) {
					gint _tmp23_;
					_tmp23_ = b;
					b = _tmp23_ + 1;
				}
				_tmp22_ = FALSE;
				_tmp24_ = mime_combobox_list;
				_tmp24__length1 = mime_combobox_list_length1;
				if (!(b < _tmp24__length1)) {
					break;
				}
				_tmp25_ = mime_combobox_list;
				_tmp25__length1 = mime_combobox_list_length1;
				_tmp26_ = _tmp25_[b];
				_tmp27_ = g_strdup (_tmp26_);
				item_list = _tmp27_;
				_tmp28_ = item_list;
				_tmp29_ = ldefault_apps_combo_item_object_new (_tmp28_);
				combo_item = _tmp29_;
				_tmp30_ = combo_item;
				_tmp31_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp30_);
				_tmp32_ = _tmp31_;
				g_message ("combobox.vala:575: combo_item.desktop_path: %s", _tmp32_);
				g_message ("combobox.vala:576: combobox_list_name: %s", combobox_list_name);
				_tmp33_ = combo_item;
				_tmp34_ = ldefault_apps_combo_item_object_get_exec (_tmp33_);
				_tmp35_ = _tmp34_;
				g_message ("combobox.vala:577: combo_item.exec: %s", _tmp35_);
				_tmp36_ = combo_item;
				_tmp37_ = ldefault_apps_combo_item_object_get_exec (_tmp36_);
				_tmp38_ = _tmp37_;
				if (g_strcmp0 (command, _tmp38_) == 0) {
					LDefaultAppsComboItemObject* _tmp39_;
					const gchar* _tmp40_;
					const gchar* _tmp41_;
					gchar* _tmp42_;
					_tmp39_ = combo_item;
					_tmp40_ = ldefault_apps_combo_item_object_get_desktop_path (_tmp39_);
					_tmp41_ = _tmp40_;
					_tmp42_ = g_strdup (_tmp41_);
					_g_free0 (default_path);
					default_path = _tmp42_;
				}
				_g_object_unref0 (combo_item);
				_g_free0 (item_list);
			}
		}
	}
	_tmp43_ = default_path;
	g_message ("combobox.vala:585: Look at default_path: %s", _tmp43_);
	_tmp44_ = default_path;
	if (g_strcmp0 (_tmp44_, "") != 0) {
		Block15Data* _data15_;
		GKeyFile* kf_mime = NULL;
		GKeyFile* _tmp45_;
		_data15_ = g_slice_new0 (Block15Data);
		_data15_->_ref_count_ = 1;
		_data15_->_data14_ = block14_data_ref (_data14_);
		_tmp45_ = g_key_file_new ();
		kf_mime = _tmp45_;
		{
			GKeyFile* _tmp46_;
			const gchar* _tmp47_;
			_tmp46_ = kf_mime;
			_tmp47_ = default_path;
			g_key_file_load_from_file (_tmp46_, _tmp47_, G_KEY_FILE_NONE, &_inner_error0_);
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				if (_inner_error0_->domain == G_KEY_FILE_ERROR) {
					goto __catch1_g_key_file_error;
				}
				if (_inner_error0_->domain == G_FILE_ERROR) {
					goto __catch1_g_file_error;
				}
				_g_key_file_unref0 (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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
				g_clear_error (&_inner_error0_);
				return;
			}
		}
		goto __finally1;
		__catch1_g_key_file_error:
		{
			GError* err = NULL;
			GError* _tmp48_;
			const gchar* _tmp49_;
			err = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp48_ = err;
			_tmp49_ = _tmp48_->message;
			g_warning ("combobox.vala:597: %s", _tmp49_);
			_g_error_free0 (err);
		}
		goto __finally1;
		__catch1_g_file_error:
		{
			GError* err = NULL;
			GError* _tmp50_;
			const gchar* _tmp51_;
			err = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp50_ = err;
			_tmp51_ = _tmp50_->message;
			g_warning ("combobox.vala:601: %s", _tmp51_);
			_g_error_free0 (err);
		}
		__finally1:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_key_file_unref0 (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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return;
		}
		{
			gchar** _tmp52_ = NULL;
			GKeyFile* _tmp53_;
			gsize _tmp54_ = 0;
			gchar** _tmp55_;
			gint _tmp52__length1;
			gint __tmp52__size_;
			gchar** _tmp56_;
			gint _tmp56__length1;
			gchar** _tmp57_;
			gint _tmp57__length1;
			_tmp53_ = kf_mime;
			_tmp55_ = g_key_file_get_string_list (_tmp53_, "Desktop Entry", "MimeType", &_tmp54_, &_inner_error0_);
			_tmp52_ = _tmp55_;
			_tmp52__length1 = _tmp54_;
			__tmp52__size_ = _tmp52__length1;
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				if (_inner_error0_->domain == G_KEY_FILE_ERROR) {
					goto __catch2_g_key_file_error;
				}
				_g_key_file_unref0 (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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
				g_clear_error (&_inner_error0_);
				return;
			}
			_tmp56_ = _tmp52_;
			_tmp56__length1 = _tmp52__length1;
			_tmp52_ = NULL;
			_tmp52__length1 = 0;
			_data15_->mime_list = (_vala_array_free (_data15_->mime_list, _data15_->mime_list_length1, (GDestroyNotify) g_free), NULL);
			_data15_->mime_list = _tmp56_;
			_data15_->mime_list_length1 = _tmp56__length1;
			_data15_->_mime_list_size_ = _data15_->mime_list_length1;
			_tmp57_ = _data15_->mime_list;
			_tmp57__length1 = _data15_->mime_list_length1;
			if (_tmp57__length1 >= 1) {
				Block16Data* _data16_;
				const gchar* _tmp58_;
				gchar* _tmp59_;
				GtkHBox* hbox_buttons = NULL;
				GtkHBox* _tmp60_;
				GtkButton* ok_button = NULL;
				GtkButton* _tmp61_;
				GtkButton* cancel_button = NULL;
				GtkButton* _tmp62_;
				GtkVBox* _tmp63_;
				GtkHBox* _tmp64_;
				GtkHBox* _tmp65_;
				GtkButton* _tmp66_;
				GtkHBox* _tmp67_;
				GtkButton* _tmp68_;
				GtkButton* _tmp80_;
				GtkButton* _tmp81_;
				_data16_ = g_slice_new0 (Block16Data);
				_data16_->_ref_count_ = 1;
				_data16_->_data15_ = block15_data_ref (_data15_);
				_tmp58_ = default_path;
				_tmp59_ = g_path_get_basename (_tmp58_);
				_data16_->base_name = _tmp59_;
				_tmp60_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
				g_object_ref_sink (_tmp60_);
				hbox_buttons = _tmp60_;
				_tmp61_ = (GtkButton*) gtk_button_new_with_label ("OK");
				g_object_ref_sink (_tmp61_);
				ok_button = _tmp61_;
				_tmp62_ = (GtkButton*) gtk_button_new_with_label (_ ("Cancel"));
				g_object_ref_sink (_tmp62_);
				cancel_button = _tmp62_;
				_tmp63_ = mime_vbox;
				_tmp64_ = hbox_buttons;
				gtk_container_add ((GtkContainer*) _tmp63_, (GtkWidget*) _tmp64_);
				_tmp65_ = hbox_buttons;
				_tmp66_ = ok_button;
				gtk_container_add ((GtkContainer*) _tmp65_, (GtkWidget*) _tmp66_);
				_tmp67_ = hbox_buttons;
				_tmp68_ = cancel_button;
				gtk_container_add ((GtkContainer*) _tmp67_, (GtkWidget*) _tmp68_);
				g_message ("combobox.vala:616: Enter mime try");
				{
					gint i = 0;
					i = 0;
					{
						gboolean _tmp69_ = FALSE;
						_tmp69_ = TRUE;
						while (TRUE) {
							gchar** _tmp71_;
							gint _tmp71__length1;
							gchar* message_mime = NULL;
							gchar** _tmp72_;
							gint _tmp72__length1;
							const gchar* _tmp73_;
							gchar* _tmp74_;
							const gchar* _tmp75_;
							GtkLabel* label_mime = NULL;
							const gchar* _tmp76_;
							GtkLabel* _tmp77_;
							GtkVBox* _tmp78_;
							GtkLabel* _tmp79_;
							if (!_tmp69_) {
								gint _tmp70_;
								_tmp70_ = i;
								i = _tmp70_ + 1;
							}
							_tmp69_ = FALSE;
							_tmp71_ = _data15_->mime_list;
							_tmp71__length1 = _data15_->mime_list_length1;
							if (!(i < _tmp71__length1)) {
								break;
							}
							_tmp72_ = _data15_->mime_list;
							_tmp72__length1 = _data15_->mime_list_length1;
							_tmp73_ = _tmp72_[i];
							_tmp74_ = g_strconcat (_tmp73_, "\n", NULL);
							message_mime = _tmp74_;
							_tmp75_ = message_mime;
							g_message ("combobox.vala:620: Look at message_mime: %s", _tmp75_);
							_tmp76_ = message_mime;
							_tmp77_ = (GtkLabel*) gtk_label_new (_tmp76_);
							g_object_ref_sink (_tmp77_);
							label_mime = _tmp77_;
							_tmp78_ = mime_vbox;
							_tmp79_ = label_mime;
							gtk_container_add ((GtkContainer*) _tmp78_, (GtkWidget*) _tmp79_);
							_g_object_unref0 (label_mime);
							_g_free0 (message_mime);
						}
					}
				}
				_tmp80_ = ok_button;
				g_signal_connect_data (_tmp80_, "clicked", (GCallback) ______lambda13__gtk_button_clicked, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
				_tmp81_ = cancel_button;
				g_signal_connect_data (_tmp81_, "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_widget_destroy ((GtkWidget*) _data14_->window_mime);
			}
			_tmp52_ = (_vala_array_free (_tmp52_, _tmp52__length1, (GDestroyNotify) g_free), NULL);
		}
		goto __finally2;
		__catch2_g_key_file_error:
		{
			GError* err = NULL;
			GError* _tmp82_;
			const gchar* _tmp83_;
			err = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp82_ = err;
			_tmp83_ = _tmp82_->message;
			g_warning ("combobox.vala:643: %s", _tmp83_);
			_g_error_free0 (err);
		}
		__finally2:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_key_file_unref0 (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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return;
		}
		_g_key_file_unref0 (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,
                              gint mime_list_length1,
                              const gchar* base_name)
{
	gchar* mimeapps_list_directory = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	GKeyFile* kf_mimeapps = NULL;
	const gchar* _tmp2_;
	GKeyFile* _tmp3_;
	gchar* mimeapps_list_path = NULL;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* str = NULL;
	GKeyFile* _tmp12_;
	gchar* _tmp13_;
	GError* _inner_error0_ = 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_;
	if (mime_list != NULL) {
		{
			gint i = 0;
			i = 0;
			{
				gboolean _tmp6_ = FALSE;
				_tmp6_ = TRUE;
				while (TRUE) {
					GKeyFile* _tmp8_;
					const gchar* _tmp9_;
					GKeyFile* _tmp10_;
					const gchar* _tmp11_;
					if (!_tmp6_) {
						gint _tmp7_;
						_tmp7_ = i;
						i = _tmp7_ + 1;
					}
					_tmp6_ = FALSE;
					if (!(i < mime_list_length1)) {
						break;
					}
					_tmp8_ = kf_mimeapps;
					_tmp9_ = mime_list[i];
					g_key_file_set_string (_tmp8_, "Added Associations", _tmp9_, base_name);
					_tmp10_ = kf_mimeapps;
					_tmp11_ = mime_list[i];
					g_key_file_set_string (_tmp10_, "Default Applications", _tmp11_, base_name);
				}
			}
		}
	}
	_tmp12_ = kf_mimeapps;
	_tmp13_ = g_key_file_to_data (_tmp12_, NULL, NULL);
	str = _tmp13_;
	{
		const gchar* _tmp14_;
		gint _tmp15_;
		gint _tmp16_;
		_tmp14_ = mimeapps_list_path;
		_tmp15_ = strlen (str);
		_tmp16_ = _tmp15_;
		g_file_set_contents (_tmp14_, str, (gssize) _tmp16_, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_FILE_ERROR) {
				goto __catch0_g_file_error;
			}
			_g_free0 (str);
			_g_free0 (mimeapps_list_path);
			_g_key_file_unref0 (kf_mimeapps);
			_g_free0 (mimeapps_list_directory);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return;
		}
	}
	goto __finally0;
	__catch0_g_file_error:
	{
		GError* err = NULL;
		GError* _tmp17_;
		const gchar* _tmp18_;
		err = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp17_ = err;
		_tmp18_ = _tmp17_->message;
		g_warning ("combobox.vala:670: %s", _tmp18_);
		_g_error_free0 (err);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		_g_free0 (str);
		_g_free0 (mimeapps_list_path);
		_g_key_file_unref0 (kf_mimeapps);
		_g_free0 (mimeapps_list_directory);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return;
	}
	_g_free0 (str);
	_g_free0 (mimeapps_list_path);
	_g_key_file_unref0 (kf_mimeapps);
	_g_free0 (mimeapps_list_directory);
}

gchar*
ldefault_apps_return_combobox_text (GtkComboBox* combo)
{
	GtkTreeIter iter = {0};
	GtkListStore* model = NULL;
	GValue value1 = {0};
	GtkTreeIter _tmp0_ = {0};
	GtkTreeModel* _tmp1_;
	GtkListStore* _tmp2_;
	GtkTreeIter _tmp3_;
	GValue _tmp4_ = {0};
	GValue _tmp5_;
	GValue _tmp6_;
	gchar* _tmp7_;
	gchar* result;
	g_return_val_if_fail (combo != NULL, NULL);
	gtk_combo_box_get_active_iter (combo, &_tmp0_);
	iter = _tmp0_;
	_tmp1_ = gtk_combo_box_get_model (combo);
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_list_store_get_type (), GtkListStore));
	_g_object_unref0 (model);
	model = _tmp2_;
	_tmp3_ = iter;
	gtk_tree_model_get_value ((GtkTreeModel*) model, &_tmp3_, 0, &_tmp4_);
	G_IS_VALUE (&value1) ? (g_value_unset (&value1), NULL) : NULL;
	value1 = _tmp4_;
	_tmp5_ = value1;
	g_message ("combobox.vala:684:  Return value for %s", g_value_get_string (&_tmp5_));
	_tmp6_ = value1;
	_tmp7_ = g_strdup (g_value_get_string (&_tmp6_));
	result = _tmp7_;
	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,
                             gint* result_length1)
{
	gchar* keys = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar** return_value = NULL;
	gchar** _tmp4_;
	gint return_value_length1;
	gint _return_value_size_;
	gchar** _tmp11_;
	gint _tmp11__length1;
	GError* _inner_error0_ = NULL;
	gchar** result;
	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_ = g_strconcat (key1, "/", NULL);
	_tmp1_ = _tmp0_;
	_tmp2_ = g_strconcat (_tmp1_, mode, NULL);
	_tmp3_ = _tmp2_;
	_g_free0 (_tmp1_);
	keys = _tmp3_;
	_tmp4_ = g_new0 (gchar*, 0 + 1);
	return_value = _tmp4_;
	return_value_length1 = 0;
	_return_value_size_ = return_value_length1;
	{
		gchar** _tmp5_ = NULL;
		gsize _tmp6_ = 0;
		gchar** _tmp7_;
		gint _tmp5__length1;
		gint __tmp5__size_;
		gchar** _tmp8_;
		gint _tmp8__length1;
		_tmp7_ = g_key_file_get_string_list (kf, "Mime", keys, &_tmp6_, &_inner_error0_);
		_tmp5_ = _tmp7_;
		_tmp5__length1 = _tmp6_;
		__tmp5__size_ = _tmp5__length1;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_KEY_FILE_ERROR) {
				goto __catch0_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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return NULL;
		}
		_tmp8_ = _tmp5_;
		_tmp8__length1 = _tmp5__length1;
		_tmp5_ = NULL;
		_tmp5__length1 = 0;
		return_value = (_vala_array_free (return_value, return_value_length1, (GDestroyNotify) g_free), NULL);
		return_value = _tmp8_;
		return_value_length1 = _tmp8__length1;
		_return_value_size_ = return_value_length1;
		_tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL);
	}
	goto __finally0;
	__catch0_g_key_file_error:
	{
		GError* err = NULL;
		GError* _tmp9_;
		const gchar* _tmp10_;
		err = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp9_ = err;
		_tmp10_ = _tmp9_->message;
		g_warning ("combobox.vala:700: %s", _tmp10_);
		_g_error_free0 (err);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != 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_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return NULL;
	}
	_tmp11_ = return_value;
	_tmp11__length1 = return_value_length1;
	if (result_length1) {
		*result_length1 = _tmp11__length1;
	}
	result = _tmp11_;
	_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_;
	GtkTreeIter _tmp1_ = {0};
	GtkListStore* _tmp2_;
	GtkTreeIter _tmp3_;
	GValue _tmp4_ = {0};
	GtkListStore* _tmp5_;
	GtkTreeIter _tmp6_;
	GValue _tmp7_ = {0};
	GValue _tmp8_;
	GValue _tmp9_;
	_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_));
	if (_data17_->entry_name != NULL) {
		GtkEntry* entry = NULL;
		GObject* _tmp10_;
		GtkEntry* _tmp11_;
		GValue _tmp12_;
		_tmp10_ = gtk_builder_get_object (_data17_->builder, _data17_->entry_name);
		_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp10_) : NULL);
		entry = _tmp11_;
		_tmp12_ = val2;
		if (g_value_get_int (&_tmp12_) == 99) {
			GtkEntry* _tmp13_;
			_tmp13_ = entry;
			gtk_widget_show_all ((GtkWidget*) _tmp13_);
		} else {
			GtkEntry* _tmp14_;
			_tmp14_ = entry;
			gtk_widget_hide ((GtkWidget*) _tmp14_);
		}
		_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,
                                gint combobox_list_length1,
                                const gchar* entry_name,
                                const gchar* by_default)
{
	Block17Data* _data17_;
	GtkBuilder* _tmp0_;
	gchar* _tmp1_;
	GtkListStore* _tmp2_;
	gint default_index = 0;
	GtkListStore* _tmp11_;
	GtkTreeIter _tmp12_ = {0};
	GtkListStore* _tmp13_;
	GtkTreeIter _tmp14_;
	GObject* _tmp15_;
	GtkComboBox* _tmp16_;
	GtkComboBox* _tmp17_;
	GtkListStore* _tmp18_;
	GtkCellRendererText* renderer = NULL;
	GtkCellRendererText* _tmp19_;
	GtkComboBox* _tmp20_;
	GtkCellRendererText* _tmp21_;
	GtkComboBox* _tmp22_;
	GtkCellRendererText* _tmp23_;
	GtkComboBox* _tmp24_;
	GtkComboBox* _tmp41_;
	GtkComboBox* _tmp42_;
	GtkComboBox* _tmp43_;
	GtkComboBox* result;
	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_ = _g_object_ref0 (builder);
	_g_object_unref0 (_data17_->builder);
	_data17_->builder = _tmp0_;
	_tmp1_ = g_strdup (entry_name);
	_g_free0 (_data17_->entry_name);
	_data17_->entry_name = _tmp1_;
	_tmp2_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT, -1);
	_data17_->list_store = _tmp2_;
	default_index = -1;
	{
		gint a = 0;
		a = 0;
		{
			gboolean _tmp3_ = FALSE;
			_tmp3_ = TRUE;
			while (TRUE) {
				GtkListStore* _tmp5_;
				GtkTreeIter _tmp6_ = {0};
				GtkListStore* _tmp7_;
				GtkTreeIter _tmp8_;
				const gchar* _tmp9_;
				const gchar* _tmp10_;
				if (!_tmp3_) {
					gint _tmp4_;
					_tmp4_ = a;
					a = _tmp4_ + 1;
				}
				_tmp3_ = FALSE;
				if (!(a < combobox_list_length1)) {
					break;
				}
				_tmp5_ = _data17_->list_store;
				gtk_list_store_append (_tmp5_, &_tmp6_);
				_data17_->iter = _tmp6_;
				_tmp7_ = _data17_->list_store;
				_tmp8_ = _data17_->iter;
				_tmp9_ = combobox_list[a];
				gtk_list_store_set (_tmp7_, &_tmp8_, 0, _tmp9_, 1, a, -1);
				_tmp10_ = combobox_list[a];
				if (g_strcmp0 (_tmp10_, by_default) == 0) {
					default_index = a;
				}
			}
		}
	}
	_tmp11_ = _data17_->list_store;
	gtk_list_store_append (_tmp11_, &_tmp12_);
	_data17_->iter = _tmp12_;
	_tmp13_ = _data17_->list_store;
	_tmp14_ = _data17_->iter;
	gtk_list_store_set (_tmp13_, &_tmp14_, 0, "Other", 1, 99, -1);
	g_message ("combobox.vala:728: Default = %s", by_default);
	_tmp15_ = gtk_builder_get_object (_data17_->builder, combobox_name);
	_tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, gtk_combo_box_get_type ()) ? ((GtkComboBox*) _tmp15_) : NULL);
	_data17_->return_combobox = _tmp16_;
	_tmp17_ = _data17_->return_combobox;
	_tmp18_ = _data17_->list_store;
	gtk_combo_box_set_model (_tmp17_, (GtkTreeModel*) _tmp18_);
	_tmp19_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp19_);
	renderer = _tmp19_;
	_tmp20_ = _data17_->return_combobox;
	_tmp21_ = renderer;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp20_, (GtkCellRenderer*) _tmp21_, TRUE);
	_tmp22_ = _data17_->return_combobox;
	_tmp23_ = renderer;
	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp22_, (GtkCellRenderer*) _tmp23_, "text", 0);
	_tmp24_ = _data17_->return_combobox;
	gtk_combo_box_set_active (_tmp24_, 0);
	if (default_index == -1) {
		const gchar* _tmp25_;
		GQuark _tmp27_ = 0U;
		static GQuark _tmp26_label0 = 0;
		static GQuark _tmp26_label1 = 0;
		static GQuark _tmp26_label2 = 0;
		_tmp25_ = by_default;
		_tmp27_ = (NULL == _tmp25_) ? 0 : g_quark_from_string (_tmp25_);
		if (_tmp27_ == ((0 != _tmp26_label0) ? _tmp26_label0 : (_tmp26_label0 = g_quark_from_static_string (NULL)))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp28_;
					_tmp28_ = _data17_->return_combobox;
					gtk_combo_box_set_active (_tmp28_, 0);
					break;
				}
			}
		} else if (_tmp27_ == ((0 != _tmp26_label1) ? _tmp26_label1 : (_tmp26_label1 = g_quark_from_static_string ("")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp29_;
					_tmp29_ = _data17_->return_combobox;
					gtk_combo_box_set_active (_tmp29_, 0);
					break;
				}
			}
		} else if (_tmp27_ == ((0 != _tmp26_label2) ? _tmp26_label2 : (_tmp26_label2 = g_quark_from_static_string (" ")))) {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp30_;
					_tmp30_ = _data17_->return_combobox;
					gtk_combo_box_set_active (_tmp30_, 0);
					break;
				}
			}
		} else {
			switch (0) {
				default:
				{
					GtkComboBox* _tmp31_;
					GtkTreeIter _tmp32_;
					_tmp31_ = _data17_->return_combobox;
					_tmp32_ = _data17_->iter;
					gtk_combo_box_set_active_iter (_tmp31_, &_tmp32_);
					if (_data17_->entry_name != NULL) {
						GtkEntry* entry_default = NULL;
						GObject* _tmp33_;
						GtkEntry* _tmp34_;
						GtkEntry* _tmp35_;
						GtkEntry* _tmp36_;
						_tmp33_ = gtk_builder_get_object (_data17_->builder, _data17_->entry_name);
						_tmp34_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp33_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp33_) : NULL);
						entry_default = _tmp34_;
						_tmp35_ = entry_default;
						gtk_entry_set_text (_tmp35_, by_default);
						_tmp36_ = entry_default;
						gtk_widget_show_all ((GtkWidget*) _tmp36_);
						_g_object_unref0 (entry_default);
					}
					break;
				}
			}
		}
	} else {
		GtkComboBox* _tmp37_;
		g_message ("combobox.vala:765: Iter == %d", default_index);
		_tmp37_ = _data17_->return_combobox;
		gtk_combo_box_set_active (_tmp37_, default_index);
		if (_data17_->entry_name != NULL) {
			GtkEntry* entry_default = NULL;
			GObject* _tmp38_;
			GtkEntry* _tmp39_;
			GtkEntry* _tmp40_;
			_tmp38_ = gtk_builder_get_object (_data17_->builder, _data17_->entry_name);
			_tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp38_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp38_) : NULL);
			entry_default = _tmp39_;
			_tmp40_ = entry_default;
			gtk_widget_hide ((GtkWidget*) _tmp40_);
			_g_object_unref0 (entry_default);
		}
	}
	_tmp41_ = _data17_->return_combobox;
	g_signal_connect_data (_tmp41_, "changed", (GCallback) ___lambda21__gtk_combo_box_changed, block17_data_ref (_data17_), (GClosureNotify) block17_data_unref, 0);
	_tmp42_ = _data17_->return_combobox;
	_tmp43_ = _g_object_ref0 (_tmp42_);
	result = _tmp43_;
	_g_object_unref0 (renderer);
	block17_data_unref (_data17_);
	_data17_ = NULL;
	return result;
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize 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,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

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

