/* wizard-source.c generated by valac 0.39.5, the Vala compiler
 * generated from wizard-source.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <osinfo/osinfo.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <libcommon.h>
#include <webkit2/webkit2.h>
#include <gdk/gdk.h>
#include <float.h>
#include <math.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libsoup/soup.h>


#define BOXES_TYPE_SOURCE_PAGE (boxes_source_page_get_type ())

#define BOXES_TYPE_WIZARD_SCROLLED (boxes_wizard_scrolled_get_type ())
#define BOXES_WIZARD_SCROLLED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_SCROLLED, BoxesWizardScrolled))
#define BOXES_WIZARD_SCROLLED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_SCROLLED, BoxesWizardScrolledClass))
#define BOXES_IS_WIZARD_SCROLLED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_SCROLLED))
#define BOXES_IS_WIZARD_SCROLLED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_SCROLLED))
#define BOXES_WIZARD_SCROLLED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_SCROLLED, BoxesWizardScrolledClass))

typedef struct _BoxesWizardScrolled BoxesWizardScrolled;
typedef struct _BoxesWizardScrolledClass BoxesWizardScrolledClass;
typedef struct _BoxesWizardScrolledPrivate BoxesWizardScrolledPrivate;
enum  {
	BOXES_WIZARD_SCROLLED_0_PROPERTY,
	BOXES_WIZARD_SCROLLED_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_scrolled_properties[BOXES_WIZARD_SCROLLED_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

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

typedef struct _BoxesWizardDownloadableEntry BoxesWizardDownloadableEntry;
typedef struct _BoxesWizardDownloadableEntryClass BoxesWizardDownloadableEntryClass;
typedef struct _BoxesWizardDownloadableEntryPrivate BoxesWizardDownloadableEntryPrivate;
enum  {
	BOXES_WIZARD_DOWNLOADABLE_ENTRY_0_PROPERTY,
	BOXES_WIZARD_DOWNLOADABLE_ENTRY_TITLE_PROPERTY,
	BOXES_WIZARD_DOWNLOADABLE_ENTRY_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_downloadable_entry_properties[BOXES_WIZARD_DOWNLOADABLE_ENTRY_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define BOXES_TYPE_WIZARD_MEDIA_ENTRY (boxes_wizard_media_entry_get_type ())
#define BOXES_WIZARD_MEDIA_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_MEDIA_ENTRY, BoxesWizardMediaEntry))
#define BOXES_WIZARD_MEDIA_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_MEDIA_ENTRY, BoxesWizardMediaEntryClass))
#define BOXES_IS_WIZARD_MEDIA_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_MEDIA_ENTRY))
#define BOXES_IS_WIZARD_MEDIA_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_MEDIA_ENTRY))
#define BOXES_WIZARD_MEDIA_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_MEDIA_ENTRY, BoxesWizardMediaEntryClass))

typedef struct _BoxesWizardMediaEntry BoxesWizardMediaEntry;
typedef struct _BoxesWizardMediaEntryClass BoxesWizardMediaEntryClass;
typedef struct _BoxesWizardMediaEntryPrivate BoxesWizardMediaEntryPrivate;

#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;
enum  {
	BOXES_WIZARD_MEDIA_ENTRY_0_PROPERTY,
	BOXES_WIZARD_MEDIA_ENTRY_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_media_entry_properties[BOXES_WIZARD_MEDIA_ENTRY_NUM_PROPERTIES];
typedef struct _BoxesInstallerMediaPrivate BoxesInstallerMediaPrivate;

#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_WIZARD_WEB_VIEW (boxes_wizard_web_view_get_type ())
#define BOXES_WIZARD_WEB_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_WEB_VIEW, BoxesWizardWebView))
#define BOXES_WIZARD_WEB_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_WEB_VIEW, BoxesWizardWebViewClass))
#define BOXES_IS_WIZARD_WEB_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_WEB_VIEW))
#define BOXES_IS_WIZARD_WEB_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_WEB_VIEW))
#define BOXES_WIZARD_WEB_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_WEB_VIEW, BoxesWizardWebViewClass))

typedef struct _BoxesWizardWebView BoxesWizardWebView;
typedef struct _BoxesWizardWebViewClass BoxesWizardWebViewClass;
typedef struct _BoxesWizardWebViewPrivate BoxesWizardWebViewPrivate;
enum  {
	BOXES_WIZARD_WEB_VIEW_0_PROPERTY,
	BOXES_WIZARD_WEB_VIEW_VIEW_PROPERTY,
	BOXES_WIZARD_WEB_VIEW_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_web_view_properties[BOXES_WIZARD_WEB_VIEW_NUM_PROPERTIES];
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#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;
typedef struct _BoxesWizardSourcePrivate BoxesWizardSourcePrivate;

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

#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;
enum  {
	BOXES_WIZARD_SOURCE_0_PROPERTY,
	BOXES_WIZARD_SOURCE_SELECTED_PROPERTY,
	BOXES_WIZARD_SOURCE_URI_PROPERTY,
	BOXES_WIZARD_SOURCE_INSTALL_MEDIA_PROPERTY,
	BOXES_WIZARD_SOURCE_LIBVIRT_SYS_IMPORTER_PROPERTY,
	BOXES_WIZARD_SOURCE_FILENAME_PROPERTY,
	BOXES_WIZARD_SOURCE_DOWNLOAD_REQUIRED_PROPERTY,
	BOXES_WIZARD_SOURCE_PAGE_PROPERTY,
	BOXES_WIZARD_SOURCE_NUM_PROPERTIES
};
static GParamSpec* boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_NUM_PROPERTIES];
#define __vala_GtkTreeRowReference_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreeRowReference_free (var), NULL)))
typedef struct _Block93Data Block93Data;

#define BOXES_OS_DATABASE_TYPE_MEDIA_UR_LS_COLUMNS (boxes_os_database_media_ur_ls_columns_get_type ())

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

typedef struct _BoxesOSDatabase BoxesOSDatabase;
typedef struct _BoxesOSDatabaseClass BoxesOSDatabaseClass;
typedef struct _Block94Data Block94Data;
typedef struct _Block95Data Block95Data;
typedef struct _Block96Data Block96Data;
typedef struct _BoxesWizardSourceAddMediaEntriesData BoxesWizardSourceAddMediaEntriesData;
typedef struct _BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData;

#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 ())
typedef struct _BoxesAppWindowPrivate BoxesAppWindowPrivate;

#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_PROPERTIES_WINDOW (boxes_properties_window_get_type ())
#define BOXES_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindow))
#define BOXES_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))
#define BOXES_IS_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_IS_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))

typedef struct _BoxesPropertiesWindow BoxesPropertiesWindow;
typedef struct _BoxesPropertiesWindowClass BoxesPropertiesWindowClass;

#define BOXES_TYPE_SEARCHBAR (boxes_searchbar_get_type ())
#define BOXES_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbar))
#define BOXES_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))
#define BOXES_IS_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SEARCHBAR))
#define BOXES_IS_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SEARCHBAR))
#define BOXES_SEARCHBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))

typedef struct _BoxesSearchbar BoxesSearchbar;
typedef struct _BoxesSearchbarClass BoxesSearchbarClass;

#define BOXES_TYPE_TOPBAR (boxes_topbar_get_type ())
#define BOXES_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TOPBAR, BoxesTopbar))
#define BOXES_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TOPBAR, BoxesTopbarClass))
#define BOXES_IS_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TOPBAR))
#define BOXES_IS_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TOPBAR))
#define BOXES_TOPBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TOPBAR, BoxesTopbarClass))

typedef struct _BoxesTopbar BoxesTopbar;
typedef struct _BoxesTopbarClass BoxesTopbarClass;

#define BOXES_TYPE_SELECTIONBAR (boxes_selectionbar_get_type ())
#define BOXES_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbar))
#define BOXES_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))
#define BOXES_IS_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SELECTIONBAR))
#define BOXES_IS_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SELECTIONBAR))
#define BOXES_SELECTIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))

typedef struct _BoxesSelectionbar BoxesSelectionbar;
typedef struct _BoxesSelectionbarClass BoxesSelectionbarClass;

#define BOXES_TYPE_DISPLAY_PAGE (boxes_display_page_get_type ())
#define BOXES_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPage))
#define BOXES_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))
#define BOXES_IS_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_IS_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_DISPLAY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))

typedef struct _BoxesDisplayPage BoxesDisplayPage;
typedef struct _BoxesDisplayPageClass BoxesDisplayPageClass;

#define BOXES_TYPE_EMPTY_BOXES (boxes_empty_boxes_get_type ())
#define BOXES_EMPTY_BOXES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxes))
#define BOXES_EMPTY_BOXES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxesClass))
#define BOXES_IS_EMPTY_BOXES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_EMPTY_BOXES))
#define BOXES_IS_EMPTY_BOXES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_EMPTY_BOXES))
#define BOXES_EMPTY_BOXES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxesClass))

typedef struct _BoxesEmptyBoxes BoxesEmptyBoxes;
typedef struct _BoxesEmptyBoxesClass BoxesEmptyBoxesClass;

#define BOXES_TYPE_TROUBLESHOOT_VIEW (boxes_troubleshoot_view_get_type ())
#define BOXES_TROUBLESHOOT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootView))
#define BOXES_TROUBLESHOOT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootViewClass))
#define BOXES_IS_TROUBLESHOOT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW))
#define BOXES_IS_TROUBLESHOOT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TROUBLESHOOT_VIEW))
#define BOXES_TROUBLESHOOT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootViewClass))

typedef struct _BoxesTroubleshootView BoxesTroubleshootView;
typedef struct _BoxesTroubleshootViewClass BoxesTroubleshootViewClass;
#define __vala_WebKitNavigationAction_free0(var) ((var == NULL) ? NULL : (var = (_vala_WebKitNavigationAction_free (var), NULL)))
#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define __vala_GtkTreePath_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL)))
enum  {
	BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL,
	BOXES_WIZARD_SOURCE_NUM_SIGNALS
};
static guint boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_NUM_SIGNALS] = {0};
#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_SOURCE_PAGE_MAIN,
	BOXES_SOURCE_PAGE_RHEL_WEB_VIEW,
	BOXES_SOURCE_PAGE_URL,
	BOXES_SOURCE_PAGE_DOWNLOADS,
	BOXES_SOURCE_PAGE_LAST
} BoxesSourcePage;

typedef gboolean (*ClickedFunc) (void* user_data);
struct _BoxesWizardScrolled {
	GtkScrolledWindow parent_instance;
	BoxesWizardScrolledPrivate * priv;
	GtkListBox* vbox;
};

struct _BoxesWizardScrolledClass {
	GtkScrolledWindowClass parent_class;
};

struct _BoxesWizardScrolledPrivate {
	gint _num_visible;
};

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

struct _BoxesWizardDownloadableEntryClass {
	GtkListBoxRowClass parent_class;
};

struct _BoxesWizardDownloadableEntryPrivate {
	GtkImage* media_image;
	GtkLabel* title_label;
	GtkLabel* details_label;
};

struct _BoxesWizardMediaEntry {
	GtkListBoxRow parent_instance;
	BoxesWizardMediaEntryPrivate * priv;
	BoxesInstallerMedia* media;
};

struct _BoxesWizardMediaEntryClass {
	GtkListBoxRowClass parent_class;
};

struct _BoxesWizardMediaEntryPrivate {
	GtkImage* media_image;
	GtkLabel* title_label;
	GtkLabel* details_label;
};

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);
	gboolean (*get_eject_after_install) (BoxesInstallerMedia* self);
	gchar* (*get_architecture) (BoxesInstallerMedia* self);
};

struct _BoxesWizardWebView {
	GtkBin parent_instance;
	BoxesWizardWebViewPrivate * priv;
};

struct _BoxesWizardWebViewClass {
	GtkBinClass parent_class;
};

struct _BoxesWizardWebViewPrivate {
	GtkProgressBar* progress_bar;
	WebKitWebView* web_view;
	guint hide_progress_bar_id;
};

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

struct _BoxesWizardSourceClass {
	GtkStackClass parent_class;
};

struct _BoxesWizardSourcePrivate {
	GtkWidget* _selected;
	BoxesInstallerMedia* _install_media;
	BoxesLibvirtSystemImporter* _libvirt_sys_importer;
	GtkBox* main_vbox;
	BoxesWizardScrolled* media_scrolled;
	BoxesWizardScrolled* downloads_scrolled;
	GtkBox* url_entry_vbox;
	GtkButton* select_file_button;
	GtkButton* libvirt_sys_import_button;
	GtkLabel* libvirt_sys_import_label;
	GtkListBoxRow* install_rhel_button;
	GtkImage* install_rhel_image;
	BoxesWizardWebView* rhel_web_view;
	BoxesAppWindow* window;
	GtkListBox* media_vbox;
	GtkListBox* downloads_vbox;
	GtkListStore* media_urls_store;
	GCancellable* rhel_cancellable;
	GtkTreeRowReference* rhel_os_row_reference;
	OsinfoOs* rhel_os;
	gchar* _filename;
	gchar** recommended_downloads;
	gint recommended_downloads_length1;
	gint _recommended_downloads_size_;
	BoxesSourcePage _page;
};

struct _Block93Data {
	int _ref_count_;
	BoxesWizardSource* self;
	OsinfoOs* os;
	gchar* uri;
};

typedef enum  {
	BOXES_OS_DATABASE_MEDIA_UR_LS_COLUMNS_URL = 0,
	BOXES_OS_DATABASE_MEDIA_UR_LS_COLUMNS_OS = 1,
	BOXES_OS_DATABASE_MEDIA_UR_LS_COLUMNS_LAST
} BoxesOSDatabaseMediaURLsColumns;

struct _Block94Data {
	int _ref_count_;
	BoxesWizardSource* self;
	BoxesOSDatabase* os_db;
	gchar* rhel_id;
};

typedef enum  {
	BOXES_OS_DATABASE_ERROR_NON_BOOTABLE,
	BOXES_OS_DATABASE_ERROR_DB_LOADING_FAILED,
	BOXES_OS_DATABASE_ERROR_UNKNOWN_OS_ID,
	BOXES_OS_DATABASE_ERROR_UNKNOWN_MEDIA_ID
} BoxesOSDatabaseError;
#define BOXES_OS_DATABASE_ERROR boxes_os_database_error_quark ()
struct _Block95Data {
	int _ref_count_;
	BoxesWizardSource* self;
	BoxesOSDatabase* os_db;
};

struct _Block96Data {
	int _ref_count_;
	Block95Data * _data95_;
	gchar* os_id;
};

struct _BoxesWizardSourceAddMediaEntriesData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesWizardSource* self;
	GList* medias;
	BoxesMediaManager* _tmp0_;
	GList* _tmp1_;
	GtkListBox* _tmp2_;
	GList* _tmp3_;
	GList* child_collection;
	GList* child_it;
	GtkWidget* child;
	BoxesInstallerMedia* child_media;
	GtkWidget* _tmp4_;
	BoxesInstallerMedia* _tmp5_;
	BoxesInstallerMedia* _tmp6_;
	gboolean obsolete;
	GList* _tmp7_;
	GList* media_collection;
	GList* media_it;
	BoxesInstallerMedia* _tmp8_;
	BoxesInstallerMedia* media;
	BoxesInstallerMedia* _tmp9_;
	const gchar* _tmp10_;
	BoxesInstallerMedia* _tmp11_;
	const gchar* _tmp12_;
	gboolean _tmp13_;
	GtkListBox* _tmp14_;
	GtkWidget* _tmp15_;
	GList* _tmp16_;
	GList* _vala1_media_collection;
	GList* _vala1_media_it;
	BoxesInstallerMedia* _tmp17_;
	BoxesInstallerMedia* _vala1_media;
	gboolean nouveau;
	GtkListBox* _tmp18_;
	GList* _tmp19_;
	GList* _vala1_child_collection;
	GList* _vala1_child_it;
	GtkWidget* _vala1_child;
	BoxesInstallerMedia* _vala1_child_media;
	GtkWidget* _tmp20_;
	BoxesInstallerMedia* _tmp21_;
	BoxesInstallerMedia* _tmp22_;
	BoxesInstallerMedia* _tmp23_;
	const gchar* _tmp24_;
	BoxesInstallerMedia* _tmp25_;
	const gchar* _tmp26_;
	gboolean _tmp27_;
	BoxesInstallerMedia* _tmp28_;
	GtkListBox* _tmp29_;
	GList* _tmp30_;
	GList* _tmp31_;
	gboolean _tmp32_;
	BoxesWizardScrolled* _tmp33_;
};

struct _BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesWizardSource* self;
	BoxesLibvirtSystemImporter* _tmp0_;
	BoxesLibvirtSystemImporter* _tmp1_;
	GError* _error_;
	GError* _tmp2_;
	const gchar* _tmp3_;
	GtkLabel* _tmp4_;
	BoxesLibvirtSystemImporter* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	GtkButton* _tmp9_;
	GError * _inner_error_;
};

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

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

struct _BoxesAppWindow {
	GtkApplicationWindow parent_instance;
	BoxesAppWindowPrivate * priv;
	BoxesWizardWindow* wizard_window;
	BoxesPropertiesWindow* props_window;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesSelectionbar* selectionbar;
	BoxesDisplayPage* display_page;
	BoxesEmptyBoxes* empty_boxes;
	BoxesTroubleshootView* troubleshoot_view;
	GtkStack* below_bin;
	GSettings* settings;
};

struct _BoxesAppWindowClass {
	GtkApplicationWindowClass parent_class;
};

typedef void (*BoxesWizardWindowFileChosenFunc) (const gchar* uri, void* user_data);
typedef void (*BoxesWizardWindowDownloadChosenFunc) (const gchar* uri, void* user_data);
typedef void (*BoxesWizardWindowCustomDownloadChosenFunc) (void* user_data);

static gpointer boxes_wizard_scrolled_parent_class = NULL;
static gpointer boxes_wizard_downloadable_entry_parent_class = NULL;
static gpointer boxes_wizard_media_entry_parent_class = NULL;
static gpointer boxes_wizard_web_view_parent_class = NULL;
static gpointer boxes_wizard_source_parent_class = NULL;
extern gchar** boxes_downloader_supported_schemes;
extern gint boxes_downloader_supported_schemes_length1;

GType boxes_source_page_get_type (void) G_GNUC_CONST;
GType boxes_wizard_scrolled_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_SCROLLED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_SCROLLED, BoxesWizardScrolledPrivate))
void boxes_wizard_scrolled_setup (BoxesWizardScrolled* self,
                                  gint num_visible);
static void boxes_wizard_scrolled_set_num_visible (BoxesWizardScrolled* self,
                                            gint value);
static void __lambda60_ (BoxesWizardScrolled* self);
static void ___lambda60__g_object_notify (GObject* _sender,
                                   GParamSpec* pspec,
                                   gpointer self);
static void __lambda61_ (BoxesWizardScrolled* self);
static void ___lambda61__gtk_widget_show (GtkWidget* _sender,
                                   gpointer self);
static void __lambda62_ (BoxesWizardScrolled* self);
static void ___lambda62__gtk_widget_hide (GtkWidget* _sender,
                                   gpointer self);
static void boxes_wizard_scrolled_real_get_preferred_height (GtkWidget* base,
                                                      gint* minimum_height,
                                                      gint* natural_height);
static gint boxes_wizard_scrolled_get_num_visible (BoxesWizardScrolled* self);
BoxesWizardScrolled* boxes_wizard_scrolled_new (void);
BoxesWizardScrolled* boxes_wizard_scrolled_construct (GType object_type);
static void boxes_wizard_scrolled_finalize (GObject * obj);
static void _vala_boxes_wizard_scrolled_get_property (GObject * object,
                                               guint property_id,
                                               GValue * value,
                                               GParamSpec * pspec);
static void _vala_boxes_wizard_scrolled_set_property (GObject * object,
                                               guint property_id,
                                               const GValue * value,
                                               GParamSpec * pspec);
GType boxes_wizard_downloadable_entry_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_DOWNLOADABLE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY, BoxesWizardDownloadableEntryPrivate))
BoxesWizardDownloadableEntry* boxes_wizard_downloadable_entry_new (OsinfoMedia* media);
BoxesWizardDownloadableEntry* boxes_wizard_downloadable_entry_construct (GType object_type,
                                                                         OsinfoMedia* media);
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_);
static void boxes_wizard_downloadable_entry_setup_label (BoxesWizardDownloadableEntry* self,
                                                  OsinfoMedia* media);
const gchar* boxes_wizard_downloadable_entry_get_title (BoxesWizardDownloadableEntry* self);
static void boxes_wizard_downloadable_entry_finalize (GObject * obj);
static void _vala_boxes_wizard_downloadable_entry_get_property (GObject * object,
                                                         guint property_id,
                                                         GValue * value,
                                                         GParamSpec * pspec);
GType boxes_wizard_media_entry_get_type (void) G_GNUC_CONST;
GType boxes_installer_media_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_MEDIA_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_MEDIA_ENTRY, BoxesWizardMediaEntryPrivate))
BoxesWizardMediaEntry* boxes_wizard_media_entry_new (BoxesInstallerMedia* media);
BoxesWizardMediaEntry* boxes_wizard_media_entry_construct (GType object_type,
                                                           BoxesInstallerMedia* media);
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;
static void boxes_wizard_media_entry_finalize (GObject * obj);
GType boxes_wizard_web_view_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_WEB_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_WEB_VIEW, BoxesWizardWebViewPrivate))
#define BOXES_WIZARD_WEB_VIEW_progress_bar_id_timeout ((guint) 500)
static void boxes_wizard_web_view_real_dispose (GObject* base);
static gboolean boxes_wizard_web_view_on_context_menu (BoxesWizardWebView* self,
                                                WebKitWebView* web_view,
                                                WebKitContextMenu* context_menu,
                                                GdkEvent* event,
                                                WebKitHitTestResult* hit_test_result);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
static gboolean _boxes_wizard_web_view_on_context_menu_webkit_web_view_context_menu (WebKitWebView* _sender,
                                                                              WebKitContextMenu* context_menu,
                                                                              GdkEvent* event,
                                                                              WebKitHitTestResult* hit_test_result,
                                                                              gpointer self);
static void boxes_wizard_web_view_on_notify_estimated_load_progress (BoxesWizardWebView* self);
static gboolean ___lambda63_ (BoxesWizardWebView* self);
static gboolean ____lambda63__gsource_func (gpointer self);
static void _boxes_wizard_web_view_on_notify_estimated_load_progress_g_object_notify (GObject* _sender,
                                                                               GParamSpec* pspec,
                                                                               gpointer self);
BoxesWizardWebView* boxes_wizard_web_view_new (void);
BoxesWizardWebView* boxes_wizard_web_view_construct (GType object_type);
WebKitWebView* boxes_wizard_web_view_get_view (BoxesWizardWebView* self);
static GObject * boxes_wizard_web_view_constructor (GType type,
                                             guint n_construct_properties,
                                             GObjectConstructParam * construct_properties);
static gchar** _vala_array_dup6 (gchar** self,
                          int length);
static void boxes_wizard_web_view_finalize (GObject * obj);
static void _vala_boxes_wizard_web_view_get_property (GObject * object,
                                               guint property_id,
                                               GValue * value,
                                               GParamSpec * pspec);
GType boxes_wizard_source_get_type (void) G_GNUC_CONST;
GType boxes_media_manager_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_system_importer_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
#define BOXES_WIZARD_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSourcePrivate))
static void _vala_GtkTreeRowReference_free (GtkTreeRowReference* self);
OsinfoOs* boxes_wizard_source_get_os_from_uri (BoxesWizardSource* self,
                                               const gchar* uri);
static Block93Data* block93_data_ref (Block93Data* _data93_);
static void block93_data_unref (void * _userdata_);
static gboolean __lambda64_ (Block93Data* _data93_,
                      GtkTreeModel* store,
                      GtkTreePath* path,
                      GtkTreeIter* iter);
GType boxes_os_database_media_ur_ls_columns_get_type (void) G_GNUC_CONST;
static gboolean ___lambda64__gtk_tree_model_foreach_func (GtkTreeModel* model,
                                                   GtkTreePath* path,
                                                   GtkTreeIter* iter,
                                                   gpointer self);
static void boxes_wizard_source_real_dispose (GObject* base);
void boxes_wizard_source_setup_ui (BoxesWizardSource* self,
                                   BoxesAppWindow* window);
GType boxes_os_database_get_type (void) G_GNUC_CONST;
static Block94Data* block94_data_ref (Block94Data* _data94_);
static void block94_data_unref (void * _userdata_);
BoxesOSDatabase* boxes_media_manager_get_os_db (BoxesMediaManager* self);
void boxes_os_database_get_os_by_id (BoxesOSDatabase* self,
                                     const gchar* id,
                                     GAsyncReadyCallback _callback_,
                                     gpointer _user_data_);
GQuark boxes_os_database_error_quark (void);
OsinfoOs* boxes_os_database_get_os_by_id_finish (BoxesOSDatabase* self,
                                                 GAsyncResult* _res_,
                                                 GError** error);
static void __lambda65_ (Block94Data* _data94_,
                  GObject* obj,
                  GAsyncResult* res);
static void __lambda73_ (BoxesWizardSource* self,
                  GObject* obj,
                  GAsyncResult* res);
static void ___lambda73__gasync_ready_callback (GObject* source_object,
                                         GAsyncResult* res,
                                         gpointer self);
static void ___lambda65__gasync_ready_callback (GObject* source_object,
                                         GAsyncResult* res,
                                         gpointer self);
static void boxes_wizard_source_on_downloads_scrolled_shown (BoxesWizardSource* self);
static Block95Data* block95_data_ref (Block95Data* _data95_);
static void block95_data_unref (void * _userdata_);
static Block96Data* block96_data_ref (Block96Data* _data96_);
static void block96_data_unref (void * _userdata_);
static void ____lambda74_ (Block96Data* _data96_,
                    GObject* obj,
                    GAsyncResult* res);
static GtkWidget* boxes_wizard_source_create_downloadable_entry (BoxesWizardSource* self,
                                                          GObject* item);
static void _____lambda74__gasync_ready_callback (GObject* source_object,
                                           GAsyncResult* res,
                                           gpointer self);
static void _boxes_wizard_source_on_downloads_scrolled_shown_gtk_widget_show (GtkWidget* _sender,
                                                                       gpointer self);
static void boxes_wizard_source_on_downloadable_entry_clicked (BoxesWizardSource* self,
                                                        GtkListBoxRow* row);
void boxes_wizard_source_set_selected (BoxesWizardSource* self,
                                       GtkWidget* value);
void boxes_wizard_source_set_uri (BoxesWizardSource* self,
                                  const gchar* value);
void boxes_wizard_source_cleanup (BoxesWizardSource* self);
void boxes_wizard_source_set_filename (BoxesWizardSource* self,
                                       const gchar* value);
static void boxes_wizard_source_set_install_media (BoxesWizardSource* self,
                                            BoxesInstallerMedia* value);
BoxesSourcePage boxes_wizard_source_get_page (BoxesWizardSource* self);
static void boxes_wizard_source_on_enter_url_button_clicked (BoxesWizardSource* self);
void boxes_wizard_source_set_page (BoxesWizardSource* self,
                                   BoxesSourcePage value);
static void _boxes_wizard_source_on_enter_url_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                          gpointer self);
static void boxes_wizard_source_on_url_entry_activated (BoxesWizardSource* self);
static void _boxes_wizard_source_on_url_entry_activated_gtk_entry_activate (GtkEntry* _sender,
                                                                     gpointer self);
static void boxes_wizard_source_on_url_back_button_clicked (BoxesWizardSource* self);
static void _boxes_wizard_source_on_url_back_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                         gpointer self);
static void boxes_wizard_source_add_media_entries_data_free (gpointer _data);
static void boxes_wizard_source_add_media_entries (BoxesWizardSource* self,
                                            GAsyncReadyCallback _callback_,
                                            gpointer _user_data_);
static void boxes_wizard_source_add_media_entries_finish (BoxesWizardSource* self,
                                                   GAsyncResult* _res_);
static gboolean boxes_wizard_source_add_media_entries_co (BoxesWizardSourceAddMediaEntriesData* _data_);
void boxes_media_manager_list_installer_medias (BoxesMediaManager* self,
                                                GAsyncReadyCallback _callback_,
                                                gpointer _user_data_);
GList* boxes_media_manager_list_installer_medias_finish (BoxesMediaManager* self,
                                                         GAsyncResult* _res_);
static void boxes_wizard_source_add_media_entries_ready (GObject* source_object,
                                                  GAsyncResult* _res_,
                                                  gpointer _user_data_);
static void boxes_wizard_source_add_media_entry (BoxesWizardSource* self,
                                          BoxesInstallerMedia* media);
static void boxes_wizard_source_update_libvirt_sytem_entry_visibility_data_free (gpointer _data);
static void boxes_wizard_source_update_libvirt_sytem_entry_visibility (BoxesWizardSource* self,
                                                                GAsyncReadyCallback _callback_,
                                                                gpointer _user_data_);
static void boxes_wizard_source_update_libvirt_sytem_entry_visibility_finish (BoxesWizardSource* self,
                                                                       GAsyncResult* _res_);
static gboolean boxes_wizard_source_update_libvirt_sytem_entry_visibility_co (BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData* _data_);
void boxes_libvirt_system_importer_new (GAsyncReadyCallback _callback_,
                                        gpointer _user_data_);
BoxesLibvirtSystemImporter* boxes_libvirt_system_importer_new_finish (GAsyncResult* _res_,
                                                                      GError** error);
void boxes_libvirt_system_importer_construct (GType object_type,
                                              GAsyncReadyCallback _callback_,
                                              gpointer _user_data_);
BoxesLibvirtSystemImporter* boxes_libvirt_system_importer_construct_finish (GAsyncResult* _res_,
                                                                            GError** error);
static void boxes_wizard_source_update_libvirt_sytem_entry_visibility_ready (GObject* source_object,
                                                                      GAsyncResult* _res_,
                                                                      gpointer _user_data_);
static void boxes_wizard_source_set_libvirt_sys_importer (BoxesWizardSource* self,
                                                   BoxesLibvirtSystemImporter* value);
BoxesLibvirtSystemImporter* boxes_wizard_source_get_libvirt_sys_importer (BoxesWizardSource* self);
gchar* boxes_libvirt_system_importer_get_wizard_menu_label (BoxesLibvirtSystemImporter* self);
static void boxes_wizard_source_on_select_file_button_clicked (BoxesWizardSource* self);
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_wizard_window_get_type (void) G_GNUC_CONST;
GType boxes_properties_window_get_type (void) G_GNUC_CONST;
GType boxes_searchbar_get_type (void) G_GNUC_CONST;
GType boxes_topbar_get_type (void) G_GNUC_CONST;
GType boxes_selectionbar_get_type (void) G_GNUC_CONST;
GType boxes_display_page_get_type (void) G_GNUC_CONST;
GType boxes_empty_boxes_get_type (void) G_GNUC_CONST;
GType boxes_troubleshoot_view_get_type (void) G_GNUC_CONST;
void boxes_wizard_window_show_file_chooser (BoxesWizardWindow* self,
                                            BoxesWizardWindowFileChosenFunc file_chosen_func,
                                            void* file_chosen_func_target,
                                            GDestroyNotify file_chosen_func_target_destroy_notify);
static void __lambda155_ (BoxesWizardSource* self,
                   const gchar* uri);
static void ___lambda155__boxes_wizard_window_file_chosen_func (const gchar* uri,
                                                         gpointer self);
static void _boxes_wizard_source_on_select_file_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                            gpointer self);
static void boxes_wizard_source_on_libvirt_sys_import_button_clicked (BoxesWizardSource* self);
static void _boxes_wizard_source_on_libvirt_sys_import_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                                   gpointer self);
static void boxes_wizard_source_on_media_selected (BoxesWizardSource* self,
                                            BoxesInstallerMedia* media);
BoxesInstallerMedia* boxes_media_manager_create_installer_media_from_media (BoxesMediaManager* self,
                                                                            BoxesInstallerMedia* media,
                                                                            GError** error);
static void boxes_wizard_source_on_download_an_os_button_clicked (BoxesWizardSource* self);
void boxes_wizard_window_show_downloads_page (BoxesWizardWindow* self,
                                              BoxesOSDatabase* os_db,
                                              BoxesWizardWindowDownloadChosenFunc download_chosen_func,
                                              void* download_chosen_func_target,
                                              GDestroyNotify download_chosen_func_target_destroy_notify);
static void __lambda158_ (BoxesWizardSource* self,
                   const gchar* uri);
static void ___lambda158__boxes_wizard_window_download_chosen_func (const gchar* uri,
                                                             gpointer self);
void boxes_wizard_window_add_custom_download (BoxesWizardWindow* self,
                                              GtkListBoxRow* row,
                                              BoxesWizardWindowCustomDownloadChosenFunc custom_download_chosen_func,
                                              void* custom_download_chosen_func_target,
                                              GDestroyNotify custom_download_chosen_func_target_destroy_notify);
static void __lambda160_ (BoxesWizardSource* self);
static void boxes_wizard_source_on_install_rhel_button_clicked (BoxesWizardSource* self);
static void ___lambda160__boxes_wizard_window_custom_download_chosen_func (gpointer self);
static void _boxes_wizard_source_on_download_an_os_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                               gpointer self);
static void __lambda161_ (BoxesWizardSource* self);
static void ___lambda161__gfunc (gconstpointer data,
                          gpointer self);
static void _boxes_wizard_source_on_install_rhel_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                             gpointer self);
static gboolean boxes_wizard_source_on_rhel_web_view_decide_policy (BoxesWizardSource* self,
                                                             WebKitWebView* web_view,
                                                             WebKitPolicyDecision* decision,
                                                             WebKitPolicyDecisionType decision_type);
static WebKitNavigationAction* _vala_WebKitNavigationAction_copy (WebKitNavigationAction* self);
static void _vala_WebKitNavigationAction_free (WebKitNavigationAction* self);
static void _vala_SoupURI_free (SoupURI* self);
static void _vala_GtkTreePath_free (GtkTreePath* self);
BoxesWizardSource* boxes_wizard_source_new (void);
BoxesWizardSource* boxes_wizard_source_construct (GType object_type);
GtkWidget* boxes_wizard_source_get_selected (BoxesWizardSource* self);
const gchar* boxes_wizard_source_get_uri (BoxesWizardSource* self);
BoxesInstallerMedia* boxes_wizard_source_get_install_media (BoxesWizardSource* self);
const gchar* boxes_wizard_source_get_filename (BoxesWizardSource* self);
gboolean boxes_wizard_source_get_download_required (BoxesWizardSource* self);
static gboolean _vala_string_array_contains (gchar* * stack,
                                      int stack_length,
                                      gchar* needle);
static GObject * boxes_wizard_source_constructor (GType type,
                                           guint n_construct_properties,
                                           GObjectConstructParam * construct_properties);
BoxesMediaManager* boxes_media_manager_get_instance (void);
static void _boxes_wizard_source___lambda162_ (BoxesWizardSource* self,
                                        GtkListBoxRow* row);
static void __boxes_wizard_source___lambda162__gtk_list_box_row_activated (GtkListBox* _sender,
                                                                    GtkListBoxRow* row,
                                                                    gpointer self);
void boxes_draw_as_css_box (GtkWidget* widget);
static void _boxes_wizard_source_on_downloadable_entry_clicked_gtk_list_box_row_activated (GtkListBox* _sender,
                                                                                    GtkListBoxRow* row,
                                                                                    gpointer self);
static gboolean _boxes_wizard_source_on_rhel_web_view_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender,
                                                                                            WebKitPolicyDecision* decision,
                                                                                            WebKitPolicyDecisionType type,
                                                                                            gpointer self);
static void boxes_wizard_source_finalize (GObject * obj);
static void _vala_boxes_wizard_source_get_property (GObject * object,
                                             guint property_id,
                                             GValue * value,
                                             GParamSpec * pspec);
static void _vala_boxes_wizard_source_set_property (GObject * object,
                                             guint property_id,
                                             const GValue * value,
                                             GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gint array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gint array_length,
                       GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);

static const gchar* BOXES_WIZARD_SOURCE_page_names[4] = {"main-page", "rhel-web-view-page", "url-page", "download-an-os-page"};

GType
boxes_source_page_get_type (void)
{
	static volatile gsize boxes_source_page_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_source_page_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_SOURCE_PAGE_MAIN, "BOXES_SOURCE_PAGE_MAIN", "main"}, {BOXES_SOURCE_PAGE_RHEL_WEB_VIEW, "BOXES_SOURCE_PAGE_RHEL_WEB_VIEW", "rhel-web-view"}, {BOXES_SOURCE_PAGE_URL, "BOXES_SOURCE_PAGE_URL", "url"}, {BOXES_SOURCE_PAGE_DOWNLOADS, "BOXES_SOURCE_PAGE_DOWNLOADS", "downloads"}, {BOXES_SOURCE_PAGE_LAST, "BOXES_SOURCE_PAGE_LAST", "last"}, {0, NULL, NULL}};
		GType boxes_source_page_type_id;
		boxes_source_page_type_id = g_enum_register_static ("BoxesSourcePage", values);
		g_once_init_leave (&boxes_source_page_type_id__volatile, boxes_source_page_type_id);
	}
	return boxes_source_page_type_id__volatile;
}


static void
__lambda60_ (BoxesWizardScrolled* self)
{
#line 29 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_queue_resize ((GtkWidget*) self);
#line 966 "wizard-source.c"
}


static void
___lambda60__g_object_notify (GObject* _sender,
                              GParamSpec* pspec,
                              gpointer self)
{
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda60_ ((BoxesWizardScrolled*) self);
#line 977 "wizard-source.c"
}


static void
__lambda61_ (BoxesWizardScrolled* self)
{
	GtkStyleContext* _tmp0_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 32 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_style_context_add_class (_tmp0_, "boxes-menu-scrolled");
#line 33 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_reset_style ((GtkWidget*) self);
#line 991 "wizard-source.c"
}


static void
___lambda61__gtk_widget_show (GtkWidget* _sender,
                              gpointer self)
{
#line 31 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda61_ ((BoxesWizardScrolled*) self);
#line 1001 "wizard-source.c"
}


static void
__lambda62_ (BoxesWizardScrolled* self)
{
	GtkStyleContext* _tmp0_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 36 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_style_context_remove_class (_tmp0_, "boxes-menu-scrolled");
#line 37 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_reset_style ((GtkWidget*) self);
#line 1015 "wizard-source.c"
}


static void
___lambda62__gtk_widget_hide (GtkWidget* _sender,
                              gpointer self)
{
#line 35 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda62_ ((BoxesWizardScrolled*) self);
#line 1025 "wizard-source.c"
}


void
boxes_wizard_scrolled_setup (BoxesWizardScrolled* self,
                             gint num_visible)
{
	GtkWidget* _tmp0_;
	GtkWidget* _tmp1_;
#line 25 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 26 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_scrolled_set_num_visible (self, num_visible);
#line 28 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_connect_object ((GObject*) self, "notify::num-visible", (GCallback) ___lambda60__g_object_notify, self, 0);
#line 31 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = gtk_scrolled_window_get_vscrollbar ((GtkScrolledWindow*) self);
#line 31 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_connect_object (_tmp0_, "show", (GCallback) ___lambda61__gtk_widget_show, self, 0);
#line 35 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = gtk_scrolled_window_get_vscrollbar ((GtkScrolledWindow*) self);
#line 35 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_connect_object (_tmp1_, "hide", (GCallback) ___lambda62__gtk_widget_hide, self, 0);
#line 1049 "wizard-source.c"
}


static void
boxes_wizard_scrolled_real_get_preferred_height (GtkWidget* base,
                                                 gint* minimum_height,
                                                 gint* natural_height)
{
	BoxesWizardScrolled * self;
	gint _vala_minimum_height = 0;
	gint _vala_natural_height = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint height = 0;
	gint i = 0;
	GtkListBox* _tmp2_;
	GList* _tmp3_;
	gint _tmp12_;
	gint _tmp13_;
	gint _tmp14_;
	gint _tmp15_;
#line 41 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardScrolled*) base;
#line 42 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	GTK_WIDGET_CLASS (boxes_wizard_scrolled_parent_class)->get_preferred_height ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), &_tmp0_, &_tmp1_);
#line 42 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_vala_minimum_height = _tmp0_;
#line 42 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_vala_natural_height = _tmp1_;
#line 44 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	height = 0;
#line 45 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	i = 0;
#line 46 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = self->vbox;
#line 46 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = gtk_container_get_children ((GtkContainer*) _tmp2_);
#line 1087 "wizard-source.c"
	{
		GList* w_collection = NULL;
		GList* w_it = NULL;
#line 46 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		w_collection = _tmp3_;
#line 46 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (w_it = w_collection; w_it != NULL; w_it = w_it->next) {
#line 1095 "wizard-source.c"
			GtkWidget* w = NULL;
#line 46 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			w = (GtkWidget*) w_it->data;
#line 1099 "wizard-source.c"
			{
				GtkWidget* _tmp4_;
				gint child_height = 0;
				GtkWidget* _tmp5_;
				gint _tmp6_ = 0;
				gint _tmp7_;
				gint _tmp8_;
				gint _tmp9_;
				gint _tmp10_;
				gint _tmp11_;
#line 47 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp4_ = w;
#line 47 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (!gtk_widget_get_visible (_tmp4_)) {
#line 48 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					continue;
#line 1116 "wizard-source.c"
				}
#line 50 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp5_ = w;
#line 50 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				gtk_widget_get_preferred_height (_tmp5_, NULL, &_tmp6_);
#line 50 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				child_height = _tmp6_;
#line 51 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp7_ = height;
#line 51 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp8_ = child_height;
#line 51 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				height = _tmp7_ + _tmp8_;
#line 52 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp9_ = i;
#line 52 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				i = _tmp9_ + 1;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp10_ = i;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp11_ = self->priv->_num_visible;
#line 53 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp10_ == _tmp11_) {
#line 54 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					break;
#line 1142 "wizard-source.c"
				}
			}
		}
#line 46 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_list_free0 (w_collection);
#line 1148 "wizard-source.c"
	}
#line 56 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp12_ = _vala_minimum_height;
#line 56 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp13_ = height;
#line 56 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_vala_minimum_height = MAX (_tmp12_, _tmp13_);
#line 57 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp14_ = _vala_natural_height;
#line 57 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp15_ = height;
#line 57 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_vala_natural_height = MAX (_tmp14_, _tmp15_);
#line 41 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (minimum_height) {
#line 41 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		*minimum_height = _vala_minimum_height;
#line 1166 "wizard-source.c"
	}
#line 41 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (natural_height) {
#line 41 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		*natural_height = _vala_natural_height;
#line 1172 "wizard-source.c"
	}
}


BoxesWizardScrolled*
boxes_wizard_scrolled_construct (GType object_type)
{
	BoxesWizardScrolled * self = NULL;
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardScrolled*) g_object_new (object_type, NULL);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return self;
#line 1185 "wizard-source.c"
}


BoxesWizardScrolled*
boxes_wizard_scrolled_new (void)
{
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return boxes_wizard_scrolled_construct (BOXES_TYPE_WIZARD_SCROLLED);
#line 1194 "wizard-source.c"
}


static gint
boxes_wizard_scrolled_get_num_visible (BoxesWizardScrolled* self)
{
	gint result;
	gint _tmp0_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 21 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->_num_visible;
#line 21 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp0_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 1211 "wizard-source.c"
}


static void
boxes_wizard_scrolled_set_num_visible (BoxesWizardScrolled* self,
                                       gint value)
{
#line 21 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 21 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->_num_visible = value;
#line 1223 "wizard-source.c"
}


static void
boxes_wizard_scrolled_class_init (BoxesWizardScrolledClass * klass)
{
	gint BoxesWizardScrolled_private_offset;
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_scrolled_parent_class = g_type_class_peek_parent (klass);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardScrolledPrivate));
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	((GtkWidgetClass *) klass)->get_preferred_height = (void (*) (GtkWidget *, gint*, gint*)) boxes_wizard_scrolled_real_get_preferred_height;
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_wizard_scrolled_get_property;
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_wizard_scrolled_set_property;
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_scrolled_finalize;
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	BoxesWizardScrolled_private_offset = g_type_class_get_instance_private_offset (klass);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard-scrolled.ui");
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "vbox", FALSE, G_STRUCT_OFFSET (BoxesWizardScrolled, vbox));
#line 1249 "wizard-source.c"
}


static void
boxes_wizard_scrolled_instance_init (BoxesWizardScrolled * self)
{
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv = BOXES_WIZARD_SCROLLED_GET_PRIVATE (self);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 1260 "wizard-source.c"
}


static void
boxes_wizard_scrolled_finalize (GObject * obj)
{
	BoxesWizardScrolled * self;
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_SCROLLED, BoxesWizardScrolled);
#line 19 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->vbox);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (boxes_wizard_scrolled_parent_class)->finalize (obj);
#line 1274 "wizard-source.c"
}


GType
boxes_wizard_scrolled_get_type (void)
{
	static volatile gsize boxes_wizard_scrolled_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_scrolled_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardScrolledClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_scrolled_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizardScrolled), 0, (GInstanceInitFunc) boxes_wizard_scrolled_instance_init, NULL };
		GType boxes_wizard_scrolled_type_id;
		boxes_wizard_scrolled_type_id = g_type_register_static (gtk_scrolled_window_get_type (), "BoxesWizardScrolled", &g_define_type_info, 0);
		g_once_init_leave (&boxes_wizard_scrolled_type_id__volatile, boxes_wizard_scrolled_type_id);
	}
	return boxes_wizard_scrolled_type_id__volatile;
}


static void
_vala_boxes_wizard_scrolled_get_property (GObject * object,
                                          guint property_id,
                                          GValue * value,
                                          GParamSpec * pspec)
{
	BoxesWizardScrolled * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_SCROLLED, BoxesWizardScrolled);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (property_id) {
#line 1302 "wizard-source.c"
		default:
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 1308 "wizard-source.c"
	}
}


static void
_vala_boxes_wizard_scrolled_set_property (GObject * object,
                                          guint property_id,
                                          const GValue * value,
                                          GParamSpec * pspec)
{
	BoxesWizardScrolled * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_SCROLLED, BoxesWizardScrolled);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (property_id) {
#line 1323 "wizard-source.c"
		default:
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 17 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 1329 "wizard-source.c"
	}
}


BoxesWizardDownloadableEntry*
boxes_wizard_downloadable_entry_construct (GType object_type,
                                           OsinfoMedia* media)
{
	BoxesWizardDownloadableEntry * self = NULL;
	GtkImage* _tmp0_;
	OsinfoOs* _tmp1_;
	OsinfoOs* _tmp2_;
	OsinfoOs* _tmp3_;
	GtkLabel* _tmp4_;
	OsinfoOs* _tmp5_;
	OsinfoOs* _tmp6_;
	OsinfoOs* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
#line 78 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (media != NULL, NULL);
#line 78 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardDownloadableEntry*) g_object_new (object_type, NULL);
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->media_image;
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (media, "os", &_tmp1_, NULL);
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = _tmp1_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = _tmp2_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_downloader_fetch_os_logo (_tmp0_, _tmp3_, 64, NULL, NULL);
#line 79 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (_tmp3_);
#line 81 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_downloadable_entry_setup_label (self, media);
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = self->priv->details_label;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (media, "os", &_tmp5_, NULL);
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = _tmp5_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = _tmp6_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp8_ = osinfo_product_get_vendor ((OsinfoProduct*) _tmp7_);
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp9_ = _tmp8_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_label_set_label (_tmp4_, _tmp9_);
#line 82 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (_tmp7_);
#line 84 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (media, "url", &_tmp10_, NULL);
#line 84 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp11_ = _tmp10_;
#line 84 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (self->url);
#line 84 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->url = _tmp11_;
#line 78 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return self;
#line 1395 "wizard-source.c"
}


BoxesWizardDownloadableEntry*
boxes_wizard_downloadable_entry_new (OsinfoMedia* media)
{
#line 78 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return boxes_wizard_downloadable_entry_construct (BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY, media);
#line 1404 "wizard-source.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 1424 "wizard-source.c"
}


static gchar*
string_replace (const gchar* self,
                const gchar* old,
                const gchar* replacement)
{
	gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
#line 1421 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1421 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1421 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 1422 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	if ((*((gchar*) self)) == '\0') {
#line 1422 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 1447 "wizard-source.c"
	} else {
#line 1422 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp1_ = (*((gchar*) old)) == '\0';
#line 1451 "wizard-source.c"
	}
#line 1422 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 1422 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp0_ = TRUE;
#line 1457 "wizard-source.c"
	} else {
#line 1422 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp0_ = g_strcmp0 (old, replacement) == 0;
#line 1461 "wizard-source.c"
	}
#line 1422 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 1465 "wizard-source.c"
		gchar* _tmp2_;
#line 1423 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp2_ = g_strdup (self);
#line 1423 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		result = _tmp2_;
#line 1423 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		return result;
#line 1473 "wizard-source.c"
	}
	{
		GRegex* regex = NULL;
		gchar* _tmp3_;
		gchar* _tmp4_;
		GRegex* _tmp5_;
		GRegex* _tmp6_;
		gchar* _tmp7_ = NULL;
		GRegex* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_escape_string (old, -1);
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp6_ = _tmp5_;
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_g_free0 (_tmp4_);
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		regex = _tmp6_;
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1501 "wizard-source.c"
				goto __catch136_g_regex_error;
			}
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1426 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			return NULL;
#line 1510 "wizard-source.c"
		}
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp8_ = regex;
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp9_;
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1524 "wizard-source.c"
				goto __catch136_g_regex_error;
			}
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
			return NULL;
#line 1535 "wizard-source.c"
		}
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp10_ = _tmp7_;
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_tmp7_ = NULL;
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		result = _tmp10_;
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_g_free0 (_tmp7_);
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1427 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		return result;
#line 1549 "wizard-source.c"
	}
	goto __finally136;
	__catch136_g_regex_error:
	{
		GError* e = NULL;
#line 1425 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1425 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1429 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1425 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 1563 "wizard-source.c"
	}
	__finally136:
#line 1425 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1425 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		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 1425 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1425 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
		return NULL;
#line 1574 "wizard-source.c"
	}
}


static const gchar*
string_to_string (const gchar* self)
{
	const gchar* result = NULL;
#line 1456 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1457 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	result = self;
#line 1457 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	return result;
#line 1589 "wizard-source.c"
}


static void
boxes_wizard_downloadable_entry_setup_label (BoxesWizardDownloadableEntry* self,
                                             OsinfoMedia* media)
{
	gchar* variant = NULL;
	gchar* _tmp0_;
	OsinfoOsVariantList* variants = NULL;
	OsinfoOsVariantList* _tmp1_;
	OsinfoOsVariantList* _tmp2_;
	gchar* subvariant = NULL;
	gchar* _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	gchar* _tmp41_;
	gboolean _tmp42_;
	gchar* _tmp54_ = NULL;
	gboolean _tmp55_;
	gboolean _tmp56_;
	gchar* is_live = NULL;
	gchar* _tmp61_;
	GtkLabel* _tmp62_;
	const gchar* _tmp63_;
	const gchar* _tmp64_;
	gchar* _tmp65_;
	gchar* _tmp66_;
	gchar* _tmp67_;
	const gchar* _tmp68_;
	const gchar* _tmp69_;
	const gchar* _tmp70_;
	const gchar* _tmp71_;
	gchar* _tmp72_;
	gchar* _tmp73_;
	GtkLabel* _tmp74_;
	GtkLabel* _tmp75_;
	const gchar* _tmp76_;
	const gchar* _tmp77_;
	gchar* _tmp78_;
	gchar* _tmp79_;
	GtkLabel* _tmp80_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (media != NULL);
#line 91 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = g_strdup ("");
#line 91 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	variant = _tmp0_;
#line 92 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = osinfo_media_get_os_variants (media);
#line 92 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	variants = _tmp1_;
#line 93 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = variants;
#line 93 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (osinfo_list_get_length ((OsinfoList*) _tmp2_) > 0) {
#line 1648 "wizard-source.c"
		OsinfoOsVariantList* _tmp3_;
		OsinfoEntity* _tmp4_;
		const gchar* _tmp5_;
		gchar* _tmp6_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = variants;
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp4_ = osinfo_list_get_nth ((OsinfoList*) _tmp3_, 0);
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp5_ = osinfo_os_variant_get_name (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, osinfo_os_variant_get_type ()) ? ((OsinfoOsVariant*) _tmp4_) : NULL);
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (variant);
#line 94 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		variant = _tmp6_;
#line 1665 "wizard-source.c"
	} else {
		OsinfoOs* _tmp7_;
		OsinfoOs* _tmp8_;
		OsinfoProduct* _tmp9_;
		OsinfoProduct* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		gboolean _tmp13_;
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_get (media, "os", &_tmp7_, NULL);
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp8_ = _tmp7_;
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, osinfo_product_get_type ()) ? ((OsinfoProduct*) _tmp8_) : NULL;
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp9_ == NULL) {
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_object_unref0 (_tmp8_);
#line 1684 "wizard-source.c"
		}
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp10_ = _tmp9_;
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp11_ = osinfo_product_get_name (_tmp10_);
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp12_ = _tmp11_;
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp13_ = _tmp12_ != NULL;
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_tmp10_);
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp13_) {
#line 1698 "wizard-source.c"
			OsinfoOs* _tmp14_;
			OsinfoOs* _tmp15_;
			OsinfoProduct* _tmp16_;
			OsinfoProduct* _tmp17_;
			const gchar* _tmp18_;
			const gchar* _tmp19_;
			gchar* _tmp20_;
			gchar* _tmp21_;
			gchar* _tmp22_;
			gchar* _tmp23_;
			gboolean _tmp24_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_object_get (media, "os", &_tmp14_, NULL);
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp15_ = _tmp14_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, osinfo_product_get_type ()) ? ((OsinfoProduct*) _tmp15_) : NULL;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			if (_tmp16_ == NULL) {
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_object_unref0 (_tmp15_);
#line 1720 "wizard-source.c"
			}
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp17_ = _tmp16_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp18_ = osinfo_product_get_name (_tmp17_);
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp19_ = _tmp18_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp20_ = g_strdup (_tmp19_);
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (variant);
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			variant = _tmp20_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_object_unref0 (_tmp17_);
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_object_get (media, "url", &_tmp21_, NULL);
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp22_ = _tmp21_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp23_ = _tmp22_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp24_ = string_contains (_tmp23_, "server");
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp23_);
#line 97 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			if (_tmp24_) {
#line 1748 "wizard-source.c"
				const gchar* _tmp25_;
				gchar* _tmp26_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp25_ = variant;
#line 98 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp26_ = g_strconcat (_tmp25_, " Server", NULL);
#line 98 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_free0 (variant);
#line 98 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				variant = _tmp26_;
#line 1759 "wizard-source.c"
			}
		} else {
			GFile* file = NULL;
			gchar* _tmp27_;
			gchar* _tmp28_;
			gchar* _tmp29_;
			GFile* _tmp30_;
			GFile* _tmp31_;
			GtkLabel* _tmp32_;
			GFile* _tmp33_;
			gchar* _tmp34_;
			gchar* _tmp35_;
			gchar* _tmp36_;
			gchar* _tmp37_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_object_get (media, "url", &_tmp27_, NULL);
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp28_ = _tmp27_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp29_ = _tmp28_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp30_ = g_file_new_for_uri (_tmp29_);
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp31_ = _tmp30_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp29_);
#line 100 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			file = _tmp31_;
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp32_ = self->priv->title_label;
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp33_ = file;
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp34_ = g_file_get_basename (_tmp33_);
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp35_ = _tmp34_;
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp36_ = string_replace (_tmp35_, "_", "");
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp37_ = _tmp36_;
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			gtk_label_set_label (_tmp32_, _tmp37_);
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp37_);
#line 102 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp35_);
#line 95 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_object_unref0 (file);
#line 1808 "wizard-source.c"
		}
	}
#line 105 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp38_ = g_strdup ("");
#line 105 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	subvariant = _tmp38_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (media, "url", &_tmp39_, NULL);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp40_ = _tmp39_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp41_ = _tmp40_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp42_ = string_contains (_tmp41_, "netinst");
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_tmp41_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp42_) {
#line 1827 "wizard-source.c"
		gchar* _tmp43_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp43_ = g_strdup ("(netinst)");
#line 107 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (subvariant);
#line 107 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		subvariant = _tmp43_;
#line 1835 "wizard-source.c"
	} else {
		gchar* _tmp44_;
		gchar* _tmp45_;
		gchar* _tmp46_;
		gboolean _tmp47_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_get (media, "url", &_tmp44_, NULL);
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp45_ = _tmp44_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp46_ = _tmp45_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp47_ = string_contains (_tmp46_, "minimal");
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp46_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp47_) {
#line 1853 "wizard-source.c"
			gchar* _tmp48_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp48_ = g_strdup ("(minimal)");
#line 109 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (subvariant);
#line 109 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			subvariant = _tmp48_;
#line 1861 "wizard-source.c"
		} else {
			gchar* _tmp49_;
			gchar* _tmp50_;
			gchar* _tmp51_;
			gboolean _tmp52_;
#line 110 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_object_get (media, "url", &_tmp49_, NULL);
#line 110 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp50_ = _tmp49_;
#line 110 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp51_ = _tmp50_;
#line 110 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp52_ = string_contains (_tmp51_, "dvd");
#line 110 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp51_);
#line 110 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			if (_tmp52_) {
#line 1879 "wizard-source.c"
				gchar* _tmp53_;
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp53_ = g_strdup ("(DVD)");
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_free0 (subvariant);
#line 111 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				subvariant = _tmp53_;
#line 1887 "wizard-source.c"
			}
		}
	}
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (media, "live", &_tmp55_, NULL);
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp56_ = _tmp55_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp56_) {
#line 1897 "wizard-source.c"
		gchar* _tmp57_;
		gchar* _tmp58_;
		gchar* _tmp59_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp57_ = g_strconcat (" (", _ ("Live"), NULL);
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp58_ = _tmp57_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp59_ = g_strconcat (_tmp58_, ")", NULL);
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp54_);
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp54_ = _tmp59_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp58_);
#line 1913 "wizard-source.c"
	} else {
		gchar* _tmp60_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp60_ = g_strdup ("");
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp54_);
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp54_ = _tmp60_;
#line 1922 "wizard-source.c"
	}
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp61_ = g_strdup (_tmp54_);
#line 113 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	is_live = _tmp61_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp62_ = self->priv->title_label;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp63_ = variant;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp64_ = string_to_string (_tmp63_);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (media, "architecture", &_tmp65_, NULL);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp66_ = _tmp65_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp67_ = _tmp66_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp68_ = string_to_string (_tmp67_);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp69_ = subvariant;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp70_ = string_to_string (_tmp69_);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp71_ = string_to_string (is_live);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp72_ = g_strconcat (_tmp64_, " ", _tmp68_, " ", _tmp70_, " ", _tmp71_, NULL);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp73_ = _tmp72_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_label_set_label (_tmp62_, _tmp73_);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_tmp73_);
#line 115 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_tmp67_);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp74_ = self->priv->title_label;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp75_ = self->priv->title_label;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp76_ = gtk_label_get_label (_tmp75_);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp77_ = _tmp76_;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp78_ = string_replace (_tmp77_, "  ", "");
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp79_ = _tmp78_;
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_label_set_label (_tmp74_, _tmp79_);
#line 118 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_tmp79_);
#line 120 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp80_ = self->priv->title_label;
#line 120 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp80_, GTK_ALIGN_START);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (is_live);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_tmp54_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (subvariant);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (variants);
#line 87 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (variant);
#line 1988 "wizard-source.c"
}


const gchar*
boxes_wizard_downloadable_entry_get_title (BoxesWizardDownloadableEntry* self)
{
	const gchar* result;
	GtkLabel* _tmp0_;
	const gchar* _tmp1_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->title_label;
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = gtk_label_get_text (_tmp0_);
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp1_;
#line 72 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 2008 "wizard-source.c"
}


static void
boxes_wizard_downloadable_entry_class_init (BoxesWizardDownloadableEntryClass * klass)
{
	gint BoxesWizardDownloadableEntry_private_offset;
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_downloadable_entry_parent_class = g_type_class_peek_parent (klass);
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardDownloadableEntryPrivate));
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_wizard_downloadable_entry_get_property;
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_downloadable_entry_finalize;
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_DOWNLOADABLE_ENTRY_TITLE_PROPERTY, boxes_wizard_downloadable_entry_properties[BOXES_WIZARD_DOWNLOADABLE_ENTRY_TITLE_PROPERTY] = g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	BoxesWizardDownloadableEntry_private_offset = g_type_class_get_instance_private_offset (klass);
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard-downloadable-entry.ui");
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "media_image", FALSE, BoxesWizardDownloadableEntry_private_offset + G_STRUCT_OFFSET (BoxesWizardDownloadableEntryPrivate, media_image));
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "title_label", FALSE, BoxesWizardDownloadableEntry_private_offset + G_STRUCT_OFFSET (BoxesWizardDownloadableEntryPrivate, title_label));
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "details_label", FALSE, BoxesWizardDownloadableEntry_private_offset + G_STRUCT_OFFSET (BoxesWizardDownloadableEntryPrivate, details_label));
#line 2036 "wizard-source.c"
}


static void
boxes_wizard_downloadable_entry_instance_init (BoxesWizardDownloadableEntry * self)
{
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv = BOXES_WIZARD_DOWNLOADABLE_ENTRY_GET_PRIVATE (self);
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 2047 "wizard-source.c"
}


static void
boxes_wizard_downloadable_entry_finalize (GObject * obj)
{
	BoxesWizardDownloadableEntry * self;
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY, BoxesWizardDownloadableEntry);
#line 64 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->media_image);
#line 66 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->title_label);
#line 68 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->details_label);
#line 76 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (self->url);
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (boxes_wizard_downloadable_entry_parent_class)->finalize (obj);
#line 2067 "wizard-source.c"
}


GType
boxes_wizard_downloadable_entry_get_type (void)
{
	static volatile gsize boxes_wizard_downloadable_entry_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_downloadable_entry_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardDownloadableEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_downloadable_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizardDownloadableEntry), 0, (GInstanceInitFunc) boxes_wizard_downloadable_entry_instance_init, NULL };
		GType boxes_wizard_downloadable_entry_type_id;
		boxes_wizard_downloadable_entry_type_id = g_type_register_static (gtk_list_box_row_get_type (), "BoxesWizardDownloadableEntry", &g_define_type_info, 0);
		g_once_init_leave (&boxes_wizard_downloadable_entry_type_id__volatile, boxes_wizard_downloadable_entry_type_id);
	}
	return boxes_wizard_downloadable_entry_type_id__volatile;
}


static void
_vala_boxes_wizard_downloadable_entry_get_property (GObject * object,
                                                    guint property_id,
                                                    GValue * value,
                                                    GParamSpec * pspec)
{
	BoxesWizardDownloadableEntry * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY, BoxesWizardDownloadableEntry);
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (property_id) {
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_DOWNLOADABLE_ENTRY_TITLE_PROPERTY:
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_string (value, boxes_wizard_downloadable_entry_get_title (self));
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 2101 "wizard-source.c"
		default:
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 62 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 2107 "wizard-source.c"
	}
}


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


BoxesWizardMediaEntry*
boxes_wizard_media_entry_construct (GType object_type,
                                    BoxesInstallerMedia* media)
{
	BoxesWizardMediaEntry * self = NULL;
	BoxesInstallerMedia* _tmp0_;
	OsinfoOs* _tmp1_;
	GtkLabel* _tmp4_;
	const gchar* _tmp5_;
	gboolean _tmp6_ = FALSE;
	OsinfoMedia* _tmp7_;
	OsinfoMedia* _tmp21_;
#line 135 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (media != NULL, NULL);
#line 135 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardMediaEntry*) g_object_new (object_type, NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = _g_object_ref0 (media);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->media);
#line 136 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->media = _tmp0_;
#line 138 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = media->os;
#line 138 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp1_ != NULL) {
#line 2147 "wizard-source.c"
		GtkImage* _tmp2_;
		OsinfoOs* _tmp3_;
#line 139 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp2_ = self->priv->media_image;
#line 139 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = media->os;
#line 139 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_downloader_fetch_os_logo (_tmp2_, _tmp3_, 64, NULL, NULL);
#line 2156 "wizard-source.c"
	}
#line 141 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = self->priv->title_label;
#line 141 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = media->label;
#line 141 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_label_set_label (_tmp4_, _tmp5_);
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = media->os_media;
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp7_ != NULL) {
#line 2168 "wizard-source.c"
		OsinfoMedia* _tmp8_;
		gboolean _tmp9_;
		gboolean _tmp10_;
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp8_ = media->os_media;
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_get (_tmp8_, "live", &_tmp9_, NULL);
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp10_ = _tmp9_;
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp6_ = _tmp10_;
#line 2180 "wizard-source.c"
	} else {
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp6_ = FALSE;
#line 2184 "wizard-source.c"
	}
#line 142 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp6_) {
#line 2188 "wizard-source.c"
		GtkLabel* _tmp11_;
		GtkLabel* _tmp12_;
		const gchar* _tmp13_;
		const gchar* _tmp14_;
		gchar* _tmp15_;
		gchar* _tmp16_;
		gchar* _tmp17_;
		gchar* _tmp18_;
		gchar* _tmp19_;
		gchar* _tmp20_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp11_ = self->priv->title_label;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp12_ = self->priv->title_label;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp13_ = gtk_label_get_label (_tmp12_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp14_ = _tmp13_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp15_ = g_strconcat (" (", _ ("Live"), NULL);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp16_ = _tmp15_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp17_ = g_strconcat (_tmp16_, ")", NULL);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp18_ = _tmp17_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp19_ = g_strconcat (_tmp14_, _tmp18_, NULL);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp20_ = _tmp19_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		gtk_label_set_label (_tmp12_, _tmp20_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp20_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp18_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp16_);
#line 2227 "wizard-source.c"
	}
#line 147 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp21_ = media->os_media;
#line 147 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp21_ != NULL) {
#line 2233 "wizard-source.c"
		const gchar* _tmp22_ = NULL;
		gboolean _tmp23_ = FALSE;
		OsinfoMedia* _tmp24_;
		gchar* _tmp25_;
		gchar* _tmp26_;
		gchar* _tmp27_;
		gboolean _tmp28_;
		gchar* architecture = NULL;
		gchar* _tmp33_;
		GtkLabel* _tmp34_;
		const gchar* _tmp35_;
		OsinfoOs* _tmp36_;
		const gchar* _tmp37_;
		const gchar* _tmp38_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp24_ = media->os_media;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_get (_tmp24_, "architecture", &_tmp25_, NULL);
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp26_ = _tmp25_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp27_ = _tmp26_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp28_ = g_strcmp0 (_tmp27_, "i386") == 0;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_tmp27_);
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp28_) {
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp23_ = TRUE;
#line 2264 "wizard-source.c"
		} else {
			OsinfoMedia* _tmp29_;
			gchar* _tmp30_;
			gchar* _tmp31_;
			gchar* _tmp32_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp29_ = media->os_media;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_object_get (_tmp29_, "architecture", &_tmp30_, NULL);
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp31_ = _tmp30_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp32_ = _tmp31_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp23_ = g_strcmp0 (_tmp32_, "i686") == 0;
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp32_);
#line 2282 "wizard-source.c"
		}
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp23_) {
#line 149 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp22_ = _ ("32-bit x86 system");
#line 2288 "wizard-source.c"
		} else {
#line 150 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp22_ = _ ("64-bit x86 system");
#line 2292 "wizard-source.c"
		}
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp33_ = g_strdup (_tmp22_);
#line 148 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		architecture = _tmp33_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp34_ = self->priv->details_label;
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp35_ = architecture;
#line 151 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		gtk_label_set_label (_tmp34_, _tmp35_);
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp36_ = media->os;
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp37_ = osinfo_product_get_vendor ((OsinfoProduct*) _tmp36_);
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp38_ = _tmp37_;
#line 153 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp38_ != NULL) {
#line 2312 "wizard-source.c"
			GtkLabel* _tmp39_;
			GtkLabel* _tmp40_;
			const gchar* _tmp41_;
			const gchar* _tmp42_;
			OsinfoOs* _tmp43_;
			const gchar* _tmp44_;
			const gchar* _tmp45_;
			gchar* _tmp46_;
			gchar* _tmp47_;
			gchar* _tmp48_;
			gchar* _tmp49_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp39_ = self->priv->details_label;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp40_ = self->priv->details_label;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp41_ = gtk_label_get_label (_tmp40_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp42_ = _tmp41_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp43_ = media->os;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp44_ = osinfo_product_get_vendor ((OsinfoProduct*) _tmp43_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp45_ = _tmp44_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp46_ = g_strdup_printf (_ (" from %s"), _tmp45_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp47_ = _tmp46_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp48_ = g_strconcat (_tmp42_, _tmp47_, NULL);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp49_ = _tmp48_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			gtk_label_set_label (_tmp40_, _tmp49_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp49_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_g_free0 (_tmp47_);
#line 2352 "wizard-source.c"
		}
#line 147 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (architecture);
#line 2356 "wizard-source.c"
	}
#line 135 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return self;
#line 2360 "wizard-source.c"
}


BoxesWizardMediaEntry*
boxes_wizard_media_entry_new (BoxesInstallerMedia* media)
{
#line 135 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return boxes_wizard_media_entry_construct (BOXES_TYPE_WIZARD_MEDIA_ENTRY, media);
#line 2369 "wizard-source.c"
}


static void
boxes_wizard_media_entry_class_init (BoxesWizardMediaEntryClass * klass)
{
	gint BoxesWizardMediaEntry_private_offset;
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_media_entry_parent_class = g_type_class_peek_parent (klass);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardMediaEntryPrivate));
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_media_entry_finalize;
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	BoxesWizardMediaEntry_private_offset = g_type_class_get_instance_private_offset (klass);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard-media-entry.ui");
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "media_image", FALSE, BoxesWizardMediaEntry_private_offset + G_STRUCT_OFFSET (BoxesWizardMediaEntryPrivate, media_image));
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "title_label", FALSE, BoxesWizardMediaEntry_private_offset + G_STRUCT_OFFSET (BoxesWizardMediaEntryPrivate, title_label));
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "details_label", FALSE, BoxesWizardMediaEntry_private_offset + G_STRUCT_OFFSET (BoxesWizardMediaEntryPrivate, details_label));
#line 2393 "wizard-source.c"
}


static void
boxes_wizard_media_entry_instance_init (BoxesWizardMediaEntry * self)
{
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv = BOXES_WIZARD_MEDIA_ENTRY_GET_PRIVATE (self);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 2404 "wizard-source.c"
}


static void
boxes_wizard_media_entry_finalize (GObject * obj)
{
	BoxesWizardMediaEntry * self;
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_MEDIA_ENTRY, BoxesWizardMediaEntry);
#line 126 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->media);
#line 129 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->media_image);
#line 131 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->title_label);
#line 133 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->details_label);
#line 125 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (boxes_wizard_media_entry_parent_class)->finalize (obj);
#line 2424 "wizard-source.c"
}


GType
boxes_wizard_media_entry_get_type (void)
{
	static volatile gsize boxes_wizard_media_entry_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_media_entry_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardMediaEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_media_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizardMediaEntry), 0, (GInstanceInitFunc) boxes_wizard_media_entry_instance_init, NULL };
		GType boxes_wizard_media_entry_type_id;
		boxes_wizard_media_entry_type_id = g_type_register_static (gtk_list_box_row_get_type (), "BoxesWizardMediaEntry", &g_define_type_info, 0);
		g_once_init_leave (&boxes_wizard_media_entry_type_id__volatile, boxes_wizard_media_entry_type_id);
	}
	return boxes_wizard_media_entry_type_id__volatile;
}


static void
boxes_wizard_web_view_real_dispose (GObject* base)
{
	BoxesWizardWebView * self;
	guint _tmp0_;
#line 180 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardWebView*) base;
#line 181 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->hide_progress_bar_id;
#line 181 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 2453 "wizard-source.c"
		guint _tmp1_;
#line 182 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp1_ = self->priv->hide_progress_bar_id;
#line 182 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_source_remove (_tmp1_);
#line 183 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->hide_progress_bar_id = (guint) 0;
#line 2461 "wizard-source.c"
	}
#line 186 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (boxes_wizard_web_view_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_bin_get_type (), GtkBin));
#line 2465 "wizard-source.c"
}


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


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


static gboolean
boxes_wizard_web_view_on_context_menu (BoxesWizardWebView* self,
                                       WebKitWebView* web_view,
                                       WebKitContextMenu* context_menu,
                                       GdkEvent* event,
                                       WebKitHitTestResult* hit_test_result)
{
	gboolean result = FALSE;
	GList* items_to_remove = NULL;
	GList* _tmp0_;
	GList* _tmp30_;
	GList* separators_to_remove = NULL;
	WebKitContextMenuAction previous_action = 0;
	GList* _tmp33_;
	GList* _tmp43_;
	guint n_items = 0U;
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (web_view != NULL, FALSE);
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (context_menu != NULL, FALSE);
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 190 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (hit_test_result != NULL, FALSE);
#line 194 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	items_to_remove = NULL;
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = webkit_context_menu_get_items (context_menu);
#line 2517 "wizard-source.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		item_collection = _tmp0_;
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 2525 "wizard-source.c"
			WebKitContextMenuItem* _tmp1_;
			WebKitContextMenuItem* item = NULL;
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp1_ = _g_object_ref0 ((WebKitContextMenuItem*) item_it->data);
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			item = _tmp1_;
#line 2532 "wizard-source.c"
			{
				WebKitContextMenuAction action = 0;
				WebKitContextMenuItem* _tmp2_;
				gboolean _tmp3_ = FALSE;
				gboolean _tmp4_ = FALSE;
				gboolean _tmp5_ = FALSE;
				gboolean _tmp6_ = FALSE;
				gboolean _tmp7_ = FALSE;
				gboolean _tmp8_ = FALSE;
				gboolean _tmp9_ = FALSE;
				gboolean _tmp10_ = FALSE;
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
				gboolean _tmp13_ = FALSE;
				gboolean _tmp14_ = FALSE;
				WebKitContextMenuAction _tmp15_;
#line 197 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp2_ = item;
#line 197 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				action = webkit_context_menu_item_get_stock_action (_tmp2_);
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp15_ = action;
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp15_ == WEBKIT_CONTEXT_MENU_ACTION_GO_BACK) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp14_ = TRUE;
#line 2559 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp16_;
#line 199 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp16_ = action;
#line 199 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp14_ = _tmp16_ == WEBKIT_CONTEXT_MENU_ACTION_GO_FORWARD;
#line 2566 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp14_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp13_ = TRUE;
#line 2572 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp17_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp17_ = action;
#line 200 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp13_ = _tmp17_ == WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_AUDIO_TO_DISK;
#line 2579 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp13_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp12_ = TRUE;
#line 2585 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp18_;
#line 201 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp18_ = action;
#line 201 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp12_ = _tmp18_ == WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_IMAGE_TO_DISK;
#line 2592 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp12_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp11_ = TRUE;
#line 2598 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp19_;
#line 202 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp19_ = action;
#line 202 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp11_ = _tmp19_ == WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_LINK_TO_DISK;
#line 2605 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp11_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp10_ = TRUE;
#line 2611 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp20_;
#line 203 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp20_ = action;
#line 203 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp10_ = _tmp20_ == WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_VIDEO_TO_DISK;
#line 2618 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp10_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp9_ = TRUE;
#line 2624 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp21_;
#line 204 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp21_ = action;
#line 204 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp9_ = _tmp21_ == WEBKIT_CONTEXT_MENU_ACTION_OPEN_AUDIO_IN_NEW_WINDOW;
#line 2631 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp9_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp8_ = TRUE;
#line 2637 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp22_;
#line 205 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp22_ = action;
#line 205 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp8_ = _tmp22_ == WEBKIT_CONTEXT_MENU_ACTION_OPEN_FRAME_IN_NEW_WINDOW;
#line 2644 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp8_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp7_ = TRUE;
#line 2650 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp23_;
#line 206 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp23_ = action;
#line 206 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp7_ = _tmp23_ == WEBKIT_CONTEXT_MENU_ACTION_OPEN_IMAGE_IN_NEW_WINDOW;
#line 2657 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp7_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp6_ = TRUE;
#line 2663 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp24_;
#line 207 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp24_ = action;
#line 207 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp6_ = _tmp24_ == WEBKIT_CONTEXT_MENU_ACTION_OPEN_LINK_IN_NEW_WINDOW;
#line 2670 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp6_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp5_ = TRUE;
#line 2676 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp25_;
#line 208 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp25_ = action;
#line 208 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp5_ = _tmp25_ == WEBKIT_CONTEXT_MENU_ACTION_OPEN_VIDEO_IN_NEW_WINDOW;
#line 2683 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp5_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp4_ = TRUE;
#line 2689 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp26_;
#line 209 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp26_ = action;
#line 209 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp4_ = _tmp26_ == WEBKIT_CONTEXT_MENU_ACTION_RELOAD;
#line 2696 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp4_) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp3_ = TRUE;
#line 2702 "wizard-source.c"
				} else {
					WebKitContextMenuAction _tmp27_;
#line 210 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp27_ = action;
#line 210 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp3_ = _tmp27_ == WEBKIT_CONTEXT_MENU_ACTION_STOP;
#line 2709 "wizard-source.c"
				}
#line 198 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp3_) {
#line 2713 "wizard-source.c"
					WebKitContextMenuItem* _tmp28_;
					WebKitContextMenuItem* _tmp29_;
#line 211 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp28_ = item;
#line 211 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp29_ = _g_object_ref0 (_tmp28_);
#line 211 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					items_to_remove = g_list_prepend (items_to_remove, _tmp29_);
#line 2722 "wizard-source.c"
				}
#line 196 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_object_unref0 (item);
#line 2726 "wizard-source.c"
			}
		}
	}
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp30_ = items_to_remove;
#line 2732 "wizard-source.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		item_collection = _tmp30_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 2740 "wizard-source.c"
			WebKitContextMenuItem* _tmp31_;
			WebKitContextMenuItem* item = NULL;
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp31_ = _g_object_ref0 ((WebKitContextMenuItem*) item_it->data);
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			item = _tmp31_;
#line 2747 "wizard-source.c"
			{
				WebKitContextMenuItem* _tmp32_;
#line 216 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp32_ = item;
#line 216 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				webkit_context_menu_remove (context_menu, _tmp32_);
#line 215 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_object_unref0 (item);
#line 2756 "wizard-source.c"
			}
		}
	}
#line 219 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	separators_to_remove = NULL;
#line 220 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	previous_action = WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp33_ = webkit_context_menu_get_items (context_menu);
#line 2766 "wizard-source.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		item_collection = _tmp33_;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 2774 "wizard-source.c"
			WebKitContextMenuItem* _tmp34_;
			WebKitContextMenuItem* item = NULL;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp34_ = _g_object_ref0 ((WebKitContextMenuItem*) item_it->data);
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			item = _tmp34_;
#line 2781 "wizard-source.c"
			{
				WebKitContextMenuAction action = 0;
				WebKitContextMenuItem* _tmp35_;
				gboolean _tmp36_ = FALSE;
				WebKitContextMenuAction _tmp37_;
				WebKitContextMenuAction _tmp42_;
#line 223 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp35_ = item;
#line 223 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				action = webkit_context_menu_item_get_stock_action (_tmp35_);
#line 224 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp37_ = action;
#line 224 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp37_ == WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION) {
#line 2796 "wizard-source.c"
					WebKitContextMenuAction _tmp38_;
					WebKitContextMenuAction _tmp39_;
#line 224 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp38_ = action;
#line 224 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp39_ = previous_action;
#line 224 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp36_ = _tmp38_ == _tmp39_;
#line 2805 "wizard-source.c"
				} else {
#line 224 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp36_ = FALSE;
#line 2809 "wizard-source.c"
				}
#line 224 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_tmp36_) {
#line 2813 "wizard-source.c"
					WebKitContextMenuItem* _tmp40_;
					WebKitContextMenuItem* _tmp41_;
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp40_ = item;
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_tmp41_ = _g_object_ref0 (_tmp40_);
#line 225 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					separators_to_remove = g_list_prepend (separators_to_remove, _tmp41_);
#line 2822 "wizard-source.c"
				}
#line 227 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp42_ = action;
#line 227 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				previous_action = _tmp42_;
#line 222 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_object_unref0 (item);
#line 2830 "wizard-source.c"
			}
		}
	}
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp43_ = separators_to_remove;
#line 2836 "wizard-source.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		item_collection = _tmp43_;
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 2844 "wizard-source.c"
			WebKitContextMenuItem* _tmp44_;
			WebKitContextMenuItem* item = NULL;
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp44_ = _g_object_ref0 ((WebKitContextMenuItem*) item_it->data);
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			item = _tmp44_;
#line 2851 "wizard-source.c"
			{
				WebKitContextMenuItem* _tmp45_;
#line 231 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp45_ = item;
#line 231 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				webkit_context_menu_remove (context_menu, _tmp45_);
#line 230 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_object_unref0 (item);
#line 2860 "wizard-source.c"
			}
		}
	}
#line 234 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	n_items = webkit_context_menu_get_n_items (context_menu);
#line 235 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = n_items == ((guint) 0);
#line 235 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__g_list_free__g_object_unref0_0 (separators_to_remove);
#line 235 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__g_list_free__g_object_unref0_0 (items_to_remove);
#line 235 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 2874 "wizard-source.c"
}


static gboolean
_boxes_wizard_web_view_on_context_menu_webkit_web_view_context_menu (WebKitWebView* _sender,
                                                                     WebKitContextMenu* context_menu,
                                                                     GdkEvent* event,
                                                                     WebKitHitTestResult* hit_test_result,
                                                                     gpointer self)
{
	gboolean result;
	result = boxes_wizard_web_view_on_context_menu ((BoxesWizardWebView*) self, _sender, context_menu, event, hit_test_result);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 2889 "wizard-source.c"
}


static gboolean
___lambda63_ (BoxesWizardWebView* self)
{
	gboolean result = FALSE;
	GtkProgressBar* _tmp0_;
#line 254 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->progress_bar;
#line 254 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 255 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->hide_progress_bar_id = (guint) 0;
#line 256 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = G_SOURCE_REMOVE;
#line 256 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 2908 "wizard-source.c"
}


static gboolean
____lambda63__gsource_func (gpointer self)
{
	gboolean result;
	result = ___lambda63_ ((BoxesWizardWebView*) self);
#line 253 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 2919 "wizard-source.c"
}


static void
boxes_wizard_web_view_on_notify_estimated_load_progress (BoxesWizardWebView* self)
{
	guint _tmp0_;
	gchar* uri = NULL;
	WebKitWebView* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gboolean _tmp5_ = FALSE;
	const gchar* _tmp6_;
	gdouble progress = 0.0;
	WebKitWebView* _tmp8_;
	gboolean loading = FALSE;
	WebKitWebView* _tmp9_;
	gboolean _tmp10_;
	gboolean _tmp11_;
	gboolean _tmp12_ = FALSE;
	gdouble _tmp13_;
	gdouble _tmp16_ = 0.0;
	gboolean _tmp17_ = FALSE;
	gboolean _tmp18_;
	GtkProgressBar* _tmp21_;
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 240 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->hide_progress_bar_id;
#line 240 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 2951 "wizard-source.c"
		guint _tmp1_;
#line 241 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp1_ = self->priv->hide_progress_bar_id;
#line 241 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_source_remove (_tmp1_);
#line 242 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->hide_progress_bar_id = (guint) 0;
#line 2959 "wizard-source.c"
	}
#line 245 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = self->priv->web_view;
#line 245 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = webkit_web_view_get_uri (_tmp2_);
#line 245 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 245 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	uri = _tmp4_;
#line 246 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = uri;
#line 246 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp6_ == NULL) {
#line 246 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp5_ = TRUE;
#line 2975 "wizard-source.c"
	} else {
		const gchar* _tmp7_;
#line 246 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp7_ = uri;
#line 246 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp5_ = g_strcmp0 (_tmp7_, "about:blank") == 0;
#line 2982 "wizard-source.c"
	}
#line 246 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp5_) {
#line 247 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (uri);
#line 247 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return;
#line 2990 "wizard-source.c"
	}
#line 249 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp8_ = self->priv->web_view;
#line 249 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	progress = webkit_web_view_get_estimated_load_progress (_tmp8_);
#line 250 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp9_ = self->priv->web_view;
#line 250 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (_tmp9_, "is-loading", &_tmp10_, NULL);
#line 250 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp11_ = _tmp10_;
#line 250 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	loading = _tmp11_;
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp13_ = progress;
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp13_ == 1.0) {
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp12_ = TRUE;
#line 3010 "wizard-source.c"
	} else {
		gboolean _tmp14_;
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp14_ = loading;
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp12_ = !_tmp14_;
#line 3017 "wizard-source.c"
	}
#line 252 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp12_) {
#line 253 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->hide_progress_bar_id = g_timeout_add_full (G_PRIORITY_DEFAULT, BOXES_WIZARD_WEB_VIEW_progress_bar_id_timeout, ____lambda63__gsource_func, g_object_ref (self), g_object_unref);
#line 3023 "wizard-source.c"
	} else {
		GtkProgressBar* _tmp15_;
#line 259 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp15_ = self->priv->progress_bar;
#line 259 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		gtk_widget_show ((GtkWidget*) _tmp15_);
#line 3030 "wizard-source.c"
	}
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp18_ = loading;
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp18_) {
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp17_ = TRUE;
#line 3038 "wizard-source.c"
	} else {
		gdouble _tmp19_;
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp19_ = progress;
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp17_ = _tmp19_ == 1.0;
#line 3045 "wizard-source.c"
	}
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp17_) {
#line 3049 "wizard-source.c"
		gdouble _tmp20_;
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp20_ = progress;
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp16_ = _tmp20_;
#line 3055 "wizard-source.c"
	} else {
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp16_ = 0.0;
#line 3059 "wizard-source.c"
	}
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp21_ = self->priv->progress_bar;
#line 262 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_progress_bar_set_fraction (_tmp21_, _tmp16_);
#line 239 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (uri);
#line 3067 "wizard-source.c"
}


static void
_boxes_wizard_web_view_on_notify_estimated_load_progress_g_object_notify (GObject* _sender,
                                                                          GParamSpec* pspec,
                                                                          gpointer self)
{
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_web_view_on_notify_estimated_load_progress ((BoxesWizardWebView*) self);
#line 3078 "wizard-source.c"
}


BoxesWizardWebView*
boxes_wizard_web_view_construct (GType object_type)
{
	BoxesWizardWebView * self = NULL;
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardWebView*) g_object_new (object_type, NULL);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return self;
#line 3090 "wizard-source.c"
}


BoxesWizardWebView*
boxes_wizard_web_view_new (void)
{
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return boxes_wizard_web_view_construct (BOXES_TYPE_WIZARD_WEB_VIEW);
#line 3099 "wizard-source.c"
}


WebKitWebView*
boxes_wizard_web_view_get_view (BoxesWizardWebView* self)
{
	WebKitWebView* result;
	WebKitWebView* _tmp0_;
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->web_view;
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp0_;
#line 177 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 3116 "wizard-source.c"
}


static gchar**
_vala_array_dup6 (gchar** self,
                  int length)
{
	gchar** result;
	int i;
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = g_new0 (gchar*, length + 1);
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	for (i = 0; i < length; i++) {
#line 3130 "wizard-source.c"
		gchar* _tmp0_;
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = g_strdup (self[i]);
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		result[i] = _tmp0_;
#line 3136 "wizard-source.c"
	}
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 3140 "wizard-source.c"
}


static GObject *
boxes_wizard_web_view_constructor (GType type,
                                   guint n_construct_properties,
                                   GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	BoxesWizardWebView * self;
	WebKitWebContext* context = NULL;
	WebKitWebView* _tmp0_;
	WebKitWebContext* _tmp1_;
	WebKitWebContext* _tmp2_;
	gchar** language_names = NULL;
	gchar** _tmp3_;
	gchar** _tmp4_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	gint language_names_length1;
	gint _language_names_size_;
	WebKitWebContext* _tmp6_;
	gchar** _tmp7_;
	gint _tmp7__length1;
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	parent_class = G_OBJECT_CLASS (boxes_wizard_web_view_parent_class);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_WEB_VIEW, BoxesWizardWebView);
#line 171 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->web_view;
#line 171 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = webkit_web_view_get_context (_tmp0_);
#line 171 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 171 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	context = _tmp2_;
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = _tmp3_ = g_get_language_names ();
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = (_tmp4_ != NULL) ? _vala_array_dup6 (_tmp4_, _vala_array_length (_tmp3_)) : ((gpointer) _tmp4_);
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5__length1 = _vala_array_length (_tmp3_);
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	language_names = _tmp5_;
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	language_names_length1 = _tmp5__length1;
#line 172 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_language_names_size_ = language_names_length1;
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = context;
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = language_names;
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7__length1 = language_names_length1;
#line 173 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	webkit_web_context_set_preferred_languages (_tmp6_, _tmp7_);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	language_names = (_vala_array_free (language_names, language_names_length1, (GDestroyNotify) g_free), NULL);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (context);
#line 170 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return obj;
#line 3206 "wizard-source.c"
}


static void
boxes_wizard_web_view_class_init (BoxesWizardWebViewClass * klass)
{
	gint BoxesWizardWebView_private_offset;
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_web_view_parent_class = g_type_class_peek_parent (klass);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardWebViewPrivate));
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	((GObjectClass *) klass)->dispose = (void (*) (GObject *)) boxes_wizard_web_view_real_dispose;
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_wizard_web_view_get_property;
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_wizard_web_view_constructor;
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_web_view_finalize;
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_WEB_VIEW_VIEW_PROPERTY, boxes_wizard_web_view_properties[BOXES_WIZARD_WEB_VIEW_VIEW_PROPERTY] = g_param_spec_object ("view", "view", "view", webkit_web_view_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	BoxesWizardWebView_private_offset = g_type_class_get_instance_private_offset (klass);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard-web-view.ui");
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "progress_bar", FALSE, BoxesWizardWebView_private_offset + G_STRUCT_OFFSET (BoxesWizardWebViewPrivate, progress_bar));
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "web_view", FALSE, BoxesWizardWebView_private_offset + G_STRUCT_OFFSET (BoxesWizardWebViewPrivate, web_view));
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_context_menu", G_CALLBACK(_boxes_wizard_web_view_on_context_menu_webkit_web_view_context_menu));
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_notify_estimated_load_progress", G_CALLBACK(_boxes_wizard_web_view_on_notify_estimated_load_progress_g_object_notify));
#line 3240 "wizard-source.c"
}


static void
boxes_wizard_web_view_instance_init (BoxesWizardWebView * self)
{
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv = BOXES_WIZARD_WEB_VIEW_GET_PRIVATE (self);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 3251 "wizard-source.c"
}


static void
boxes_wizard_web_view_finalize (GObject * obj)
{
	BoxesWizardWebView * self;
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_WEB_VIEW, BoxesWizardWebView);
#line 163 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->progress_bar);
#line 165 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->web_view);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (boxes_wizard_web_view_parent_class)->finalize (obj);
#line 3267 "wizard-source.c"
}


GType
boxes_wizard_web_view_get_type (void)
{
	static volatile gsize boxes_wizard_web_view_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_web_view_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardWebViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_web_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizardWebView), 0, (GInstanceInitFunc) boxes_wizard_web_view_instance_init, NULL };
		GType boxes_wizard_web_view_type_id;
		boxes_wizard_web_view_type_id = g_type_register_static (gtk_bin_get_type (), "BoxesWizardWebView", &g_define_type_info, 0);
		g_once_init_leave (&boxes_wizard_web_view_type_id__volatile, boxes_wizard_web_view_type_id);
	}
	return boxes_wizard_web_view_type_id__volatile;
}


static void
_vala_boxes_wizard_web_view_get_property (GObject * object,
                                          guint property_id,
                                          GValue * value,
                                          GParamSpec * pspec)
{
	BoxesWizardWebView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_WEB_VIEW, BoxesWizardWebView);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (property_id) {
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_WEB_VIEW_VIEW_PROPERTY:
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_object (value, boxes_wizard_web_view_get_view (self));
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 3301 "wizard-source.c"
		default:
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 161 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 3307 "wizard-source.c"
	}
}


static void
_vala_GtkTreeRowReference_free (GtkTreeRowReference* self)
{
#line 312 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_boxed_free (gtk_tree_row_reference_get_type (), self);
#line 3317 "wizard-source.c"
}


static Block93Data*
block93_data_ref (Block93Data* _data93_)
{
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_atomic_int_inc (&_data93_->_ref_count_);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return _data93_;
#line 3328 "wizard-source.c"
}


static void
block93_data_unref (void * _userdata_)
{
	Block93Data* _data93_;
	_data93_ = (Block93Data*) _userdata_;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (g_atomic_int_dec_and_test (&_data93_->_ref_count_)) {
#line 3339 "wizard-source.c"
		BoxesWizardSource* self;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self = _data93_->self;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_data93_->os);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_data93_->uri);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_slice_free (Block93Data, _data93_);
#line 3351 "wizard-source.c"
	}
}


static gboolean
__lambda64_ (Block93Data* _data93_,
             GtkTreeModel* store,
             GtkTreePath* path,
             GtkTreeIter* iter)
{
	BoxesWizardSource* self;
	gboolean result = FALSE;
	gchar* os_uri = NULL;
	GtkListStore* _tmp0_;
	GtkTreeIter _tmp1_;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = _data93_->self;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (store != NULL, FALSE);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (path != NULL, FALSE);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 338 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->media_urls_store;
#line 338 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = *iter;
#line 338 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_tree_model_get ((GtkTreeModel*) _tmp0_, &_tmp1_, BOXES_OS_DATABASE_MEDIA_UR_LS_COLUMNS_URL, &os_uri, BOXES_OS_DATABASE_MEDIA_UR_LS_COLUMNS_OS, &_data93_->os, -1);
#line 341 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = g_strcmp0 (os_uri, _data93_->uri) == 0;
#line 341 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (os_uri);
#line 341 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 3387 "wizard-source.c"
}


static gboolean
___lambda64__gtk_tree_model_foreach_func (GtkTreeModel* model,
                                          GtkTreePath* path,
                                          GtkTreeIter* iter,
                                          gpointer self)
{
	gboolean result;
	result = __lambda64_ (self, model, path, iter);
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 3401 "wizard-source.c"
}


OsinfoOs*
boxes_wizard_source_get_os_from_uri (BoxesWizardSource* self,
                                     const gchar* uri)
{
	OsinfoOs* result = NULL;
	Block93Data* _data93_;
	gchar* _tmp0_;
	GtkListStore* _tmp1_;
	OsinfoOs* _tmp2_;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data93_ = g_slice_new0 (Block93Data);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data93_->_ref_count_ = 1;
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data93_->self = g_object_ref (self);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = g_strdup (uri);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_data93_->uri);
#line 333 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data93_->uri = _tmp0_;
#line 334 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data93_->os = NULL;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = self->priv->media_urls_store;
#line 336 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_tree_model_foreach ((GtkTreeModel*) _tmp1_, ___lambda64__gtk_tree_model_foreach_func, _data93_);
#line 344 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = _g_object_ref0 (_data93_->os);
#line 344 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp2_;
#line 344 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	block93_data_unref (_data93_);
#line 344 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data93_ = NULL;
#line 344 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 3446 "wizard-source.c"
}


static void
boxes_wizard_source_real_dispose (GObject* base)
{
	BoxesWizardSource * self;
	GCancellable* _tmp0_;
#line 406 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardSource*) base;
#line 407 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->rhel_cancellable;
#line 407 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp0_ != NULL) {
#line 3461 "wizard-source.c"
		GCancellable* _tmp1_;
#line 408 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp1_ = self->priv->rhel_cancellable;
#line 408 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_cancellable_cancel (_tmp1_);
#line 409 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self->priv->rhel_cancellable);
#line 409 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->rhel_cancellable = NULL;
#line 3471 "wizard-source.c"
	}
#line 412 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (boxes_wizard_source_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_stack_get_type (), GtkStack));
#line 3475 "wizard-source.c"
}


static Block94Data*
block94_data_ref (Block94Data* _data94_)
{
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_atomic_int_inc (&_data94_->_ref_count_);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return _data94_;
#line 3486 "wizard-source.c"
}


static void
block94_data_unref (void * _userdata_)
{
	Block94Data* _data94_;
	_data94_ = (Block94Data*) _userdata_;
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (g_atomic_int_dec_and_test (&_data94_->_ref_count_)) {
#line 3497 "wizard-source.c"
		BoxesWizardSource* self;
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self = _data94_->self;
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_data94_->rhel_id);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_data94_->os_db);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_slice_free (Block94Data, _data94_);
#line 3509 "wizard-source.c"
	}
}


static void
__lambda73_ (BoxesWizardSource* self,
             GObject* obj,
             GAsyncResult* res)
{
	GdkPixbuf* pixbuf = NULL;
	GtkImage* _tmp0_;
	GdkPixbuf* _tmp1_;
	GdkPixbuf* _tmp2_;
	GtkImage* _tmp3_;
#line 443 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (res != NULL);
#line 444 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_downloader_fetch_os_logo_finish (res);
#line 445 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->install_rhel_image;
#line 445 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_get (_tmp0_, "pixbuf", &_tmp1_, NULL);
#line 445 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = _tmp1_;
#line 445 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	pixbuf = _tmp2_;
#line 446 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = self->priv->install_rhel_image;
#line 446 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp3_, pixbuf != NULL);
#line 443 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (pixbuf);
#line 3542 "wizard-source.c"
}


static void
___lambda73__gasync_ready_callback (GObject* source_object,
                                    GAsyncResult* res,
                                    gpointer self)
{
#line 443 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda73_ ((BoxesWizardSource*) self, source_object, res);
#line 443 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_unref (self);
#line 3555 "wizard-source.c"
}


static void
__lambda65_ (Block94Data* _data94_,
             GObject* obj,
             GAsyncResult* res)
{
	BoxesWizardSource* self;
	GtkImage* _tmp5_;
	OsinfoOs* _tmp6_;
	GError * _inner_error_ = NULL;
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = _data94_->self;
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (res != NULL);
#line 3572 "wizard-source.c"
	{
		OsinfoOs* _tmp0_ = NULL;
		OsinfoOs* _tmp1_;
		OsinfoOs* _tmp2_;
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp1_ = boxes_os_database_get_os_by_id_finish (_data94_->os_db, res, &_inner_error_);
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = _tmp1_;
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			if (_inner_error_->domain == BOXES_OS_DATABASE_ERROR) {
#line 3585 "wizard-source.c"
				goto __catch137_boxes_os_database_error;
			}
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_clear_error (&_inner_error_);
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			return;
#line 3594 "wizard-source.c"
		}
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp2_ = _tmp0_;
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = NULL;
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self->priv->rhel_os);
#line 437 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->rhel_os = _tmp2_;
#line 436 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_tmp0_);
#line 3606 "wizard-source.c"
	}
	goto __finally137;
	__catch137_boxes_os_database_error:
	{
		GError* _error_ = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
#line 436 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_error_ = _inner_error_;
#line 436 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_inner_error_ = NULL;
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = _error_;
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp4_ = _tmp3_->message;
#line 439 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_warning ("wizard-source.vala:439: Failed to find OS with ID '%s': %s", _data94_->rhel_id, _tmp4_);
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_error_free0 (_error_);
#line 440 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return;
#line 3628 "wizard-source.c"
	}
	__finally137:
#line 436 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 436 "/home/fborges/checkout/gnome-boxes/src/wizard-source.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 436 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_clear_error (&_inner_error_);
#line 436 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return;
#line 3639 "wizard-source.c"
	}
#line 443 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = self->priv->install_rhel_image;
#line 443 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = self->priv->rhel_os;
#line 443 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_downloader_fetch_os_logo (_tmp5_, _tmp6_, 64, ___lambda73__gasync_ready_callback, g_object_ref (self));
#line 3647 "wizard-source.c"
}


static void
___lambda65__gasync_ready_callback (GObject* source_object,
                                    GAsyncResult* res,
                                    gpointer self)
{
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda65_ (self, source_object, res);
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	block94_data_unref (self);
#line 3660 "wizard-source.c"
}


void
boxes_wizard_source_setup_ui (BoxesWizardSource* self,
                              BoxesAppWindow* window)
{
	Block94Data* _data94_;
	BoxesAppWindow* _tmp0_;
	BoxesMediaManager* _tmp1_;
	BoxesOSDatabase* _tmp2_;
	BoxesOSDatabase* _tmp3_;
	BoxesOSDatabase* _tmp4_;
	gchar* _tmp5_;
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (window != NULL);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data94_ = g_slice_new0 (Block94Data);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data94_->_ref_count_ = 1;
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data94_->self = g_object_ref (self);
#line 416 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_vala_assert (window != NULL, "window != null");
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = _g_object_ref0 (window);
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->window);
#line 418 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->window = _tmp0_;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = self->media_manager;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = boxes_media_manager_get_os_db (_tmp1_);
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = _tmp2_;
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 420 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data94_->os_db = _tmp4_;
#line 433 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = g_strdup ("http://redhat.com/rhel/7.4");
#line 433 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data94_->rhel_id = _tmp5_;
#line 435 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_os_database_get_os_by_id (_data94_->os_db, _data94_->rhel_id, ___lambda65__gasync_ready_callback, block94_data_ref (_data94_));
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	block94_data_unref (_data94_);
#line 415 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data94_ = NULL;
#line 3713 "wizard-source.c"
}


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


static void
block95_data_unref (void * _userdata_)
{
	Block95Data* _data95_;
	_data95_ = (Block95Data*) _userdata_;
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (g_atomic_int_dec_and_test (&_data95_->_ref_count_)) {
#line 3735 "wizard-source.c"
		BoxesWizardSource* self;
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self = _data95_->self;
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_data95_->os_db);
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self);
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_slice_free (Block95Data, _data95_);
#line 3745 "wizard-source.c"
	}
}


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


static void
block96_data_unref (void * _userdata_)
{
	Block96Data* _data96_;
	_data96_ = (Block96Data*) _userdata_;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (g_atomic_int_dec_and_test (&_data96_->_ref_count_)) {
#line 3768 "wizard-source.c"
		BoxesWizardSource* self;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self = _data96_->_data95_->self;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (_data96_->os_id);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		block95_data_unref (_data96_->_data95_);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data96_->_data95_ = NULL;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_slice_free (Block96Data, _data96_);
#line 3780 "wizard-source.c"
	}
}


static void
____lambda74_ (Block96Data* _data96_,
               GObject* obj,
               GAsyncResult* res)
{
	Block95Data* _data95_;
	BoxesWizardSource* self;
	GError * _inner_error_ = NULL;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data95_ = _data96_->_data95_;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = _data95_->self;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (res != NULL);
#line 3799 "wizard-source.c"
	{
		OsinfoOs* os = NULL;
		BoxesOSDatabase* _tmp0_;
		OsinfoOs* _tmp1_;
		OsinfoMedia* media = NULL;
		OsinfoOs* _tmp2_;
		OsinfoMediaList* _tmp3_;
		OsinfoMediaList* _tmp4_;
		OsinfoEntity* _tmp5_;
		OsinfoMedia* _tmp6_;
		OsinfoMedia* _tmp7_;
		GtkWidget* entry = NULL;
		OsinfoMedia* _tmp8_;
		GtkWidget* _tmp9_;
		GtkListBox* _tmp10_;
		GtkWidget* _tmp11_;
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = _data95_->os_db;
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp1_ = boxes_os_database_get_os_by_id_finish (_tmp0_, res, &_inner_error_);
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		os = _tmp1_;
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			if (_inner_error_->domain == BOXES_OS_DATABASE_ERROR) {
#line 3826 "wizard-source.c"
				goto __catch138_boxes_os_database_error;
			}
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_clear_error (&_inner_error_);
#line 457 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			return;
#line 3835 "wizard-source.c"
		}
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp2_ = os;
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = osinfo_os_get_media_list (_tmp2_);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp4_ = _tmp3_;
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp5_ = osinfo_list_get_nth ((OsinfoList*) _tmp4_, 0);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, osinfo_media_get_type ()) ? ((OsinfoMedia*) _tmp5_) : NULL);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp7_ = _tmp6_;
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_tmp4_);
#line 460 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		media = _tmp7_;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp8_ = media;
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp9_ = boxes_wizard_source_create_downloadable_entry (self, (GObject*) _tmp8_);
#line 461 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		entry = _tmp9_;
#line 463 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp10_ = self->priv->downloads_vbox;
#line 463 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp11_ = entry;
#line 463 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		gtk_list_box_insert (_tmp10_, _tmp11_, -1);
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (entry);
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (media);
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (os);
#line 3871 "wizard-source.c"
	}
	goto __finally138;
	__catch138_boxes_os_database_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp12_;
		GError* _tmp13_;
		const gchar* _tmp14_;
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_error_ = _inner_error_;
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_inner_error_ = NULL;
#line 465 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp12_ = _data96_->os_id;
#line 465 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp13_ = _error_;
#line 465 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp14_ = _tmp13_->message;
#line 465 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_warning ("wizard-source.vala:465: Failed to find OS with ID '%s': %s", _tmp12_, _tmp14_);
#line 466 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_error_free0 (_error_);
#line 466 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return;
#line 3896 "wizard-source.c"
	}
	__finally138:
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.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 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_clear_error (&_inner_error_);
#line 456 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return;
#line 3907 "wizard-source.c"
	}
}


static void
_____lambda74__gasync_ready_callback (GObject* source_object,
                                      GAsyncResult* res,
                                      gpointer self)
{
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	____lambda74_ (self, source_object, res);
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	block96_data_unref (self);
#line 3921 "wizard-source.c"
}


static void
boxes_wizard_source_on_downloads_scrolled_shown (BoxesWizardSource* self)
{
	Block95Data* _data95_;
	BoxesMediaManager* _tmp0_;
	BoxesOSDatabase* _tmp1_;
	BoxesOSDatabase* _tmp2_;
	BoxesOSDatabase* _tmp3_;
	gchar** _tmp4_;
	gint _tmp4__length1;
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data95_ = g_slice_new0 (Block95Data);
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data95_->_ref_count_ = 1;
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data95_->self = g_object_ref (self);
#line 453 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->media_manager;
#line 453 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = boxes_media_manager_get_os_db (_tmp0_);
#line 453 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = _tmp1_;
#line 453 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 453 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data95_->os_db = _tmp3_;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = self->priv->recommended_downloads;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4__length1 = self->priv->recommended_downloads_length1;
#line 3957 "wizard-source.c"
	{
		gchar** os_id_collection = NULL;
		gint os_id_collection_length1 = 0;
		gint _os_id_collection_size_ = 0;
		gint os_id_it = 0;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		os_id_collection = _tmp4_;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		os_id_collection_length1 = _tmp4__length1;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (os_id_it = 0; os_id_it < _tmp4__length1; os_id_it = os_id_it + 1) {
#line 3969 "wizard-source.c"
			gchar* _tmp5_;
			gchar* os_id = NULL;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp5_ = g_strdup (os_id_collection[os_id_it]);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			os_id = _tmp5_;
#line 3976 "wizard-source.c"
			{
				Block96Data* _data96_;
				BoxesOSDatabase* _tmp6_;
				const gchar* _tmp7_;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data96_ = g_slice_new0 (Block96Data);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data96_->_ref_count_ = 1;
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data96_->_data95_ = block95_data_ref (_data95_);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data96_->os_id = os_id;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp6_ = _data95_->os_db;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_tmp7_ = _data96_->os_id;
#line 455 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				boxes_os_database_get_os_by_id (_tmp6_, _tmp7_, _____lambda74__gasync_ready_callback, block96_data_ref (_data96_));
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				block96_data_unref (_data96_);
#line 454 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data96_ = NULL;
#line 3999 "wizard-source.c"
			}
		}
	}
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	block95_data_unref (_data95_);
#line 452 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data95_ = NULL;
#line 4007 "wizard-source.c"
}


static void
_boxes_wizard_source_on_downloads_scrolled_shown_gtk_widget_show (GtkWidget* _sender,
                                                                  gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_downloads_scrolled_shown ((BoxesWizardSource*) self);
#line 4017 "wizard-source.c"
}


static GtkWidget*
boxes_wizard_source_create_downloadable_entry (BoxesWizardSource* self,
                                               GObject* item)
{
	GtkWidget* result = NULL;
	OsinfoMedia* media = NULL;
	OsinfoMedia* _tmp0_;
	BoxesWizardDownloadableEntry* entry = NULL;
	BoxesWizardDownloadableEntry* _tmp1_;
#line 472 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 472 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (item != NULL, NULL);
#line 473 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (item, osinfo_media_get_type ()) ? ((OsinfoMedia*) item) : NULL);
#line 473 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	media = _tmp0_;
#line 475 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = boxes_wizard_downloadable_entry_new (media);
#line 475 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_ref_sink (_tmp1_);
#line 475 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	entry = _tmp1_;
#line 477 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = (GtkWidget*) entry;
#line 477 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (media);
#line 477 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 4050 "wizard-source.c"
}


static void
boxes_wizard_source_on_downloadable_entry_clicked (BoxesWizardSource* self,
                                                   GtkListBoxRow* row)
{
	BoxesWizardDownloadableEntry* entry = NULL;
	BoxesWizardDownloadableEntry* _tmp0_;
	const gchar* _tmp1_;
#line 480 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 480 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (row != NULL);
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (row, BOXES_TYPE_WIZARD_DOWNLOADABLE_ENTRY) ? ((BoxesWizardDownloadableEntry*) row) : NULL);
#line 481 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	entry = _tmp0_;
#line 483 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_selected (self, (GtkWidget*) entry);
#line 484 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = entry->url;
#line 484 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_uri (self, _tmp1_);
#line 486 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_emit (self, boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL], 0);
#line 480 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (entry);
#line 4079 "wizard-source.c"
}


void
boxes_wizard_source_cleanup (BoxesWizardSource* self)
{
	BoxesSourcePage _tmp0_;
	BoxesSourcePage _tmp1_;
	GCancellable* _tmp2_;
#line 489 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 490 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_filename (self, NULL);
#line 491 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_install_media (self, NULL);
#line 492 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->libvirt_sys_import = FALSE;
#line 493 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_selected (self, NULL);
#line 494 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = boxes_wizard_source_get_page (self);
#line 494 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = _tmp0_;
#line 494 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp1_ != BOXES_SOURCE_PAGE_URL) {
#line 495 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_uri (self, "");
#line 4107 "wizard-source.c"
	}
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = self->priv->rhel_cancellable;
#line 497 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp2_ != NULL) {
#line 4113 "wizard-source.c"
		GCancellable* _tmp3_;
#line 498 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = self->priv->rhel_cancellable;
#line 498 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_cancellable_cancel (_tmp3_);
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self->priv->rhel_cancellable);
#line 499 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->rhel_cancellable = NULL;
#line 4123 "wizard-source.c"
	}
}


static void
boxes_wizard_source_on_enter_url_button_clicked (BoxesWizardSource* self)
{
#line 504 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 505 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_page (self, BOXES_SOURCE_PAGE_URL);
#line 4135 "wizard-source.c"
}


static void
_boxes_wizard_source_on_enter_url_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                     gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_enter_url_button_clicked ((BoxesWizardSource*) self);
#line 4145 "wizard-source.c"
}


static void
boxes_wizard_source_on_url_entry_activated (BoxesWizardSource* self)
{
#line 509 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 510 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_emit (self, boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL], 0);
#line 4156 "wizard-source.c"
}


static void
_boxes_wizard_source_on_url_entry_activated_gtk_entry_activate (GtkEntry* _sender,
                                                                gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_url_entry_activated ((BoxesWizardSource*) self);
#line 4166 "wizard-source.c"
}


static void
boxes_wizard_source_on_url_back_button_clicked (BoxesWizardSource* self)
{
#line 514 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 515 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_selected (self, NULL);
#line 516 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_page (self, BOXES_SOURCE_PAGE_MAIN);
#line 4179 "wizard-source.c"
}


static void
_boxes_wizard_source_on_url_back_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                    gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_url_back_button_clicked ((BoxesWizardSource*) self);
#line 4189 "wizard-source.c"
}


static void
boxes_wizard_source_add_media_entries_data_free (gpointer _data)
{
	BoxesWizardSourceAddMediaEntriesData* _data_;
	_data_ = _data;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (_data_->self);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_slice_free (BoxesWizardSourceAddMediaEntriesData, _data_);
#line 4202 "wizard-source.c"
}


static void
boxes_wizard_source_add_media_entries (BoxesWizardSource* self,
                                       GAsyncReadyCallback _callback_,
                                       gpointer _user_data_)
{
	BoxesWizardSourceAddMediaEntriesData* _data_;
	BoxesWizardSource* _tmp0_;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_ = g_slice_new0 (BoxesWizardSourceAddMediaEntriesData);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_wizard_source_add_media_entries_data_free);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->self = _tmp0_;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_add_media_entries_co (_data_);
#line 4225 "wizard-source.c"
}


static void
boxes_wizard_source_add_media_entries_finish (BoxesWizardSource* self,
                                              GAsyncResult* _res_)
{
	BoxesWizardSourceAddMediaEntriesData* _data_;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4236 "wizard-source.c"
}


static void
boxes_wizard_source_add_media_entries_ready (GObject* source_object,
                                             GAsyncResult* _res_,
                                             gpointer _user_data_)
{
	BoxesWizardSourceAddMediaEntriesData* _data_;
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_ = _user_data_;
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_source_object_ = source_object;
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_res_ = _res_;
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_add_media_entries_co (_data_);
#line 4254 "wizard-source.c"
}


static gboolean
boxes_wizard_source_add_media_entries_co (BoxesWizardSourceAddMediaEntriesData* _data_)
{
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (_data_->_state_) {
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case 0:
#line 4265 "wizard-source.c"
		goto _state_0;
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case 1:
#line 4269 "wizard-source.c"
		goto _state_1;
		default:
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_assert_not_reached ();
#line 4274 "wizard-source.c"
	}
	_state_0:
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp0_ = _data_->self->media_manager;
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_state_ = 1;
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_media_manager_list_installer_medias (_data_->_tmp0_, boxes_wizard_source_add_media_entries_ready, _data_);
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return FALSE;
#line 4285 "wizard-source.c"
	_state_1:
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp1_ = boxes_media_manager_list_installer_medias_finish (_data_->_tmp0_, _data_->_res_);
#line 520 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->medias = _data_->_tmp1_;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp2_ = _data_->self->priv->media_vbox;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp3_ = gtk_container_get_children ((GtkContainer*) _data_->_tmp2_);
#line 4295 "wizard-source.c"
	{
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->child_collection = _data_->_tmp3_;
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (_data_->child_it = _data_->child_collection; _data_->child_it != NULL; _data_->child_it = _data_->child_it->next) {
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_data_->child = (GtkWidget*) _data_->child_it->data;
#line 4303 "wizard-source.c"
			{
#line 523 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp4_ = _data_->child;
#line 523 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp5_ = (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp4_, BOXES_TYPE_WIZARD_MEDIA_ENTRY) ? ((BoxesWizardMediaEntry*) _data_->_tmp4_) : NULL)->media;
#line 523 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp6_ = _g_object_ref0 (_data_->_tmp5_);
#line 523 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->child_media = _data_->_tmp6_;
#line 525 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->obsolete = TRUE;
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp7_ = _data_->medias;
#line 4317 "wizard-source.c"
				{
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_data_->media_collection = _data_->_tmp7_;
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					for (_data_->media_it = _data_->media_collection; _data_->media_it != NULL; _data_->media_it = _data_->media_it->next) {
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
						_data_->_tmp8_ = _g_object_ref0 ((BoxesInstallerMedia*) _data_->media_it->data);
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
						_data_->media = _data_->_tmp8_;
#line 4327 "wizard-source.c"
						{
#line 527 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp9_ = _data_->child_media;
#line 527 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp10_ = _data_->_tmp9_->device_file;
#line 527 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp11_ = _data_->media;
#line 527 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp12_ = _data_->_tmp11_->device_file;
#line 527 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							if (g_strcmp0 (_data_->_tmp10_, _data_->_tmp12_) == 0) {
#line 528 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
								_data_->obsolete = FALSE;
#line 530 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
								_g_object_unref0 (_data_->media);
#line 530 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
								break;
#line 4345 "wizard-source.c"
							}
#line 526 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_g_object_unref0 (_data_->media);
#line 4349 "wizard-source.c"
						}
					}
				}
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp13_ = _data_->obsolete;
#line 533 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_data_->_tmp13_) {
#line 534 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_data_->_tmp14_ = _data_->self->priv->media_vbox;
#line 534 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_data_->_tmp15_ = _data_->child;
#line 534 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					gtk_container_remove ((GtkContainer*) _data_->_tmp14_, _data_->_tmp15_);
#line 4363 "wizard-source.c"
				}
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_object_unref0 (_data_->child_media);
#line 4367 "wizard-source.c"
			}
		}
#line 522 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_list_free0 (_data_->child_collection);
#line 4372 "wizard-source.c"
	}
#line 537 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp16_ = _data_->medias;
#line 4376 "wizard-source.c"
	{
#line 537 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_vala1_media_collection = _data_->_tmp16_;
#line 537 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		for (_data_->_vala1_media_it = _data_->_vala1_media_collection; _data_->_vala1_media_it != NULL; _data_->_vala1_media_it = _data_->_vala1_media_it->next) {
#line 537 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_data_->_tmp17_ = _g_object_ref0 ((BoxesInstallerMedia*) _data_->_vala1_media_it->data);
#line 537 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_data_->_vala1_media = _data_->_tmp17_;
#line 4386 "wizard-source.c"
			{
#line 538 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->nouveau = TRUE;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp18_ = _data_->self->priv->media_vbox;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp19_ = gtk_container_get_children ((GtkContainer*) _data_->_tmp18_);
#line 4394 "wizard-source.c"
				{
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_data_->_vala1_child_collection = _data_->_tmp19_;
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					for (_data_->_vala1_child_it = _data_->_vala1_child_collection; _data_->_vala1_child_it != NULL; _data_->_vala1_child_it = _data_->_vala1_child_it->next) {
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
						_data_->_vala1_child = (GtkWidget*) _data_->_vala1_child_it->data;
#line 4402 "wizard-source.c"
						{
#line 540 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp20_ = _data_->_vala1_child;
#line 540 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp21_ = (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp20_, BOXES_TYPE_WIZARD_MEDIA_ENTRY) ? ((BoxesWizardMediaEntry*) _data_->_tmp20_) : NULL)->media;
#line 540 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp22_ = _g_object_ref0 (_data_->_tmp21_);
#line 540 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_vala1_child_media = _data_->_tmp22_;
#line 541 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp23_ = _data_->_vala1_child_media;
#line 541 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp24_ = _data_->_tmp23_->device_file;
#line 541 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp25_ = _data_->_vala1_media;
#line 541 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_data_->_tmp26_ = _data_->_tmp25_->device_file;
#line 541 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							if (g_strcmp0 (_data_->_tmp24_, _data_->_tmp26_) == 0) {
#line 542 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
								_data_->nouveau = FALSE;
#line 544 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
								_g_object_unref0 (_data_->_vala1_child_media);
#line 544 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
								break;
#line 4428 "wizard-source.c"
							}
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
							_g_object_unref0 (_data_->_vala1_child_media);
#line 4432 "wizard-source.c"
						}
					}
#line 539 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_g_list_free0 (_data_->_vala1_child_collection);
#line 4437 "wizard-source.c"
				}
#line 548 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_data_->_tmp27_ = _data_->nouveau;
#line 548 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				if (_data_->_tmp27_) {
#line 549 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					_data_->_tmp28_ = _data_->_vala1_media;
#line 549 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
					boxes_wizard_source_add_media_entry (_data_->self, _data_->_tmp28_);
#line 4447 "wizard-source.c"
				}
#line 537 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				_g_object_unref0 (_data_->_vala1_media);
#line 4451 "wizard-source.c"
			}
		}
	}
#line 553 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp29_ = _data_->self->priv->media_vbox;
#line 553 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp30_ = gtk_container_get_children ((GtkContainer*) _data_->_tmp29_);
#line 553 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp31_ = _data_->_tmp30_;
#line 553 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp32_ = g_list_length (_data_->_tmp31_) == ((guint) 0);
#line 553 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_list_free0 (_data_->_tmp31_);
#line 553 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_data_->_tmp32_) {
#line 554 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_tmp33_ = _data_->self->priv->media_scrolled;
#line 554 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		gtk_widget_hide ((GtkWidget*) _data_->_tmp33_);
#line 4471 "wizard-source.c"
	}
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__g_list_free__g_object_unref0_0 (_data_->medias);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_data_->_state_ != 0) {
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 4483 "wizard-source.c"
		}
	}
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_unref (_data_->_async_result);
#line 519 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return FALSE;
#line 4490 "wizard-source.c"
}


static void
boxes_wizard_source_add_media_entry (BoxesWizardSource* self,
                                     BoxesInstallerMedia* media)
{
	BoxesWizardMediaEntry* entry = NULL;
	BoxesWizardMediaEntry* _tmp0_;
	GtkListBox* _tmp1_;
	BoxesWizardScrolled* _tmp2_;
#line 557 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 557 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (media != NULL);
#line 558 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = boxes_wizard_media_entry_new (media);
#line 558 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_ref_sink (_tmp0_);
#line 558 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	entry = _tmp0_;
#line 559 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = self->priv->media_vbox;
#line 559 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_container_add ((GtkContainer*) _tmp1_, (GtkWidget*) entry);
#line 561 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = self->priv->media_scrolled;
#line 561 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_show ((GtkWidget*) _tmp2_);
#line 557 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (entry);
#line 4522 "wizard-source.c"
}


static void
boxes_wizard_source_update_libvirt_sytem_entry_visibility_data_free (gpointer _data)
{
	BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData* _data_;
	_data_ = _data;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (_data_->self);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_slice_free (BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData, _data_);
#line 4535 "wizard-source.c"
}


static void
boxes_wizard_source_update_libvirt_sytem_entry_visibility (BoxesWizardSource* self,
                                                           GAsyncReadyCallback _callback_,
                                                           gpointer _user_data_)
{
	BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData* _data_;
	BoxesWizardSource* _tmp0_;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_ = g_slice_new0 (BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_wizard_source_update_libvirt_sytem_entry_visibility_data_free);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->self = _tmp0_;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_update_libvirt_sytem_entry_visibility_co (_data_);
#line 4558 "wizard-source.c"
}


static void
boxes_wizard_source_update_libvirt_sytem_entry_visibility_finish (BoxesWizardSource* self,
                                                                  GAsyncResult* _res_)
{
	BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData* _data_;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4569 "wizard-source.c"
}


static void
boxes_wizard_source_update_libvirt_sytem_entry_visibility_ready (GObject* source_object,
                                                                 GAsyncResult* _res_,
                                                                 gpointer _user_data_)
{
	BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData* _data_;
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_ = _user_data_;
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_source_object_ = source_object;
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_res_ = _res_;
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_update_libvirt_sytem_entry_visibility_co (_data_);
#line 4587 "wizard-source.c"
}


static gboolean
boxes_wizard_source_update_libvirt_sytem_entry_visibility_co (BoxesWizardSourceUpdateLibvirtSytemEntryVisibilityData* _data_)
{
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (_data_->_state_) {
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case 0:
#line 4598 "wizard-source.c"
		goto _state_0;
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case 1:
#line 4602 "wizard-source.c"
		goto _state_1;
		default:
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_assert_not_reached ();
#line 4607 "wizard-source.c"
	}
	_state_0:
	{
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_state_ = 1;
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_libvirt_system_importer_new (boxes_wizard_source_update_libvirt_sytem_entry_visibility_ready, _data_);
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return FALSE;
#line 4617 "wizard-source.c"
		_state_1:
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_tmp1_ = boxes_libvirt_system_importer_new_finish (_data_->_res_, &_data_->_inner_error_);
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_tmp0_ = _data_->_tmp1_;
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 4625 "wizard-source.c"
			goto __catch139_g_error;
		}
#line 566 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_libvirt_sys_importer (_data_->self, _data_->_tmp0_);
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_data_->_tmp0_);
#line 4632 "wizard-source.c"
	}
	goto __finally139;
	__catch139_g_error:
	{
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_inner_error_ = NULL;
#line 568 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_tmp2_ = _data_->_error_;
#line 568 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_data_->_tmp3_ = _data_->_tmp2_->message;
#line 568 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_debug ("wizard-source.vala:568: %s", _data_->_tmp3_);
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_error_free0 (_data_->_error_);
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_data_->_state_ != 0) {
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 4657 "wizard-source.c"
			}
		}
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_unref (_data_->_async_result);
#line 570 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return FALSE;
#line 4664 "wizard-source.c"
	}
	__finally139:
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.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 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_clear_error (&_data_->_inner_error_);
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_unref (_data_->_async_result);
#line 565 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return FALSE;
#line 4677 "wizard-source.c"
	}
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp4_ = _data_->self->priv->libvirt_sys_import_label;
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp5_ = _data_->self->priv->_libvirt_sys_importer;
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp6_ = boxes_libvirt_system_importer_get_wizard_menu_label (_data_->_tmp5_);
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_label_set_label (_data_->_tmp4_, _data_->_tmp8_);
#line 572 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_data_->_tmp8_);
#line 573 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_data_->_tmp9_ = _data_->self->priv->libvirt_sys_import_button;
#line 573 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_show_all ((GtkWidget*) _data_->_tmp9_);
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_data_->_state_ != 0) {
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 4705 "wizard-source.c"
		}
	}
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_unref (_data_->_async_result);
#line 564 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return FALSE;
#line 4712 "wizard-source.c"
}


static void
__lambda155_ (BoxesWizardSource* self,
              const gchar* uri)
{
	GtkButton* _tmp0_;
#line 578 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (uri != NULL);
#line 579 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_uri (self, uri);
#line 581 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_install_media (self, NULL);
#line 582 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_emit (self, boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL], 0);
#line 584 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->select_file_button;
#line 584 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_selected (self, (GtkWidget*) _tmp0_);
#line 4733 "wizard-source.c"
}


static void
___lambda155__boxes_wizard_window_file_chosen_func (const gchar* uri,
                                                    gpointer self)
{
#line 578 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda155_ ((BoxesWizardSource*) self, uri);
#line 4743 "wizard-source.c"
}


static void
boxes_wizard_source_on_select_file_button_clicked (BoxesWizardSource* self)
{
	BoxesAppWindow* _tmp0_;
	BoxesWizardWindow* _tmp1_;
#line 577 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 578 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->window;
#line 578 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = _tmp0_->wizard_window;
#line 578 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_window_show_file_chooser (_tmp1_, ___lambda155__boxes_wizard_window_file_chosen_func, g_object_ref (self), g_object_unref);
#line 4760 "wizard-source.c"
}


static void
_boxes_wizard_source_on_select_file_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                       gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_select_file_button_clicked ((BoxesWizardSource*) self);
#line 4770 "wizard-source.c"
}


static void
boxes_wizard_source_on_libvirt_sys_import_button_clicked (BoxesWizardSource* self)
{
	GtkButton* _tmp0_;
#line 589 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 590 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->libvirt_sys_import = TRUE;
#line 591 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_emit (self, boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL], 0);
#line 593 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->libvirt_sys_import_button;
#line 593 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_selected (self, (GtkWidget*) _tmp0_);
#line 4788 "wizard-source.c"
}


static void
_boxes_wizard_source_on_libvirt_sys_import_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                              gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_libvirt_sys_import_button_clicked ((BoxesWizardSource*) self);
#line 4798 "wizard-source.c"
}


static void
boxes_wizard_source_on_media_selected (BoxesWizardSource* self,
                                       BoxesInstallerMedia* media)
{
	GError * _inner_error_ = NULL;
#line 596 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 596 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (media != NULL);
#line 4811 "wizard-source.c"
	{
		BoxesInstallerMedia* _tmp0_ = NULL;
		BoxesMediaManager* _tmp1_;
		BoxesInstallerMedia* _tmp2_;
		const gchar* _tmp3_;
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp1_ = self->media_manager;
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp2_ = boxes_media_manager_create_installer_media_from_media (_tmp1_, media, &_inner_error_);
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = _tmp2_;
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4825 "wizard-source.c"
			goto __catch140_g_error;
		}
#line 598 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_install_media (self, _tmp0_);
#line 599 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = media->device_file;
#line 599 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_uri (self, _tmp3_);
#line 600 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_signal_emit (self, boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL], 0);
#line 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (_tmp0_);
#line 4838 "wizard-source.c"
	}
	goto __finally140;
	__catch140_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp4_;
		GError* _tmp5_;
		const gchar* _tmp6_;
#line 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_error_ = _inner_error_;
#line 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_inner_error_ = NULL;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp4_ = media->device_file;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp5_ = _error_;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp6_ = _tmp5_->message;
#line 603 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_warning ("wizard-source.vala:603: Failed to setup installation media '%s': %s", _tmp4_, _tmp6_);
#line 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_error_free0 (_error_);
#line 4861 "wizard-source.c"
	}
	__finally140:
#line 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.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 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_clear_error (&_inner_error_);
#line 597 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return;
#line 4872 "wizard-source.c"
	}
}


static void
__lambda158_ (BoxesWizardSource* self,
              const gchar* uri)
{
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (uri != NULL);
#line 610 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_uri (self, uri);
#line 612 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_emit (self, boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL], 0);
#line 4887 "wizard-source.c"
}


static void
___lambda158__boxes_wizard_window_download_chosen_func (const gchar* uri,
                                                        gpointer self)
{
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda158_ ((BoxesWizardSource*) self, uri);
#line 4897 "wizard-source.c"
}


static void
__lambda160_ (BoxesWizardSource* self)
{
#line 619 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_install_rhel_button_clicked (self);
#line 4906 "wizard-source.c"
}


static void
___lambda160__boxes_wizard_window_custom_download_chosen_func (gpointer self)
{
#line 618 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda160_ ((BoxesWizardSource*) self);
#line 4915 "wizard-source.c"
}


static void
boxes_wizard_source_on_download_an_os_button_clicked (BoxesWizardSource* self)
{
	BoxesAppWindow* _tmp0_;
	BoxesWizardWindow* _tmp1_;
	BoxesMediaManager* _tmp2_;
	BoxesOSDatabase* _tmp3_;
	BoxesOSDatabase* _tmp4_;
	BoxesAppWindow* _tmp5_;
	BoxesWizardWindow* _tmp6_;
	GtkListBoxRow* _tmp7_;
#line 608 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->window;
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = _tmp0_->wizard_window;
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = self->media_manager;
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = boxes_media_manager_get_os_db (_tmp2_);
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = _tmp3_;
#line 609 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_window_show_downloads_page (_tmp1_, _tmp4_, ___lambda158__boxes_wizard_window_download_chosen_func, g_object_ref (self), g_object_unref);
#line 618 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = self->priv->window;
#line 618 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = _tmp5_->wizard_window;
#line 618 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = self->priv->install_rhel_button;
#line 618 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_window_add_custom_download (_tmp6_, _tmp7_, ___lambda160__boxes_wizard_window_custom_download_chosen_func, g_object_ref (self), g_object_unref);
#line 4952 "wizard-source.c"
}


static void
_boxes_wizard_source_on_download_an_os_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                          gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_download_an_os_button_clicked ((BoxesWizardSource*) self);
#line 4962 "wizard-source.c"
}


static void
__lambda161_ (BoxesWizardSource* self)
{
	BoxesWizardWebView* _tmp0_;
	WebKitWebView* _tmp1_;
	WebKitWebView* _tmp2_;
	BoxesWizardWebView* _tmp3_;
	WebKitWebView* _tmp4_;
	WebKitWebView* _tmp5_;
	WebKitWebsiteDataManager* data_manager = NULL;
	BoxesWizardWebView* _tmp6_;
	WebKitWebView* _tmp7_;
	WebKitWebView* _tmp8_;
	WebKitWebsiteDataManager* _tmp9_;
	WebKitWebsiteDataManager* _tmp10_;
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->rhel_web_view;
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = boxes_wizard_web_view_get_view (_tmp0_);
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = _tmp1_;
#line 629 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	webkit_web_view_stop_loading (_tmp2_);
#line 630 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = self->priv->rhel_web_view;
#line 630 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = boxes_wizard_web_view_get_view (_tmp3_);
#line 630 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = _tmp4_;
#line 630 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	webkit_web_view_load_uri (_tmp5_, "about:blank");
#line 632 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = self->priv->rhel_web_view;
#line 632 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = boxes_wizard_web_view_get_view (_tmp6_);
#line 632 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp8_ = _tmp7_;
#line 632 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp9_ = webkit_web_view_get_website_data_manager (_tmp8_);
#line 632 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp10_ = _g_object_ref0 (_tmp9_);
#line 632 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	data_manager = _tmp10_;
#line 633 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	webkit_website_data_manager_clear (data_manager, WEBKIT_WEBSITE_DATA_COOKIES, (GTimeSpan) 0, NULL, NULL, NULL);
#line 628 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (data_manager);
#line 5013 "wizard-source.c"
}


static void
___lambda161__gfunc (gconstpointer data,
                     gpointer self)
{
#line 628 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__lambda161_ ((BoxesWizardSource*) self);
#line 5023 "wizard-source.c"
}


static void
boxes_wizard_source_on_install_rhel_button_clicked (BoxesWizardSource* self)
{
	GCancellable* _tmp0_;
	GCancellable* _tmp1_;
	gchar* user_agent = NULL;
	gchar* _tmp2_;
	gchar* user_agent_escaped = NULL;
	gchar* _tmp3_;
	gchar* authentication_uri = NULL;
	gchar* _tmp4_;
	BoxesWizardWebView* _tmp5_;
	WebKitWebView* _tmp6_;
	WebKitWebView* _tmp7_;
#line 624 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 625 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_page (self, BOXES_SOURCE_PAGE_RHEL_WEB_VIEW);
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = g_cancellable_new ();
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->rhel_cancellable);
#line 627 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->rhel_cancellable = _tmp0_;
#line 628 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = self->priv->rhel_cancellable;
#line 628 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_cancellable_connect (_tmp1_, (GCallback) ___lambda161__gfunc, g_object_ref (self), g_object_unref);
#line 636 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = boxes_get_user_agent ();
#line 636 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	user_agent = _tmp2_;
#line 637 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = g_uri_escape_string (user_agent, NULL, FALSE);
#line 637 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	user_agent_escaped = _tmp3_;
#line 638 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = g_strconcat ("https://developers.redhat.com/download-manager/rest/featured/file/rhel" "?tag=", user_agent_escaped, NULL);
#line 638 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	authentication_uri = _tmp4_;
#line 641 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_debug ("wizard-source.vala:641: RHEL ISO authentication URI: %s", authentication_uri);
#line 643 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = self->priv->rhel_web_view;
#line 643 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = boxes_wizard_web_view_get_view (_tmp5_);
#line 643 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = _tmp6_;
#line 643 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	webkit_web_view_load_uri (_tmp7_, authentication_uri);
#line 624 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (authentication_uri);
#line 624 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (user_agent_escaped);
#line 624 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (user_agent);
#line 5083 "wizard-source.c"
}


static void
_boxes_wizard_source_on_install_rhel_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                        gpointer self)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_install_rhel_button_clicked ((BoxesWizardSource*) self);
#line 5093 "wizard-source.c"
}


static WebKitNavigationAction*
_vala_WebKitNavigationAction_copy (WebKitNavigationAction* self)
{
#line 652 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return g_boxed_copy (webkit_navigation_action_get_type (), self);
#line 5102 "wizard-source.c"
}


static gpointer
__vala_WebKitNavigationAction_copy0 (gpointer self)
{
#line 652 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return self ? _vala_WebKitNavigationAction_copy (self) : NULL;
#line 5111 "wizard-source.c"
}


static void
_vala_WebKitNavigationAction_free (WebKitNavigationAction* self)
{
#line 656 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_boxed_free (webkit_navigation_action_get_type (), self);
#line 5120 "wizard-source.c"
}


static void
_vala_SoupURI_free (SoupURI* self)
{
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_boxed_free (soup_uri_get_type (), self);
#line 5129 "wizard-source.c"
}


static void
_vala_GtkTreePath_free (GtkTreePath* self)
{
#line 679 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_boxed_free (gtk_tree_path_get_type (), self);
#line 5138 "wizard-source.c"
}


static gboolean
boxes_wizard_source_on_rhel_web_view_decide_policy (BoxesWizardSource* self,
                                                    WebKitWebView* web_view,
                                                    WebKitPolicyDecision* decision,
                                                    WebKitPolicyDecisionType decision_type)
{
	gboolean result = FALSE;
	WebKitNavigationAction* action = NULL;
	WebKitNavigationAction* _tmp0_;
	WebKitNavigationAction* _tmp1_;
	WebKitURIRequest* request = NULL;
	WebKitNavigationAction* _tmp2_;
	WebKitURIRequest* _tmp3_;
	WebKitURIRequest* _tmp4_;
	gchar* request_uri = NULL;
	WebKitURIRequest* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	SoupURI* soup_request_uri = NULL;
	const gchar* _tmp9_;
	SoupURI* _tmp10_;
	gchar* query = NULL;
	SoupURI* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	GHashTable* key_value_pairs = NULL;
	const gchar* _tmp15_;
	GHashTable* _tmp16_;
	gchar* download_uri = NULL;
	GHashTable* _tmp17_;
	gconstpointer _tmp18_;
	gchar* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	OsinfoOs* _tmp22_;
	SoupURI* soup_download_uri = NULL;
	const gchar* _tmp43_;
	SoupURI* _tmp44_;
	gchar* download_path = NULL;
	SoupURI* _tmp45_;
	const gchar* _tmp46_;
	gchar* _tmp47_;
	const gchar* _tmp48_;
	const gchar* _tmp49_;
	gint _tmp50_;
	gint _tmp51_;
	const gchar* _tmp52_;
	const gchar* _tmp54_;
	gchar* _tmp55_;
	gchar* _tmp56_;
	const gchar* _tmp57_;
	GtkListBoxRow* _tmp58_;
#line 646 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 646 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (web_view != NULL, FALSE);
#line 646 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (decision != NULL, FALSE);
#line 649 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (decision_type != WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION) {
#line 650 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		result = FALSE;
#line 650 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return result;
#line 5208 "wizard-source.c"
	}
#line 652 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = webkit_navigation_policy_decision_get_navigation_action (G_TYPE_CHECK_INSTANCE_TYPE (decision, webkit_navigation_policy_decision_get_type ()) ? ((WebKitNavigationPolicyDecision*) decision) : NULL);
#line 652 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = __vala_WebKitNavigationAction_copy0 (_tmp0_);
#line 652 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	action = _tmp1_;
#line 653 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = action;
#line 653 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = webkit_navigation_action_get_request (_tmp2_);
#line 653 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 653 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	request = _tmp4_;
#line 654 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = request;
#line 654 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = webkit_uri_request_get_uri (_tmp5_);
#line 654 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = g_strdup (_tmp6_);
#line 654 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	request_uri = _tmp7_;
#line 655 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp8_ = request_uri;
#line 655 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (!g_str_has_prefix (_tmp8_, "https://developers.redhat.com/products/rhel")) {
#line 656 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		result = FALSE;
#line 656 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (request_uri);
#line 656 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (request);
#line 656 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		__vala_WebKitNavigationAction_free0 (action);
#line 656 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return result;
#line 5246 "wizard-source.c"
	}
#line 658 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp9_ = request_uri;
#line 658 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp10_ = soup_uri_new (_tmp9_);
#line 658 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	soup_request_uri = _tmp10_;
#line 659 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp11_ = soup_request_uri;
#line 659 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp12_ = soup_uri_get_query (_tmp11_);
#line 659 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp13_ = g_strdup (_tmp12_);
#line 659 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	query = _tmp13_;
#line 660 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp14_ = query;
#line 660 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp14_ == NULL) {
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		result = FALSE;
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (query);
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		__vala_SoupURI_free0 (soup_request_uri);
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (request_uri);
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (request);
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		__vala_WebKitNavigationAction_free0 (action);
#line 661 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return result;
#line 5280 "wizard-source.c"
	}
#line 663 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp15_ = query;
#line 663 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp16_ = soup_form_decode (_tmp15_);
#line 663 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	key_value_pairs = _tmp16_;
#line 664 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp17_ = key_value_pairs;
#line 664 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp18_ = g_hash_table_lookup (_tmp17_, "tcDownloadURL");
#line 664 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp19_ = g_strdup ((const gchar*) _tmp18_);
#line 664 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	download_uri = _tmp19_;
#line 665 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp20_ = download_uri;
#line 665 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp20_ == NULL) {
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		result = FALSE;
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (download_uri);
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_hash_table_unref0 (key_value_pairs);
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (query);
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		__vala_SoupURI_free0 (soup_request_uri);
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (request_uri);
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (request);
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		__vala_WebKitNavigationAction_free0 (action);
#line 666 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		return result;
#line 5318 "wizard-source.c"
	}
#line 668 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp21_ = download_uri;
#line 668 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_debug ("wizard-source.vala:668: RHEL ISO download URI: %s", _tmp21_);
#line 670 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp22_ = self->priv->rhel_os;
#line 670 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp22_ != NULL) {
#line 5328 "wizard-source.c"
		GtkTreeIter iter = {0};
		GtkTreePath* path = NULL;
		gboolean iter_is_valid = FALSE;
		GtkTreeRowReference* _tmp23_;
		gboolean _tmp38_;
#line 673 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		iter_is_valid = FALSE;
#line 675 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp23_ = self->priv->rhel_os_row_reference;
#line 675 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp23_ == NULL) {
#line 5340 "wizard-source.c"
			GtkListStore* _tmp24_;
			GtkTreeIter _tmp25_ = {0};
			GtkListStore* _tmp26_;
			GtkTreeIter _tmp27_;
			GtkTreePath* _tmp28_;
			GtkListStore* _tmp29_;
			GtkTreePath* _tmp30_;
			GtkTreeRowReference* _tmp31_;
#line 676 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp24_ = self->priv->media_urls_store;
#line 676 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			gtk_list_store_append (_tmp24_, &_tmp25_);
#line 676 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			iter = _tmp25_;
#line 677 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			iter_is_valid = TRUE;
#line 679 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp26_ = self->priv->media_urls_store;
#line 679 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp27_ = iter;
#line 679 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp28_ = gtk_tree_model_get_path ((GtkTreeModel*) _tmp26_, &_tmp27_);
#line 679 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			__vala_GtkTreePath_free0 (path);
#line 679 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			path = _tmp28_;
#line 680 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp29_ = self->priv->media_urls_store;
#line 680 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp30_ = path;
#line 680 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp31_ = gtk_tree_row_reference_new ((GtkTreeModel*) _tmp29_, _tmp30_);
#line 680 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			__vala_GtkTreeRowReference_free0 (self->priv->rhel_os_row_reference);
#line 680 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			self->priv->rhel_os_row_reference = _tmp31_;
#line 5377 "wizard-source.c"
		} else {
			GtkTreeRowReference* _tmp32_;
			GtkTreePath* _tmp33_;
			GtkListStore* _tmp34_;
			GtkTreePath* _tmp35_;
			GtkTreeIter _tmp36_ = {0};
			gboolean _tmp37_;
#line 682 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp32_ = self->priv->rhel_os_row_reference;
#line 682 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp33_ = gtk_tree_row_reference_get_path (_tmp32_);
#line 682 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			__vala_GtkTreePath_free0 (path);
#line 682 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			path = _tmp33_;
#line 683 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp34_ = self->priv->media_urls_store;
#line 683 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp35_ = path;
#line 683 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp37_ = gtk_tree_model_get_iter ((GtkTreeModel*) _tmp34_, &_tmp36_, _tmp35_);
#line 683 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			iter = _tmp36_;
#line 683 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			iter_is_valid = _tmp37_;
#line 5403 "wizard-source.c"
		}
#line 686 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp38_ = iter_is_valid;
#line 686 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (_tmp38_) {
#line 5409 "wizard-source.c"
			GtkListStore* _tmp39_;
			GtkTreeIter _tmp40_;
			const gchar* _tmp41_;
			OsinfoOs* _tmp42_;
#line 687 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp39_ = self->priv->media_urls_store;
#line 687 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp40_ = iter;
#line 687 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp41_ = download_uri;
#line 687 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp42_ = self->priv->rhel_os;
#line 687 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			gtk_list_store_set (_tmp39_, &_tmp40_, BOXES_OS_DATABASE_MEDIA_UR_LS_COLUMNS_URL, _tmp41_, BOXES_OS_DATABASE_MEDIA_UR_LS_COLUMNS_OS, _tmp42_, -1);
#line 5424 "wizard-source.c"
		}
#line 670 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		__vala_GtkTreePath_free0 (path);
#line 5428 "wizard-source.c"
	}
#line 693 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp43_ = download_uri;
#line 693 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp44_ = soup_uri_new (_tmp43_);
#line 693 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	soup_download_uri = _tmp44_;
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp45_ = soup_download_uri;
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp46_ = soup_uri_get_path (_tmp45_);
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp47_ = g_strdup (_tmp46_);
#line 694 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	download_path = _tmp47_;
#line 697 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp48_ = download_path;
#line 697 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (_tmp48_ != NULL, FALSE);
#line 698 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp49_ = download_path;
#line 698 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp50_ = strlen (_tmp49_);
#line 698 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp51_ = _tmp50_;
#line 698 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (_tmp51_ > 0, FALSE);
#line 700 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp52_ = download_path;
#line 700 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (!g_str_has_suffix (_tmp52_, ".iso")) {
#line 5460 "wizard-source.c"
		gchar* _tmp53_;
#line 701 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp53_ = g_strdup ("/rhel.iso");
#line 701 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (download_path);
#line 701 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		download_path = _tmp53_;
#line 5468 "wizard-source.c"
	}
#line 704 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp54_ = download_path;
#line 704 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp55_ = g_path_get_basename (_tmp54_);
#line 704 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp56_ = _tmp55_;
#line 704 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_filename (self, _tmp56_);
#line 704 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (_tmp56_);
#line 706 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp57_ = download_uri;
#line 706 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_uri (self, _tmp57_);
#line 707 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_emit (self, boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL], 0);
#line 709 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp58_ = self->priv->install_rhel_button;
#line 709 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_selected (self, (GtkWidget*) _tmp58_);
#line 711 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	webkit_policy_decision_ignore (decision);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = TRUE;
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (download_path);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__vala_SoupURI_free0 (soup_download_uri);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (download_uri);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_hash_table_unref0 (key_value_pairs);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (query);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__vala_SoupURI_free0 (soup_request_uri);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (request_uri);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (request);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__vala_WebKitNavigationAction_free0 (action);
#line 712 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5514 "wizard-source.c"
}


BoxesWizardSource*
boxes_wizard_source_construct (GType object_type)
{
	BoxesWizardSource * self = NULL;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = (BoxesWizardSource*) g_object_new (object_type, NULL);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return self;
#line 5526 "wizard-source.c"
}


BoxesWizardSource*
boxes_wizard_source_new (void)
{
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return boxes_wizard_source_construct (BOXES_TYPE_WIZARD_SOURCE);
#line 5535 "wizard-source.c"
}


GtkWidget*
boxes_wizard_source_get_selected (BoxesWizardSource* self)
{
	GtkWidget* result;
	GtkWidget* _tmp0_;
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->_selected;
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp0_;
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5552 "wizard-source.c"
}


void
boxes_wizard_source_set_selected (BoxesWizardSource* self,
                                  GtkWidget* value)
{
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (boxes_wizard_source_get_selected (self) != value) {
#line 5564 "wizard-source.c"
		GtkWidget* _tmp0_;
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self->priv->_selected);
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->_selected = _tmp0_;
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_SELECTED_PROPERTY]);
#line 5574 "wizard-source.c"
	}
}


const gchar*
boxes_wizard_source_get_uri (BoxesWizardSource* self)
{
	const gchar* result;
	GtkEntry* _tmp0_;
	const gchar* _tmp1_;
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->url_entry;
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp1_;
#line 272 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5595 "wizard-source.c"
}


void
boxes_wizard_source_set_uri (BoxesWizardSource* self,
                             const gchar* value)
{
	GtkEntry* _tmp0_;
#line 273 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 273 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->url_entry;
#line 273 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_entry_set_text (_tmp0_, value);
#line 273 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_notify_by_pspec ((GObject *) self, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_URI_PROPERTY]);
#line 5612 "wizard-source.c"
}


BoxesInstallerMedia*
boxes_wizard_source_get_install_media (BoxesWizardSource* self)
{
	BoxesInstallerMedia* result;
	BoxesInstallerMedia* _tmp0_;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->_install_media;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp0_;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5629 "wizard-source.c"
}


static void
boxes_wizard_source_set_install_media (BoxesWizardSource* self,
                                       BoxesInstallerMedia* value)
{
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (boxes_wizard_source_get_install_media (self) != value) {
#line 5641 "wizard-source.c"
		BoxesInstallerMedia* _tmp0_;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self->priv->_install_media);
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->_install_media = _tmp0_;
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_INSTALL_MEDIA_PROPERTY]);
#line 5651 "wizard-source.c"
	}
}


BoxesLibvirtSystemImporter*
boxes_wizard_source_get_libvirt_sys_importer (BoxesWizardSource* self)
{
	BoxesLibvirtSystemImporter* result;
	BoxesLibvirtSystemImporter* _tmp0_;
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->_libvirt_sys_importer;
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp0_;
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5669 "wizard-source.c"
}


static void
boxes_wizard_source_set_libvirt_sys_importer (BoxesWizardSource* self,
                                              BoxesLibvirtSystemImporter* value)
{
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (boxes_wizard_source_get_libvirt_sys_importer (self) != value) {
#line 5681 "wizard-source.c"
		BoxesLibvirtSystemImporter* _tmp0_;
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self->priv->_libvirt_sys_importer);
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->_libvirt_sys_importer = _tmp0_;
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_LIBVIRT_SYS_IMPORTER_PROPERTY]);
#line 5691 "wizard-source.c"
	}
}


const gchar*
boxes_wizard_source_get_filename (BoxesWizardSource* self)
{
	const gchar* result;
	const gchar* _tmp0_;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->_filename;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp0_;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5709 "wizard-source.c"
}


void
boxes_wizard_source_set_filename (BoxesWizardSource* self,
                                  const gchar* value)
{
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (g_strcmp0 (value, boxes_wizard_source_get_filename (self)) != 0) {
#line 5721 "wizard-source.c"
		gchar* _tmp0_;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp0_ = g_strdup (value);
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_free0 (self->priv->_filename);
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->_filename = _tmp0_;
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_FILENAME_PROPERTY]);
#line 5731 "wizard-source.c"
	}
}


static gboolean
_vala_string_array_contains (gchar* * stack,
                             int stack_length,
                             gchar* needle)
{
	int i;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	for (i = 0; i < stack_length; i++) {
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		if (g_strcmp0 (stack[i], needle) == 0) {
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			return TRUE;
#line 5748 "wizard-source.c"
		}
	}
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return FALSE;
#line 5753 "wizard-source.c"
}


gboolean
boxes_wizard_source_get_download_required (BoxesWizardSource* self)
{
	gboolean result;
	gchar* scheme = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gboolean _tmp3_ = FALSE;
	const gchar* _tmp4_;
#line 326 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 327 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = boxes_wizard_source_get_uri (self);
#line 327 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = _tmp0_;
#line 327 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = g_uri_parse_scheme (_tmp1_);
#line 327 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	scheme = _tmp2_;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = scheme;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp4_ != NULL) {
#line 5781 "wizard-source.c"
		const gchar* _tmp5_;
		gchar** _tmp6_;
		gint _tmp6__length1;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp5_ = scheme;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp6_ = boxes_downloader_supported_schemes;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp6__length1 = boxes_downloader_supported_schemes_length1;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = _vala_string_array_contains (_tmp6_, _tmp6__length1, _tmp5_);
#line 5793 "wizard-source.c"
	} else {
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp3_ = FALSE;
#line 5797 "wizard-source.c"
	}
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp3_;
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (scheme);
#line 329 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5805 "wizard-source.c"
}


BoxesSourcePage
boxes_wizard_source_get_page (BoxesWizardSource* self)
{
	BoxesSourcePage result;
	BoxesSourcePage _tmp0_;
#line 349 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 349 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->_page;
#line 349 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	result = _tmp0_;
#line 349 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5822 "wizard-source.c"
}


void
boxes_wizard_source_set_page (BoxesWizardSource* self,
                              BoxesSourcePage value)
{
	GCancellable* _tmp0_;
	const gchar* _tmp2_;
	GtkWidget* _tmp3_;
#line 350 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (self != NULL);
#line 351 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->_page = value;
#line 353 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = self->priv->rhel_cancellable;
#line 353 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp0_ != NULL) {
#line 5841 "wizard-source.c"
		GCancellable* _tmp1_;
#line 354 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp1_ = self->priv->rhel_cancellable;
#line 354 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_cancellable_cancel (_tmp1_);
#line 355 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_g_object_unref0 (self->priv->rhel_cancellable);
#line 355 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		self->priv->rhel_cancellable = NULL;
#line 5851 "wizard-source.c"
	}
#line 358 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = BOXES_WIZARD_SOURCE_page_names[value];
#line 358 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_stack_set_visible_child_name ((GtkStack*) self, _tmp2_);
#line 360 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = self->priv->_selected;
#line 360 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (_tmp3_ != NULL) {
#line 5861 "wizard-source.c"
		GtkWidget* _tmp4_;
#line 361 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp4_ = self->priv->_selected;
#line 361 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		gtk_widget_grab_focus (_tmp4_);
#line 5867 "wizard-source.c"
	}
#line 362 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (value) {
#line 362 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_SOURCE_PAGE_MAIN:
#line 5873 "wizard-source.c"
		{
			GtkBox* _tmp5_;
#line 364 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			boxes_wizard_source_add_media_entries (self, NULL, NULL);
#line 366 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp5_ = self->priv->main_vbox;
#line 366 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			gtk_widget_grab_focus ((GtkWidget*) _tmp5_);
#line 367 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			break;
#line 5884 "wizard-source.c"
		}
#line 362 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_SOURCE_PAGE_RHEL_WEB_VIEW:
#line 362 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_SOURCE_PAGE_DOWNLOADS:
#line 5890 "wizard-source.c"
		{
#line 370 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			break;
#line 5894 "wizard-source.c"
		}
#line 362 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_SOURCE_PAGE_URL:
#line 5898 "wizard-source.c"
		{
			GtkEntry* _tmp6_;
			GtkEntry* _tmp7_;
#line 372 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp6_ = self->url_entry;
#line 372 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			g_signal_emit_by_name ((GtkEditable*) _tmp6_, "changed");
#line 373 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			_tmp7_ = self->url_entry;
#line 373 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			gtk_widget_grab_focus ((GtkWidget*) _tmp7_);
#line 374 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
			break;
#line 5912 "wizard-source.c"
		}
		default:
#line 362 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 5917 "wizard-source.c"
	}
#line 350 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_notify_by_pspec ((GObject *) self, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_PAGE_PROPERTY]);
#line 5921 "wizard-source.c"
}


static void
_boxes_wizard_source___lambda162_ (BoxesWizardSource* self,
                                   GtkListBoxRow* row)
{
	BoxesWizardMediaEntry* entry = NULL;
	BoxesWizardMediaEntry* _tmp0_;
	BoxesWizardMediaEntry* _tmp1_;
	BoxesInstallerMedia* _tmp2_;
	BoxesWizardMediaEntry* _tmp3_;
#line 386 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_return_if_fail (row != NULL);
#line 387 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (row, BOXES_TYPE_WIZARD_MEDIA_ENTRY) ? ((BoxesWizardMediaEntry*) row) : NULL);
#line 387 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	entry = _tmp0_;
#line 388 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = entry;
#line 388 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = _tmp1_->media;
#line 388 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_media_selected (self, _tmp2_);
#line 390 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = entry;
#line 390 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_set_selected (self, (GtkWidget*) _tmp3_);
#line 386 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (entry);
#line 5952 "wizard-source.c"
}


static void
__boxes_wizard_source___lambda162__gtk_list_box_row_activated (GtkListBox* _sender,
                                                               GtkListBoxRow* row,
                                                               gpointer self)
{
#line 386 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_boxes_wizard_source___lambda162_ ((BoxesWizardSource*) self, row);
#line 5963 "wizard-source.c"
}


static void
_boxes_wizard_source_on_downloadable_entry_clicked_gtk_list_box_row_activated (GtkListBox* _sender,
                                                                               GtkListBoxRow* row,
                                                                               gpointer self)
{
#line 396 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_on_downloadable_entry_clicked ((BoxesWizardSource*) self, row);
#line 5974 "wizard-source.c"
}


static gboolean
_boxes_wizard_source_on_rhel_web_view_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender,
                                                                                   WebKitPolicyDecision* decision,
                                                                                   WebKitPolicyDecisionType type,
                                                                                   gpointer self)
{
	gboolean result;
	result = boxes_wizard_source_on_rhel_web_view_decide_policy ((BoxesWizardSource*) self, _sender, decision, type);
#line 403 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return result;
#line 5988 "wizard-source.c"
}


static GObject *
boxes_wizard_source_constructor (GType type,
                                 guint n_construct_properties,
                                 GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	BoxesWizardSource * self;
	BoxesMediaManager* _tmp0_;
	GtkBox* _tmp1_;
	gint _tmp2_ = 0;
	gint num_visible = 0;
	BoxesWizardScrolled* _tmp3_;
	gint _tmp4_;
	BoxesWizardScrolled* _tmp5_;
	GtkListBox* _tmp6_;
	GtkListBox* _tmp7_;
	GtkListBox* _tmp8_;
	GtkBox* _tmp9_;
	BoxesWizardScrolled* _tmp10_;
	gint _tmp11_;
	BoxesWizardScrolled* _tmp12_;
	GtkListBox* _tmp13_;
	GtkListBox* _tmp14_;
	GtkListBox* _tmp15_;
	BoxesWizardScrolled* _tmp16_;
	BoxesWizardScrolled* _tmp17_;
	BoxesWizardWebView* _tmp18_;
	WebKitWebView* _tmp19_;
	WebKitWebView* _tmp20_;
#line 379 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	parent_class = G_OBJECT_CLASS (boxes_wizard_source_parent_class);
#line 379 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 379 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSource);
#line 380 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = boxes_media_manager_get_instance ();
#line 380 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->media_manager);
#line 380 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->media_manager = _tmp0_;
#line 381 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = self->priv->main_vbox;
#line 381 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp1_);
#line 383 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	if (gdk_screen_height () > 800) {
#line 383 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp2_ = 3;
#line 6042 "wizard-source.c"
	} else {
#line 383 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		_tmp2_ = 2;
#line 6046 "wizard-source.c"
	}
#line 383 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	num_visible = _tmp2_;
#line 384 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = self->priv->media_scrolled;
#line 384 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp4_ = num_visible;
#line 384 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_scrolled_setup (_tmp3_, _tmp4_);
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp5_ = self->priv->media_scrolled;
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp6_ = _tmp5_->vbox;
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->media_vbox);
#line 385 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->media_vbox = _tmp7_;
#line 386 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp8_ = self->priv->media_vbox;
#line 386 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_connect_object (_tmp8_, "row-activated", (GCallback) __boxes_wizard_source___lambda162__gtk_list_box_row_activated, self, 0);
#line 392 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp9_ = self->priv->url_entry_vbox;
#line 392 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_draw_as_css_box ((GtkWidget*) _tmp9_);
#line 394 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp10_ = self->priv->downloads_scrolled;
#line 394 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp11_ = num_visible;
#line 394 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_scrolled_setup (_tmp10_, _tmp11_);
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp12_ = self->priv->downloads_scrolled;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp13_ = _tmp12_->vbox;
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp14_ = _g_object_ref0 (_tmp13_);
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->downloads_vbox);
#line 395 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->downloads_vbox = _tmp14_;
#line 396 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp15_ = self->priv->downloads_vbox;
#line 396 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_connect_object (_tmp15_, "row-activated", (GCallback) _boxes_wizard_source_on_downloadable_entry_clicked_gtk_list_box_row_activated, self, 0);
#line 398 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp16_ = self->priv->media_scrolled;
#line 398 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp17_ = self->priv->downloads_scrolled;
#line 398 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp16_, "visible", (GObject*) _tmp17_, "visible", G_BINDING_INVERT_BOOLEAN, (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 400 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_update_libvirt_sytem_entry_visibility (self, NULL, NULL);
#line 401 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_add_media_entries (self, NULL, NULL);
#line 403 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp18_ = self->priv->rhel_web_view;
#line 403 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp19_ = boxes_wizard_web_view_get_view (_tmp18_);
#line 403 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp20_ = _tmp19_;
#line 403 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_signal_connect_object (_tmp20_, "decide-policy", (GCallback) _boxes_wizard_source_on_rhel_web_view_decide_policy_webkit_web_view_decide_policy, self, 0);
#line 379 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	return obj;
#line 6114 "wizard-source.c"
}


static void
boxes_wizard_source_class_init (BoxesWizardSourceClass * klass)
{
	gint BoxesWizardSource_private_offset;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_parent_class = g_type_class_peek_parent (klass);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_class_add_private (klass, sizeof (BoxesWizardSourcePrivate));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	((GObjectClass *) klass)->dispose = (void (*) (GObject *)) boxes_wizard_source_real_dispose;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_wizard_source_get_property;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_wizard_source_set_property;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_wizard_source_constructor;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_wizard_source_finalize;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_SOURCE_SELECTED_PROPERTY, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_SELECTED_PROPERTY] = g_param_spec_object ("selected", "selected", "selected", gtk_widget_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_SOURCE_URI_PROPERTY, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_URI_PROPERTY] = g_param_spec_string ("uri", "uri", "uri", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_SOURCE_INSTALL_MEDIA_PROPERTY, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_INSTALL_MEDIA_PROPERTY] = g_param_spec_object ("install-media", "install-media", "install-media", BOXES_TYPE_INSTALLER_MEDIA, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_SOURCE_LIBVIRT_SYS_IMPORTER_PROPERTY, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_LIBVIRT_SYS_IMPORTER_PROPERTY] = g_param_spec_object ("libvirt-sys-importer", "libvirt-sys-importer", "libvirt-sys-importer", BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_SOURCE_FILENAME_PROPERTY, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_FILENAME_PROPERTY] = g_param_spec_string ("filename", "filename", "filename", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_SOURCE_DOWNLOAD_REQUIRED_PROPERTY, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_DOWNLOAD_REQUIRED_PROPERTY] = g_param_spec_boolean ("download-required", "download-required", "download-required", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_WIZARD_SOURCE_PAGE_PROPERTY, boxes_wizard_source_properties[BOXES_WIZARD_SOURCE_PAGE_PROPERTY] = g_param_spec_enum ("page", "page", "page", BOXES_TYPE_SOURCE_PAGE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	BoxesWizardSource_private_offset = g_type_class_get_instance_private_offset (klass);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/wizard-source.ui");
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	boxes_wizard_source_signals[BOXES_WIZARD_SOURCE_ACTIVATED_SIGNAL] = g_signal_new ("activated", BOXES_TYPE_WIZARD_SOURCE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "main_vbox", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, main_vbox));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "media_scrolled", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, media_scrolled));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "downloads_scrolled", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, downloads_scrolled));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "url_entry_vbox", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, url_entry_vbox));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "url_entry", FALSE, G_STRUCT_OFFSET (BoxesWizardSource, url_entry));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "select_file_button", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, select_file_button));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "libvirt_sys_import_button", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, libvirt_sys_import_button));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "libvirt_sys_import_label", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, libvirt_sys_import_label));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "install_rhel_button", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, install_rhel_button));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "install_rhel_image", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, install_rhel_image));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "rhel_web_view", FALSE, BoxesWizardSource_private_offset + G_STRUCT_OFFSET (BoxesWizardSourcePrivate, rhel_web_view));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_downloads_scrolled_shown", G_CALLBACK(_boxes_wizard_source_on_downloads_scrolled_shown_gtk_widget_show));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_enter_url_button_clicked", G_CALLBACK(_boxes_wizard_source_on_enter_url_button_clicked_gtk_button_clicked));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_url_entry_activated", G_CALLBACK(_boxes_wizard_source_on_url_entry_activated_gtk_entry_activate));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_url_back_button_clicked", G_CALLBACK(_boxes_wizard_source_on_url_back_button_clicked_gtk_button_clicked));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_select_file_button_clicked", G_CALLBACK(_boxes_wizard_source_on_select_file_button_clicked_gtk_button_clicked));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_libvirt_sys_import_button_clicked", G_CALLBACK(_boxes_wizard_source_on_libvirt_sys_import_button_clicked_gtk_button_clicked));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_download_an_os_button_clicked", G_CALLBACK(_boxes_wizard_source_on_download_an_os_button_clicked_gtk_button_clicked));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_install_rhel_button_clicked", G_CALLBACK(_boxes_wizard_source_on_install_rhel_button_clicked_gtk_button_clicked));
#line 6194 "wizard-source.c"
}


static void
boxes_wizard_source_instance_init (BoxesWizardSource * self)
{
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar** _tmp3_;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv = BOXES_WIZARD_SOURCE_GET_PRIVATE (self);
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp0_ = g_strdup ("http://ubuntu.com/ubuntu/16.04");
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp1_ = g_strdup ("http://opensuse.org/opensuse/42.2");
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp2_ = g_strdup ("http://fedoraproject.org/fedora/27");
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_ = g_new0 (gchar*, 3 + 1);
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_[0] = _tmp0_;
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_[1] = _tmp1_;
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_tmp3_[2] = _tmp2_;
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->recommended_downloads = _tmp3_;
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->recommended_downloads_length1 = 3;
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->_recommended_downloads_size_ = self->priv->recommended_downloads_length1;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_ensure (BOXES_TYPE_WIZARD_SCROLLED);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_ensure (BOXES_TYPE_WIZARD_SCROLLED);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	g_type_ensure (BOXES_TYPE_WIZARD_WEB_VIEW);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 6235 "wizard-source.c"
}


static void
boxes_wizard_source_finalize (GObject * obj)
{
	BoxesWizardSource * self;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSource);
#line 270 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->_selected);
#line 275 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->_install_media);
#line 276 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->_libvirt_sys_importer);
#line 282 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->main_vbox);
#line 284 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->media_scrolled);
#line 286 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->downloads_scrolled);
#line 288 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->url_entry_vbox);
#line 290 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->url_entry);
#line 292 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->select_file_button);
#line 294 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->libvirt_sys_import_button);
#line 296 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->libvirt_sys_import_label);
#line 298 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->install_rhel_button);
#line 300 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->install_rhel_image);
#line 302 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->rhel_web_view);
#line 304 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->window);
#line 306 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->media_vbox);
#line 307 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->downloads_vbox);
#line 309 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->media_urls_store);
#line 311 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->rhel_cancellable);
#line 312 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	__vala_GtkTreeRowReference_free0 (self->priv->rhel_os_row_reference);
#line 313 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->priv->rhel_os);
#line 315 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_object_unref0 (self->media_manager);
#line 317 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	_g_free0 (self->priv->_filename);
#line 319 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	self->priv->recommended_downloads = (_vala_array_free (self->priv->recommended_downloads, self->priv->recommended_downloads_length1, (GDestroyNotify) g_free), NULL);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	G_OBJECT_CLASS (boxes_wizard_source_parent_class)->finalize (obj);
#line 6295 "wizard-source.c"
}


GType
boxes_wizard_source_get_type (void)
{
	static volatile gsize boxes_wizard_source_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_wizard_source_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesWizardSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_wizard_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWizardSource), 0, (GInstanceInitFunc) boxes_wizard_source_instance_init, NULL };
		GType boxes_wizard_source_type_id;
		boxes_wizard_source_type_id = g_type_register_static (gtk_stack_get_type (), "BoxesWizardSource", &g_define_type_info, 0);
		g_once_init_leave (&boxes_wizard_source_type_id__volatile, boxes_wizard_source_type_id);
	}
	return boxes_wizard_source_type_id__volatile;
}


static void
_vala_boxes_wizard_source_get_property (GObject * object,
                                        guint property_id,
                                        GValue * value,
                                        GParamSpec * pspec)
{
	BoxesWizardSource * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSource);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (property_id) {
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_SELECTED_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_object (value, boxes_wizard_source_get_selected (self));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_URI_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_string (value, boxes_wizard_source_get_uri (self));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_INSTALL_MEDIA_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_object (value, boxes_wizard_source_get_install_media (self));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_LIBVIRT_SYS_IMPORTER_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_object (value, boxes_wizard_source_get_libvirt_sys_importer (self));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_FILENAME_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_string (value, boxes_wizard_source_get_filename (self));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_DOWNLOAD_REQUIRED_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_boolean (value, boxes_wizard_source_get_download_required (self));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_PAGE_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		g_value_set_enum (value, boxes_wizard_source_get_page (self));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 6365 "wizard-source.c"
		default:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 6371 "wizard-source.c"
	}
}


static void
_vala_boxes_wizard_source_set_property (GObject * object,
                                        guint property_id,
                                        const GValue * value,
                                        GParamSpec * pspec)
{
	BoxesWizardSource * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_WIZARD_SOURCE, BoxesWizardSource);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
	switch (property_id) {
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_SELECTED_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_selected (self, g_value_get_object (value));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_URI_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_uri (self, g_value_get_string (value));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_INSTALL_MEDIA_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_install_media (self, g_value_get_object (value));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_LIBVIRT_SYS_IMPORTER_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_libvirt_sys_importer (self, g_value_get_object (value));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_FILENAME_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_filename (self, g_value_get_string (value));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		case BOXES_WIZARD_SOURCE_PAGE_PROPERTY:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		boxes_wizard_source_set_page (self, g_value_get_enum (value));
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 6422 "wizard-source.c"
		default:
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 267 "/home/fborges/checkout/gnome-boxes/src/wizard-source.vala"
		break;
#line 6428 "wizard-source.c"
	}
}


static void
_vala_array_destroy (gpointer array,
                     gint array_length,
                     GDestroyNotify destroy_func)
{
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	if ((array != NULL) && (destroy_func != NULL)) {
#line 6440 "wizard-source.c"
		int i;
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
			if (((gpointer*) array)[i] != NULL) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
				destroy_func (((gpointer*) array)[i]);
#line 6448 "wizard-source.c"
			}
		}
	}
}


static void
_vala_array_free (gpointer array,
                  gint array_length,
                  GDestroyNotify destroy_func)
{
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	_vala_array_destroy (array, array_length, destroy_func);
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 6464 "wizard-source.c"
}


static gint
_vala_array_length (gpointer array)
{
	int length;
	length = 0;
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	if (array) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
		while (((gpointer*) array)[length]) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
			length++;
#line 6479 "wizard-source.c"
		}
	}
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	return length;
#line 6484 "wizard-source.c"
}



