/* wizard-window.c generated by valac 0.39.5, 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 <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <float.h>
#include <math.h>
#include <osinfo/osinfo.h>
#include <gdk/gdk.h>


#define BOXES_TYPE_WIZARD_WINDOW_PAGE (boxes_wizard_window_page_get_type ())

#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 BOXES_TYPE_NOTIFICATIONBAR (boxes_notificationbar_get_type ())
#define BOXES_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbar))
#define BOXES_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))
#define BOXES_IS_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_IS_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_NOTIFICATIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;

#define BOXES_TYPE_PROPERTY (boxes_property_get_type ())
#define BOXES_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTY, BoxesProperty))
#define BOXES_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTY, BoxesPropertyClass))
#define BOXES_IS_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTY))
#define BOXES_IS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTY))
#define BOXES_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTY, BoxesPropertyClass))

typedef struct _BoxesProperty BoxesProperty;
typedef struct _BoxesPropertyClass BoxesPropertyClass;
enum  {
	BOXES_WIZARD_WINDOW_0_PROPERTY,
	BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE_PROPERTY,
	BOXES_WIZARD_WINDOW_UI_STATE_PROPERTY,
	BOXES_WIZARD_WINDOW_PAGE_PROPERTY,
	BOXES_WIZARD_WINDOW_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_window_properties[BOXES_WIZARD_WINDOW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (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 _g_free0(var) (var = (g_free (var), NULL))
typedef struct _BoxesWizardToolbarPrivate BoxesWizardToolbarPrivate;

#define BOXES_TYPE_COLLECTION_ITEM (boxes_collection_item_get_type ())
#define BOXES_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem))
#define BOXES_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))
#define BOXES_IS_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_IS_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_COLLECTION_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;

#define BOXES_TYPE_MACHINE (boxes_machine_get_type ())
#define BOXES_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE, BoxesMachine))
#define BOXES_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE, BoxesMachineClass))
#define BOXES_IS_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE))
#define BOXES_IS_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE))
#define BOXES_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE, BoxesMachineClass))

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;

#define BOXES_TYPE_LIBVIRT_MACHINE (boxes_libvirt_machine_get_type ())
#define BOXES_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine))
#define BOXES_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))
#define BOXES_IS_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_IS_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_LIBVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))

typedef struct _BoxesLibvirtMachine BoxesLibvirtMachine;
typedef struct _BoxesLibvirtMachineClass BoxesLibvirtMachineClass;
typedef struct _BoxesCollectionItemPrivate BoxesCollectionItemPrivate;

#define BOXES_TYPE_IPROPERTIES_PROVIDER (boxes_iproperties_provider_get_type ())
#define BOXES_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProvider))
#define BOXES_IS_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER))
#define BOXES_IPROPERTIES_PROVIDER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProviderIface))

typedef struct _BoxesIPropertiesProvider BoxesIPropertiesProvider;
typedef struct _BoxesIPropertiesProviderIface BoxesIPropertiesProviderIface;

#define BOXES_TYPE_PROPERTIES_PAGE (boxes_properties_page_get_type ())
typedef struct _BoxesMachinePrivate BoxesMachinePrivate;

#define BOXES_MACHINE_TYPE_CONNECT_FLAGS (boxes_machine_connect_flags_get_type ())
typedef struct _BoxesLibvirtMachinePrivate BoxesLibvirtMachinePrivate;

#define BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES (boxes_libvirt_machine_properties_get_type ())
#define BOXES_LIBVIRT_MACHINE_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachineProperties))
#define BOXES_LIBVIRT_MACHINE_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachinePropertiesClass))
#define BOXES_IS_LIBVIRT_MACHINE_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES))
#define BOXES_IS_LIBVIRT_MACHINE_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES))
#define BOXES_LIBVIRT_MACHINE_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachinePropertiesClass))

typedef struct _BoxesLibvirtMachineProperties BoxesLibvirtMachineProperties;
typedef struct _BoxesLibvirtMachinePropertiesClass BoxesLibvirtMachinePropertiesClass;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
typedef struct _Block90Data Block90Data;
typedef struct _Block91Data Block91Data;

#define BOXES_TYPE_OS_DATABASE (boxes_os_database_get_type ())
#define BOXES_OS_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_OS_DATABASE, BoxesOSDatabase))
#define BOXES_OS_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_OS_DATABASE, BoxesOSDatabaseClass))
#define BOXES_IS_OS_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_OS_DATABASE))
#define BOXES_IS_OS_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_OS_DATABASE))
#define BOXES_OS_DATABASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_OS_DATABASE, BoxesOSDatabaseClass))

typedef struct _BoxesOSDatabase BoxesOSDatabase;
typedef struct _BoxesOSDatabaseClass BoxesOSDatabaseClass;
typedef struct _Block92Data Block92Data;

#define BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY (boxes_wizard_downloadable_entry_get_type ())
#define BOXES_WIZARD_DOWNLOADABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY, BoxesWizardDownloadableEntry))
#define BOXES_WIZARD_DOWNLOADABLE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY, BoxesWizardDownloadableEntryClass))
#define BOXES_IS_WIZARD_DOWNLOADABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY))
#define BOXES_IS_WIZARD_DOWNLOADABLE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY))
#define BOXES_WIZARD_DOWNLOADABLE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY, BoxesWizardDownloadableEntryClass))

typedef struct _BoxesWizardDownloadableEntry BoxesWizardDownloadableEntry;
typedef struct _BoxesWizardDownloadableEntryClass BoxesWizardDownloadableEntryClass;
typedef struct _BoxesWizardDownloadableEntryPrivate BoxesWizardDownloadableEntryPrivate;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

typedef enum  {
	BOXES_WIZARD_WINDOW_PAGE_MAIN,
	BOXES_WIZARD_WINDOW_PAGE_CUSTOMIZATION,
	BOXES_WIZARD_WINDOW_PAGE_FILE_CHOOSER,
	BOXES_WIZARD_WINDOW_PAGE_DOWNLOADS
} BoxesWizardWindowPage;

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,
	BOXES_UI_STATE_TROUBLESHOOT
} 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;
	GtkStack* view;
	BoxesWizard* wizard;
	GtkGrid* customization_grid;
	GtkFileChooserWidget* file_chooser;
	BoxesWizardToolbar* topbar;
	BoxesNotificationbar* notificationbar;
};

struct _BoxesWizardWindowClass {
	GtkWindowClass parent_class;
};

struct _BoxesWizardWindowPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
	BoxesWizardWindowPage _page;
	GtkListBox* downloads_list;
	GList* resource_properties;
};

struct _BoxesWizardToolbar {
	GtkStack parent_instance;
	BoxesWizardToolbarPrivate * priv;
	GtkButton* cancel_btn;
	GtkButton* back_btn;
	GtkButton* continue_btn;
	GtkButton* create_btn;
	GtkSearchEntry* downloads_search;
};

struct _BoxesWizardToolbarClass {
	GtkStackClass parent_class;
};

struct _BoxesCollectionItem {
	GObject parent_instance;
	BoxesCollectionItemPrivate * priv;
};

struct _BoxesCollectionItemClass {
	GObjectClass parent_class;
	gint (*compare) (BoxesCollectionItem* self, BoxesCollectionItem* other);
};

typedef enum  {
	BOXES_PROPERTIES_PAGE_GENERAL,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_SNAPSHOTS,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

struct _BoxesIPropertiesProviderIface {
	GTypeInterface parent_iface;
	GList* (*get_properties) (BoxesIPropertiesProvider* self, BoxesPropertiesPage page);
};

typedef enum  {
	BOXES_MACHINE_CONNECT_FLAGS_NONE = 0,
	BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE = 1 << 0
} BoxesMachineConnectFlags;

struct _BoxesMachine {
	BoxesCollectionItem parent_instance;
	BoxesMachinePrivate * priv;
	BoxesCollectionSource* source;
	BoxesBoxConfig* config;
	gboolean stay_on_display;
};

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	void (*save_real) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*save_real_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*take_screenshot) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GdkPixbuf* (*take_screenshot_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	GList* (*get_properties) (BoxesMachine* self, BoxesPropertiesPage page);
	void (*connect_display) (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*restart) (BoxesMachine* self);
	void (*clone) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*clone_finish) (BoxesMachine* self, GAsyncResult* _res_);
	void (*disconnect_display) (BoxesMachine* self);
	void (*update_status) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
	gboolean (*get_suspend_at_exit) (BoxesMachine* self);
	gboolean (*get_can_save) (BoxesMachine* self);
	gboolean (*get_can_restart) (BoxesMachine* self);
	gboolean (*get_can_clone) (BoxesMachine* self);
	gboolean (*get_should_autosave) (BoxesMachine* self);
	gboolean (*get_is_local) (BoxesMachine* self);
};

struct _BoxesLibvirtMachine {
	BoxesMachine parent_instance;
	BoxesLibvirtMachinePrivate * priv;
	BoxesLibvirtMachineProperties* properties;
	gdouble* cpu_stats;
	gint cpu_stats_length1;
	gint _cpu_stats_size_;
	gdouble* io_stats;
	gint io_stats_length1;
	gint _io_stats_size_;
	gdouble* net_stats;
	gint net_stats_length1;
	gint _net_stats_size_;
};

struct _BoxesLibvirtMachineClass {
	BoxesMachineClass parent_class;
};

typedef void (*BoxesWizardWindowFileChosenFunc) (const gchar* uri, void* user_data);
struct _Block90Data {
	int _ref_count_;
	BoxesWizardWindow* self;
	gulong activated_id;
	BoxesWizardWindowFileChosenFunc file_chosen_func;
	gpointer file_chosen_func_target;
	GDestroyNotify file_chosen_func_target_destroy_notify;
};

typedef void (*BoxesWizardWindowCustomDownloadChosenFunc) (void* user_data);
struct _Block91Data {
	int _ref_count_;
	BoxesWizardWindow* self;
	GtkButton* button;
	gulong activated_id;
	BoxesWizardWindowCustomDownloadChosenFunc custom_download_chosen_func;
	gpointer custom_download_chosen_func_target;
	GDestroyNotify custom_download_chosen_func_target_destroy_notify;
};

typedef void (*BoxesWizardWindowDownloadChosenFunc) (const gchar* uri, void* user_data);
struct _Block92Data {
	int _ref_count_;
	BoxesWizardWindow* self;
	gulong activated_id;
	BoxesOSDatabase* os_db;
	BoxesWizardWindowDownloadChosenFunc download_chosen_func;
	gpointer download_chosen_func_target;
	GDestroyNotify download_chosen_func_target_destroy_notify;
};

struct _BoxesWizardDownloadableEntry {
	GtkListBoxRow parent_instance;
	BoxesWizardDownloadableEntryPrivate * priv;
	gchar* url;
};

struct _BoxesWizardDownloadableEntryClass {
	GtkListBoxRowClass parent_class;
};

typedef enum  {
	BOXES_OS_DATABASE_ERROR_NON_BOOTABLE,
	BOXES_OS_DATABASE_ERROR_DB_LOADING_FAILED,
	BOXES_OS_DATABASE_ERROR_UNKNOWN_OS_ID,
	BOXES_OS_DATABASE_ERROR_UNKNOWN_MEDIA_ID
} BoxesOSDatabaseError;
#define BOXES_OS_DATABASE_ERROR boxes_os_database_error_quark ()

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

GType boxes_wizard_window_page_get_type (void) G_GNUC_CONST;
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;
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
GType boxes_property_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowPrivate))
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
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);
void boxes_wizard_toolbar_setup_ui (BoxesWizardToolbar* self,
                                    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);
static gboolean boxes_wizard_window_downloads_filter_func (BoxesWizardWindow* self,
                                                    GtkListBoxRow* row);
static gboolean _boxes_wizard_window_downloads_filter_func_gtk_list_box_filter_func (GtkListBoxRow* row,
                                                                              gpointer self);
static void __lambda174_ (BoxesWizardWindow* self);
static void ___lambda174__gtk_search_entry_search_changed (GtkSearchEntry* _sender,
                                                    gpointer self);
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
void boxes_wizard_window_show_customization_page (BoxesWizardWindow* self,
                                                  BoxesLibvirtMachine* machine);
GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_connect_flags_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_properties_get_type (void) G_GNUC_CONST;
void boxes_libvirt_machine_properties_get_resources_properties (BoxesLibvirtMachineProperties* self,
                                                                GList* * list);
GtkWidget* boxes_property_get_widget (BoxesProperty* self);
GtkWidget* boxes_property_get_extra_widget (BoxesProperty* self);
void boxes_wizard_window_set_page (BoxesWizardWindow* self,
                                   BoxesWizardWindowPage value);
void boxes_wizard_window_show_file_chooser (BoxesWizardWindow* self,
                                            BoxesWizardWindowFileChosenFunc file_chosen_func,
                                            void* file_chosen_func_target,
                                            GDestroyNotify file_chosen_func_target_destroy_notify);
static Block90Data* block90_data_ref (Block90Data* _data90_);
static void block90_data_unref (void * _userdata_);
static void __lambda75_ (Block90Data* _data90_);
static void ___lambda75__gtk_file_chooser_file_activated (GtkFileChooser* _sender,
                                                   gpointer self);
void boxes_wizard_window_add_custom_download (BoxesWizardWindow* self,
                                              GtkListBoxRow* row,
                                              BoxesWizardWindowCustomDownloadChosenFunc custom_download_chosen_func,
                                              void* custom_download_chosen_func_target,
                                              GDestroyNotify custom_download_chosen_func_target_destroy_notify);
static Block91Data* block91_data_ref (Block91Data* _data91_);
static void block91_data_unref (void * _userdata_);
static void __lambda159_ (Block91Data* _data91_);
static void ___lambda159__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
GType boxes_os_database_get_type (void) G_GNUC_CONST;
void boxes_wizard_window_show_downloads_page (BoxesWizardWindow* self,
                                              BoxesOSDatabase* os_db,
                                              BoxesWizardWindowDownloadChosenFunc download_chosen_func,
                                              void* download_chosen_func_target,
                                              GDestroyNotify download_chosen_func_target_destroy_notify);
static Block92Data* block92_data_ref (Block92Data* _data92_);
static void block92_data_unref (void * _userdata_);
static void __lambda156_ (Block92Data* _data92_,
                   GtkListBoxRow* row);
GType boxes_wizard_downloadable_entry_get_type (void) G_GNUC_CONST;
static void ___lambda156__gtk_list_box_row_activated (GtkListBox* _sender,
                                               GtkListBoxRow* row,
                                               gpointer self);
void boxes_os_database_list_downloadable_oses (BoxesOSDatabase* self,
                                               GAsyncReadyCallback _callback_,
                                               gpointer _user_data_);
GQuark boxes_os_database_error_quark (void);
GList* boxes_os_database_list_downloadable_oses_finish (BoxesOSDatabase* self,
                                                        GAsyncResult* _res_,
                                                        GError** error);
static void __lambda157_ (Block92Data* _data92_,
                   GObject* db,
                   GAsyncResult* _result_);
BoxesWizardDownloadableEntry* boxes_wizard_downloadable_entry_new (OsinfoMedia* media);
BoxesWizardDownloadableEntry* boxes_wizard_downloadable_entry_construct (GType object_type,
                                                                         OsinfoMedia* media);
static void ___lambda157__gasync_ready_callback (GObject* source_object,
                                          GAsyncResult* res,
                                          gpointer self);
const gchar* boxes_wizard_downloadable_entry_get_title (BoxesWizardDownloadableEntry* self);
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);
BoxesWizardWindowPage boxes_wizard_window_get_page (BoxesWizardWindow* 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);
void boxes_property_flush (BoxesProperty* self);
void boxes_wizard_review (BoxesWizard* self,
                          GAsyncReadyCallback _callback_,
                          gpointer _user_data_);
gboolean boxes_wizard_review_finish (BoxesWizard* self,
                                     GAsyncResult* _res_);
void boxes_wizard_toolbar_set_page (BoxesWizardToolbar* self,
                                    BoxesWizardWindowPage value);
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);

const gchar* BOXES_WIZARD_WINDOW_page_names[4] = {"main", "customization", "file_chooser", "downloads"};
extern const gchar* BOXES_INSTALLED_MEDIA_supported_extensions[16];

GType
boxes_wizard_window_page_get_type (void)
{
	static volatile gsize boxes_wizard_window_page_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_window_page_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_WIZARD_WINDOW_PAGE_MAIN, "BOXES_WIZARD_WINDOW_PAGE_MAIN", "main"}, {BOXES_WIZARD_WINDOW_PAGE_CUSTOMIZATION, "BOXES_WIZARD_WINDOW_PAGE_CUSTOMIZATION", "customization"}, {BOXES_WIZARD_WINDOW_PAGE_FILE_CHOOSER, "BOXES_WIZARD_WINDOW_PAGE_FILE_CHOOSER", "file-chooser"}, {BOXES_WIZARD_WINDOW_PAGE_DOWNLOADS, "BOXES_WIZARD_WINDOW_PAGE_DOWNLOADS", "downloads"}, {0, NULL, NULL}};
		GType boxes_wizard_window_page_type_id;
		boxes_wizard_window_page_type_id = g_enum_register_static ("BoxesWizardWindowPage", values);
		g_once_init_leave (&boxes_wizard_window_page_type_id__volatile, boxes_wizard_window_page_type_id);
	}
	return boxes_wizard_window_page_type_id__volatile;
}


static void
_g_object_unref0_ (gpointer var)
{
#line 57 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 538 "wizard-window.c"
}


static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
#line 57 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
#line 547 "wizard-window.c"
}


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


static gboolean
_boxes_wizard_window_downloads_filter_func_gtk_list_box_filter_func (GtkListBoxRow* row,
                                                                     gpointer self)
{
	gboolean result;
	result = boxes_wizard_window_downloads_filter_func ((BoxesWizardWindow*) self, row);
#line 70 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return result;
#line 570 "wizard-window.c"
}


static void
__lambda174_ (BoxesWizardWindow* self)
{
	GtkListBox* _tmp0_;
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->priv->downloads_list;
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_list_box_invalidate_filter (_tmp0_);
#line 582 "wizard-window.c"
}


static void
___lambda174__gtk_search_entry_search_changed (GtkSearchEntry* _sender,
                                               gpointer self)
{
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	__lambda174_ ((BoxesWizardWindow*) self);
#line 592 "wizard-window.c"
}


BoxesWizardWindow*
boxes_wizard_window_construct (GType object_type,
                               BoxesAppWindow* app_window)
{
	BoxesWizardWindow * self = NULL;
	BoxesWizard* _tmp0_;
	BoxesWizardToolbar* _tmp1_;
	GtkListBox* _tmp8_;
	BoxesWizardToolbar* _tmp9_;
	GtkSearchEntry* _tmp10_;
#line 59 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (app_window != NULL, NULL);
#line 59 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) g_object_new (object_type, NULL);
#line 60 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->wizard;
#line 60 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_setup_ui (_tmp0_, app_window, self);
#line 61 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = self->topbar;
#line 61 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_toolbar_setup_ui (_tmp1_, self);
#line 618 "wizard-window.c"
	{
		const gchar** extension_collection = NULL;
		gint extension_collection_length1 = 0;
		gint _extension_collection_size_ = 0;
		gint extension_it = 0;
#line 63 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		extension_collection = BOXES_INSTALLED_MEDIA_supported_extensions;
#line 63 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		extension_collection_length1 = G_N_ELEMENTS (BOXES_INSTALLED_MEDIA_supported_extensions);
#line 63 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		for (extension_it = 0; extension_it < G_N_ELEMENTS (BOXES_INSTALLED_MEDIA_supported_extensions); extension_it = extension_it + 1) {
#line 630 "wizard-window.c"
			const gchar* extension = NULL;
#line 63 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			extension = extension_collection[extension_it];
#line 634 "wizard-window.c"
			{
				GtkFileChooserWidget* _tmp2_;
				GtkFileFilter* _tmp3_;
				GtkFileFilter* _tmp4_;
				const gchar* _tmp5_;
				gchar* _tmp6_;
				gchar* _tmp7_;
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp2_ = self->file_chooser;
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp3_ = gtk_file_chooser_get_filter ((GtkFileChooser*) _tmp2_);
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp4_ = _tmp3_;
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp5_ = extension;
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp6_ = g_strconcat ("*", _tmp5_, NULL);
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp7_ = _tmp6_;
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				gtk_file_filter_add_pattern (_tmp4_, _tmp7_);
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_g_free0 (_tmp7_);
#line 658 "wizard-window.c"
			}
		}
	}
#line 66 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_window_set_transient_for ((GtkWindow*) self, (GtkWindow*) app_window);
#line 68 "/home/fborges/checkout/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 70 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp8_ = self->priv->downloads_list;
#line 70 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_list_box_set_filter_func (_tmp8_, _boxes_wizard_window_downloads_filter_func_gtk_list_box_filter_func, g_object_ref (self), g_object_unref);
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp9_ = self->topbar;
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp10_ = _tmp9_->downloads_search;
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_signal_connect_object (_tmp10_, "search-changed", (GCallback) ___lambda174__gtk_search_entry_search_changed, self, 0);
#line 59 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return self;
#line 678 "wizard-window.c"
}


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


static gpointer
_g_object_ref0 (gpointer self)
{
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return self ? g_object_ref (self) : NULL;
#line 696 "wizard-window.c"
}


void
boxes_wizard_window_show_customization_page (BoxesWizardWindow* self,
                                             BoxesLibvirtMachine* machine)
{
	BoxesLibvirtMachineProperties* _tmp0_;
	GList* _tmp1_;
	GtkGrid* _tmp2_;
	GList* _tmp3_;
	gint current_row = 0;
	GList* _tmp6_;
	GtkGrid* _tmp32_;
#line 76 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (self != NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (machine != NULL);
#line 77 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	__g_list_free__g_object_unref0_0 (self->priv->resource_properties);
#line 77 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self->priv->resource_properties = NULL;
#line 78 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = machine->properties;
#line 78 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_libvirt_machine_properties_get_resources_properties (_tmp0_, &self->priv->resource_properties);
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = self->priv->resource_properties;
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (g_list_length (_tmp1_) > ((guint) 0));
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = self->customization_grid;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = gtk_container_get_children ((GtkContainer*) _tmp2_);
#line 731 "wizard-window.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		child_collection = _tmp3_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 739 "wizard-window.c"
			GtkWidget* child = NULL;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			child = (GtkWidget*) child_it->data;
#line 743 "wizard-window.c"
			{
				GtkGrid* _tmp4_;
				GtkWidget* _tmp5_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp4_ = self->customization_grid;
#line 83 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp5_ = child;
#line 83 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				gtk_container_remove ((GtkContainer*) _tmp4_, _tmp5_);
#line 753 "wizard-window.c"
			}
		}
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_g_list_free0 (child_collection);
#line 758 "wizard-window.c"
	}
#line 85 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	current_row = 0;
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp6_ = self->priv->resource_properties;
#line 764 "wizard-window.c"
	{
		GList* property_collection = NULL;
		GList* property_it = NULL;
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		property_collection = _tmp6_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
#line 772 "wizard-window.c"
			BoxesProperty* _tmp7_;
			BoxesProperty* property = NULL;
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp7_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			property = _tmp7_;
#line 779 "wizard-window.c"
			{
				gboolean _tmp8_ = FALSE;
				BoxesProperty* _tmp9_;
				GtkWidget* _tmp10_;
				GtkWidget* _tmp11_;
				BoxesProperty* _tmp15_;
				GtkWidget* _tmp16_;
				GtkWidget* _tmp17_;
				GtkGrid* _tmp18_;
				BoxesProperty* _tmp19_;
				GtkWidget* _tmp20_;
				GtkWidget* _tmp21_;
				gint _tmp22_;
				BoxesProperty* _tmp23_;
				GtkWidget* _tmp24_;
				GtkWidget* _tmp25_;
				GtkGrid* _tmp26_;
				BoxesProperty* _tmp27_;
				GtkWidget* _tmp28_;
				GtkWidget* _tmp29_;
				gint _tmp30_;
				gint _tmp31_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp9_ = property;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp10_ = boxes_property_get_widget (_tmp9_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp11_ = _tmp10_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				if (_tmp11_ == NULL) {
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp8_ = TRUE;
#line 812 "wizard-window.c"
				} else {
					BoxesProperty* _tmp12_;
					GtkWidget* _tmp13_;
					GtkWidget* _tmp14_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp12_ = property;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp13_ = boxes_property_get_extra_widget (_tmp12_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp14_ = _tmp13_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp8_ = _tmp14_ == NULL;
#line 825 "wizard-window.c"
				}
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				if (_tmp8_) {
#line 88 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					g_warn_if_reached ();
#line 90 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_g_object_unref0 (property);
#line 90 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					continue;
#line 835 "wizard-window.c"
				}
#line 93 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp15_ = property;
#line 93 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp16_ = boxes_property_get_widget (_tmp15_);
#line 93 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp17_ = _tmp16_;
#line 93 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				gtk_widget_set_hexpand (_tmp17_, TRUE);
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp18_ = self->customization_grid;
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp19_ = property;
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp20_ = boxes_property_get_widget (_tmp19_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp21_ = _tmp20_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp22_ = current_row;
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				gtk_grid_attach (_tmp18_, _tmp21_, 0, _tmp22_, 1, 1);
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp23_ = property;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp24_ = boxes_property_get_extra_widget (_tmp23_);
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp25_ = _tmp24_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				gtk_widget_set_hexpand (_tmp25_, TRUE);
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp26_ = self->customization_grid;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp27_ = property;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp28_ = boxes_property_get_extra_widget (_tmp27_);
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp29_ = _tmp28_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp30_ = current_row;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				gtk_grid_attach (_tmp26_, _tmp29_, 0, _tmp30_ + 1, 1, 1);
#line 99 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp31_ = current_row;
#line 99 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				current_row = _tmp31_ + 2;
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_g_object_unref0 (property);
#line 883 "wizard-window.c"
			}
		}
	}
#line 101 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp32_ = self->customization_grid;
#line 101 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_widget_show_all ((GtkWidget*) _tmp32_);
#line 103 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_CUSTOMIZATION);
#line 893 "wizard-window.c"
}


static Block90Data*
block90_data_ref (Block90Data* _data90_)
{
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_atomic_int_inc (&_data90_->_ref_count_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return _data90_;
#line 904 "wizard-window.c"
}


static void
block90_data_unref (void * _userdata_)
{
	Block90Data* _data90_;
	_data90_ = (Block90Data*) _userdata_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (g_atomic_int_dec_and_test (&_data90_->_ref_count_)) {
#line 915 "wizard-window.c"
		BoxesWizardWindow* self;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		self = _data90_->self;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		(_data90_->file_chosen_func_target_destroy_notify == NULL) ? NULL : (_data90_->file_chosen_func_target_destroy_notify (_data90_->file_chosen_func_target), NULL);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data90_->file_chosen_func = NULL;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data90_->file_chosen_func_target = NULL;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data90_->file_chosen_func_target_destroy_notify = NULL;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_g_object_unref0 (self);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_slice_free (Block90Data, _data90_);
#line 931 "wizard-window.c"
	}
}


static void
__lambda75_ (Block90Data* _data90_)
{
	BoxesWizardWindow* self;
	gchar* uri = NULL;
	GtkFileChooserWidget* _tmp0_;
	gchar* _tmp1_;
	GtkFileChooserWidget* _tmp2_;
	gulong _tmp3_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = _data90_->self;
#line 109 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->file_chooser;
#line 109 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = gtk_file_chooser_get_uri ((GtkFileChooser*) _tmp0_);
#line 109 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	uri = _tmp1_;
#line 110 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->file_chosen_func (uri, _data90_->file_chosen_func_target);
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = self->file_chooser;
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = _data90_->activated_id;
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_signal_handler_disconnect ((GObject*) _tmp2_, _tmp3_);
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_MAIN);
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_free0 (uri);
#line 965 "wizard-window.c"
}


static void
___lambda75__gtk_file_chooser_file_activated (GtkFileChooser* _sender,
                                              gpointer self)
{
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	__lambda75_ (self);
#line 975 "wizard-window.c"
}


void
boxes_wizard_window_show_file_chooser (BoxesWizardWindow* self,
                                       BoxesWizardWindowFileChosenFunc file_chosen_func,
                                       void* file_chosen_func_target,
                                       GDestroyNotify file_chosen_func_target_destroy_notify)
{
	Block90Data* _data90_;
	GtkFileChooserWidget* _tmp0_;
	gulong _tmp1_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (self != NULL);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_ = g_slice_new0 (Block90Data);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->_ref_count_ = 1;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->self = g_object_ref (self);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	(_data90_->file_chosen_func_target_destroy_notify == NULL) ? NULL : (_data90_->file_chosen_func_target_destroy_notify (_data90_->file_chosen_func_target), NULL);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->file_chosen_func = NULL;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->file_chosen_func_target = NULL;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->file_chosen_func_target_destroy_notify = NULL;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->file_chosen_func = file_chosen_func;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->file_chosen_func_target = file_chosen_func_target;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->file_chosen_func_target_destroy_notify = file_chosen_func_target_destroy_notify;
#line 107 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->activated_id = (gulong) 0;
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->file_chooser;
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = g_signal_connect_data ((GtkFileChooser*) _tmp0_, "file-activated", (GCallback) ___lambda75__gtk_file_chooser_file_activated, block90_data_ref (_data90_), (GClosureNotify) block90_data_unref, 0);
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_->activated_id = _tmp1_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_FILE_CHOOSER);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	block90_data_unref (_data90_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data90_ = NULL;
#line 1024 "wizard-window.c"
}


static Block91Data*
block91_data_ref (Block91Data* _data91_)
{
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_atomic_int_inc (&_data91_->_ref_count_);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return _data91_;
#line 1035 "wizard-window.c"
}


static void
block91_data_unref (void * _userdata_)
{
	Block91Data* _data91_;
	_data91_ = (Block91Data*) _userdata_;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (g_atomic_int_dec_and_test (&_data91_->_ref_count_)) {
#line 1046 "wizard-window.c"
		BoxesWizardWindow* self;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		self = _data91_->self;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_g_object_unref0 (_data91_->button);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		(_data91_->custom_download_chosen_func_target_destroy_notify == NULL) ? NULL : (_data91_->custom_download_chosen_func_target_destroy_notify (_data91_->custom_download_chosen_func_target), NULL);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data91_->custom_download_chosen_func = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data91_->custom_download_chosen_func_target = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data91_->custom_download_chosen_func_target_destroy_notify = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_g_object_unref0 (self);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_slice_free (Block91Data, _data91_);
#line 1064 "wizard-window.c"
	}
}


static void
__lambda159_ (Block91Data* _data91_)
{
	BoxesWizardWindow* self;
	GtkButton* _tmp0_;
	gulong _tmp1_;
#line 128 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = _data91_->self;
#line 129 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->custom_download_chosen_func (_data91_->custom_download_chosen_func_target);
#line 130 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = _data91_->button;
#line 130 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = _data91_->activated_id;
#line 130 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp1_);
#line 132 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_MAIN);
#line 1087 "wizard-window.c"
}


static void
___lambda159__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
#line 128 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	__lambda159_ (self);
#line 1097 "wizard-window.c"
}


void
boxes_wizard_window_add_custom_download (BoxesWizardWindow* self,
                                         GtkListBoxRow* row,
                                         BoxesWizardWindowCustomDownloadChosenFunc custom_download_chosen_func,
                                         void* custom_download_chosen_func_target,
                                         GDestroyNotify custom_download_chosen_func_target_destroy_notify)
{
	Block91Data* _data91_;
	GtkContainer* _tmp0_;
	GtkListBox* _tmp1_;
	GtkWidget* _tmp2_;
	GtkButton* _tmp3_;
	GtkButton* _tmp4_;
	gulong _tmp5_;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (self != NULL);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (row != NULL);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_ = g_slice_new0 (Block91Data);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->_ref_count_ = 1;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->self = g_object_ref (self);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	(_data91_->custom_download_chosen_func_target_destroy_notify == NULL) ? NULL : (_data91_->custom_download_chosen_func_target_destroy_notify (_data91_->custom_download_chosen_func_target), NULL);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->custom_download_chosen_func = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->custom_download_chosen_func_target = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->custom_download_chosen_func_target_destroy_notify = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->custom_download_chosen_func = custom_download_chosen_func;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->custom_download_chosen_func_target = custom_download_chosen_func_target;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->custom_download_chosen_func_target_destroy_notify = custom_download_chosen_func_target_destroy_notify;
#line 119 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = gtk_widget_get_parent ((GtkWidget*) row);
#line 119 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp0_ != NULL) {
#line 120 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		block91_data_unref (_data91_);
#line 120 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data91_ = NULL;
#line 120 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		return;
#line 1149 "wizard-window.c"
	}
#line 123 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = self->priv->downloads_list;
#line 123 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_list_box_insert (_tmp1_, (GtkWidget*) row, -1);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = gtk_bin_get_child ((GtkBin*) row);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_button_get_type ()) ? ((GtkButton*) _tmp2_) : NULL);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->button = _tmp3_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->activated_id = (gulong) 0;
#line 128 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp4_ = _data91_->button;
#line 128 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp5_ = g_signal_connect_data (_tmp4_, "clicked", (GCallback) ___lambda159__gtk_button_clicked, block91_data_ref (_data91_), (GClosureNotify) block91_data_unref, 0);
#line 128 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_->activated_id = _tmp5_;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	block91_data_unref (_data91_);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data91_ = NULL;
#line 1173 "wizard-window.c"
}


static Block92Data*
block92_data_ref (Block92Data* _data92_)
{
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_atomic_int_inc (&_data92_->_ref_count_);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return _data92_;
#line 1184 "wizard-window.c"
}


static void
block92_data_unref (void * _userdata_)
{
	Block92Data* _data92_;
	_data92_ = (Block92Data*) _userdata_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (g_atomic_int_dec_and_test (&_data92_->_ref_count_)) {
#line 1195 "wizard-window.c"
		BoxesWizardWindow* self;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		self = _data92_->self;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_g_object_unref0 (_data92_->os_db);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		(_data92_->download_chosen_func_target_destroy_notify == NULL) ? NULL : (_data92_->download_chosen_func_target_destroy_notify (_data92_->download_chosen_func_target), NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data92_->download_chosen_func = NULL;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data92_->download_chosen_func_target = NULL;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_data92_->download_chosen_func_target_destroy_notify = NULL;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_g_object_unref0 (self);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_slice_free (Block92Data, _data92_);
#line 1213 "wizard-window.c"
	}
}


static void
__lambda156_ (Block92Data* _data92_,
              GtkListBoxRow* row)
{
	BoxesWizardWindow* self;
	BoxesWizardDownloadableEntry* entry = NULL;
	BoxesWizardDownloadableEntry* _tmp0_;
	const gchar* _tmp1_;
	GtkListBox* _tmp2_;
	gulong _tmp3_;
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = _data92_->self;
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (row != NULL);
#line 141 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (row, BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY) ? ((BoxesWizardDownloadableEntry*) row) : NULL);
#line 141 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	entry = _tmp0_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = entry->url;
#line 143 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->download_chosen_func (_tmp1_, _data92_->download_chosen_func_target);
#line 144 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = self->priv->downloads_list;
#line 144 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = _data92_->activated_id;
#line 144 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_signal_handler_disconnect ((GObject*) _tmp2_, _tmp3_);
#line 146 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_MAIN);
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (entry);
#line 1250 "wizard-window.c"
}


static void
___lambda156__gtk_list_box_row_activated (GtkListBox* _sender,
                                          GtkListBoxRow* row,
                                          gpointer self)
{
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	__lambda156_ (self, row);
#line 1261 "wizard-window.c"
}


static void
__lambda157_ (Block92Data* _data92_,
              GObject* db,
              GAsyncResult* _result_)
{
	BoxesWizardWindow* self;
	GError * _inner_error_ = NULL;
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = _data92_->self;
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (_result_ != NULL);
#line 1276 "wizard-window.c"
	{
		GList* media_list = NULL;
		GList* _tmp0_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp0_ = boxes_os_database_list_downloadable_oses_finish (_data92_->os_db, _result_, &_inner_error_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		media_list = _tmp0_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			if (_inner_error_->domain == BOXES_OS_DATABASE_ERROR) {
#line 1288 "wizard-window.c"
				goto __catch135_boxes_os_database_error;
			}
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-window.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 155 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			g_clear_error (&_inner_error_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			return;
#line 1297 "wizard-window.c"
		}
		{
			GList* media_collection = NULL;
			GList* media_it = NULL;
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			media_collection = media_list;
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			for (media_it = media_collection; media_it != NULL; media_it = media_it->next) {
#line 1306 "wizard-window.c"
				OsinfoMedia* _tmp1_;
				OsinfoMedia* media = NULL;
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp1_ = _g_object_ref0 ((OsinfoMedia*) media_it->data);
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				media = _tmp1_;
#line 1313 "wizard-window.c"
				{
					BoxesWizardDownloadableEntry* entry = NULL;
					OsinfoMedia* _tmp2_;
					BoxesWizardDownloadableEntry* _tmp3_;
					GtkListBox* _tmp4_;
					BoxesWizardDownloadableEntry* _tmp5_;
#line 158 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp2_ = media;
#line 158 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp3_ = boxes_wizard_downloadable_entry_new (_tmp2_);
#line 158 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					g_object_ref_sink (_tmp3_);
#line 158 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					entry = _tmp3_;
#line 160 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp4_ = self->priv->downloads_list;
#line 160 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp5_ = entry;
#line 160 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					gtk_list_box_insert (_tmp4_, (GtkWidget*) _tmp5_, -1);
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_g_object_unref0 (entry);
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_g_object_unref0 (media);
#line 1338 "wizard-window.c"
				}
			}
		}
#line 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		__g_list_free__g_object_unref0_0 (media_list);
#line 1344 "wizard-window.c"
	}
	goto __finally135;
	__catch135_boxes_os_database_error:
	{
		GError* _error_ = NULL;
		GError* _tmp6_;
		const gchar* _tmp7_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_error_ = _inner_error_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_inner_error_ = NULL;
#line 163 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp6_ = _error_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp7_ = _tmp6_->message;
#line 163 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_debug ("wizard-window.vala:163: Failed to populate the list of downloadable OS" \
"es: %s", _tmp7_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_g_error_free0 (_error_);
#line 1364 "wizard-window.c"
	}
	__finally135:
#line 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.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 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_clear_error (&_inner_error_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		return;
#line 1375 "wizard-window.c"
	}
}


static void
___lambda157__gasync_ready_callback (GObject* source_object,
                                     GAsyncResult* res,
                                     gpointer self)
{
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	__lambda157_ (self, source_object, res);
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	block92_data_unref (self);
#line 1389 "wizard-window.c"
}


void
boxes_wizard_window_show_downloads_page (BoxesWizardWindow* self,
                                         BoxesOSDatabase* os_db,
                                         BoxesWizardWindowDownloadChosenFunc download_chosen_func,
                                         void* download_chosen_func_target,
                                         GDestroyNotify download_chosen_func_target_destroy_notify)
{
	Block92Data* _data92_;
	BoxesOSDatabase* _tmp0_;
	GtkListBox* _tmp1_;
	gulong _tmp2_;
	BoxesWizardToolbar* _tmp3_;
	GtkSearchEntry* _tmp4_;
	GtkListBox* _tmp5_;
	GList* _tmp6_;
	GList* _tmp7_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (self != NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (os_db != NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_ = g_slice_new0 (Block92Data);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->_ref_count_ = 1;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->self = g_object_ref (self);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = _g_object_ref0 (os_db);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (_data92_->os_db);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->os_db = _tmp0_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	(_data92_->download_chosen_func_target_destroy_notify == NULL) ? NULL : (_data92_->download_chosen_func_target_destroy_notify (_data92_->download_chosen_func_target), NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->download_chosen_func = NULL;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->download_chosen_func_target = NULL;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->download_chosen_func_target_destroy_notify = NULL;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->download_chosen_func = download_chosen_func;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->download_chosen_func_target = download_chosen_func_target;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->download_chosen_func_target_destroy_notify = download_chosen_func_target_destroy_notify;
#line 137 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_DOWNLOADS);
#line 139 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->activated_id = (gulong) 0;
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = self->priv->downloads_list;
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = g_signal_connect_data (_tmp1_, "row-activated", (GCallback) ___lambda156__gtk_list_box_row_activated, block92_data_ref (_data92_), (GClosureNotify) block92_data_unref, 0);
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_->activated_id = _tmp2_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_DOWNLOADS);
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = self->topbar;
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp4_ = _tmp3_->downloads_search;
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp4_);
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp5_ = self->priv->downloads_list;
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp6_ = gtk_container_get_children ((GtkContainer*) _tmp5_);
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp7_ = _tmp6_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (g_list_length (_tmp7_) == ((guint) 0));
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_list_free0 (_tmp7_);
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_os_database_list_downloadable_oses (_data92_->os_db, ___lambda157__gasync_ready_callback, block92_data_ref (_data92_));
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	block92_data_unref (_data92_);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_data92_ = NULL;
#line 1473 "wizard-window.c"
}


static gboolean
string_contains (const gchar* self,
                 const gchar* needle)
{
	gboolean result = FALSE;
	gchar* _tmp0_;
#line 1417 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1417 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, FALSE);
#line 1418 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	_tmp0_ = strstr ((gchar*) self, (gchar*) needle);
#line 1418 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	result = _tmp0_ != NULL;
#line 1418 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	return result;
#line 1493 "wizard-window.c"
}


static gboolean
boxes_wizard_window_downloads_filter_func (BoxesWizardWindow* self,
                                           GtkListBoxRow* row)
{
	gboolean result = FALSE;
	BoxesWizardToolbar* _tmp0_;
	GtkSearchEntry* _tmp1_;
	BoxesWizardDownloadableEntry* entry = NULL;
	BoxesWizardDownloadableEntry* _tmp2_;
	gchar* text = NULL;
	BoxesWizardToolbar* _tmp3_;
	GtkSearchEntry* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	BoxesWizardDownloadableEntry* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	const gchar* _tmp12_;
	gboolean _tmp13_;
#line 168 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 168 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (row != NULL, FALSE);
#line 169 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->topbar;
#line 169 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp1_ = _tmp0_->downloads_search;
#line 169 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (((gint) gtk_entry_get_text_length ((GtkEntry*) _tmp1_)) == 0) {
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		result = TRUE;
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		return result;
#line 1532 "wizard-window.c"
	}
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (!G_TYPE_CHECK_INSTANCE_TYPE (row, BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY)) {
#line 174 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		result = FALSE;
#line 174 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		return result;
#line 1540 "wizard-window.c"
	}
#line 176 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (row, BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY) ? ((BoxesWizardDownloadableEntry*) row) : NULL);
#line 176 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	entry = _tmp2_;
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = self->topbar;
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp4_ = _tmp3_->downloads_search;
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp5_ = gtk_entry_get_text ((GtkEntry*) _tmp4_);
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp6_ = boxes_canonicalize_for_search (_tmp5_);
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	text = _tmp6_;
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp7_ = entry;
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp8_ = boxes_wizard_downloadable_entry_get_title (_tmp7_);
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp9_ = _tmp8_;
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp10_ = boxes_canonicalize_for_search (_tmp9_);
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp11_ = _tmp10_;
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp12_ = text;
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp13_ = string_contains (_tmp11_, _tmp12_);
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_free0 (_tmp11_);
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	result = _tmp13_;
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_free0 (text);
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (entry);
#line 179 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return result;
#line 1580 "wizard-window.c"
}


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


static gboolean
boxes_wizard_window_on_key_pressed (BoxesWizardWindow* self,
                                    GtkWidget* widget,
                                    GdkEventKey* event)
{
	gboolean result = FALSE;
	GdkModifierType default_modifiers = 0;
	GtkTextDirection direction = 0;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	GtkTextDirection _tmp3_;
#line 189 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 189 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 189 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	default_modifiers = gtk_accelerator_get_default_mod_mask ();
#line 191 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	direction = gtk_widget_get_direction ((GtkWidget*) self);
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = direction;
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp3_ == GTK_TEXT_DIR_LTR) {
#line 1638 "wizard-window.c"
		guint _tmp4_;
#line 194 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp4_ = event->keyval;
#line 194 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp2_ = _tmp4_ == ((guint) GDK_KEY_Left);
#line 1644 "wizard-window.c"
	} else {
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp2_ = FALSE;
#line 1648 "wizard-window.c"
	}
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp2_) {
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp1_ = TRUE;
#line 1654 "wizard-window.c"
	} else {
		gboolean _tmp5_ = FALSE;
		GtkTextDirection _tmp6_;
#line 195 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp6_ = direction;
#line 195 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		if (_tmp6_ == GTK_TEXT_DIR_RTL) {
#line 1662 "wizard-window.c"
			guint _tmp7_;
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp7_ = event->keyval;
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp5_ = _tmp7_ == ((guint) GDK_KEY_Right);
#line 1668 "wizard-window.c"
		} else {
#line 195 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp5_ = FALSE;
#line 1672 "wizard-window.c"
		}
#line 195 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp1_ = _tmp5_;
#line 1676 "wizard-window.c"
	}
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp1_) {
#line 1680 "wizard-window.c"
		GdkModifierType _tmp8_;
		GdkModifierType _tmp9_;
#line 197 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp8_ = event->state;
#line 197 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp9_ = default_modifiers;
#line 197 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp0_ = (_tmp8_ & _tmp9_) == GDK_MOD1_MASK;
#line 1689 "wizard-window.c"
	} else {
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp0_ = FALSE;
#line 1693 "wizard-window.c"
	}
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp0_) {
#line 1697 "wizard-window.c"
		BoxesWizardToolbar* _tmp10_;
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp10_ = self->topbar;
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		boxes_wizard_toolbar_click_back_button (_tmp10_);
#line 199 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		result = TRUE;
#line 199 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		return result;
#line 1707 "wizard-window.c"
	} else {
		gboolean _tmp11_ = FALSE;
		gboolean _tmp12_ = FALSE;
		gboolean _tmp13_ = FALSE;
		GtkTextDirection _tmp14_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp14_ = direction;
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		if (_tmp14_ == GTK_TEXT_DIR_LTR) {
#line 1717 "wizard-window.c"
			guint _tmp15_;
#line 201 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp15_ = event->keyval;
#line 201 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp13_ = _tmp15_ == ((guint) GDK_KEY_Right);
#line 1723 "wizard-window.c"
		} else {
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp13_ = FALSE;
#line 1727 "wizard-window.c"
		}
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		if (_tmp13_) {
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp12_ = TRUE;
#line 1733 "wizard-window.c"
		} else {
			gboolean _tmp16_ = FALSE;
			GtkTextDirection _tmp17_;
#line 202 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp17_ = direction;
#line 202 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			if (_tmp17_ == GTK_TEXT_DIR_RTL) {
#line 1741 "wizard-window.c"
				guint _tmp18_;
#line 203 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp18_ = event->keyval;
#line 203 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp16_ = _tmp18_ == ((guint) GDK_KEY_Left);
#line 1747 "wizard-window.c"
			} else {
#line 202 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp16_ = FALSE;
#line 1751 "wizard-window.c"
			}
#line 202 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp12_ = _tmp16_;
#line 1755 "wizard-window.c"
		}
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		if (_tmp12_) {
#line 1759 "wizard-window.c"
			GdkModifierType _tmp19_;
			GdkModifierType _tmp20_;
#line 204 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp19_ = event->state;
#line 204 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp20_ = default_modifiers;
#line 204 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp11_ = (_tmp19_ & _tmp20_) == GDK_MOD1_MASK;
#line 1768 "wizard-window.c"
		} else {
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp11_ = FALSE;
#line 1772 "wizard-window.c"
		}
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		if (_tmp11_) {
#line 1776 "wizard-window.c"
			BoxesWizardToolbar* _tmp21_;
#line 205 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp21_ = self->topbar;
#line 205 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			boxes_wizard_toolbar_click_forward_button (_tmp21_);
#line 206 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			result = TRUE;
#line 206 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			return result;
#line 1786 "wizard-window.c"
		} else {
			guint _tmp22_;
#line 207 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			_tmp22_ = event->keyval;
#line 207 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			if (_tmp22_ == ((guint) GDK_KEY_Escape)) {
#line 1793 "wizard-window.c"
				BoxesWizardWindowPage _tmp23_;
				BoxesWizardWindowPage _tmp24_;
#line 208 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp23_ = boxes_wizard_window_get_page (self);
#line 208 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp24_ = _tmp23_;
#line 208 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				if (_tmp24_ == BOXES_WIZARD_WINDOW_PAGE_MAIN) {
#line 1802 "wizard-window.c"
					BoxesWizardToolbar* _tmp25_;
					GtkButton* _tmp26_;
#line 209 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp25_ = self->topbar;
#line 209 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp26_ = _tmp25_->cancel_btn;
#line 209 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					gtk_button_clicked (_tmp26_);
#line 1811 "wizard-window.c"
				} else {
#line 211 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					boxes_wizard_window_set_page (self, BOXES_WIZARD_WINDOW_PAGE_MAIN);
#line 1815 "wizard-window.c"
				}
			}
		}
	}
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	result = FALSE;
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return result;
#line 1824 "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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return result;
#line 1837 "wizard-window.c"
}


static gboolean
boxes_wizard_window_on_delete_event (BoxesWizardWindow* self)
{
	gboolean result = FALSE;
	BoxesWizard* _tmp0_;
#line 219 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 220 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->wizard;
#line 220 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_cancel (_tmp0_);
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	result = TRUE;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return result;
#line 1856 "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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return result;
#line 1869 "wizard-window.c"
}


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


static void
boxes_wizard_window_real_set_previous_ui_state (BoxesUI* base,
                                                BoxesUIState value)
{
	BoxesWizardWindow* self;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) base;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (boxes_wizard_window_real_get_previous_ui_state (base) != value) {
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		self->priv->_previous_ui_state = value;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_window_properties[BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE_PROPERTY]);
#line 1904 "wizard-window.c"
	}
}


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


static void
boxes_wizard_window_real_set_ui_state (BoxesUI* base,
                                       BoxesUIState value)
{
	BoxesWizardWindow* self;
#line 20 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = (BoxesWizardWindow*) base;
#line 20 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (boxes_wizard_window_real_get_ui_state (base) != value) {
#line 20 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		self->priv->_ui_state = value;
#line 20 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_window_properties[BOXES_WIZARD_WINDOW_UI_STATE_PROPERTY]);
#line 1940 "wizard-window.c"
	}
}


BoxesWizardWindowPage
boxes_wizard_window_get_page (BoxesWizardWindow* self)
{
	BoxesWizardWindowPage result;
	BoxesWizardWindowPage _tmp0_;
#line 24 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 24 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp0_ = self->priv->_page;
#line 24 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	result = _tmp0_;
#line 24 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	return result;
#line 1958 "wizard-window.c"
}


void
boxes_wizard_window_set_page (BoxesWizardWindow* self,
                              BoxesWizardWindowPage value)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	BoxesWizardWindowPage _tmp3_;
	GtkStack* _tmp10_;
	const gchar* _tmp11_;
	BoxesWizardToolbar* _tmp12_;
#line 25 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_return_if_fail (self != NULL);
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp3_ = self->priv->_page;
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp3_ == BOXES_WIZARD_WINDOW_PAGE_CUSTOMIZATION) {
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp2_ = value != BOXES_WIZARD_WINDOW_PAGE_CUSTOMIZATION;
#line 1981 "wizard-window.c"
	} else {
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp2_ = FALSE;
#line 1985 "wizard-window.c"
	}
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp2_) {
#line 1989 "wizard-window.c"
		GList* _tmp4_;
#line 27 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp4_ = self->priv->resource_properties;
#line 27 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp1_ = _tmp4_ != NULL;
#line 1995 "wizard-window.c"
	} else {
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp1_ = FALSE;
#line 1999 "wizard-window.c"
	}
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp1_) {
#line 2003 "wizard-window.c"
		GList* _tmp5_;
#line 27 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp5_ = self->priv->resource_properties;
#line 27 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp0_ = g_list_length (_tmp5_) > ((guint) 0);
#line 2009 "wizard-window.c"
	} else {
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp0_ = FALSE;
#line 2013 "wizard-window.c"
	}
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	if (_tmp0_) {
#line 2017 "wizard-window.c"
		GList* _tmp6_;
		BoxesWizard* _tmp9_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp6_ = self->priv->resource_properties;
#line 2022 "wizard-window.c"
		{
			GList* property_collection = NULL;
			GList* property_it = NULL;
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			property_collection = _tmp6_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
			for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
#line 2030 "wizard-window.c"
				BoxesProperty* _tmp7_;
				BoxesProperty* property = NULL;
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				_tmp7_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
				property = _tmp7_;
#line 2037 "wizard-window.c"
				{
					BoxesProperty* _tmp8_;
#line 29 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_tmp8_ = property;
#line 29 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					boxes_property_flush (_tmp8_);
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
					_g_object_unref0 (property);
#line 2046 "wizard-window.c"
				}
			}
		}
#line 30 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		__g_list_free__g_object_unref0_0 (self->priv->resource_properties);
#line 30 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		self->priv->resource_properties = NULL;
#line 32 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		_tmp9_ = self->wizard;
#line 32 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		boxes_wizard_review (_tmp9_, NULL, NULL);
#line 2058 "wizard-window.c"
	}
#line 35 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self->priv->_page = value;
#line 37 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp10_ = self->view;
#line 37 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp11_ = BOXES_WIZARD_WINDOW_page_names[value];
#line 37 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_stack_set_visible_child_name (_tmp10_, _tmp11_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_tmp12_ = self->topbar;
#line 38 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_toolbar_set_page (_tmp12_, value);
#line 25 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_object_notify_by_pspec ((GObject *) self, boxes_wizard_window_properties[BOXES_WIZARD_WINDOW_PAGE_PROPERTY]);
#line 2074 "wizard-window.c"
}


static void
boxes_wizard_window_class_init (BoxesWizardWindowClass * klass)
{
	gint BoxesWizardWindow_private_offset;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	boxes_wizard_window_parent_class = g_type_class_peek_parent (klass);
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardWindowPrivate));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_wizard_window_get_property;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_wizard_window_set_property;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_window_finalize;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE_PROPERTY, boxes_wizard_window_properties[BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE_PROPERTY] = 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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_WINDOW_UI_STATE_PROPERTY, boxes_wizard_window_properties[BOXES_WIZARD_WINDOW_UI_STATE_PROPERTY] = 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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_WINDOW_PAGE_PROPERTY, boxes_wizard_window_properties[BOXES_WIZARD_WINDOW_PAGE_PROPERTY] = g_param_spec_enum ("page", "page", "page", BOXES_TYPE_WIZARD_WINDOW_PAGE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	BoxesWizardWindow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 12 "/home/fborges/checkout/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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "view", FALSE, G_STRUCT_OFFSET (BoxesWizardWindow, view));
#line 12 "/home/fborges/checkout/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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "customization_grid", FALSE, G_STRUCT_OFFSET (BoxesWizardWindow, customization_grid));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "file_chooser", FALSE, G_STRUCT_OFFSET (BoxesWizardWindow, file_chooser));
#line 12 "/home/fborges/checkout/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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "notificationbar", FALSE, G_STRUCT_OFFSET (BoxesWizardWindow, notificationbar));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "downloads_list", FALSE, BoxesWizardWindow_private_offset + G_STRUCT_OFFSET (BoxesWizardWindowPrivate, downloads_list));
#line 12 "/home/fborges/checkout/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 12 "/home/fborges/checkout/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 2120 "wizard-window.c"
}


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


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


static void
boxes_wizard_window_finalize (GObject * obj)
{
	BoxesWizardWindow * self;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindow);
#line 43 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->view);
#line 45 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->wizard);
#line 47 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->customization_grid);
#line 49 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->file_chooser);
#line 51 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->topbar);
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->notificationbar);
#line 55 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	_g_object_unref0 (self->priv->downloads_list);
#line 57 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	__g_list_free__g_object_unref0_0 (self->priv->resource_properties);
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	G_OBJECT_CLASS (boxes_wizard_window_parent_class)->finalize (obj);
#line 2182 "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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	switch (property_id) {
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE_PROPERTY:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state ((BoxesUI*) self));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_UI_STATE_PROPERTY:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state ((BoxesUI*) self));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_PAGE_PROPERTY:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		g_value_set_enum (value, boxes_wizard_window_get_page (self));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 2230 "wizard-window.c"
		default:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 2236 "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 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
	switch (property_id) {
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_PREVIOUS_UI_STATE_PROPERTY:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		boxes_ui_set_previous_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_UI_STATE_PROPERTY:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		boxes_ui_set_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		case BOXES_WIZARD_WINDOW_PAGE_PROPERTY:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		boxes_wizard_window_set_page (self, g_value_get_enum (value));
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 2269 "wizard-window.c"
		default:
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 12 "/home/fborges/checkout/gnome-boxes/src/wizard-window.vala"
		break;
#line 2275 "wizard-window.c"
	}
}



