/* spice-display.c generated by valac 0.17.3.12-6a5ea3, the Vala compiler
 * generated from spice-display.vala, do not modify */

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

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


#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 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_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;
typedef struct _BoxesDisplayPrivate BoxesDisplayPrivate;

#define BOXES_TYPE_SPICE_DISPLAY (boxes_spice_display_get_type ())
#define BOXES_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay))
#define BOXES_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))
#define BOXES_IS_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_IS_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_SPICE_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))

typedef struct _BoxesSpiceDisplay BoxesSpiceDisplay;
typedef struct _BoxesSpiceDisplayClass BoxesSpiceDisplayClass;
typedef struct _BoxesSpiceDisplayPrivate BoxesSpiceDisplayPrivate;

#define BOXES_DISPLAY_TYPE_SAVED_PROPERTY (boxes_display_saved_property_get_type ())
typedef struct _BoxesDisplaySavedProperty BoxesDisplaySavedProperty;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define BOXES_TYPE_UI (boxes_ui_get_type ())
#define BOXES_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UI, BoxesUI))
#define BOXES_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UI, BoxesUIClass))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_IS_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UI))
#define BOXES_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UI, BoxesUIClass))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIClass BoxesUIClass;

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

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define BOXES_TYPE_DISPLAY_CONFIG (boxes_display_config_get_type ())
#define BOXES_DISPLAY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfig))
#define BOXES_DISPLAY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfigClass))
#define BOXES_IS_DISPLAY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_CONFIG))
#define BOXES_IS_DISPLAY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_CONFIG))
#define BOXES_DISPLAY_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfigClass))

typedef struct _BoxesDisplayConfig BoxesDisplayConfig;
typedef struct _BoxesDisplayConfigClass BoxesDisplayConfigClass;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block27Data Block27Data;
typedef struct _Block28Data Block28Data;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

typedef enum  {
	BOXES_PROPERTIES_PAGE_LOGIN,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DISPLAY,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

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

typedef enum  {
	BOXES_ERROR_INVALID,
	BOXES_ERROR_COMMAND_FAILED
} BoxesError;
#define BOXES_ERROR boxes_error_quark ()
struct _BoxesDisplay {
	GObject parent_instance;
	BoxesDisplayPrivate * priv;
	GHashTable* displays;
};

struct _BoxesDisplayClass {
	GObjectClass parent_class;
	GtkWidget* (*get_display) (BoxesDisplay* self, gint n, GError** error);
	GdkPixbuf* (*get_pixbuf) (BoxesDisplay* self, gint n, GError** error);
	void (*set_enable_inputs) (BoxesDisplay* self, GtkWidget* widget, gboolean enable);
	void (*connect_it) (BoxesDisplay* self);
	void (*disconnect_it) (BoxesDisplay* self);
	GList* (*get_properties) (BoxesDisplay* self, BoxesPropertiesPage page);
	const gchar* (*get_protocol) (BoxesDisplay* self);
	gchar* (*get_uri) (BoxesDisplay* self);
};

struct _BoxesSpiceDisplay {
	BoxesDisplay parent_instance;
	BoxesSpiceDisplayPrivate * priv;
};

struct _BoxesSpiceDisplayClass {
	BoxesDisplayClass parent_class;
};

struct _BoxesDisplaySavedProperty {
	gchar* name;
	GValue default_value;
};

struct _BoxesSpiceDisplayPrivate {
	SpiceSession* session;
	SpiceGtkSession* gtk_session;
	SpiceAudio* audio;
	gulong channel_new_id;
	gulong channel_destroy_id;
	BoxesDisplaySavedProperty* display_saved_properties;
	gint display_saved_properties_length1;
	gint _display_saved_properties_size_;
	BoxesDisplaySavedProperty* gtk_session_saved_properties;
	gint gtk_session_saved_properties_length1;
	gint _gtk_session_saved_properties_size_;
	gboolean _resize_guest;
};

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

struct _Block27Data {
	int _ref_count_;
	BoxesSpiceDisplay * self;
	SpiceMainChannel* main;
};

struct _Block28Data {
	int _ref_count_;
	BoxesSpiceDisplay * self;
	SpiceDisplay* display;
};


static gpointer boxes_spice_display_parent_class = NULL;
extern BoxesApp* boxes_app_app;
static BoxesIPropertiesProviderIface* boxes_spice_display_boxes_iproperties_provider_parent_iface = NULL;

GType boxes_properties_page_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_display_get_type (void) G_GNUC_CONST;
GQuark boxes_error_quark (void);
GType boxes_spice_display_get_type (void) G_GNUC_CONST;
GType boxes_display_saved_property_get_type (void) G_GNUC_CONST;
BoxesDisplaySavedProperty* boxes_display_saved_property_dup (const BoxesDisplaySavedProperty* self);
void boxes_display_saved_property_free (BoxesDisplaySavedProperty* self);
void boxes_display_saved_property_copy (const BoxesDisplaySavedProperty* self, BoxesDisplaySavedProperty* dest);
void boxes_display_saved_property_destroy (BoxesDisplaySavedProperty* self);
#define BOXES_SPICE_DISPLAY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayPrivate))
enum  {
	BOXES_SPICE_DISPLAY_DUMMY_PROPERTY,
	BOXES_SPICE_DISPLAY_PROTOCOL,
	BOXES_SPICE_DISPLAY_URI,
	BOXES_SPICE_DISPLAY_RESIZE_GUEST
};
static void _vala_BoxesDisplaySavedProperty_array_free (BoxesDisplaySavedProperty* array, gint array_length);
static void boxes_spice_display_ui_state_changed (BoxesSpiceDisplay* self);
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
GtkWidget* boxes_display_get_display (BoxesDisplay* self, gint n, GError** error);
gboolean boxes_spice_display_get_resize_guest (BoxesSpiceDisplay* self);
GType boxes_display_config_get_type (void) G_GNUC_CONST;
BoxesSpiceDisplay* boxes_spice_display_new (BoxesDisplayConfig* config, const gchar* host, gint port);
BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesDisplayConfig* config, const gchar* host, gint port);
BoxesDisplay* boxes_display_construct (GType object_type);
void boxes_display_set_config (BoxesDisplay* self, BoxesDisplayConfig* value);
BoxesSpiceDisplay* boxes_spice_display_new_with_uri (BoxesDisplayConfig* config, const gchar* uri);
BoxesSpiceDisplay* boxes_spice_display_construct_with_uri (GType object_type, BoxesDisplayConfig* config, const gchar* uri);
static GtkWidget* boxes_spice_display_real_get_display (BoxesDisplay* base, gint n, GError** error);
static void ___lambda49_ (BoxesSpiceDisplay* self, gint status);
void boxes_display_set_mouse_grabbed (BoxesDisplay* self, gboolean value);
static void ____lambda49__spice_display_mouse_grab (SpiceDisplay* _sender, gint grabbed, gpointer self);
void boxes_display_sync_config_with_display (BoxesDisplay* self, GObject* display, BoxesDisplaySavedProperty* saved_properties, int saved_properties_length1);
static void boxes_spice_display_real_set_enable_inputs (BoxesDisplay* base, GtkWidget* widget, gboolean enable);
static GdkPixbuf* boxes_spice_display_real_get_pixbuf (BoxesDisplay* base, gint n, GError** error);
static void boxes_spice_display_real_connect_it (BoxesDisplay* base);
static void ___lambda50_ (BoxesSpiceDisplay* self, SpiceChannel* channel);
static Block27Data* block27_data_ref (Block27Data* _data27_);
static void block27_data_unref (void * _userdata_);
static void boxes_spice_display_main_event (BoxesSpiceDisplay* self, SpiceChannelEvent event);
static void _boxes_spice_display_main_event_spice_channel_channel_event (SpiceChannel* _sender, SpiceChannelEvent event, gpointer self);
static void ___lambda51_ (Block27Data* _data27_);
void boxes_display_set_can_grab_mouse (BoxesDisplay* self, gboolean value);
static void ____lambda51__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static Block28Data* block28_data_ref (Block28Data* _data28_);
static void block28_data_unref (void * _userdata_);
static void ____lambda52_ (Block28Data* _data28_);
static void _____lambda52__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void ____lambda50__spice_session_channel_new (SpiceSession* _sender, SpiceChannel* channel, gpointer self);
static void ___lambda53_ (BoxesSpiceDisplay* self, SpiceChannel* channel);
static void ____lambda53__spice_session_channel_destroy (SpiceSession* _sender, SpiceChannel* channel, gpointer self);
const gchar* boxes_display_get_password (BoxesDisplay* self);
static void boxes_spice_display_real_disconnect_it (BoxesDisplay* base);
void boxes_display_set_need_password (BoxesDisplay* self, gboolean value);
static GList* boxes_spice_display_real_get_properties (BoxesIPropertiesProvider* base, BoxesPropertiesPage page);
BoxesProperty* boxes_iproperties_provider_add_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, GtkWidget* widget);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
void boxes_spice_display_set_resize_guest (BoxesSpiceDisplay* self, gboolean value);
static GObject * boxes_spice_display_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _boxes_spice_display___lambda54_ (BoxesSpiceDisplay* self);
static void __boxes_spice_display___lambda54__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _boxes_spice_display_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void boxes_spice_display_finalize (GObject* obj);
const gchar* boxes_display_get_protocol (BoxesDisplay* self);
gchar* boxes_display_get_uri (BoxesDisplay* self);
static void _vala_boxes_spice_display_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_boxes_spice_display_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void _vala_BoxesDisplaySavedProperty_array_free (BoxesDisplaySavedProperty* array, gint array_length) {
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (array != NULL) {
#line 271 "spice-display.c"
		int i;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			boxes_display_saved_property_destroy (&array[i]);
#line 277 "spice-display.c"
		}
	}
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_free (array);
#line 282 "spice-display.c"
}


static void boxes_spice_display_ui_state_changed (BoxesSpiceDisplay* self) {
	GError * _inner_error_ = NULL;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_if_fail (self != NULL);
#line 290 "spice-display.c"
	{
		gboolean _tmp0_ = FALSE;
		BoxesApp* _tmp1_;
		BoxesUIState _tmp2_;
		BoxesUIState _tmp3_;
		gboolean _tmp7_;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp1_ = boxes_app_app;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp2_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp1_);
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp3_ = _tmp2_;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		if (_tmp3_ == BOXES_UI_STATE_PROPERTIES) {
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp0_ = TRUE;
#line 307 "spice-display.c"
		} else {
			BoxesApp* _tmp4_;
			BoxesUIState _tmp5_;
			BoxesUIState _tmp6_;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp4_ = boxes_app_app;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp5_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp4_);
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp6_ = _tmp5_;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp0_ = _tmp6_ == BOXES_UI_STATE_DISPLAY;
#line 320 "spice-display.c"
		}
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp7_ = _tmp0_;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		if (_tmp7_) {
#line 326 "spice-display.c"
			GtkWidget* _tmp8_ = NULL;
			GtkWidget* _tmp9_;
			SpiceDisplay* display;
			gboolean _tmp10_ = FALSE;
			BoxesApp* _tmp11_;
			BoxesUIState _tmp12_;
			BoxesUIState _tmp13_;
			SpiceDisplay* _tmp15_;
			gboolean _tmp16_;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp8_ = boxes_display_get_display ((BoxesDisplay*) self, 0, &_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp9_ = _tmp8_;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			if (_inner_error_ != NULL) {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				if (_inner_error_->domain == BOXES_ERROR) {
#line 344 "spice-display.c"
					goto __catch52_boxes_error;
				}
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.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 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				g_clear_error (&_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				return;
#line 353 "spice-display.c"
			}
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			display = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, spice_display_get_type ()) ? ((SpiceDisplay*) _tmp9_) : NULL;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp11_ = boxes_app_app;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp12_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp11_);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp13_ = _tmp12_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			if (_tmp13_ == BOXES_UI_STATE_DISPLAY) {
#line 365 "spice-display.c"
				gboolean _tmp14_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				_tmp14_ = self->priv->_resize_guest;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				_tmp10_ = _tmp14_;
#line 371 "spice-display.c"
			} else {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				_tmp10_ = FALSE;
#line 375 "spice-display.c"
			}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp15_ = display;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp16_ = _tmp10_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_object_set (_tmp15_, "resize-guest", _tmp16_, NULL);
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_object_unref0 (display);
#line 385 "spice-display.c"
		}
	}
	goto __finally52;
	__catch52_boxes_error:
	{
		GError* _error_ = NULL;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_error_ = _inner_error_;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_inner_error_ = NULL;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_g_error_free0 (_error_);
#line 398 "spice-display.c"
	}
	__finally52:
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (_inner_error_ != NULL) {
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.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 20 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_clear_error (&_inner_error_);
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		return;
#line 409 "spice-display.c"
	}
}


BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesDisplayConfig* config, const gchar* host, gint port) {
	BoxesSpiceDisplay * self = NULL;
	BoxesDisplayConfig* _tmp0_;
	SpiceSession* _tmp1_;
	gint _tmp2_;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_;
	SpiceSession* _tmp5_;
	const gchar* _tmp6_;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_val_if_fail (host != NULL, NULL);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) boxes_display_construct (object_type);
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = config;
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_display_set_config ((BoxesDisplay*) self, _tmp0_);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp1_ = self->priv->session;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = port;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp3_ = g_strdup_printf ("%i", _tmp2_);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp4_ = _tmp3_;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_set (_tmp1_, "port", _tmp4_, NULL);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_g_free0 (_tmp4_);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp5_ = self->priv->session;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp6_ = host;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_set (_tmp5_, "host", _tmp6_, NULL);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return self;
#line 453 "spice-display.c"
}


BoxesSpiceDisplay* boxes_spice_display_new (BoxesDisplayConfig* config, const gchar* host, gint port) {
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return boxes_spice_display_construct (BOXES_TYPE_SPICE_DISPLAY, config, host, port);
#line 460 "spice-display.c"
}


BoxesSpiceDisplay* boxes_spice_display_construct_with_uri (GType object_type, BoxesDisplayConfig* config, const gchar* uri) {
	BoxesSpiceDisplay * self = NULL;
	BoxesDisplayConfig* _tmp0_;
	SpiceSession* _tmp1_;
	const gchar* _tmp2_;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) boxes_display_construct (object_type);
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = config;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_display_set_config ((BoxesDisplay*) self, _tmp0_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp1_ = self->priv->session;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = uri;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_set (_tmp1_, "uri", _tmp2_, NULL);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return self;
#line 487 "spice-display.c"
}


BoxesSpiceDisplay* boxes_spice_display_new_with_uri (BoxesDisplayConfig* config, const gchar* uri) {
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return boxes_spice_display_construct_with_uri (BOXES_TYPE_SPICE_DISPLAY, config, uri);
#line 494 "spice-display.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return self ? g_object_ref (self) : NULL;
#line 501 "spice-display.c"
}


static void ___lambda49_ (BoxesSpiceDisplay* self, gint status) {
	gint _tmp0_;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = status;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_display_set_mouse_grabbed ((BoxesDisplay*) self, _tmp0_ != 0);
#line 511 "spice-display.c"
}


static void ____lambda49__spice_display_mouse_grab (SpiceDisplay* _sender, gint grabbed, gpointer self) {
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	___lambda49_ (self, grabbed);
#line 518 "spice-display.c"
}


static GtkWidget* boxes_spice_display_real_get_display (BoxesDisplay* base, gint n, GError** error) {
	BoxesSpiceDisplay * self;
	GtkWidget* result = NULL;
	GHashTable* _tmp0_;
	gint _tmp1_;
	gconstpointer _tmp2_ = NULL;
	SpiceDisplay* _tmp3_;
	SpiceDisplay* display;
	SpiceDisplay* _tmp4_;
	GError * _inner_error_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = ((BoxesDisplay*) self)->displays;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp1_ = n;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = g_hash_table_lookup (_tmp0_, (gpointer) ((gintptr) _tmp1_));
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE ((GtkWidget*) _tmp2_, spice_display_get_type ()) ? ((SpiceDisplay*) ((GtkWidget*) _tmp2_)) : NULL);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	display = _tmp3_;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp4_ = display;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (_tmp4_ == NULL) {
#line 548 "spice-display.c"
		SpiceSession* _tmp5_;
		gint _tmp6_;
		SpiceDisplay* _tmp7_;
		SpiceDisplay* _tmp8_;
		SpiceDisplay* _tmp10_;
		BoxesDisplaySavedProperty* _tmp11_;
		gint _tmp11__length1;
		SpiceDisplay* _tmp12_;
		GHashTable* _tmp13_;
		gint _tmp14_;
		SpiceDisplay* _tmp15_;
		GtkWidget* _tmp16_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp5_ = self->priv->session;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp6_ = n;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp7_ = spice_display_new (_tmp5_, _tmp6_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_object_ref_sink (_tmp7_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_g_object_unref0 (display);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		display = _tmp7_;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp8_ = display;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		if (_tmp8_ == NULL) {
#line 577 "spice-display.c"
			GError* _tmp9_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp9_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "invalid display");
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_inner_error_ = _tmp9_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			if (_inner_error_->domain == BOXES_ERROR) {
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				g_propagate_error (error, _inner_error_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				_g_object_unref0 (display);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				return NULL;
#line 591 "spice-display.c"
			} else {
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				_g_object_unref0 (display);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.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 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				g_clear_error (&_inner_error_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				return NULL;
#line 601 "spice-display.c"
			}
		}
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp10_ = display;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_signal_connect_object (_tmp10_, "mouse-grab", (GCallback) ____lambda49__spice_display_mouse_grab, self, 0);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp11_ = self->priv->display_saved_properties;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp11__length1 = self->priv->display_saved_properties_length1;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		boxes_display_sync_config_with_display ((BoxesDisplay*) self, (GObject*) self, _tmp11_, _tmp11__length1);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp12_ = display;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_object_set (_tmp12_, "scaling", TRUE, NULL);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp13_ = ((BoxesDisplay*) self)->displays;
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp14_ = n;
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp15_ = display;
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp16_ = _g_object_ref0 ((GtkWidget*) _tmp15_);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_hash_table_replace (_tmp13_, (gpointer) ((gintptr) _tmp14_), _tmp16_);
#line 628 "spice-display.c"
	}
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	result = (GtkWidget*) display;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return result;
#line 634 "spice-display.c"
}


static void boxes_spice_display_real_set_enable_inputs (BoxesDisplay* base, GtkWidget* widget, gboolean enable) {
	BoxesSpiceDisplay * self;
	GtkWidget* _tmp0_;
	gboolean _tmp1_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_if_fail (widget != NULL);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = widget;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp1_ = enable;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_set (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, spice_display_get_type ()) ? ((SpiceDisplay*) _tmp0_) : NULL, "disable-inputs", !_tmp1_, NULL);
#line 652 "spice-display.c"
}


static GdkPixbuf* boxes_spice_display_real_get_pixbuf (BoxesDisplay* base, gint n, GError** error) {
	BoxesSpiceDisplay * self;
	GdkPixbuf* result = NULL;
	gint _tmp0_;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_;
	SpiceDisplay* _tmp3_;
	GdkPixbuf* _tmp4_ = NULL;
	GdkPixbuf* _tmp5_;
	GError * _inner_error_ = NULL;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = n;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp1_ = boxes_display_get_display ((BoxesDisplay*) self, _tmp0_, &_inner_error_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = _tmp1_;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (_inner_error_ != NULL) {
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_propagate_error (error, _inner_error_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			return NULL;
#line 682 "spice-display.c"
		} else {
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.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 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_clear_error (&_inner_error_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			return NULL;
#line 690 "spice-display.c"
		}
	}
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, spice_display_get_type ()) ? ((SpiceDisplay*) _tmp2_) : NULL;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp4_ = spice_display_get_pixbuf (_tmp3_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp5_ = _tmp4_;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_g_object_unref0 (_tmp3_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	result = _tmp5_;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return result;
#line 705 "spice-display.c"
}


static Block27Data* block27_data_ref (Block27Data* _data27_) {
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_atomic_int_inc (&_data27_->_ref_count_);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return _data27_;
#line 714 "spice-display.c"
}


static void block27_data_unref (void * _userdata_) {
	Block27Data* _data27_;
	_data27_ = (Block27Data*) _userdata_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (g_atomic_int_dec_and_test (&_data27_->_ref_count_)) {
#line 723 "spice-display.c"
		BoxesSpiceDisplay * self;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		self = _data27_->self;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_g_object_unref0 (_data27_->main);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_g_object_unref0 (self);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_slice_free (Block27Data, _data27_);
#line 733 "spice-display.c"
	}
}


static void _boxes_spice_display_main_event_spice_channel_channel_event (SpiceChannel* _sender, SpiceChannelEvent event, gpointer self) {
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_spice_display_main_event (self, event);
#line 741 "spice-display.c"
}


static void ___lambda51_ (Block27Data* _data27_) {
	BoxesSpiceDisplay * self;
	SpiceMainChannel* _tmp0_;
	gint _tmp1_ = 0;
	gint _tmp2_;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = _data27_->self;
#line 105 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = _data27_->main;
#line 105 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_get (_tmp0_, "mouse-mode", &_tmp1_, NULL);
#line 105 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = _tmp1_;
#line 105 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_display_set_can_grab_mouse ((BoxesDisplay*) self, _tmp2_ != 2);
#line 760 "spice-display.c"
}


static void ____lambda51__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	___lambda51_ (self);
#line 767 "spice-display.c"
}


static Block28Data* block28_data_ref (Block28Data* _data28_) {
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_atomic_int_inc (&_data28_->_ref_count_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return _data28_;
#line 776 "spice-display.c"
}


static void block28_data_unref (void * _userdata_) {
	Block28Data* _data28_;
	_data28_ = (Block28Data*) _userdata_;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (g_atomic_int_dec_and_test (&_data28_->_ref_count_)) {
#line 785 "spice-display.c"
		BoxesSpiceDisplay * self;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		self = _data28_->self;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_g_object_unref0 (_data28_->display);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_g_object_unref0 (self);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_slice_free (Block28Data, _data28_);
#line 795 "spice-display.c"
	}
}


static void ____lambda52_ (Block28Data* _data28_) {
	BoxesSpiceDisplay * self;
	SpiceDisplay* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = _data28_->self;
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = _data28_->display;
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_get (_tmp0_, "ready", &_tmp1_, NULL);
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = _tmp1_;
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (_tmp2_) {
#line 815 "spice-display.c"
		SpiceDisplay* _tmp3_;
		gint _tmp4_ = 0;
		gint _tmp5_;
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp3_ = _data28_->display;
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_object_get (_tmp3_, "channel-id", &_tmp4_, NULL);
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp5_ = _tmp4_;
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_signal_emit_by_name ((BoxesDisplay*) self, "show", _tmp5_);
#line 827 "spice-display.c"
	} else {
		SpiceDisplay* _tmp6_;
		gint _tmp7_ = 0;
		gint _tmp8_;
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp6_ = _data28_->display;
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_object_get (_tmp6_, "channel-id", &_tmp7_, NULL);
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp8_ = _tmp7_;
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_signal_emit_by_name ((BoxesDisplay*) self, "hide", _tmp8_);
#line 840 "spice-display.c"
	}
}


static void _____lambda52__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	____lambda52_ (self);
#line 848 "spice-display.c"
}


static void ___lambda50_ (BoxesSpiceDisplay* self, SpiceChannel* channel) {
	SpiceChannel* _tmp0_;
	gint _tmp1_ = 0;
	gint _tmp2_;
	gint id;
	SpiceChannel* _tmp3_;
	SpiceChannel* _tmp11_;
	GError * _inner_error_ = NULL;
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_if_fail (channel != NULL);
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = channel;
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_get (_tmp0_, "channel-id", &_tmp1_, NULL);
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = _tmp1_;
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	id = _tmp2_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp3_ = channel;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, spice_main_channel_get_type ())) {
#line 874 "spice-display.c"
		Block27Data* _data27_;
		SpiceChannel* _tmp4_;
		SpiceMainChannel* _tmp5_;
		SpiceMainChannel* _tmp6_;
		SpiceMainChannel* _tmp7_;
		SpiceMainChannel* _tmp8_;
		gint _tmp9_ = 0;
		gint _tmp10_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_data27_ = g_slice_new0 (Block27Data);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_data27_->_ref_count_ = 1;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_data27_->self = g_object_ref (self);
#line 102 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp4_ = channel;
#line 102 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, spice_main_channel_get_type ()) ? ((SpiceMainChannel*) _tmp4_) : NULL);
#line 102 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_data27_->main = _tmp5_;
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp6_ = _data27_->main;
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_signal_connect_object ((SpiceChannel*) _tmp6_, "channel-event", (GCallback) _boxes_spice_display_main_event_spice_channel_channel_event, self, 0);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp7_ = _data27_->main;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_signal_connect_data ((GObject*) _tmp7_, "notify::mouse-mode", (GCallback) ____lambda51__g_object_notify, block27_data_ref (_data27_), (GClosureNotify) block27_data_unref, 0);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp8_ = _data27_->main;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_object_get (_tmp8_, "mouse-mode", &_tmp9_, NULL);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp10_ = _tmp9_;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		boxes_display_set_can_grab_mouse ((BoxesDisplay*) self, _tmp10_ != 2);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		block27_data_unref (_data27_);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_data27_ = NULL;
#line 915 "spice-display.c"
	}
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp11_ = channel;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, spice_display_channel_get_type ())) {
#line 921 "spice-display.c"
		gint _tmp12_;
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp12_ = id;
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		if (_tmp12_ != 0) {
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			return;
#line 929 "spice-display.c"
		}
		{
			Block28Data* _data28_;
			gint _tmp13_;
			GtkWidget* _tmp14_ = NULL;
			GtkWidget* _tmp15_;
			SpiceDisplay* _tmp16_;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_data28_ = g_slice_new0 (Block28Data);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_data28_->_ref_count_ = 1;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_data28_->self = g_object_ref (self);
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp13_ = id;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp14_ = boxes_display_get_display ((BoxesDisplay*) self, _tmp13_, &_inner_error_);
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp15_ = _tmp14_;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			if (_inner_error_ != NULL) {
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				block28_data_unref (_data28_);
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				_data28_ = NULL;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				if (_inner_error_->domain == BOXES_ERROR) {
#line 957 "spice-display.c"
					goto __catch53_boxes_error;
				}
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				block28_data_unref (_data28_);
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				_data28_ = NULL;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.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 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				g_clear_error (&_inner_error_);
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
				return;
#line 970 "spice-display.c"
			}
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_data28_->display = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, spice_display_get_type ()) ? ((SpiceDisplay*) _tmp15_) : NULL;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp16_ = _data28_->display;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_signal_connect_data ((GObject*) _tmp16_, "notify::ready", (GCallback) _____lambda52__g_object_notify, block28_data_ref (_data28_), (GClosureNotify) block28_data_unref, 0);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			block28_data_unref (_data28_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_data28_ = NULL;
#line 982 "spice-display.c"
		}
		goto __finally53;
		__catch53_boxes_error:
		{
			GError* _error_ = NULL;
			GError* _tmp17_;
			const gchar* _tmp18_;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_error_ = _inner_error_;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_inner_error_ = NULL;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp17_ = _error_;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp18_ = _tmp17_->message;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_warning ("spice-display.vala:122: %s", _tmp18_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_error_free0 (_error_);
#line 1002 "spice-display.c"
		}
		__finally53:
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		if (_inner_error_ != NULL) {
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.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 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_clear_error (&_inner_error_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			return;
#line 1013 "spice-display.c"
		}
	}
}


static void ____lambda50__spice_session_channel_new (SpiceSession* _sender, SpiceChannel* channel, gpointer self) {
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	___lambda50_ (self, channel);
#line 1022 "spice-display.c"
}


static void ___lambda53_ (BoxesSpiceDisplay* self, SpiceChannel* channel) {
	SpiceChannel* _tmp0_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_if_fail (channel != NULL);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = channel;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, spice_display_channel_get_type ())) {
#line 1034 "spice-display.c"
		SpiceChannel* _tmp1_;
		SpiceDisplayChannel* _tmp2_;
		SpiceDisplayChannel* display;
		SpiceDisplayChannel* _tmp3_;
		gint _tmp4_ = 0;
		gint _tmp5_;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp1_ = channel;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, spice_display_channel_get_type ()) ? ((SpiceDisplayChannel*) _tmp1_) : NULL);
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		display = _tmp2_;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp3_ = display;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_object_get ((SpiceChannel*) _tmp3_, "channel-id", &_tmp4_, NULL);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp5_ = _tmp4_;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_signal_emit_by_name ((BoxesDisplay*) self, "hide", _tmp5_);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_g_object_unref0 (display);
#line 1057 "spice-display.c"
	}
}


static void ____lambda53__spice_session_channel_destroy (SpiceSession* _sender, SpiceChannel* channel, gpointer self) {
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	___lambda53_ (self, channel);
#line 1065 "spice-display.c"
}


static void boxes_spice_display_real_connect_it (BoxesDisplay* base) {
	BoxesSpiceDisplay * self;
	gulong _tmp0_;
	gulong _tmp3_;
	SpiceSession* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	SpiceSession* _tmp9_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = self->priv->channel_new_id;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (_tmp0_ == ((gulong) 0)) {
#line 1083 "spice-display.c"
		SpiceSession* _tmp1_;
		gulong _tmp2_ = 0UL;
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp1_ = self->priv->session;
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp2_ = g_signal_connect_object (_tmp1_, "channel-new", (GCallback) ____lambda50__spice_session_channel_new, self, 0);
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		self->priv->channel_new_id = _tmp2_;
#line 1092 "spice-display.c"
	}
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp3_ = self->priv->channel_destroy_id;
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	if (_tmp3_ == ((gulong) 0)) {
#line 1098 "spice-display.c"
		SpiceSession* _tmp4_;
		gulong _tmp5_ = 0UL;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp4_ = self->priv->session;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		_tmp5_ = g_signal_connect_object (_tmp4_, "channel-destroy", (GCallback) ____lambda53__spice_session_channel_destroy, self, 0);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		self->priv->channel_destroy_id = _tmp5_;
#line 1107 "spice-display.c"
	}
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp6_ = self->priv->session;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp7_ = boxes_display_get_password ((BoxesDisplay*) self);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp8_ = _tmp7_;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_set (_tmp6_, "password", _tmp8_, NULL);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp9_ = self->priv->session;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	spice_session_connect (_tmp9_);
#line 1121 "spice-display.c"
}


static void boxes_spice_display_real_disconnect_it (BoxesDisplay* base) {
	BoxesSpiceDisplay * self;
	SpiceSession* _tmp0_;
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = self->priv->session;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	spice_session_disconnect (_tmp0_);
#line 1134 "spice-display.c"
}


static void boxes_spice_display_main_event (BoxesSpiceDisplay* self, SpiceChannelEvent event) {
	SpiceChannelEvent _tmp0_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_if_fail (self != NULL);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = event;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	switch (_tmp0_) {
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case SPICE_CHANNEL_CLOSED:
#line 1148 "spice-display.c"
		{
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_signal_emit_by_name ((BoxesDisplay*) self, "disconnected");
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			break;
#line 1154 "spice-display.c"
		}
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case SPICE_CHANNEL_ERROR_AUTH:
#line 1158 "spice-display.c"
		{
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			boxes_display_set_need_password ((BoxesDisplay*) self, TRUE);
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			break;
#line 1164 "spice-display.c"
		}
		default:
		{
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			break;
#line 1170 "spice-display.c"
		}
	}
}


static void _g_object_unref0_ (gpointer var) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1179 "spice-display.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_list_free (self);
#line 1188 "spice-display.c"
}


static GList* boxes_spice_display_real_get_properties (BoxesIPropertiesProvider* base, BoxesPropertiesPage page) {
	BoxesSpiceDisplay * self;
	GList* result = NULL;
	GList* list;
	BoxesPropertiesPage _tmp0_;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	list = NULL;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = page;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	switch (_tmp0_) {
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case BOXES_PROPERTIES_PAGE_DISPLAY:
#line 1207 "spice-display.c"
		{
			GtkSwitch* _tmp1_;
			GtkSwitch* toggle;
			SpiceGtkSession* _tmp2_;
			GtkSwitch* _tmp3_;
			GtkSwitch* _tmp4_;
			const gchar* _tmp5_ = NULL;
			GtkSwitch* _tmp6_;
			BoxesProperty* _tmp7_ = NULL;
			BoxesProperty* _tmp8_;
			GtkSwitch* _tmp9_;
			GtkSwitch* _tmp10_;
			GtkSwitch* _tmp11_;
			const gchar* _tmp12_ = NULL;
			GtkSwitch* _tmp13_;
			BoxesProperty* _tmp14_ = NULL;
			BoxesProperty* _tmp15_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp1_ = (GtkSwitch*) gtk_switch_new ();
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_object_ref_sink (_tmp1_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			toggle = _tmp1_;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp2_ = self->priv->gtk_session;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp3_ = toggle;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_object_bind_property_with_closures ((GObject*) _tmp2_, "auto-clipboard", (GObject*) _tmp3_, "active", G_BINDING_BIDIRECTIONAL | 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 165 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp4_ = toggle;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			gtk_widget_set_halign ((GtkWidget*) _tmp4_, GTK_ALIGN_START);
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp5_ = _ ("Share clipboard");
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp6_ = toggle;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp7_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, _tmp5_, (GtkWidget*) _tmp6_);
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp8_ = _tmp7_;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_object_unref0 (_tmp8_);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp9_ = (GtkSwitch*) gtk_switch_new ();
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_object_ref_sink (_tmp9_);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_object_unref0 (toggle);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			toggle = _tmp9_;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp10_ = toggle;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_object_bind_property_with_closures ((GObject*) self, "resize-guest", (GObject*) _tmp10_, "active", G_BINDING_BIDIRECTIONAL | 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 171 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp11_ = toggle;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			gtk_widget_set_halign ((GtkWidget*) _tmp11_, GTK_ALIGN_START);
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp12_ = _ ("Resize guest");
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp13_ = toggle;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp14_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, _tmp12_, (GtkWidget*) _tmp13_);
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp15_ = _tmp14_;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_object_unref0 (_tmp15_);
#line 173 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_object_unref0 (toggle);
#line 173 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			break;
#line 1281 "spice-display.c"
		}
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case BOXES_PROPERTIES_PAGE_DEVICES:
#line 1285 "spice-display.c"
		{
			GtkSwitch* _tmp16_;
			GtkSwitch* toggle;
			SpiceGtkSession* _tmp17_;
			GtkSwitch* _tmp18_;
			GtkSwitch* _tmp19_;
			const gchar* _tmp20_ = NULL;
			GtkSwitch* _tmp21_;
			BoxesProperty* _tmp22_ = NULL;
			BoxesProperty* _tmp23_;
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp16_ = (GtkSwitch*) gtk_switch_new ();
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_object_ref_sink (_tmp16_);
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			toggle = _tmp16_;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp17_ = self->priv->gtk_session;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp18_ = toggle;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			g_object_bind_property_with_closures ((GObject*) _tmp17_, "auto-usbredir", (GObject*) _tmp18_, "active", G_BINDING_BIDIRECTIONAL | 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 179 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp19_ = toggle;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			gtk_widget_set_halign ((GtkWidget*) _tmp19_, GTK_ALIGN_START);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp20_ = _ ("USB redirection");
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp21_ = toggle;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp22_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, _tmp20_, (GtkWidget*) _tmp21_);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_tmp23_ = _tmp22_;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_object_unref0 (_tmp23_);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			_g_object_unref0 (toggle);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
			break;
#line 1326 "spice-display.c"
		}
		default:
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		break;
#line 1331 "spice-display.c"
	}
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	result = list;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return result;
#line 1337 "spice-display.c"
}


static const gchar* boxes_spice_display_real_get_protocol (BoxesDisplay* base) {
	const gchar* result;
	BoxesSpiceDisplay* self;
#line 6 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 6 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	result = "SPICE";
#line 6 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return result;
#line 1350 "spice-display.c"
}


static gchar* boxes_spice_display_real_get_uri (BoxesDisplay* base) {
	gchar* result;
	BoxesSpiceDisplay* self;
	SpiceSession* _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = (BoxesSpiceDisplay*) base;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = self->priv->session;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_get (_tmp0_, "uri", &_tmp1_, NULL);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_ = _tmp1_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	result = _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return result;
#line 1372 "spice-display.c"
}


gboolean boxes_spice_display_get_resize_guest (BoxesSpiceDisplay* self) {
	gboolean result;
	gboolean _tmp0_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = self->priv->_resize_guest;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	result = _tmp0_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return result;
#line 1387 "spice-display.c"
}


void boxes_spice_display_set_resize_guest (BoxesSpiceDisplay* self, gboolean value) {
	gboolean _tmp0_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_return_if_fail (self != NULL);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = value;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->_resize_guest = _tmp0_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_notify ((GObject *) self, "resize-guest");
#line 1401 "spice-display.c"
}


static void _boxes_spice_display___lambda54_ (BoxesSpiceDisplay* self) {
	SpiceGtkSession* _tmp0_;
	BoxesDisplaySavedProperty* _tmp1_;
	gint _tmp1__length1;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = self->priv->gtk_session;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp1_ = self->priv->gtk_session_saved_properties;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp1__length1 = self->priv->gtk_session_saved_properties_length1;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_display_sync_config_with_display ((BoxesDisplay*) self, (GObject*) _tmp0_, _tmp1_, _tmp1__length1);
#line 1417 "spice-display.c"
}


static void __boxes_spice_display___lambda54__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_boxes_spice_display___lambda54_ (self);
#line 1424 "spice-display.c"
}


static void _boxes_spice_display_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_spice_display_ui_state_changed (self);
#line 1431 "spice-display.c"
}


static GObject * boxes_spice_display_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	BoxesSpiceDisplay * self;
	gchar* _tmp0_;
	GValue _tmp1_ = {0};
	BoxesDisplaySavedProperty _tmp2_ = {0};
	BoxesDisplaySavedProperty* _tmp3_ = NULL;
	gchar* _tmp4_;
	GValue _tmp5_ = {0};
	BoxesDisplaySavedProperty _tmp6_ = {0};
	gchar* _tmp7_;
	GValue _tmp8_ = {0};
	BoxesDisplaySavedProperty _tmp9_ = {0};
	BoxesDisplaySavedProperty* _tmp10_ = NULL;
	SpiceSession* _tmp11_;
	SpiceSession* _tmp12_;
	SpiceAudio* _tmp13_ = NULL;
	SpiceSession* _tmp14_;
	SpiceGtkSession* _tmp15_ = NULL;
	BoxesApp* _tmp16_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	parent_class = G_OBJECT_CLASS (boxes_spice_display_parent_class);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp0_ = g_strdup ("resize-guest");
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_value_init (&_tmp1_, G_TYPE_BOOLEAN);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_value_set_boolean (&_tmp1_, TRUE);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	memset (&_tmp2_, 0, sizeof (BoxesDisplaySavedProperty));
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_g_free0 (_tmp2_.name);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_.name = _tmp0_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_IS_VALUE (&_tmp2_.default_value) ? (g_value_unset (&_tmp2_.default_value), NULL) : NULL;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp2_.default_value = _tmp1_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp3_ = g_new0 (BoxesDisplaySavedProperty, 1);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp3_[0] = _tmp2_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->display_saved_properties = (_vala_BoxesDisplaySavedProperty_array_free (self->priv->display_saved_properties, self->priv->display_saved_properties_length1), NULL);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->display_saved_properties = _tmp3_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->display_saved_properties_length1 = 1;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->_display_saved_properties_size_ = self->priv->display_saved_properties_length1;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp4_ = g_strdup ("auto-clipboard");
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_value_init (&_tmp5_, G_TYPE_BOOLEAN);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_value_set_boolean (&_tmp5_, TRUE);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	memset (&_tmp6_, 0, sizeof (BoxesDisplaySavedProperty));
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_g_free0 (_tmp6_.name);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp6_.name = _tmp4_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_IS_VALUE (&_tmp6_.default_value) ? (g_value_unset (&_tmp6_.default_value), NULL) : NULL;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp6_.default_value = _tmp5_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp7_ = g_strdup ("auto-usbredir");
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_value_init (&_tmp8_, G_TYPE_BOOLEAN);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_value_set_boolean (&_tmp8_, FALSE);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	memset (&_tmp9_, 0, sizeof (BoxesDisplaySavedProperty));
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_g_free0 (_tmp9_.name);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp9_.name = _tmp7_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_IS_VALUE (&_tmp9_.default_value) ? (g_value_unset (&_tmp9_.default_value), NULL) : NULL;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp9_.default_value = _tmp8_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp10_ = g_new0 (BoxesDisplaySavedProperty, 2);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp10_[0] = _tmp6_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp10_[1] = _tmp9_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->gtk_session_saved_properties = (_vala_BoxesDisplaySavedProperty_array_free (self->priv->gtk_session_saved_properties, self->priv->gtk_session_saved_properties_length1), NULL);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->gtk_session_saved_properties = _tmp10_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->gtk_session_saved_properties_length1 = 2;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->_gtk_session_saved_properties_size_ = self->priv->gtk_session_saved_properties_length1;
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_display_set_need_password ((BoxesDisplay*) self, FALSE);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp11_ = spice_session_new ();
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_g_object_unref0 (self->priv->session);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->session = _tmp11_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp12_ = self->priv->session;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp13_ = spice_audio_get (_tmp12_, NULL);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->audio = _tmp13_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp14_ = self->priv->session;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp15_ = spice_gtk_session_get (_tmp14_);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->gtk_session = _tmp15_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_signal_connect_object ((GObject*) self, "notify::config", (GCallback) __boxes_spice_display___lambda54__g_object_notify, self, 0);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_tmp16_ = boxes_app_app;
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_signal_connect_object ((GObject*) _tmp16_, "notify::ui-state", (GCallback) _boxes_spice_display_ui_state_changed_g_object_notify, self, 0);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	return obj;
#line 1564 "spice-display.c"
}


static void boxes_spice_display_class_init (BoxesSpiceDisplayClass * klass) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_spice_display_parent_class = g_type_class_peek_parent (klass);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_type_class_add_private (klass, sizeof (BoxesSpiceDisplayPrivate));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->get_display = boxes_spice_display_real_get_display;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->set_enable_inputs = boxes_spice_display_real_set_enable_inputs;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->get_pixbuf = boxes_spice_display_real_get_pixbuf;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->connect_it = boxes_spice_display_real_connect_it;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->disconnect_it = boxes_spice_display_real_disconnect_it;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->get_properties = boxes_spice_display_real_get_properties;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->get_protocol = boxes_spice_display_real_get_protocol;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	BOXES_DISPLAY_CLASS (klass)->get_uri = boxes_spice_display_real_get_uri;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_spice_display_get_property;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_spice_display_set_property;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_spice_display_constructor;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_spice_display_finalize;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_SPICE_DISPLAY_PROTOCOL, g_param_spec_string ("protocol", "protocol", "protocol", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_SPICE_DISPLAY_URI, g_param_spec_string ("uri", "uri", "uri", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_SPICE_DISPLAY_RESIZE_GUEST, g_param_spec_boolean ("resize-guest", "resize-guest", "resize-guest", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 1603 "spice-display.c"
}


static void boxes_spice_display_boxes_iproperties_provider_interface_init (BoxesIPropertiesProviderIface * iface) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	boxes_spice_display_boxes_iproperties_provider_parent_iface = g_type_interface_peek_parent (iface);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	iface->get_properties = (GList* (*)(BoxesIPropertiesProvider*, BoxesPropertiesPage)) boxes_spice_display_real_get_properties;
#line 1612 "spice-display.c"
}


static void boxes_spice_display_instance_init (BoxesSpiceDisplay * self) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv = BOXES_SPICE_DISPLAY_GET_PRIVATE (self);
#line 1619 "spice-display.c"
}


static void boxes_spice_display_finalize (GObject* obj) {
	BoxesSpiceDisplay * self;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	_g_object_unref0 (self->priv->session);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->display_saved_properties = (_vala_BoxesDisplaySavedProperty_array_free (self->priv->display_saved_properties, self->priv->display_saved_properties_length1), NULL);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	self->priv->gtk_session_saved_properties = (_vala_BoxesDisplaySavedProperty_array_free (self->priv->gtk_session_saved_properties, self->priv->gtk_session_saved_properties_length1), NULL);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	G_OBJECT_CLASS (boxes_spice_display_parent_class)->finalize (obj);
#line 1635 "spice-display.c"
}


GType boxes_spice_display_get_type (void) {
	static volatile gsize boxes_spice_display_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_spice_display_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesSpiceDisplayClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_spice_display_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesSpiceDisplay), 0, (GInstanceInitFunc) boxes_spice_display_instance_init, NULL };
		static const GInterfaceInfo boxes_iproperties_provider_info = { (GInterfaceInitFunc) boxes_spice_display_boxes_iproperties_provider_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_spice_display_type_id;
		boxes_spice_display_type_id = g_type_register_static (BOXES_TYPE_DISPLAY, "BoxesSpiceDisplay", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_spice_display_type_id, BOXES_TYPE_IPROPERTIES_PROVIDER, &boxes_iproperties_provider_info);
		g_once_init_leave (&boxes_spice_display_type_id__volatile, boxes_spice_display_type_id);
	}
	return boxes_spice_display_type_id__volatile;
}


static void _vala_boxes_spice_display_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesSpiceDisplay * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	switch (property_id) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case BOXES_SPICE_DISPLAY_PROTOCOL:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_value_set_string (value, boxes_display_get_protocol ((BoxesDisplay*) self));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		break;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case BOXES_SPICE_DISPLAY_URI:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_value_take_string (value, boxes_display_get_uri ((BoxesDisplay*) self));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		break;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case BOXES_SPICE_DISPLAY_RESIZE_GUEST:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		g_value_set_boolean (value, boxes_spice_display_get_resize_guest (self));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		break;
#line 1676 "spice-display.c"
		default:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		break;
#line 1682 "spice-display.c"
	}
}


static void _vala_boxes_spice_display_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesSpiceDisplay * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
	switch (property_id) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		case BOXES_SPICE_DISPLAY_RESIZE_GUEST:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		boxes_spice_display_set_resize_guest (self, g_value_get_boolean (value));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		break;
#line 1698 "spice-display.c"
		default:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/spice-display.vala"
		break;
#line 1704 "spice-display.c"
	}
}



