/* machine.c generated by valac 0.32.0.6-ea53, the Vala compiler
 * generated from machine.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <libgd/gd.h>
#include <cairo.h>
#include <gdk/gdk.h>
#include <glib/gi18n-lib.h>
#include <float.h>
#include <math.h>
#include <glib/gstdio.h>


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

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIIface BoxesUIIface;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())

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

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;
typedef struct _BoxesCollectionItemPrivate BoxesCollectionItemPrivate;

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

typedef struct _BoxesIPropertiesProvider BoxesIPropertiesProvider;
typedef struct _BoxesIPropertiesProviderIface BoxesIPropertiesProviderIface;

#define BOXES_TYPE_PROPERTIES_PAGE (boxes_properties_page_get_type ())

#define TYPE_PROPERTY_CREATION_FLAG (property_creation_flag_get_type ())

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

typedef struct _BoxesProperty BoxesProperty;
typedef struct _BoxesPropertyClass BoxesPropertyClass;

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

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;
typedef struct _BoxesMachinePrivate BoxesMachinePrivate;

#define BOXES_MACHINE_TYPE_CONNECT_FLAGS (boxes_machine_connect_flags_get_type ())

#define BOXES_TYPE_MACHINE_THUMBNAILER (boxes_machine_thumbnailer_get_type ())
#define BOXES_MACHINE_THUMBNAILER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailer))
#define BOXES_MACHINE_THUMBNAILER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailerClass))
#define BOXES_IS_MACHINE_THUMBNAILER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE_THUMBNAILER))
#define BOXES_IS_MACHINE_THUMBNAILER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE_THUMBNAILER))
#define BOXES_MACHINE_THUMBNAILER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailerClass))

typedef struct _BoxesMachineThumbnailer BoxesMachineThumbnailer;
typedef struct _BoxesMachineThumbnailerClass BoxesMachineThumbnailerClass;

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())

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

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;

#define BOXES_TYPE_DISPLAY (boxes_display_get_type ())
#define BOXES_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY, BoxesDisplay))
#define BOXES_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY, BoxesDisplayClass))
#define BOXES_IS_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY))
#define BOXES_IS_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY))
#define BOXES_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY, BoxesDisplayClass))

typedef struct _BoxesDisplay BoxesDisplay;
typedef struct _BoxesDisplayClass BoxesDisplayClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
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_APP (boxes_app_get_type ())
#define BOXES_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP, BoxesApp))
#define BOXES_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP, BoxesAppClass))
#define BOXES_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP))
#define BOXES_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP))
#define BOXES_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP, BoxesAppClass))

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesMachineSaveData BoxesMachineSaveData;
typedef struct _BoxesMachineSaveRealData BoxesMachineSaveRealData;
typedef struct _BoxesMachineTakeScreenshotData BoxesMachineTakeScreenshotData;
typedef struct _BoxesMachineUpdateScreenshotData BoxesMachineUpdateScreenshotData;
#define _cairo_pattern_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_pattern_destroy (var), NULL)))
#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
typedef struct _Block64Data Block64Data;

#define BOXES_TYPE_NOTIFICATIONBAR (boxes_notificationbar_get_type ())
#define BOXES_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbar))
#define BOXES_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))
#define BOXES_IS_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_IS_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_NOTIFICATIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;
typedef struct _BoxesMachineTryConnectDisplayData BoxesMachineTryConnectDisplayData;
typedef struct _BoxesMachineTrySaveData BoxesMachineTrySaveData;
typedef struct _BoxesDisplayPrivate BoxesDisplayPrivate;
#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_UI_STATE_NONE,
	BOXES_UI_STATE_COLLECTION,
	BOXES_UI_STATE_CREDS,
	BOXES_UI_STATE_DISPLAY,
	BOXES_UI_STATE_WIZARD,
	BOXES_UI_STATE_PROPERTIES
} BoxesUIState;

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

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

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

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

typedef enum  {
	PROPERTY_CREATION_FLAG_NONE = 1 << 0,
	PROPERTY_CREATION_FLAG_NO_USB = 1 << 1
} PropertyCreationFlag;

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

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

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

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

typedef enum  {
	BOXES_MACHINE_MACHINE_STATE_UNKNOWN,
	BOXES_MACHINE_MACHINE_STATE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_RUNNING,
	BOXES_MACHINE_MACHINE_STATE_PAUSED,
	BOXES_MACHINE_MACHINE_STATE_SAVED,
	BOXES_MACHINE_MACHINE_STATE_SLEEPING
} BoxesMachineMachineState;

struct _BoxesMachinePrivate {
	GdkPixbuf* _pixbuf;
	BoxesMachineThumbnailer* _thumbnailer;
	gchar* _info;
	gchar* _status;
	gboolean _can_delete;
	gboolean _under_construction;
	gulong show_id;
	gulong hide_id;
	gulong disconnected_id;
	gulong need_password_id;
	gulong need_username_id;
	gulong ui_state_id;
	gulong got_error_id;
	guint screenshot_id;
	gboolean updating_screenshot;
	gchar* username;
	gchar* password;
	guint autosave_timeout_id;
	GCancellable* _connecting_cancellable;
	GdkPixbuf* orig_pixbuf;
	BoxesMachineMachineState _state;
	BoxesAppWindow* _window;
	gboolean _deleted;
	BoxesDisplay* _display;
	gboolean saving;
	gint screenshot_counter;
	GBinding* name_status_bind;
	GdNotification* auth_notification;
};

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;
	GtkStack* below_bin;
	GSettings* settings;
};

struct _BoxesAppWindowClass {
	GtkApplicationWindowClass parent_class;
};

struct _BoxesMachineSaveData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesMachine* self;
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	GError * _inner_error_;
};

struct _BoxesMachineSaveRealData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesMachine* self;
};

struct _BoxesMachineTakeScreenshotData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesMachine* self;
	GdkPixbuf* result;
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
	GdkPixbuf* _tmp2_;
	BoxesDisplay* _tmp3_;
	BoxesDisplay* _tmp4_;
	GdkPixbuf* _tmp5_;
	GdkPixbuf* _tmp6_;
	GError * _inner_error_;
};

struct _BoxesMachineUpdateScreenshotData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesMachine* self;
	gboolean force_save;
	gboolean first_check;
	gboolean _tmp0_;
	GdkPixbuf* large_screenshot;
	GdkPixbuf* _tmp1_;
	GdkPixbuf* _tmp2_;
	GdkPixbuf* _tmp3_;
	gboolean _tmp4_;
	GdkPixbuf* _tmp5_;
	GdkPixbuf* _tmp6_;
	GdkPixbuf* _tmp7_;
	GError* _error_;
	GdkPixbuf* _tmp8_;
	gboolean _tmp9_;
	gboolean _tmp10_;
	gint _tmp11_;
	GdkPixbuf* _tmp12_;
	GError * _inner_error_;
};

struct _Block64Data {
	int _ref_count_;
	BoxesMachine* self;
	BoxesMachineConnectFlags flags;
	gpointer _async_data_;
};

typedef void (*BoxesNotificationOKFunc) (void* user_data);
typedef void (*BoxesNotificationDismissFunc) (void* user_data);
struct _BoxesMachineTryConnectDisplayData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesMachine* self;
	BoxesMachineConnectFlags flags;
	Block64Data* _data64_;
	BoxesMachineConnectFlags _tmp0_;
	BoxesMachineConnectFlags _tmp1_;
	GError* e;
	gchar* message;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	GdNotification* notification;
	BoxesAppWindow* _tmp6_;
	BoxesAppWindow* _tmp7_;
	BoxesNotificationbar* _tmp8_;
	BoxesNotificationbar* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	GdNotification* _tmp12_;
	GdNotification* _tmp13_;
	GError* _vala1_e;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	GError* _tmp16_;
	const gchar* _tmp17_;
	BoxesAppWindow* _tmp18_;
	BoxesAppWindow* _tmp19_;
	BoxesAppWindow* _tmp20_;
	BoxesAppWindow* _tmp21_;
	BoxesNotificationbar* _tmp22_;
	BoxesNotificationbar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	gchar* _tmp27_;
	gchar* _tmp28_;
	GdNotification* _tmp29_;
	GdNotification* _tmp30_;
	GError* _vala2_e;
	const gchar* _tmp31_;
	const gchar* _tmp32_;
	GError* _tmp33_;
	const gchar* _tmp34_;
	BoxesAppWindow* _tmp35_;
	BoxesAppWindow* _tmp36_;
	BoxesAppWindow* _tmp37_;
	BoxesAppWindow* _tmp38_;
	BoxesNotificationbar* _tmp39_;
	BoxesNotificationbar* _tmp40_;
	const gchar* _tmp41_;
	const gchar* _tmp42_;
	const gchar* _tmp43_;
	gchar* _tmp44_;
	gchar* _tmp45_;
	GdNotification* _tmp46_;
	GdNotification* _tmp47_;
	GError * _inner_error_;
};

typedef void (*BoxesAuthNotificationAuthFunc) (const gchar* username, const gchar* password, void* user_data);
struct _BoxesMachineTrySaveData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesMachine* self;
	GError* _error_;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	GError* _tmp2_;
	const gchar* _tmp3_;
	GError * _inner_error_;
};

typedef gint (*BoxesDisplayOpenFDFunc) (void* user_data);
struct _BoxesDisplay {
	GObject parent_instance;
	BoxesDisplayPrivate * priv;
	gboolean connected;
	GHashTable* displays;
};

struct _BoxesDisplayClass {
	GObjectClass parent_class;
	GtkWidget* (*get_display) (BoxesDisplay* self, gint n);
	GdkPixbuf* (*get_pixbuf) (BoxesDisplay* self, gint n, GError** error);
	void (*set_enable_inputs) (BoxesDisplay* self, GtkWidget* widget, gboolean enable);
	void (*set_enable_audio) (BoxesDisplay* self, gboolean enable);
	gboolean (*should_keep_alive) (BoxesDisplay* self);
	void (*connect_it) (BoxesDisplay* self, BoxesDisplayOpenFDFunc open_fd, void* open_fd_target, GDestroyNotify open_fd_target_destroy_notify, GError** error);
	void (*disconnect_it) (BoxesDisplay* self);
	void (*collect_logs) (BoxesDisplay* self, GString* builder);
	void (*send_keys) (BoxesDisplay* self, guint* keyvals, int keyvals_length1);
	GList* (*get_properties) (BoxesDisplay* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
	const gchar* (*get_protocol) (BoxesDisplay* self);
	gchar* (*get_uri) (BoxesDisplay* self);
};


static gpointer boxes_machine_parent_class = NULL;
static cairo_surface_t* boxes_machine_grid_surface;
static cairo_surface_t* boxes_machine_grid_surface = NULL;
extern BoxesApp* boxes_app_app;
static BoxesIPropertiesProviderIface* boxes_machine_boxes_iproperties_provider_parent_iface = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType property_creation_flag_get_type (void) G_GNUC_CONST;
GType boxes_property_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_machine_connect_flags_get_type (void) G_GNUC_CONST;
GType boxes_machine_thumbnailer_get_type (void) G_GNUC_CONST;
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
GType boxes_display_get_type (void) G_GNUC_CONST;
#define BOXES_MACHINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_MACHINE, BoxesMachinePrivate))
enum  {
	BOXES_MACHINE_DUMMY_PROPERTY,
	BOXES_MACHINE_PIXBUF,
	BOXES_MACHINE_THUMBNAILER,
	BOXES_MACHINE_INFO,
	BOXES_MACHINE_STATUS,
	BOXES_MACHINE_SUSPEND_AT_EXIT,
	BOXES_MACHINE_CAN_SAVE,
	BOXES_MACHINE_CAN_DELETE,
	BOXES_MACHINE_UNDER_CONSTRUCTION,
	BOXES_MACHINE_SHOULD_AUTOSAVE,
	BOXES_MACHINE_IS_CONNECTED,
	BOXES_MACHINE_IS_RUNNING,
	BOXES_MACHINE_IS_ON,
	BOXES_MACHINE_IS_STOPPED,
	BOXES_MACHINE_IS_LOCAL,
	BOXES_MACHINE_CONNECTING_CANCELLABLE,
	BOXES_MACHINE_STATE,
	BOXES_MACHINE_WINDOW,
	BOXES_MACHINE_DELETED,
	BOXES_MACHINE_DISPLAY
};
#define BOXES_MACHINE_AUTOSAVE_TIMEOUT ((guint) 60)
#define BOXES_MACHINE_SCREENSHOT_WIDTH 180
#define BOXES_MACHINE_SCREENSHOT_HEIGHT 134
#define BOXES_MACHINE_CENTERED_EMBLEM_SIZE 32
#define BOXES_MACHINE_EMBLEM_SIZE 16
void boxes_machine_show_display (BoxesMachine* self);
BoxesAppWindow* boxes_machine_get_window (BoxesMachine* self);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
void boxes_ui_set_state (BoxesUI* self, BoxesUIState new_state);
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
GtkWidget* boxes_display_get_display (BoxesDisplay* self, gint n);
void boxes_widget_remove (GtkWidget* widget);
void boxes_display_set_enable_inputs (BoxesDisplay* self, GtkWidget* widget, gboolean enable);
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;
void boxes_display_page_show_display (BoxesDisplayPage* self, BoxesDisplay* display, GtkWidget* widget);
void boxes_display_page_replace_display (BoxesDisplayPage* self, BoxesDisplay* display, GtkWidget* widget);
BoxesMachine* boxes_machine_construct (GType object_type, BoxesCollectionSource* source, const gchar* name, const gchar* uuid);
BoxesCollectionItem* boxes_collection_item_construct (GType object_type);
void boxes_collection_item_set_name (BoxesCollectionItem* self, const gchar* value);
void boxes_machine_set_connecting_cancellable (BoxesMachine* self, GCancellable* value);
static void boxes_machine_ui_state_changed (BoxesMachine* self);
static void _boxes_machine_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
GType boxes_app_get_type (void) G_GNUC_CONST;
BoxesAppWindow* boxes_app_get_main_window (BoxesApp* self);
static void __lambda227_ (BoxesMachine* self);
void boxes_machine_set_screenshot_enable (BoxesMachine* self, gboolean enable);
static void ___lambda227__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void boxes_machine_create_display_config (BoxesMachine* self, const gchar* uuid);
BoxesMachineThumbnailer* boxes_machine_thumbnailer_new (BoxesMachine* machine, gint width, gint height, gint centred_emblem_size, gint emblem_size, GdkRGBA* border_color, GdkRGBA* background_color);
BoxesMachineThumbnailer* boxes_machine_thumbnailer_construct (GType object_type, BoxesMachine* machine, gint width, gint height, gint centred_emblem_size, gint emblem_size, GdkRGBA* border_color, GdkRGBA* background_color);
static void boxes_machine_set_thumbnailer (BoxesMachine* self, BoxesMachineThumbnailer* value);
void boxes_machine_load_screenshot (BoxesMachine* self);
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static gchar* boxes_machine_get_screenshot_filename (BoxesMachine* self, GError** error);
static void boxes_machine_set_screenshot (BoxesMachine* self, GdkPixbuf* large_screenshot, gboolean save);
static void boxes_machine_update_screenshot (BoxesMachine* self, gboolean force_save, gboolean first_check, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_machine_update_screenshot_finish (BoxesMachine* self, GAsyncResult* _res_);
static gboolean ___lambda15_ (BoxesMachine* self);
static gboolean ____lambda15__gsource_func (gpointer self);
static void boxes_machine_save_data_free (gpointer _data);
void boxes_machine_save (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_save_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
static gboolean boxes_machine_save_co (BoxesMachineSaveData* _data_);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
void boxes_machine_update_status (BoxesMachine* self);
void boxes_machine_save_real (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_save_real_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
static void boxes_machine_save_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_machine_schedule_autosave (BoxesMachine* self);
gboolean boxes_machine_get_should_autosave (BoxesMachine* self);
static gboolean __lambda24_ (BoxesMachine* self);
static void boxes_machine_try_save (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_machine_try_save_finish (BoxesMachine* self, GAsyncResult* _res_);
static gboolean ___lambda24__gsource_func (gpointer self);
void boxes_machine_unschedule_autosave (BoxesMachine* self);
static void boxes_machine_real_save_real_data_free (gpointer _data);
static void boxes_machine_real_save_real (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_machine_real_save_real_co (BoxesMachineSaveRealData* _data_);
static void boxes_machine_real_take_screenshot_data_free (gpointer _data);
static void boxes_machine_real_take_screenshot (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_take_screenshot (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
GdkPixbuf* boxes_machine_take_screenshot_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
static gboolean boxes_machine_real_take_screenshot_co (BoxesMachineTakeScreenshotData* _data_);
GdkPixbuf* boxes_display_get_pixbuf (BoxesDisplay* self, gint n, GError** error);
GList* boxes_machine_get_properties (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
static GList* boxes_machine_real_get_properties (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
void boxes_machine_connect_display (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_connect_display_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
void boxes_machine_restart (BoxesMachine* self);
static void boxes_machine_real_restart (BoxesMachine* self);
void boxes_machine_disconnect_display (BoxesMachine* self);
static void boxes_machine_real_disconnect_display (BoxesMachine* self);
GtkWidget* boxes_display_page_remove_display (BoxesDisplayPage* self);
gboolean boxes_display_should_keep_alive (BoxesDisplay* self);
void boxes_display_disconnect_it (BoxesDisplay* self);
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
void boxes_display_set_enable_audio (BoxesDisplay* self, gboolean enable);
void boxes_machine_set_window (BoxesMachine* self, BoxesAppWindow* value);
gchar* boxes_uuid_generate (void);
static void boxes_machine_real_update_status (BoxesMachine* self);
void boxes_machine_set_status (BoxesMachine* self, const gchar* value);
static void boxes_machine_save_pixbuf_as_screenshot (BoxesMachine* self, GdkPixbuf* pixbuf);
static gint boxes_machine_pixbuf_energy (BoxesMachine* self, GdkPixbuf* pixbuf);
static GdkPixbuf* boxes_machine_draw_vm (BoxesMachine* self, GdkPixbuf* pixbuf, gint width, gint height);
void boxes_machine_set_pixbuf (BoxesMachine* self, GdkPixbuf* value);
static GdkPixbuf* boxes_machine_draw_stopped_vm (gint width, gint height);
static void boxes_machine_update_screenshot_data_free (gpointer _data);
static gboolean boxes_machine_update_screenshot_co (BoxesMachineUpdateScreenshotData* _data_);
static void boxes_machine_update_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
gboolean boxes_machine_get_is_running (BoxesMachine* self);
void boxes_machine_delete (BoxesMachine* self, gboolean by_user);
static void boxes_machine_real_delete (BoxesMachine* self, gboolean by_user);
static void boxes_machine_set_deleted (BoxesMachine* self, gboolean value);
void boxes_topbar_set_status (BoxesTopbar* self, const gchar* value);
static void boxes_machine_try_connect_display (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_machine_try_connect_display_finish (BoxesMachine* self, GAsyncResult* _res_);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
BoxesCollectionItem* boxes_app_window_get_current_item (BoxesAppWindow* self);
static void boxes_machine_try_connect_display_data_free (gpointer _data);
static gboolean boxes_machine_try_connect_display_co (BoxesMachineTryConnectDisplayData* _data_);
static Block64Data* block64_data_ref (Block64Data* _data64_);
static void block64_data_unref (void * _userdata_);
static void boxes_machine_try_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
BoxesNotificationbar* boxes_app_window_get_notificationbar (BoxesAppWindow* self);
GdNotification* boxes_notificationbar_display_for_action (BoxesNotificationbar* self, const gchar* message, const gchar* action_label, BoxesNotificationOKFunc action_func, void* action_func_target, GDestroyNotify action_func_target_destroy_notify, BoxesNotificationDismissFunc ignore_func, void* ignore_func_target, GDestroyNotify ignore_func_target_destroy_notify, gint timeout);
static void ___lambda222_ (Block64Data* _data64_);
static void ____lambda222__boxes_notification_ok_func (gpointer self);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
static void ___lambda223_ (BoxesMachine* self);
static void ____lambda223__gd_notification_dismissed (GdNotification* _sender, gpointer self);
GdNotification* boxes_notificationbar_display_error (BoxesNotificationbar* self, const gchar* message, gint timeout);
static void boxes_machine_handle_auth (BoxesMachine* self);
gboolean boxes_display_get_need_username (BoxesDisplay* self);
gboolean boxes_display_get_need_password (BoxesDisplay* self);
static void __lambda221_ (BoxesMachine* self, const gchar* username, const gchar* password);
static void ___lambda221__boxes_auth_notification_auth_func (const gchar* username, const gchar* password, gpointer self);
static void __lambda224_ (BoxesMachine* self);
static void ___lambda224__boxes_notification_dismiss_func (gpointer self);
GdNotification* boxes_notificationbar_display_for_auth (BoxesNotificationbar* self, const gchar* auth_string, BoxesAuthNotificationAuthFunc auth_func, void* auth_func_target, GDestroyNotify auth_func_target_destroy_notify, BoxesNotificationDismissFunc dismiss_func, void* dismiss_func_target, GDestroyNotify dismiss_func_target_destroy_notify, gboolean need_username);
static gint boxes_machine_real_compare (BoxesCollectionItem* base, BoxesCollectionItem* other);
static void boxes_machine_try_save_data_free (gpointer _data);
static gboolean boxes_machine_try_save_co (BoxesMachineTrySaveData* _data_);
static void boxes_machine_try_save_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
GdkPixbuf* boxes_machine_get_pixbuf (BoxesMachine* self);
BoxesMachineThumbnailer* boxes_machine_get_thumbnailer (BoxesMachine* self);
const gchar* boxes_machine_get_info (BoxesMachine* self);
void boxes_machine_set_info (BoxesMachine* self, const gchar* value);
const gchar* boxes_machine_get_status (BoxesMachine* self);
gboolean boxes_machine_get_suspend_at_exit (BoxesMachine* self);
gboolean boxes_machine_get_can_save (BoxesMachine* self);
gboolean boxes_machine_get_can_delete (BoxesMachine* self);
void boxes_machine_set_can_delete (BoxesMachine* self, gboolean value);
gboolean boxes_machine_get_under_construction (BoxesMachine* self);
void boxes_machine_set_under_construction (BoxesMachine* self, gboolean value);
gboolean boxes_machine_get_is_connected (BoxesMachine* self);
gboolean boxes_machine_get_is_on (BoxesMachine* self);
gboolean boxes_machine_get_is_stopped (BoxesMachine* self);
gboolean boxes_machine_get_is_local (BoxesMachine* self);
GCancellable* boxes_machine_get_connecting_cancellable (BoxesMachine* self);
void boxes_machine_set_state (BoxesMachine* self, BoxesMachineMachineState value);
const gchar* boxes_machine_machine_state_to_string (BoxesMachineMachineState self);
gboolean boxes_machine_get_deleted (BoxesMachine* self);
static void _boxes_machine_display___lambda217_ (BoxesMachine* self, gint id);
static void __boxes_machine_display___lambda217__boxes_display_show (BoxesDisplay* _sender, gint display_id, gpointer self);
static void _boxes_machine_display___lambda218_ (BoxesMachine* self, gint id);
static void __boxes_machine_display___lambda218__boxes_display_hide (BoxesDisplay* _sender, gint display_id, gpointer self);
static void _boxes_machine_display___lambda219_ (BoxesMachine* self, const gchar* message);
static void __boxes_machine_display___lambda219__boxes_display_got_error (BoxesDisplay* _sender, const gchar* message, gpointer self);
static void _boxes_machine_display___lambda220_ (BoxesMachine* self, gboolean failed);
static void __boxes_machine_display___lambda220__boxes_display_disconnected (BoxesDisplay* _sender, gboolean connection_failed, gpointer self);
static void _boxes_machine_handle_auth_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
void boxes_display_set_username (BoxesDisplay* self, const gchar* value);
void boxes_display_set_password (BoxesDisplay* self, const gchar* value);
static void boxes_machine_finalize (GObject* obj);
static void _vala_boxes_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_boxes_machine_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);

const GdkRGBA BOXES_MACHINE_FRAME_BORDER_COLOR = {0x3b / 255.0, 0x3c / 255.0, 0x38 / 255.0, 1.0};
const GdkRGBA BOXES_MACHINE_FRAME_BACKGROUND_COLOR = {0x2d / 255.0, 0x2d / 255.0, 0x2d / 255.0, 1.0};
static GRegex* _tmp_regex_0 = NULL;

GType boxes_machine_machine_state_get_type (void) {
	static volatile gsize boxes_machine_machine_state_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_machine_machine_state_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_MACHINE_MACHINE_STATE_UNKNOWN, "BOXES_MACHINE_MACHINE_STATE_UNKNOWN", "unknown"}, {BOXES_MACHINE_MACHINE_STATE_STOPPED, "BOXES_MACHINE_MACHINE_STATE_STOPPED", "stopped"}, {BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED, "BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED", "force-stopped"}, {BOXES_MACHINE_MACHINE_STATE_RUNNING, "BOXES_MACHINE_MACHINE_STATE_RUNNING", "running"}, {BOXES_MACHINE_MACHINE_STATE_PAUSED, "BOXES_MACHINE_MACHINE_STATE_PAUSED", "paused"}, {BOXES_MACHINE_MACHINE_STATE_SAVED, "BOXES_MACHINE_MACHINE_STATE_SAVED", "saved"}, {BOXES_MACHINE_MACHINE_STATE_SLEEPING, "BOXES_MACHINE_MACHINE_STATE_SLEEPING", "sleeping"}, {0, NULL, NULL}};
		GType boxes_machine_machine_state_type_id;
		boxes_machine_machine_state_type_id = g_enum_register_static ("BoxesMachineMachineState", values);
		g_once_init_leave (&boxes_machine_machine_state_type_id__volatile, boxes_machine_machine_state_type_id);
	}
	return boxes_machine_machine_state_type_id__volatile;
}


GType boxes_machine_connect_flags_get_type (void) {
	static volatile gsize boxes_machine_connect_flags_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_machine_connect_flags_type_id__volatile)) {
		static const GFlagsValue values[] = {{BOXES_MACHINE_CONNECT_FLAGS_NONE, "BOXES_MACHINE_CONNECT_FLAGS_NONE", "none"}, {BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE, "BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE", "ignore-saved-state"}, {0, NULL, NULL}};
		GType boxes_machine_connect_flags_type_id;
		boxes_machine_connect_flags_type_id = g_flags_register_static ("BoxesMachineConnectFlags", values);
		g_once_init_leave (&boxes_machine_connect_flags_type_id__volatile, boxes_machine_connect_flags_type_id);
	}
	return boxes_machine_connect_flags_type_id__volatile;
}


void boxes_machine_show_display (BoxesMachine* self) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
	BoxesUIState _tmp2_ = 0;
	BoxesUIState _tmp3_ = 0;
#line 145 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_window (self);
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp1_);
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = _tmp2_;
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_tmp3_) {
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_UI_STATE_CREDS:
#line 787 "machine.c"
		{
			BoxesAppWindow* _tmp4_ = NULL;
			BoxesAppWindow* _tmp5_ = NULL;
#line 149 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp4_ = boxes_machine_get_window (self);
#line 149 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp5_ = _tmp4_;
#line 149 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_ui_set_state ((BoxesUI*) _tmp5_, BOXES_UI_STATE_DISPLAY);
#line 150 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_machine_show_display (self);
#line 151 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			break;
#line 801 "machine.c"
		}
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_UI_STATE_DISPLAY:
#line 805 "machine.c"
		{
			GtkWidget* widget = NULL;
			BoxesDisplay* _tmp6_ = NULL;
			BoxesDisplay* _tmp7_ = NULL;
			GtkWidget* _tmp8_ = NULL;
			GtkWidget* _tmp9_ = NULL;
			BoxesDisplay* _tmp10_ = NULL;
			BoxesDisplay* _tmp11_ = NULL;
			GtkWidget* _tmp12_ = NULL;
			BoxesAppWindow* _tmp13_ = NULL;
			BoxesAppWindow* _tmp14_ = NULL;
			BoxesDisplayPage* _tmp15_ = NULL;
			BoxesDisplay* _tmp16_ = NULL;
			BoxesDisplay* _tmp17_ = NULL;
			GtkWidget* _tmp18_ = NULL;
			GtkWidget* _tmp19_ = NULL;
#line 154 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp6_ = boxes_machine_get_display (self);
#line 154 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp7_ = _tmp6_;
#line 154 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp8_ = boxes_display_get_display (_tmp7_, 0);
#line 154 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			widget = _tmp8_;
#line 155 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp9_ = widget;
#line 155 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_widget_remove (_tmp9_);
#line 156 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp10_ = boxes_machine_get_display (self);
#line 156 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp11_ = _tmp10_;
#line 156 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp12_ = widget;
#line 156 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_display_set_enable_inputs (_tmp11_, _tmp12_, TRUE);
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp13_ = boxes_machine_get_window (self);
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp14_ = _tmp13_;
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp15_ = _tmp14_->display_page;
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp16_ = boxes_machine_get_display (self);
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp17_ = _tmp16_;
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp18_ = widget;
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_display_page_show_display (_tmp15_, _tmp17_, _tmp18_);
#line 158 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp19_ = widget;
#line 158 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			gtk_widget_grab_focus (_tmp19_);
#line 160 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (widget);
#line 160 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			break;
#line 864 "machine.c"
		}
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_UI_STATE_PROPERTIES:
#line 868 "machine.c"
		{
			GtkWidget* widget = NULL;
			BoxesDisplay* _tmp20_ = NULL;
			BoxesDisplay* _tmp21_ = NULL;
			GtkWidget* _tmp22_ = NULL;
			GtkWidget* _tmp23_ = NULL;
			BoxesDisplay* _tmp24_ = NULL;
			BoxesDisplay* _tmp25_ = NULL;
			GtkWidget* _tmp26_ = NULL;
			BoxesAppWindow* _tmp27_ = NULL;
			BoxesAppWindow* _tmp28_ = NULL;
			BoxesDisplayPage* _tmp29_ = NULL;
			BoxesDisplay* _tmp30_ = NULL;
			BoxesDisplay* _tmp31_ = NULL;
			GtkWidget* _tmp32_ = NULL;
#line 163 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp20_ = boxes_machine_get_display (self);
#line 163 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp21_ = _tmp20_;
#line 163 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp22_ = boxes_display_get_display (_tmp21_, 0);
#line 163 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			widget = _tmp22_;
#line 164 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp23_ = widget;
#line 164 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_widget_remove (_tmp23_);
#line 165 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp24_ = boxes_machine_get_display (self);
#line 165 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp25_ = _tmp24_;
#line 165 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp26_ = widget;
#line 165 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_display_set_enable_inputs (_tmp25_, _tmp26_, TRUE);
#line 166 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp27_ = boxes_machine_get_window (self);
#line 166 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp28_ = _tmp27_;
#line 166 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp29_ = _tmp28_->display_page;
#line 166 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp30_ = boxes_machine_get_display (self);
#line 166 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp31_ = _tmp30_;
#line 166 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp32_ = widget;
#line 166 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_display_page_replace_display (_tmp29_, _tmp31_, _tmp32_);
#line 167 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (widget);
#line 167 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			break;
#line 922 "machine.c"
		}
		default:
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 927 "machine.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return self ? g_object_ref (self) : NULL;
#line 935 "machine.c"
}


static void _boxes_machine_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 251 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_ui_state_changed ((BoxesMachine*) self);
#line 942 "machine.c"
}


static void __lambda227_ (BoxesMachine* self) {
	BoxesApp* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
	BoxesAppWindow* _tmp2_ = NULL;
	BoxesUIState _tmp3_ = 0;
	BoxesUIState _tmp4_ = 0;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_app_app;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_app_get_main_window (_tmp0_);
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _tmp1_;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp2_);
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp4_ == BOXES_UI_STATE_DISPLAY) {
#line 254 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_screenshot_enable (self, FALSE);
#line 966 "machine.c"
	} else {
#line 256 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_screenshot_enable (self, TRUE);
#line 970 "machine.c"
	}
}


static void ___lambda227__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	__lambda227_ ((BoxesMachine*) self);
#line 978 "machine.c"
}


BoxesMachine* boxes_machine_construct (GType object_type, BoxesCollectionSource* source, const gchar* name, const gchar* uuid) {
	BoxesMachine * self = NULL;
	const gchar* _tmp0_ = NULL;
	BoxesCollectionSource* _tmp1_ = NULL;
	BoxesCollectionSource* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	BoxesApp* _tmp5_ = NULL;
	BoxesAppWindow* _tmp6_ = NULL;
	BoxesAppWindow* _tmp7_ = NULL;
	gulong _tmp8_ = 0UL;
	const gchar* _tmp9_ = NULL;
	BoxesMachineThumbnailer* _tmp10_ = NULL;
	BoxesMachineThumbnailer* _tmp11_ = NULL;
#line 246 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 246 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 246 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = (BoxesMachine*) boxes_collection_item_construct (object_type);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = name;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_collection_item_set_name ((BoxesCollectionItem*) self, _tmp0_);
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = source;
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->source);
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->source = _tmp2_;
#line 249 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = g_cancellable_new ();
#line 249 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_;
#line 249 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_set_connecting_cancellable (self, _tmp4_);
#line 249 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_tmp4_);
#line 251 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_signal_connect_object ((GObject*) self, "notify::ui-state", (GCallback) _boxes_machine_ui_state_changed_g_object_notify, self, 0);
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = boxes_app_app;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp6_ = boxes_app_get_main_window (_tmp5_);
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp7_ = _tmp6_;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = g_signal_connect_object ((GObject*) _tmp7_, "notify::ui-state", (GCallback) ___lambda227__g_object_notify, self, 0);
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->ui_state_id = _tmp8_;
#line 259 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = uuid;
#line 259 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_create_display_config (self, _tmp9_);
#line 262 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp10_ = boxes_machine_thumbnailer_new (self, BOXES_MACHINE_SCREENSHOT_WIDTH, BOXES_MACHINE_SCREENSHOT_HEIGHT, BOXES_MACHINE_CENTERED_EMBLEM_SIZE, BOXES_MACHINE_EMBLEM_SIZE, &BOXES_MACHINE_FRAME_BORDER_COLOR, &BOXES_MACHINE_FRAME_BACKGROUND_COLOR);
#line 262 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp11_ = _tmp10_;
#line 262 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_set_thumbnailer (self, _tmp11_);
#line 262 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_tmp11_);
#line 246 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return self;
#line 1048 "machine.c"
}


void boxes_machine_load_screenshot (BoxesMachine* self) {
	GError * _inner_error_ = NULL;
#line 268 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 1056 "machine.c"
	{
		GdkPixbuf* _tmp0_ = NULL;
		gboolean _tmp1_ = FALSE;
		BoxesMachineMachineState _tmp2_ = 0;
		BoxesMachineMachineState _tmp3_ = 0;
		GdkPixbuf* screenshot = NULL;
		GdkPixbuf* _tmp9_ = NULL;
		GdkPixbuf* _tmp10_ = NULL;
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = boxes_machine_get_state (self);
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = _tmp2_;
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp3_ != BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 1071 "machine.c"
			BoxesMachineMachineState _tmp4_ = 0;
			BoxesMachineMachineState _tmp5_ = 0;
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp4_ = boxes_machine_get_state (self);
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp5_ = _tmp4_;
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp1_ = _tmp5_ != BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED;
#line 1080 "machine.c"
		} else {
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp1_ = FALSE;
#line 1084 "machine.c"
		}
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp1_) {
#line 1088 "machine.c"
			gchar* _tmp6_ = NULL;
			gchar* _tmp7_ = NULL;
			GdkPixbuf* _tmp8_ = NULL;
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp7_ = boxes_machine_get_screenshot_filename (self, &_inner_error_);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp6_ = _tmp7_;
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_g_object_unref0 (_tmp0_);
#line 1100 "machine.c"
				goto __catch51_g_error;
			}
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp8_ = gdk_pixbuf_new_from_file (_tmp6_, &_inner_error_);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (_tmp0_);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp0_ = _tmp8_;
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_g_free0 (_tmp6_);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_g_object_unref0 (_tmp0_);
#line 1115 "machine.c"
				goto __catch51_g_error;
			}
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_free0 (_tmp6_);
#line 1120 "machine.c"
		} else {
#line 272 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (_tmp0_);
#line 272 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp0_ = NULL;
#line 1126 "machine.c"
		}
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp9_ = _g_object_ref0 (_tmp0_);
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		screenshot = _tmp9_;
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp10_ = screenshot;
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_screenshot (self, _tmp10_, FALSE);
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (screenshot);
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_tmp0_);
#line 1140 "machine.c"
	}
	goto __finally51;
	__catch51_g_error:
	{
		GError* _error_ = NULL;
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_error_ = _inner_error_;
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_inner_error_ = NULL;
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (_error_);
#line 1152 "machine.c"
	}
	__finally51:
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_clear_error (&_inner_error_);
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 1163 "machine.c"
	}
}


static gboolean ___lambda15_ (BoxesMachine* self) {
	gboolean result = FALSE;
#line 285 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_update_screenshot (self, FALSE, FALSE, NULL, NULL);
#line 287 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = TRUE;
#line 287 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 1176 "machine.c"
}


static gboolean ____lambda15__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda15_ ((BoxesMachine*) self);
#line 284 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 1185 "machine.c"
}


void boxes_machine_set_screenshot_enable (BoxesMachine* self, gboolean enable) {
	gboolean _tmp0_ = FALSE;
#line 278 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = enable;
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_) {
#line 1197 "machine.c"
		guint _tmp1_ = 0U;
		gint interval = 0;
		BoxesApp* _tmp2_ = NULL;
		BoxesAppWindow* _tmp3_ = NULL;
		BoxesAppWindow* _tmp4_ = NULL;
		GSettings* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
		guint _tmp8_ = 0U;
#line 280 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = self->priv->screenshot_id;
#line 280 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp1_ != ((guint) 0)) {
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			return;
#line 1213 "machine.c"
		}
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_update_screenshot (self, FALSE, TRUE, NULL, NULL);
#line 283 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = boxes_app_app;
#line 283 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = boxes_app_get_main_window (_tmp2_);
#line 283 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = _tmp3_;
#line 283 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = _tmp4_->settings;
#line 283 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = g_settings_get_int (_tmp5_, "screenshot-interval");
#line 283 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		interval = _tmp6_;
#line 284 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = interval;
#line 284 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp8_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp7_, ____lambda15__gsource_func, g_object_ref (self), g_object_unref);
#line 284 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->screenshot_id = _tmp8_;
#line 1235 "machine.c"
	} else {
		guint _tmp9_ = 0U;
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp9_ = self->priv->screenshot_id;
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp9_ != ((guint) 0)) {
#line 1242 "machine.c"
			guint _tmp10_ = 0U;
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp10_ = self->priv->screenshot_id;
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_source_remove (_tmp10_);
#line 1248 "machine.c"
		}
#line 292 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->screenshot_id = (guint) 0;
#line 1252 "machine.c"
	}
}


static gchar* boxes_machine_get_screenshot_filename (BoxesMachine* self, GError** error) {
	gchar* result = NULL;
	BoxesBoxConfig* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	BoxesBoxConfig* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	GError * _inner_error_ = NULL;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->config;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_box_config_get_uuid (_tmp0_);
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _tmp1_;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = _tmp2_;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_ == NULL;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (_tmp3_);
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp4_) {
#line 1287 "machine.c"
		GError* _tmp5_ = NULL;
#line 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "no uuid, cannot build screenshot filename");
#line 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_inner_error_ = _tmp5_;
#line 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_propagate_error (error, _inner_error_);
#line 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			return NULL;
#line 1299 "machine.c"
		} else {
#line 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_clear_error (&_inner_error_);
#line 298 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			return NULL;
#line 1307 "machine.c"
		}
	}
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp6_ = self->config;
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp7_ = boxes_box_config_get_uuid (_tmp6_);
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = _tmp7_;
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = _tmp8_;
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp10_ = boxes_get_screenshot_filename (_tmp9_);
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp11_ = _tmp10_;
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (_tmp9_);
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp11_;
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 1328 "machine.c"
}


static void boxes_machine_save_data_free (gpointer _data) {
	BoxesMachineSaveData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_slice_free (BoxesMachineSaveData, _data_);
#line 1339 "machine.c"
}


void boxes_machine_save (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesMachineSaveData* _data_;
	BoxesMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_slice_new0 (BoxesMachineSaveData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_machine_save);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_machine_save_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_save_co (_data_);
#line 1358 "machine.c"
}


void boxes_machine_save_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error) {
	BoxesMachineSaveData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 1368 "machine.c"
	}
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1372 "machine.c"
}


static void boxes_machine_save_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesMachineSaveData* _data_;
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = _user_data_;
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_source_object_ = source_object;
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_res_ = _res_;
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_save_co (_data_);
#line 1386 "machine.c"
}


static gboolean boxes_machine_save_co (BoxesMachineSaveData* _data_) {
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_data_->_state_) {
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 0:
#line 1395 "machine.c"
		goto _state_0;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 1:
#line 1399 "machine.c"
		goto _state_1;
		default:
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_assert_not_reached ();
#line 1404 "machine.c"
	}
	_state_0:
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = 0;
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = boxes_machine_get_state (_data_->self);
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp1_ = 0;
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_tmp1_ == BOXES_MACHINE_MACHINE_STATE_SAVED) {
#line 306 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = NULL;
#line 306 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 306 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = NULL;
#line 306 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 306 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_debug ("machine.vala:306: Not saving '%s' since it's already in saved state.", _data_->_tmp3_);
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_data_->_state_ == 0) {
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1431 "machine.c"
		} else {
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1435 "machine.c"
		}
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_object_unref (_data_->_async_result);
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 1441 "machine.c"
	}
#line 310 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self->priv->saving = TRUE;
#line 311 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_update_status (_data_->self);
#line 1447 "machine.c"
	{
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_state_ = 1;
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_save_real (_data_->self, boxes_machine_save_ready, _data_);
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 1455 "machine.c"
		_state_1:
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_save_real_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 314 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1461 "machine.c"
			goto __finally52;
		}
	}
	__finally52:
	{
#line 316 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->self->priv->saving = FALSE;
#line 317 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_update_status (_data_->self);
#line 1471 "machine.c"
	}
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_error_free (_data_->_inner_error_);
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_data_->_state_ == 0) {
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1483 "machine.c"
		} else {
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1487 "machine.c"
		}
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_object_unref (_data_->_async_result);
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 1493 "machine.c"
	}
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_state_ == 0) {
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1499 "machine.c"
	} else {
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1503 "machine.c"
	}
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_unref (_data_->_async_result);
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return FALSE;
#line 1509 "machine.c"
}


static gboolean __lambda24_ (BoxesMachine* self) {
	gboolean result = FALSE;
#line 327 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_try_save (self, NULL, NULL);
#line 328 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->autosave_timeout_id = (guint) 0;
#line 330 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = FALSE;
#line 330 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 1523 "machine.c"
}


static gboolean ___lambda24__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda24_ ((BoxesMachine*) self);
#line 326 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 1532 "machine.c"
}


void boxes_machine_schedule_autosave (BoxesMachine* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	guint _tmp4_ = 0U;
#line 321 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 322 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_should_autosave (self);
#line 322 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 322 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (!_tmp1_) {
#line 323 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 1552 "machine.c"
	}
#line 325 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 325 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = _tmp2_;
#line 325 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_debug ("machine.vala:325: Scheduling autosave for '%s'", _tmp3_);
#line 326 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, BOXES_MACHINE_AUTOSAVE_TIMEOUT, ___lambda24__gsource_func, g_object_ref (self), g_object_unref);
#line 326 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->autosave_timeout_id = _tmp4_;
#line 1564 "machine.c"
}


void boxes_machine_unschedule_autosave (BoxesMachine* self) {
	guint _tmp0_ = 0U;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
#line 334 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 335 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->autosave_timeout_id;
#line 335 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_ == ((guint) 0)) {
#line 336 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 1581 "machine.c"
	}
#line 338 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 338 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _tmp1_;
#line 338 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_debug ("machine.vala:338: Unscheduling autosave for '%s'", _tmp2_);
#line 339 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = self->priv->autosave_timeout_id;
#line 339 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_source_remove (_tmp3_);
#line 340 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->autosave_timeout_id = (guint) 0;
#line 1595 "machine.c"
}


static void boxes_machine_real_save_real_data_free (gpointer _data) {
	BoxesMachineSaveRealData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_slice_free (BoxesMachineSaveRealData, _data_);
#line 1606 "machine.c"
}


static void boxes_machine_real_save_real (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesMachineSaveRealData* _data_;
	BoxesMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_slice_new0 (BoxesMachineSaveRealData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_machine_real_save_real);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_machine_real_save_real_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_real_save_real_co (_data_);
#line 1625 "machine.c"
}


static void boxes_machine_real_save_real_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error) {
	BoxesMachineSaveRealData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 1635 "machine.c"
	}
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1639 "machine.c"
}


static gboolean boxes_machine_real_save_real_co (BoxesMachineSaveRealData* _data_) {
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_data_->_state_) {
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 0:
#line 1648 "machine.c"
		goto _state_0;
		default:
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_assert_not_reached ();
#line 1653 "machine.c"
	}
	_state_0:
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_state_ == 0) {
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1660 "machine.c"
	} else {
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1664 "machine.c"
	}
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_unref (_data_->_async_result);
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return FALSE;
#line 1670 "machine.c"
}


void boxes_machine_save_real (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->save_real (self, _callback_, _user_data_);
#line 1677 "machine.c"
}


void boxes_machine_save_real_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->save_real_finish (self, _res_, error);
#line 1684 "machine.c"
}


static void boxes_machine_real_take_screenshot_data_free (gpointer _data) {
	BoxesMachineTakeScreenshotData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->result);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_slice_free (BoxesMachineTakeScreenshotData, _data_);
#line 1697 "machine.c"
}


static void boxes_machine_real_take_screenshot (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesMachineTakeScreenshotData* _data_;
	BoxesMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_slice_new0 (BoxesMachineTakeScreenshotData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_machine_real_take_screenshot);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_machine_real_take_screenshot_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_real_take_screenshot_co (_data_);
#line 1716 "machine.c"
}


static GdkPixbuf* boxes_machine_real_take_screenshot_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error) {
	GdkPixbuf* result;
	BoxesMachineTakeScreenshotData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return NULL;
#line 1727 "machine.c"
	}
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _data_->result;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->result = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 1737 "machine.c"
}


static gboolean boxes_machine_real_take_screenshot_co (BoxesMachineTakeScreenshotData* _data_) {
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_data_->_state_) {
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 0:
#line 1746 "machine.c"
		goto _state_0;
		default:
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_assert_not_reached ();
#line 1751 "machine.c"
	}
	_state_0:
#line 353 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = NULL;
#line 353 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = boxes_machine_get_display (_data_->self);
#line 353 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp1_ = NULL;
#line 353 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 353 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_tmp1_ == NULL) {
#line 354 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->result = NULL;
#line 354 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_data_->_state_ == 0) {
#line 354 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1770 "machine.c"
		} else {
#line 354 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1774 "machine.c"
		}
#line 354 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_object_unref (_data_->_async_result);
#line 354 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 1780 "machine.c"
	}
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp3_ = NULL;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp3_ = boxes_machine_get_display (_data_->self);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp4_ = NULL;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp5_ = NULL;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp5_ = boxes_display_get_pixbuf (_data_->_tmp4_, 0, &_data_->_inner_error_);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp2_ = _data_->_tmp5_;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_error_free (_data_->_inner_error_);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_data_->_state_ == 0) {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1806 "machine.c"
		} else {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1810 "machine.c"
		}
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_object_unref (_data_->_async_result);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 1816 "machine.c"
	}
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp6_ = NULL;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp6_ = _data_->_tmp2_;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp2_ = NULL;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->result = _data_->_tmp6_;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->_tmp2_);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_state_ == 0) {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1832 "machine.c"
	} else {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1836 "machine.c"
	}
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_unref (_data_->_async_result);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return FALSE;
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->_tmp2_);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_state_ == 0) {
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1848 "machine.c"
	} else {
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1852 "machine.c"
	}
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_unref (_data_->_async_result);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return FALSE;
#line 1858 "machine.c"
}


void boxes_machine_take_screenshot (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->take_screenshot (self, _callback_, _user_data_);
#line 1865 "machine.c"
}


GdkPixbuf* boxes_machine_take_screenshot_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return BOXES_MACHINE_GET_CLASS (self)->take_screenshot_finish (self, _res_, error);
#line 1872 "machine.c"
}


static GList* boxes_machine_real_get_properties (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags) {
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_critical ("Type `%s' does not implement abstract method `boxes_machine_get_properties'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return NULL;
#line 1881 "machine.c"
}


GList* boxes_machine_get_properties (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags) {
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return BOXES_MACHINE_GET_CLASS (self)->get_properties (self, page, flags);
#line 1890 "machine.c"
}


void boxes_machine_connect_display (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->connect_display (self, flags, _callback_, _user_data_);
#line 1897 "machine.c"
}


void boxes_machine_connect_display_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->connect_display_finish (self, _res_, error);
#line 1904 "machine.c"
}


static void boxes_machine_real_restart (BoxesMachine* self) {
#line 362 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_critical ("Type `%s' does not implement abstract method `boxes_machine_restart'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 362 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return;
#line 1913 "machine.c"
}


void boxes_machine_restart (BoxesMachine* self) {
#line 362 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 362 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->restart (self);
#line 1922 "machine.c"
}


static void boxes_machine_real_disconnect_display (BoxesMachine* self) {
	BoxesDisplay* _tmp0_ = NULL;
	BoxesDisplay* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	BoxesMachineMachineState _tmp3_ = 0;
	BoxesMachineMachineState _tmp4_ = 0;
	BoxesAppWindow* _tmp14_ = NULL;
	BoxesAppWindow* _tmp15_ = NULL;
	BoxesDisplayPage* _tmp16_ = NULL;
	GtkWidget* _tmp17_ = NULL;
	GtkWidget* _tmp18_ = NULL;
	BoxesDisplay* _tmp19_ = NULL;
	BoxesDisplay* _tmp20_ = NULL;
	gboolean _tmp21_ = FALSE;
	GError * _inner_error_ = NULL;
#line 365 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_display (self);
#line 365 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 365 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp1_ == NULL) {
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 1949 "machine.c"
	}
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = boxes_machine_get_state (self);
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_;
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp4_ != BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 1957 "machine.c"
		BoxesMachineMachineState _tmp5_ = 0;
		BoxesMachineMachineState _tmp6_ = 0;
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = boxes_machine_get_state (self);
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = _tmp5_;
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = _tmp6_ != BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED;
#line 1966 "machine.c"
	} else {
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = FALSE;
#line 1970 "machine.c"
	}
#line 368 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp2_) {
#line 1974 "machine.c"
		{
			GdkPixbuf* pixbuf = NULL;
			BoxesDisplay* _tmp7_ = NULL;
			BoxesDisplay* _tmp8_ = NULL;
			GdkPixbuf* _tmp9_ = NULL;
			GdkPixbuf* _tmp10_ = NULL;
#line 370 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp7_ = boxes_machine_get_display (self);
#line 370 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp8_ = _tmp7_;
#line 370 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp9_ = boxes_display_get_pixbuf (_tmp8_, 0, &_inner_error_);
#line 370 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			pixbuf = _tmp9_;
#line 370 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1991 "machine.c"
				goto __catch53_g_error;
			}
#line 371 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp10_ = pixbuf;
#line 371 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (_tmp10_ != NULL) {
#line 1998 "machine.c"
				GdkPixbuf* _tmp11_ = NULL;
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp11_ = pixbuf;
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				boxes_machine_set_screenshot (self, _tmp11_, TRUE);
#line 2004 "machine.c"
			}
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (pixbuf);
#line 2008 "machine.c"
		}
		goto __finally53;
		__catch53_g_error:
		{
			GError* _error_ = NULL;
			GError* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_error_ = _inner_error_;
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_inner_error_ = NULL;
#line 374 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp12_ = _error_;
#line 374 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp13_ = _tmp12_->message;
#line 374 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_warning ("machine.vala:374: %s", _tmp13_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_error_free0 (_error_);
#line 2028 "machine.c"
		}
		__finally53:
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_clear_error (&_inner_error_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			return;
#line 2039 "machine.c"
		}
	}
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp14_ = boxes_machine_get_window (self);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp15_ = _tmp14_;
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp16_ = _tmp15_->display_page;
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp17_ = boxes_display_page_remove_display (_tmp16_);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp18_ = _tmp17_;
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_tmp18_);
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp19_ = boxes_machine_get_display (self);
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp20_ = _tmp19_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp21_ = boxes_display_should_keep_alive (_tmp20_);
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (!_tmp21_) {
#line 2062 "machine.c"
		BoxesDisplay* _tmp22_ = NULL;
		BoxesDisplay* _tmp23_ = NULL;
#line 380 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp22_ = boxes_machine_get_display (self);
#line 380 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp23_ = _tmp22_;
#line 380 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_display_disconnect_it (_tmp23_);
#line 381 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_display (self, NULL);
#line 2073 "machine.c"
	} else {
		BoxesDisplay* _tmp24_ = NULL;
		BoxesDisplay* _tmp25_ = NULL;
#line 383 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp24_ = boxes_machine_get_display (self);
#line 383 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp25_ = _tmp24_;
#line 383 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_display_set_enable_audio (_tmp25_, FALSE);
#line 2083 "machine.c"
	}
#line 386 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_set_window (self, NULL);
#line 2087 "machine.c"
}


void boxes_machine_disconnect_display (BoxesMachine* self) {
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->disconnect_display (self);
#line 2096 "machine.c"
}


static void boxes_machine_create_display_config (BoxesMachine* self, const gchar* uuid) {
	BoxesBoxConfig* _tmp0_ = NULL;
	gchar* group = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	BoxesCollectionSource* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	BoxesBoxConfig* _tmp10_ = NULL;
	BoxesBoxConfig* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	gboolean _tmp17_ = FALSE;
	gboolean _tmp21_ = FALSE;
	const gchar* _tmp22_ = NULL;
	BoxesBoxConfig* _tmp30_ = NULL;
	gchar* _tmp31_ = NULL;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_ = NULL;
	gboolean _tmp34_ = FALSE;
	BoxesBoxConfig* _tmp38_ = NULL;
	BoxesBoxConfig* _tmp39_ = NULL;
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->config;
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_vala_return_if_fail (_tmp0_ == NULL, "this.config == null");
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = g_strdup ("display");
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	group = _tmp1_;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = uuid;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp2_ != NULL) {
#line 2138 "machine.c"
		const gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = group;
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = uuid;
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = g_strconcat (" ", _tmp4_, NULL);
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = _tmp5_;
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = g_strconcat (_tmp3_, _tmp6_, NULL);
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (group);
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		group = _tmp7_;
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_tmp6_);
#line 2160 "machine.c"
	}
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = self->source;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = group;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp10_ = boxes_box_config_new_with_group (_tmp8_, _tmp9_);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->config);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->config = _tmp10_;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp11_ = self->config;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp12_ = boxes_box_config_get_last_seen_name (_tmp11_);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp13_ = _tmp12_;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp14_ = _tmp13_;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp15_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp16_ = _tmp15_;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp17_ = g_strcmp0 (_tmp14_, _tmp16_) != 0;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (_tmp14_);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp17_) {
#line 2190 "machine.c"
		BoxesBoxConfig* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp18_ = self->config;
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp19_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp20_ = _tmp19_;
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_box_config_set_last_seen_name (_tmp18_, _tmp20_);
#line 2202 "machine.c"
	}
#line 401 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp22_ = uuid;
#line 401 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp22_ != NULL) {
#line 2208 "machine.c"
		BoxesBoxConfig* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
		const gchar* _tmp27_ = NULL;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp23_ = self->config;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp24_ = boxes_box_config_get_uuid (_tmp23_);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp25_ = _tmp24_;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp26_ = _tmp25_;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp27_ = uuid;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp21_ = g_strcmp0 (_tmp26_, _tmp27_) != 0;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_tmp26_);
#line 2228 "machine.c"
	} else {
#line 401 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp21_ = FALSE;
#line 2232 "machine.c"
	}
#line 401 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp21_) {
#line 2236 "machine.c"
		BoxesBoxConfig* _tmp28_ = NULL;
		const gchar* _tmp29_ = NULL;
#line 403 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp28_ = self->config;
#line 403 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp29_ = uuid;
#line 403 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_box_config_set_uuid (_tmp28_, _tmp29_);
#line 2245 "machine.c"
	}
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp30_ = self->config;
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp31_ = boxes_box_config_get_uuid (_tmp30_);
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp32_ = _tmp31_;
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp33_ = _tmp32_;
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp34_ = _tmp33_ == NULL;
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (_tmp33_);
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp34_) {
#line 2261 "machine.c"
		BoxesBoxConfig* _tmp35_ = NULL;
		gchar* _tmp36_ = NULL;
		gchar* _tmp37_ = NULL;
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp35_ = self->config;
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp36_ = boxes_uuid_generate ();
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp37_ = _tmp36_;
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_box_config_set_uuid (_tmp35_, _tmp37_);
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_tmp37_);
#line 2275 "machine.c"
	}
#line 408 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp38_ = self->config;
#line 408 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_iconfig_save ((BoxesIConfig*) _tmp38_);
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (group);
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp39_ = self->config;
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_vala_warn_if_fail (_tmp39_ != NULL, "this.config != null");
#line 2287 "machine.c"
}


static void boxes_machine_real_update_status (BoxesMachine* self) {
	gboolean _tmp0_ = FALSE;
#line 412 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->saving;
#line 412 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_) {
#line 2297 "machine.c"
		const gchar* _tmp1_ = NULL;
#line 413 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = _ ("Saving…");
#line 413 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_status (self, _tmp1_);
#line 2303 "machine.c"
	} else {
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_status (self, NULL);
#line 2307 "machine.c"
	}
}


void boxes_machine_update_status (BoxesMachine* self) {
#line 411 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 411 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->update_status (self);
#line 2317 "machine.c"
}


static void boxes_machine_save_pixbuf_as_screenshot (BoxesMachine* self, GdkPixbuf* pixbuf) {
	GError * _inner_error_ = NULL;
#line 418 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 2325 "machine.c"
	{
		gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		GdkPixbuf* _tmp2_ = NULL;
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = boxes_machine_get_screenshot_filename (self, &_inner_error_);
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = _tmp1_;
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2336 "machine.c"
			goto __catch54_g_error;
		}
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = pixbuf;
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		gdk_pixbuf_save (_tmp2_, _tmp0_, "png", &_inner_error_, NULL);
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_free0 (_tmp0_);
#line 2347 "machine.c"
			goto __catch54_g_error;
		}
#line 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_tmp0_);
#line 2352 "machine.c"
	}
	goto __finally54;
	__catch54_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_error_ = _inner_error_;
#line 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_inner_error_ = NULL;
#line 422 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = _error_;
#line 422 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = _tmp3_->message;
#line 422 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_warning ("machine.vala:422: %s", _tmp4_);
#line 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (_error_);
#line 2372 "machine.c"
	}
	__finally54:
#line 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_clear_error (&_inner_error_);
#line 419 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 2383 "machine.c"
	}
}


static gint boxes_machine_pixbuf_energy (BoxesMachine* self, GdkPixbuf* pixbuf) {
	gint result = 0;
	guint8* pixels = NULL;
	GdkPixbuf* _tmp0_ = NULL;
	guint8* _tmp1_ = NULL;
	gint pixels_length1 = 0;
	gint _pixels_size_ = 0;
	gint w = 0;
	GdkPixbuf* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	gint h = 0;
	GdkPixbuf* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	gint rowstride = 0;
	GdkPixbuf* _tmp6_ = NULL;
	gint _tmp7_ = 0;
	gint n_channels = 0;
	GdkPixbuf* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	gint energy = 0;
	gint row_start = 0;
	gint _tmp40_ = 0;
	gint _tmp41_ = 0;
#line 428 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 428 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (pixbuf != NULL, 0);
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = pixbuf;
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = gdk_pixbuf_get_pixels (_tmp0_);
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	pixels = _tmp1_;
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	pixels_length1 = -1;
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_pixels_size_ = pixels_length1;
#line 430 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = pixbuf;
#line 430 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = gdk_pixbuf_get_width (_tmp2_);
#line 430 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	w = _tmp3_;
#line 431 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = pixbuf;
#line 431 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = gdk_pixbuf_get_height (_tmp4_);
#line 431 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	h = _tmp5_;
#line 432 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp6_ = pixbuf;
#line 432 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp7_ = gdk_pixbuf_get_rowstride (_tmp6_);
#line 432 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	rowstride = _tmp7_;
#line 433 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = pixbuf;
#line 433 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = gdk_pixbuf_get_n_channels (_tmp8_);
#line 433 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	n_channels = _tmp9_;
#line 435 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	energy = 0;
#line 436 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	row_start = 0;
#line 2453 "machine.c"
	{
		gint y = 0;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		y = 0;
#line 2458 "machine.c"
		{
			gboolean _tmp10_ = FALSE;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp10_ = TRUE;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			while (TRUE) {
#line 2465 "machine.c"
				gint _tmp12_ = 0;
				gint _tmp13_ = 0;
				gint row_energy = 0;
				gint i = 0;
				gint _tmp14_ = 0;
				gint _tmp35_ = 0;
				gint _tmp36_ = 0;
				gint _tmp37_ = 0;
				gint _tmp38_ = 0;
				gint _tmp39_ = 0;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				if (!_tmp10_) {
#line 2478 "machine.c"
					gint _tmp11_ = 0;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
					_tmp11_ = y;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
					y = _tmp11_ + 1;
#line 2484 "machine.c"
				}
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp10_ = FALSE;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp12_ = y;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp13_ = h;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				if (!(_tmp12_ < _tmp13_)) {
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
					break;
#line 2496 "machine.c"
				}
#line 438 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				row_energy = 0;
#line 439 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp14_ = row_start;
#line 439 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				i = _tmp14_;
#line 2504 "machine.c"
				{
					gint x = 0;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
					x = 0;
#line 2509 "machine.c"
					{
						gboolean _tmp15_ = FALSE;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
						_tmp15_ = TRUE;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
						while (TRUE) {
#line 2516 "machine.c"
							gint _tmp17_ = 0;
							gint _tmp18_ = 0;
							gint max = 0;
							guint8* _tmp19_ = NULL;
							gint _tmp19__length1 = 0;
							gint _tmp20_ = 0;
							guint8 _tmp21_ = 0U;
							guint8* _tmp22_ = NULL;
							gint _tmp22__length1 = 0;
							gint _tmp23_ = 0;
							guint8 _tmp24_ = 0U;
							gint _tmp25_ = 0;
							guint8* _tmp26_ = NULL;
							gint _tmp26__length1 = 0;
							gint _tmp27_ = 0;
							guint8 _tmp28_ = 0U;
							gint _tmp29_ = 0;
							gint _tmp30_ = 0;
							gint _tmp31_ = 0;
							gint _tmp32_ = 0;
							gint _tmp33_ = 0;
							gint _tmp34_ = 0;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							if (!_tmp15_) {
#line 2541 "machine.c"
								gint _tmp16_ = 0;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
								_tmp16_ = x;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
								x = _tmp16_ + 1;
#line 2547 "machine.c"
							}
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp15_ = FALSE;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp17_ = x;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp18_ = w;
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							if (!(_tmp17_ < _tmp18_)) {
#line 440 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
								break;
#line 2559 "machine.c"
							}
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp19_ = pixels;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp19__length1 = pixels_length1;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp20_ = i;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp21_ = _tmp19_[_tmp20_ + 0];
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp22_ = pixels;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp22__length1 = pixels_length1;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp23_ = i;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp24_ = _tmp22_[_tmp23_ + 1];
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp25_ = MAX ((gint) _tmp21_, (gint) _tmp24_);
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp26_ = pixels;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp26__length1 = pixels_length1;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp27_ = i;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp28_ = _tmp26_[_tmp27_ + 2];
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp29_ = MAX (_tmp25_, (gint) _tmp28_);
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							max = _tmp29_;
#line 442 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp30_ = row_energy;
#line 442 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp31_ = max;
#line 442 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp32_ = max;
#line 442 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							row_energy = _tmp30_ + (_tmp31_ * _tmp32_);
#line 443 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp33_ = i;
#line 443 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							_tmp34_ = n_channels;
#line 443 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
							i = _tmp33_ + _tmp34_;
#line 2605 "machine.c"
						}
					}
				}
#line 445 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp35_ = energy;
#line 445 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp36_ = row_energy;
#line 445 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp37_ = w;
#line 445 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				energy = _tmp35_ + (_tmp36_ / _tmp37_);
#line 446 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp38_ = row_start;
#line 446 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp39_ = rowstride;
#line 446 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				row_start = _tmp38_ + _tmp39_;
#line 2623 "machine.c"
			}
		}
	}
#line 448 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp40_ = energy;
#line 448 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp41_ = h;
#line 448 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp40_ / _tmp41_;
#line 448 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 2635 "machine.c"
}


static void boxes_machine_set_screenshot (BoxesMachine* self, GdkPixbuf* large_screenshot, gboolean save) {
	GdkPixbuf* _tmp0_ = NULL;
#line 451 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 452 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = large_screenshot;
#line 452 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_ != NULL) {
#line 2647 "machine.c"
		gint pw = 0;
		GdkPixbuf* _tmp1_ = NULL;
		gint _tmp2_ = 0;
		gint ph = 0;
		GdkPixbuf* _tmp3_ = NULL;
		gint _tmp4_ = 0;
		gdouble s = 0.0;
		gint _tmp5_ = 0;
		gint _tmp6_ = 0;
		gdouble _tmp7_ = 0.0;
		gint w = 0;
		gint _tmp8_ = 0;
		gdouble _tmp9_ = 0.0;
		gint h = 0;
		gint _tmp10_ = 0;
		gdouble _tmp11_ = 0.0;
		GdkPixbuf* small_screenshot = NULL;
		GdkPixbuf* _tmp12_ = NULL;
		gboolean _tmp13_ = FALSE;
		gboolean _tmp14_ = FALSE;
		gint _tmp15_ = 0;
		gint _tmp16_ = 0;
		GdkPixbuf* _tmp17_ = NULL;
		GdkPixbuf* _tmp18_ = NULL;
		GdkPixbuf* _tmp19_ = NULL;
		gint _tmp20_ = 0;
		gint _tmp21_ = 0;
		gdouble _tmp22_ = 0.0;
		gdouble _tmp23_ = 0.0;
		GdkPixbuf* _tmp24_ = NULL;
		gint _tmp25_ = 0;
		GdkPixbuf* _tmp26_ = NULL;
		GdkPixbuf* _tmp27_ = NULL;
		GdkPixbuf* _tmp28_ = NULL;
		GdkPixbuf* _tmp29_ = NULL;
		GdkPixbuf* _tmp30_ = NULL;
		gboolean _tmp31_ = FALSE;
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = large_screenshot;
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = gdk_pixbuf_get_width (_tmp1_);
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		pw = _tmp2_;
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = large_screenshot;
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = gdk_pixbuf_get_height (_tmp3_);
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		ph = _tmp4_;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = pw;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = ph;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = MIN (((gdouble) BOXES_MACHINE_SCREENSHOT_WIDTH) / _tmp5_, ((gdouble) BOXES_MACHINE_SCREENSHOT_HEIGHT) / _tmp6_);
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		s = _tmp7_;
#line 456 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp8_ = pw;
#line 456 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp9_ = s;
#line 456 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		w = (gint) (_tmp8_ * _tmp9_);
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp10_ = ph;
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp11_ = s;
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		h = (gint) (_tmp10_ * _tmp11_);
#line 459 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp12_ = large_screenshot;
#line 459 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp13_ = gdk_pixbuf_get_has_alpha (_tmp12_);
#line 459 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp14_ = _tmp13_;
#line 459 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp15_ = w;
#line 459 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp16_ = h;
#line 459 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp17_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, _tmp14_, 8, _tmp15_, _tmp16_);
#line 459 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		small_screenshot = _tmp17_;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp18_ = large_screenshot;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp19_ = small_screenshot;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp20_ = w;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp21_ = h;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp22_ = s;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp23_ = s;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		gdk_pixbuf_scale (_tmp18_, _tmp19_, 0, 0, _tmp20_, _tmp21_, (gdouble) 0, (gdouble) 0, _tmp22_, _tmp23_, GDK_INTERP_HYPER);
#line 470 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp24_ = small_screenshot;
#line 470 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp25_ = boxes_machine_pixbuf_energy (self, _tmp24_);
#line 470 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp25_ < 50) {
#line 471 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (small_screenshot);
#line 471 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			return;
#line 2755 "machine.c"
		}
#line 473 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp26_ = small_screenshot;
#line 473 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp27_ = _g_object_ref0 (_tmp26_);
#line 473 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (self->priv->orig_pixbuf);
#line 473 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->orig_pixbuf = _tmp27_;
#line 474 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp28_ = small_screenshot;
#line 474 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp29_ = boxes_machine_draw_vm (self, _tmp28_, BOXES_MACHINE_SCREENSHOT_WIDTH, BOXES_MACHINE_SCREENSHOT_HEIGHT);
#line 474 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp30_ = _tmp29_;
#line 474 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_pixbuf (self, _tmp30_);
#line 474 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_tmp30_);
#line 475 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp31_ = save;
#line 475 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp31_) {
#line 2779 "machine.c"
			GdkPixbuf* _tmp32_ = NULL;
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp32_ = small_screenshot;
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_machine_save_pixbuf_as_screenshot (self, _tmp32_);
#line 2785 "machine.c"
		}
#line 452 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (small_screenshot);
#line 2789 "machine.c"
	} else {
		GdkPixbuf* _tmp33_ = NULL;
		GdkPixbuf* _tmp34_ = NULL;
#line 479 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (self->priv->orig_pixbuf);
#line 479 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->orig_pixbuf = NULL;
#line 480 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp33_ = boxes_machine_draw_stopped_vm (BOXES_MACHINE_SCREENSHOT_WIDTH, BOXES_MACHINE_SCREENSHOT_HEIGHT);
#line 480 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp34_ = _tmp33_;
#line 480 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_pixbuf (self, _tmp34_);
#line 480 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_tmp34_);
#line 2805 "machine.c"
	}
}


static void boxes_machine_update_screenshot_data_free (gpointer _data) {
	BoxesMachineUpdateScreenshotData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_slice_free (BoxesMachineUpdateScreenshotData, _data_);
#line 2817 "machine.c"
}


static void boxes_machine_update_screenshot (BoxesMachine* self, gboolean force_save, gboolean first_check, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesMachineUpdateScreenshotData* _data_;
	BoxesMachine* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_slice_new0 (BoxesMachineUpdateScreenshotData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_machine_update_screenshot);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_machine_update_screenshot_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = force_save;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->force_save = _tmp1_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = first_check;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->first_check = _tmp2_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_update_screenshot_co (_data_);
#line 2846 "machine.c"
}


static void boxes_machine_update_screenshot_finish (BoxesMachine* self, GAsyncResult* _res_) {
	BoxesMachineUpdateScreenshotData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2854 "machine.c"
}


static void boxes_machine_update_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesMachineUpdateScreenshotData* _data_;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = _user_data_;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_source_object_ = source_object;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_res_ = _res_;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_update_screenshot_co (_data_);
#line 2868 "machine.c"
}


static gboolean boxes_machine_update_screenshot_co (BoxesMachineUpdateScreenshotData* _data_) {
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_data_->_state_) {
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 0:
#line 2877 "machine.c"
		goto _state_0;
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 1:
#line 2881 "machine.c"
		goto _state_1;
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 2:
#line 2885 "machine.c"
		goto _state_2;
		default:
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_assert_not_reached ();
#line 2890 "machine.c"
	}
	_state_0:
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = FALSE;
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = _data_->self->priv->updating_screenshot;
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_tmp0_) {
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_data_->_state_ == 0) {
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2903 "machine.c"
		} else {
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2907 "machine.c"
		}
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_object_unref (_data_->_async_result);
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 2913 "machine.c"
	}
#line 489 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self->priv->updating_screenshot = TRUE;
#line 491 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->large_screenshot = NULL;
#line 2919 "machine.c"
	{
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_state_ = 1;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_take_screenshot (_data_->self, boxes_machine_update_screenshot_ready, _data_);
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 2927 "machine.c"
		_state_1:
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = NULL;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = boxes_machine_take_screenshot_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp1_ = _data_->_tmp2_;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 2937 "machine.c"
			goto __catch55_g_error;
		}
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = NULL;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = _data_->_tmp1_;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp1_ = NULL;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_data_->large_screenshot);
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->large_screenshot = _data_->_tmp3_;
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp4_ = FALSE;
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp4_ = _data_->first_check;
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_data_->_tmp4_) {
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_state_ = 2;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_machine_take_screenshot (_data_->self, boxes_machine_update_screenshot_ready, _data_);
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			return FALSE;
#line 2962 "machine.c"
			_state_2:
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp6_ = NULL;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp6_ = boxes_machine_take_screenshot_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp5_ = _data_->_tmp6_;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_g_object_unref0 (_data_->_tmp1_);
#line 2974 "machine.c"
				goto __catch55_g_error;
			}
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp7_ = NULL;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp7_ = _data_->_tmp5_;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp5_ = NULL;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (_data_->large_screenshot);
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->large_screenshot = _data_->_tmp7_;
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (_data_->_tmp5_);
#line 2989 "machine.c"
		}
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_data_->_tmp1_);
#line 2993 "machine.c"
	}
	goto __finally55;
	__catch55_g_error:
	{
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_inner_error_ = NULL;
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (_data_->_error_);
#line 3004 "machine.c"
	}
	__finally55:
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_data_->large_screenshot);
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 492 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 3017 "machine.c"
	}
#line 502 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp8_ = NULL;
#line 502 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp8_ = _data_->large_screenshot;
#line 502 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_tmp8_ != NULL) {
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp10_ = FALSE;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp10_ = _data_->force_save;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_data_->_tmp10_) {
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp9_ = TRUE;
#line 3033 "machine.c"
		} else {
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp11_ = 0;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp11_ = _data_->self->priv->screenshot_counter;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->self->priv->screenshot_counter = _data_->_tmp11_ + 1;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_data_->_tmp9_ = (_data_->_tmp11_ % 12) == 0;
#line 3043 "machine.c"
		}
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp12_ = NULL;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp12_ = _data_->large_screenshot;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_screenshot (_data_->self, _data_->_tmp12_, _data_->_tmp9_);
#line 3051 "machine.c"
	}
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self->priv->updating_screenshot = FALSE;
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->large_screenshot);
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_state_ == 0) {
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3061 "machine.c"
	} else {
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3065 "machine.c"
	}
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_unref (_data_->_async_result);
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return FALSE;
#line 3071 "machine.c"
}


static GdkPixbuf* boxes_machine_draw_vm (BoxesMachine* self, GdkPixbuf* pixbuf, gint width, gint height) {
	GdkPixbuf* result = NULL;
	cairo_surface_t* surface = NULL;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	cairo_surface_t* _tmp2_ = NULL;
	cairo_t* context = NULL;
	cairo_surface_t* _tmp3_ = NULL;
	cairo_t* _tmp4_ = NULL;
	gint pw = 0;
	GdkPixbuf* _tmp5_ = NULL;
	gint _tmp6_ = 0;
	gint ph = 0;
	GdkPixbuf* _tmp7_ = NULL;
	gint _tmp8_ = 0;
	gint x = 0;
	gint _tmp9_ = 0;
	gint _tmp10_ = 0;
	gint y = 0;
	gint _tmp11_ = 0;
	gint _tmp12_ = 0;
	cairo_t* _tmp13_ = NULL;
	gint _tmp14_ = 0;
	gint _tmp15_ = 0;
	gint _tmp16_ = 0;
	gint _tmp17_ = 0;
	cairo_t* _tmp18_ = NULL;
	cairo_t* _tmp19_ = NULL;
	GdkPixbuf* _tmp20_ = NULL;
	gint _tmp21_ = 0;
	gint _tmp22_ = 0;
	cairo_t* _tmp23_ = NULL;
	cairo_t* _tmp24_ = NULL;
	gboolean _tmp25_ = FALSE;
	gboolean _tmp26_ = FALSE;
	cairo_surface_t* _tmp38_ = NULL;
	gint _tmp39_ = 0;
	gint _tmp40_ = 0;
	GdkPixbuf* _tmp41_ = NULL;
#line 508 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 508 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (pixbuf != NULL, NULL);
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = width;
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = height;
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp0_, _tmp1_);
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	surface = _tmp2_;
#line 510 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = surface;
#line 510 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = cairo_create (_tmp3_);
#line 510 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	context = _tmp4_;
#line 512 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = pixbuf;
#line 512 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp6_ = gdk_pixbuf_get_width (_tmp5_);
#line 512 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	pw = _tmp6_;
#line 513 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp7_ = pixbuf;
#line 513 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = gdk_pixbuf_get_height (_tmp7_);
#line 513 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	ph = _tmp8_;
#line 514 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = width;
#line 514 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp10_ = pw;
#line 514 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	x = (_tmp9_ - _tmp10_) / 2;
#line 515 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp11_ = height;
#line 515 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp12_ = ph;
#line 515 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	y = (_tmp11_ - _tmp12_) / 2;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp13_ = context;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp14_ = x;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp15_ = y;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp16_ = pw;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp17_ = ph;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_rectangle (_tmp13_, (gdouble) _tmp14_, (gdouble) _tmp15_, (gdouble) _tmp16_, (gdouble) _tmp17_);
#line 518 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp18_ = context;
#line 518 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_clip (_tmp18_);
#line 520 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp19_ = context;
#line 520 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp20_ = pixbuf;
#line 520 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp21_ = x;
#line 520 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp22_ = y;
#line 520 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	gdk_cairo_set_source_pixbuf (_tmp19_, _tmp20_, (gdouble) _tmp21_, (gdouble) _tmp22_);
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp23_ = context;
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_set_operator (_tmp23_, CAIRO_OPERATOR_SOURCE);
#line 522 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp24_ = context;
#line 522 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_paint (_tmp24_);
#line 524 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp25_ = boxes_machine_get_is_running (self);
#line 524 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp26_ = _tmp25_;
#line 524 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (!_tmp26_) {
#line 3196 "machine.c"
		cairo_t* _tmp27_ = NULL;
		cairo_t* _tmp28_ = NULL;
		cairo_t* _tmp29_ = NULL;
		cairo_t* _tmp30_ = NULL;
		cairo_pattern_t* grid = NULL;
		cairo_surface_t* _tmp31_ = NULL;
		cairo_pattern_t* _tmp32_ = NULL;
		cairo_pattern_t* _tmp33_ = NULL;
		cairo_t* _tmp34_ = NULL;
		cairo_t* _tmp35_ = NULL;
		cairo_t* _tmp36_ = NULL;
		cairo_pattern_t* _tmp37_ = NULL;
#line 525 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp27_ = context;
#line 525 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_set_source_rgba (_tmp27_, (gdouble) 1, (gdouble) 1, (gdouble) 1, (gdouble) 1);
#line 526 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp28_ = context;
#line 526 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_set_operator (_tmp28_, CAIRO_OPERATOR_HSL_SATURATION);
#line 527 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp29_ = context;
#line 527 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_paint (_tmp29_);
#line 529 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp30_ = context;
#line 529 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_scale (_tmp30_, 2.0, 2.0);
#line 530 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp31_ = boxes_machine_grid_surface;
#line 530 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp32_ = cairo_pattern_create_for_surface (_tmp31_);
#line 530 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		grid = _tmp32_;
#line 531 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp33_ = grid;
#line 531 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_pattern_set_extend (_tmp33_, CAIRO_EXTEND_REPEAT);
#line 532 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp34_ = context;
#line 532 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_set_source_rgba (_tmp34_, 0.2, 0.2, 0.2, (gdouble) 1);
#line 533 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp35_ = context;
#line 533 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_set_operator (_tmp35_, CAIRO_OPERATOR_ADD);
#line 534 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp36_ = context;
#line 534 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp37_ = grid;
#line 534 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		cairo_mask (_tmp36_, _tmp37_);
#line 524 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_cairo_pattern_destroy0 (grid);
#line 3251 "machine.c"
	}
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp38_ = surface;
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp39_ = width;
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp40_ = height;
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp41_ = gdk_pixbuf_get_from_surface (_tmp38_, 0, 0, _tmp39_, _tmp40_);
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp41_;
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_cairo_destroy0 (context);
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_cairo_surface_destroy0 (surface);
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 3269 "machine.c"
}


static GdkPixbuf* boxes_machine_draw_stopped_vm (gint width, gint height) {
	GdkPixbuf* result = NULL;
	cairo_surface_t* surface = NULL;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	cairo_surface_t* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	gint _tmp4_ = 0;
	GdkPixbuf* _tmp5_ = NULL;
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = width;
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = height;
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, _tmp0_, _tmp1_);
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	surface = _tmp2_;
#line 543 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = width;
#line 543 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = height;
#line 543 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = gdk_pixbuf_get_from_surface (surface, 0, 0, _tmp3_, _tmp4_);
#line 543 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp5_;
#line 543 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_cairo_surface_destroy0 (surface);
#line 543 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 3302 "machine.c"
}


static void boxes_machine_real_delete (BoxesMachine* self, gboolean by_user) {
	gulong _tmp0_ = 0UL;
	BoxesBoxConfig* _tmp5_ = NULL;
	GError * _inner_error_ = NULL;
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_set_deleted (self, TRUE);
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_set_screenshot_enable (self, FALSE);
#line 550 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->ui_state_id;
#line 550 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_ != ((gulong) 0)) {
#line 3318 "machine.c"
		BoxesApp* _tmp1_ = NULL;
		BoxesAppWindow* _tmp2_ = NULL;
		BoxesAppWindow* _tmp3_ = NULL;
		gulong _tmp4_ = 0UL;
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = boxes_app_app;
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = boxes_app_get_main_window (_tmp1_);
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = _tmp2_;
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = self->priv->ui_state_id;
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_handler_disconnect ((GObject*) _tmp3_, _tmp4_);
#line 552 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->ui_state_id = (gulong) 0;
#line 3335 "machine.c"
	}
#line 555 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = self->config;
#line 555 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_box_config_delete (_tmp5_);
#line 3341 "machine.c"
	{
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = boxes_machine_get_screenshot_filename (self, &_inner_error_);
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = _tmp7_;
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (_inner_error_->domain == BOXES_ERROR) {
#line 3353 "machine.c"
				goto __catch56_boxes_error;
			}
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			g_clear_error (&_inner_error_);
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			return;
#line 3362 "machine.c"
		}
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_unlink (_tmp6_);
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_tmp6_);
#line 3368 "machine.c"
	}
	goto __finally56;
	__catch56_boxes_error:
	{
		GError* e = NULL;
		GError* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		e = _inner_error_;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_inner_error_ = NULL;
#line 559 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp8_ = e;
#line 559 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp9_ = _tmp8_->message;
#line 559 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_debug ("machine.vala:559: Could not delete screenshot: %s", _tmp9_);
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (e);
#line 3388 "machine.c"
	}
	__finally56:
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_clear_error (&_inner_error_);
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 3399 "machine.c"
	}
}


void boxes_machine_delete (BoxesMachine* self, gboolean by_user) {
#line 546 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 546 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_GET_CLASS (self)->delete (self, by_user);
#line 3409 "machine.c"
}


static void boxes_machine_ui_state_changed (BoxesMachine* self) {
	GBinding* _tmp0_ = NULL;
	BoxesUIState _tmp8_ = 0;
	BoxesUIState _tmp9_ = 0;
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 566 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->name_status_bind;
#line 566 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_ != NULL) {
#line 3423 "machine.c"
		BoxesTopbar* topbar = NULL;
		GBinding* _tmp1_ = NULL;
		GObject* _tmp2_ = NULL;
		GObject* _tmp3_ = NULL;
		BoxesTopbar* _tmp4_ = NULL;
		BoxesTopbar* _tmp5_ = NULL;
		GBinding* _tmp6_ = NULL;
		GBinding* _tmp7_ = NULL;
#line 567 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = self->priv->name_status_bind;
#line 567 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = g_binding_get_target (_tmp1_);
#line 567 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = _tmp2_;
#line 567 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, BOXES_TYPE_TOPBAR) ? ((BoxesTopbar*) _tmp3_) : NULL);
#line 567 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		topbar = _tmp4_;
#line 568 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = topbar;
#line 568 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_topbar_set_status (_tmp5_, NULL);
#line 569 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = self->priv->name_status_bind;
#line 569 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = _g_object_ref0 (_tmp6_);
#line 569 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_binding_unbind (_tmp7_);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (self->priv->name_status_bind);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->name_status_bind = NULL;
#line 566 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (topbar);
#line 3458 "machine.c"
	}
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = _tmp8_;
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_tmp9_) {
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_UI_STATE_CREDS:
#line 3468 "machine.c"
		{
			BoxesAppWindow* _tmp10_ = NULL;
			BoxesAppWindow* _tmp11_ = NULL;
			GtkStack* _tmp12_ = NULL;
#line 575 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp10_ = boxes_machine_get_window (self);
#line 575 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp11_ = _tmp10_;
#line 575 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp12_ = _tmp11_->below_bin;
#line 575 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			gtk_stack_set_visible_child_name (_tmp12_, "connecting-page");
#line 576 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_machine_try_connect_display (self, BOXES_MACHINE_CONNECT_FLAGS_NONE, NULL, NULL);
#line 578 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			break;
#line 3485 "machine.c"
		}
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_UI_STATE_DISPLAY:
#line 3489 "machine.c"
		{
			BoxesUIState _tmp13_ = 0;
			BoxesUIState _tmp14_ = 0;
			BoxesAppWindow* _tmp18_ = NULL;
			BoxesAppWindow* _tmp19_ = NULL;
			BoxesCollectionItem* _tmp20_ = NULL;
			BoxesCollectionItem* _tmp21_ = NULL;
#line 580 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp13_ = boxes_ui_get_previous_ui_state ((BoxesUI*) self);
#line 580 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp14_ = _tmp13_;
#line 580 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (_tmp14_ == BOXES_UI_STATE_PROPERTIES) {
#line 3503 "machine.c"
				BoxesAppWindow* _tmp15_ = NULL;
				BoxesAppWindow* _tmp16_ = NULL;
				GtkStack* _tmp17_ = NULL;
#line 581 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp15_ = boxes_machine_get_window (self);
#line 581 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp16_ = _tmp15_;
#line 581 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp17_ = _tmp16_->below_bin;
#line 581 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				gtk_stack_set_visible_child_name (_tmp17_, "display-page");
#line 3515 "machine.c"
			}
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp18_ = boxes_machine_get_window (self);
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp19_ = _tmp18_;
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp20_ = boxes_app_window_get_current_item (_tmp19_);
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp21_ = _tmp20_;
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (_tmp21_ == G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem)) {
#line 3527 "machine.c"
				BoxesAppWindow* _tmp22_ = NULL;
				BoxesAppWindow* _tmp23_ = NULL;
				BoxesTopbar* _tmp24_ = NULL;
				GBinding* _tmp25_ = NULL;
				GBinding* _tmp26_ = NULL;
#line 583 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp22_ = boxes_machine_get_window (self);
#line 583 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp23_ = _tmp22_;
#line 583 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp24_ = _tmp23_->topbar;
#line 583 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp25_ = g_object_bind_property_with_closures ((GObject*) self, "name", (GObject*) _tmp24_, "status", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 583 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp26_ = _g_object_ref0 (_tmp25_);
#line 583 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_g_object_unref0 (self->priv->name_status_bind);
#line 583 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				self->priv->name_status_bind = _tmp26_;
#line 3547 "machine.c"
			}
#line 585 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			break;
#line 3551 "machine.c"
		}
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_UI_STATE_COLLECTION:
#line 3555 "machine.c"
		{
			GdNotification* _tmp27_ = NULL;
#line 588 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp27_ = self->priv->auth_notification;
#line 588 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (_tmp27_ != NULL) {
#line 3562 "machine.c"
				GdNotification* _tmp28_ = NULL;
#line 589 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				_tmp28_ = self->priv->auth_notification;
#line 589 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
				gd_notification_dismiss (_tmp28_);
#line 3568 "machine.c"
			}
#line 590 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_machine_disconnect_display (self);
#line 592 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			break;
#line 3574 "machine.c"
		}
		default:
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 3579 "machine.c"
	}
}


static void boxes_machine_try_connect_display_data_free (gpointer _data) {
	BoxesMachineTryConnectDisplayData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_slice_free (BoxesMachineTryConnectDisplayData, _data_);
#line 3591 "machine.c"
}


static void boxes_machine_try_connect_display (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesMachineTryConnectDisplayData* _data_;
	BoxesMachine* _tmp0_ = NULL;
	BoxesMachineConnectFlags _tmp1_ = 0;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_slice_new0 (BoxesMachineTryConnectDisplayData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_machine_try_connect_display);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_machine_try_connect_display_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = flags;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->flags = _tmp1_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_try_connect_display_co (_data_);
#line 3615 "machine.c"
}


static void boxes_machine_try_connect_display_finish (BoxesMachine* self, GAsyncResult* _res_) {
	BoxesMachineTryConnectDisplayData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 3623 "machine.c"
}


static Block64Data* block64_data_ref (Block64Data* _data64_) {
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_atomic_int_inc (&_data64_->_ref_count_);
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return _data64_;
#line 3632 "machine.c"
}


static void block64_data_unref (void * _userdata_) {
	Block64Data* _data64_;
	_data64_ = (Block64Data*) _userdata_;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (g_atomic_int_dec_and_test (&_data64_->_ref_count_)) {
#line 3641 "machine.c"
		BoxesMachine* self;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self = _data64_->self;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (self);
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_slice_free (Block64Data, _data64_);
#line 3649 "machine.c"
	}
}


static void boxes_machine_try_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesMachineTryConnectDisplayData* _data_;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = _user_data_;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_source_object_ = source_object;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_res_ = _res_;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_try_connect_display_co (_data_);
#line 3664 "machine.c"
}


static void ___lambda222_ (Block64Data* _data64_) {
	BoxesMachine* self;
	BoxesMachineConnectFlags _tmp0_ = 0;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = _data64_->self;
#line 602 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _data64_->flags;
#line 602 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_try_connect_display (self, _tmp0_ | BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE, NULL, NULL);
#line 3677 "machine.c"
}


static void ____lambda222__boxes_notification_ok_func (gpointer self) {
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	___lambda222_ (self);
#line 3684 "machine.c"
}


static void ___lambda223_ (BoxesMachine* self) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
#line 605 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_window (self);
#line 605 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 605 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp1_, BOXES_UI_STATE_COLLECTION);
#line 3697 "machine.c"
}


static void ____lambda223__gd_notification_dismissed (GdNotification* _sender, gpointer self) {
#line 604 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	___lambda223_ ((BoxesMachine*) self);
#line 3704 "machine.c"
}


static gboolean boxes_machine_try_connect_display_co (BoxesMachineTryConnectDisplayData* _data_) {
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_data_->_state_) {
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 0:
#line 3713 "machine.c"
		goto _state_0;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 1:
#line 3717 "machine.c"
		goto _state_1;
		default:
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_assert_not_reached ();
#line 3722 "machine.c"
	}
	_state_0:
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_data64_ = g_slice_new0 (Block64Data);
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_data64_->_ref_count_ = 1;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_data64_->self = g_object_ref (_data_->self);
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = 0;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_tmp0_ = _data_->flags;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_data64_->flags = _data_->_tmp0_;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_data64_->_async_data_ = _data_;
#line 3739 "machine.c"
	{
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp1_ = 0;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp1_ = _data_->_data64_->flags;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_state_ = 1;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_connect_display (_data_->self, _data_->_tmp1_, boxes_machine_try_connect_display_ready, _data_);
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 3751 "machine.c"
		_state_1:
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_connect_display_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (g_error_matches (_data_->_inner_error_, BOXES_ERROR, BOXES_ERROR_RESTORE_FAILED)) {
#line 3759 "machine.c"
				goto __catch57_boxes_error_restore_failed;
			}
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			if (g_error_matches (_data_->_inner_error_, BOXES_ERROR, BOXES_ERROR_START_FAILED)) {
#line 3764 "machine.c"
				goto __catch57_boxes_error_start_failed;
			}
			goto __catch57_g_error;
		}
	}
	goto __finally57;
	__catch57_boxes_error_restore_failed:
	{
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->e = _data_->_inner_error_;
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_inner_error_ = NULL;
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = NULL;
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = _ ("'%s' could not be restored from disk\nTry without saved state?");
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = NULL;
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp4_ = NULL;
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp4_ = _data_->_tmp3_;
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp5_ = NULL;
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp5_ = g_strdup_printf (_data_->_tmp2_, _data_->_tmp4_);
#line 600 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->message = _data_->_tmp5_;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp6_ = NULL;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp6_ = boxes_machine_get_window (_data_->self);
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp7_ = NULL;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp7_ = _data_->_tmp6_;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp8_ = NULL;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp8_ = boxes_app_window_get_notificationbar (_data_->_tmp7_);
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp9_ = NULL;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp10_ = NULL;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp10_ = _data_->message;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp11_ = NULL;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp11_ = _ ("Restart");
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp12_ = NULL;
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp12_ = boxes_notificationbar_display_for_action (_data_->_tmp9_, _data_->_tmp10_, _data_->_tmp11_, ____lambda222__boxes_notification_ok_func, block64_data_ref (_data_->_data64_), block64_data_unref, NULL, NULL, NULL, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 601 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->notification = _data_->_tmp12_;
#line 604 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp13_ = NULL;
#line 604 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp13_ = _data_->notification;
#line 604 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_connect_object (_data_->_tmp13_, "dismissed", (GCallback) ____lambda223__gd_notification_dismissed, _data_->self, 0);
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_data_->notification);
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_data_->message);
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (_data_->e);
#line 3837 "machine.c"
	}
	goto __finally57;
	__catch57_boxes_error_start_failed:
	{
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_vala1_e = _data_->_inner_error_;
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_inner_error_ = NULL;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp14_ = NULL;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp14_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp15_ = NULL;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp15_ = _data_->_tmp14_;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp16_ = NULL;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp16_ = _data_->_vala1_e;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp17_ = NULL;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp17_ = _data_->_tmp16_->message;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_warning ("machine.vala:608: Failed to start %s: %s", _data_->_tmp15_, _data_->_tmp17_);
#line 609 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp18_ = NULL;
#line 609 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp18_ = boxes_machine_get_window (_data_->self);
#line 609 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp19_ = NULL;
#line 609 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp19_ = _data_->_tmp18_;
#line 609 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_ui_set_state ((BoxesUI*) _data_->_tmp19_, BOXES_UI_STATE_COLLECTION);
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp20_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp20_ = boxes_machine_get_window (_data_->self);
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp21_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp21_ = _data_->_tmp20_;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp22_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp22_ = boxes_app_window_get_notificationbar (_data_->_tmp21_);
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp23_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp23_ = _data_->_tmp22_;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp24_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp24_ = _ ("Failed to start '%s'");
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp25_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp25_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp26_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp26_ = _data_->_tmp25_;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp27_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp27_ = g_strdup_printf (_data_->_tmp24_, _data_->_tmp26_);
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp28_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp29_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp29_ = boxes_notificationbar_display_error (_data_->_tmp23_, _data_->_tmp28_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp30_ = NULL;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp30_ = _data_->_tmp29_;
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_data_->_tmp30_);
#line 610 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_data_->_tmp28_);
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (_data_->_vala1_e);
#line 3924 "machine.c"
	}
	goto __finally57;
	__catch57_g_error:
	{
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_vala2_e = _data_->_inner_error_;
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_inner_error_ = NULL;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp31_ = NULL;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp31_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp32_ = NULL;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp32_ = _data_->_tmp31_;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp33_ = NULL;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp33_ = _data_->_vala2_e;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp34_ = NULL;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp34_ = _data_->_tmp33_->message;
#line 612 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_warning ("machine.vala:612: Failed to connect to %s: %s", _data_->_tmp32_, _data_->_tmp34_);
#line 613 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp35_ = NULL;
#line 613 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp35_ = boxes_machine_get_window (_data_->self);
#line 613 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp36_ = NULL;
#line 613 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp36_ = _data_->_tmp35_;
#line 613 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_ui_set_state ((BoxesUI*) _data_->_tmp36_, BOXES_UI_STATE_COLLECTION);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp37_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp37_ = boxes_machine_get_window (_data_->self);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp38_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp38_ = _data_->_tmp37_;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp39_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp39_ = boxes_app_window_get_notificationbar (_data_->_tmp38_);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp40_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp40_ = _data_->_tmp39_;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp41_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp41_ = _ ("Connection to '%s' failed");
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp42_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp42_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp43_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp43_ = _data_->_tmp42_;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp44_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp44_ = g_strdup_printf (_data_->_tmp41_, _data_->_tmp43_);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp45_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp45_ = _data_->_tmp44_;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp46_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp46_ = boxes_notificationbar_display_error (_data_->_tmp40_, _data_->_tmp45_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp47_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp47_ = _data_->_tmp46_;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_data_->_tmp47_);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (_data_->_tmp45_);
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (_data_->_vala2_e);
#line 4011 "machine.c"
	}
	__finally57:
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		block64_data_unref (_data_->_data64_);
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_data64_ = NULL;
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 597 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 4026 "machine.c"
	}
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	block64_data_unref (_data_->_data64_);
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_data64_ = NULL;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_state_ == 0) {
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4036 "machine.c"
	} else {
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4040 "machine.c"
	}
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_unref (_data_->_async_result);
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return FALSE;
#line 4046 "machine.c"
}


static void __lambda221_ (BoxesMachine* self, const gchar* username, const gchar* password) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 628 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (username != NULL);
#line 628 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (password != NULL);
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = username;
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (g_strcmp0 (_tmp0_, "") != 0) {
#line 4061 "machine.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 630 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = username;
#line 630 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 630 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (self->priv->username);
#line 630 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->username = _tmp2_;
#line 4072 "machine.c"
	}
#line 631 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = password;
#line 631 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (g_strcmp0 (_tmp3_, "") != 0) {
#line 4078 "machine.c"
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
#line 632 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = password;
#line 632 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = g_strdup (_tmp4_);
#line 632 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_free0 (self->priv->password);
#line 632 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->password = _tmp5_;
#line 4089 "machine.c"
	}
#line 634 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->auth_notification);
#line 634 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->auth_notification = NULL;
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_try_connect_display (self, BOXES_MACHINE_CONNECT_FLAGS_NONE, NULL, NULL);
#line 4097 "machine.c"
}


static void ___lambda221__boxes_auth_notification_auth_func (const gchar* username, const gchar* password, gpointer self) {
#line 628 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	__lambda221_ ((BoxesMachine*) self, username, password);
#line 4104 "machine.c"
}


static void __lambda224_ (BoxesMachine* self) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
#line 638 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->auth_notification);
#line 638 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->auth_notification = NULL;
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_window (self);
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp1_, BOXES_UI_STATE_COLLECTION);
#line 4121 "machine.c"
}


static void ___lambda224__boxes_notification_dismiss_func (gpointer self) {
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	__lambda224_ ((BoxesMachine*) self);
#line 4128 "machine.c"
}


static void boxes_machine_handle_auth (BoxesMachine* self) {
	GdNotification* _tmp0_ = NULL;
	gboolean need_username = FALSE;
	BoxesDisplay* _tmp1_ = NULL;
	BoxesDisplay* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	BoxesDisplay* _tmp6_ = NULL;
	BoxesDisplay* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
	gboolean _tmp9_ = FALSE;
	BoxesAuthNotificationAuthFunc auth_func = NULL;
	void* auth_func_target = NULL;
	GDestroyNotify auth_func_target_destroy_notify = NULL;
	BoxesNotificationDismissFunc dismiss_func = NULL;
	void* dismiss_func_target = NULL;
	GDestroyNotify dismiss_func_target_destroy_notify = NULL;
	gchar* auth_string = NULL;
	const gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	gchar* _tmp17_ = NULL;
	BoxesAppWindow* _tmp18_ = NULL;
	BoxesAppWindow* _tmp19_ = NULL;
	BoxesNotificationbar* _tmp20_ = NULL;
	BoxesNotificationbar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	BoxesAuthNotificationAuthFunc _tmp23_ = NULL;
	void* _tmp23__target = NULL;
	GDestroyNotify _tmp23__target_destroy_notify = NULL;
	BoxesNotificationDismissFunc _tmp24_ = NULL;
	void* _tmp24__target = NULL;
	GDestroyNotify _tmp24__target_destroy_notify = NULL;
	gboolean _tmp25_ = FALSE;
	GdNotification* _tmp26_ = NULL;
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 621 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->auth_notification;
#line 621 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_ != NULL) {
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 4176 "machine.c"
	}
#line 623 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_machine_get_display (self);
#line 623 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _tmp1_;
#line 623 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = boxes_display_get_need_username (_tmp2_);
#line 623 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_;
#line 623 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	need_username = _tmp4_;
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp6_ = boxes_machine_get_display (self);
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp7_ = _tmp6_;
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = boxes_display_get_need_username (_tmp7_);
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = _tmp8_;
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (!_tmp9_) {
#line 4198 "machine.c"
		BoxesDisplay* _tmp10_ = NULL;
		BoxesDisplay* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		gboolean _tmp13_ = FALSE;
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp10_ = boxes_machine_get_display (self);
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp11_ = _tmp10_;
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp12_ = boxes_display_get_need_password (_tmp11_);
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp13_ = _tmp12_;
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = !_tmp13_;
#line 4213 "machine.c"
	} else {
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = FALSE;
#line 4217 "machine.c"
	}
#line 624 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp5_) {
#line 625 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 4223 "machine.c"
	}
#line 626 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_set_display (self, NULL);
#line 628 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_func = ___lambda221__boxes_auth_notification_auth_func;
#line 628 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_func_target = g_object_ref (self);
#line 628 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_func_target_destroy_notify = g_object_unref;
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	dismiss_func = ___lambda224__boxes_notification_dismiss_func;
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	dismiss_func_target = g_object_ref (self);
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	dismiss_func_target_destroy_notify = g_object_unref;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp14_ = _ ("'%s' requires authentication");
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp15_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp16_ = _tmp15_;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp17_ = g_strdup_printf (_tmp14_, _tmp16_);
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_string = _tmp17_;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp18_ = boxes_machine_get_window (self);
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp19_ = _tmp18_;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp20_ = boxes_app_window_get_notificationbar (_tmp19_);
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp21_ = _tmp20_;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp22_ = auth_string;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp23_ = auth_func;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp23__target = auth_func_target;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp23__target_destroy_notify = auth_func_target_destroy_notify;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_func_target_destroy_notify = NULL;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp24_ = dismiss_func;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp24__target = dismiss_func_target;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp24__target_destroy_notify = dismiss_func_target_destroy_notify;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	dismiss_func_target_destroy_notify = NULL;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp25_ = need_username;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp26_ = boxes_notificationbar_display_for_auth (_tmp21_, _tmp22_, _tmp23_, _tmp23__target, _tmp23__target_destroy_notify, _tmp24_, _tmp24__target, _tmp24__target_destroy_notify, _tmp25_);
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->auth_notification);
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->auth_notification = _tmp26_;
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (auth_string);
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	(dismiss_func_target_destroy_notify == NULL) ? NULL : (dismiss_func_target_destroy_notify (dismiss_func_target), NULL);
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	dismiss_func = NULL;
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	dismiss_func_target = NULL;
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	dismiss_func_target_destroy_notify = NULL;
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	(auth_func_target_destroy_notify == NULL) ? NULL : (auth_func_target_destroy_notify (auth_func_target), NULL);
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_func = NULL;
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_func_target = NULL;
#line 620 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	auth_func_target_destroy_notify = NULL;
#line 4301 "machine.c"
}


static gint boxes_machine_real_compare (BoxesCollectionItem* base, BoxesCollectionItem* other) {
	BoxesMachine * self;
	gint result = 0;
	BoxesCollectionItem* _tmp0_ = NULL;
#line 650 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = (BoxesMachine*) base;
#line 650 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 651 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = other;
#line 651 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, BOXES_TYPE_MACHINE)) {
#line 4317 "machine.c"
		BoxesBoxConfig* _tmp1_ = NULL;
		BoxesCollectionItem* _tmp2_ = NULL;
		BoxesBoxConfig* _tmp3_ = NULL;
		gint _tmp4_ = 0;
#line 652 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = self->config;
#line 652 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = other;
#line 652 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp2_) : NULL)->config;
#line 652 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = boxes_box_config_compare (_tmp1_, _tmp3_);
#line 652 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		result = _tmp4_;
#line 652 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return result;
#line 4334 "machine.c"
	} else {
#line 654 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		result = -1;
#line 654 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return result;
#line 4340 "machine.c"
	}
}


static void boxes_machine_try_save_data_free (gpointer _data) {
	BoxesMachineTrySaveData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_slice_free (BoxesMachineTrySaveData, _data_);
#line 4352 "machine.c"
}


static void boxes_machine_try_save (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesMachineTrySaveData* _data_;
	BoxesMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_slice_new0 (BoxesMachineTrySaveData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_machine_try_save);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_machine_try_save_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_try_save_co (_data_);
#line 4371 "machine.c"
}


static void boxes_machine_try_save_finish (BoxesMachine* self, GAsyncResult* _res_) {
	BoxesMachineTrySaveData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4379 "machine.c"
}


static void boxes_machine_try_save_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesMachineTrySaveData* _data_;
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_ = _user_data_;
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_source_object_ = source_object;
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_data_->_res_ = _res_;
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_try_save_co (_data_);
#line 4393 "machine.c"
}


static gboolean boxes_machine_try_save_co (BoxesMachineTrySaveData* _data_) {
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (_data_->_state_) {
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 0:
#line 4402 "machine.c"
		goto _state_0;
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case 1:
#line 4406 "machine.c"
		goto _state_1;
		default:
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_assert_not_reached ();
#line 4411 "machine.c"
	}
	_state_0:
	{
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_state_ = 1;
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_save (_data_->self, boxes_machine_try_save_ready, _data_);
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 4421 "machine.c"
		_state_1:
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_save_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 659 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 4427 "machine.c"
			goto __catch58_g_error;
		}
	}
	goto __finally58;
	__catch58_g_error:
	{
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_inner_error_ = NULL;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp0_ = NULL;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp1_ = NULL;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp1_ = _data_->_tmp0_;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = NULL;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp2_ = _data_->_error_;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = NULL;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_data_->_tmp3_ = _data_->_tmp2_->message;
#line 661 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_warning ("machine.vala:661: Failed to save '%s': %s", _data_->_tmp1_, _data_->_tmp3_);
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_error_free0 (_data_->_error_);
#line 4458 "machine.c"
	}
	__finally58:
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.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 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return FALSE;
#line 4469 "machine.c"
	}
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_data_->_state_ == 0) {
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4475 "machine.c"
	} else {
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4479 "machine.c"
	}
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_unref (_data_->_async_result);
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return FALSE;
#line 4485 "machine.c"
}


GdkPixbuf* boxes_machine_get_pixbuf (BoxesMachine* self) {
	GdkPixbuf* result;
	GdkPixbuf* _tmp0_ = NULL;
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_pixbuf;
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4500 "machine.c"
}


void boxes_machine_set_pixbuf (BoxesMachine* self, GdkPixbuf* value) {
	GdkPixbuf* _tmp0_ = NULL;
	GdkPixbuf* _tmp1_ = NULL;
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_pixbuf);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_pixbuf = _tmp1_;
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "pixbuf");
#line 4519 "machine.c"
}


BoxesMachineThumbnailer* boxes_machine_get_thumbnailer (BoxesMachine* self) {
	BoxesMachineThumbnailer* result;
	BoxesMachineThumbnailer* _tmp0_ = NULL;
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_thumbnailer;
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4534 "machine.c"
}


static void boxes_machine_set_thumbnailer (BoxesMachine* self, BoxesMachineThumbnailer* value) {
	BoxesMachineThumbnailer* _tmp0_ = NULL;
	BoxesMachineThumbnailer* _tmp1_ = NULL;
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_thumbnailer);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_thumbnailer = _tmp1_;
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "thumbnailer");
#line 4553 "machine.c"
}


const gchar* boxes_machine_get_info (BoxesMachine* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_info;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4568 "machine.c"
}


void boxes_machine_set_info (BoxesMachine* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (self->priv->_info);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_info = _tmp1_;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "info");
#line 4587 "machine.c"
}


const gchar* boxes_machine_get_status (BoxesMachine* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_status;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4602 "machine.c"
}


void boxes_machine_set_status (BoxesMachine* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (self->priv->_status);
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_status = _tmp1_;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "status");
#line 4621 "machine.c"
}


gboolean boxes_machine_get_suspend_at_exit (BoxesMachine* self) {
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return BOXES_MACHINE_GET_CLASS (self)->get_suspend_at_exit (self);
#line 4630 "machine.c"
}


static gboolean boxes_machine_real_get_suspend_at_exit (BoxesMachine* base) {
	gboolean result;
	BoxesMachine* self;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = base;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = FALSE;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4643 "machine.c"
}


gboolean boxes_machine_get_can_save (BoxesMachine* self) {
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return BOXES_MACHINE_GET_CLASS (self)->get_can_save (self);
#line 4652 "machine.c"
}


static gboolean boxes_machine_real_get_can_save (BoxesMachine* base) {
	gboolean result;
	BoxesMachine* self;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = base;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = FALSE;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4665 "machine.c"
}


gboolean boxes_machine_get_can_delete (BoxesMachine* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_can_delete;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4680 "machine.c"
}


void boxes_machine_set_can_delete (BoxesMachine* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_can_delete = _tmp0_;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "can-delete");
#line 4694 "machine.c"
}


gboolean boxes_machine_get_under_construction (BoxesMachine* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_under_construction;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4709 "machine.c"
}


void boxes_machine_set_under_construction (BoxesMachine* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_under_construction = _tmp0_;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "under-construction");
#line 4723 "machine.c"
}


gboolean boxes_machine_get_should_autosave (BoxesMachine* self) {
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return BOXES_MACHINE_GET_CLASS (self)->get_should_autosave (self);
#line 4732 "machine.c"
}


static gboolean boxes_machine_real_get_should_autosave (BoxesMachine* base) {
	gboolean result;
	BoxesMachine* self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = base;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = boxes_machine_get_can_save (self);
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = _tmp2_;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp3_) {
#line 4751 "machine.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = boxes_machine_get_is_running (self);
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = _tmp4_;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = _tmp5_;
#line 4760 "machine.c"
	} else {
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = FALSE;
#line 4764 "machine.c"
	}
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp1_) {
#line 4768 "machine.c"
		guint _tmp6_ = 0U;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = self->priv->autosave_timeout_id;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = _tmp6_ == ((guint) 0);
#line 4774 "machine.c"
	} else {
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = FALSE;
#line 4778 "machine.c"
	}
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4784 "machine.c"
}


gboolean boxes_machine_get_is_connected (BoxesMachine* self) {
	gboolean result;
	BoxesDisplay* _tmp0_ = NULL;
	BoxesDisplay* _tmp1_ = NULL;
	BoxesDisplay* _tmp2_ = NULL;
	BoxesDisplay* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_display (self);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp1_ == NULL) {
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		result = FALSE;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return result;
#line 4807 "machine.c"
	}
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = boxes_machine_get_display (self);
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = _tmp2_;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_->connected;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp4_;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4819 "machine.c"
}


gboolean boxes_machine_get_is_running (BoxesMachine* self) {
	gboolean result;
	BoxesMachineMachineState _tmp0_ = 0;
	BoxesMachineMachineState _tmp1_ = 0;
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_state (self);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4837 "machine.c"
}


gboolean boxes_machine_get_is_on (BoxesMachine* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	BoxesMachineMachineState _tmp2_ = 0;
	BoxesMachineMachineState _tmp3_ = 0;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = boxes_machine_get_state (self);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = _tmp2_;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp3_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = TRUE;
#line 4857 "machine.c"
	} else {
		BoxesMachineMachineState _tmp4_ = 0;
		BoxesMachineMachineState _tmp5_ = 0;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = boxes_machine_get_state (self);
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = _tmp4_;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = _tmp5_ == BOXES_MACHINE_MACHINE_STATE_PAUSED;
#line 4867 "machine.c"
	}
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp1_) {
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = TRUE;
#line 4873 "machine.c"
	} else {
		BoxesMachineMachineState _tmp6_ = 0;
		BoxesMachineMachineState _tmp7_ = 0;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = boxes_machine_get_state (self);
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = _tmp6_;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = _tmp7_ == BOXES_MACHINE_MACHINE_STATE_SLEEPING;
#line 4883 "machine.c"
	}
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4889 "machine.c"
}


gboolean boxes_machine_get_is_stopped (BoxesMachine* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	BoxesMachineMachineState _tmp1_ = 0;
	BoxesMachineMachineState _tmp2_ = 0;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_machine_get_state (self);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _tmp1_;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp2_ == BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED) {
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = TRUE;
#line 4908 "machine.c"
	} else {
		BoxesMachineMachineState _tmp3_ = 0;
		BoxesMachineMachineState _tmp4_ = 0;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = boxes_machine_get_state (self);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = _tmp3_;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = _tmp4_ == BOXES_MACHINE_MACHINE_STATE_STOPPED;
#line 4918 "machine.c"
	}
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4924 "machine.c"
}


gboolean boxes_machine_get_is_local (BoxesMachine* self) {
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return BOXES_MACHINE_GET_CLASS (self)->get_is_local (self);
#line 4933 "machine.c"
}


static inline GRegex* _thread_safe_regex_init (GRegex** re, const gchar * pattern, GRegexMatchFlags match_options) {
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (g_once_init_enter ((volatile gsize*) re)) {
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		GRegex* val = g_regex_new (pattern, match_options, 0, NULL);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_once_init_leave ((volatile gsize*) re, (gsize) val);
#line 4944 "machine.c"
	}
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return *re;
#line 4948 "machine.c"
}


static gboolean boxes_machine_real_get_is_local (BoxesMachine* base) {
	gboolean result;
	BoxesMachine* self;
	BoxesCollectionSource* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = base;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->source;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_collection_source_get_uri (_tmp0_);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _tmp1_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = _tmp2_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = g_regex_match (_thread_safe_regex_init (&_tmp_regex_0, ":\\/\\/(127\\.\\d+\\.\\d+\\.\\d+|localhost)", 0 | G_REGEX_CASELESS), _tmp3_, 0, NULL);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = _tmp4_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (_tmp3_);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp5_) {
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		result = TRUE;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return result;
#line 4983 "machine.c"
	}
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = FALSE;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 4989 "machine.c"
}


GCancellable* boxes_machine_get_connecting_cancellable (BoxesMachine* self) {
	GCancellable* result;
	GCancellable* _tmp0_ = NULL;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_connecting_cancellable;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 5004 "machine.c"
}


void boxes_machine_set_connecting_cancellable (BoxesMachine* self, GCancellable* value) {
	GCancellable* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_connecting_cancellable);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_connecting_cancellable = _tmp1_;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "connecting-cancellable");
#line 5023 "machine.c"
}


BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self) {
	BoxesMachineMachineState result;
	BoxesMachineMachineState _tmp0_ = 0;
#line 111 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 111 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_state;
#line 111 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 111 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 5038 "machine.c"
}


void boxes_machine_set_state (BoxesMachine* self, BoxesMachineMachineState value) {
	BoxesMachineMachineState _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	BoxesMachineMachineState _tmp3_ = 0;
	BoxesMachineMachineState _tmp4_ = 0;
	GEnumValue* _tmp5_;
	gboolean _tmp6_ = FALSE;
	BoxesMachineMachineState _tmp7_ = 0;
	gboolean _tmp13_ = FALSE;
	gboolean _tmp14_ = FALSE;
	gboolean _tmp15_ = FALSE;
	gboolean _tmp16_ = FALSE;
	gboolean _tmp17_ = FALSE;
	gboolean _tmp18_ = FALSE;
	BoxesDisplay* _tmp19_ = NULL;
	BoxesDisplay* _tmp20_ = NULL;
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_state = _tmp0_;
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = _tmp1_;
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = boxes_machine_get_state (self);
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_;
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = g_enum_get_value (g_type_class_ref (BOXES_MACHINE_TYPE_MACHINE_STATE), _tmp4_);
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_debug ("machine.vala:114: State of '%s' changed to %s", _tmp2_, (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp7_ = value;
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp7_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = TRUE;
#line 5083 "machine.c"
	} else {
		BoxesMachineMachineState _tmp8_ = 0;
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp8_ = value;
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = _tmp8_ == BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED;
#line 5090 "machine.c"
	}
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp6_) {
#line 116 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_screenshot (self, NULL, FALSE);
#line 5096 "machine.c"
	} else {
		GdkPixbuf* _tmp9_ = NULL;
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp9_ = self->priv->orig_pixbuf;
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp9_ != NULL) {
#line 5103 "machine.c"
			GdkPixbuf* _tmp10_ = NULL;
			GdkPixbuf* _tmp11_ = NULL;
			GdkPixbuf* _tmp12_ = NULL;
#line 120 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp10_ = self->priv->orig_pixbuf;
#line 120 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp11_ = boxes_machine_draw_vm (self, _tmp10_, BOXES_MACHINE_SCREENSHOT_WIDTH, BOXES_MACHINE_SCREENSHOT_HEIGHT);
#line 120 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp12_ = _tmp11_;
#line 120 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_machine_set_pixbuf (self, _tmp12_);
#line 120 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (_tmp12_);
#line 5117 "machine.c"
		}
	}
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp19_ = boxes_machine_get_display (self);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp20_ = _tmp19_;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp20_ != NULL) {
#line 5126 "machine.c"
		gboolean _tmp21_ = FALSE;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp21_ = self->stay_on_display;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp18_ = !_tmp21_;
#line 5132 "machine.c"
	} else {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp18_ = FALSE;
#line 5136 "machine.c"
	}
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp18_) {
#line 5140 "machine.c"
		BoxesAppWindow* _tmp22_ = NULL;
		BoxesAppWindow* _tmp23_ = NULL;
#line 127 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp22_ = boxes_machine_get_window (self);
#line 127 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp23_ = _tmp22_;
#line 127 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp17_ = _tmp23_ != NULL;
#line 5149 "machine.c"
	} else {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp17_ = FALSE;
#line 5153 "machine.c"
	}
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp17_) {
#line 5157 "machine.c"
		BoxesAppWindow* _tmp24_ = NULL;
		BoxesAppWindow* _tmp25_ = NULL;
		BoxesCollectionItem* _tmp26_ = NULL;
		BoxesCollectionItem* _tmp27_ = NULL;
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp24_ = boxes_machine_get_window (self);
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp25_ = _tmp24_;
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp26_ = boxes_app_window_get_current_item (_tmp25_);
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp27_ = _tmp26_;
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp16_ = _tmp27_ == G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem);
#line 5172 "machine.c"
	} else {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp16_ = FALSE;
#line 5176 "machine.c"
	}
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp16_) {
#line 5180 "machine.c"
		BoxesMachineMachineState _tmp28_ = 0;
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp28_ = value;
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp15_ = _tmp28_ != BOXES_MACHINE_MACHINE_STATE_RUNNING;
#line 5186 "machine.c"
	} else {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp15_ = FALSE;
#line 5190 "machine.c"
	}
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp15_) {
#line 5194 "machine.c"
		BoxesAppWindow* _tmp29_ = NULL;
		BoxesAppWindow* _tmp30_ = NULL;
		BoxesUIState _tmp31_ = 0;
		BoxesUIState _tmp32_ = 0;
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp29_ = boxes_machine_get_window (self);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp30_ = _tmp29_;
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp31_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp30_);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp32_ = _tmp31_;
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp14_ = _tmp32_ != BOXES_UI_STATE_PROPERTIES;
#line 5209 "machine.c"
	} else {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp14_ = FALSE;
#line 5213 "machine.c"
	}
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp14_) {
#line 5217 "machine.c"
		BoxesMachineMachineState _tmp33_ = 0;
#line 131 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp33_ = value;
#line 131 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp13_ = _tmp33_ != BOXES_MACHINE_MACHINE_STATE_UNKNOWN;
#line 5223 "machine.c"
	} else {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp13_ = FALSE;
#line 5227 "machine.c"
	}
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp13_) {
#line 5231 "machine.c"
		BoxesAppWindow* _tmp34_ = NULL;
		BoxesAppWindow* _tmp35_ = NULL;
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp34_ = boxes_machine_get_window (self);
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp35_ = _tmp34_;
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_ui_set_state ((BoxesUI*) _tmp35_, BOXES_UI_STATE_COLLECTION);
#line 5240 "machine.c"
	}
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "state");
#line 5244 "machine.c"
}


BoxesAppWindow* boxes_machine_get_window (BoxesMachine* self) {
	BoxesAppWindow* result;
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = self->priv->_window;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = _tmp1_;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_ == NULL) {
#line 5260 "machine.c"
		BoxesApp* _tmp2_ = NULL;
		BoxesAppWindow* _tmp3_ = NULL;
		BoxesAppWindow* _tmp4_ = NULL;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = boxes_app_app;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = boxes_app_get_main_window (_tmp2_);
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = _tmp3_;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp0_ = _tmp4_;
#line 5272 "machine.c"
	}
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 5278 "machine.c"
}


void boxes_machine_set_window (BoxesMachine* self, BoxesAppWindow* value) {
	BoxesAppWindow* _tmp0_ = NULL;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_window = _tmp0_;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "window");
#line 5292 "machine.c"
}


gboolean boxes_machine_get_deleted (BoxesMachine* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_deleted;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 5307 "machine.c"
}


static void boxes_machine_set_deleted (BoxesMachine* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = value;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_deleted = _tmp0_;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "deleted");
#line 5321 "machine.c"
}


BoxesDisplay* boxes_machine_get_display (BoxesMachine* self) {
	BoxesDisplay* result;
	BoxesDisplay* _tmp0_ = NULL;
#line 173 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 173 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_display;
#line 173 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	result = _tmp0_;
#line 173 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	return result;
#line 5336 "machine.c"
}


static void _boxes_machine_display___lambda217_ (BoxesMachine* self, gint id) {
#line 197 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_show_display (self);
#line 5343 "machine.c"
}


static void __boxes_machine_display___lambda217__boxes_display_show (BoxesDisplay* _sender, gint display_id, gpointer self) {
#line 197 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_boxes_machine_display___lambda217_ ((BoxesMachine*) self, display_id);
#line 5350 "machine.c"
}


static void _boxes_machine_display___lambda218_ (BoxesMachine* self, gint id) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
#line 200 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_machine_get_window (self);
#line 200 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 200 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp1_ != NULL) {
#line 5363 "machine.c"
		BoxesAppWindow* _tmp2_ = NULL;
		BoxesAppWindow* _tmp3_ = NULL;
		BoxesDisplayPage* _tmp4_ = NULL;
		GtkWidget* _tmp5_ = NULL;
		GtkWidget* _tmp6_ = NULL;
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = boxes_machine_get_window (self);
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = _tmp2_;
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = _tmp3_->display_page;
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = boxes_display_page_remove_display (_tmp4_);
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = _tmp5_;
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_g_object_unref0 (_tmp6_);
#line 5381 "machine.c"
	}
}


static void __boxes_machine_display___lambda218__boxes_display_hide (BoxesDisplay* _sender, gint display_id, gpointer self) {
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_boxes_machine_display___lambda218_ ((BoxesMachine*) self, display_id);
#line 5389 "machine.c"
}


static void _boxes_machine_display___lambda219_ (BoxesMachine* self, const gchar* message) {
	const gchar* _tmp0_ = NULL;
#line 204 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (message != NULL);
#line 205 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = message;
#line 205 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_signal_emit_by_name (self, "got-error", _tmp0_);
#line 5401 "machine.c"
}


static void __boxes_machine_display___lambda219__boxes_display_got_error (BoxesDisplay* _sender, const gchar* message, gpointer self) {
#line 204 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_boxes_machine_display___lambda219_ ((BoxesMachine*) self, message);
#line 5408 "machine.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1408 "/home/zeenix/jhbuild/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1409 "/home/zeenix/jhbuild/share/vala-0.32/vapi/glib-2.0.vapi"
	result = self;
#line 1409 "/home/zeenix/jhbuild/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 5420 "machine.c"
}


static void _boxes_machine_display___lambda220_ (BoxesMachine* self, gboolean failed) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	BoxesAppWindow* _tmp5_ = NULL;
	BoxesAppWindow* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	BoxesAppWindow* _tmp8_ = NULL;
	BoxesAppWindow* _tmp9_ = NULL;
	BoxesUIState _tmp10_ = 0;
	BoxesUIState _tmp11_ = 0;
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = _tmp0_;
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = string_to_string (_tmp1_);
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = g_strconcat ("display ", _tmp2_, " disconnected", NULL);
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = _tmp3_;
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_message ("machine.vala:209: %s", _tmp4_);
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (_tmp4_);
#line 210 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = boxes_machine_get_window (self);
#line 210 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp6_ = _tmp5_;
#line 210 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp6_ == NULL) {
#line 211 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 5459 "machine.c"
	}
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = boxes_machine_get_window (self);
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = _tmp8_;
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp10_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp9_);
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp11_ = _tmp10_;
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp11_ == BOXES_UI_STATE_CREDS) {
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = TRUE;
#line 5473 "machine.c"
	} else {
		BoxesAppWindow* _tmp12_ = NULL;
		BoxesAppWindow* _tmp13_ = NULL;
		BoxesUIState _tmp14_ = 0;
		BoxesUIState _tmp15_ = 0;
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp12_ = boxes_machine_get_window (self);
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp13_ = _tmp12_;
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp14_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp13_);
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp15_ = _tmp14_;
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = _tmp15_ == BOXES_UI_STATE_DISPLAY;
#line 5489 "machine.c"
	}
#line 213 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp7_) {
#line 5493 "machine.c"
		gboolean _tmp16_ = FALSE;
		gboolean _tmp17_ = FALSE;
		gboolean _tmp24_ = FALSE;
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp17_ = self->stay_on_display;
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (!_tmp17_) {
#line 5501 "machine.c"
			BoxesAppWindow* _tmp18_ = NULL;
			BoxesAppWindow* _tmp19_ = NULL;
			BoxesCollectionItem* _tmp20_ = NULL;
			BoxesCollectionItem* _tmp21_ = NULL;
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp18_ = boxes_machine_get_window (self);
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp19_ = _tmp18_;
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp20_ = boxes_app_window_get_current_item (_tmp19_);
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp21_ = _tmp20_;
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp16_ = _tmp21_ == G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem);
#line 5516 "machine.c"
		} else {
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp16_ = FALSE;
#line 5520 "machine.c"
		}
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp16_) {
#line 5524 "machine.c"
			BoxesAppWindow* _tmp22_ = NULL;
			BoxesAppWindow* _tmp23_ = NULL;
#line 215 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp22_ = boxes_machine_get_window (self);
#line 215 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp23_ = _tmp22_;
#line 215 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			boxes_ui_set_state ((BoxesUI*) _tmp23_, BOXES_UI_STATE_COLLECTION);
#line 5533 "machine.c"
		}
#line 217 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp24_ = failed;
#line 217 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		if (_tmp24_) {
#line 5539 "machine.c"
			BoxesAppWindow* _tmp25_ = NULL;
			BoxesAppWindow* _tmp26_ = NULL;
			BoxesNotificationbar* _tmp27_ = NULL;
			BoxesNotificationbar* _tmp28_ = NULL;
			const gchar* _tmp29_ = NULL;
			const gchar* _tmp30_ = NULL;
			const gchar* _tmp31_ = NULL;
			gchar* _tmp32_ = NULL;
			gchar* _tmp33_ = NULL;
			GdNotification* _tmp34_ = NULL;
			GdNotification* _tmp35_ = NULL;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp25_ = boxes_machine_get_window (self);
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp26_ = _tmp25_;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp27_ = boxes_app_window_get_notificationbar (_tmp26_);
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp28_ = _tmp27_;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp29_ = _ ("Connection to '%s' failed");
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp30_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp31_ = _tmp30_;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp32_ = g_strdup_printf (_tmp29_, _tmp31_);
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp33_ = _tmp32_;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp34_ = boxes_notificationbar_display_error (_tmp28_, _tmp33_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_tmp35_ = _tmp34_;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_object_unref0 (_tmp35_);
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
			_g_free0 (_tmp33_);
#line 5577 "machine.c"
		}
	}
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_load_screenshot (self);
#line 5582 "machine.c"
}


static void __boxes_machine_display___lambda220__boxes_display_disconnected (BoxesDisplay* _sender, gboolean connection_failed, gpointer self) {
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_boxes_machine_display___lambda220_ ((BoxesMachine*) self, connection_failed);
#line 5589 "machine.c"
}


static void _boxes_machine_handle_auth_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 224 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_handle_auth ((BoxesMachine*) self);
#line 5596 "machine.c"
}


void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value) {
	BoxesDisplay* _tmp0_ = NULL;
	BoxesDisplay* _tmp13_ = NULL;
	BoxesDisplay* _tmp14_ = NULL;
	BoxesDisplay* _tmp15_ = NULL;
	BoxesAppWindow* _tmp16_ = NULL;
	BoxesAppWindow* _tmp17_ = NULL;
	BoxesTopbar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	BoxesDisplay* _tmp24_ = NULL;
	gulong _tmp25_ = 0UL;
	BoxesDisplay* _tmp26_ = NULL;
	gulong _tmp27_ = 0UL;
	BoxesDisplay* _tmp28_ = NULL;
	gulong _tmp29_ = 0UL;
	BoxesDisplay* _tmp30_ = NULL;
	gulong _tmp31_ = 0UL;
	BoxesDisplay* _tmp32_ = NULL;
	gulong _tmp33_ = 0UL;
	BoxesDisplay* _tmp34_ = NULL;
	gulong _tmp35_ = 0UL;
	BoxesDisplay* _tmp36_ = NULL;
	const gchar* _tmp37_ = NULL;
	BoxesDisplay* _tmp38_ = NULL;
	const gchar* _tmp39_ = NULL;
#line 174 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_return_if_fail (self != NULL);
#line 175 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = self->priv->_display;
#line 175 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp0_ != NULL) {
#line 5635 "machine.c"
		BoxesDisplay* _tmp1_ = NULL;
		gulong _tmp2_ = 0UL;
		BoxesDisplay* _tmp3_ = NULL;
		gulong _tmp4_ = 0UL;
		BoxesDisplay* _tmp5_ = NULL;
		gulong _tmp6_ = 0UL;
		BoxesDisplay* _tmp7_ = NULL;
		gulong _tmp8_ = 0UL;
		BoxesDisplay* _tmp9_ = NULL;
		gulong _tmp10_ = 0UL;
		BoxesDisplay* _tmp11_ = NULL;
		gulong _tmp12_ = 0UL;
#line 176 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp1_ = self->priv->_display;
#line 176 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp2_ = self->priv->show_id;
#line 176 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 177 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->show_id = (gulong) 0;
#line 178 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp3_ = self->priv->_display;
#line 178 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp4_ = self->priv->hide_id;
#line 178 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_handler_disconnect ((GObject*) _tmp3_, _tmp4_);
#line 179 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->hide_id = (gulong) 0;
#line 180 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp5_ = self->priv->_display;
#line 180 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp6_ = self->priv->disconnected_id;
#line 180 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_handler_disconnect ((GObject*) _tmp5_, _tmp6_);
#line 181 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->disconnected_id = (gulong) 0;
#line 182 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp7_ = self->priv->_display;
#line 182 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp8_ = self->priv->need_password_id;
#line 182 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_handler_disconnect ((GObject*) _tmp7_, _tmp8_);
#line 183 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->need_password_id = (gulong) 0;
#line 184 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp9_ = self->priv->_display;
#line 184 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp10_ = self->priv->need_username_id;
#line 184 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_handler_disconnect ((GObject*) _tmp9_, _tmp10_);
#line 185 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->need_username_id = (gulong) 0;
#line 186 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp11_ = self->priv->_display;
#line 186 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		_tmp12_ = self->priv->got_error_id;
#line 186 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_signal_handler_disconnect ((GObject*) _tmp11_, _tmp12_);
#line 187 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		self->priv->got_error_id = (gulong) 0;
#line 5696 "machine.c"
	}
#line 190 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp13_ = value;
#line 190 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp14_ = _g_object_ref0 (_tmp13_);
#line 190 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_display);
#line 190 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_display = _tmp14_;
#line 191 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp15_ = self->priv->_display;
#line 191 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	if (_tmp15_ == NULL) {
#line 192 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		return;
#line 5712 "machine.c"
	}
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp16_ = boxes_machine_get_window (self);
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp17_ = _tmp16_;
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp18_ = _tmp17_->topbar;
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp19_ = _ ("Connecting to %s");
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp20_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp21_ = _tmp20_;
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp22_ = g_strdup_printf (_tmp19_, _tmp21_);
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp23_ = _tmp22_;
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_topbar_set_status (_tmp18_, _tmp23_);
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (_tmp23_);
#line 197 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp24_ = self->priv->_display;
#line 197 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp25_ = g_signal_connect_object (_tmp24_, "show", (GCallback) __boxes_machine_display___lambda217__boxes_display_show, self, 0);
#line 197 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->show_id = _tmp25_;
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp26_ = self->priv->_display;
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp27_ = g_signal_connect_object (_tmp26_, "hide", (GCallback) __boxes_machine_display___lambda218__boxes_display_hide, self, 0);
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->hide_id = _tmp27_;
#line 204 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp28_ = self->priv->_display;
#line 204 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp29_ = g_signal_connect_object (_tmp28_, "got-error", (GCallback) __boxes_machine_display___lambda219__boxes_display_got_error, self, 0);
#line 204 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->got_error_id = _tmp29_;
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp30_ = self->priv->_display;
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp31_ = g_signal_connect_object (_tmp30_, "disconnected", (GCallback) __boxes_machine_display___lambda220__boxes_display_disconnected, self, 0);
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->disconnected_id = _tmp31_;
#line 224 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp32_ = self->priv->_display;
#line 224 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp33_ = g_signal_connect_object ((GObject*) _tmp32_, "notify::need-password", (GCallback) _boxes_machine_handle_auth_g_object_notify, self, 0);
#line 224 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->need_password_id = _tmp33_;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp34_ = self->priv->_display;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp35_ = g_signal_connect_object ((GObject*) _tmp34_, "notify::need-username", (GCallback) _boxes_machine_handle_auth_g_object_notify, self, 0);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->need_username_id = _tmp35_;
#line 227 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp36_ = self->priv->_display;
#line 227 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp37_ = self->priv->username;
#line 227 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_display_set_username (_tmp36_, _tmp37_);
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp38_ = self->priv->_display;
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp39_ = self->priv->password;
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_display_set_password (_tmp38_, _tmp39_);
#line 174 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_notify ((GObject *) self, "display");
#line 5784 "machine.c"
}


static void boxes_machine_class_init (BoxesMachineClass * klass) {
	cairo_surface_t* _tmp0_ = NULL;
	cairo_t* cr = NULL;
	cairo_surface_t* _tmp1_ = NULL;
	cairo_t* _tmp2_ = NULL;
	cairo_t* _tmp3_ = NULL;
	cairo_t* _tmp4_ = NULL;
	cairo_t* _tmp5_ = NULL;
	cairo_t* _tmp6_ = NULL;
	cairo_t* _tmp7_ = NULL;
	cairo_t* _tmp8_ = NULL;
	cairo_t* _tmp9_ = NULL;
	cairo_t* _tmp10_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_type_class_add_private (klass, sizeof (BoxesMachinePrivate));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->save_real = boxes_machine_real_save_real;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->save_real_finish = boxes_machine_real_save_real_finish;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->take_screenshot = boxes_machine_real_take_screenshot;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->take_screenshot_finish = boxes_machine_real_take_screenshot_finish;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->get_properties = boxes_machine_real_get_properties;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->restart = boxes_machine_real_restart;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->disconnect_display = boxes_machine_real_disconnect_display;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->update_status = boxes_machine_real_update_status;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesMachineClass *) klass)->delete = boxes_machine_real_delete;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	((BoxesCollectionItemClass *) klass)->compare = boxes_machine_real_compare;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_suspend_at_exit = boxes_machine_real_get_suspend_at_exit;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_can_save = boxes_machine_real_get_can_save;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_should_autosave = boxes_machine_real_get_should_autosave;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_is_local = boxes_machine_real_get_is_local;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_machine_get_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_machine_set_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_machine_finalize;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_PIXBUF, g_param_spec_object ("pixbuf", "pixbuf", "pixbuf", GDK_TYPE_PIXBUF, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER, g_param_spec_object ("thumbnailer", "thumbnailer", "thumbnailer", BOXES_TYPE_MACHINE_THUMBNAILER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_INFO, g_param_spec_string ("info", "info", "info", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_STATUS, g_param_spec_string ("status", "status", "status", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_SUSPEND_AT_EXIT, g_param_spec_boolean ("suspend-at-exit", "suspend-at-exit", "suspend-at-exit", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_CAN_SAVE, g_param_spec_boolean ("can-save", "can-save", "can-save", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_CAN_DELETE, g_param_spec_boolean ("can-delete", "can-delete", "can-delete", TRUE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_UNDER_CONSTRUCTION, g_param_spec_boolean ("under-construction", "under-construction", "under-construction", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_SHOULD_AUTOSAVE, g_param_spec_boolean ("should-autosave", "should-autosave", "should-autosave", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_IS_CONNECTED, g_param_spec_boolean ("is-connected", "is-connected", "is-connected", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_IS_RUNNING, g_param_spec_boolean ("is-running", "is-running", "is-running", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_IS_ON, g_param_spec_boolean ("is-on", "is-on", "is-on", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_IS_STOPPED, g_param_spec_boolean ("is-stopped", "is-stopped", "is-stopped", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_IS_LOCAL, g_param_spec_boolean ("is-local", "is-local", "is-local", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_CONNECTING_CANCELLABLE, g_param_spec_object ("connecting-cancellable", "connecting-cancellable", "connecting-cancellable", g_cancellable_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_STATE, g_param_spec_enum ("state", "state", "state", BOXES_MACHINE_TYPE_MACHINE_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_WINDOW, g_param_spec_object ("window", "window", "window", BOXES_TYPE_APP_WINDOW, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_DELETED, g_param_spec_boolean ("deleted", "deleted", "deleted", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_DISPLAY, g_param_spec_object ("display", "display", "display", BOXES_TYPE_DISPLAY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	g_signal_new ("got_error", BOXES_TYPE_MACHINE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp0_ = cairo_image_surface_create (CAIRO_FORMAT_A8, 2, 2);
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_cairo_surface_destroy0 (boxes_machine_grid_surface);
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_grid_surface = _tmp0_;
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp1_ = boxes_machine_grid_surface;
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp2_ = cairo_create (_tmp1_);
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cr = _tmp2_;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp3_ = cr;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_set_source_rgba (_tmp3_, (gdouble) 0, (gdouble) 0, (gdouble) 0, (gdouble) 0);
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp4_ = cr;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_paint (_tmp4_);
#line 238 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp5_ = cr;
#line 238 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_set_source_rgba (_tmp5_, (gdouble) 1, (gdouble) 1, (gdouble) 1, (gdouble) 1);
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp6_ = cr;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_set_operator (_tmp6_, CAIRO_OPERATOR_SOURCE);
#line 240 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp7_ = cr;
#line 240 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_rectangle (_tmp7_, (gdouble) 0, (gdouble) 0, (gdouble) 1, (gdouble) 1);
#line 241 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp8_ = cr;
#line 241 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_fill (_tmp8_);
#line 242 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp9_ = cr;
#line 242 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_rectangle (_tmp9_, (gdouble) 1, (gdouble) 1, (gdouble) 1, (gdouble) 1);
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_tmp10_ = cr;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	cairo_fill (_tmp10_);
#line 232 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_cairo_destroy0 (cr);
#line 5925 "machine.c"
}


static void boxes_machine_boxes_iproperties_provider_interface_init (BoxesIPropertiesProviderIface * iface) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	boxes_machine_boxes_iproperties_provider_parent_iface = g_type_interface_peek_parent (iface);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	iface->get_properties = (GList* (*)(BoxesIPropertiesProvider*, BoxesPropertiesPage, PropertyCreationFlag*)) boxes_machine_get_properties;
#line 5934 "machine.c"
}


static void boxes_machine_instance_init (BoxesMachine * self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv = BOXES_MACHINE_GET_PRIVATE (self);
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_can_delete = TRUE;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self->priv->_under_construction = FALSE;
#line 5945 "machine.c"
}


static void boxes_machine_finalize (GObject* obj) {
	BoxesMachine * self;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_MACHINE, BoxesMachine);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->source);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->config);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_pixbuf);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_thumbnailer);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (self->priv->_info);
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (self->priv->_status);
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (self->priv->username);
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_free0 (self->priv->password);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_connecting_cancellable);
#line 108 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->orig_pixbuf);
#line 171 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->_display);
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->name_status_bind);
#line 618 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	_g_object_unref0 (self->priv->auth_notification);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	G_OBJECT_CLASS (boxes_machine_parent_class)->finalize (obj);
#line 5981 "machine.c"
}


GType boxes_machine_get_type (void) {
	static volatile gsize boxes_machine_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_machine_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesMachineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_machine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesMachine), 0, (GInstanceInitFunc) boxes_machine_instance_init, NULL };
		static const GInterfaceInfo boxes_iproperties_provider_info = { (GInterfaceInitFunc) boxes_machine_boxes_iproperties_provider_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_machine_type_id;
		boxes_machine_type_id = g_type_register_static (BOXES_TYPE_COLLECTION_ITEM, "BoxesMachine", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_type_add_interface_static (boxes_machine_type_id, BOXES_TYPE_IPROPERTIES_PROVIDER, &boxes_iproperties_provider_info);
		g_once_init_leave (&boxes_machine_type_id__volatile, boxes_machine_type_id);
	}
	return boxes_machine_type_id__volatile;
}


static void _vala_boxes_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesMachine * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_MACHINE, BoxesMachine);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_PIXBUF:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_object (value, boxes_machine_get_pixbuf (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_THUMBNAILER:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_object (value, boxes_machine_get_thumbnailer (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_INFO:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_string (value, boxes_machine_get_info (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_STATUS:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_string (value, boxes_machine_get_status (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_SUSPEND_AT_EXIT:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_suspend_at_exit (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_CAN_SAVE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_can_save (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_CAN_DELETE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_can_delete (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_UNDER_CONSTRUCTION:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_under_construction (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_SHOULD_AUTOSAVE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_should_autosave (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_IS_CONNECTED:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_is_connected (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_IS_RUNNING:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_is_running (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_IS_ON:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_is_on (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_IS_STOPPED:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_is_stopped (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_IS_LOCAL:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_is_local (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_CONNECTING_CANCELLABLE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_object (value, boxes_machine_get_connecting_cancellable (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_enum (value, boxes_machine_get_state (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_WINDOW:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_object (value, boxes_machine_get_window (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_DELETED:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_boolean (value, boxes_machine_get_deleted (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_DISPLAY:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		g_value_set_object (value, boxes_machine_get_display (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 6118 "machine.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 6124 "machine.c"
	}
}


static void _vala_boxes_machine_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesMachine * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_MACHINE, BoxesMachine);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_PIXBUF:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_pixbuf (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_THUMBNAILER:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_thumbnailer (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_INFO:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_info (self, g_value_get_string (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_STATUS:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_status (self, g_value_get_string (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_CAN_DELETE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_can_delete (self, g_value_get_boolean (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_UNDER_CONSTRUCTION:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_under_construction (self, g_value_get_boolean (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_CONNECTING_CANCELLABLE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_connecting_cancellable (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_state (self, g_value_get_enum (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_WINDOW:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_window (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_DELETED:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_deleted (self, g_value_get_boolean (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		case BOXES_MACHINE_DISPLAY:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		boxes_machine_set_display (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 6200 "machine.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/machine.vala"
		break;
#line 6206 "machine.c"
	}
}



