/* wizard-window.c generated by valac 0.26.0.50-d9a75, the Vala compiler
 * generated from wizard-window.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

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


#define BOXES_TYPE_UI (boxes_ui_get_type ())
#define BOXES_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UI, BoxesUI))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_UI_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_UI, BoxesUIIface))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIIface BoxesUIIface;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())

#define BOXES_TYPE_WIZARD_WINDOW (boxes_wizard_window_get_type ())
#define BOXES_WIZARD_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindow))
#define BOXES_WIZARD_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowClass))
#define BOXES_IS_WIZARD_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_WINDOW))
#define BOXES_IS_WIZARD_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_WINDOW))
#define BOXES_WIZARD_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowClass))

typedef struct _BoxesWizardWindow BoxesWizardWindow;
typedef struct _BoxesWizardWindowClass BoxesWizardWindowClass;
typedef struct _BoxesWizardWindowPrivate BoxesWizardWindowPrivate;

#define BOXES_TYPE_WIZARD (boxes_wizard_get_type ())
#define BOXES_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD, BoxesWizard))
#define BOXES_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD, BoxesWizardClass))
#define BOXES_IS_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD))
#define BOXES_IS_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD))
#define BOXES_WIZARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD, BoxesWizardClass))

typedef struct _BoxesWizard BoxesWizard;
typedef struct _BoxesWizardClass BoxesWizardClass;

#define BOXES_TYPE_WIZARD_TOOLBAR (boxes_wizard_toolbar_get_type ())
#define BOXES_WIZARD_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_TOOLBAR, BoxesWizardToolbar))
#define BOXES_WIZARD_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_TOOLBAR, BoxesWizardToolbarClass))
#define BOXES_IS_WIZARD_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_TOOLBAR))
#define BOXES_IS_WIZARD_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_TOOLBAR))
#define BOXES_WIZARD_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_TOOLBAR, BoxesWizardToolbarClass))

typedef struct _BoxesWizardToolbar BoxesWizardToolbar;
typedef struct _BoxesWizardToolbarClass BoxesWizardToolbarClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define BOXES_TYPE_APP_WINDOW (boxes_app_window_get_type ())
#define BOXES_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindow))
#define BOXES_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))
#define BOXES_IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP_WINDOW))
#define BOXES_IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP_WINDOW))
#define BOXES_APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;

#define BOXES_TYPE_WIZARD_PAGE (boxes_wizard_page_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _BoxesWizardToolbarPrivate BoxesWizardToolbarPrivate;

typedef enum  {
	BOXES_UI_STATE_NONE,
	BOXES_UI_STATE_COLLECTION,
	BOXES_UI_STATE_CREDS,
	BOXES_UI_STATE_DISPLAY,
	BOXES_UI_STATE_WIZARD,
	BOXES_UI_STATE_PROPERTIES
} BoxesUIState;

struct _BoxesUIIface {
	GTypeInterface parent_iface;
	BoxesUIState (*get_previous_ui_state) (BoxesUI* self);
	void (*set_previous_ui_state) (BoxesUI* self, BoxesUIState value);
	BoxesUIState (*get_ui_state) (BoxesUI* self);
	void (*set_ui_state) (BoxesUI* self, BoxesUIState value);
};

struct _BoxesWizardWindow {
	GtkWindow parent_instance;
	BoxesWizardWindowPrivate * priv;
	BoxesWizard* wizard;
	BoxesWizardToolbar* topbar;
};

struct _BoxesWizardWindowClass {
	GtkWindowClass parent_class;
};

struct _BoxesWizardWindowPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
};

typedef enum  {
	BOXES_WIZARD_PAGE_INTRODUCTION,
	BOXES_WIZARD_PAGE_SOURCE,
	BOXES_WIZARD_PAGE_PREPARATION,
	BOXES_WIZARD_PAGE_SETUP,
	BOXES_WIZARD_PAGE_REVIEW,
	BOXES_WIZARD_PAGE_LAST
} BoxesWizardPage;

struct _BoxesWizardToolbar {
	GtkHeaderBar parent_instance;
	BoxesWizardToolbarPrivate * priv;
	GtkButton* cancel_btn;
	GtkButton* back_btn;
	GtkButton* continue_btn;
	GtkButton* create_btn;
};

struct _BoxesWizardToolbarClass {
	GtkHeaderBarClass parent_class;
};


static gpointer boxes_wizard_window_parent_class = NULL;
static BoxesUIIface* boxes_wizard_window_boxes_ui_parent_iface = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_wizard_window_get_type (void) G_GNUC_CONST;
GType boxes_wizard_get_type (void) G_GNUC_CONST;
GType boxes_wizard_toolbar_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowPrivate))
enum  {
	BOXES_WIZARD_WINDOW_DUMMY_PROPERTY,
	BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE,
	BOXES_WIZARD_WINDOW_UI_STATE
};
GType boxes_app_window_get_type (void) G_GNUC_CONST;
BoxesWizardWindow* boxes_wizard_window_new (BoxesAppWindow* app_window);
BoxesWizardWindow* boxes_wizard_window_construct (GType object_type, BoxesAppWindow* app_window);
void boxes_wizard_setup_ui (BoxesWizard* self, BoxesAppWindow* window, BoxesWizardWindow* wizard_window);
static void boxes_wizard_window_ui_state_changed (BoxesWizardWindow* self);
static void _boxes_wizard_window_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
GType boxes_wizard_page_get_type (void) G_GNUC_CONST;
void boxes_wizard_window_set_title_for_page (BoxesWizardWindow* self, BoxesWizardPage page);
void boxes_ui_set_state (BoxesUI* self, BoxesUIState new_state);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
static gboolean boxes_wizard_window_on_key_pressed (BoxesWizardWindow* self, GtkWidget* widget, GdkEventKey* event);
void boxes_wizard_toolbar_click_back_button (BoxesWizardToolbar* self);
void boxes_wizard_toolbar_click_forward_button (BoxesWizardToolbar* self);
static gboolean _boxes_wizard_window_on_key_pressed_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self);
static gboolean boxes_wizard_window_on_delete_event (BoxesWizardWindow* self);
void boxes_wizard_cancel (BoxesWizard* self);
static gboolean _boxes_wizard_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
static void boxes_wizard_window_finalize (GObject* obj);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
static void _vala_boxes_wizard_window_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void boxes_ui_set_previous_ui_state (BoxesUI* self, BoxesUIState value);
void boxes_ui_set_ui_state (BoxesUI* self, BoxesUIState value);
static void _vala_boxes_wizard_window_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void _boxes_wizard_window_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_ui_state_changed ((BoxesWizardWindow*) self);
#line 170 "wizard-window.c"
}


BoxesWizardWindow* boxes_wizard_window_construct (GType object_type, BoxesAppWindow* app_window) {
	BoxesWizardWindow * self = NULL;
	BoxesWizard* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
	BoxesAppWindow* _tmp2_ = NULL;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (app_window != NULL, NULL);
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) g_object_new (object_type, NULL);
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->wizard;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = app_window;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_setup_ui (_tmp0_, _tmp1_, self);
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = app_window;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_window_set_transient_for ((GtkWindow*) self, (GtkWindow*) _tmp2_);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_signal_connect_object ((GObject*) self, "notify::ui-state", (GCallback) _boxes_wizard_window_ui_state_changed_g_object_notify, self, 0);
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return self;
#line 197 "wizard-window.c"
}


BoxesWizardWindow* boxes_wizard_window_new (BoxesAppWindow* app_window) {
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return boxes_wizard_window_construct (BOXES_TYPE_WIZARD_WINDOW, app_window);
#line 204 "wizard-window.c"
}


void boxes_wizard_window_set_title_for_page (BoxesWizardWindow* self, BoxesWizardPage page) {
	BoxesWizardPage _tmp0_ = 0;
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (self != NULL);
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = page;
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	switch (_tmp0_) {
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_PAGE_LAST:
#line 218 "wizard-window.c"
		{
#line 26 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			break;
#line 222 "wizard-window.c"
		}
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_PAGE_INTRODUCTION:
#line 226 "wizard-window.c"
		{
			const gchar* _tmp1_ = NULL;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp1_ = _ ("Create a box");
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			gtk_window_set_title ((GtkWindow*) self, _tmp1_);
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			break;
#line 235 "wizard-window.c"
		}
		default:
		{
			const gchar* _tmp2_ = NULL;
			BoxesWizardPage _tmp3_ = 0;
			gchar* _tmp4_ = NULL;
			gchar* _tmp5_ = NULL;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp2_ = _ ("Create a box (step %d/5)");
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp3_ = page;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp4_ = g_strdup_printf (_tmp2_, _tmp3_);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp5_ = _tmp4_;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			gtk_window_set_title ((GtkWindow*) self, _tmp5_);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_g_free0 (_tmp5_);
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			break;
#line 257 "wizard-window.c"
		}
	}
}


static void boxes_wizard_window_ui_state_changed (BoxesWizardWindow* self) {
	BoxesWizard* _tmp0_ = NULL;
	BoxesUIState _tmp1_ = 0;
	BoxesUIState _tmp2_ = 0;
	BoxesUIState _tmp3_ = 0;
	BoxesUIState _tmp4_ = 0;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (self != NULL);
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->wizard;
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = _tmp1_;
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp0_, _tmp2_);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp4_ = _tmp3_;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_widget_set_visible ((GtkWidget*) self, _tmp4_ == BOXES_UI_STATE_WIZARD);
#line 285 "wizard-window.c"
}


static gboolean boxes_wizard_window_on_key_pressed (BoxesWizardWindow* self, GtkWidget* widget, GdkEventKey* event) {
	gboolean result = FALSE;
	GdkModifierType default_modifiers = 0;
	GdkModifierType _tmp0_ = 0;
	gboolean _tmp1_ = FALSE;
	GdkEventKey* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = gtk_accelerator_get_default_mod_mask ();
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	default_modifiers = _tmp0_;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = event;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = _tmp2_->keyval;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	if (_tmp3_ == ((guint) GDK_KEY_Left)) {
#line 312 "wizard-window.c"
		GdkEventKey* _tmp4_ = NULL;
		GdkModifierType _tmp5_ = 0;
		GdkModifierType _tmp6_ = 0;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp4_ = event;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp5_ = _tmp4_->state;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp6_ = default_modifiers;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp1_ = (_tmp5_ & _tmp6_) == GDK_MOD1_MASK;
#line 324 "wizard-window.c"
	} else {
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp1_ = FALSE;
#line 328 "wizard-window.c"
	}
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	if (_tmp1_) {
#line 332 "wizard-window.c"
		BoxesWizardToolbar* _tmp7_ = NULL;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp7_ = self->topbar;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		boxes_wizard_toolbar_click_back_button (_tmp7_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		result = TRUE;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		return result;
#line 342 "wizard-window.c"
	} else {
		gboolean _tmp8_ = FALSE;
		GdkEventKey* _tmp9_ = NULL;
		guint _tmp10_ = 0U;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp9_ = event;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		_tmp10_ = _tmp9_->keyval;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		if (_tmp10_ == ((guint) GDK_KEY_Right)) {
#line 353 "wizard-window.c"
			GdkEventKey* _tmp11_ = NULL;
			GdkModifierType _tmp12_ = 0;
			GdkModifierType _tmp13_ = 0;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp11_ = event;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp12_ = _tmp11_->state;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp13_ = default_modifiers;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp8_ = (_tmp12_ & _tmp13_) == GDK_MOD1_MASK;
#line 365 "wizard-window.c"
		} else {
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp8_ = FALSE;
#line 369 "wizard-window.c"
		}
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		if (_tmp8_) {
#line 373 "wizard-window.c"
			BoxesWizardToolbar* _tmp14_ = NULL;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp14_ = self->topbar;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			boxes_wizard_toolbar_click_forward_button (_tmp14_);
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			result = TRUE;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			return result;
#line 383 "wizard-window.c"
		} else {
			GdkEventKey* _tmp15_ = NULL;
			guint _tmp16_ = 0U;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp15_ = event;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			_tmp16_ = _tmp15_->keyval;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
			if (_tmp16_ == ((guint) GDK_KEY_Escape)) {
#line 393 "wizard-window.c"
				BoxesWizardToolbar* _tmp17_ = NULL;
				GtkButton* _tmp18_ = NULL;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
				_tmp17_ = self->topbar;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
				_tmp18_ = _tmp17_->cancel_btn;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
				gtk_button_clicked (_tmp18_);
#line 402 "wizard-window.c"
			}
		}
	}
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	result = FALSE;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return result;
#line 410 "wizard-window.c"
}


static gboolean _boxes_wizard_window_on_key_pressed_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
	gboolean result;
	result = boxes_wizard_window_on_key_pressed ((BoxesWizardWindow*) self, _sender, event);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return result;
#line 419 "wizard-window.c"
}


static gboolean boxes_wizard_window_on_delete_event (BoxesWizardWindow* self) {
	gboolean result = FALSE;
	BoxesWizard* _tmp0_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->wizard;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_cancel (_tmp0_);
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	result = TRUE;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return result;
#line 436 "wizard-window.c"
}


static gboolean _boxes_wizard_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
	gboolean result;
	result = boxes_wizard_window_on_delete_event ((BoxesWizardWindow*) self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return result;
#line 445 "wizard-window.c"
}


static BoxesUIState boxes_wizard_window_real_get_previous_ui_state (BoxesUI* base) {
	BoxesUIState result;
	BoxesWizardWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) base;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->priv->_previous_ui_state;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	result = _tmp0_;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return result;
#line 461 "wizard-window.c"
}


static void boxes_wizard_window_real_set_previous_ui_state (BoxesUI* base, BoxesUIState value) {
	BoxesWizardWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) base;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = value;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self->priv->_previous_ui_state = _tmp0_;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_object_notify ((GObject *) self, "previous-ui-state");
#line 476 "wizard-window.c"
}


static BoxesUIState boxes_wizard_window_real_get_ui_state (BoxesUI* base) {
	BoxesUIState result;
	BoxesWizardWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) base;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->priv->_ui_state;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	result = _tmp0_;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	return result;
#line 492 "wizard-window.c"
}


static void boxes_wizard_window_real_set_ui_state (BoxesUI* base, BoxesUIState value) {
	BoxesWizardWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) base;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = value;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self->priv->_ui_state = _tmp0_;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_object_notify ((GObject *) self, "ui-state");
#line 507 "wizard-window.c"
}


static void boxes_wizard_window_class_init (BoxesWizardWindowClass * klass) {
	gint BoxesWizardWindow_private_offset;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardWindowPrivate));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_wizard_window_get_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_wizard_window_set_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_window_finalize;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE, g_param_spec_enum ("previous-ui-state", "previous-ui-state", "previous-ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_WINDOW_UI_STATE, g_param_spec_enum ("ui-state", "ui-state", "ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	BoxesWizardWindow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard-window.ui");
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "wizard", FALSE, G_STRUCT_OFFSET (BoxesWizardWindow, wizard));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "topbar", FALSE, G_STRUCT_OFFSET (BoxesWizardWindow, topbar));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_key_pressed", G_CALLBACK(_boxes_wizard_window_on_key_pressed_gtk_widget_key_press_event));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_delete_event", G_CALLBACK(_boxes_wizard_window_on_delete_event_gtk_widget_delete_event));
#line 539 "wizard-window.c"
}


static void boxes_wizard_window_boxes_ui_interface_init (BoxesUIIface * iface) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_boxes_ui_parent_iface = g_type_interface_peek_parent (iface);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	iface->get_previous_ui_state = boxes_wizard_window_real_get_previous_ui_state;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	iface->set_previous_ui_state = boxes_wizard_window_real_set_previous_ui_state;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	iface->get_ui_state = boxes_wizard_window_real_get_ui_state;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	iface->set_ui_state = boxes_wizard_window_real_set_ui_state;
#line 554 "wizard-window.c"
}


static void boxes_wizard_window_instance_init (BoxesWizardWindow * self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self->priv = BOXES_WIZARD_WINDOW_GET_PRIVATE (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_type_ensure (BOXES_TYPE_WIZARD_TOOLBAR);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	g_type_ensure (BOXES_TYPE_WIZARD);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 567 "wizard-window.c"
}


static void boxes_wizard_window_finalize (GObject* obj) {
	BoxesWizardWindow * self;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindow);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->wizard);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->topbar);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (boxes_wizard_window_parent_class)->finalize (obj);
#line 581 "wizard-window.c"
}


GType boxes_wizard_window_get_type (void) {
	static volatile gsize boxes_wizard_window_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_window_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizardWindow), 0, (GInstanceInitFunc) boxes_wizard_window_instance_init, NULL };
		static const GInterfaceInfo boxes_ui_info = { (GInterfaceInitFunc) boxes_wizard_window_boxes_ui_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_wizard_window_type_id;
		boxes_wizard_window_type_id = g_type_register_static (gtk_window_get_type (), "BoxesWizardWindow", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_wizard_window_type_id, BOXES_TYPE_UI, &boxes_ui_info);
		g_once_init_leave (&boxes_wizard_window_type_id__volatile, boxes_wizard_window_type_id);
	}
	return boxes_wizard_window_type_id__volatile;
}


static void _vala_boxes_wizard_window_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesWizardWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindow);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state ((BoxesUI*) self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state ((BoxesUI*) self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		break;
#line 616 "wizard-window.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		break;
#line 622 "wizard-window.c"
	}
}


static void _vala_boxes_wizard_window_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesWizardWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindow);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		boxes_ui_set_previous_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		boxes_ui_set_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		break;
#line 644 "wizard-window.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/wizard-window.vala"
		break;
#line 650 "wizard-window.c"
	}
}



