/* vnc-display.c generated by valac 0.36.1.38-6532, the Vala compiler
 * generated from vnc-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 <libcommon.h>
#include <stdlib.h>
#include <string.h>
#include <gtk-vnc.h>
#include <libxml/uri.h>
#include <float.h>
#include <math.h>
#include <cairo.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_VNC_DISPLAY (boxes_vnc_display_get_type ())
#define BOXES_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplay))
#define BOXES_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))
#define BOXES_IS_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_IS_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_VNC_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))

typedef struct _BoxesVncDisplay BoxesVncDisplay;
typedef struct _BoxesVncDisplayClass BoxesVncDisplayClass;
typedef struct _BoxesVncDisplayPrivate BoxesVncDisplayPrivate;
enum  {
	BOXES_VNC_DISPLAY_DUMMY_PROPERTY,
	BOXES_VNC_DISPLAY_PROTOCOL,
	BOXES_VNC_DISPLAY_URI,
	BOXES_VNC_DISPLAY_LAST_PROPERTY
};
static GParamSpec* boxes_vnc_display_properties[BOXES_VNC_DISPLAY_LAST_PROPERTY];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _xmlFreeURI0(var) ((var == NULL) ? NULL : (var = (xmlFreeURI (var), NULL)))
#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_GENERAL,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_SNAPSHOTS,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

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

typedef 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_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);
	const gchar* (*get_protocol) (BoxesDisplay* self);
	gchar* (*get_uri) (BoxesDisplay* self);
};

struct _BoxesVncDisplay {
	BoxesDisplay parent_instance;
	BoxesVncDisplayPrivate * priv;
};

struct _BoxesVncDisplayClass {
	BoxesDisplayClass parent_class;
};

struct _BoxesVncDisplayPrivate {
	VncDisplay* display;
	gchar* host;
	gint port;
	GtkWindow* window;
	BoxesBoxConfigSavedProperty* saved_properties;
	gint saved_properties_length1;
	gint _saved_properties_size_;
};


static gpointer boxes_vnc_display_parent_class = 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;
GType boxes_vnc_display_get_type (void) G_GNUC_CONST;
#define BOXES_VNC_DISPLAY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayPrivate))
static void _vala_BoxesBoxConfigSavedProperty_array_free (BoxesBoxConfigSavedProperty * array, gint array_length);
BoxesVncDisplay* boxes_vnc_display_new (BoxesBoxConfig* config, const gchar* host, gint port);
BoxesVncDisplay* boxes_vnc_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port);
BoxesDisplay* boxes_display_construct (GType object_type);
void boxes_display_set_config (BoxesDisplay* self, BoxesBoxConfig* value);
BoxesVncDisplay* boxes_vnc_display_new_with_uri (BoxesBoxConfig* config, const gchar* _uri, GError** error);
BoxesVncDisplay* boxes_vnc_display_construct_with_uri (GType object_type, BoxesBoxConfig* config, const gchar* _uri, GError** error);
static GtkWidget* boxes_vnc_display_real_get_display (BoxesDisplay* base, gint n);
static void boxes_vnc_display_real_set_enable_audio (BoxesDisplay* base, gboolean enable);
static GdkPixbuf* boxes_vnc_display_real_get_pixbuf (BoxesDisplay* base, gint n, GError** error);
static void boxes_vnc_display_real_connect_it (BoxesDisplay* base, BoxesDisplayOpenFDFunc open_fd, void* open_fd_target, GDestroyNotify open_fd_target_destroy_notify, GError** error);
const gchar* boxes_display_get_username (BoxesDisplay* self);
const gchar* boxes_display_get_password (BoxesDisplay* self);
static void boxes_vnc_display_real_disconnect_it (BoxesDisplay* base);
static GList* boxes_vnc_display_real_get_properties (BoxesDisplay* base, BoxesPropertiesPage page);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
static void boxes_vnc_display_real_send_keys (BoxesDisplay* base, guint* keyvals, int keyvals_length1);
void boxes_vnc_display_scale (BoxesVncDisplay* self);
static GObject * boxes_vnc_display_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
void boxes_display_set_need_password (BoxesDisplay* self, gboolean value);
static void _boxes_vnc_display___lambda85_ (BoxesVncDisplay* self);
void boxes_display_access_start (BoxesDisplay* self);
static void __boxes_vnc_display___lambda85__vnc_display_vnc_initialized (VncDisplay* _sender, gpointer self);
static void _boxes_vnc_display___lambda86_ (BoxesVncDisplay* self);
void boxes_display_access_finish (BoxesDisplay* self);
static void __boxes_vnc_display___lambda86__vnc_display_vnc_disconnected (VncDisplay* _sender, gpointer self);
static void _boxes_vnc_display___lambda87_ (BoxesVncDisplay* self);
static void __boxes_vnc_display___lambda87__vnc_display_vnc_auth_failure (VncDisplay* _sender, const gchar* object, gpointer self);
static void _boxes_vnc_display___lambda88_ (BoxesVncDisplay* self);
static void __boxes_vnc_display___lambda88__vnc_display_vnc_auth_unsupported (VncDisplay* _sender, guint object, gpointer self);
static void _boxes_vnc_display___lambda89_ (BoxesVncDisplay* self, GValueArray* creds);
void boxes_display_set_need_username (BoxesDisplay* self, gboolean value);
const gchar* vnc_display_credential_to_string (VncDisplayCredential self);
static void __boxes_vnc_display___lambda89__vnc_display_vnc_auth_credential (VncDisplay* _sender, GValueArray* credList, gpointer self);
static void _boxes_vnc_display_scale_gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self);
static void boxes_vnc_display_finalize (GObject * obj);
const gchar* boxes_display_get_protocol (BoxesDisplay* self);
gchar* boxes_display_get_uri (BoxesDisplay* self);
static void _vala_boxes_vnc_display_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


static void _vala_BoxesBoxConfigSavedProperty_array_free (BoxesBoxConfigSavedProperty * array, gint array_length) {
#line 12 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (array != NULL) {
#line 183 "vnc-display.c"
		int i;
#line 12 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 12 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			boxes_box_config_saved_property_destroy (&array[i]);
#line 189 "vnc-display.c"
		}
	}
#line 12 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_free (array);
#line 194 "vnc-display.c"
}


BoxesVncDisplay* boxes_vnc_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port) {
	BoxesVncDisplay * self = NULL;
	BoxesBoxConfig* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gint _tmp3_;
	BoxesBoxConfig* _tmp4_;
	VncDisplay* _tmp5_;
	BoxesBoxConfigSavedProperty* _tmp6_;
	gint _tmp6__length1;
#line 76 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_return_val_if_fail (host != NULL, NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) boxes_display_construct (object_type);
#line 77 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = config;
#line 77 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_display_set_config ((BoxesDisplay*) self, _tmp0_);
#line 79 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = host;
#line 79 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 79 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_free0 (self->priv->host);
#line 79 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->host = _tmp2_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_ = port;
#line 80 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->port = _tmp3_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp4_ = config;
#line 82 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp5_ = self->priv->display;
#line 82 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp6_ = self->priv->saved_properties;
#line 82 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp6__length1 = self->priv->saved_properties_length1;
#line 82 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_box_config_save_properties (_tmp4_, (GObject*) _tmp5_, _tmp6_, _tmp6__length1);
#line 76 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return self;
#line 242 "vnc-display.c"
}


BoxesVncDisplay* boxes_vnc_display_new (BoxesBoxConfig* config, const gchar* host, gint port) {
#line 76 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return boxes_vnc_display_construct (BOXES_TYPE_VNC_DISPLAY, config, host, port);
#line 249 "vnc-display.c"
}


BoxesVncDisplay* boxes_vnc_display_construct_with_uri (GType object_type, BoxesBoxConfig* config, const gchar* _uri, GError** error) {
	BoxesVncDisplay * self = NULL;
	BoxesBoxConfig* _tmp0_;
	xmlURI* uri = NULL;
	const gchar* _tmp1_;
	xmlURI* _tmp2_;
	xmlURI* _tmp3_;
	const gchar* _tmp4_;
	xmlURI* _tmp6_;
	const gchar* _tmp7_;
	xmlURI* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gint _tmp12_ = 0;
	xmlURI* _tmp13_;
	gint _tmp14_;
	BoxesBoxConfig* _tmp17_;
	VncDisplay* _tmp18_;
	BoxesBoxConfigSavedProperty* _tmp19_;
	gint _tmp19__length1;
	GError * _inner_error_ = NULL;
#line 85 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 85 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_return_val_if_fail (_uri != NULL, NULL);
#line 85 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) boxes_display_construct (object_type);
#line 86 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = config;
#line 86 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_display_set_config ((BoxesDisplay*) self, _tmp0_);
#line 88 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = _uri;
#line 88 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_ = xmlParseURI (_tmp1_);
#line 88 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	uri = _tmp2_;
#line 90 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_ = uri;
#line 90 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp4_ = _tmp3_->scheme;
#line 90 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (g_strcmp0 (_tmp4_, "vnc") != 0) {
#line 296 "vnc-display.c"
		GError* _tmp5_;
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp5_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "the URL is not vnc://");
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_inner_error_ = _tmp5_;
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			g_propagate_error (error, _inner_error_);
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			_xmlFreeURI0 (uri);
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			_g_object_unref0 (self);
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			return NULL;
#line 312 "vnc-display.c"
		} else {
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			_xmlFreeURI0 (uri);
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-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 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			g_clear_error (&_inner_error_);
#line 91 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			return NULL;
#line 322 "vnc-display.c"
		}
	}
#line 93 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp6_ = uri;
#line 93 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp7_ = _tmp6_->server;
#line 93 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (_tmp7_ == NULL) {
#line 331 "vnc-display.c"
		GError* _tmp8_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp8_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "the URL is missing a server");
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_inner_error_ = _tmp8_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			g_propagate_error (error, _inner_error_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			_xmlFreeURI0 (uri);
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			_g_object_unref0 (self);
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			return NULL;
#line 347 "vnc-display.c"
		} else {
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			_xmlFreeURI0 (uri);
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-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 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			g_clear_error (&_inner_error_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			return NULL;
#line 357 "vnc-display.c"
		}
	}
#line 96 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp9_ = uri;
#line 96 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp10_ = _tmp9_->server;
#line 96 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp11_ = g_strdup (_tmp10_);
#line 96 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_free0 (self->priv->host);
#line 96 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->host = _tmp11_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp13_ = uri;
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp14_ = _tmp13_->port;
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (_tmp14_ <= 0) {
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp12_ = 5900;
#line 378 "vnc-display.c"
	} else {
		xmlURI* _tmp15_;
		gint _tmp16_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp15_ = uri;
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp16_ = _tmp15_->port;
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp12_ = _tmp16_;
#line 388 "vnc-display.c"
	}
#line 97 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->port = _tmp12_;
#line 99 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp17_ = config;
#line 99 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp18_ = self->priv->display;
#line 99 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp19_ = self->priv->saved_properties;
#line 99 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp19__length1 = self->priv->saved_properties_length1;
#line 99 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_box_config_save_properties (_tmp17_, (GObject*) _tmp18_, _tmp19_, _tmp19__length1);
#line 85 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_xmlFreeURI0 (uri);
#line 85 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return self;
#line 406 "vnc-display.c"
}


BoxesVncDisplay* boxes_vnc_display_new_with_uri (BoxesBoxConfig* config, const gchar* _uri, GError** error) {
#line 85 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return boxes_vnc_display_construct_with_uri (BOXES_TYPE_VNC_DISPLAY, config, _uri, error);
#line 413 "vnc-display.c"
}


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


static GtkWidget* boxes_vnc_display_real_get_display (BoxesDisplay* base, gint n) {
	BoxesVncDisplay * self;
	GtkWidget* result = NULL;
	GtkWindow* _tmp0_;
	VncDisplay* _tmp1_;
	VncDisplay* _tmp2_;
	GtkWidget* _tmp3_;
#line 102 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 103 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = self->priv->window;
#line 103 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = self->priv->display;
#line 103 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	gtk_container_remove ((GtkContainer*) _tmp0_, (GtkWidget*) _tmp1_);
#line 105 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_ = self->priv->display;
#line 105 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_ = _g_object_ref0 ((GtkWidget*) _tmp2_);
#line 105 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	result = _tmp3_;
#line 105 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return result;
#line 447 "vnc-display.c"
}


static void boxes_vnc_display_real_set_enable_audio (BoxesDisplay* base, gboolean enable) {
	BoxesVncDisplay * self;
#line 108 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 455 "vnc-display.c"
}


static GdkPixbuf* boxes_vnc_display_real_get_pixbuf (BoxesDisplay* base, gint n, GError** error) {
	BoxesVncDisplay * self;
	GdkPixbuf* result = NULL;
	VncDisplay* _tmp0_;
	GdkPixbuf* _tmp1_;
#line 111 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 112 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = self->priv->display;
#line 112 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = vnc_display_get_pixbuf (_tmp0_);
#line 112 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	result = _tmp1_;
#line 112 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return result;
#line 474 "vnc-display.c"
}


static void boxes_vnc_display_real_connect_it (BoxesDisplay* base, BoxesDisplayOpenFDFunc open_fd, void* open_fd_target, GDestroyNotify open_fd_target_destroy_notify, GError** error) {
	BoxesVncDisplay * self;
	gboolean _tmp0_;
	VncDisplay* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	VncDisplay* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	VncDisplay* _tmp7_;
	BoxesDisplayOpenFDFunc _tmp8_;
	void* _tmp8__target;
#line 115 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 117 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = ((BoxesDisplay*) self)->connected;
#line 117 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (_tmp0_) {
#line 118 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		(open_fd_target_destroy_notify == NULL) ? NULL : (open_fd_target_destroy_notify (open_fd_target), NULL);
#line 118 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		open_fd = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		open_fd_target = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		open_fd_target_destroy_notify = NULL;
#line 118 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		return;
#line 506 "vnc-display.c"
	}
#line 119 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplay*) self)->connected = TRUE;
#line 122 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = self->priv->display;
#line 122 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_ = boxes_display_get_username ((BoxesDisplay*) self);
#line 122 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_ = _tmp2_;
#line 122 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_set_credential (_tmp1_, (gint) VNC_DISPLAY_CREDENTIAL_USERNAME, _tmp3_);
#line 123 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp4_ = self->priv->display;
#line 123 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp5_ = boxes_display_get_password ((BoxesDisplay*) self);
#line 123 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp6_ = _tmp5_;
#line 123 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_set_credential (_tmp4_, (gint) VNC_DISPLAY_CREDENTIAL_PASSWORD, _tmp6_);
#line 124 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp7_ = self->priv->display;
#line 124 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_set_credential (_tmp7_, (gint) VNC_DISPLAY_CREDENTIAL_CLIENTNAME, "boxes");
#line 126 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp8_ = open_fd;
#line 126 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp8__target = open_fd_target;
#line 126 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (_tmp8_ != NULL) {
#line 536 "vnc-display.c"
		gint fd = 0;
		BoxesDisplayOpenFDFunc _tmp9_;
		void* _tmp9__target;
		gint _tmp10_;
		VncDisplay* _tmp11_;
		gint _tmp12_;
		const gchar* _tmp13_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp9_ = open_fd;
#line 127 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp9__target = open_fd_target;
#line 127 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp10_ = _tmp9_ (_tmp9__target);
#line 127 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		fd = _tmp10_;
#line 128 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp11_ = self->priv->display;
#line 128 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp12_ = fd;
#line 128 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp13_ = self->priv->host;
#line 128 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		vnc_display_open_fd_with_hostname (_tmp11_, _tmp12_, _tmp13_);
#line 560 "vnc-display.c"
	} else {
		VncDisplay* _tmp14_;
		const gchar* _tmp15_;
		gint _tmp16_;
		gchar* _tmp17_;
		gchar* _tmp18_;
#line 130 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp14_ = self->priv->display;
#line 130 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp15_ = self->priv->host;
#line 130 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp16_ = self->priv->port;
#line 130 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp17_ = g_strdup_printf ("%i", _tmp16_);
#line 130 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp18_ = _tmp17_;
#line 130 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		vnc_display_open_host (_tmp14_, _tmp15_, _tmp18_);
#line 130 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_g_free0 (_tmp18_);
#line 581 "vnc-display.c"
	}
#line 115 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	(open_fd_target_destroy_notify == NULL) ? NULL : (open_fd_target_destroy_notify (open_fd_target), NULL);
#line 115 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	open_fd = NULL;
#line 115 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	open_fd_target = NULL;
#line 115 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	open_fd_target_destroy_notify = NULL;
#line 591 "vnc-display.c"
}


static void boxes_vnc_display_real_disconnect_it (BoxesDisplay* base) {
	BoxesVncDisplay * self;
	VncDisplay* _tmp0_;
	gboolean _tmp1_;
#line 133 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 134 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = self->priv->display;
#line 134 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = vnc_display_is_open (_tmp0_);
#line 134 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (_tmp1_) {
#line 607 "vnc-display.c"
		VncDisplay* _tmp2_;
#line 135 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp2_ = self->priv->display;
#line 135 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		vnc_display_close (_tmp2_);
#line 613 "vnc-display.c"
	}
}


static void _g_object_unref0_ (gpointer var) {
#line 138 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 621 "vnc-display.c"
}


static inline void _g_list_free__g_object_unref0_ (GList* self) {
#line 138 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
#line 628 "vnc-display.c"
}


static GList* boxes_vnc_display_real_get_properties (BoxesDisplay* base, BoxesPropertiesPage page) {
	BoxesVncDisplay * self;
	GList* result = NULL;
	GList* list = NULL;
#line 138 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 139 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	list = NULL;
#line 141 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	result = list;
#line 141 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return result;
#line 644 "vnc-display.c"
}


static void boxes_vnc_display_real_send_keys (BoxesDisplay* base, guint* keyvals, int keyvals_length1) {
	BoxesVncDisplay * self;
	VncDisplay* _tmp0_;
	guint* _tmp1_;
	gint _tmp1__length1;
#line 144 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 145 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = self->priv->display;
#line 145 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = keyvals;
#line 145 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1__length1 = keyvals_length1;
#line 145 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_send_keys (_tmp0_, _tmp1_, _tmp1__length1);
#line 663 "vnc-display.c"
}


void boxes_vnc_display_scale (BoxesVncDisplay* self) {
	VncDisplay* _tmp0_;
	gboolean _tmp1_;
	GtkAllocation alloc = {0};
	VncDisplay* _tmp2_;
	GtkContainer* _tmp3_;
	GtkAllocation _tmp4_ = {0};
	gdouble parent_aspect = 0.0;
	GtkAllocation _tmp5_;
	gint _tmp6_;
	GtkAllocation _tmp7_;
	gint _tmp8_;
	gdouble display_aspect = 0.0;
	VncDisplay* _tmp9_;
	gint _tmp10_;
	VncDisplay* _tmp11_;
	gint _tmp12_;
	GtkAllocation scaled = {0};
	GtkAllocation _tmp13_;
	gdouble _tmp14_;
	gdouble _tmp15_;
	VncDisplay* _tmp32_;
	GtkAllocation _tmp33_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_return_if_fail (self != NULL);
#line 149 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = self->priv->display;
#line 149 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = vnc_display_is_open (_tmp0_);
#line 149 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (!_tmp1_) {
#line 150 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		return;
#line 700 "vnc-display.c"
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_ = self->priv->display;
#line 154 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_ = (GtkContainer*) gtk_widget_get_parent ((GtkWidget*) _tmp2_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	gtk_widget_get_allocation ((GtkWidget*) _tmp3_, &_tmp4_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	alloc = _tmp4_;
#line 156 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp5_ = alloc;
#line 156 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp6_ = _tmp5_.width;
#line 156 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp7_ = alloc;
#line 156 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp8_ = _tmp7_.height;
#line 156 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	parent_aspect = ((gdouble) _tmp6_) / ((gdouble) _tmp8_);
#line 157 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp9_ = self->priv->display;
#line 157 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp10_ = vnc_display_get_width (_tmp9_);
#line 157 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp11_ = self->priv->display;
#line 157 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp12_ = vnc_display_get_height (_tmp11_);
#line 157 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	display_aspect = ((gdouble) _tmp10_) / ((gdouble) _tmp12_);
#line 158 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp13_ = alloc;
#line 158 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	scaled = _tmp13_;
#line 159 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp14_ = parent_aspect;
#line 159 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp15_ = display_aspect;
#line 159 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	if (_tmp14_ > _tmp15_) {
#line 740 "vnc-display.c"
		GtkAllocation _tmp16_;
		gint _tmp17_;
		gdouble _tmp18_;
		gint _tmp19_;
		GtkAllocation _tmp20_;
		gint _tmp21_;
		GtkAllocation _tmp22_;
		gint _tmp23_;
#line 160 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp16_ = alloc;
#line 160 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp17_ = _tmp16_.height;
#line 160 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp18_ = display_aspect;
#line 160 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		scaled.width = (gint) (_tmp17_ * _tmp18_);
#line 161 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp19_ = scaled.x;
#line 161 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp20_ = alloc;
#line 161 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp21_ = _tmp20_.width;
#line 161 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp22_ = scaled;
#line 161 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp23_ = _tmp22_.width;
#line 161 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		scaled.x = _tmp19_ + ((_tmp21_ - _tmp23_) / 2);
#line 769 "vnc-display.c"
	} else {
		GtkAllocation _tmp24_;
		gint _tmp25_;
		gdouble _tmp26_;
		gint _tmp27_;
		GtkAllocation _tmp28_;
		gint _tmp29_;
		GtkAllocation _tmp30_;
		gint _tmp31_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp24_ = alloc;
#line 163 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp25_ = _tmp24_.width;
#line 163 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp26_ = display_aspect;
#line 163 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		scaled.height = (gint) (_tmp25_ / _tmp26_);
#line 164 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp27_ = scaled.y;
#line 164 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp28_ = alloc;
#line 164 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp29_ = _tmp28_.height;
#line 164 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp30_ = scaled;
#line 164 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		_tmp31_ = _tmp30_.height;
#line 164 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		scaled.y = _tmp27_ + ((_tmp29_ - _tmp31_) / 2);
#line 799 "vnc-display.c"
	}
#line 167 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp32_ = self->priv->display;
#line 167 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp33_ = scaled;
#line 167 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	gtk_widget_size_allocate ((GtkWidget*) _tmp32_, &_tmp33_);
#line 807 "vnc-display.c"
}


static const gchar* boxes_vnc_display_real_get_protocol (BoxesDisplay* base) {
	const gchar* result;
	BoxesVncDisplay* self;
#line 6 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 6 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	result = "VNC";
#line 6 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return result;
#line 820 "vnc-display.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1442 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1443 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	result = self;
#line 1443 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	return result;
#line 832 "vnc-display.c"
}


static gchar* boxes_vnc_display_real_get_uri (BoxesDisplay* base) {
	gchar* result;
	BoxesVncDisplay* self;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gint _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = (BoxesVncDisplay*) base;
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = self->priv->host;
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp1_ = string_to_string (_tmp0_);
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_ = self->priv->port;
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_ = g_strdup_printf ("%i", _tmp2_);
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp4_ = _tmp3_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp5_ = g_strconcat ("vnc://", _tmp1_, ":", _tmp4_, NULL);
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp6_ = _tmp5_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_free0 (_tmp4_);
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	result = _tmp6_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return result;
#line 868 "vnc-display.c"
}


static void _boxes_vnc_display___lambda85_ (BoxesVncDisplay* self) {
#line 33 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_emit_by_name ((BoxesDisplay*) self, "show", 0);
#line 34 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_display_access_start ((BoxesDisplay*) self);
#line 877 "vnc-display.c"
}


static void __boxes_vnc_display___lambda85__vnc_display_vnc_initialized (VncDisplay* _sender, gpointer self) {
#line 32 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_boxes_vnc_display___lambda85_ ((BoxesVncDisplay*) self);
#line 884 "vnc-display.c"
}


static void _boxes_vnc_display___lambda86_ (BoxesVncDisplay* self) {
#line 37 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_emit_by_name ((BoxesDisplay*) self, "hide", 0);
#line 38 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_display_access_finish ((BoxesDisplay*) self);
#line 893 "vnc-display.c"
}


static void __boxes_vnc_display___lambda86__vnc_display_vnc_disconnected (VncDisplay* _sender, gpointer self) {
#line 36 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_boxes_vnc_display___lambda86_ ((BoxesVncDisplay*) self);
#line 900 "vnc-display.c"
}


static void _boxes_vnc_display___lambda87_ (BoxesVncDisplay* self) {
#line 42 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_debug ("vnc-display.vala:42: auth failure");
#line 907 "vnc-display.c"
}


static void __boxes_vnc_display___lambda87__vnc_display_vnc_auth_failure (VncDisplay* _sender, const gchar* object, gpointer self) {
#line 41 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_boxes_vnc_display___lambda87_ ((BoxesVncDisplay*) self);
#line 914 "vnc-display.c"
}


static void _boxes_vnc_display___lambda88_ (BoxesVncDisplay* self) {
#line 45 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_debug ("vnc-display.vala:45: auth unsupported");
#line 921 "vnc-display.c"
}


static void __boxes_vnc_display___lambda88__vnc_display_vnc_auth_unsupported (VncDisplay* _sender, guint object, gpointer self) {
#line 44 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_boxes_vnc_display___lambda88_ ((BoxesVncDisplay*) self);
#line 928 "vnc-display.c"
}


static void _boxes_vnc_display___lambda89_ (BoxesVncDisplay* self, GValueArray* creds) {
	GValueArray* _tmp0_;
	VncDisplay* _tmp7_;
#line 48 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_return_if_fail (creds != NULL);
#line 49 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = creds;
#line 939 "vnc-display.c"
	{
		GValueArray* cred_collection = NULL;
		guint cred_index = 0U;
#line 49 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		cred_collection = _tmp0_;
#line 49 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		for (cred_index = 0; cred_index < cred_collection->n_values; cred_index = cred_index + 1) {
#line 947 "vnc-display.c"
			GValue cred = {0};
#line 49 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
			cred = *g_value_array_get_nth (cred_collection, cred_index);
#line 951 "vnc-display.c"
			{
				VncDisplayCredential credential = 0;
				GValue _tmp1_;
				VncDisplayCredential _tmp2_;
#line 50 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
				_tmp1_ = cred;
#line 50 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
				credential = g_value_get_enum (&_tmp1_);
#line 52 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
				_tmp2_ = credential;
#line 52 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
				switch (_tmp2_) {
#line 52 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
					case VNC_DISPLAY_CREDENTIAL_USERNAME:
#line 966 "vnc-display.c"
					{
#line 54 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						boxes_display_set_need_username ((BoxesDisplay*) self, TRUE);
#line 55 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						break;
#line 972 "vnc-display.c"
					}
#line 52 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
					case VNC_DISPLAY_CREDENTIAL_PASSWORD:
#line 976 "vnc-display.c"
					{
#line 58 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						boxes_display_set_need_password ((BoxesDisplay*) self, TRUE);
#line 59 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						break;
#line 982 "vnc-display.c"
					}
#line 52 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
					case VNC_DISPLAY_CREDENTIAL_CLIENTNAME:
#line 986 "vnc-display.c"
					{
#line 62 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						break;
#line 990 "vnc-display.c"
					}
					default:
					{
						VncDisplayCredential _tmp3_;
						GEnumValue* _tmp4_;
						gchar* _tmp5_;
						gchar* _tmp6_;
#line 65 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						_tmp3_ = credential;
#line 65 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						_tmp4_ = g_enum_get_value (g_type_class_ref (vnc_display_credential_get_type ()), _tmp3_);
#line 65 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						_tmp5_ = g_strdup_printf ("Unsupported credential: %s", (_tmp4_ != NULL) ? _tmp4_->value_name : NULL);
#line 65 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						_tmp6_ = _tmp5_;
#line 65 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						g_debug ("vnc-display.vala:65: %s", _tmp6_);
#line 65 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						_g_free0 (_tmp6_);
#line 66 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
						break;
#line 1012 "vnc-display.c"
					}
				}
			}
		}
	}
#line 70 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp7_ = self->priv->display;
#line 70 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_close (_tmp7_);
#line 1022 "vnc-display.c"
}


static void __boxes_vnc_display___lambda89__vnc_display_vnc_auth_credential (VncDisplay* _sender, GValueArray* credList, gpointer self) {
#line 48 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_boxes_vnc_display___lambda89_ ((BoxesVncDisplay*) self, credList);
#line 1029 "vnc-display.c"
}


static void _boxes_vnc_display_scale_gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self) {
#line 73 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_vnc_display_scale ((BoxesVncDisplay*) self);
#line 1036 "vnc-display.c"
}


static GObject * boxes_vnc_display_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	BoxesVncDisplay * self;
	gchar* _tmp0_;
	GValue _tmp1_ = {0};
	BoxesBoxConfigSavedProperty _tmp2_ = {0};
	BoxesBoxConfigSavedProperty* _tmp3_;
	VncDisplay* _tmp4_;
	VncDisplay* _tmp5_;
	VncDisplay* _tmp6_;
	VncDisplay* _tmp7_;
	VncDisplay* _tmp8_;
	GtkWindow* _tmp9_;
	GtkWindow* _tmp10_;
	VncDisplay* _tmp11_;
	VncDisplay* _tmp12_;
	VncDisplay* _tmp13_;
	VncDisplay* _tmp14_;
	VncDisplay* _tmp15_;
	VncDisplay* _tmp16_;
	VncDisplay* _tmp17_;
	VncDisplay* _tmp18_;
#line 14 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	parent_class = G_OBJECT_CLASS (boxes_vnc_display_parent_class);
#line 14 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 14 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplay);
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp0_ = g_strdup ("read-only");
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_value_init (&_tmp1_, G_TYPE_BOOLEAN);
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_value_set_boolean (&_tmp1_, FALSE);
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	memset (&_tmp2_, 0, sizeof (BoxesBoxConfigSavedProperty));
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_free0 (_tmp2_.name);
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_.name = _tmp0_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	G_IS_VALUE (&_tmp2_.default_value) ? (g_value_unset (&_tmp2_.default_value), NULL) : NULL;
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp2_.default_value = _tmp1_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_ = g_new0 (BoxesBoxConfigSavedProperty, 1);
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp3_[0] = _tmp2_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->saved_properties = (_vala_BoxesBoxConfigSavedProperty_array_free (self->priv->saved_properties, self->priv->saved_properties_length1), NULL);
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->saved_properties = _tmp3_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->saved_properties_length1 = 1;
#line 15 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->_saved_properties_size_ = self->priv->saved_properties_length1;
#line 18 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_display_set_need_password ((BoxesDisplay*) self, FALSE);
#line 20 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp4_ = (VncDisplay*) vnc_display_new ();
#line 20 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_object_ref_sink (_tmp4_);
#line 20 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_object_unref0 (self->priv->display);
#line 20 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->display = _tmp4_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp5_ = self->priv->display;
#line 21 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_set_keyboard_grab (_tmp5_, TRUE);
#line 22 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp6_ = self->priv->display;
#line 22 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_set_pointer_grab (_tmp6_, TRUE);
#line 23 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp7_ = self->priv->display;
#line 23 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_set_force_size (_tmp7_, FALSE);
#line 24 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp8_ = self->priv->display;
#line 24 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	vnc_display_set_scaling (_tmp8_, TRUE);
#line 28 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp9_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
#line 28 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_object_ref_sink (_tmp9_);
#line 28 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_object_unref0 (self->priv->window);
#line 28 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->window = _tmp9_;
#line 29 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp10_ = self->priv->window;
#line 29 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp11_ = self->priv->display;
#line 29 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	gtk_container_add ((GtkContainer*) _tmp10_, (GtkWidget*) _tmp11_);
#line 30 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp12_ = self->priv->display;
#line 30 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	gtk_widget_realize ((GtkWidget*) _tmp12_);
#line 32 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp13_ = self->priv->display;
#line 32 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_connect_object (_tmp13_, "vnc-initialized", (GCallback) __boxes_vnc_display___lambda85__vnc_display_vnc_initialized, self, 0);
#line 36 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp14_ = self->priv->display;
#line 36 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_connect_object (_tmp14_, "vnc-disconnected", (GCallback) __boxes_vnc_display___lambda86__vnc_display_vnc_disconnected, self, 0);
#line 41 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp15_ = self->priv->display;
#line 41 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_connect_object (_tmp15_, "vnc-auth-failure", (GCallback) __boxes_vnc_display___lambda87__vnc_display_vnc_auth_failure, self, 0);
#line 44 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp16_ = self->priv->display;
#line 44 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_connect_object (_tmp16_, "vnc-auth-unsupported", (GCallback) __boxes_vnc_display___lambda88__vnc_display_vnc_auth_unsupported, self, 0);
#line 48 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp17_ = self->priv->display;
#line 48 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_connect_object (_tmp17_, "vnc-auth-credential", (GCallback) __boxes_vnc_display___lambda89__vnc_display_vnc_auth_credential, self, 0);
#line 73 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_tmp18_ = self->priv->display;
#line 73 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_signal_connect_object ((GtkWidget*) _tmp18_, "size-allocate", (GCallback) _boxes_vnc_display_scale_gtk_widget_size_allocate, self, 0);
#line 14 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	return obj;
#line 1167 "vnc-display.c"
}


static void boxes_vnc_display_class_init (BoxesVncDisplayClass * klass) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	boxes_vnc_display_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_type_class_add_private (klass, sizeof (BoxesVncDisplayPrivate));
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplayClass *) klass)->get_display = (GtkWidget* (*) (BoxesDisplay *, gint)) boxes_vnc_display_real_get_display;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplayClass *) klass)->set_enable_audio = (void (*) (BoxesDisplay *, gboolean)) boxes_vnc_display_real_set_enable_audio;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplayClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (BoxesDisplay *, gint, GError**)) boxes_vnc_display_real_get_pixbuf;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplayClass *) klass)->connect_it = (void (*) (BoxesDisplay *, BoxesDisplayOpenFDFunc, void*, GDestroyNotify, GError**)) boxes_vnc_display_real_connect_it;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplayClass *) klass)->disconnect_it = (void (*) (BoxesDisplay *)) boxes_vnc_display_real_disconnect_it;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplayClass *) klass)->get_properties = (GList* (*) (BoxesDisplay *, BoxesPropertiesPage)) boxes_vnc_display_real_get_properties;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	((BoxesDisplayClass *) klass)->send_keys = (void (*) (BoxesDisplay *, guint*, int)) boxes_vnc_display_real_send_keys;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	BOXES_DISPLAY_CLASS (klass)->get_protocol = boxes_vnc_display_real_get_protocol;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	BOXES_DISPLAY_CLASS (klass)->get_uri = boxes_vnc_display_real_get_uri;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_vnc_display_get_property;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_vnc_display_constructor;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_vnc_display_finalize;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_VNC_DISPLAY_PROTOCOL, boxes_vnc_display_properties[BOXES_VNC_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 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_VNC_DISPLAY_URI, boxes_vnc_display_properties[BOXES_VNC_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 1204 "vnc-display.c"
}


static void boxes_vnc_display_instance_init (BoxesVncDisplay * self) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv = BOXES_VNC_DISPLAY_GET_PRIVATE (self);
#line 1211 "vnc-display.c"
}


static void boxes_vnc_display_finalize (GObject * obj) {
	BoxesVncDisplay * self;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplay);
#line 8 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_object_unref0 (self->priv->display);
#line 9 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_free0 (self->priv->host);
#line 11 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	_g_object_unref0 (self->priv->window);
#line 12 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	self->priv->saved_properties = (_vala_BoxesBoxConfigSavedProperty_array_free (self->priv->saved_properties, self->priv->saved_properties_length1), NULL);
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	G_OBJECT_CLASS (boxes_vnc_display_parent_class)->finalize (obj);
#line 1229 "vnc-display.c"
}


GType boxes_vnc_display_get_type (void) {
	static volatile gsize boxes_vnc_display_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_vnc_display_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesVncDisplayClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_vnc_display_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesVncDisplay), 0, (GInstanceInitFunc) boxes_vnc_display_instance_init, NULL };
		GType boxes_vnc_display_type_id;
		boxes_vnc_display_type_id = g_type_register_static (BOXES_TYPE_DISPLAY, "BoxesVncDisplay", &g_define_type_info, 0);
		g_once_init_leave (&boxes_vnc_display_type_id__volatile, boxes_vnc_display_type_id);
	}
	return boxes_vnc_display_type_id__volatile;
}


static void _vala_boxes_vnc_display_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesVncDisplay * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplay);
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
	switch (property_id) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		case BOXES_VNC_DISPLAY_PROTOCOL:
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		g_value_set_string (value, boxes_display_get_protocol ((BoxesDisplay*) self));
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		break;
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		case BOXES_VNC_DISPLAY_URI:
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		g_value_take_string (value, boxes_display_get_uri ((BoxesDisplay*) self));
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		break;
#line 1262 "vnc-display.c"
		default:
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/fborges/checkout/gnome-boxes/src/vnc-display.vala"
		break;
#line 1268 "vnc-display.c"
	}
}



