/* themes-dialog.c generated by valac 0.30.0.16-6dbb1, the Vala compiler
 * generated from themes-dialog.vala, do not modify */

/* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * Copyright (C) 2015 Arnaud Bonatti <arnaud.bonatti@gmail.com>
 *
 * This file is part of a GNOME game.
 *
 * This application 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 application 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 application. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gdk/gdk.h>
#include <float.h>
#include <math.h>


#define TYPE_THEMES_DIALOG (themes_dialog_get_type ())
#define THEMES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THEMES_DIALOG, ThemesDialog))
#define THEMES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THEMES_DIALOG, ThemesDialogClass))
#define IS_THEMES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THEMES_DIALOG))
#define IS_THEMES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THEMES_DIALOG))
#define THEMES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THEMES_DIALOG, ThemesDialogClass))

typedef struct _ThemesDialog ThemesDialog;
typedef struct _ThemesDialogClass ThemesDialogClass;
typedef struct _ThemesDialogPrivate ThemesDialogPrivate;

#define TYPE_GAME_VIEW (game_view_get_type ())
#define GAME_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GAME_VIEW, GameView))
#define GAME_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GAME_VIEW, GameViewClass))
#define IS_GAME_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GAME_VIEW))
#define IS_GAME_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GAME_VIEW))
#define GAME_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GAME_VIEW, GameViewClass))

typedef struct _GameView GameView;
typedef struct _GameViewClass GameViewClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block4Data Block4Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_dir_close0(var) ((var == NULL) ? NULL : (var = (g_dir_close (var), NULL)))
#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

struct _ThemesDialog {
	GtkDialog parent_instance;
	ThemesDialogPrivate * priv;
};

struct _ThemesDialogClass {
	GtkDialogClass parent_class;
};

struct _ThemesDialogPrivate {
	GameView* view;
	GtkListBox* listbox;
};

struct _Block4Data {
	int _ref_count_;
	ThemesDialog* self;
	GSettings* settings;
	GameView* view;
};


static gpointer themes_dialog_parent_class = NULL;

GType themes_dialog_get_type (void) G_GNUC_CONST;
GType game_view_get_type (void) G_GNUC_CONST;
#define THEMES_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_THEMES_DIALOG, ThemesDialogPrivate))
enum  {
	THEMES_DIALOG_DUMMY_PROPERTY
};
#define THEMES_DIALOG_PREFIX "theme-"
ThemesDialog* themes_dialog_new (GSettings* settings, GameView* view);
ThemesDialog* themes_dialog_construct (GType object_type, GSettings* settings, GameView* view);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (void * _userdata_);
static gboolean themes_dialog_do_not_close (ThemesDialog* self, GtkWidget* widget, GdkEventAny* event);
static gboolean _themes_dialog_do_not_close_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
static void ___lambda7_ (Block4Data* _data4_, GtkListBoxRow* row);
void game_view_set_theme (GameView* self, const gchar* value);
const gchar* game_view_get_theme (GameView* self);
static void ____lambda7__gtk_list_box_row_selected (GtkListBox* _sender, GtkListBoxRow* row, gpointer self);
static void themes_dialog_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	return self ? g_object_ref (self) : NULL;
#line 111 "themes-dialog.c"
}


static Block4Data* block4_data_ref (Block4Data* _data4_) {
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_atomic_int_inc (&_data4_->_ref_count_);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	return _data4_;
#line 120 "themes-dialog.c"
}


static void block4_data_unref (void * _userdata_) {
	Block4Data* _data4_;
	_data4_ = (Block4Data*) _userdata_;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
#line 129 "themes-dialog.c"
		ThemesDialog* self;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		self = _data4_->self;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_object_unref0 (_data4_->settings);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_object_unref0 (_data4_->view);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_object_unref0 (self);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		g_slice_free (Block4Data, _data4_);
#line 141 "themes-dialog.c"
	}
}


static gboolean _themes_dialog_do_not_close_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
	gboolean result;
	result = themes_dialog_do_not_close ((ThemesDialog*) self, _sender, event);
#line 37 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	return result;
#line 151 "themes-dialog.c"
}


static void ___lambda7_ (Block4Data* _data4_, GtkListBoxRow* row) {
	ThemesDialog* self;
	GameView* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	GList* _tmp4_ = NULL;
	gconstpointer _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GSettings* _tmp8_ = NULL;
	GameView* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	self = _data4_->self;
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp0_ = _data4_->view;
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp1_ = row;
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp2_ = gtk_bin_get_child ((GtkBin*) _tmp1_);
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp3_ = gtk_container_get_children ((GtkContainer*) G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_box_get_type (), GtkBox));
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp4_ = _tmp3_;
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp5_ = g_list_nth_data (_tmp4_, (guint) 2);
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp6_ = gtk_label_get_label (G_TYPE_CHECK_INSTANCE_CAST ((GtkWidget*) _tmp5_, gtk_label_get_type (), GtkLabel));
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp7_ = _tmp6_;
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	game_view_set_theme (_tmp0_, _tmp7_);
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_g_list_free0 (_tmp4_);
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp8_ = _data4_->settings;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp9_ = _data4_->view;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp10_ = game_view_get_theme (_tmp9_);
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp11_ = _tmp10_;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_settings_set_string (_tmp8_, "theme", _tmp11_);
#line 93 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	gtk_widget_queue_draw ((GtkWidget*) self);
#line 203 "themes-dialog.c"
}


static void ____lambda7__gtk_list_box_row_selected (GtkListBox* _sender, GtkListBoxRow* row, gpointer self) {
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	___lambda7_ (self, row);
#line 210 "themes-dialog.c"
}


ThemesDialog* themes_dialog_construct (GType object_type, GSettings* settings, GameView* view) {
	ThemesDialog * self = NULL;
	Block4Data* _data4_;
	GSettings* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
	GameView* _tmp2_ = NULL;
	GameView* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	GtkSettings* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	gboolean _tmp7_ = FALSE;
	GameView* _tmp8_ = NULL;
	GameView* _tmp9_ = NULL;
	GDir* dir = NULL;
	GError * _inner_error_ = NULL;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_return_val_if_fail (settings != NULL, NULL);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_return_val_if_fail (view != NULL, NULL);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_data4_ = g_slice_new0 (Block4Data);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_data4_->_ref_count_ = 1;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp0_ = settings;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_g_object_unref0 (_data4_->settings);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_data4_->settings = _tmp1_;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp2_ = view;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_g_object_unref0 (_data4_->view);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_data4_->view = _tmp3_;
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp5_ = gtk_settings_get_default ();
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_object_get (_tmp5_, "gtk-dialogs-use-header", &_tmp6_, NULL);
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp7_ = _tmp6_;
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	if (_tmp7_) {
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp4_ = 1;
#line 263 "themes-dialog.c"
	} else {
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp4_ = 0;
#line 267 "themes-dialog.c"
	}
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	self = (ThemesDialog*) g_object_new (object_type, "use-header-bar", _tmp4_, NULL);
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_data4_->self = g_object_ref (self);
#line 36 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp8_ = _data4_->view;
#line 36 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 36 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_g_object_unref0 (self->priv->view);
#line 36 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	self->priv->view = _tmp9_;
#line 37 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_signal_connect_object ((GtkWidget*) self, "delete-event", (GCallback) _themes_dialog_do_not_close_gtk_widget_delete_event, self, 0);
#line 283 "themes-dialog.c"
	{
		GDir* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		GDir* _tmp13_ = NULL;
		GDir* _tmp14_ = NULL;
		GDir* _tmp15_ = NULL;
		GtkListBox* _tmp64_ = NULL;
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp11_ = g_build_filename (DATA_DIRECTORY, "themes", "key", NULL);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp12_ = _tmp11_;
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp13_ = g_dir_open (_tmp12_, (guint) 0, &_inner_error_);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp14_ = _tmp13_;
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_free0 (_tmp12_);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp10_ = _tmp14_;
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			if (_inner_error_->domain == G_FILE_ERROR) {
#line 308 "themes-dialog.c"
				goto __catch6_g_file_error;
			}
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_dir_close0 (dir);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			block4_data_unref (_data4_);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_data4_ = NULL;
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_clear_error (&_inner_error_);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			return NULL;
#line 323 "themes-dialog.c"
		}
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp15_ = _tmp10_;
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp10_ = NULL;
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_dir_close0 (dir);
#line 43 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		dir = _tmp15_;
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		while (TRUE) {
#line 335 "themes-dialog.c"
			gchar* filename = NULL;
			GDir* _tmp16_ = NULL;
			const gchar* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
			gchar* path = NULL;
			const gchar* _tmp20_ = NULL;
			gchar* _tmp21_ = NULL;
			GKeyFile* key = NULL;
			GKeyFile* _tmp22_ = NULL;
			gchar* name = NULL;
			GtkListBoxRow* row = NULL;
			GtkListBoxRow* _tmp31_ = NULL;
			GtkListBoxRow* _tmp32_ = NULL;
			GtkListBoxRow* _tmp33_ = NULL;
			GtkBox* box = NULL;
			GtkBox* _tmp34_ = NULL;
			GtkBox* _tmp35_ = NULL;
			GtkImage* img = NULL;
			GtkImage* _tmp36_ = NULL;
			GtkImage* _tmp37_ = NULL;
			GtkImage* _tmp38_ = NULL;
			GtkImage* _tmp39_ = NULL;
			GtkLabel* lbl = NULL;
			const gchar* _tmp40_ = NULL;
			GtkLabel* _tmp41_ = NULL;
			GtkLabel* _tmp42_ = NULL;
			GtkLabel* _tmp43_ = NULL;
			GtkLabel* data = NULL;
			const gchar* _tmp44_ = NULL;
			GtkLabel* _tmp45_ = NULL;
			GtkLabel* _tmp46_ = NULL;
			GtkBox* _tmp47_ = NULL;
			GtkImage* _tmp48_ = NULL;
			GtkBox* _tmp49_ = NULL;
			GtkLabel* _tmp50_ = NULL;
			GtkBox* _tmp51_ = NULL;
			GtkLabel* _tmp52_ = NULL;
			GtkListBoxRow* _tmp53_ = NULL;
			GtkBox* _tmp54_ = NULL;
			GtkListBox* _tmp55_ = NULL;
			GtkListBoxRow* _tmp56_ = NULL;
			const gchar* _tmp57_ = NULL;
			GSettings* _tmp58_ = NULL;
			gchar* _tmp59_ = NULL;
			gchar* _tmp60_ = NULL;
			gboolean _tmp61_ = FALSE;
#line 46 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp16_ = dir;
#line 46 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp17_ = g_dir_read_name (_tmp16_);
#line 46 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp18_ = g_strdup (_tmp17_);
#line 46 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			filename = _tmp18_;
#line 47 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp19_ = filename;
#line 47 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			if (_tmp19_ == NULL) {
#line 48 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (filename);
#line 48 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				break;
#line 399 "themes-dialog.c"
			}
#line 50 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp20_ = filename;
#line 50 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp21_ = g_build_filename (DATA_DIRECTORY, "themes", "key", _tmp20_, NULL);
#line 50 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			path = _tmp21_;
#line 51 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp22_ = g_key_file_new ();
#line 51 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			key = _tmp22_;
#line 411 "themes-dialog.c"
			{
				GKeyFile* _tmp23_ = NULL;
				const gchar* _tmp24_ = NULL;
				gchar* _tmp25_ = NULL;
				GKeyFile* _tmp26_ = NULL;
				gchar* _tmp27_ = NULL;
				gchar* _tmp28_ = NULL;
#line 55 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp23_ = key;
#line 55 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp24_ = path;
#line 55 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				g_key_file_load_from_file (_tmp23_, _tmp24_, G_KEY_FILE_NONE, &_inner_error_);
#line 55 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 55 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					if (_inner_error_->domain == G_KEY_FILE_ERROR) {
#line 429 "themes-dialog.c"
						goto __catch7_g_key_file_error;
					}
					goto __finally7;
				}
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp26_ = key;
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp27_ = g_key_file_get_locale_string (_tmp26_, "Theme", "Name", NULL, &_inner_error_);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp25_ = _tmp27_;
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					if (_inner_error_->domain == G_KEY_FILE_ERROR) {
#line 444 "themes-dialog.c"
						goto __catch7_g_key_file_error;
					}
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					_g_free0 (name);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					_g_key_file_unref0 (key);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					_g_free0 (path);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					_g_free0 (filename);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					_g_dir_close0 (_tmp10_);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					_g_dir_close0 (dir);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					block4_data_unref (_data4_);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					_data4_ = NULL;
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					g_clear_error (&_inner_error_);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
					return NULL;
#line 469 "themes-dialog.c"
				}
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp28_ = _tmp25_;
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp25_ = NULL;
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (name);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				name = _tmp28_;
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (_tmp25_);
#line 481 "themes-dialog.c"
			}
			goto __finally7;
			__catch7_g_key_file_error:
			{
				GError* e = NULL;
				GError* _tmp29_ = NULL;
				const gchar* _tmp30_ = NULL;
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				e = _inner_error_;
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_inner_error_ = NULL;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp29_ = e;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp30_ = _tmp29_->message;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				g_warning ("themes-dialog.vala:60: oops: %s", _tmp30_);
#line 61 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_error_free0 (e);
#line 61 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (name);
#line 61 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_key_file_unref0 (key);
#line 61 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (path);
#line 61 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (filename);
#line 61 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				continue;
#line 511 "themes-dialog.c"
			}
			__finally7:
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (name);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_key_file_unref0 (key);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (path);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (filename);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_dir_close0 (_tmp10_);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				if (_inner_error_->domain == G_FILE_ERROR) {
#line 528 "themes-dialog.c"
					goto __catch6_g_file_error;
				}
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (name);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_key_file_unref0 (key);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (path);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_free0 (filename);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_dir_close0 (_tmp10_);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_g_dir_close0 (dir);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				block4_data_unref (_data4_);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_data4_ = NULL;
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				g_clear_error (&_inner_error_);
#line 53 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				return NULL;
#line 553 "themes-dialog.c"
			}
#line 64 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp31_ = (GtkListBoxRow*) gtk_list_box_row_new ();
#line 64 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_ref_sink (_tmp31_);
#line 64 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			row = _tmp31_;
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp32_ = row;
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_widget_set_visible ((GtkWidget*) _tmp32_, TRUE);
#line 66 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp33_ = row;
#line 66 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_set ((GtkWidget*) _tmp33_, "height-request", 50, NULL);
#line 67 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp34_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
#line 67 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_ref_sink (_tmp34_);
#line 67 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			box = _tmp34_;
#line 68 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp35_ = box;
#line 68 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_widget_set_visible ((GtkWidget*) _tmp35_, TRUE);
#line 69 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp36_ = (GtkImage*) gtk_image_new ();
#line 69 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_ref_sink (_tmp36_);
#line 69 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			img = _tmp36_;
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp37_ = img;
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_widget_set_visible ((GtkWidget*) _tmp37_, TRUE);
#line 71 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp38_ = img;
#line 71 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_set ((GtkWidget*) _tmp38_, "width-request", 50, NULL);
#line 72 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp39_ = img;
#line 72 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_set (_tmp39_, "icon-name", "object-select-symbolic", NULL);
#line 73 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp40_ = name;
#line 73 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp41_ = (GtkLabel*) gtk_label_new (_tmp40_);
#line 73 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_ref_sink (_tmp41_);
#line 73 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			lbl = _tmp41_;
#line 74 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp42_ = lbl;
#line 74 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_widget_set_visible ((GtkWidget*) _tmp42_, TRUE);
#line 75 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp43_ = lbl;
#line 75 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_label_set_xalign (_tmp43_, (gfloat) 0);
#line 76 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp44_ = filename;
#line 76 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp45_ = (GtkLabel*) gtk_label_new (_tmp44_);
#line 76 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			g_object_ref_sink (_tmp45_);
#line 76 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			data = _tmp45_;
#line 77 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp46_ = data;
#line 77 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_widget_set_visible ((GtkWidget*) _tmp46_, FALSE);
#line 79 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp47_ = box;
#line 79 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp48_ = img;
#line 79 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_container_add ((GtkContainer*) _tmp47_, (GtkWidget*) _tmp48_);
#line 80 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp49_ = box;
#line 80 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp50_ = lbl;
#line 80 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_container_add ((GtkContainer*) _tmp49_, (GtkWidget*) _tmp50_);
#line 81 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp51_ = box;
#line 81 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp52_ = data;
#line 81 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_container_add ((GtkContainer*) _tmp51_, (GtkWidget*) _tmp52_);
#line 82 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp53_ = row;
#line 82 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp54_ = box;
#line 82 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_container_add ((GtkContainer*) _tmp53_, (GtkWidget*) _tmp54_);
#line 83 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp55_ = self->priv->listbox;
#line 83 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp56_ = row;
#line 83 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			gtk_container_add ((GtkContainer*) _tmp55_, (GtkWidget*) _tmp56_);
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp57_ = filename;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp58_ = _data4_->settings;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp59_ = g_settings_get_string (_tmp58_, "theme");
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp60_ = _tmp59_;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_tmp61_ = g_strcmp0 (_tmp57_, _tmp60_) == 0;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_free0 (_tmp60_);
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			if (_tmp61_) {
#line 669 "themes-dialog.c"
				GtkListBox* _tmp62_ = NULL;
				GtkListBoxRow* _tmp63_ = NULL;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp62_ = self->priv->listbox;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				_tmp63_ = row;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
				gtk_list_box_select_row (_tmp62_, _tmp63_);
#line 678 "themes-dialog.c"
			}
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_object_unref0 (data);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_object_unref0 (lbl);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_object_unref0 (img);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_object_unref0 (box);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_object_unref0 (row);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_free0 (name);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_key_file_unref0 (key);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_free0 (path);
#line 44 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
			_g_free0 (filename);
#line 698 "themes-dialog.c"
		}
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp64_ = self->priv->listbox;
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		g_signal_connect_data (_tmp64_, "row-selected", (GCallback) ____lambda7__gtk_list_box_row_selected, block4_data_ref (_data4_), (GClosureNotify) block4_data_unref, 0);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_dir_close0 (_tmp10_);
#line 706 "themes-dialog.c"
	}
	goto __finally6;
	__catch6_g_file_error:
	{
		GError* e = NULL;
		GError* _tmp65_ = NULL;
		const gchar* _tmp66_ = NULL;
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		e = _inner_error_;
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_inner_error_ = NULL;
#line 98 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp65_ = e;
#line 98 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_tmp66_ = _tmp65_->message;
#line 98 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		g_warning ("themes-dialog.vala:98: Failed to load themes: %s", _tmp66_);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_error_free0 (e);
#line 726 "themes-dialog.c"
	}
	__finally6:
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_g_dir_close0 (dir);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		block4_data_unref (_data4_);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		_data4_ = NULL;
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		g_clear_error (&_inner_error_);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
		return NULL;
#line 743 "themes-dialog.c"
	}
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_g_dir_close0 (dir);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	block4_data_unref (_data4_);
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_data4_ = NULL;
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	return self;
#line 753 "themes-dialog.c"
}


ThemesDialog* themes_dialog_new (GSettings* settings, GameView* view) {
#line 33 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	return themes_dialog_construct (TYPE_THEMES_DIALOG, settings, view);
#line 760 "themes-dialog.c"
}


static gboolean themes_dialog_do_not_close (ThemesDialog* self, GtkWidget* widget, GdkEventAny* event) {
	gboolean result = FALSE;
	GtkWidget* _tmp0_ = NULL;
#line 102 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 102 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 102 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 104 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_tmp0_ = widget;
#line 104 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	gtk_widget_hide (_tmp0_);
#line 105 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	result = TRUE;
#line 105 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	return result;
#line 781 "themes-dialog.c"
}


static void themes_dialog_class_init (ThemesDialogClass * klass) {
	gint ThemesDialog_private_offset;
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	themes_dialog_parent_class = g_type_class_peek_parent (klass);
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	g_type_class_add_private (klass, sizeof (ThemesDialogPrivate));
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = themes_dialog_finalize;
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	ThemesDialog_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/iagno/ui/themes.ui");
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "listbox", FALSE, ThemesDialog_private_offset + G_STRUCT_OFFSET (ThemesDialogPrivate, listbox));
#line 799 "themes-dialog.c"
}


static void themes_dialog_instance_init (ThemesDialog * self) {
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	self->priv = THEMES_DIALOG_GET_PRIVATE (self);
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 808 "themes-dialog.c"
}


static void themes_dialog_finalize (GObject* obj) {
	ThemesDialog * self;
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THEMES_DIALOG, ThemesDialog);
#line 28 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_g_object_unref0 (self->priv->view);
#line 31 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	_g_object_unref0 (self->priv->listbox);
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/iagno/src/themes-dialog.vala"
	G_OBJECT_CLASS (themes_dialog_parent_class)->finalize (obj);
#line 822 "themes-dialog.c"
}


GType themes_dialog_get_type (void) {
	static volatile gsize themes_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&themes_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ThemesDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) themes_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThemesDialog), 0, (GInstanceInitFunc) themes_dialog_instance_init, NULL };
		GType themes_dialog_type_id;
		themes_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "ThemesDialog", &g_define_type_info, 0);
		g_once_init_leave (&themes_dialog_type_id__volatile, themes_dialog_type_id);
	}
	return themes_dialog_type_id__volatile;
}



