/* wizard.c generated by valac 0.39.5, the Vala compiler
 * generated from wizard.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 <libcommon.h>
#include <gio/gio.h>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <libxml/uri.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <osinfo/osinfo.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <pango/pango.h>


#define BOXES_TYPE_WIZARD_PAGE (boxes_wizard_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 (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;
typedef struct _BoxesWizardPrivate BoxesWizardPrivate;

#define BOXES_TYPE_WIZARD_SOURCE (boxes_wizard_source_get_type ())
#define BOXES_WIZARD_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSource))
#define BOXES_WIZARD_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSourceClass))
#define BOXES_IS_WIZARD_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_SOURCE))
#define BOXES_IS_WIZARD_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_SOURCE))
#define BOXES_WIZARD_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSourceClass))

typedef struct _BoxesWizardSource BoxesWizardSource;
typedef struct _BoxesWizardSourceClass BoxesWizardSourceClass;

#define BOXES_TYPE_WIZARD_SUMMARY (boxes_wizard_summary_get_type ())
#define BOXES_WIZARD_SUMMARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_SUMMARY, BoxesWizardSummary))
#define BOXES_WIZARD_SUMMARY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_SUMMARY, BoxesWizardSummaryClass))
#define BOXES_IS_WIZARD_SUMMARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_SUMMARY))
#define BOXES_IS_WIZARD_SUMMARY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_SUMMARY))
#define BOXES_WIZARD_SUMMARY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_SUMMARY, BoxesWizardSummaryClass))

typedef struct _BoxesWizardSummary BoxesWizardSummary;
typedef struct _BoxesWizardSummaryClass BoxesWizardSummaryClass;

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

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;

#define BOXES_TYPE_WIZARD_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;

#define BOXES_TYPE_MEDIA_MANAGER (boxes_media_manager_get_type ())
#define BOXES_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MEDIA_MANAGER, BoxesMediaManager))
#define BOXES_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MEDIA_MANAGER, BoxesMediaManagerClass))
#define BOXES_IS_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MEDIA_MANAGER))
#define BOXES_IS_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MEDIA_MANAGER))
#define BOXES_MEDIA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MEDIA_MANAGER, BoxesMediaManagerClass))

typedef struct _BoxesMediaManager BoxesMediaManager;
typedef struct _BoxesMediaManagerClass BoxesMediaManagerClass;

#define BOXES_TYPE_VM_CREATOR (boxes_vm_creator_get_type ())
#define BOXES_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreator))
#define BOXES_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))
#define BOXES_IS_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VM_CREATOR))
#define BOXES_IS_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VM_CREATOR))
#define BOXES_VM_CREATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))

typedef struct _BoxesVMCreator BoxesVMCreator;
typedef struct _BoxesVMCreatorClass BoxesVMCreatorClass;

#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;
enum  {
	BOXES_WIZARD_0_PROPERTY,
	BOXES_WIZARD_PREVIOUS_UI_STATE_PROPERTY,
	BOXES_WIZARD_UI_STATE_PROPERTY,
	BOXES_WIZARD_MACHINE_PROPERTY,
	BOXES_WIZARD_PAGE_PROPERTY,
	BOXES_WIZARD_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_properties[BOXES_WIZARD_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _boxes_vm_creator_unref0(var) ((var == NULL) ? NULL : (var = (boxes_vm_creator_unref (var), NULL)))
typedef struct _Block95Data Block95Data;

#define BOXES_TYPE_SOURCE_PAGE (boxes_source_page_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesWizardReviewData BoxesWizardReviewData;
typedef struct _Block96Data Block96Data;

#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;

#define BOXES_TYPE_INSTALLER_MEDIA (boxes_installer_media_get_type ())
#define BOXES_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMedia))
#define BOXES_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))
#define BOXES_IS_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_IS_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_INSTALLER_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))

typedef struct _BoxesInstallerMedia BoxesInstallerMedia;
typedef struct _BoxesInstallerMediaClass BoxesInstallerMediaClass;
typedef struct _BoxesWizardSourcePrivate BoxesWizardSourcePrivate;

#define BOXES_TYPE_APP (boxes_app_get_type ())
#define BOXES_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP, BoxesApp))
#define BOXES_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP, BoxesAppClass))
#define BOXES_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP))
#define BOXES_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP))
#define BOXES_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP, BoxesAppClass))

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;

#define BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER (boxes_libvirt_system_importer_get_type ())
#define BOXES_LIBVIRT_SYSTEM_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporter))
#define BOXES_LIBVIRT_SYSTEM_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporterClass))
#define BOXES_IS_LIBVIRT_SYSTEM_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER))
#define BOXES_IS_LIBVIRT_SYSTEM_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER))
#define BOXES_LIBVIRT_SYSTEM_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporterClass))

typedef struct _BoxesLibvirtSystemImporter BoxesLibvirtSystemImporter;
typedef struct _BoxesLibvirtSystemImporterClass BoxesLibvirtSystemImporterClass;
typedef struct _BoxesWizardCreateData BoxesWizardCreateData;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _xmlFreeURI0(var) ((var == NULL) ? NULL : (var = (xmlFreeURI (var), NULL)))
typedef struct _Block97Data Block97Data;

#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_NOTIFICATION (boxes_notification_get_type ())
#define BOXES_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATION, BoxesNotification))
#define BOXES_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATION, BoxesNotificationClass))
#define BOXES_IS_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATION))
#define BOXES_IS_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATION))
#define BOXES_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATION, BoxesNotificationClass))

typedef struct _BoxesNotification BoxesNotification;
typedef struct _BoxesNotificationClass BoxesNotificationClass;
typedef struct _BoxesInstallerMediaPrivate BoxesInstallerMediaPrivate;
typedef struct _BoxesWizardPrepareMediaData BoxesWizardPrepareMediaData;

#define BOXES_TYPE_REMOTE_MACHINE (boxes_remote_machine_get_type ())
#define BOXES_REMOTE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_REMOTE_MACHINE, BoxesRemoteMachine))
#define BOXES_REMOTE_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_REMOTE_MACHINE, BoxesRemoteMachineClass))
#define BOXES_IS_REMOTE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_REMOTE_MACHINE))
#define BOXES_IS_REMOTE_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_REMOTE_MACHINE))
#define BOXES_REMOTE_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_REMOTE_MACHINE, BoxesRemoteMachineClass))

typedef struct _BoxesRemoteMachine BoxesRemoteMachine;
typedef struct _BoxesRemoteMachineClass BoxesRemoteMachineClass;
#define _boxes_pair_unref0(var) ((var == NULL) ? NULL : (var = (boxes_pair_unref (var), NULL)))
#define __g_list_free__boxes_pair_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__boxes_pair_unref0_ (var), NULL)))
typedef struct _Block98Data Block98Data;
typedef struct _BoxesAppPrivate BoxesAppPrivate;

#define BOXES_TYPE_COLLECTION (boxes_collection_get_type ())
#define BOXES_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION, BoxesCollection))
#define BOXES_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION, BoxesCollectionClass))
#define BOXES_IS_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION))
#define BOXES_IS_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION))
#define BOXES_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION, BoxesCollectionClass))

typedef struct _BoxesCollection BoxesCollection;
typedef struct _BoxesCollectionClass BoxesCollectionClass;
#define __vala_GVirStorageVolInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirStorageVolInfo_free (var), NULL)))
typedef struct _BoxesWizardDoReviewCancellableData BoxesWizardDoReviewCancellableData;
typedef struct _BoxesWizardDownloadMediaData BoxesWizardDownloadMediaData;
typedef struct _BoxesWizardWindowPrivate BoxesWizardWindowPrivate;

#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;
typedef struct _BoxesWizardToolbarPrivate BoxesWizardToolbarPrivate;
typedef struct _BoxesWizardSummaryPrivate BoxesWizardSummaryPrivate;
enum  {
	BOXES_WIZARD_SUMMARY_0_PROPERTY,
	BOXES_WIZARD_SUMMARY_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_summary_properties[BOXES_WIZARD_SUMMARY_NUM_PROPERTIES];
typedef struct _Block99Data Block99Data;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

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

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

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

struct _BoxesWizard {
	GtkStack parent_instance;
	BoxesWizardPrivate * priv;
};

struct _BoxesWizardClass {
	GtkStackClass parent_class;
};

struct _BoxesWizardPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
	GtkButton* cancel_button;
	GtkButton* back_button;
	GtkButton* next_button;
	GtkButton* continue_button;
	GtkButton* create_button;
	BoxesCollectionSource* source;
	BoxesWizardSource* wizard_source;
	BoxesWizardSummary* summary;
	GtkProgressBar* prep_progress;
	GtkLabel* prep_media_label;
	GtkLabel* prep_status_label;
	GtkBox* setup_box;
	GtkLabel* review_label;
	GtkInfoBar* nokvm_infobar;
	GtkImage* installer_image;
	BoxesAppWindow* window;
	BoxesWizardWindow* wizard_window;
	BoxesMediaManager* media_manager;
	BoxesVMCreator* vm_creator;
	BoxesMachine* _machine;
	GCancellable* prepare_cancellable;
	GCancellable* review_cancellable;
	gboolean skip_review_for_live;
	BoxesWizardPage _page;
};

struct _Block95Data {
	int _ref_count_;
	BoxesWizard* self;
	BoxesActivityProgress* progress;
};

typedef enum  {
	BOXES_SOURCE_PAGE_MAIN,
	BOXES_SOURCE_PAGE_URL,
	BOXES_SOURCE_PAGE_LAST
} BoxesSourcePage;

struct _BoxesWizardReviewData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	BoxesWizard* self;
	gboolean result;
	GCancellable* _tmp0_;
	GCancellable* _tmp1_;
	gboolean _result_;
};

struct _Block96Data {
	int _ref_count_;
	BoxesWizard* self;
	gpointer _async_data_;
};

struct _BoxesWizardSource {
	GtkStack parent_instance;
	BoxesWizardSourcePrivate * priv;
	gboolean libvirt_sys_import;
	GtkEntry* url_entry;
	BoxesMediaManager* media_manager;
};

struct _BoxesWizardSourceClass {
	GtkStackClass parent_class;
};

struct _BoxesWizardCreateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	BoxesWizard* self;
	gboolean result;
	Block96Data* _data96_;
	BoxesVMCreator* _tmp0_;
	BoxesLibvirtMachine* _tmp1_;
	BoxesLibvirtMachine* _tmp2_;
	GCancellable* _tmp3_;
	gulong wait;
	gulong _tmp4_;
	gulong _tmp5_;
	BoxesLibvirtMachine* _tmp6_;
	BoxesLibvirtMachine* _tmp7_;
	GtkButton* _tmp8_;
	BoxesVMCreator* _tmp9_;
	BoxesLibvirtMachine* _tmp10_;
	BoxesLibvirtMachine* _tmp11_;
	GError* _error_;
	GError* _tmp12_;
	const gchar* _tmp13_;
	BoxesVMCreator* _tmp14_;
	BoxesInstallerMedia* _tmp15_;
	BoxesInstallerMedia* _tmp16_;
	BoxesWizardSource* _tmp17_;
	BoxesWizardSource* _tmp18_;
	BoxesCollectionSource* _tmp19_;
	BoxesCollectionSource* _tmp20_;
	BoxesApp* _tmp21_;
	BoxesCollectionSource* _tmp22_;
	BoxesWizardSource* _tmp23_;
	gboolean _tmp24_;
	BoxesWizardSource* _tmp25_;
	BoxesLibvirtSystemImporter* _tmp26_;
	BoxesLibvirtSystemImporter* _tmp27_;
	GError * _inner_error_;
};

struct _Block97Data {
	int _ref_count_;
	BoxesWizard* self;
	BoxesActivityProgress* progress;
};

struct _BoxesInstallerMedia {
	GObject parent_instance;
	BoxesInstallerMediaPrivate * priv;
	OsinfoOs* os;
	OsinfoResources* resources;
	OsinfoMedia* os_media;
	gchar* label;
	gchar* device_file;
	gchar* mount_point;
	gboolean from_image;
};

struct _BoxesInstallerMediaClass {
	GObjectClass parent_class;
	void (*set_direct_boot_params) (BoxesInstallerMedia* self, GVirConfigDomainOs* os);
	void (*prepare) (BoxesInstallerMedia* self, BoxesActivityProgress* progress, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*prepare_finish) (BoxesInstallerMedia* self, GAsyncResult* _res_);
	void (*prepare_for_installation) (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*prepare_for_installation_finish) (BoxesInstallerMedia* self, GAsyncResult* _res_);
	void (*prepare_to_continue_installation) (BoxesInstallerMedia* self, const gchar* vm_name);
	void (*clean_up) (BoxesInstallerMedia* self);
	void (*clean_up_preparation_cache) (BoxesInstallerMedia* self);
	void (*setup_domain_config) (BoxesInstallerMedia* self, GVirConfigDomain* domain);
	void (*setup_post_install_domain_config) (BoxesInstallerMedia* self, GVirConfigDomain* domain);
	void (*populate_setup_box) (BoxesInstallerMedia* self, GtkBox* setup_box);
	GList* (*get_vm_properties) (BoxesInstallerMedia* self);
	BoxesVMCreator* (*get_vm_creator) (BoxesInstallerMedia* self);
	OsinfoDeviceList* (*get_supported_devices) (BoxesInstallerMedia* self);
	guint64 (*get_installed_size) (BoxesInstallerMedia* self);
	gboolean (*get_need_user_input_for_vm_creation) (BoxesInstallerMedia* self);
	gboolean (*get_ready_to_create) (BoxesInstallerMedia* self);
	gboolean (*get_live) (BoxesInstallerMedia* self);
	gchar* (*get_architecture) (BoxesInstallerMedia* self);
};

struct _BoxesWizardPrepareMediaData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	BoxesWizard* self;
	BoxesInstallerMedia* install_media;
	BoxesActivityProgress* progress;
	OsinfoOs* _tmp0_;
	GtkLabel* _tmp1_;
	OsinfoOs* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	GtkImage* _tmp5_;
	OsinfoOs* _tmp6_;
	BoxesActivityProgress* prepare_media_progress;
	BoxesWizardSource* _tmp7_;
	gboolean _tmp8_;
	gboolean _tmp9_;
	BoxesActivityProgress* _tmp10_;
	BoxesActivityProgress* _tmp11_;
	BoxesActivityProgress* _tmp12_;
	GtkLabel* _tmp13_;
	BoxesActivityProgress* _tmp14_;
	GCancellable* _tmp15_;
	BoxesVMCreator* _tmp16_;
	GtkProgressBar* _tmp17_;
};

struct _Block98Data {
	int _ref_count_;
	BoxesWizard* self;
	GVirConfigDomain* config;
};

struct _BoxesApp {
	GtkApplication parent_instance;
	BoxesAppPrivate * priv;
	BoxesCollection* collection;
	BoxesAsyncLauncher* async_launcher;
};

struct _BoxesAppClass {
	GtkApplicationClass parent_class;
};

typedef void (*BoxesWizardSummaryCustomizeFunc) (void* user_data);
struct _BoxesWizardDoReviewCancellableData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	BoxesWizard* self;
	gboolean result;
	GCancellable* _tmp0_;
	GtkInfoBar* _tmp1_;
	BoxesWizardSummary* _tmp2_;
	BoxesCollectionSource* _tmp3_;
	BoxesRemoteMachine* _tmp4_;
	BoxesCollectionSource* _tmp5_;
	BoxesRemoteMachine* _tmp6_;
	GError* _error_;
	GError* _tmp7_;
	const gchar* _tmp8_;
	gboolean _tmp9_;
	BoxesVMCreator* _tmp10_;
	BoxesLibvirtMachine* _tmp11_;
	BoxesLibvirtMachine* _tmp12_;
	BoxesLibvirtMachine* _tmp13_;
	BoxesVMCreator* _tmp14_;
	GCancellable* _tmp15_;
	BoxesLibvirtMachine* _tmp16_;
	GError* cancel_error;
	GError* _vala1__error_;
	BoxesAppWindow* _tmp17_;
	BoxesNotificationbar* _tmp18_;
	BoxesNotificationbar* _tmp19_;
	BoxesNotification* _tmp20_;
	BoxesNotification* _tmp21_;
	GError* _tmp22_;
	const gchar* _tmp23_;
	BoxesLibvirtMachine* _tmp24_;
	BoxesLibvirtMachine* _tmp25_;
	GCancellable* _tmp26_;
	GtkLabel* _tmp27_;
	BoxesCollectionSource* _tmp28_;
	xmlURI* uri;
	BoxesCollectionSource* _tmp29_;
	gchar* _tmp30_;
	gchar* _tmp31_;
	gchar* _tmp32_;
	xmlURI* _tmp33_;
	xmlURI* _tmp34_;
	BoxesWizardSummary* _tmp35_;
	BoxesCollectionSource* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	gchar* _tmp39_;
	gboolean _tmp40_;
	xmlURI* _tmp41_;
	xmlURI* _tmp42_;
	const gchar* _tmp43_;
	BoxesWizardSummary* _tmp44_;
	xmlURI* _tmp45_;
	const gchar* _tmp46_;
	gchar* _tmp47_;
	gchar* _tmp48_;
	BoxesWizardSummary* _tmp49_;
	BoxesCollectionSource* _tmp50_;
	gchar* _tmp51_;
	gchar* _tmp52_;
	gchar* _tmp53_;
	gchar* _tmp54_;
	gchar* _tmp55_;
	xmlURI* _tmp56_;
	const gchar* _tmp57_;
	const gchar* _tmp58_;
	GQuark _tmp60_;
	gint port;
	gint tls_port;
	BoxesCollectionSource* _tmp61_;
	gchar* _tmp62_;
	gchar* _tmp63_;
	gchar* _tmp64_;
	gint* _tmp65_;
	gint* _tmp66_;
	gint* _tmp67_;
	gint* _tmp68_;
	gint _tmp69_;
	BoxesWizardSummary* _tmp70_;
	gint _tmp71_;
	gchar* _tmp72_;
	gchar* _tmp73_;
	gint _tmp74_;
	BoxesWizardSummary* _tmp75_;
	gint _tmp76_;
	gchar* _tmp77_;
	gchar* _tmp78_;
	GError* _vala2__error_;
	GError* _tmp79_;
	const gchar* _tmp80_;
	xmlURI* _tmp81_;
	gint _tmp82_;
	BoxesWizardSummary* _tmp83_;
	xmlURI* _tmp84_;
	gint _tmp85_;
	gchar* _tmp86_;
	gchar* _tmp87_;
	BoxesApp* _tmp88_;
	BoxesCollectionSource* _tmp89_;
	gchar* _tmp90_;
	gchar* _tmp91_;
	gchar* _tmp92_;
	gboolean _tmp93_;
	GtkLabel* _tmp94_;
	BoxesLibvirtMachine* _tmp95_;
	BoxesLibvirtMachine* _tmp96_;
	BoxesVMCreator* _tmp97_;
	BoxesInstallerMedia* _tmp98_;
	BoxesInstallerMedia* _tmp99_;
	GList* _tmp100_;
	GList* property_collection;
	GList* property_it;
	BoxesPair* _tmp101_;
	BoxesPair* property;
	BoxesWizardSummary* _tmp102_;
	BoxesPair* _tmp103_;
	gconstpointer _tmp104_;
	BoxesPair* _tmp105_;
	gconstpointer _tmp106_;
	Block98Data* _data98_;
	gpointer _tmp107_;
	GVirConfigDomain* _tmp108_;
	BoxesApp* _tmp109_;
	BoxesAsyncLauncher* _tmp110_;
	gchar* memory;
	GVirConfigDomain* _tmp111_;
	guint64 _tmp112_;
	guint64 _tmp113_;
	gchar* _tmp114_;
	BoxesWizardSummary* _tmp115_;
	const gchar* _tmp116_;
	GError* _vala3__error_;
	BoxesLibvirtMachine* _tmp117_;
	BoxesLibvirtMachine* _tmp118_;
	const gchar* _tmp119_;
	const gchar* _tmp120_;
	GError* _tmp121_;
	const gchar* _tmp122_;
	gboolean _tmp123_;
	BoxesLibvirtMachine* _tmp124_;
	BoxesLibvirtMachine* _tmp125_;
	gboolean _tmp126_;
	gboolean _tmp127_;
	BoxesLibvirtMachine* _tmp128_;
	BoxesLibvirtMachine* _tmp129_;
	GVirStorageVol* _tmp130_;
	GVirStorageVol* _tmp131_;
	GVirStorageVolInfo* volume_info;
	BoxesLibvirtMachine* _tmp132_;
	BoxesLibvirtMachine* _tmp133_;
	GVirStorageVol* _tmp134_;
	GVirStorageVol* _tmp135_;
	GVirStorageVolInfo* _tmp136_;
	gchar* capacity;
	GVirStorageVolInfo* _tmp137_;
	guint64 _tmp138_;
	gchar* _tmp139_;
	BoxesWizardSummary* _tmp140_;
	const gchar* _tmp141_;
	gchar* _tmp142_;
	gchar* _tmp143_;
	GError* _vala4__error_;
	BoxesLibvirtMachine* _tmp144_;
	BoxesLibvirtMachine* _tmp145_;
	GVirStorageVol* _tmp146_;
	GVirStorageVol* _tmp147_;
	const gchar* _tmp148_;
	GError* _tmp149_;
	const gchar* _tmp150_;
	GtkInfoBar* _tmp151_;
	BoxesLibvirtMachine* _tmp152_;
	BoxesLibvirtMachine* _tmp153_;
	GVirConfigDomain* _tmp154_;
	GVirConfigDomain* _tmp155_;
	BoxesWizardSource* _tmp156_;
	gboolean _tmp157_;
	GtkLabel* _tmp158_;
	BoxesWizardSource* _tmp159_;
	BoxesLibvirtSystemImporter* _tmp160_;
	BoxesLibvirtSystemImporter* _tmp161_;
	gchar* _tmp162_;
	gchar* _tmp163_;
	gchar* _tmp164_;
	BoxesLibvirtMachine* _tmp165_;
	BoxesLibvirtMachine* _tmp166_;
	BoxesWizardSummary* _tmp167_;
	GError * _inner_error_;
};

struct _BoxesWizardDownloadMediaData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	BoxesWizard* self;
	gchar* uri;
	BoxesActivityProgress* progress;
	BoxesActivityProgress* download_progress;
	BoxesActivityProgress* _tmp0_;
	GtkLabel* _tmp1_;
	gchar* cache_path;
	BoxesActivityProgress* _tmp2_;
	GCancellable* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	GError* e;
	GError* _vala1_e;
	GError* _tmp6_;
	const gchar* _tmp7_;
	BoxesAppWindow* _tmp8_;
	BoxesNotificationbar* _tmp9_;
	BoxesNotificationbar* _tmp10_;
	BoxesNotification* _tmp11_;
	BoxesNotification* _tmp12_;
	GError * _inner_error_;
};

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 _BoxesWizardToolbar {
	GtkStack parent_instance;
	BoxesWizardToolbarPrivate * priv;
	GtkButton* cancel_btn;
	GtkButton* back_btn;
	GtkButton* continue_btn;
	GtkButton* create_btn;
};

struct _BoxesWizardToolbarClass {
	GtkStackClass parent_class;
};

struct _BoxesWizardSummary {
	GtkGrid parent_instance;
	BoxesWizardSummaryPrivate * priv;
};

struct _BoxesWizardSummaryClass {
	GtkGridClass parent_class;
};

struct _BoxesWizardSummaryPrivate {
	gint current_row;
};

struct _Block99Data {
	int _ref_count_;
	BoxesWizardSummary* self;
	BoxesWizardSummaryCustomizeFunc customize_func;
	gpointer customize_func_target;
};


static gpointer boxes_wizard_parent_class = NULL;
extern BoxesApp* boxes_app_app;
static BoxesUIIface * boxes_wizard_boxes_ui_parent_iface = NULL;
static gpointer boxes_wizard_summary_parent_class = NULL;

GType boxes_wizard_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_get_type (void) G_GNUC_CONST;
GType boxes_wizard_source_get_type (void) G_GNUC_CONST;
GType boxes_wizard_summary_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
GType boxes_wizard_window_get_type (void) G_GNUC_CONST;
GType boxes_media_manager_get_type (void) G_GNUC_CONST;
gpointer boxes_vm_creator_ref (gpointer instance);
void boxes_vm_creator_unref (gpointer instance);
GParamSpec* boxes_param_spec_vm_creator (const gchar* name,
                                         const gchar* nick,
                                         const gchar* blurb,
                                         GType object_type,
                                         GParamFlags flags);
void boxes_value_set_vm_creator (GValue* value,
                                 gpointer v_object);
void boxes_value_take_vm_creator (GValue* value,
                                  gpointer v_object);
gpointer boxes_value_get_vm_creator (const GValue* value);
GType boxes_vm_creator_get_type (void) G_GNUC_CONST;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD, BoxesWizardPrivate))
#define BOXES_WIZARD_DOWNLOAD_PROGRESS_SCALE 0.95
#define BOXES_WIZARD_PREPARE_PROGRESS_SCALE 0.05
static BoxesActivityProgress* boxes_wizard_create_preparation_progress (BoxesWizard* self);
static Block95Data* block95_data_ref (Block95Data* _data95_);
static void block95_data_unref (void * _userdata_);
static void __lambda136_ (Block95Data* _data95_);
static void ___lambda136__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void boxes_wizard_wizard_source_update_next (BoxesWizard* self);
BoxesWizardPage boxes_wizard_get_page (BoxesWizard* self);
GType boxes_source_page_get_type (void) G_GNUC_CONST;
BoxesSourcePage boxes_wizard_source_get_page (BoxesWizardSource* self);
GtkWidget* boxes_wizard_source_get_selected (BoxesWizardSource* self);
const gchar* boxes_wizard_source_get_uri (BoxesWizardSource* self);
static void boxes_wizard_prepare_for_location (BoxesWizard* self,
                                        const gchar* location,
                                        gboolean probing,
                                        BoxesActivityProgress* progress,
                                        GError** error);
void boxes_wizard_cleanup (BoxesWizard* self);
static void boxes_wizard_destroy_machine (BoxesWizard* self);
void boxes_wizard_source_cleanup (BoxesWizardSource* self);
static void boxes_wizard_review_data_free (gpointer _data);
static void boxes_wizard_review_async_ready_wrapper (GObject *source_object,
                                              GAsyncResult *res,
                                              void *user_data);
void boxes_wizard_review (BoxesWizard* self,
                          GAsyncReadyCallback _callback_,
                          gpointer _user_data_);
gboolean boxes_wizard_review_finish (BoxesWizard* self,
                                     GAsyncResult* _res_);
static gboolean boxes_wizard_review_co (BoxesWizardReviewData* _data_);
static void boxes_wizard_do_review_cancellable (BoxesWizard* self,
                                         GAsyncReadyCallback _callback_,
                                         gpointer _user_data_);
static gboolean boxes_wizard_do_review_cancellable_finish (BoxesWizard* self,
                                                    GAsyncResult* _res_);
static void boxes_wizard_review_ready (GObject* source_object,
                                GAsyncResult* _res_,
                                gpointer _user_data_);
static void boxes_wizard_create_data_free (gpointer _data);
static void boxes_wizard_create_async_ready_wrapper (GObject *source_object,
                                              GAsyncResult *res,
                                              void *user_data);
static void boxes_wizard_create (BoxesWizard* self,
                          GAsyncReadyCallback _callback_,
                          gpointer _user_data_);
static gboolean boxes_wizard_create_finish (BoxesWizard* self,
                                     GAsyncResult* _res_);
static gboolean boxes_wizard_create_co (BoxesWizardCreateData* _data_);
static Block96Data* block96_data_ref (Block96Data* _data96_);
static void block96_data_unref (void * _userdata_);
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
static BoxesLibvirtMachine* boxes_wizard_get_libvirt_machine (BoxesWizard* self);
static void ____lambda140_ (Block96Data* _data96_);
static void _____lambda140__g_object_notify (GObject* _sender,
                                      GParamSpec* pspec,
                                      gpointer self);
void boxes_vm_creator_launch_vm (BoxesVMCreator* self,
                                 BoxesLibvirtMachine* machine,
                                 gint64 access_last_time,
                                 GError** error);
GType boxes_installer_media_get_type (void) G_GNUC_CONST;
BoxesInstallerMedia* boxes_vm_creator_get_install_media (BoxesVMCreator* self);
void boxes_installer_media_clean_up_preparation_cache (BoxesInstallerMedia* self);
void boxes_wizard_source_set_uri (BoxesWizardSource* self,
                                  const gchar* value);
GType boxes_app_get_type (void) G_GNUC_CONST;
void boxes_app_add_collection_source (BoxesApp* self,
                                      BoxesCollectionSource* source,
                                      GAsyncReadyCallback _callback_,
                                      gpointer _user_data_);
void boxes_app_add_collection_source_finish (BoxesApp* self,
                                             GAsyncResult* _res_,
                                             GError** error);
GType boxes_libvirt_system_importer_get_type (void) G_GNUC_CONST;
BoxesLibvirtSystemImporter* boxes_wizard_source_get_libvirt_sys_importer (BoxesWizardSource* self);
void boxes_libvirt_system_importer_import (BoxesLibvirtSystemImporter* self,
                                           GAsyncReadyCallback _callback_,
                                           gpointer _user_data_);
void boxes_libvirt_system_importer_import_finish (BoxesLibvirtSystemImporter* self,
                                                  GAsyncResult* _res_);
void boxes_wizard_set_machine (BoxesWizard* self,
                               BoxesMachine* value);
static void boxes_wizard_prepare_for_installer (BoxesWizard* self,
                                         const gchar* path,
                                         BoxesActivityProgress* progress,
                                         GError** error);
static const gchar** _vala_array_dup6 (const gchar** self,
                                int length);
static void _vala_array_add21 (const gchar** * array,
                        int* length,
                        int* size,
                        const gchar* value);
static void boxes_wizard_prepare_for_uri (BoxesWizard* self,
                                   const gchar* uri_as_text,
                                   GError** error);
gboolean boxes_wizard_source_get_download_required (BoxesWizardSource* self);
void spice_validate_uri (const gchar* uri_as_text,
                         gint** port,
                         gint** tls_port,
                         GError** error);
gboolean boxes_app_has_broker_for_source_type (BoxesApp* self,
                                               const gchar* type);
static Block97Data* block97_data_ref (Block97Data* _data97_);
static void block97_data_unref (void * _userdata_);
void boxes_media_manager_create_installer_media_for_path (BoxesMediaManager* self,
                                                          const gchar* path,
                                                          GCancellable* cancellable,
                                                          GAsyncReadyCallback _callback_,
                                                          gpointer _user_data_);
BoxesInstallerMedia* boxes_media_manager_create_installer_media_for_path_finish (BoxesMediaManager* self,
                                                                                 GAsyncResult* _res_,
                                                                                 GError** error);
static void __lambda137_ (Block97Data* _data97_,
                   GObject* obj,
                   GAsyncResult* res);
static void boxes_wizard_on_installer_media_instantiated (BoxesWizard* self,
                                                   GAsyncResult* _result_,
                                                   BoxesActivityProgress* progress);
static void ___lambda137__gasync_ready_callback (GObject* source_object,
                                          GAsyncResult* res,
                                          gpointer self);
static void boxes_wizard_prepare_media (BoxesWizard* self,
                                 BoxesInstallerMedia* install_media,
                                 BoxesActivityProgress* progress,
                                 GAsyncReadyCallback _callback_,
                                 gpointer _user_data_);
static void boxes_wizard_prepare_media_finish (BoxesWizard* self,
                                        GAsyncResult* _res_);
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
BoxesNotificationbar* boxes_app_window_get_notificationbar (BoxesAppWindow* self);
GType boxes_notification_get_type (void) G_GNUC_CONST;
BoxesNotification* boxes_notificationbar_display_error (BoxesNotificationbar* self,
                                                        const gchar* message,
                                                        gint timeout);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
void boxes_wizard_set_page (BoxesWizard* self,
                            BoxesWizardPage value);
static void boxes_wizard_prepare_media_data_free (gpointer _data);
static void boxes_wizard_prepare_media_async_ready_wrapper (GObject *source_object,
                                                     GAsyncResult *res,
                                                     void *user_data);
static gboolean boxes_wizard_prepare_media_co (BoxesWizardPrepareMediaData* _data_);
void boxes_downloader_fetch_os_logo (GtkImage* image,
                                     OsinfoOs* os,
                                     gint size,
                                     GAsyncReadyCallback _callback_,
                                     gpointer _user_data_);
void boxes_downloader_fetch_os_logo_finish (GAsyncResult* _res_);
void boxes_installer_media_prepare (BoxesInstallerMedia* self,
                                    BoxesActivityProgress* progress,
                                    GCancellable* cancellable,
                                    GAsyncReadyCallback _callback_,
                                    gpointer _user_data_);
gboolean boxes_installer_media_prepare_finish (BoxesInstallerMedia* self,
                                               GAsyncResult* _res_);
static void boxes_wizard_prepare_media_ready (GObject* source_object,
                                       GAsyncResult* _res_,
                                       gpointer _user_data_);
BoxesVMCreator* boxes_installer_media_get_vm_creator (BoxesInstallerMedia* self);
static gboolean boxes_wizard_prepare (BoxesWizard* self,
                               BoxesActivityProgress* progress);
static void boxes_wizard_download_media (BoxesWizard* self,
                                  const gchar* uri,
                                  BoxesActivityProgress* progress,
                                  GAsyncReadyCallback _callback_,
                                  gpointer _user_data_);
static void boxes_wizard_download_media_finish (BoxesWizard* self,
                                         GAsyncResult* _res_);
BoxesInstallerMedia* boxes_wizard_source_get_install_media (BoxesWizardSource* self);
static gboolean boxes_wizard_setup (BoxesWizard* self);
void boxes_installer_media_populate_setup_box (BoxesInstallerMedia* self,
                                               GtkBox* setup_box);
static void __lambda138_ (BoxesWizard* self);
gboolean boxes_installer_media_get_ready_to_create (BoxesInstallerMedia* self);
static void ___lambda138__boxes_installer_media_user_wants_to_create (BoxesInstallerMedia* _sender,
                                                               gpointer self);
static void boxes_wizard_do_review_cancellable_data_free (gpointer _data);
static void boxes_wizard_do_review_cancellable_async_ready_wrapper (GObject *source_object,
                                                             GAsyncResult *res,
                                                             void *user_data);
static gboolean boxes_wizard_do_review_cancellable_co (BoxesWizardDoReviewCancellableData* _data_);
void boxes_wizard_summary_clear (BoxesWizardSummary* self);
GType boxes_remote_machine_get_type (void) G_GNUC_CONST;
BoxesRemoteMachine* boxes_remote_machine_new (BoxesCollectionSource* source,
                                              GError** error);
BoxesRemoteMachine* boxes_remote_machine_construct (GType object_type,
                                                    BoxesCollectionSource* source,
                                                    GError** error);
void boxes_vm_creator_create_vm (BoxesVMCreator* self,
                                 GCancellable* cancellable,
                                 GAsyncReadyCallback _callback_,
                                 gpointer _user_data_);
BoxesLibvirtMachine* boxes_vm_creator_create_vm_finish (BoxesVMCreator* self,
                                                        GAsyncResult* _res_,
                                                        GError** error);
static void boxes_wizard_do_review_cancellable_ready (GObject* source_object,
                                               GAsyncResult* _res_,
                                               gpointer _user_data_);
void boxes_wizard_summary_add_property (BoxesWizardSummary* self,
                                        const gchar* name,
                                        const gchar* value);
GList* boxes_installer_media_get_vm_properties (BoxesInstallerMedia* self);
static void _boxes_pair_unref0_ (gpointer var);
static inline void _g_list_free__boxes_pair_unref0_ (GList* self);
static Block98Data* block98_data_ref (Block98Data* _data98_);
static void block98_data_unref (void * _userdata_);
GType boxes_collection_get_type (void) G_GNUC_CONST;
static void _____lambda97_ (Block98Data* _data98_,
                     GError** error);
GVirDomain* boxes_libvirt_machine_get_domain (BoxesLibvirtMachine* self);
static void ______lambda97__boxes_async_launcher_run_in_thread_func (gpointer self,
                                                              GError** error);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
gboolean boxes_libvirt_machine_get_importing (BoxesLibvirtMachine* self);
GVirStorageVol* boxes_libvirt_machine_get_storage_volume (BoxesLibvirtMachine* self);
static void _vala_GVirStorageVolInfo_free (GVirStorageVolInfo* self);
GVirConfigDomain* boxes_libvirt_machine_get_domain_config (BoxesLibvirtMachine* self);
gchar* boxes_libvirt_system_importer_get_wizard_review_label (BoxesLibvirtSystemImporter* self);
void boxes_wizard_summary_append_customize_button (BoxesWizardSummary* self,
                                                   BoxesWizardSummaryCustomizeFunc customize_func,
                                                   void* customize_func_target);
static void ___lambda98_ (BoxesWizard* self);
void boxes_wizard_window_show_customization_page (BoxesWizardWindow* self,
                                                  BoxesLibvirtMachine* machine);
static void ____lambda98__boxes_wizard_summary_customize_func (gpointer self);
static gboolean boxes_wizard_skip_page (BoxesWizard* self,
                                 BoxesWizardPage page);
gboolean boxes_installer_media_get_need_user_input_for_vm_creation (BoxesInstallerMedia* self);
gboolean boxes_installer_media_get_live (BoxesInstallerMedia* self);
static void boxes_wizard_download_media_data_free (gpointer _data);
static void boxes_wizard_download_media_async_ready_wrapper (GObject *source_object,
                                                      GAsyncResult *res,
                                                      void *user_data);
static gboolean boxes_wizard_download_media_co (BoxesWizardDownloadMediaData* _data_);
void boxes_downloader_fetch_media (const gchar* uri,
                                   BoxesActivityProgress* progress,
                                   GCancellable* cancellable,
                                   GAsyncReadyCallback _callback_,
                                   gpointer _user_data_);
gchar* boxes_downloader_fetch_media_finish (GAsyncResult* _res_,
                                            GError** error);
static void boxes_wizard_download_media_ready (GObject* source_object,
                                        GAsyncResult* _res_,
                                        gpointer _user_data_);
static void boxes_wizard_prepare_downloaded_media (BoxesWizard* self,
                                            const gchar* cache_path,
                                            BoxesActivityProgress* progress);
void boxes_wizard_setup_ui (BoxesWizard* self,
                            BoxesAppWindow* window,
                            BoxesWizardWindow* wizard_window);
GType boxes_wizard_toolbar_get_type (void) G_GNUC_CONST;
void boxes_wizard_cancel (BoxesWizard* self);
static void _boxes_wizard_cancel_gtk_button_clicked (GtkButton* _sender,
                                              gpointer self);
static void __lambda142_ (BoxesWizard* self);
static void ___lambda142__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda143_ (BoxesWizard* self);
static void ___lambda143__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda144_ (BoxesWizard* self);
static void ___lambda144__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
void boxes_wizard_source_setup_ui (BoxesWizardSource* self,
                                   BoxesAppWindow* window);
void boxes_wizard_open_with_uri (BoxesWizard* self,
                                 const gchar* uri,
                                 gboolean skip_review_for_live);
void boxes_ui_set_state (BoxesUI* self,
                         BoxesUIState new_state);
void boxes_wizard_source_set_page (BoxesWizardSource* self,
                                   BoxesSourcePage value);
static void boxes_wizard_ui_state_changed (BoxesWizard* self);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
BoxesMachine* boxes_wizard_get_machine (BoxesWizard* self);
void boxes_app_delete_machine (BoxesApp* self,
                               BoxesMachine* machine,
                               gboolean by_user);
BoxesWizard* boxes_wizard_new (void);
BoxesWizard* boxes_wizard_construct (GType object_type);
static void _boxes_wizard_page_____lambda139_ (BoxesWizard* self,
                                        GObject* obj,
                                        GAsyncResult* _result_);
static void __boxes_wizard_page_____lambda139__gasync_ready_callback (GObject* source_object,
                                                               GAsyncResult* res,
                                                               gpointer self);
static void _boxes_wizard_page_____lambda141_ (BoxesWizard* self,
                                        GObject* obj,
                                        GAsyncResult* _result_);
static void __boxes_wizard_page_____lambda141__gasync_ready_callback (GObject* source_object,
                                                               GAsyncResult* res,
                                                               gpointer self);
void boxes_wizard_toolbar_set_title_for_page (BoxesWizardToolbar* self,
                                              BoxesWizardPage page);
static GObject * boxes_wizard_constructor (GType type,
                                    guint n_construct_properties,
                                    GObjectConstructParam * construct_properties);
BoxesMediaManager* boxes_media_manager_get_instance (void);
static void _boxes_wizard_wizard_source_update_next_g_object_notify (GObject* _sender,
                                                              GParamSpec* pspec,
                                                              gpointer self);
static void _boxes_wizard_wizard_source_update_next_gtk_editable_changed (GtkEditable* _sender,
                                                                   gpointer self);
static void _boxes_wizard_ui_state_changed_g_object_notify (GObject* _sender,
                                                     GParamSpec* pspec,
                                                     gpointer self);
static void _boxes_wizard___lambda145_ (BoxesWizard* self);
static void __boxes_wizard___lambda145__boxes_wizard_source_activated (BoxesWizardSource* _sender,
                                                                gpointer self);
static void boxes_wizard_finalize (GObject * obj);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
static void _vala_boxes_wizard_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_set_property (GObject * object,
                                      guint property_id,
                                      const GValue * value,
                                      GParamSpec * pspec);
#define BOXES_WIZARD_SUMMARY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_SUMMARY, BoxesWizardSummaryPrivate))
static Block99Data* block99_data_ref (Block99Data* _data99_);
static void block99_data_unref (void * _userdata_);
static void __lambda71_ (Block99Data* _data99_);
static void ___lambda71__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
BoxesWizardSummary* boxes_wizard_summary_new (void);
BoxesWizardSummary* boxes_wizard_summary_construct (GType object_type);
static GObject * boxes_wizard_summary_constructor (GType type,
                                            guint n_construct_properties,
                                            GObjectConstructParam * construct_properties);
static void boxes_wizard_summary_finalize (GObject * obj);

static const gchar* BOXES_WIZARD_page_names[4] = {"source", "preparation", "setup", "review"};
extern const gchar* BOXES_INSTALLED_MEDIA_supported_extensions[16];

GType
boxes_wizard_page_get_type (void)
{
	static volatile gsize boxes_wizard_page_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_page_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_WIZARD_PAGE_SOURCE, "BOXES_WIZARD_PAGE_SOURCE", "source"}, {BOXES_WIZARD_PAGE_PREPARATION, "BOXES_WIZARD_PAGE_PREPARATION", "preparation"}, {BOXES_WIZARD_PAGE_SETUP, "BOXES_WIZARD_PAGE_SETUP", "setup"}, {BOXES_WIZARD_PAGE_REVIEW, "BOXES_WIZARD_PAGE_REVIEW", "review"}, {BOXES_WIZARD_PAGE_LAST, "BOXES_WIZARD_PAGE_LAST", "last"}, {0, NULL, NULL}};
		GType boxes_wizard_page_type_id;
		boxes_wizard_page_type_id = g_enum_register_static ("BoxesWizardPage", values);
		g_once_init_leave (&boxes_wizard_page_type_id__volatile, boxes_wizard_page_type_id);
	}
	return boxes_wizard_page_type_id__volatile;
}


static Block95Data*
block95_data_ref (Block95Data* _data95_)
{
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_atomic_int_inc (&_data95_->_ref_count_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return _data95_;
#line 1169 "wizard.c"
}


static void
block95_data_unref (void * _userdata_)
{
	Block95Data* _data95_;
	_data95_ = (Block95Data*) _userdata_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_atomic_int_dec_and_test (&_data95_->_ref_count_)) {
#line 1180 "wizard.c"
		BoxesWizard* self;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self = _data95_->self;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data95_->progress);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (self);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_slice_free (Block95Data, _data95_);
#line 1190 "wizard.c"
	}
}


static void
__lambda136_ (Block95Data* _data95_)
{
	BoxesWizard* self;
	gdouble _tmp0_;
	gdouble _tmp1_;
	GtkProgressBar* _tmp2_;
	gdouble _tmp3_;
	gdouble _tmp4_;
#line 147 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = _data95_->self;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_activity_progress_get_progress (_data95_->progress);
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _tmp0_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = self->priv->prep_progress;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = gtk_progress_bar_get_fraction (_tmp2_);
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = _tmp3_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if ((_tmp1_ - _tmp4_) >= 0.01) {
#line 1218 "wizard.c"
		GtkProgressBar* _tmp5_;
		gdouble _tmp6_;
		gdouble _tmp7_;
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp5_ = self->priv->prep_progress;
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp6_ = boxes_activity_progress_get_progress (_data95_->progress);
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp7_ = _tmp6_;
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		gtk_progress_bar_set_fraction (_tmp5_, _tmp7_);
#line 1230 "wizard.c"
	}
}


static void
___lambda136__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
#line 147 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	__lambda136_ (self);
#line 1242 "wizard.c"
}


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


static BoxesActivityProgress*
boxes_wizard_create_preparation_progress (BoxesWizard* self)
{
	BoxesActivityProgress* result = NULL;
	Block95Data* _data95_;
	BoxesActivityProgress* _tmp0_;
	GtkProgressBar* _tmp1_;
	BoxesActivityProgress* _tmp2_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data95_ = g_slice_new0 (Block95Data);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data95_->_ref_count_ = 1;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data95_->self = g_object_ref (self);
#line 146 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_activity_progress_new ();
#line 146 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data95_->progress = _tmp0_;
#line 147 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_data ((GObject*) _data95_->progress, "notify::progress", (GCallback) ___lambda136__g_object_notify, block95_data_ref (_data95_), (GClosureNotify) block95_data_unref, 0);
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->prep_progress;
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_activity_progress_set_progress (_data95_->progress, (gdouble) 0);
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_progress_bar_set_fraction (_tmp1_, (gdouble) 0);
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _g_object_ref0 (_data95_->progress);
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _tmp2_;
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	block95_data_unref (_data95_);
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data95_ = NULL;
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 1293 "wizard.c"
}


static void
boxes_wizard_wizard_source_update_next (BoxesWizard* self)
{
	BoxesWizardPage _tmp0_;
	BoxesWizardPage _tmp1_;
	GtkButton* _tmp2_;
	BoxesWizardSource* _tmp3_;
	BoxesSourcePage _tmp4_;
	BoxesSourcePage _tmp5_;
	GError * _inner_error_ = NULL;
#line 156 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_wizard_get_page (self);
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _tmp0_;
#line 157 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp1_ != BOXES_WIZARD_PAGE_SOURCE) {
#line 158 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 1317 "wizard.c"
	}
#line 160 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = self->priv->next_button;
#line 160 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp2_, FALSE);
#line 162 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = self->priv->wizard_source;
#line 162 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = boxes_wizard_source_get_page (_tmp3_);
#line 162 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = _tmp4_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (_tmp5_) {
#line 162 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_SOURCE_PAGE_MAIN:
#line 1333 "wizard.c"
		{
			GtkButton* _tmp6_;
			BoxesWizardSource* _tmp7_;
			GtkWidget* _tmp8_;
			GtkWidget* _tmp9_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp6_ = self->priv->next_button;
#line 164 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp7_ = self->priv->wizard_source;
#line 164 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp8_ = boxes_wizard_source_get_selected (_tmp7_);
#line 164 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp9_ = _tmp8_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, _tmp9_ != NULL);
#line 165 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_object_unref0 (self->priv->source);
#line 165 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			self->priv->source = NULL;
#line 166 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			break;
#line 1355 "wizard.c"
		}
#line 162 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_SOURCE_PAGE_URL:
#line 1359 "wizard.c"
		{
			GtkButton* _tmp10_;
			BoxesWizardSource* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			gint _tmp14_;
			gint _tmp15_;
#line 169 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp10_ = self->priv->next_button;
#line 169 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_widget_set_sensitive ((GtkWidget*) _tmp10_, FALSE);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp11_ = self->priv->wizard_source;
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp12_ = boxes_wizard_source_get_uri (_tmp11_);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp13_ = _tmp12_;
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp14_ = strlen (_tmp13_);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp15_ = _tmp14_;
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_tmp15_ == 0) {
#line 171 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 1385 "wizard.c"
			}
			{
				BoxesWizardSource* _tmp16_;
				const gchar* _tmp17_;
				const gchar* _tmp18_;
				GtkButton* _tmp19_;
#line 174 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp16_ = self->priv->wizard_source;
#line 174 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp17_ = boxes_wizard_source_get_uri (_tmp16_);
#line 174 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp18_ = _tmp17_;
#line 174 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_wizard_prepare_for_location (self, _tmp18_, TRUE, NULL, &_inner_error_);
#line 174 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1402 "wizard.c"
					goto __catch129_g_error;
				}
#line 176 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp19_ = self->priv->next_button;
#line 176 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_widget_set_sensitive ((GtkWidget*) _tmp19_, TRUE);
#line 1409 "wizard.c"
			}
			goto __finally129;
			__catch129_g_error:
			{
				GError* _error_ = NULL;
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_error_ = _inner_error_;
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_inner_error_ = NULL;
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_error_free0 (_error_);
#line 1421 "wizard.c"
			}
			__finally129:
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard.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 173 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_clear_error (&_inner_error_);
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 1432 "wizard.c"
			}
#line 181 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			break;
#line 1436 "wizard.c"
		}
		default:
		{
#line 184 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_warn_if_reached ();
#line 185 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			break;
#line 1444 "wizard.c"
		}
	}
}


void
boxes_wizard_cleanup (BoxesWizard* self)
{
	GCancellable* _tmp0_;
	BoxesWizardSource* _tmp1_;
#line 204 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 205 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->prepare_cancellable;
#line 205 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_cancellable_cancel (_tmp0_);
#line 207 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_destroy_machine (self);
#line 208 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_boxes_vm_creator_unref0 (self->priv->vm_creator);
#line 208 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->vm_creator = NULL;
#line 209 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->source);
#line 209 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->source = NULL;
#line 210 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->wizard_source;
#line 210 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_source_cleanup (_tmp1_);
#line 1475 "wizard.c"
}


static void
boxes_wizard_review_data_free (gpointer _data)
{
	BoxesWizardReviewData* _data_;
	_data_ = _data;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_slice_free (BoxesWizardReviewData, _data_);
#line 1488 "wizard.c"
}


static void
boxes_wizard_review_async_ready_wrapper (GObject *source_object,
                                         GAsyncResult *res,
                                         void *user_data)
{
	BoxesWizardReviewData* _task_data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_task_data_->_callback_ != NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 1504 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_->_task_complete_ = TRUE;
#line 1508 "wizard.c"
}


void
boxes_wizard_review (BoxesWizard* self,
                     GAsyncReadyCallback _callback_,
                     gpointer _user_data_)
{
	BoxesWizardReviewData* _data_;
	BoxesWizard* _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_slice_new0 (BoxesWizardReviewData);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_callback_ = _callback_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, boxes_wizard_review_async_ready_wrapper, _user_data_);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_callback_ == NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_task_complete_ = TRUE;
#line 1529 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_wizard_review_data_free);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self = _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_review_co (_data_);
#line 1539 "wizard.c"
}


gboolean
boxes_wizard_review_finish (BoxesWizard* self,
                            GAsyncResult* _res_)
{
	gboolean result;
	BoxesWizardReviewData* _data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _data_->result;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 1555 "wizard.c"
}


static void
boxes_wizard_review_ready (GObject* source_object,
                           GAsyncResult* _res_,
                           gpointer _user_data_)
{
	BoxesWizardReviewData* _data_;
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = _user_data_;
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_source_object_ = source_object;
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_res_ = _res_;
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_task_complete_ = TRUE;
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_review_co (_data_);
#line 1575 "wizard.c"
}


static gboolean
boxes_wizard_review_co (BoxesWizardReviewData* _data_)
{
#line 213 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (_data_->_state_) {
#line 213 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 0:
#line 1586 "wizard.c"
		goto _state_0;
#line 213 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 1:
#line 1590 "wizard.c"
		goto _state_1;
		default:
#line 213 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_assert_not_reached ();
#line 1595 "wizard.c"
	}
	_state_0:
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp0_ = _data_->self->priv->review_cancellable;
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (_data_->_tmp0_ == NULL, FALSE);
#line 217 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp1_ = g_cancellable_new ();
#line 217 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->self->priv->review_cancellable);
#line 217 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self->priv->review_cancellable = _data_->_tmp1_;
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_state_ = 1;
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_do_review_cancellable (_data_->self, boxes_wizard_review_ready, _data_);
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return FALSE;
#line 1614 "wizard.c"
	_state_1:
#line 218 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_result_ = boxes_wizard_do_review_cancellable_finish (_data_->self, _data_->_res_);
#line 219 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->self->priv->review_cancellable);
#line 219 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self->priv->review_cancellable = NULL;
#line 221 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self->priv->skip_review_for_live = FALSE;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->result = _data_->_result_;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_state_ != 0) {
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1634 "wizard.c"
		}
	}
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_unref (_data_->_async_result);
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return FALSE;
#line 1641 "wizard.c"
}


static void
boxes_wizard_create_data_free (gpointer _data)
{
	BoxesWizardCreateData* _data_;
	_data_ = _data;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_slice_free (BoxesWizardCreateData, _data_);
#line 1654 "wizard.c"
}


static void
boxes_wizard_create_async_ready_wrapper (GObject *source_object,
                                         GAsyncResult *res,
                                         void *user_data)
{
	BoxesWizardCreateData* _task_data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_task_data_->_callback_ != NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 1670 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_->_task_complete_ = TRUE;
#line 1674 "wizard.c"
}


static void
boxes_wizard_create (BoxesWizard* self,
                     GAsyncReadyCallback _callback_,
                     gpointer _user_data_)
{
	BoxesWizardCreateData* _data_;
	BoxesWizard* _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_slice_new0 (BoxesWizardCreateData);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_callback_ = _callback_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, boxes_wizard_create_async_ready_wrapper, _user_data_);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_callback_ == NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_task_complete_ = TRUE;
#line 1695 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_wizard_create_data_free);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self = _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_create_co (_data_);
#line 1705 "wizard.c"
}


static gboolean
boxes_wizard_create_finish (BoxesWizard* self,
                            GAsyncResult* _res_)
{
	gboolean result;
	BoxesWizardCreateData* _data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _data_->result;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 1721 "wizard.c"
}


static Block96Data*
block96_data_ref (Block96Data* _data96_)
{
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_atomic_int_inc (&_data96_->_ref_count_);
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return _data96_;
#line 1732 "wizard.c"
}


static void
block96_data_unref (void * _userdata_)
{
	Block96Data* _data96_;
	_data96_ = (Block96Data*) _userdata_;
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_atomic_int_dec_and_test (&_data96_->_ref_count_)) {
#line 1743 "wizard.c"
		BoxesWizard* self;
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self = _data96_->self;
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (self);
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_slice_free (Block96Data, _data96_);
#line 1751 "wizard.c"
	}
}


static void
____lambda140_ (Block96Data* _data96_)
{
	BoxesWizard* self;
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = _data96_->self;
#line 231 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_create_co (_data96_->_async_data_);
#line 1764 "wizard.c"
}


static void
_____lambda140__g_object_notify (GObject* _sender,
                                 GParamSpec* pspec,
                                 gpointer self)
{
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	____lambda140_ (self);
#line 1775 "wizard.c"
}


static gboolean
boxes_wizard_create_co (BoxesWizardCreateData* _data_)
{
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (_data_->_state_) {
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 0:
#line 1786 "wizard.c"
		goto _state_0;
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 1:
#line 1790 "wizard.c"
		goto _state_1;
		default:
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_assert_not_reached ();
#line 1795 "wizard.c"
	}
	_state_0:
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_data96_ = g_slice_new0 (Block96Data);
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_data96_->_ref_count_ = 1;
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_data96_->self = g_object_ref (_data_->self);
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_data96_->_async_data_ = _data_;
#line 226 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp0_ = _data_->self->priv->vm_creator;
#line 226 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_tmp0_ != NULL) {
#line 227 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp1_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 227 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp2_ = _data_->_tmp1_;
#line 227 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp2_ == NULL) {
#line 228 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp3_ = _data_->self->priv->review_cancellable;
#line 228 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_return_val_if_fail (_data_->_tmp3_ != NULL, FALSE);
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp4_ = g_signal_connect_data ((GObject*) _data_->self, "notify::machine", (GCallback) _____lambda140__g_object_notify, block96_data_ref (_data_->_data96_), (GClosureNotify) block96_data_unref, 0);
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->wait = _data_->_tmp4_;
#line 233 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_state_ = 1;
#line 233 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			return FALSE;
#line 1828 "wizard.c"
			_state_1:
			;
#line 234 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp5_ = _data_->wait;
#line 234 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_signal_handler_disconnect ((GObject*) _data_->self, _data_->_tmp5_);
#line 235 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp6_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 235 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 235 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_data_->_tmp7_ == NULL) {
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->result = FALSE;
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				block96_data_unref (_data_->_data96_);
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_data96_ = NULL;
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (_data_->_state_ != 0) {
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					while (_data_->_task_complete_ != TRUE) {
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1855 "wizard.c"
					}
				}
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_object_unref (_data_->_async_result);
#line 236 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return FALSE;
#line 1862 "wizard.c"
			}
		}
#line 238 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp8_ = _data_->self->priv->next_button;
#line 238 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _data_->_tmp8_, FALSE);
#line 1869 "wizard.c"
		{
#line 240 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp9_ = _data_->self->priv->vm_creator;
#line 240 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp10_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 240 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp11_ = _data_->_tmp10_;
#line 240 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_vm_creator_launch_vm (_data_->_tmp9_, _data_->_tmp11_, (gint64) -1, &_data_->_inner_error_);
#line 240 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1881 "wizard.c"
				goto __catch130_g_error;
			}
		}
		goto __finally130;
		__catch130_g_error:
		{
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_error_ = _data_->_inner_error_;
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_inner_error_ = NULL;
#line 242 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp12_ = _data_->_error_;
#line 242 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp13_ = _data_->_tmp12_->message;
#line 242 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_warning ("wizard.vala:242: %s", _data_->_tmp13_);
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->result = FALSE;
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_error_free0 (_data_->_error_);
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			block96_data_unref (_data_->_data96_);
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_data96_ = NULL;
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_data_->_state_ != 0) {
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				while (_data_->_task_complete_ != TRUE) {
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1914 "wizard.c"
				}
			}
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_object_unref (_data_->_async_result);
#line 244 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			return FALSE;
#line 1921 "wizard.c"
		}
		__finally130:
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			block96_data_unref (_data_->_data96_);
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_data96_ = NULL;
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_clear_error (&_data_->_inner_error_);
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_object_unref (_data_->_async_result);
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			return FALSE;
#line 1938 "wizard.c"
		}
#line 247 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp14_ = _data_->self->priv->vm_creator;
#line 247 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp15_ = boxes_vm_creator_get_install_media (_data_->_tmp14_);
#line 247 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp16_ = _data_->_tmp15_;
#line 247 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_installer_media_clean_up_preparation_cache (_data_->_tmp16_);
#line 248 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_boxes_vm_creator_unref0 (_data_->self->priv->vm_creator);
#line 248 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->self->priv->vm_creator = NULL;
#line 249 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp17_ = _data_->self->priv->wizard_source;
#line 249 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_source_set_uri (_data_->_tmp17_, "");
#line 250 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp18_ = _data_->self->priv->wizard_source;
#line 250 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp18_->libvirt_sys_import = FALSE;
#line 1960 "wizard.c"
	} else {
#line 251 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp19_ = _data_->self->priv->source;
#line 251 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp19_ != NULL) {
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp20_ = _data_->self->priv->source;
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_iconfig_save ((BoxesIConfig*) _data_->_tmp20_);
#line 253 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp21_ = boxes_app_app;
#line 253 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp22_ = _data_->self->priv->source;
#line 253 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_app_add_collection_source (_data_->_tmp21_, _data_->_tmp22_, NULL, NULL);
#line 1976 "wizard.c"
		} else {
#line 254 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp23_ = _data_->self->priv->wizard_source;
#line 254 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp24_ = _data_->_tmp23_->libvirt_sys_import;
#line 254 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_data_->_tmp24_) {
#line 255 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp25_ = _data_->self->priv->wizard_source;
#line 255 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp26_ = boxes_wizard_source_get_libvirt_sys_importer (_data_->_tmp25_);
#line 255 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp27_ = _data_->_tmp26_;
#line 255 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_libvirt_system_importer_import (_data_->_tmp27_, NULL, NULL);
#line 1992 "wizard.c"
			} else {
#line 257 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_return_val_if_reached (FALSE);
#line 1996 "wizard.c"
			}
		}
	}
#line 260 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_machine (_data_->self, NULL);
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->result = TRUE;
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	block96_data_unref (_data_->_data96_);
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_data96_ = NULL;
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_state_ != 0) {
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2016 "wizard.c"
		}
	}
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_unref (_data_->_async_result);
#line 261 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return FALSE;
#line 2023 "wizard.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 2043 "wizard.c"
}


static const gchar**
_vala_array_dup6 (const gchar** self,
                  int length)
{
#line 280 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return g_memdup (self, length * sizeof (const gchar*));
#line 2053 "wizard.c"
}


static void
_vala_array_add21 (const gchar** * array,
                   int* length,
                   int* size,
                   const gchar* value)
{
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if ((*length) == (*size)) {
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		*array = g_renew (const gchar*, *array, (*size) + 1);
#line 2069 "wizard.c"
	}
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	(*array)[(*length)++] = value;
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	(*array)[*length] = NULL;
#line 2075 "wizard.c"
}


static void
boxes_wizard_prepare_for_location (BoxesWizard* self,
                                   const gchar* location,
                                   gboolean probing,
                                   BoxesActivityProgress* progress,
                                   GError** error)
{
	GFile* _tmp1_ = NULL;
	GFile* file = NULL;
	GFile* _tmp4_;
	gchar* path = NULL;
	GFile* _tmp5_;
	gchar* _tmp6_;
	gboolean _tmp7_ = FALSE;
	const gchar* _tmp8_;
	GFile* _tmp31_;
	gchar* _tmp32_;
	gchar* _tmp33_;
	GError * _inner_error_ = NULL;
#line 264 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 264 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (location != NULL);
#line 264 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_vala_return_if_fail (probing || (progress != NULL), "probing || progress != null");
#line 269 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_strcmp0 (location, "") == 0) {
#line 2106 "wizard.c"
		GError* _tmp0_;
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp0_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _ ("Empty location"));
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_inner_error_ = _tmp0_;
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_propagate_error (error, _inner_error_);
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 2116 "wizard.c"
	}
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (string_contains (location, "://")) {
#line 2120 "wizard.c"
		GFile* _tmp2_;
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = g_file_new_for_uri (location);
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp1_);
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp1_ = _tmp2_;
#line 2128 "wizard.c"
	} else {
		GFile* _tmp3_;
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = g_file_new_for_path (location);
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp1_);
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp1_ = _tmp3_;
#line 2137 "wizard.c"
	}
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = _g_object_ref0 (_tmp1_);
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	file = _tmp4_;
#line 273 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = file;
#line 273 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp6_ = g_file_get_path (_tmp5_);
#line 273 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	path = _tmp6_;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp8_ = path;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp8_ != NULL) {
#line 2153 "wizard.c"
		gboolean _tmp9_ = FALSE;
		GFile* _tmp10_;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp10_ = file;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (g_file_has_uri_scheme (_tmp10_, "file")) {
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp9_ = TRUE;
#line 2162 "wizard.c"
		} else {
			GFile* _tmp11_;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp11_ = file;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp9_ = g_file_has_uri_scheme (_tmp11_, "smb");
#line 2169 "wizard.c"
		}
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp7_ = _tmp9_;
#line 2173 "wizard.c"
	} else {
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp7_ = FALSE;
#line 2177 "wizard.c"
	}
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp7_) {
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (!probing) {
#line 2183 "wizard.c"
			const gchar* _tmp12_;
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp12_ = path;
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_wizard_prepare_for_installer (self, _tmp12_, progress, &_inner_error_);
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_propagate_error (error, _inner_error_);
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (path);
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (file);
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (_tmp1_);
#line 277 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2201 "wizard.c"
			}
		} else {
			gboolean supported = FALSE;
			const gchar** extensions = NULL;
			const gchar** _tmp13_;
			gint _tmp13__length1;
			gint extensions_length1;
			gint _extensions_size_;
			const gchar** _tmp14_;
			gint _tmp14__length1;
			const gchar** _tmp15_;
			gint _tmp15__length1;
			gboolean _tmp22_;
			GFileInfo* info = NULL;
			GFile* _tmp24_;
			GFileInfo* _tmp25_;
			GFileType file_type = 0;
			GFileInfo* _tmp26_;
			gboolean _tmp27_ = FALSE;
			GFileType _tmp28_;
#line 279 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			supported = FALSE;
#line 280 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp13_ = (BOXES_INSTALLED_MEDIA_supported_extensions != NULL) ? _vala_array_dup6 (BOXES_INSTALLED_MEDIA_supported_extensions, G_N_ELEMENTS (BOXES_INSTALLED_MEDIA_supported_extensions)) : ((gpointer) BOXES_INSTALLED_MEDIA_supported_extensions);
#line 280 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp13__length1 = G_N_ELEMENTS (BOXES_INSTALLED_MEDIA_supported_extensions);
#line 280 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			extensions = _tmp13_;
#line 280 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			extensions_length1 = _tmp13__length1;
#line 280 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_extensions_size_ = extensions_length1;
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp14_ = extensions;
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp14__length1 = extensions_length1;
#line 281 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_vala_array_add21 (&extensions, &extensions_length1, &_extensions_size_, "iso");
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp15_ = extensions;
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp15__length1 = extensions_length1;
#line 2244 "wizard.c"
			{
				const gchar** extension_collection = NULL;
				gint extension_collection_length1 = 0;
				gint _extension_collection_size_ = 0;
				gint extension_it = 0;
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				extension_collection = _tmp15_;
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				extension_collection_length1 = _tmp15__length1;
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				for (extension_it = 0; extension_it < _tmp15__length1; extension_it = extension_it + 1) {
#line 2256 "wizard.c"
					const gchar* extension = NULL;
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					extension = extension_collection[extension_it];
#line 2260 "wizard.c"
					{
						gchar* path_casefolded = NULL;
						const gchar* _tmp16_;
						gchar* _tmp17_;
						gchar* extension_casefolded = NULL;
						const gchar* _tmp18_;
						gchar* _tmp19_;
						const gchar* _tmp20_;
						const gchar* _tmp21_;
#line 283 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp16_ = path;
#line 283 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp17_ = g_utf8_casefold (_tmp16_, (gssize) -1);
#line 283 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						path_casefolded = _tmp17_;
#line 284 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp18_ = extension;
#line 284 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp19_ = g_utf8_casefold (_tmp18_, (gssize) -1);
#line 284 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						extension_casefolded = _tmp19_;
#line 286 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp20_ = path_casefolded;
#line 286 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp21_ = extension_casefolded;
#line 286 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						if (g_str_has_suffix (_tmp20_, _tmp21_)) {
#line 287 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							supported = TRUE;
#line 289 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_g_free0 (extension_casefolded);
#line 289 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_g_free0 (path_casefolded);
#line 289 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							break;
#line 2296 "wizard.c"
						}
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_g_free0 (extension_casefolded);
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_g_free0 (path_casefolded);
#line 2302 "wizard.c"
					}
				}
			}
#line 292 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp22_ = supported;
#line 292 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (!_tmp22_) {
#line 2310 "wizard.c"
				GError* _tmp23_;
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp23_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _ ("Unsupported file"));
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_inner_error_ = _tmp23_;
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_propagate_error (error, _inner_error_);
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				extensions = (g_free (extensions), NULL);
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (path);
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (file);
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (_tmp1_);
#line 293 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2328 "wizard.c"
			}
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp24_ = file;
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp25_ = g_file_query_info (_tmp24_, G_FILE_ATTRIBUTE_STANDARD_TYPE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			info = _tmp25_;
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_propagate_error (error, _inner_error_);
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				extensions = (g_free (extensions), NULL);
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (path);
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (file);
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (_tmp1_);
#line 295 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2350 "wizard.c"
			}
#line 296 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp26_ = info;
#line 296 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			file_type = g_file_info_get_file_type (_tmp26_);
#line 298 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp28_ = file_type;
#line 298 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_tmp28_ != G_FILE_TYPE_REGULAR) {
#line 2360 "wizard.c"
				GFileType _tmp29_;
#line 298 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp29_ = file_type;
#line 298 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp27_ = _tmp29_ != G_FILE_TYPE_SYMBOLIC_LINK;
#line 2366 "wizard.c"
			} else {
#line 298 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp27_ = FALSE;
#line 2370 "wizard.c"
			}
#line 298 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_tmp27_) {
#line 2374 "wizard.c"
				GError* _tmp30_;
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp30_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _ ("Invalid file"));
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_inner_error_ = _tmp30_;
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_propagate_error (error, _inner_error_);
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (info);
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				extensions = (g_free (extensions), NULL);
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (path);
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (file);
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (_tmp1_);
#line 299 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2394 "wizard.c"
			}
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_object_unref0 (info);
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			extensions = (g_free (extensions), NULL);
#line 2400 "wizard.c"
		}
#line 302 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (path);
#line 302 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (file);
#line 302 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp1_);
#line 302 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 2410 "wizard.c"
	}
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp31_ = file;
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp32_ = g_file_get_uri (_tmp31_);
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp33_ = _tmp32_;
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_prepare_for_uri (self, _tmp33_, &_inner_error_);
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_free0 (_tmp33_);
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_propagate_error (error, _inner_error_);
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (path);
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (file);
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp1_);
#line 305 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 2434 "wizard.c"
	}
#line 264 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_free0 (path);
#line 264 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (file);
#line 264 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_tmp1_);
#line 2442 "wizard.c"
}


static void
boxes_wizard_prepare_for_uri (BoxesWizard* self,
                              const gchar* uri_as_text,
                              GError** error)
{
	xmlURI* uri = NULL;
	xmlURI* _tmp0_;
	gboolean _tmp1_ = FALSE;
	xmlURI* _tmp2_;
	BoxesWizardSource* _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp8_;
	const gchar* _tmp18_ = NULL;
	xmlURI* _tmp19_;
	const gchar* _tmp20_;
	xmlURI* _tmp21_;
	const gchar* _tmp22_;
	BoxesCollectionSource* _tmp23_;
	xmlURI* _tmp24_;
	const gchar* _tmp25_;
	GError * _inner_error_ = NULL;
#line 308 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 308 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (uri_as_text != NULL);
#line 309 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = xmlParseURI (uri_as_text);
#line 309 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	uri = _tmp0_;
#line 310 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = uri;
#line 310 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp2_ == NULL) {
#line 310 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp1_ = TRUE;
#line 2481 "wizard.c"
	} else {
		xmlURI* _tmp3_;
		const gchar* _tmp4_;
#line 310 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = uri;
#line 310 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp4_ = _tmp3_->scheme;
#line 310 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp1_ = _tmp4_ == NULL;
#line 2491 "wizard.c"
	}
#line 310 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp1_) {
#line 2495 "wizard.c"
		GError* _tmp5_;
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp5_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _ ("Invalid URL"));
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_inner_error_ = _tmp5_;
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_propagate_error (error, _inner_error_);
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_xmlFreeURI0 (uri);
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			return;
#line 2509 "wizard.c"
		} else {
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_xmlFreeURI0 (uri);
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.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 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_clear_error (&_inner_error_);
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			return;
#line 2519 "wizard.c"
		}
	}
#line 313 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp6_ = self->priv->wizard_source;
#line 313 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp7_ = boxes_wizard_source_get_download_required (_tmp6_);
#line 313 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp8_ = _tmp7_;
#line 313 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp8_) {
#line 2530 "wizard.c"
		GFile* file = NULL;
		GFile* _tmp9_;
		gchar* basename = NULL;
		GFile* _tmp10_;
		gchar* _tmp11_;
		gboolean _tmp12_ = FALSE;
		gboolean _tmp13_ = FALSE;
		const gchar* _tmp14_;
#line 314 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp9_ = g_file_new_for_uri (uri_as_text);
#line 314 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		file = _tmp9_;
#line 315 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp10_ = file;
#line 315 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp11_ = g_file_get_basename (_tmp10_);
#line 315 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		basename = _tmp11_;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp14_ = basename;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp14_ == NULL) {
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp13_ = TRUE;
#line 2555 "wizard.c"
		} else {
			const gchar* _tmp15_;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp15_ = basename;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp13_ = g_strcmp0 (_tmp15_, "") == 0;
#line 2562 "wizard.c"
		}
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp13_) {
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp12_ = TRUE;
#line 2568 "wizard.c"
		} else {
			const gchar* _tmp16_;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp16_ = basename;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp12_ = g_strcmp0 (_tmp16_, "/") == 0;
#line 2575 "wizard.c"
		}
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp12_) {
#line 2579 "wizard.c"
			GError* _tmp17_;
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp17_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _ ("Invalid URL"));
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_inner_error_ = _tmp17_;
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_inner_error_->domain == BOXES_ERROR) {
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_propagate_error (error, _inner_error_);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (basename);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (file);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_xmlFreeURI0 (uri);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2597 "wizard.c"
			} else {
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (basename);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (file);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_xmlFreeURI0 (uri);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.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 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_clear_error (&_inner_error_);
#line 318 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2611 "wizard.c"
			}
		}
#line 320 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (basename);
#line 320 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (file);
#line 320 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_xmlFreeURI0 (uri);
#line 320 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 2622 "wizard.c"
	}
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp19_ = uri;
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp20_ = _tmp19_->server;
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp18_ = _tmp20_;
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp18_ == NULL) {
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp18_ = uri_as_text;
#line 2634 "wizard.c"
	}
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp21_ = uri;
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp22_ = _tmp21_->scheme;
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp23_ = boxes_collection_source_new (_tmp18_, _tmp22_, uri_as_text);
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->source);
#line 323 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->source = _tmp23_;
#line 325 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp24_ = uri;
#line 325 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp25_ = _tmp24_->scheme;
#line 325 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_str_has_prefix (_tmp25_, "spice")) {
#line 2652 "wizard.c"
		BoxesCollectionSource* _tmp26_;
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		spice_validate_uri (uri_as_text, NULL, NULL, &_inner_error_);
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_inner_error_->domain == BOXES_ERROR) {
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_propagate_error (error, _inner_error_);
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_xmlFreeURI0 (uri);
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2666 "wizard.c"
			} else {
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_xmlFreeURI0 (uri);
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.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 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_clear_error (&_inner_error_);
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 2676 "wizard.c"
			}
		}
#line 327 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp26_ = self->priv->source;
#line 327 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_collection_source_set_source_type (_tmp26_, "spice");
#line 2683 "wizard.c"
	} else {
		xmlURI* _tmp27_;
		const gchar* _tmp28_;
#line 328 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp27_ = uri;
#line 328 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp28_ = _tmp27_->scheme;
#line 328 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (g_strcmp0 (_tmp28_, "vnc") == 0) {
#line 2693 "wizard.c"
		} else {
			xmlURI* _tmp29_;
			const gchar* _tmp30_;
#line 330 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp29_ = uri;
#line 330 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp30_ = _tmp29_->scheme;
#line 330 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (g_str_has_prefix (_tmp30_, "qemu")) {
#line 2703 "wizard.c"
				BoxesCollectionSource* _tmp31_;
#line 332 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp31_ = self->priv->source;
#line 332 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_collection_source_set_source_type (_tmp31_, "libvirt");
#line 2709 "wizard.c"
			} else {
				BoxesApp* _tmp32_;
				xmlURI* _tmp33_;
				const gchar* _tmp34_;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp32_ = boxes_app_app;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp33_ = uri;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp34_ = _tmp33_->scheme;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (boxes_app_has_broker_for_source_type (_tmp32_, _tmp34_)) {
#line 2722 "wizard.c"
					BoxesCollectionSource* _tmp35_;
					xmlURI* _tmp36_;
					const gchar* _tmp37_;
#line 334 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp35_ = self->priv->source;
#line 334 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp36_ = uri;
#line 334 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp37_ = _tmp36_->scheme;
#line 334 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					boxes_collection_source_set_source_type (_tmp35_, _tmp37_);
#line 2734 "wizard.c"
				} else {
					xmlURI* _tmp38_;
					const gchar* _tmp39_;
					gchar* _tmp40_;
					gchar* _tmp41_;
					GError* _tmp42_;
					GError* _tmp43_;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp38_ = uri;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp39_ = _tmp38_->scheme;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp40_ = g_strdup_printf (_ ("Unsupported protocol “%s”"), _tmp39_);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp41_ = _tmp40_;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp42_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _tmp41_);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp43_ = _tmp42_;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_g_free0 (_tmp41_);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_inner_error_ = _tmp43_;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					if (_inner_error_->domain == BOXES_ERROR) {
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_propagate_error (error, _inner_error_);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_xmlFreeURI0 (uri);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						return;
#line 2766 "wizard.c"
					} else {
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_xmlFreeURI0 (uri);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.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 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_clear_error (&_inner_error_);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						return;
#line 2776 "wizard.c"
					}
				}
			}
		}
	}
#line 308 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_xmlFreeURI0 (uri);
#line 2784 "wizard.c"
}


static Block97Data*
block97_data_ref (Block97Data* _data97_)
{
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_atomic_int_inc (&_data97_->_ref_count_);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return _data97_;
#line 2795 "wizard.c"
}


static void
block97_data_unref (void * _userdata_)
{
	Block97Data* _data97_;
	_data97_ = (Block97Data*) _userdata_;
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_atomic_int_dec_and_test (&_data97_->_ref_count_)) {
#line 2806 "wizard.c"
		BoxesWizard* self;
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self = _data97_->self;
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data97_->progress);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (self);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_slice_free (Block97Data, _data97_);
#line 2816 "wizard.c"
	}
}


static void
__lambda137_ (Block97Data* _data97_,
              GObject* obj,
              GAsyncResult* res)
{
	BoxesWizard* self;
#line 346 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = _data97_->self;
#line 346 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (res != NULL);
#line 347 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_on_installer_media_instantiated (self, res, _data97_->progress);
#line 2833 "wizard.c"
}


static void
___lambda137__gasync_ready_callback (GObject* source_object,
                                     GAsyncResult* res,
                                     gpointer self)
{
#line 346 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	__lambda137_ (self, source_object, res);
#line 346 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	block97_data_unref (self);
#line 2846 "wizard.c"
}


static void
boxes_wizard_prepare_for_installer (BoxesWizard* self,
                                    const gchar* path,
                                    BoxesActivityProgress* progress,
                                    GError** error)
{
	Block97Data* _data97_;
	BoxesActivityProgress* _tmp0_;
	GtkButton* _tmp1_;
	GtkLabel* _tmp2_;
	GtkLabel* _tmp3_;
	BoxesMediaManager* _tmp4_;
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (path != NULL);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (progress != NULL);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data97_ = g_slice_new0 (Block97Data);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data97_->_ref_count_ = 1;
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data97_->self = g_object_ref (self);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _g_object_ref0 (progress);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data97_->progress);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data97_->progress = _tmp0_;
#line 340 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->next_button;
#line 340 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp1_, FALSE);
#line 342 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = self->priv->prep_media_label;
#line 342 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_label_set_label (_tmp2_, _ ("Unknown installer media"));
#line 344 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = self->priv->prep_status_label;
#line 344 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_label_set_label (_tmp3_, _ ("Analyzing…"));
#line 346 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = self->priv->media_manager;
#line 346 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_media_manager_create_installer_media_for_path (_tmp4_, path, NULL, ___lambda137__gasync_ready_callback, block97_data_ref (_data97_));
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	block97_data_unref (_data97_);
#line 339 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data97_ = NULL;
#line 2900 "wizard.c"
}


static void
boxes_wizard_on_installer_media_instantiated (BoxesWizard* self,
                                              GAsyncResult* _result_,
                                              BoxesActivityProgress* progress)
{
	GError * _inner_error_ = NULL;
#line 351 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 351 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (_result_ != NULL);
#line 351 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (progress != NULL);
#line 2916 "wizard.c"
	{
		BoxesInstallerMedia* install_media = NULL;
		BoxesMediaManager* _tmp0_;
		BoxesInstallerMedia* _tmp1_;
		BoxesInstallerMedia* _tmp2_;
#line 353 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp0_ = self->priv->media_manager;
#line 353 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp1_ = boxes_media_manager_create_installer_media_for_path_finish (_tmp0_, _result_, &_inner_error_);
#line 353 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		install_media = _tmp1_;
#line 353 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 353 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (g_error_matches (_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 2932 "wizard.c"
				goto __catch131_g_io_error_cancelled;
			}
			goto __catch131_g_error;
		}
#line 354 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = install_media;
#line 354 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_prepare_media (self, _tmp2_, progress, NULL, NULL);
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (install_media);
#line 2943 "wizard.c"
	}
	goto __finally131;
	__catch131_g_io_error_cancelled:
	{
		GError* cancel_error = NULL;
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		cancel_error = _inner_error_;
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_inner_error_ = NULL;
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_error_free0 (cancel_error);
#line 2955 "wizard.c"
	}
	goto __finally131;
	__catch131_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
		gchar* msg = NULL;
		gchar* _tmp5_;
		BoxesAppWindow* _tmp6_;
		BoxesNotificationbar* _tmp7_;
		BoxesNotificationbar* _tmp8_;
		const gchar* _tmp9_;
		BoxesNotification* _tmp10_;
		BoxesNotification* _tmp11_;
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_error_ = _inner_error_;
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_inner_error_ = NULL;
#line 357 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = _error_;
#line 357 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp4_ = _tmp3_->message;
#line 357 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_debug ("wizard.vala:357: Failed to analyze installer image: %s", _tmp4_);
#line 358 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp5_ = g_strdup (_ ("Failed to analyze installer media. Corrupted or incomplete media?"));
#line 358 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		msg = _tmp5_;
#line 359 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp6_ = self->priv->window;
#line 359 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp7_ = boxes_app_window_get_notificationbar (_tmp6_);
#line 359 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp8_ = _tmp7_;
#line 359 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp9_ = msg;
#line 359 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp10_ = boxes_notificationbar_display_error (_tmp8_, _tmp9_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 359 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp11_ = _tmp10_;
#line 359 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp11_);
#line 360 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_page (self, BOXES_WIZARD_PAGE_SOURCE);
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (msg);
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_error_free0 (_error_);
#line 3005 "wizard.c"
	}
	__finally131:
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.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 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_clear_error (&_inner_error_);
#line 352 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 3016 "wizard.c"
	}
}


static void
boxes_wizard_prepare_media_data_free (gpointer _data)
{
	BoxesWizardPrepareMediaData* _data_;
	_data_ = _data;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->install_media);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->progress);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_slice_free (BoxesWizardPrepareMediaData, _data_);
#line 3034 "wizard.c"
}


static void
boxes_wizard_prepare_media_async_ready_wrapper (GObject *source_object,
                                                GAsyncResult *res,
                                                void *user_data)
{
	BoxesWizardPrepareMediaData* _task_data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_task_data_->_callback_ != NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 3050 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_->_task_complete_ = TRUE;
#line 3054 "wizard.c"
}


static void
boxes_wizard_prepare_media (BoxesWizard* self,
                            BoxesInstallerMedia* install_media,
                            BoxesActivityProgress* progress,
                            GAsyncReadyCallback _callback_,
                            gpointer _user_data_)
{
	BoxesWizardPrepareMediaData* _data_;
	BoxesWizard* _tmp0_;
	BoxesInstallerMedia* _tmp1_;
	BoxesActivityProgress* _tmp2_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_slice_new0 (BoxesWizardPrepareMediaData);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_callback_ = _callback_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, boxes_wizard_prepare_media_async_ready_wrapper, _user_data_);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_callback_ == NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_task_complete_ = TRUE;
#line 3079 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_wizard_prepare_media_data_free);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self = _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _g_object_ref0 (install_media);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->install_media);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->install_media = _tmp1_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _g_object_ref0 (progress);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->progress);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->progress = _tmp2_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_prepare_media_co (_data_);
#line 3101 "wizard.c"
}


static void
boxes_wizard_prepare_media_finish (BoxesWizard* self,
                                   GAsyncResult* _res_)
{
	BoxesWizardPrepareMediaData* _data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 3112 "wizard.c"
}


static void
boxes_wizard_prepare_media_ready (GObject* source_object,
                                  GAsyncResult* _res_,
                                  gpointer _user_data_)
{
	BoxesWizardPrepareMediaData* _data_;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = _user_data_;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_source_object_ = source_object;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_res_ = _res_;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_task_complete_ = TRUE;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_prepare_media_co (_data_);
#line 3132 "wizard.c"
}


static gboolean
boxes_wizard_prepare_media_co (BoxesWizardPrepareMediaData* _data_)
{
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (_data_->_state_) {
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 0:
#line 3143 "wizard.c"
		goto _state_0;
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 1:
#line 3147 "wizard.c"
		goto _state_1;
		default:
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_assert_not_reached ();
#line 3152 "wizard.c"
	}
	_state_0:
#line 365 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp0_ = _data_->install_media->os;
#line 365 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_tmp0_ != NULL) {
#line 366 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp1_ = _data_->self->priv->prep_media_label;
#line 366 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp2_ = _data_->install_media->os;
#line 366 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp3_ = osinfo_product_get_name ((OsinfoProduct*) _data_->_tmp2_);
#line 366 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp4_ = _data_->_tmp3_;
#line 366 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		gtk_label_set_label (_data_->_tmp1_, _data_->_tmp4_);
#line 367 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp5_ = _data_->self->priv->installer_image;
#line 367 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp6_ = _data_->install_media->os;
#line 367 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_downloader_fetch_os_logo (_data_->_tmp5_, _data_->_tmp6_, 128, NULL, NULL);
#line 3175 "wizard.c"
	}
#line 371 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp7_ = _data_->self->priv->wizard_source;
#line 371 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp8_ = boxes_wizard_source_get_download_required (_data_->_tmp7_);
#line 371 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 371 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_tmp9_) {
#line 372 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp10_ = boxes_activity_progress_add_child_activity (_data_->progress, BOXES_WIZARD_PREPARE_PROGRESS_SCALE);
#line 372 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data_->prepare_media_progress);
#line 372 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->prepare_media_progress = _data_->_tmp10_;
#line 3191 "wizard.c"
	} else {
#line 374 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp11_ = _g_object_ref0 (_data_->progress);
#line 374 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data_->prepare_media_progress);
#line 374 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->prepare_media_progress = _data_->_tmp11_;
#line 3199 "wizard.c"
	}
#line 375 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp12_ = _data_->prepare_media_progress;
#line 375 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp13_ = _data_->self->priv->prep_status_label;
#line 375 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_bind_property_with_closures ((GObject*) _data_->_tmp12_, "info", (GObject*) _data_->_tmp13_, "label", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp14_ = _data_->prepare_media_progress;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp15_ = _data_->self->priv->prepare_cancellable;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_state_ = 1;
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_installer_media_prepare (_data_->install_media, _data_->_tmp14_, _data_->_tmp15_, boxes_wizard_prepare_media_ready, _data_);
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return FALSE;
#line 3217 "wizard.c"
	_state_1:
#line 376 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (!boxes_installer_media_prepare_finish (_data_->install_media, _data_->_res_)) {
#line 377 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data_->prepare_media_progress);
#line 377 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 377 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_state_ != 0) {
#line 377 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			while (_data_->_task_complete_ != TRUE) {
#line 377 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 3231 "wizard.c"
			}
		}
#line 377 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_object_unref (_data_->_async_result);
#line 377 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return FALSE;
#line 3238 "wizard.c"
	}
#line 379 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp16_ = boxes_installer_media_get_vm_creator (_data_->install_media);
#line 379 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_boxes_vm_creator_unref0 (_data_->self->priv->vm_creator);
#line 379 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self->priv->vm_creator = _data_->_tmp16_;
#line 380 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp17_ = _data_->self->priv->prep_progress;
#line 380 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_progress_bar_set_fraction (_data_->_tmp17_, 1.0);
#line 381 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (_data_->self, BOXES_WIZARD_PAGE_SETUP);
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->prepare_media_progress);
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_state_ != 0) {
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 3262 "wizard.c"
		}
	}
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_unref (_data_->_async_result);
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return FALSE;
#line 3269 "wizard.c"
}


static gboolean
boxes_wizard_prepare (BoxesWizard* self,
                      BoxesActivityProgress* progress)
{
	gboolean result = FALSE;
	BoxesWizardSource* _tmp0_;
	gboolean _tmp1_;
	GCancellable* _tmp14_;
	BoxesWizardSource* _tmp15_;
	gboolean _tmp16_;
	gboolean _tmp17_;
	BoxesWizardSource* _tmp22_;
	BoxesInstallerMedia* _tmp23_;
	BoxesInstallerMedia* _tmp24_;
	GError * _inner_error_ = NULL;
#line 384 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 384 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (progress != NULL, FALSE);
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->wizard_source;
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _tmp0_->libvirt_sys_import;
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp1_) {
#line 3298 "wizard.c"
		GCancellable* _tmp2_;
#line 386 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = self->priv->prepare_cancellable;
#line 386 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_cancellable_reset (_tmp2_);
#line 388 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		result = TRUE;
#line 388 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return result;
#line 3308 "wizard.c"
	}
	{
		BoxesWizardSource* _tmp3_;
		const gchar* _tmp4_;
		const gchar* _tmp5_;
#line 393 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = self->priv->wizard_source;
#line 393 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp4_ = boxes_wizard_source_get_uri (_tmp3_);
#line 393 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp5_ = _tmp4_;
#line 393 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_prepare_for_location (self, _tmp5_, TRUE, NULL, &_inner_error_);
#line 393 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3324 "wizard.c"
			goto __catch132_g_error;
		}
	}
	goto __finally132;
	__catch132_g_error:
	{
		GError* _error_ = NULL;
		BoxesAppWindow* _tmp6_;
		BoxesNotificationbar* _tmp7_;
		BoxesNotificationbar* _tmp8_;
		GError* _tmp9_;
		const gchar* _tmp10_;
		BoxesNotification* _tmp11_;
		BoxesNotification* _tmp12_;
#line 391 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_error_ = _inner_error_;
#line 391 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_inner_error_ = NULL;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp6_ = self->priv->window;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp7_ = boxes_app_window_get_notificationbar (_tmp6_);
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp8_ = _tmp7_;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp9_ = _error_;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp10_ = _tmp9_->message;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp11_ = boxes_notificationbar_display_error (_tmp8_, _tmp10_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp12_ = _tmp11_;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp12_);
#line 397 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		result = FALSE;
#line 397 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_error_free0 (_error_);
#line 397 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return result;
#line 3365 "wizard.c"
	}
	__finally132:
#line 391 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3370 "wizard.c"
		gboolean _tmp13_ = FALSE;
#line 391 "/home/fborges/checkout/gnome-boxes/src/wizard.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 391 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_clear_error (&_inner_error_);
#line 391 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return _tmp13_;
#line 3378 "wizard.c"
	}
#line 400 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp14_ = self->priv->prepare_cancellable;
#line 400 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_cancellable_reset (_tmp14_);
#line 402 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp15_ = self->priv->wizard_source;
#line 402 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp16_ = boxes_wizard_source_get_download_required (_tmp15_);
#line 402 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp17_ = _tmp16_;
#line 402 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp17_) {
#line 3392 "wizard.c"
		GtkButton* _tmp18_;
		BoxesWizardSource* _tmp19_;
		const gchar* _tmp20_;
		const gchar* _tmp21_;
#line 403 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp18_ = self->priv->continue_button;
#line 403 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp18_, FALSE);
#line 404 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp19_ = self->priv->wizard_source;
#line 404 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp20_ = boxes_wizard_source_get_uri (_tmp19_);
#line 404 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp21_ = _tmp20_;
#line 404 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_download_media (self, _tmp21_, progress, NULL, NULL);
#line 406 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		result = TRUE;
#line 406 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return result;
#line 3413 "wizard.c"
	}
#line 409 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp22_ = self->priv->wizard_source;
#line 409 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp23_ = boxes_wizard_source_get_install_media (_tmp22_);
#line 409 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp24_ = _tmp23_;
#line 409 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp24_ != NULL) {
#line 3423 "wizard.c"
		GtkLabel* _tmp25_;
		GtkLabel* _tmp26_;
		BoxesWizardSource* _tmp27_;
		BoxesInstallerMedia* _tmp28_;
		BoxesInstallerMedia* _tmp29_;
#line 410 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp25_ = self->priv->prep_media_label;
#line 410 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		gtk_label_set_label (_tmp25_, _ ("Unknown installer media"));
#line 411 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp26_ = self->priv->prep_status_label;
#line 411 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		gtk_label_set_label (_tmp26_, _ ("Analyzing…"));
#line 412 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp27_ = self->priv->wizard_source;
#line 412 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp28_ = boxes_wizard_source_get_install_media (_tmp27_);
#line 412 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp29_ = _tmp28_;
#line 412 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_prepare_media (self, _tmp29_, progress, NULL, NULL);
#line 414 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		result = TRUE;
#line 414 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return result;
#line 3449 "wizard.c"
	}
	{
		BoxesWizardSource* _tmp30_;
		const gchar* _tmp31_;
		const gchar* _tmp32_;
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp30_ = self->priv->wizard_source;
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp31_ = boxes_wizard_source_get_uri (_tmp30_);
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp32_ = _tmp31_;
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_prepare_for_location (self, _tmp32_, FALSE, progress, &_inner_error_);
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3465 "wizard.c"
			goto __catch133_g_error;
		}
	}
	goto __finally133;
	__catch133_g_error:
	{
		GError* _error_ = NULL;
		BoxesAppWindow* _tmp33_;
		BoxesNotificationbar* _tmp34_;
		BoxesNotificationbar* _tmp35_;
		GError* _tmp36_;
		const gchar* _tmp37_;
		BoxesNotification* _tmp38_;
		BoxesNotification* _tmp39_;
#line 417 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_error_ = _inner_error_;
#line 417 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_inner_error_ = NULL;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp33_ = self->priv->window;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp34_ = boxes_app_window_get_notificationbar (_tmp33_);
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp35_ = _tmp34_;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp36_ = _error_;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp37_ = _tmp36_->message;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp38_ = boxes_notificationbar_display_error (_tmp35_, _tmp37_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp39_ = _tmp38_;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp39_);
#line 422 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		result = FALSE;
#line 422 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_error_free0 (_error_);
#line 422 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return result;
#line 3506 "wizard.c"
	}
	__finally133:
#line 417 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3511 "wizard.c"
		gboolean _tmp40_ = FALSE;
#line 417 "/home/fborges/checkout/gnome-boxes/src/wizard.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 417 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_clear_error (&_inner_error_);
#line 417 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return _tmp40_;
#line 3519 "wizard.c"
	}
#line 425 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = TRUE;
#line 425 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 3525 "wizard.c"
}


static void
__lambda138_ (BoxesWizard* self)
{
	BoxesVMCreator* _tmp0_;
	BoxesInstallerMedia* _tmp1_;
	BoxesInstallerMedia* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->vm_creator;
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = boxes_vm_creator_get_install_media (_tmp0_);
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _tmp1_;
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = boxes_installer_media_get_ready_to_create (_tmp2_);
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = _tmp3_;
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp4_) {
#line 3549 "wizard.c"
		BoxesWizardPage _tmp5_;
		BoxesWizardPage _tmp6_;
#line 441 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp5_ = boxes_wizard_get_page (self);
#line 441 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp6_ = _tmp5_;
#line 441 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_page (self, _tmp6_ + 1);
#line 3558 "wizard.c"
	}
}


static void
___lambda138__boxes_installer_media_user_wants_to_create (BoxesInstallerMedia* _sender,
                                                          gpointer self)
{
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	__lambda138_ ((BoxesWizard*) self);
#line 3569 "wizard.c"
}


static gboolean
boxes_wizard_setup (BoxesWizard* self)
{
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	BoxesCollectionSource* _tmp1_;
	BoxesVMCreator* _tmp4_;
	BoxesVMCreator* _tmp5_;
	BoxesInstallerMedia* _tmp6_;
	BoxesInstallerMedia* _tmp7_;
	GtkButton* _tmp8_;
	BoxesVMCreator* _tmp9_;
	BoxesInstallerMedia* _tmp10_;
	BoxesInstallerMedia* _tmp11_;
	GtkBox* _tmp12_;
	BoxesVMCreator* _tmp13_;
	BoxesInstallerMedia* _tmp14_;
	BoxesInstallerMedia* _tmp15_;
#line 428 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 430 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->source;
#line 430 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp1_ != NULL) {
#line 430 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp0_ = TRUE;
#line 3599 "wizard.c"
	} else {
		BoxesWizardSource* _tmp2_;
		gboolean _tmp3_;
#line 430 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = self->priv->wizard_source;
#line 430 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = _tmp2_->libvirt_sys_import;
#line 430 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp0_ = _tmp3_;
#line 3609 "wizard.c"
	}
#line 430 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp0_) {
#line 431 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		result = TRUE;
#line 431 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return result;
#line 3617 "wizard.c"
	}
#line 433 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = self->priv->vm_creator;
#line 433 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (_tmp4_ != NULL, FALSE);
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = self->priv->vm_creator;
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp6_ = boxes_vm_creator_get_install_media (_tmp5_);
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp7_ = _tmp6_;
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp8_ = self->priv->continue_button;
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp7_, "ready-to-create", (GObject*) _tmp8_, "sensitive", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 438 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp9_ = self->priv->vm_creator;
#line 438 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp10_ = boxes_vm_creator_get_install_media (_tmp9_);
#line 438 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp11_ = _tmp10_;
#line 438 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp12_ = self->priv->setup_box;
#line 438 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_installer_media_populate_setup_box (_tmp11_, _tmp12_);
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp13_ = self->priv->vm_creator;
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp14_ = boxes_vm_creator_get_install_media (_tmp13_);
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp15_ = _tmp14_;
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object (_tmp15_, "user-wants-to-create", (GCallback) ___lambda138__boxes_installer_media_user_wants_to_create, self, 0);
#line 444 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = TRUE;
#line 444 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 3655 "wizard.c"
}


static void
boxes_wizard_do_review_cancellable_data_free (gpointer _data)
{
	BoxesWizardDoReviewCancellableData* _data_;
	_data_ = _data;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_slice_free (BoxesWizardDoReviewCancellableData, _data_);
#line 3668 "wizard.c"
}


static void
boxes_wizard_do_review_cancellable_async_ready_wrapper (GObject *source_object,
                                                        GAsyncResult *res,
                                                        void *user_data)
{
	BoxesWizardDoReviewCancellableData* _task_data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_task_data_->_callback_ != NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 3684 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_->_task_complete_ = TRUE;
#line 3688 "wizard.c"
}


static void
boxes_wizard_do_review_cancellable (BoxesWizard* self,
                                    GAsyncReadyCallback _callback_,
                                    gpointer _user_data_)
{
	BoxesWizardDoReviewCancellableData* _data_;
	BoxesWizard* _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_slice_new0 (BoxesWizardDoReviewCancellableData);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_callback_ = _callback_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, boxes_wizard_do_review_cancellable_async_ready_wrapper, _user_data_);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_callback_ == NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_task_complete_ = TRUE;
#line 3709 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_wizard_do_review_cancellable_data_free);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self = _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_do_review_cancellable_co (_data_);
#line 3719 "wizard.c"
}


static gboolean
boxes_wizard_do_review_cancellable_finish (BoxesWizard* self,
                                           GAsyncResult* _res_)
{
	gboolean result;
	BoxesWizardDoReviewCancellableData* _data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _data_->result;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 3735 "wizard.c"
}


static void
boxes_wizard_do_review_cancellable_ready (GObject* source_object,
                                          GAsyncResult* _res_,
                                          gpointer _user_data_)
{
	BoxesWizardDoReviewCancellableData* _data_;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = _user_data_;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_source_object_ = source_object;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_res_ = _res_;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_task_complete_ = TRUE;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_do_review_cancellable_co (_data_);
#line 3755 "wizard.c"
}


static gpointer
_boxes_pair_ref0 (gpointer self)
{
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return self ? boxes_pair_ref (self) : NULL;
#line 3764 "wizard.c"
}


static void
_boxes_pair_unref0_ (gpointer var)
{
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	(var == NULL) ? NULL : (var = (boxes_pair_unref (var), NULL));
#line 3773 "wizard.c"
}


static inline void
_g_list_free__boxes_pair_unref0_ (GList* self)
{
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_list_free_full (self, (GDestroyNotify) _boxes_pair_unref0_);
#line 3782 "wizard.c"
}


static Block98Data*
block98_data_ref (Block98Data* _data98_)
{
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_atomic_int_inc (&_data98_->_ref_count_);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return _data98_;
#line 3793 "wizard.c"
}


static void
block98_data_unref (void * _userdata_)
{
	Block98Data* _data98_;
	_data98_ = (Block98Data*) _userdata_;
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_atomic_int_dec_and_test (&_data98_->_ref_count_)) {
#line 3804 "wizard.c"
		BoxesWizard* self;
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self = _data98_->self;
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data98_->config);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (self);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_slice_free (Block98Data, _data98_);
#line 3814 "wizard.c"
	}
}


static void
_____lambda97_ (Block98Data* _data98_,
                GError** error)
{
	BoxesWizard* self;
	GVirConfigDomain* _tmp0_ = NULL;
	BoxesLibvirtMachine* _tmp1_;
	BoxesLibvirtMachine* _tmp2_;
	GVirDomain* _tmp3_;
	GVirDomain* _tmp4_;
	GVirConfigDomain* _tmp5_;
	GVirConfigDomain* _tmp6_;
	GError * _inner_error_ = NULL;
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = _data98_->self;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = boxes_wizard_get_libvirt_machine (self);
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _tmp1_;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = boxes_libvirt_machine_get_domain (_tmp2_);
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = _tmp3_;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = gvir_domain_get_config (_tmp4_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _tmp5_;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_propagate_error (error, _inner_error_);
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 3852 "wizard.c"
	}
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp6_ = _tmp0_;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = NULL;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data98_->config);
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data98_->config = _tmp6_;
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_tmp0_);
#line 3864 "wizard.c"
}


static void
______lambda97__boxes_async_launcher_run_in_thread_func (gpointer self,
                                                         GError** error)
{
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_____lambda97_ (self, error);
#line 3874 "wizard.c"
}


static void
_vala_GVirStorageVolInfo_free (GVirStorageVolInfo* self)
{
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_boxed_free (gvir_storage_vol_info_get_type (), self);
#line 3883 "wizard.c"
}


static void
___lambda98_ (BoxesWizard* self)
{
	BoxesWizardWindow* _tmp0_;
	BoxesLibvirtMachine* _tmp1_;
	BoxesLibvirtMachine* _tmp2_;
#line 552 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->wizard_window;
#line 552 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = boxes_wizard_get_libvirt_machine (self);
#line 552 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _tmp1_;
#line 552 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_window_show_customization_page (_tmp0_, _tmp2_);
#line 3901 "wizard.c"
}


static void
____lambda98__boxes_wizard_summary_customize_func (gpointer self)
{
#line 551 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	___lambda98_ ((BoxesWizard*) self);
#line 3910 "wizard.c"
}


static gboolean
boxes_wizard_do_review_cancellable_co (BoxesWizardDoReviewCancellableData* _data_)
{
#line 447 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (_data_->_state_) {
#line 447 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 0:
#line 3921 "wizard.c"
		goto _state_0;
#line 447 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 1:
#line 3925 "wizard.c"
		goto _state_1;
#line 447 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 2:
#line 3929 "wizard.c"
		goto _state_2;
		default:
#line 447 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_assert_not_reached ();
#line 3934 "wizard.c"
	}
	_state_0:
#line 448 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp0_ = _data_->self->priv->review_cancellable;
#line 448 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (_data_->_tmp0_ != NULL, FALSE);
#line 450 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp1_ = _data_->self->priv->nokvm_infobar;
#line 450 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_hide ((GtkWidget*) _data_->_tmp1_);
#line 451 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp2_ = _data_->self->priv->summary;
#line 451 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_summary_clear (_data_->_tmp2_);
#line 453 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp3_ = _data_->self->priv->source;
#line 453 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_tmp3_ != NULL) {
#line 3953 "wizard.c"
		{
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp5_ = _data_->self->priv->source;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp6_ = boxes_remote_machine_new (_data_->_tmp5_, &_data_->_inner_error_);
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp4_ = _data_->_tmp6_;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (_data_->_inner_error_->domain == BOXES_ERROR) {
#line 3965 "wizard.c"
					goto __catch134_boxes_error;
				}
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_clear_error (&_data_->_inner_error_);
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_object_unref (_data_->_async_result);
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return FALSE;
#line 3976 "wizard.c"
			}
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_wizard_set_machine (_data_->self, (BoxesMachine*) _data_->_tmp4_);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_object_unref0 (_data_->_tmp4_);
#line 3982 "wizard.c"
		}
		goto __finally134;
		__catch134_boxes_error:
		{
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_error_ = _data_->_inner_error_;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_inner_error_ = NULL;
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp7_ = _data_->_error_;
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp8_ = _data_->_tmp7_->message;
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_warning ("wizard.vala:457: %s", _data_->_tmp8_);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_error_free0 (_data_->_error_);
#line 3999 "wizard.c"
		}
		__finally134:
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_clear_error (&_data_->_inner_error_);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_object_unref (_data_->_async_result);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			return FALSE;
#line 4012 "wizard.c"
		}
	} else {
#line 459 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp10_ = _data_->self->priv->vm_creator;
#line 459 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp10_ != NULL) {
#line 459 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp11_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 459 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp12_ = _data_->_tmp11_;
#line 459 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp9_ = _data_->_tmp12_ == NULL;
#line 4025 "wizard.c"
		} else {
#line 459 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp9_ = FALSE;
#line 4029 "wizard.c"
		}
#line 459 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp9_) {
#line 4033 "wizard.c"
			{
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp14_ = _data_->self->priv->vm_creator;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp15_ = _data_->self->priv->review_cancellable;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_state_ = 1;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_vm_creator_create_vm (_data_->_tmp14_, _data_->_tmp15_, boxes_wizard_do_review_cancellable_ready, _data_);
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return FALSE;
#line 4045 "wizard.c"
				_state_1:
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp16_ = boxes_vm_creator_create_vm_finish (_data_->_tmp14_, _data_->_res_, &_data_->_inner_error_);
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp13_ = _data_->_tmp16_;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 4055 "wizard.c"
						goto __catch135_g_io_error_cancelled;
					}
					goto __catch135_g_error;
				}
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_wizard_set_machine (_data_->self, (BoxesMachine*) _data_->_tmp13_);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (_data_->_tmp13_);
#line 4064 "wizard.c"
			}
			goto __finally135;
			__catch135_g_io_error_cancelled:
			{
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->cancel_error = _data_->_inner_error_;
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_inner_error_ = NULL;
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_error_free0 (_data_->cancel_error);
#line 4075 "wizard.c"
			}
			goto __finally135;
			__catch135_g_error:
			{
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_vala1__error_ = _data_->_inner_error_;
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_inner_error_ = NULL;
#line 464 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp17_ = _data_->self->priv->window;
#line 464 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp18_ = boxes_app_window_get_notificationbar (_data_->_tmp17_);
#line 464 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp19_ = _data_->_tmp18_;
#line 464 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp20_ = boxes_notificationbar_display_error (_data_->_tmp19_, _ ("Box setup failed"), BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 464 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp21_ = _data_->_tmp20_;
#line 464 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (_data_->_tmp21_);
#line 465 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp22_ = _data_->_vala1__error_;
#line 465 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp23_ = _data_->_tmp22_->message;
#line 465 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_warning ("wizard.vala:465: %s", _data_->_tmp23_);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_error_free0 (_data_->_vala1__error_);
#line 4104 "wizard.c"
			}
			__finally135:
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_clear_error (&_data_->_inner_error_);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_object_unref (_data_->_async_result);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return FALSE;
#line 4117 "wizard.c"
			}
#line 468 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp24_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 468 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp25_ = _data_->_tmp24_;
#line 468 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_data_->_tmp25_ == NULL) {
#line 470 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_object_notify ((GObject*) _data_->self, "machine");
#line 471 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->result = FALSE;
#line 471 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 471 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (_data_->_state_ != 0) {
#line 471 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					while (_data_->_task_complete_ != TRUE) {
#line 471 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 4137 "wizard.c"
					}
				}
#line 471 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_object_unref (_data_->_async_result);
#line 471 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return FALSE;
#line 4144 "wizard.c"
			}
		}
	}
#line 475 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp26_ = _data_->self->priv->review_cancellable;
#line 475 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_cancellable_is_cancelled (_data_->_tmp26_)) {
#line 476 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->result = FALSE;
#line 476 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 476 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_state_ != 0) {
#line 476 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			while (_data_->_task_complete_ != TRUE) {
#line 476 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 4162 "wizard.c"
			}
		}
#line 476 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_object_unref (_data_->_async_result);
#line 476 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return FALSE;
#line 4169 "wizard.c"
	}
#line 478 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp27_ = _data_->self->priv->review_label;
#line 478 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_label_set_text (_data_->_tmp27_, _ ("Boxes will create a new box with the following properties:"));
#line 480 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp28_ = _data_->self->priv->source;
#line 480 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_tmp28_ != NULL) {
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		static GQuark _tmp59_label0 = 0;
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		static GQuark _tmp59_label1 = 0;
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp29_ = _data_->self->priv->source;
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp30_ = boxes_collection_source_get_uri (_data_->_tmp29_);
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp31_ = _data_->_tmp30_;
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp32_ = _data_->_tmp31_;
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp33_ = xmlParseURI (_data_->_tmp32_);
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp34_ = _data_->_tmp33_;
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (_data_->_tmp32_);
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->uri = _data_->_tmp34_;
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp35_ = _data_->self->priv->summary;
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp36_ = _data_->self->priv->source;
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp37_ = boxes_collection_source_get_source_type (_data_->_tmp36_);
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp38_ = _data_->_tmp37_;
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp39_ = _data_->_tmp38_;
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_summary_add_property (_data_->_tmp35_, _ ("Type"), _data_->_tmp39_);
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (_data_->_tmp39_);
#line 485 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp41_ = _data_->uri;
#line 485 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp41_ != NULL) {
#line 485 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp42_ = _data_->uri;
#line 485 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp43_ = _data_->_tmp42_->server;
#line 485 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp40_ = _data_->_tmp43_ != NULL;
#line 4223 "wizard.c"
		} else {
#line 485 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp40_ = FALSE;
#line 4227 "wizard.c"
		}
#line 485 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp40_) {
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp44_ = _data_->self->priv->summary;
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp45_ = _data_->uri;
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp46_ = _data_->_tmp45_->server;
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp47_ = g_utf8_strdown (_data_->_tmp46_, (gssize) -1);
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp48_ = _data_->_tmp47_;
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_wizard_summary_add_property (_data_->_tmp44_, _ ("Host"), _data_->_tmp48_);
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_free0 (_data_->_tmp48_);
#line 4245 "wizard.c"
		} else {
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp49_ = _data_->self->priv->summary;
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp50_ = _data_->self->priv->source;
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp51_ = boxes_collection_source_get_uri (_data_->_tmp50_);
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp52_ = _data_->_tmp51_;
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp53_ = _data_->_tmp52_;
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp54_ = g_utf8_strdown (_data_->_tmp53_, (gssize) -1);
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp55_ = _data_->_tmp54_;
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_wizard_summary_add_property (_data_->_tmp49_, _ ("URL"), _data_->_tmp55_);
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_free0 (_data_->_tmp55_);
#line 488 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_free0 (_data_->_tmp53_);
#line 4267 "wizard.c"
		}
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp56_ = _data_->uri;
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp57_ = _data_->_tmp56_->scheme;
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp60_ = 0U;
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp58_ = _data_->_tmp57_;
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp60_ = (NULL == _data_->_tmp58_) ? 0 : g_quark_from_string (_data_->_tmp58_);
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp60_ == ((0 != _tmp59_label0) ? _tmp59_label0 : (_tmp59_label0 = g_quark_from_static_string ("spice")))) {
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			switch (0) {
#line 4283 "wizard.c"
				default:
				{
					{
#line 493 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->port = 0;
#line 493 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->tls_port = 0;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp61_ = _data_->self->priv->source;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp62_ = boxes_collection_source_get_uri (_data_->_tmp61_);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp63_ = _data_->_tmp62_;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp64_ = _data_->_tmp63_;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp65_ = NULL;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp66_ = NULL;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						spice_validate_uri (_data_->_tmp64_, &_data_->_tmp65_, &_data_->_tmp66_, &_data_->_inner_error_);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp67_ = _data_->_tmp65_;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->port = *_data_->_tmp67_;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp68_ = _data_->_tmp66_;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->tls_port = *_data_->_tmp68_;
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_g_free0 (_data_->_tmp68_);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_g_free0 (_data_->_tmp67_);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_g_free0 (_data_->_tmp64_);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							if (_data_->_inner_error_->domain == BOXES_ERROR) {
#line 4323 "wizard.c"
								goto __catch136_boxes_error;
							}
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_xmlFreeURI0 (_data_->uri);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							g_clear_error (&_data_->_inner_error_);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							g_object_unref (_data_->_async_result);
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							return FALSE;
#line 4336 "wizard.c"
						}
#line 496 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp69_ = _data_->port;
#line 496 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						if (_data_->_tmp69_ > 0) {
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp70_ = _data_->self->priv->summary;
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp71_ = _data_->port;
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp72_ = g_strdup_printf ("%i", _data_->_tmp71_);
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp73_ = _data_->_tmp72_;
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							boxes_wizard_summary_add_property (_data_->_tmp70_, _ ("Port"), _data_->_tmp73_);
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_g_free0 (_data_->_tmp73_);
#line 4354 "wizard.c"
						}
#line 498 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp74_ = _data_->tls_port;
#line 498 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						if (_data_->_tmp74_ > 0) {
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp75_ = _data_->self->priv->summary;
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp76_ = _data_->tls_port;
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp77_ = g_strdup_printf ("%i", _data_->_tmp76_);
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_data_->_tmp78_ = _data_->_tmp77_;
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							boxes_wizard_summary_add_property (_data_->_tmp75_, _ ("TLS Port"), _data_->_tmp78_);
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
							_g_free0 (_data_->_tmp78_);
#line 4372 "wizard.c"
						}
					}
					goto __finally136;
					__catch136_boxes_error:
					{
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_vala2__error_ = _data_->_inner_error_;
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_inner_error_ = NULL;
#line 502 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp79_ = _data_->_vala2__error_;
#line 502 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp80_ = _data_->_tmp79_->message;
#line 502 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_critical ("wizard.vala:502: %s", _data_->_tmp80_);
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_g_error_free0 (_data_->_vala2__error_);
#line 4390 "wizard.c"
					}
					__finally136:
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_xmlFreeURI0 (_data_->uri);
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_clear_error (&_data_->_inner_error_);
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						g_object_unref (_data_->_async_result);
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						return FALSE;
#line 4405 "wizard.c"
					}
#line 504 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					break;
#line 4409 "wizard.c"
				}
			}
		} else if (_data_->_tmp60_ == ((0 != _tmp59_label1) ? _tmp59_label1 : (_tmp59_label1 = g_quark_from_static_string ("vnc")))) {
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			switch (0) {
#line 4415 "wizard.c"
				default:
				{
#line 507 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp81_ = _data_->uri;
#line 507 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp82_ = _data_->_tmp81_->port;
#line 507 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					if (_data_->_tmp82_ > 0) {
#line 508 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp83_ = _data_->self->priv->summary;
#line 508 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp84_ = _data_->uri;
#line 508 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp85_ = _data_->_tmp84_->port;
#line 508 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp86_ = g_strdup_printf ("%i", _data_->_tmp85_);
#line 508 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp87_ = _data_->_tmp86_;
#line 508 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						boxes_wizard_summary_add_property (_data_->_tmp83_, _ ("Port"), _data_->_tmp87_);
#line 508 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_g_free0 (_data_->_tmp87_);
#line 4438 "wizard.c"
					}
#line 509 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					break;
#line 4442 "wizard.c"
				}
			}
		}
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp88_ = boxes_app_app;
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp89_ = _data_->self->priv->source;
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp90_ = boxes_collection_source_get_source_type (_data_->_tmp89_);
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp91_ = _data_->_tmp90_;
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp92_ = _data_->_tmp91_;
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp93_ = boxes_app_has_broker_for_source_type (_data_->_tmp88_, _data_->_tmp92_);
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (_data_->_tmp92_);
#line 512 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp93_) {
#line 513 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp94_ = _data_->self->priv->review_label;
#line 513 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_label_set_text (_data_->_tmp94_, _ ("Will add boxes for all systems available from this account:"));
#line 4466 "wizard.c"
		}
#line 480 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_xmlFreeURI0 (_data_->uri);
#line 4470 "wizard.c"
	} else {
#line 515 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp95_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 515 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp96_ = _data_->_tmp95_;
#line 515 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_data_->_tmp96_ != NULL) {
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp97_ = _data_->self->priv->vm_creator;
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp98_ = boxes_vm_creator_get_install_media (_data_->_tmp97_);
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp99_ = _data_->_tmp98_;
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp100_ = boxes_installer_media_get_vm_properties (_data_->_tmp99_);
#line 4486 "wizard.c"
			{
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->property_collection = _data_->_tmp100_;
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				for (_data_->property_it = _data_->property_collection; _data_->property_it != NULL; _data_->property_it = _data_->property_it->next) {
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp101_ = _boxes_pair_ref0 ((BoxesPair*) _data_->property_it->data);
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->property = _data_->_tmp101_;
#line 4496 "wizard.c"
					{
#line 517 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp102_ = _data_->self->priv->summary;
#line 517 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp103_ = _data_->property;
#line 517 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp104_ = _data_->_tmp103_->first;
#line 517 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp105_ = _data_->property;
#line 517 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_data_->_tmp106_ = _data_->_tmp105_->second;
#line 517 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						boxes_wizard_summary_add_property (_data_->_tmp102_, (const gchar*) _data_->_tmp104_, (const gchar*) _data_->_tmp106_);
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_boxes_pair_unref0 (_data_->property);
#line 4512 "wizard.c"
					}
				}
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				__g_list_free__boxes_pair_unref0_0 (_data_->property_collection);
#line 4517 "wizard.c"
			}
			{
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_data98_ = g_slice_new0 (Block98Data);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_data98_->_ref_count_ = 1;
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_data98_->self = g_object_ref (_data_->self);
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp107_ = NULL;
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp108_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp107_, gvir_config_domain_get_type ()) ? ((GVirConfigDomain*) _data_->_tmp107_) : NULL);
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_data98_->config = _data_->_tmp108_;
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp109_ = boxes_app_app;
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp110_ = _data_->_tmp109_->async_launcher;
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_state_ = 2;
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_async_launcher_launch (_data_->_tmp110_, ______lambda97__boxes_async_launcher_run_in_thread_func, block98_data_ref (_data_->_data98_), block98_data_unref, boxes_wizard_do_review_cancellable_ready, _data_);
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return FALSE;
#line 4542 "wizard.c"
				_state_2:
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_async_launcher_launch_finish (_data_->_tmp110_, _data_->_res_, &_data_->_inner_error_);
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					block98_data_unref (_data_->_data98_);
#line 521 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_data98_ = NULL;
#line 4552 "wizard.c"
					goto __catch137_g_error;
				}
#line 525 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp111_ = _data_->_data98_->config;
#line 525 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp112_ = gvir_config_domain_get_memory (_data_->_tmp111_);
#line 525 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp113_ = _data_->_tmp112_;
#line 525 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp114_ = g_format_size_full (_data_->_tmp113_ * OSINFO_KIBIBYTES, G_FORMAT_SIZE_IEC_UNITS);
#line 525 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->memory = _data_->_tmp114_;
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp115_ = _data_->self->priv->summary;
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp116_ = _data_->memory;
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_wizard_summary_add_property (_data_->_tmp115_, _ ("Memory"), _data_->_tmp116_);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (_data_->memory);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				block98_data_unref (_data_->_data98_);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_data98_ = NULL;
#line 4577 "wizard.c"
			}
			goto __finally137;
			__catch137_g_error:
			{
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_vala3__error_ = _data_->_inner_error_;
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_inner_error_ = NULL;
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp117_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp118_ = _data_->_tmp117_;
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp119_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->_tmp118_);
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp120_ = _data_->_tmp119_;
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp121_ = _data_->_vala3__error_;
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp122_ = _data_->_tmp121_->message;
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_warning ("wizard.vala:528: Failed to get configuration for machine '%s': %s", _data_->_tmp120_, _data_->_tmp122_);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_error_free0 (_data_->_vala3__error_);
#line 4602 "wizard.c"
			}
			__finally137:
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_clear_error (&_data_->_inner_error_);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				g_object_unref (_data_->_async_result);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return FALSE;
#line 4615 "wizard.c"
			}
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp124_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp125_ = _data_->_tmp124_;
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp126_ = boxes_libvirt_machine_get_importing (_data_->_tmp125_);
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp127_ = _data_->_tmp126_;
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (!_data_->_tmp127_) {
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp128_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp129_ = _data_->_tmp128_;
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp130_ = boxes_libvirt_machine_get_storage_volume (_data_->_tmp129_);
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp131_ = _data_->_tmp130_;
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp123_ = _data_->_tmp131_ != NULL;
#line 4637 "wizard.c"
			} else {
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp123_ = FALSE;
#line 4641 "wizard.c"
			}
#line 531 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_data_->_tmp123_) {
#line 4645 "wizard.c"
				{
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp132_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp133_ = _data_->_tmp132_;
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp134_ = boxes_libvirt_machine_get_storage_volume (_data_->_tmp133_);
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp135_ = _data_->_tmp134_;
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp136_ = gvir_storage_vol_get_info (_data_->_tmp135_, &_data_->_inner_error_);
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->volume_info = _data_->_tmp136_;
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 4661 "wizard.c"
						goto __catch138_g_error;
					}
#line 534 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp137_ = _data_->volume_info;
#line 534 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp138_ = _data_->_tmp137_->capacity;
#line 534 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp139_ = g_format_size_full (_data_->_tmp138_, G_FORMAT_SIZE_DEFAULT);
#line 534 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->capacity = _data_->_tmp139_;
#line 535 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp140_ = _data_->self->priv->summary;
#line 535 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp141_ = _data_->capacity;
#line 535 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp142_ = g_strdup_printf (_ ("%s maximum"), _data_->_tmp141_);
#line 535 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp143_ = _data_->_tmp142_;
#line 535 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					boxes_wizard_summary_add_property (_data_->_tmp140_, _ ("Disk"), _data_->_tmp143_);
#line 535 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_g_free0 (_data_->_tmp143_);
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_g_free0 (_data_->capacity);
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					__vala_GVirStorageVolInfo_free0 (_data_->volume_info);
#line 4688 "wizard.c"
				}
				goto __finally138;
				__catch138_g_error:
				{
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_vala4__error_ = _data_->_inner_error_;
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_inner_error_ = NULL;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp144_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp145_ = _data_->_tmp144_;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp146_ = boxes_libvirt_machine_get_storage_volume (_data_->_tmp145_);
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp147_ = _data_->_tmp146_;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp148_ = gvir_storage_vol_get_name (_data_->_tmp147_);
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp149_ = _data_->_vala4__error_;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_data_->_tmp150_ = _data_->_tmp149_->message;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					g_warning ("wizard.vala:539: Failed to get information on volume '%s': %s", _data_->_tmp148_, _data_->_tmp150_);
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_g_error_free0 (_data_->_vala4__error_);
#line 4715 "wizard.c"
				}
				__finally138:
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					g_clear_error (&_data_->_inner_error_);
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					g_object_unref (_data_->_async_result);
#line 532 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					return FALSE;
#line 4728 "wizard.c"
				}
			}
#line 545 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp151_ = _data_->self->priv->nokvm_infobar;
#line 545 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp152_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 545 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp153_ = _data_->_tmp152_;
#line 545 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp154_ = boxes_libvirt_machine_get_domain_config (_data_->_tmp153_);
#line 545 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp155_ = _data_->_tmp154_;
#line 545 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_widget_set_visible ((GtkWidget*) _data_->_tmp151_, gvir_config_domain_get_virt_type (_data_->_tmp155_) != GVIR_CONFIG_DOMAIN_VIRT_KVM);
#line 4743 "wizard.c"
		} else {
#line 546 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp156_ = _data_->self->priv->wizard_source;
#line 546 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_data_->_tmp157_ = _data_->_tmp156_->libvirt_sys_import;
#line 546 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_data_->_tmp157_) {
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp158_ = _data_->self->priv->review_label;
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp159_ = _data_->self->priv->wizard_source;
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp160_ = boxes_wizard_source_get_libvirt_sys_importer (_data_->_tmp159_);
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp161_ = _data_->_tmp160_;
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp162_ = boxes_libvirt_system_importer_get_wizard_review_label (_data_->_tmp161_);
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp163_ = _data_->_tmp162_;
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_data_->_tmp164_ = _data_->_tmp163_;
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_label_set_text (_data_->_tmp158_, _data_->_tmp164_);
#line 547 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_free0 (_data_->_tmp164_);
#line 4769 "wizard.c"
			}
		}
	}
#line 550 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp165_ = boxes_wizard_get_libvirt_machine (_data_->self);
#line 550 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp166_ = _data_->_tmp165_;
#line 550 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_tmp166_ != NULL) {
#line 551 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp167_ = _data_->self->priv->summary;
#line 551 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_summary_append_customize_button (_data_->_tmp167_, ____lambda98__boxes_wizard_summary_customize_func, _data_->self);
#line 4783 "wizard.c"
	}
#line 555 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->result = TRUE;
#line 555 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 555 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_state_ != 0) {
#line 555 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 555 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 4795 "wizard.c"
		}
	}
#line 555 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_unref (_data_->_async_result);
#line 555 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return FALSE;
#line 4802 "wizard.c"
}


static gboolean
boxes_wizard_skip_page (BoxesWizard* self,
                        BoxesWizardPage page)
{
	gboolean result = FALSE;
	gboolean forwards = FALSE;
	BoxesWizardPage _tmp0_;
	BoxesWizardPage _tmp1_;
	BoxesWizardPage skip_to = 0;
	gboolean _tmp2_ = FALSE;
	BoxesCollectionSource* _tmp3_;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_;
	BoxesVMCreator* _tmp9_;
	BoxesWizardPage _tmp35_;
#line 558 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 559 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_wizard_get_page (self);
#line 559 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _tmp0_;
#line 559 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	forwards = page > _tmp1_;
#line 560 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	skip_to = page;
#line 563 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = self->priv->source;
#line 563 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp3_ != NULL) {
#line 4835 "wizard.c"
		BoxesWizardPage _tmp4_;
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp4_ = page;
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = (BOXES_WIZARD_PAGE_SOURCE < _tmp4_) && (_tmp4_ < BOXES_WIZARD_PAGE_REVIEW);
#line 4841 "wizard.c"
	} else {
#line 563 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = FALSE;
#line 4845 "wizard.c"
	}
#line 563 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp2_) {
#line 4849 "wizard.c"
		BoxesWizardPage _tmp5_ = 0;
		gboolean _tmp6_;
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp6_ = forwards;
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp6_) {
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp5_ = page + 1;
#line 4858 "wizard.c"
		} else {
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp5_ = page - 1;
#line 4862 "wizard.c"
		}
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		skip_to = _tmp5_;
#line 4866 "wizard.c"
	}
#line 568 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp8_ = forwards;
#line 568 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (!_tmp8_) {
#line 569 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp7_ = page == BOXES_WIZARD_PAGE_PREPARATION;
#line 4874 "wizard.c"
	} else {
#line 568 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp7_ = FALSE;
#line 4878 "wizard.c"
	}
#line 568 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp7_) {
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		skip_to = page - 1;
#line 4884 "wizard.c"
	}
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp9_ = self->priv->vm_creator;
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp9_ != NULL) {
#line 4890 "wizard.c"
		gboolean _tmp10_ = FALSE;
		gboolean _tmp18_ = FALSE;
		gboolean _tmp19_ = FALSE;
		gboolean _tmp20_ = FALSE;
#line 574 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (page == BOXES_WIZARD_PAGE_SETUP) {
#line 4897 "wizard.c"
			BoxesVMCreator* _tmp11_;
			BoxesInstallerMedia* _tmp12_;
			BoxesInstallerMedia* _tmp13_;
			gboolean _tmp14_;
			gboolean _tmp15_;
#line 575 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp11_ = self->priv->vm_creator;
#line 575 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp12_ = boxes_vm_creator_get_install_media (_tmp11_);
#line 575 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp13_ = _tmp12_;
#line 575 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp14_ = boxes_installer_media_get_need_user_input_for_vm_creation (_tmp13_);
#line 575 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp15_ = _tmp14_;
#line 575 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp10_ = !_tmp15_;
#line 4915 "wizard.c"
		} else {
#line 574 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp10_ = FALSE;
#line 4919 "wizard.c"
		}
#line 574 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp10_) {
#line 4923 "wizard.c"
			BoxesWizardPage _tmp16_ = 0;
			gboolean _tmp17_;
#line 576 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp17_ = forwards;
#line 576 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (_tmp17_) {
#line 576 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp16_ = page + 1;
#line 4932 "wizard.c"
			} else {
#line 576 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp16_ = page - 1;
#line 4936 "wizard.c"
			}
#line 576 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			skip_to = _tmp16_;
#line 4940 "wizard.c"
		}
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (page == BOXES_WIZARD_PAGE_REVIEW) {
#line 4944 "wizard.c"
			gboolean _tmp21_;
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp21_ = forwards;
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp20_ = _tmp21_;
#line 4950 "wizard.c"
		} else {
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp20_ = FALSE;
#line 4954 "wizard.c"
		}
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp20_) {
#line 4958 "wizard.c"
			BoxesVMCreator* _tmp22_;
			BoxesInstallerMedia* _tmp23_;
			BoxesInstallerMedia* _tmp24_;
			gboolean _tmp25_;
			gboolean _tmp26_;
#line 580 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp22_ = self->priv->vm_creator;
#line 580 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp23_ = boxes_vm_creator_get_install_media (_tmp22_);
#line 580 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp24_ = _tmp23_;
#line 580 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp25_ = boxes_installer_media_get_live (_tmp24_);
#line 580 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp26_ = _tmp25_;
#line 580 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp19_ = _tmp26_;
#line 4976 "wizard.c"
		} else {
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp19_ = FALSE;
#line 4980 "wizard.c"
		}
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp19_) {
#line 4984 "wizard.c"
			gboolean _tmp27_;
#line 581 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp27_ = self->priv->skip_review_for_live;
#line 581 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp18_ = _tmp27_;
#line 4990 "wizard.c"
		} else {
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp18_ = FALSE;
#line 4994 "wizard.c"
		}
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp18_) {
#line 4998 "wizard.c"
			BoxesWizardPage _tmp28_;
#line 582 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp28_ = skip_to;
#line 582 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			skip_to = _tmp28_ + 1;
#line 5004 "wizard.c"
		}
	} else {
		BoxesWizardSource* _tmp29_;
		gboolean _tmp30_;
#line 583 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp29_ = self->priv->wizard_source;
#line 583 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp30_ = _tmp29_->libvirt_sys_import;
#line 583 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (_tmp30_) {
#line 584 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (page == BOXES_WIZARD_PAGE_PREPARATION) {
#line 5017 "wizard.c"
				BoxesWizardPage _tmp31_ = 0;
				gboolean _tmp32_;
#line 585 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp32_ = forwards;
#line 585 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (_tmp32_) {
#line 585 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp31_ = page + 2;
#line 5026 "wizard.c"
				} else {
#line 585 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp31_ = page - 1;
#line 5030 "wizard.c"
				}
#line 585 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				skip_to = _tmp31_;
#line 5034 "wizard.c"
			} else {
#line 586 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (page == BOXES_WIZARD_PAGE_SETUP) {
#line 5038 "wizard.c"
					BoxesWizardPage _tmp33_ = 0;
					gboolean _tmp34_;
#line 587 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					_tmp34_ = forwards;
#line 587 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					if (_tmp34_) {
#line 587 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp33_ = page + 1;
#line 5047 "wizard.c"
					} else {
#line 587 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
						_tmp33_ = page - 2;
#line 5051 "wizard.c"
					}
#line 587 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					skip_to = _tmp33_;
#line 5055 "wizard.c"
				}
			}
		}
	}
#line 590 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp35_ = skip_to;
#line 590 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp35_ != page) {
#line 5064 "wizard.c"
		BoxesWizardPage _tmp36_;
#line 591 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp36_ = skip_to;
#line 591 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_page (self, _tmp36_);
#line 592 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		result = TRUE;
#line 592 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return result;
#line 5074 "wizard.c"
	}
#line 595 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = FALSE;
#line 595 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 5080 "wizard.c"
}


static void
boxes_wizard_download_media_data_free (gpointer _data)
{
	BoxesWizardDownloadMediaData* _data_;
	_data_ = _data;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_free0 (_data_->uri);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->progress);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_slice_free (BoxesWizardDownloadMediaData, _data_);
#line 5097 "wizard.c"
}


static void
boxes_wizard_download_media_async_ready_wrapper (GObject *source_object,
                                                 GAsyncResult *res,
                                                 void *user_data)
{
	BoxesWizardDownloadMediaData* _task_data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_task_data_->_callback_ != NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 5113 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_task_data_->_task_complete_ = TRUE;
#line 5117 "wizard.c"
}


static void
boxes_wizard_download_media (BoxesWizard* self,
                             const gchar* uri,
                             BoxesActivityProgress* progress,
                             GAsyncReadyCallback _callback_,
                             gpointer _user_data_)
{
	BoxesWizardDownloadMediaData* _data_;
	BoxesWizard* _tmp0_;
	gchar* _tmp1_;
	BoxesActivityProgress* _tmp2_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_slice_new0 (BoxesWizardDownloadMediaData);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_callback_ = _callback_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, boxes_wizard_download_media_async_ready_wrapper, _user_data_);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_callback_ == NULL) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_task_complete_ = TRUE;
#line 5142 "wizard.c"
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_wizard_download_media_data_free);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->self = _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = g_strdup (uri);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_free0 (_data_->uri);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->uri = _tmp1_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _g_object_ref0 (progress);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->progress);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->progress = _tmp2_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_download_media_co (_data_);
#line 5164 "wizard.c"
}


static void
boxes_wizard_download_media_finish (BoxesWizard* self,
                                    GAsyncResult* _res_)
{
	BoxesWizardDownloadMediaData* _data_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 5175 "wizard.c"
}


static void
boxes_wizard_download_media_ready (GObject* source_object,
                                   GAsyncResult* _res_,
                                   gpointer _user_data_)
{
	BoxesWizardDownloadMediaData* _data_;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_ = _user_data_;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_source_object_ = source_object;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_res_ = _res_;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_task_complete_ = TRUE;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_download_media_co (_data_);
#line 5195 "wizard.c"
}


static gboolean
boxes_wizard_download_media_co (BoxesWizardDownloadMediaData* _data_)
{
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (_data_->_state_) {
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 0:
#line 5206 "wizard.c"
		goto _state_0;
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case 1:
#line 5210 "wizard.c"
		goto _state_1;
		default:
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_assert_not_reached ();
#line 5215 "wizard.c"
	}
	_state_0:
#line 599 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp0_ = boxes_activity_progress_add_child_activity (_data_->progress, BOXES_WIZARD_DOWNLOAD_PROGRESS_SCALE);
#line 599 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->download_progress = _data_->_tmp0_;
#line 600 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data_->_tmp1_ = _data_->self->priv->prep_status_label;
#line 600 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_label_set_label (_data_->_tmp1_, _ ("Downloading media…"));
#line 5226 "wizard.c"
	{
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp2_ = _data_->download_progress;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp3_ = _data_->self->priv->prepare_cancellable;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_state_ = 1;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_downloader_fetch_media (_data_->uri, _data_->_tmp2_, _data_->_tmp3_, boxes_wizard_download_media_ready, _data_);
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return FALSE;
#line 5238 "wizard.c"
		_state_1:
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp4_ = boxes_downloader_fetch_media_finish (_data_->_res_, &_data_->_inner_error_);
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->cache_path = _data_->_tmp4_;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 5248 "wizard.c"
				goto __catch139_g_io_error_cancelled;
			}
			goto __catch139_g_error;
		}
#line 604 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp5_ = _data_->cache_path;
#line 604 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_prepare_downloaded_media (_data_->self, _data_->_tmp5_, _data_->progress);
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_free0 (_data_->cache_path);
#line 5259 "wizard.c"
	}
	goto __finally139;
	__catch139_g_io_error_cancelled:
	{
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->e = _data_->_inner_error_;
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_inner_error_ = NULL;
#line 606 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_debug ("wizard.vala:606: Cancelled downloading media '%s'!", _data_->uri);
#line 607 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_page (_data_->self, BOXES_WIZARD_PAGE_SOURCE);
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_error_free0 (_data_->e);
#line 5274 "wizard.c"
	}
	goto __finally139;
	__catch139_g_error:
	{
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_vala1_e = _data_->_inner_error_;
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_inner_error_ = NULL;
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp6_ = _data_->_vala1_e;
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp7_ = _data_->_tmp6_->message;
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_warning ("wizard.vala:609: Failed downloading media '%s'! %s", _data_->uri, _data_->_tmp7_);
#line 610 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp8_ = _data_->self->priv->window;
#line 610 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp9_ = boxes_app_window_get_notificationbar (_data_->_tmp8_);
#line 610 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp10_ = _data_->_tmp9_;
#line 610 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp11_ = boxes_notificationbar_display_error (_data_->_tmp10_, _ ("Download failed."), BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 610 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data_->_tmp12_ = _data_->_tmp11_;
#line 610 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data_->_tmp12_);
#line 611 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_page (_data_->self, BOXES_WIZARD_PAGE_SOURCE);
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_error_free0 (_data_->_vala1_e);
#line 5305 "wizard.c"
	}
	__finally139:
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_data_->download_progress);
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_clear_error (&_data_->_inner_error_);
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_object_unref (_data_->_async_result);
#line 602 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return FALSE;
#line 5320 "wizard.c"
	}
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (_data_->download_progress);
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_data_->_state_ != 0) {
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 5332 "wizard.c"
		}
	}
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_unref (_data_->_async_result);
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return FALSE;
#line 5339 "wizard.c"
}


static void
boxes_wizard_prepare_downloaded_media (BoxesWizard* self,
                                       const gchar* cache_path,
                                       BoxesActivityProgress* progress)
{
	BoxesWizardSource* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
#line 615 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 615 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (cache_path != NULL);
#line 615 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (progress != NULL);
#line 616 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_cleanup (self);
#line 619 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->wizard_source;
#line 619 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = g_strconcat ("file://", cache_path, NULL);
#line 619 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _tmp1_;
#line 619 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_source_set_uri (_tmp0_, _tmp2_);
#line 619 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_free0 (_tmp2_);
#line 620 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_prepare (self, progress);
#line 5371 "wizard.c"
}


static void
_boxes_wizard_cancel_gtk_button_clicked (GtkButton* _sender,
                                         gpointer self)
{
#line 628 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_cancel ((BoxesWizard*) self);
#line 5381 "wizard.c"
}


static void
__lambda142_ (BoxesWizard* self)
{
	GCancellable* _tmp0_;
	BoxesWizardPage _tmp1_;
	BoxesWizardPage _tmp2_;
#line 631 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->prepare_cancellable;
#line 631 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_cancellable_cancel (_tmp0_);
#line 633 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = boxes_wizard_get_page (self);
#line 633 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _tmp1_;
#line 633 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (self, _tmp2_ - 1);
#line 5401 "wizard.c"
}


static void
___lambda142__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
#line 630 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	__lambda142_ ((BoxesWizard*) self);
#line 5411 "wizard.c"
}


static void
__lambda143_ (BoxesWizard* self)
{
	BoxesWizardPage _tmp0_;
	BoxesWizardPage _tmp1_;
#line 637 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_wizard_get_page (self);
#line 637 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _tmp0_;
#line 637 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (self, _tmp1_ + 1);
#line 5426 "wizard.c"
}


static void
___lambda143__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
#line 636 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	__lambda143_ ((BoxesWizard*) self);
#line 5436 "wizard.c"
}


static void
__lambda144_ (BoxesWizard* self)
{
#line 642 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (self, BOXES_WIZARD_PAGE_LAST);
#line 5445 "wizard.c"
}


static void
___lambda144__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
#line 641 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	__lambda144_ ((BoxesWizard*) self);
#line 5455 "wizard.c"
}


void
boxes_wizard_setup_ui (BoxesWizard* self,
                       BoxesAppWindow* window,
                       BoxesWizardWindow* wizard_window)
{
	BoxesAppWindow* _tmp0_;
	BoxesWizardToolbar* _tmp1_;
	GtkButton* _tmp2_;
	GtkButton* _tmp3_;
	GtkButton* _tmp4_;
	BoxesWizardToolbar* _tmp5_;
	GtkButton* _tmp6_;
	GtkButton* _tmp7_;
	GtkButton* _tmp8_;
	BoxesWizardToolbar* _tmp9_;
	GtkButton* _tmp10_;
	GtkButton* _tmp11_;
	GtkButton* _tmp12_;
	GtkButton* _tmp13_;
	GtkButton* _tmp14_;
	BoxesWizardToolbar* _tmp15_;
	GtkButton* _tmp16_;
	GtkButton* _tmp17_;
	GtkButton* _tmp18_;
	BoxesWizardSource* _tmp19_;
#line 623 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 623 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (window != NULL);
#line 623 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (wizard_window != NULL);
#line 624 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = _g_object_ref0 (window);
#line 624 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->window);
#line 624 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->window = _tmp0_;
#line 625 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->wizard_window = wizard_window;
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = wizard_window->topbar;
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = _tmp1_->cancel_btn;
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->cancel_button);
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->cancel_button = _tmp3_;
#line 628 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = self->priv->cancel_button;
#line 628 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object (_tmp4_, "clicked", (GCallback) _boxes_wizard_cancel_gtk_button_clicked, self, 0);
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = wizard_window->topbar;
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp6_ = _tmp5_->back_btn;
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->back_button);
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->back_button = _tmp7_;
#line 630 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp8_ = self->priv->back_button;
#line 630 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object (_tmp8_, "clicked", (GCallback) ___lambda142__gtk_button_clicked, self, 0);
#line 635 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp9_ = wizard_window->topbar;
#line 635 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp10_ = _tmp9_->continue_btn;
#line 635 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp11_ = _g_object_ref0 (_tmp10_);
#line 635 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->continue_button);
#line 635 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->continue_button = _tmp11_;
#line 636 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp12_ = self->priv->continue_button;
#line 636 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object (_tmp12_, "clicked", (GCallback) ___lambda143__gtk_button_clicked, self, 0);
#line 639 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp13_ = self->priv->continue_button;
#line 639 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp14_ = _g_object_ref0 (_tmp13_);
#line 639 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->next_button);
#line 639 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->next_button = _tmp14_;
#line 640 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp15_ = wizard_window->topbar;
#line 640 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp16_ = _tmp15_->create_btn;
#line 640 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp17_ = _g_object_ref0 (_tmp16_);
#line 640 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->create_button);
#line 640 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->create_button = _tmp17_;
#line 641 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp18_ = self->priv->create_button;
#line 641 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object (_tmp18_, "clicked", (GCallback) ___lambda144__gtk_button_clicked, self, 0);
#line 645 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp19_ = self->priv->wizard_source;
#line 645 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_source_setup_ui (_tmp19_, window);
#line 5566 "wizard.c"
}


void
boxes_wizard_open_with_uri (BoxesWizard* self,
                            const gchar* uri,
                            gboolean skip_review_for_live)
{
	BoxesAppWindow* _tmp0_;
	BoxesWizardSource* _tmp1_;
	BoxesWizardSource* _tmp2_;
#line 648 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 648 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (uri != NULL);
#line 649 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->window;
#line 649 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp0_, BOXES_UI_STATE_WIZARD);
#line 650 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->skip_review_for_live = skip_review_for_live;
#line 652 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (self, BOXES_WIZARD_PAGE_SOURCE);
#line 653 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->wizard_source;
#line 653 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_source_set_page (_tmp1_, BOXES_SOURCE_PAGE_URL);
#line 654 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = self->priv->wizard_source;
#line 654 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_source_set_uri (_tmp2_, uri);
#line 655 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (self, BOXES_WIZARD_PAGE_PREPARATION);
#line 5600 "wizard.c"
}


void
boxes_wizard_cancel (BoxesWizard* self)
{
	BoxesWizardSource* _tmp0_;
	BoxesAppWindow* _tmp1_;
#line 658 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 659 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_cleanup (self);
#line 660 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->wizard_source;
#line 660 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_source_set_page (_tmp0_, BOXES_SOURCE_PAGE_MAIN);
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->window;
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp1_, BOXES_UI_STATE_COLLECTION);
#line 5621 "wizard.c"
}


static void
boxes_wizard_ui_state_changed (BoxesWizard* self)
{
	BoxesUIState _tmp0_;
	BoxesUIState _tmp1_;
	BoxesWizardSource* _tmp2_;
	BoxesWizardSource* _tmp3_;
#line 664 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 665 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 665 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _tmp0_;
#line 665 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp1_ != BOXES_UI_STATE_WIZARD) {
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 5642 "wizard.c"
	}
#line 668 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = self->priv->wizard_source;
#line 668 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_source_set_uri (_tmp2_, "");
#line 669 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = self->priv->wizard_source;
#line 669 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_->libvirt_sys_import = FALSE;
#line 670 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (self, BOXES_WIZARD_PAGE_SOURCE);
#line 5654 "wizard.c"
}


static void
boxes_wizard_destroy_machine (BoxesWizard* self)
{
	GCancellable* _tmp0_;
	BoxesMachine* _tmp2_;
#line 673 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 674 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->review_cancellable;
#line 674 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp0_ != NULL) {
#line 5669 "wizard.c"
		GCancellable* _tmp1_;
#line 675 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp1_ = self->priv->review_cancellable;
#line 675 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_cancellable_cancel (_tmp1_);
#line 5675 "wizard.c"
	}
#line 677 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = self->priv->_machine;
#line 677 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp2_ != NULL) {
#line 5681 "wizard.c"
		BoxesApp* _tmp3_;
		BoxesMachine* _tmp4_;
#line 678 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = boxes_app_app;
#line 678 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp4_ = self->priv->_machine;
#line 678 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_app_delete_machine (_tmp3_, _tmp4_, TRUE);
#line 679 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_machine (self, NULL);
#line 5692 "wizard.c"
	}
}


BoxesWizard*
boxes_wizard_construct (GType object_type)
{
	BoxesWizard * self = NULL;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = (BoxesWizard*) g_object_new (object_type, NULL);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return self;
#line 5705 "wizard.c"
}


BoxesWizard*
boxes_wizard_new (void)
{
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return boxes_wizard_construct (BOXES_TYPE_WIZARD);
#line 5714 "wizard.c"
}


static BoxesUIState
boxes_wizard_real_get_previous_ui_state (BoxesUI* base)
{
	BoxesUIState result;
	BoxesWizard* self;
	BoxesUIState _tmp0_;
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = (BoxesWizard*) base;
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->_previous_ui_state;
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _tmp0_;
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 5732 "wizard.c"
}


static void
boxes_wizard_real_set_previous_ui_state (BoxesUI* base,
                                         BoxesUIState value)
{
	BoxesWizard* self;
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = (BoxesWizard*) base;
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (boxes_wizard_real_get_previous_ui_state (base) != value) {
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self->priv->_previous_ui_state = value;
#line 18 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_properties[BOXES_WIZARD_PREVIOUS_UI_STATE_PROPERTY]);
#line 5749 "wizard.c"
	}
}


static BoxesUIState
boxes_wizard_real_get_ui_state (BoxesUI* base)
{
	BoxesUIState result;
	BoxesWizard* self;
	BoxesUIState _tmp0_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = (BoxesWizard*) base;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->_ui_state;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _tmp0_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 5768 "wizard.c"
}


static void
boxes_wizard_real_set_ui_state (BoxesUI* base,
                                BoxesUIState value)
{
	BoxesWizard* self;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = (BoxesWizard*) base;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (boxes_wizard_real_get_ui_state (base) != value) {
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self->priv->_ui_state = value;
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_properties[BOXES_WIZARD_UI_STATE_PROPERTY]);
#line 5785 "wizard.c"
	}
}


BoxesMachine*
boxes_wizard_get_machine (BoxesWizard* self)
{
	BoxesMachine* result;
	BoxesMachine* _tmp0_;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->_machine;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _tmp0_;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 5803 "wizard.c"
}


void
boxes_wizard_set_machine (BoxesWizard* self,
                          BoxesMachine* value)
{
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (boxes_wizard_get_machine (self) != value) {
#line 5815 "wizard.c"
		BoxesMachine* _tmp0_;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (self->priv->_machine);
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self->priv->_machine = _tmp0_;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_properties[BOXES_WIZARD_MACHINE_PROPERTY]);
#line 5825 "wizard.c"
	}
}


static BoxesLibvirtMachine*
boxes_wizard_get_libvirt_machine (BoxesWizard* self)
{
	BoxesLibvirtMachine* result;
	BoxesMachine* _tmp0_;
#line 54 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 54 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->_machine;
#line 54 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, BOXES_TYPE_LIBVIRT_MACHINE) ? ((BoxesLibvirtMachine*) _tmp0_) : NULL;
#line 54 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 5843 "wizard.c"
}


BoxesWizardPage
boxes_wizard_get_page (BoxesWizard* self)
{
	BoxesWizardPage result;
	BoxesWizardPage _tmp0_;
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->_page;
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	result = _tmp0_;
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return result;
#line 5860 "wizard.c"
}


static void
_boxes_wizard_page_____lambda139_ (BoxesWizard* self,
                                   GObject* obj,
                                   GAsyncResult* _result_)
{
	GtkButton* _tmp0_;
	GtkButton* _tmp1_;
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (_result_ != NULL);
#line 103 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->next_button;
#line 103 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, TRUE);
#line 104 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->create_button;
#line 104 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp1_);
#line 105 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (!boxes_wizard_review_finish (self, _result_)) {
#line 5883 "wizard.c"
		BoxesWizardPage _tmp2_;
		BoxesWizardPage _tmp3_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = boxes_wizard_get_page (self);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = _tmp2_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_page (self, _tmp3_ - 1);
#line 5892 "wizard.c"
	}
}


static void
__boxes_wizard_page_____lambda139__gasync_ready_callback (GObject* source_object,
                                                          GAsyncResult* res,
                                                          gpointer self)
{
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_boxes_wizard_page_____lambda139_ ((BoxesWizard*) self, source_object, res);
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_unref (self);
#line 5906 "wizard.c"
}


static void
_boxes_wizard_page_____lambda141_ (BoxesWizard* self,
                                   GObject* obj,
                                   GAsyncResult* _result_)
{
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (_result_ != NULL);
#line 112 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (boxes_wizard_create_finish (self, _result_)) {
#line 5919 "wizard.c"
		BoxesAppWindow* _tmp0_;
		BoxesWizardSource* _tmp1_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp0_ = self->priv->window;
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_ui_set_state ((BoxesUI*) _tmp0_, BOXES_UI_STATE_COLLECTION);
#line 114 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp1_ = self->priv->wizard_source;
#line 114 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_source_set_page (_tmp1_, BOXES_SOURCE_PAGE_MAIN);
#line 5930 "wizard.c"
	} else {
		BoxesAppWindow* _tmp2_;
		BoxesNotificationbar* _tmp3_;
		BoxesNotificationbar* _tmp4_;
		BoxesNotification* _tmp5_;
		BoxesNotification* _tmp6_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp2_ = self->priv->window;
#line 116 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp3_ = boxes_app_window_get_notificationbar (_tmp2_);
#line 116 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp4_ = _tmp3_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp5_ = boxes_notificationbar_display_error (_tmp4_, _ ("Box creation failed"), BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 116 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp6_ = _tmp5_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (_tmp6_);
#line 5949 "wizard.c"
	}
}


static void
__boxes_wizard_page_____lambda141__gasync_ready_callback (GObject* source_object,
                                                          GAsyncResult* res,
                                                          gpointer self)
{
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_boxes_wizard_page_____lambda141_ ((BoxesWizard*) self, source_object, res);
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_unref (self);
#line 5963 "wizard.c"
}


void
boxes_wizard_set_page (BoxesWizard* self,
                       BoxesWizardPage value)
{
	gboolean forwards = FALSE;
	BoxesWizardPage _tmp0_;
	BoxesWizardPage _tmp1_;
	gboolean _tmp12_;
	GtkButton* _tmp29_;
	BoxesWizardWindow* _tmp30_;
	BoxesWizardToolbar* _tmp31_;
	const gchar* _tmp32_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_wizard_get_page (self);
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = _tmp0_;
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	forwards = value > _tmp1_;
#line 66 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (value) {
#line 66 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_PAGE_SOURCE:
#line 5991 "wizard.c"
		{
			GtkButton* _tmp2_;
			GtkButton* _tmp3_;
			GtkButton* _tmp4_;
			GtkButton* _tmp5_;
			GtkButton* _tmp6_;
			GtkButton* _tmp7_;
			BoxesWizardSource* _tmp8_;
			BoxesWizardSource* _tmp9_;
			BoxesSourcePage _tmp10_;
			BoxesSourcePage _tmp11_;
#line 69 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp2_ = self->priv->create_button;
#line 69 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_widget_set_visible ((GtkWidget*) _tmp2_, FALSE);
#line 70 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp3_ = self->priv->continue_button;
#line 70 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_widget_set_visible ((GtkWidget*) _tmp3_, TRUE);
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp4_ = self->priv->continue_button;
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp5_ = _g_object_ref0 (_tmp4_);
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_g_object_unref0 (self->priv->next_button);
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			self->priv->next_button = _tmp5_;
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp6_ = self->priv->next_button;
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, TRUE);
#line 73 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp7_ = self->priv->next_button;
#line 73 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			gtk_widget_grab_focus ((GtkWidget*) _tmp7_);
#line 74 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp8_ = self->priv->wizard_source;
#line 74 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp9_ = self->priv->wizard_source;
#line 74 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp10_ = boxes_wizard_source_get_page (_tmp9_);
#line 74 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			_tmp11_ = _tmp10_;
#line 74 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_wizard_source_set_page (_tmp8_, _tmp11_);
#line 75 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			boxes_wizard_cleanup (self);
#line 76 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			break;
#line 6041 "wizard.c"
		}
		default:
#line 66 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 6046 "wizard.c"
	}
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp12_ = forwards;
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp12_) {
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		switch (value) {
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			case BOXES_WIZARD_PAGE_SOURCE:
#line 6056 "wizard.c"
			{
				BoxesWizardSource* _tmp13_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp13_ = self->priv->wizard_source;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_wizard_source_set_page (_tmp13_, BOXES_SOURCE_PAGE_MAIN);
#line 83 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				break;
#line 6065 "wizard.c"
			}
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			case BOXES_WIZARD_PAGE_PREPARATION:
#line 6069 "wizard.c"
			{
				GtkImage* _tmp14_;
				BoxesActivityProgress* _tmp15_;
				BoxesActivityProgress* _tmp16_;
				gboolean _tmp17_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp14_ = self->priv->installer_image;
#line 86 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_image_set_from_icon_name (_tmp14_, "media-optical", (GtkIconSize) 0);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp15_ = boxes_wizard_create_preparation_progress (self);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp16_ = _tmp15_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp17_ = !boxes_wizard_prepare (self, _tmp16_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (_tmp16_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (_tmp17_) {
#line 88 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					return;
#line 6091 "wizard.c"
				}
#line 89 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				break;
#line 6095 "wizard.c"
			}
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			case BOXES_WIZARD_PAGE_SETUP:
#line 6099 "wizard.c"
			{
#line 92 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				if (!boxes_wizard_setup (self)) {
#line 93 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
					return;
#line 6105 "wizard.c"
				}
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				break;
#line 6109 "wizard.c"
			}
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			case BOXES_WIZARD_PAGE_REVIEW:
#line 6113 "wizard.c"
			{
				GtkButton* _tmp18_;
				GtkButton* _tmp19_;
				GtkButton* _tmp20_;
				GtkButton* _tmp21_;
				GtkButton* _tmp22_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp18_ = self->priv->continue_button;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_widget_set_visible ((GtkWidget*) _tmp18_, FALSE);
#line 98 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp19_ = self->priv->create_button;
#line 98 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_widget_set_visible ((GtkWidget*) _tmp19_, TRUE);
#line 99 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp20_ = self->priv->create_button;
#line 99 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp21_ = _g_object_ref0 (_tmp20_);
#line 99 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (self->priv->next_button);
#line 99 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				self->priv->next_button = _tmp21_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp22_ = self->priv->next_button;
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_widget_set_sensitive ((GtkWidget*) _tmp22_, FALSE);
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_wizard_review (self, __boxes_wizard_page_____lambda139__gasync_ready_callback, g_object_ref (self));
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				break;
#line 6144 "wizard.c"
			}
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			case BOXES_WIZARD_PAGE_LAST:
#line 6148 "wizard.c"
			{
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_wizard_create (self, __boxes_wizard_page_____lambda141__gasync_ready_callback, g_object_ref (self));
#line 119 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				return;
#line 6154 "wizard.c"
			}
			default:
#line 80 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			break;
#line 6159 "wizard.c"
		}
	} else {
		BoxesWizardPage _tmp23_;
		BoxesWizardPage _tmp24_;
#line 122 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp23_ = boxes_wizard_get_page (self);
#line 122 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_tmp24_ = _tmp23_;
#line 122 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		switch (_tmp24_) {
#line 122 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			case BOXES_WIZARD_PAGE_REVIEW:
#line 6172 "wizard.c"
			{
				GtkButton* _tmp25_;
				GtkButton* _tmp26_;
				GtkButton* _tmp27_;
				GtkButton* _tmp28_;
#line 124 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp25_ = self->priv->create_button;
#line 124 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_widget_set_visible ((GtkWidget*) _tmp25_, FALSE);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp26_ = self->priv->continue_button;
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_widget_set_visible ((GtkWidget*) _tmp26_, TRUE);
#line 126 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp27_ = self->priv->continue_button;
#line 126 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp28_ = _g_object_ref0 (_tmp27_);
#line 126 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_g_object_unref0 (self->priv->next_button);
#line 126 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				self->priv->next_button = _tmp28_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				boxes_wizard_destroy_machine (self);
#line 128 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				break;
#line 6198 "wizard.c"
			}
			default:
#line 122 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			break;
#line 6203 "wizard.c"
		}
	}
#line 132 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (boxes_wizard_skip_page (self, value)) {
#line 133 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 6210 "wizard.c"
	}
#line 135 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->_page = value;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp29_ = self->priv->back_button;
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp29_, value != BOXES_WIZARD_PAGE_SOURCE);
#line 137 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp30_ = self->priv->wizard_window;
#line 137 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp31_ = _tmp30_->topbar;
#line 137 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_toolbar_set_title_for_page (_tmp31_, value);
#line 138 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp32_ = BOXES_WIZARD_page_names[value];
#line 138 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_stack_set_visible_child_name ((GtkStack*) self, _tmp32_);
#line 140 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (value == BOXES_WIZARD_PAGE_SOURCE) {
#line 141 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_wizard_source_update_next (self);
#line 6232 "wizard.c"
	}
#line 63 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_notify_by_pspec ((GObject *) self, boxes_wizard_properties[BOXES_WIZARD_PAGE_PROPERTY]);
#line 6236 "wizard.c"
}


static void
_boxes_wizard_wizard_source_update_next_g_object_notify (GObject* _sender,
                                                         GParamSpec* pspec,
                                                         gpointer self)
{
#line 191 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_wizard_source_update_next ((BoxesWizard*) self);
#line 6247 "wizard.c"
}


static void
_boxes_wizard_wizard_source_update_next_gtk_editable_changed (GtkEditable* _sender,
                                                              gpointer self)
{
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_wizard_source_update_next ((BoxesWizard*) self);
#line 6257 "wizard.c"
}


static void
_boxes_wizard_ui_state_changed_g_object_notify (GObject* _sender,
                                                GParamSpec* pspec,
                                                gpointer self)
{
#line 194 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_ui_state_changed ((BoxesWizard*) self);
#line 6268 "wizard.c"
}


static void
_boxes_wizard___lambda145_ (BoxesWizard* self)
{
#line 197 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_set_page (self, BOXES_WIZARD_PAGE_PREPARATION);
#line 6277 "wizard.c"
}


static void
__boxes_wizard___lambda145__boxes_wizard_source_activated (BoxesWizardSource* _sender,
                                                           gpointer self)
{
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_boxes_wizard___lambda145_ ((BoxesWizard*) self);
#line 6287 "wizard.c"
}


static GObject *
boxes_wizard_constructor (GType type,
                          guint n_construct_properties,
                          GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	BoxesWizard * self;
	BoxesMediaManager* _tmp0_;
	BoxesWizardSource* _tmp1_;
	BoxesWizardSource* _tmp2_;
	BoxesWizardSource* _tmp3_;
	GtkEntry* _tmp4_;
	BoxesWizardSource* _tmp5_;
#line 189 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	parent_class = G_OBJECT_CLASS (boxes_wizard_parent_class);
#line 189 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 189 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD, BoxesWizard);
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = boxes_media_manager_get_instance ();
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->media_manager);
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->media_manager = _tmp0_;
#line 191 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = self->priv->wizard_source;
#line 191 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object ((GObject*) _tmp1_, "notify::page", (GCallback) _boxes_wizard_wizard_source_update_next_g_object_notify, self, 0);
#line 192 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = self->priv->wizard_source;
#line 192 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object ((GObject*) _tmp2_, "notify::selected", (GCallback) _boxes_wizard_wizard_source_update_next_g_object_notify, self, 0);
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = self->priv->wizard_source;
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = _tmp3_->url_entry;
#line 193 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object ((GtkEditable*) _tmp4_, "changed", (GCallback) _boxes_wizard_wizard_source_update_next_gtk_editable_changed, self, 0);
#line 194 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object ((GObject*) self, "notify::ui-state", (GCallback) _boxes_wizard_ui_state_changed_g_object_notify, self, 0);
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = self->priv->wizard_source;
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_object (_tmp5_, "activated", (GCallback) __boxes_wizard___lambda145__boxes_wizard_source_activated, self, 0);
#line 201 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_stack_set_transition_type ((GtkStack*) self, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT);
#line 189 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return obj;
#line 6341 "wizard.c"
}


static void
boxes_wizard_class_init (BoxesWizardClass * klass)
{
	gint BoxesWizard_private_offset;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_parent_class = g_type_class_peek_parent (klass);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardPrivate));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_wizard_get_property;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_wizard_set_property;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_wizard_constructor;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_finalize;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_PREVIOUS_UI_STATE_PROPERTY, boxes_wizard_properties[BOXES_WIZARD_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 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_UI_STATE_PROPERTY, boxes_wizard_properties[BOXES_WIZARD_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 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_MACHINE_PROPERTY, boxes_wizard_properties[BOXES_WIZARD_MACHINE_PROPERTY] = g_param_spec_object ("machine", "machine", "machine", BOXES_TYPE_MACHINE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_PAGE_PROPERTY, boxes_wizard_properties[BOXES_WIZARD_PAGE_PROPERTY] = g_param_spec_enum ("page", "page", "page", BOXES_TYPE_WIZARD_PAGE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	BoxesWizard_private_offset = g_type_class_get_instance_private_offset (klass);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard.ui");
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "wizard_source", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, wizard_source));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "summary", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, summary));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "prep_progress", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, prep_progress));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "prep_media_label", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, prep_media_label));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "prep_status_label", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, prep_status_label));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "setup_box", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, setup_box));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "review_label", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, review_label));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "nokvm_infobar", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, nokvm_infobar));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "installer_image", FALSE, BoxesWizard_private_offset + G_STRUCT_OFFSET (BoxesWizardPrivate, installer_image));
#line 6391 "wizard.c"
}


static void
boxes_wizard_boxes_ui_interface_init (BoxesUIIface * iface)
{
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_boxes_ui_parent_iface = g_type_interface_peek_parent (iface);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	iface->get_previous_ui_state = boxes_wizard_real_get_previous_ui_state;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	iface->set_previous_ui_state = boxes_wizard_real_set_previous_ui_state;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	iface->get_ui_state = boxes_wizard_real_get_ui_state;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	iface->set_ui_state = boxes_wizard_real_set_ui_state;
#line 6408 "wizard.c"
}


static void
boxes_wizard_instance_init (BoxesWizard * self)
{
	GCancellable* _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv = BOXES_WIZARD_GET_PRIVATE (self);
#line 56 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = g_cancellable_new ();
#line 56 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->prepare_cancellable = _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_type_ensure (BOXES_TYPE_WIZARD_SOURCE);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_type_ensure (BOXES_TYPE_WIZARD_SUMMARY);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 6428 "wizard.c"
}


static void
boxes_wizard_finalize (GObject * obj)
{
	BoxesWizard * self;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD, BoxesWizard);
#line 21 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->cancel_button);
#line 22 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->back_button);
#line 23 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->next_button);
#line 24 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->continue_button);
#line 25 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->create_button);
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->source);
#line 29 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->wizard_source);
#line 31 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->summary);
#line 33 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->prep_progress);
#line 35 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->prep_media_label);
#line 37 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->prep_status_label);
#line 39 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->setup_box);
#line 41 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->review_label);
#line 43 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->nokvm_infobar);
#line 45 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->installer_image);
#line 47 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->window);
#line 50 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->media_manager);
#line 52 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_boxes_vm_creator_unref0 (self->priv->vm_creator);
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->_machine);
#line 56 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->prepare_cancellable);
#line 57 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (self->priv->review_cancellable);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (boxes_wizard_parent_class)->finalize (obj);
#line 6482 "wizard.c"
}


GType
boxes_wizard_get_type (void)
{
	static volatile gsize boxes_wizard_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizard), 0, (GInstanceInitFunc) boxes_wizard_instance_init, NULL };
		static const GInterfaceInfo boxes_ui_info = { (GInterfaceInitFunc) boxes_wizard_boxes_ui_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_wizard_type_id;
		boxes_wizard_type_id = g_type_register_static (gtk_stack_get_type (), "BoxesWizard", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_wizard_type_id, BOXES_TYPE_UI, &boxes_ui_info);
		g_once_init_leave (&boxes_wizard_type_id__volatile, boxes_wizard_type_id);
	}
	return boxes_wizard_type_id__volatile;
}


static void
_vala_boxes_wizard_get_property (GObject * object,
                                 guint property_id,
                                 GValue * value,
                                 GParamSpec * pspec)
{
	BoxesWizard * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD, BoxesWizard);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (property_id) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_PREVIOUS_UI_STATE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state ((BoxesUI*) self));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_UI_STATE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state ((BoxesUI*) self));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_MACHINE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_value_set_object (value, boxes_wizard_get_machine (self));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_PAGE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_value_set_enum (value, boxes_wizard_get_page (self));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 6536 "wizard.c"
		default:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 6542 "wizard.c"
	}
}


static void
_vala_boxes_wizard_set_property (GObject * object,
                                 guint property_id,
                                 const GValue * value,
                                 GParamSpec * pspec)
{
	BoxesWizard * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD, BoxesWizard);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	switch (property_id) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_PREVIOUS_UI_STATE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_ui_set_previous_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_UI_STATE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_ui_set_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_MACHINE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_machine (self, g_value_get_object (value));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		case BOXES_WIZARD_PAGE_PROPERTY:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		boxes_wizard_set_page (self, g_value_get_enum (value));
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 6581 "wizard.c"
		default:
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 13 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		break;
#line 6587 "wizard.c"
	}
}


void
boxes_wizard_summary_add_property (BoxesWizardSummary* self,
                                   const gchar* name,
                                   const gchar* value)
{
	GtkLabel* label_name = NULL;
	GtkLabel* _tmp0_;
	GtkLabel* _tmp1_;
	GtkStyleContext* _tmp2_;
	GtkLabel* _tmp3_;
	GtkLabel* _tmp4_;
	gint _tmp5_;
	GtkLabel* label_value = NULL;
	GtkLabel* _tmp6_;
	GtkLabel* _tmp7_;
	GtkLabel* _tmp8_;
	GtkLabel* _tmp9_;
	GtkLabel* _tmp10_;
	gint _tmp11_;
	gint _tmp12_;
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (name != NULL);
#line 695 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (value == NULL) {
#line 696 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 6620 "wizard.c"
	}
#line 698 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = (GtkLabel*) gtk_label_new (name);
#line 698 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_ref_sink (_tmp0_);
#line 698 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	label_name = _tmp0_;
#line 699 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = label_name;
#line 699 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = gtk_widget_get_style_context ((GtkWidget*) _tmp1_);
#line 699 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_style_context_add_class (_tmp2_, "dim-label");
#line 700 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = label_name;
#line 700 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp3_, GTK_ALIGN_END);
#line 701 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = label_name;
#line 701 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = self->priv->current_row;
#line 701 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp4_, 0, _tmp5_, 1, 1);
#line 703 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp6_ = (GtkLabel*) gtk_label_new (value);
#line 703 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_ref_sink (_tmp6_);
#line 703 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	label_value = _tmp6_;
#line 704 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp7_ = label_value;
#line 704 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_label_set_ellipsize (_tmp7_, PANGO_ELLIPSIZE_END);
#line 705 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp8_ = label_value;
#line 705 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_label_set_max_width_chars (_tmp8_, 32);
#line 706 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp9_ = label_value;
#line 706 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp9_, GTK_ALIGN_START);
#line 707 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp10_ = label_value;
#line 707 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp11_ = self->priv->current_row;
#line 707 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp10_, 1, _tmp11_, 1, 1);
#line 709 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp12_ = self->priv->current_row;
#line 709 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->current_row = _tmp12_ + 1;
#line 710 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_show_all ((GtkWidget*) self);
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (label_value);
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (label_name);
#line 6678 "wizard.c"
}


static Block99Data*
block99_data_ref (Block99Data* _data99_)
{
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_atomic_int_inc (&_data99_->_ref_count_);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return _data99_;
#line 6689 "wizard.c"
}


static void
block99_data_unref (void * _userdata_)
{
	Block99Data* _data99_;
	_data99_ = (Block99Data*) _userdata_;
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (g_atomic_int_dec_and_test (&_data99_->_ref_count_)) {
#line 6700 "wizard.c"
		BoxesWizardSummary* self;
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		self = _data99_->self;
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_object_unref0 (self);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		g_slice_free (Block99Data, _data99_);
#line 6708 "wizard.c"
	}
}


static void
__lambda71_ (Block99Data* _data99_)
{
	BoxesWizardSummary* self;
#line 722 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = _data99_->self;
#line 722 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data99_->customize_func (_data99_->customize_func_target);
#line 6721 "wizard.c"
}


static void
___lambda71__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 722 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	__lambda71_ (self);
#line 6731 "wizard.c"
}


void
boxes_wizard_summary_append_customize_button (BoxesWizardSummary* self,
                                              BoxesWizardSummaryCustomizeFunc customize_func,
                                              void* customize_func_target)
{
	Block99Data* _data99_;
	gint _tmp0_;
	GtkButton* button = NULL;
	GtkButton* _tmp1_;
	GtkButton* _tmp2_;
	gint _tmp3_;
	GtkButton* _tmp4_;
	GtkButton* _tmp5_;
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data99_ = g_slice_new0 (Block99Data);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data99_->_ref_count_ = 1;
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data99_->self = g_object_ref (self);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data99_->customize_func = customize_func;
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data99_->customize_func_target = customize_func_target;
#line 715 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = self->priv->current_row;
#line 715 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	if (_tmp0_ == 0) {
#line 716 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		block99_data_unref (_data99_);
#line 716 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_data99_ = NULL;
#line 716 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		return;
#line 6770 "wizard.c"
	}
#line 718 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp1_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("C_ustomize…"));
#line 718 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_object_ref_sink (_tmp1_);
#line 718 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	button = _tmp1_;
#line 719 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp2_ = button;
#line 719 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp3_ = self->priv->current_row;
#line 719 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp2_, 2, _tmp3_ - 1, 1, 1);
#line 720 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp4_ = button;
#line 720 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_show ((GtkWidget*) _tmp4_);
#line 722 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp5_ = button;
#line 722 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_signal_connect_data (_tmp5_, "clicked", (GCallback) ___lambda71__gtk_button_clicked, block99_data_ref (_data99_), (GClosureNotify) block99_data_unref, 0);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_g_object_unref0 (button);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	block99_data_unref (_data99_);
#line 713 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_data99_ = NULL;
#line 6798 "wizard.c"
}


void
boxes_wizard_summary_clear (BoxesWizardSummary* self)
{
	GList* _tmp0_;
#line 725 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_return_if_fail (self != NULL);
#line 726 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	_tmp0_ = gtk_container_get_children ((GtkContainer*) self);
#line 6810 "wizard.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 726 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		child_collection = _tmp0_;
#line 726 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 6818 "wizard.c"
			GtkWidget* child = NULL;
#line 726 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
			child = (GtkWidget*) child_it->data;
#line 6822 "wizard.c"
			{
				GtkWidget* _tmp1_;
#line 727 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				_tmp1_ = child;
#line 727 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
				gtk_container_remove ((GtkContainer*) self, _tmp1_);
#line 6829 "wizard.c"
			}
		}
#line 726 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
		_g_list_free0 (child_collection);
#line 6834 "wizard.c"
	}
#line 730 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->current_row = 0;
#line 6838 "wizard.c"
}


BoxesWizardSummary*
boxes_wizard_summary_construct (GType object_type)
{
	BoxesWizardSummary * self = NULL;
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = (BoxesWizardSummary*) g_object_new (object_type, NULL);
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return self;
#line 6850 "wizard.c"
}


BoxesWizardSummary*
boxes_wizard_summary_new (void)
{
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return boxes_wizard_summary_construct (BOXES_TYPE_WIZARD_SUMMARY);
#line 6859 "wizard.c"
}


static GObject *
boxes_wizard_summary_constructor (GType type,
                                  guint n_construct_properties,
                                  GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	BoxesWizardSummary * self;
#line 690 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	parent_class = G_OBJECT_CLASS (boxes_wizard_summary_parent_class);
#line 690 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 690 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_SUMMARY, BoxesWizardSummary);
#line 691 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv->current_row = 0;
#line 690 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	return obj;
#line 6881 "wizard.c"
}


static void
boxes_wizard_summary_class_init (BoxesWizardSummaryClass * klass)
{
	gint BoxesWizardSummary_private_offset;
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	boxes_wizard_summary_parent_class = g_type_class_peek_parent (klass);
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardSummaryPrivate));
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_wizard_summary_constructor;
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_summary_finalize;
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	BoxesWizardSummary_private_offset = g_type_class_get_instance_private_offset (klass);
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard-summary.ui");
#line 6901 "wizard.c"
}


static void
boxes_wizard_summary_instance_init (BoxesWizardSummary * self)
{
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self->priv = BOXES_WIZARD_SUMMARY_GET_PRIVATE (self);
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 6912 "wizard.c"
}


static void
boxes_wizard_summary_finalize (GObject * obj)
{
	BoxesWizardSummary * self;
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_SUMMARY, BoxesWizardSummary);
#line 685 "/home/fborges/checkout/gnome-boxes/src/wizard.vala"
	G_OBJECT_CLASS (boxes_wizard_summary_parent_class)->finalize (obj);
#line 6924 "wizard.c"
}


GType
boxes_wizard_summary_get_type (void)
{
	static volatile gsize boxes_wizard_summary_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_summary_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardSummaryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_summary_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizardSummary), 0, (GInstanceInitFunc) boxes_wizard_summary_instance_init, NULL };
		GType boxes_wizard_summary_type_id;
		boxes_wizard_summary_type_id = g_type_register_static (gtk_grid_get_type (), "BoxesWizardSummary", &g_define_type_info, 0);
		g_once_init_leave (&boxes_wizard_summary_type_id__volatile, boxes_wizard_summary_type_id);
	}
	return boxes_wizard_summary_type_id__volatile;
}



