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

/*
  This file is part of Dconf Editor

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

  Dconf Editor 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
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with Dconf Editor; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <glib/gi18n-lib.h>
#include "config.h"
#include <stdio.h>
#include <gdk/gdk.h>
#include <cairo.h>


#define TYPE_CONFIGURATION_EDITOR (configuration_editor_get_type ())
#define CONFIGURATION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_EDITOR, ConfigurationEditor))
#define CONFIGURATION_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_EDITOR, ConfigurationEditorClass))
#define IS_CONFIGURATION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_EDITOR))
#define IS_CONFIGURATION_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_EDITOR))
#define CONFIGURATION_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_EDITOR, ConfigurationEditorClass))

typedef struct _ConfigurationEditor ConfigurationEditor;
typedef struct _ConfigurationEditorClass ConfigurationEditorClass;
typedef struct _ConfigurationEditorPrivate ConfigurationEditorPrivate;

#define TYPE_DCONF_WINDOW (dconf_window_get_type ())
#define DCONF_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DCONF_WINDOW, DConfWindow))
#define DCONF_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DCONF_WINDOW, DConfWindowClass))
#define IS_DCONF_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DCONF_WINDOW))
#define IS_DCONF_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DCONF_WINDOW))
#define DCONF_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DCONF_WINDOW, DConfWindowClass))

typedef struct _DConfWindow DConfWindow;
typedef struct _DConfWindowClass DConfWindowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _ConfigurationEditor {
	GtkApplication parent_instance;
	ConfigurationEditorPrivate * priv;
};

struct _ConfigurationEditorClass {
	GtkApplicationClass parent_class;
};

struct _ConfigurationEditorPrivate {
	GSettings* settings;
	DConfWindow* window;
	gint window_width;
	gint window_height;
	gboolean window_is_maximized;
	gboolean window_is_fullscreen;
};


static gpointer configuration_editor_parent_class = NULL;

GType configuration_editor_get_type (void) G_GNUC_CONST;
GType dconf_window_get_type (void) G_GNUC_CONST;
#define CONFIGURATION_EDITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONFIGURATION_EDITOR, ConfigurationEditorPrivate))
enum  {
	CONFIGURATION_EDITOR_DUMMY_PROPERTY
};
static void configuration_editor_find_cb (ConfigurationEditor* self);
static void _configuration_editor_find_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void configuration_editor_about_cb (ConfigurationEditor* self);
static void _configuration_editor_about_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void _g_application_quit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
ConfigurationEditor* configuration_editor_new (void);
ConfigurationEditor* configuration_editor_construct (GType object_type);
gint configuration_editor_main (gchar** args, int args_length1);
static gint configuration_editor_real_handle_local_options (GApplication* base, GVariantDict* options);
static void configuration_editor_real_startup (GApplication* base);
DConfWindow* dconf_window_new (void);
DConfWindow* dconf_window_construct (GType object_type);
static gboolean configuration_editor_window_state_event_cb (ConfigurationEditor* self, GtkWidget* widget, GdkEventWindowState* event);
static gboolean _configuration_editor_window_state_event_cb_gtk_widget_window_state_event (GtkWidget* _sender, GdkEventWindowState* event, gpointer self);
static void configuration_editor_size_allocate_cb (ConfigurationEditor* self, GtkAllocation* allocation);
static void _configuration_editor_size_allocate_cb_gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self);
static void configuration_editor_real_activate (GApplication* base);
static void configuration_editor_real_shutdown (GApplication* base);
void dconf_window_find_cb (DConfWindow* self);
static void configuration_editor_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);

static const GOptionEntry CONFIGURATION_EDITOR_option_entries[2] = {{"version", 'v', 0, G_OPTION_ARG_NONE, NULL, "Print release version and exit", NULL}, {NULL}};
static const GActionEntry CONFIGURATION_EDITOR_action_entries[3] = {{"find", _configuration_editor_find_cb_gsimple_action_activate_callback}, {"about", _configuration_editor_about_cb_gsimple_action_activate_callback}, {"quit", _g_application_quit_gsimple_action_activate_callback}};

static void _configuration_editor_find_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	configuration_editor_find_cb ((ConfigurationEditor*) self);
#line 116 "dconf-editor.c"
}


static void _configuration_editor_about_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	configuration_editor_about_cb ((ConfigurationEditor*) self);
#line 123 "dconf-editor.c"
}


static void _g_application_quit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_application_quit ((GApplication*) self);
#line 130 "dconf-editor.c"
}


ConfigurationEditor* configuration_editor_construct (GType object_type) {
	ConfigurationEditor * self = NULL;
#line 47 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self = (ConfigurationEditor*) g_object_new (object_type, "application-id", "ca.desrt.dconf-editor", "flags", G_APPLICATION_FLAGS_NONE, NULL);
#line 49 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_application_add_main_option_entries ((GApplication*) self, CONFIGURATION_EDITOR_option_entries);
#line 45 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	return self;
#line 142 "dconf-editor.c"
}


ConfigurationEditor* configuration_editor_new (void) {
#line 45 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	return configuration_editor_construct (TYPE_CONFIGURATION_EDITOR);
#line 149 "dconf-editor.c"
}


gint configuration_editor_main (gchar** args, int args_length1) {
	gint result = 0;
	ConfigurationEditor* app = NULL;
	ConfigurationEditor* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	gint _tmp2_ = 0;
#line 54 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	setlocale (LC_ALL, "");
#line 55 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
#line 56 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#line 57 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	textdomain (GETTEXT_PACKAGE);
#line 59 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = configuration_editor_new ();
#line 59 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	app = _tmp0_;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_ = args;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1__length1 = args_length1;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp2_ = g_application_run ((GApplication*) app, _tmp1__length1, _tmp1_);
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	result = _tmp2_;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_g_object_unref0 (app);
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	return result;
#line 184 "dconf-editor.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 52 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	return configuration_editor_main (argv, argc);
#line 194 "dconf-editor.c"
}


static gint configuration_editor_real_handle_local_options (GApplication* base, GVariantDict* options) {
	ConfigurationEditor * self;
	gint result = 0;
	GVariantDict* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 63 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self = (ConfigurationEditor*) base;
#line 63 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_val_if_fail (options != NULL, 0);
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = options;
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_ = g_variant_dict_contains (_tmp0_, "version");
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	if (_tmp1_) {
#line 213 "dconf-editor.c"
		FILE* _tmp2_ = NULL;
#line 68 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp2_ = stdout;
#line 68 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		fprintf (_tmp2_, "%1$s %2$s\n", "dconf-editor", VERSION);
#line 69 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		result = EXIT_SUCCESS;
#line 69 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		return result;
#line 223 "dconf-editor.c"
	}
#line 73 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	result = -1;
#line 73 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	return result;
#line 229 "dconf-editor.c"
}


static gboolean _configuration_editor_window_state_event_cb_gtk_widget_window_state_event (GtkWidget* _sender, GdkEventWindowState* event, gpointer self) {
	gboolean result;
	result = configuration_editor_window_state_event_cb ((ConfigurationEditor*) self, _sender, event);
#line 94 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	return result;
#line 238 "dconf-editor.c"
}


static void _configuration_editor_size_allocate_cb_gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self) {
#line 95 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	configuration_editor_size_allocate_cb ((ConfigurationEditor*) self, allocation);
#line 245 "dconf-editor.c"
}


static void configuration_editor_real_startup (GApplication* base) {
	ConfigurationEditor * self;
	const gchar* _tmp0_ = NULL;
	DConfWindow* _tmp1_ = NULL;
	GSettings* _tmp2_ = NULL;
	DConfWindow* _tmp3_ = NULL;
	GSettings* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	GSettings* _tmp6_ = NULL;
	gint _tmp7_ = 0;
	GSettings* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	DConfWindow* _tmp14_ = NULL;
	DConfWindow* _tmp15_ = NULL;
	DConfWindow* _tmp16_ = NULL;
#line 76 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self = (ConfigurationEditor*) base;
#line 78 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	G_APPLICATION_CLASS (configuration_editor_parent_class)->startup ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
#line 80 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = _ ("dconf Editor");
#line 80 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_set_application_name (_tmp0_);
#line 82 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_action_map_add_action_entries ((GActionMap*) self, CONFIGURATION_EDITOR_action_entries, G_N_ELEMENTS (CONFIGURATION_EDITOR_action_entries), self);
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_ = dconf_window_new ();
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_object_ref_sink (_tmp1_);
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_g_object_unref0 (self->priv->window);
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->window = _tmp1_;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp2_ = g_settings_new ("ca.desrt.dconf-editor.Settings");
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_g_object_unref0 (self->priv->settings);
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->settings = _tmp2_;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp3_ = self->priv->window;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp4_ = self->priv->settings;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp5_ = g_settings_get_int (_tmp4_, "window-width");
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp6_ = self->priv->settings;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp7_ = g_settings_get_int (_tmp6_, "window-height");
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	gtk_window_set_default_size ((GtkWindow*) _tmp3_, _tmp5_, _tmp7_);
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp8_ = self->priv->settings;
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp9_ = g_settings_get_boolean (_tmp8_, "window-is-fullscreen");
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	if (_tmp9_) {
#line 306 "dconf-editor.c"
		DConfWindow* _tmp10_ = NULL;
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp10_ = self->priv->window;
#line 90 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		gtk_window_fullscreen ((GtkWindow*) _tmp10_);
#line 312 "dconf-editor.c"
	} else {
		GSettings* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
#line 91 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp11_ = self->priv->settings;
#line 91 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp12_ = g_settings_get_boolean (_tmp11_, "window-is-maximized");
#line 91 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		if (_tmp12_) {
#line 322 "dconf-editor.c"
			DConfWindow* _tmp13_ = NULL;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
			_tmp13_ = self->priv->window;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
			gtk_window_maximize ((GtkWindow*) _tmp13_);
#line 328 "dconf-editor.c"
		}
	}
#line 94 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp14_ = self->priv->window;
#line 94 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_signal_connect_object ((GtkWidget*) _tmp14_, "window-state-event", (GCallback) _configuration_editor_window_state_event_cb_gtk_widget_window_state_event, self, 0);
#line 95 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp15_ = self->priv->window;
#line 95 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_signal_connect_object ((GtkWidget*) _tmp15_, "size-allocate", (GCallback) _configuration_editor_size_allocate_cb_gtk_widget_size_allocate, self, 0);
#line 97 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp16_ = self->priv->window;
#line 97 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	gtk_application_add_window ((GtkApplication*) self, (GtkWindow*) _tmp16_);
#line 343 "dconf-editor.c"
}


static void configuration_editor_real_activate (GApplication* base) {
	ConfigurationEditor * self;
	DConfWindow* _tmp0_ = NULL;
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self = (ConfigurationEditor*) base;
#line 102 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = self->priv->window;
#line 102 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	gtk_window_present ((GtkWindow*) _tmp0_);
#line 356 "dconf-editor.c"
}


static void configuration_editor_real_shutdown (GApplication* base) {
	ConfigurationEditor * self;
	GSettings* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	GSettings* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	GSettings* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	GSettings* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
#line 105 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self = (ConfigurationEditor*) base;
#line 107 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	G_APPLICATION_CLASS (configuration_editor_parent_class)->shutdown ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
#line 108 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = self->priv->settings;
#line 108 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_ = self->priv->window_width;
#line 108 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_settings_set_int (_tmp0_, "window-width", _tmp1_);
#line 109 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp2_ = self->priv->settings;
#line 109 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp3_ = self->priv->window_height;
#line 109 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_settings_set_int (_tmp2_, "window-height", _tmp3_);
#line 110 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp4_ = self->priv->settings;
#line 110 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp5_ = self->priv->window_is_maximized;
#line 110 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_settings_set_boolean (_tmp4_, "window-is-maximized", _tmp5_);
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp6_ = self->priv->settings;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp7_ = self->priv->window_is_fullscreen;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_settings_set_boolean (_tmp6_, "window-is-fullscreen", _tmp7_);
#line 398 "dconf-editor.c"
}


static gboolean configuration_editor_window_state_event_cb (ConfigurationEditor* self, GtkWidget* widget, GdkEventWindowState* event) {
	gboolean result = FALSE;
	GdkEventWindowState* _tmp0_ = NULL;
	GdkWindowState _tmp1_ = 0;
	GdkEventWindowState* _tmp4_ = NULL;
	GdkWindowState _tmp5_ = 0;
#line 118 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 118 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 118 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 120 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = event;
#line 120 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_ = _tmp0_->changed_mask;
#line 120 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	if ((_tmp1_ & GDK_WINDOW_STATE_MAXIMIZED) != 0) {
#line 420 "dconf-editor.c"
		GdkEventWindowState* _tmp2_ = NULL;
		GdkWindowState _tmp3_ = 0;
#line 121 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp2_ = event;
#line 121 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp3_ = _tmp2_->new_window_state;
#line 121 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		self->priv->window_is_maximized = (_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) != 0;
#line 429 "dconf-editor.c"
	}
#line 122 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp4_ = event;
#line 122 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp5_ = _tmp4_->changed_mask;
#line 122 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	if ((_tmp5_ & GDK_WINDOW_STATE_FULLSCREEN) != 0) {
#line 437 "dconf-editor.c"
		GdkEventWindowState* _tmp6_ = NULL;
		GdkWindowState _tmp7_ = 0;
#line 123 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp6_ = event;
#line 123 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp7_ = _tmp6_->new_window_state;
#line 123 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		self->priv->window_is_fullscreen = (_tmp7_ & GDK_WINDOW_STATE_FULLSCREEN) != 0;
#line 446 "dconf-editor.c"
	}
#line 125 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	result = FALSE;
#line 125 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	return result;
#line 452 "dconf-editor.c"
}


static void configuration_editor_size_allocate_cb (ConfigurationEditor* self, GtkAllocation* allocation) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GtkAllocation _tmp3_ = {0};
	gint _tmp4_ = 0;
	GtkAllocation _tmp5_ = {0};
	gint _tmp6_ = 0;
#line 128 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_if_fail (self != NULL);
#line 128 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_if_fail (allocation != NULL);
#line 130 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_ = self->priv->window_is_maximized;
#line 130 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	if (_tmp1_) {
#line 130 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp0_ = TRUE;
#line 473 "dconf-editor.c"
	} else {
		gboolean _tmp2_ = FALSE;
#line 130 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp2_ = self->priv->window_is_fullscreen;
#line 130 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		_tmp0_ = _tmp2_;
#line 480 "dconf-editor.c"
	}
#line 130 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	if (_tmp0_) {
#line 131 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
		return;
#line 486 "dconf-editor.c"
	}
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp3_ = *allocation;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp4_ = _tmp3_.width;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->window_width = _tmp4_;
#line 133 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp5_ = *allocation;
#line 133 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp6_ = _tmp5_.height;
#line 133 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->window_height = _tmp6_;
#line 500 "dconf-editor.c"
}


static void configuration_editor_find_cb (ConfigurationEditor* self) {
	DConfWindow* _tmp0_ = NULL;
#line 140 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_if_fail (self != NULL);
#line 142 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = self->priv->window;
#line 142 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	dconf_window_find_cb (_tmp0_);
#line 512 "dconf-editor.c"
}


static void configuration_editor_about_cb (ConfigurationEditor* self) {
	gchar** authors = NULL;
	gchar* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gint authors_length1 = 0;
	gint _authors_size_ = 0;
	gchar* license = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	DConfWindow* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_return_if_fail (self != NULL);
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp0_ = g_strdup ("Robert Ancell");
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_ = g_new0 (gchar*, 2 + 1);
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_[0] = _tmp0_;
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp1_[1] = NULL;
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	authors = _tmp1_;
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	authors_length1 = 2;
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_authors_size_ = authors_length1;
#line 148 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp2_ = _ ("This program is free software; you can redistribute it and/or modify i" \
"t under the terms of the GNU General Public License as published by th" \
"e Free Software Foundation; either version 2 of the License, or (at yo" \
"ur option) any later version.\n" \
"\n" \
"This program is distributed in the hope that it will be useful, but WI" \
"THOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILI" \
"TY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public Li" \
"cense for more details.\n" \
"\n" \
"You should have received a copy of the GNU General Public License alon" \
"g with this program; if not, write to the Free Software Foundation, In" \
"c., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA");
#line 148 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 148 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	license = _tmp3_;
#line 149 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp4_ = self->priv->window;
#line 149 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp5_ = _ ("dconf Editor");
#line 149 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp6_ = _ ("Directly edit your entire configuration database");
#line 149 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp7_ = _ ("Copyright \xc2\xa9 Canonical Ltd");
#line 149 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_tmp8_ = _ ("translator-credits");
#line 149 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	gtk_show_about_dialog ((GtkWindow*) _tmp4_, "program-name", _tmp5_, "version", VERSION, "comments", _tmp6_, "copyright", _tmp7_, "license", license, "wrap-license", TRUE, "authors", authors, "translator-credits", _tmp8_, "logo-icon-name", "dconf-editor", NULL, NULL);
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_g_free0 (license);
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
#line 568 "dconf-editor.c"
}


static void configuration_editor_class_init (ConfigurationEditorClass * klass) {
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	configuration_editor_parent_class = g_type_class_peek_parent (klass);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	g_type_class_add_private (klass, sizeof (ConfigurationEditorPrivate));
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	((GApplicationClass *) klass)->handle_local_options = configuration_editor_real_handle_local_options;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	((GApplicationClass *) klass)->startup = configuration_editor_real_startup;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	((GApplicationClass *) klass)->activate = configuration_editor_real_activate;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	((GApplicationClass *) klass)->shutdown = configuration_editor_real_shutdown;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	G_OBJECT_CLASS (klass)->finalize = configuration_editor_finalize;
#line 587 "dconf-editor.c"
}


static void configuration_editor_instance_init (ConfigurationEditor * self) {
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv = CONFIGURATION_EDITOR_GET_PRIVATE (self);
#line 23 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->window_width = 0;
#line 24 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->window_height = 0;
#line 25 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->window_is_maximized = FALSE;
#line 26 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self->priv->window_is_fullscreen = FALSE;
#line 602 "dconf-editor.c"
}


static void configuration_editor_finalize (GObject* obj) {
	ConfigurationEditor * self;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONFIGURATION_EDITOR, ConfigurationEditor);
#line 21 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_g_object_unref0 (self->priv->settings);
#line 22 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	_g_object_unref0 (self->priv->window);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/dconf-editor/editor/dconf-editor.vala"
	G_OBJECT_CLASS (configuration_editor_parent_class)->finalize (obj);
#line 616 "dconf-editor.c"
}


GType configuration_editor_get_type (void) {
	static volatile gsize configuration_editor_type_id__volatile = 0;
	if (g_once_init_enter (&configuration_editor_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ConfigurationEditorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) configuration_editor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ConfigurationEditor), 0, (GInstanceInitFunc) configuration_editor_instance_init, NULL };
		GType configuration_editor_type_id;
		configuration_editor_type_id = g_type_register_static (gtk_application_get_type (), "ConfigurationEditor", &g_define_type_info, 0);
		g_once_init_leave (&configuration_editor_type_id__volatile, configuration_editor_type_id);
	}
	return configuration_editor_type_id__volatile;
}


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


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



