/* properties-window.c generated by valac 0.26.0.50-d9a75, the Vala compiler
 * generated from properties-window.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/gdk.h>


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

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIIface BoxesUIIface;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())

#define BOXES_TYPE_PROPERTIES_WINDOW (boxes_properties_window_get_type ())
#define BOXES_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindow))
#define BOXES_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))
#define BOXES_IS_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_IS_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))

typedef struct _BoxesPropertiesWindow BoxesPropertiesWindow;
typedef struct _BoxesPropertiesWindowClass BoxesPropertiesWindowClass;
typedef struct _BoxesPropertiesWindowPrivate BoxesPropertiesWindowPrivate;

#define BOXES_TYPE_PROPERTIES (boxes_properties_get_type ())
#define BOXES_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES, BoxesProperties))
#define BOXES_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))
#define BOXES_IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES))
#define BOXES_IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES))
#define BOXES_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))

typedef struct _BoxesProperties BoxesProperties;
typedef struct _BoxesPropertiesClass BoxesPropertiesClass;

#define BOXES_TYPE_PROPERTIES_TOOLBAR (boxes_properties_toolbar_get_type ())
#define BOXES_PROPERTIES_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES_TOOLBAR, BoxesPropertiesToolbar))
#define BOXES_PROPERTIES_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES_TOOLBAR, BoxesPropertiesToolbarClass))
#define BOXES_IS_PROPERTIES_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES_TOOLBAR))
#define BOXES_IS_PROPERTIES_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES_TOOLBAR))
#define BOXES_PROPERTIES_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES_TOOLBAR, BoxesPropertiesToolbarClass))

typedef struct _BoxesPropertiesToolbar BoxesPropertiesToolbar;
typedef struct _BoxesPropertiesToolbarClass BoxesPropertiesToolbarClass;

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

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _BoxesPropertiesToolbarPrivate BoxesPropertiesToolbarPrivate;

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

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

struct _BoxesPropertiesWindow {
	GtkWindow parent_instance;
	BoxesPropertiesWindowPrivate * priv;
	BoxesProperties* properties;
	BoxesPropertiesToolbar* topbar;
};

struct _BoxesPropertiesWindowClass {
	GtkWindowClass parent_class;
};

struct _BoxesPropertiesWindowPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
	BoxesAppWindow* app_window;
};

struct _BoxesPropertiesToolbar {
	GtkHeaderBar parent_instance;
	BoxesPropertiesToolbarPrivate * priv;
	GtkButton* back_button;
};

struct _BoxesPropertiesToolbarClass {
	GtkHeaderBarClass parent_class;
};


static gpointer boxes_properties_window_parent_class = NULL;
static BoxesUIIface* boxes_properties_window_boxes_ui_parent_iface = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_properties_window_get_type (void) G_GNUC_CONST;
GType boxes_properties_get_type (void) G_GNUC_CONST;
GType boxes_properties_toolbar_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
#define BOXES_PROPERTIES_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowPrivate))
enum  {
	BOXES_PROPERTIES_WINDOW_DUMMY_PROPERTY,
	BOXES_PROPERTIES_WINDOW_PREVIOUS_UI_STATE,
	BOXES_PROPERTIES_WINDOW_UI_STATE
};
BoxesPropertiesWindow* boxes_properties_window_new (BoxesAppWindow* app_window);
BoxesPropertiesWindow* boxes_properties_window_construct (GType object_type, BoxesAppWindow* app_window);
void boxes_properties_setup_ui (BoxesProperties* self, BoxesAppWindow* window, BoxesPropertiesWindow* dialog);
void boxes_properties_toolbar_setup_ui (BoxesPropertiesToolbar* self, BoxesAppWindow* window);
static void boxes_properties_window_ui_state_changed (BoxesPropertiesWindow* self);
static void _boxes_properties_window_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
void boxes_ui_set_state (BoxesUI* self, BoxesUIState new_state);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
static gboolean boxes_properties_window_on_key_pressed (BoxesPropertiesWindow* self, GtkWidget* widget, GdkEventKey* event);
static gboolean _boxes_properties_window_on_key_pressed_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self);
static gboolean boxes_properties_window_on_delete_event (BoxesPropertiesWindow* self);
static gboolean _boxes_properties_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
static void boxes_properties_window_finalize (GObject* obj);
static void _vala_boxes_properties_window_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void boxes_ui_set_previous_ui_state (BoxesUI* self, BoxesUIState value);
void boxes_ui_set_ui_state (BoxesUI* self, BoxesUIState value);
static void _vala_boxes_properties_window_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void _boxes_properties_window_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	boxes_properties_window_ui_state_changed ((BoxesPropertiesWindow*) self);
#line 149 "properties-window.c"
}


BoxesPropertiesWindow* boxes_properties_window_construct (GType object_type, BoxesAppWindow* app_window) {
	BoxesPropertiesWindow * self = NULL;
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesProperties* _tmp1_ = NULL;
	BoxesAppWindow* _tmp2_ = NULL;
	BoxesPropertiesToolbar* _tmp3_ = NULL;
	BoxesAppWindow* _tmp4_ = NULL;
	BoxesAppWindow* _tmp5_ = NULL;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_return_val_if_fail (app_window != NULL, NULL);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self = (BoxesPropertiesWindow*) g_object_new (object_type, NULL);
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = app_window;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self->priv->app_window = _tmp0_;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp1_ = self->properties;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp2_ = app_window;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	boxes_properties_setup_ui (_tmp1_, _tmp2_, self);
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp3_ = self->topbar;
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp4_ = app_window;
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	boxes_properties_toolbar_setup_ui (_tmp3_, _tmp4_);
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp5_ = app_window;
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_window_set_transient_for ((GtkWindow*) self, (GtkWindow*) _tmp5_);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_signal_connect_object ((GObject*) self, "notify::ui-state", (GCallback) _boxes_properties_window_ui_state_changed_g_object_notify, self, 0);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return self;
#line 189 "properties-window.c"
}


BoxesPropertiesWindow* boxes_properties_window_new (BoxesAppWindow* app_window) {
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return boxes_properties_window_construct (BOXES_TYPE_PROPERTIES_WINDOW, app_window);
#line 196 "properties-window.c"
}


static void boxes_properties_window_ui_state_changed (BoxesPropertiesWindow* self) {
	BoxesProperties* _tmp0_ = NULL;
	BoxesUIState _tmp1_ = 0;
	BoxesUIState _tmp2_ = 0;
	BoxesUIState _tmp3_ = 0;
	BoxesUIState _tmp4_ = 0;
	BoxesPropertiesToolbar* _tmp5_ = NULL;
	GtkButton* _tmp6_ = NULL;
	BoxesUIState _tmp7_ = 0;
	BoxesUIState _tmp8_ = 0;
	BoxesPropertiesToolbar* _tmp9_ = NULL;
	BoxesUIState _tmp10_ = 0;
	BoxesUIState _tmp11_ = 0;
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_return_if_fail (self != NULL);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = self->properties;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp1_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp2_ = _tmp1_;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp0_, _tmp2_);
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp3_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp4_ = _tmp3_;
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_set_visible ((GtkWidget*) self, _tmp4_ == BOXES_UI_STATE_PROPERTIES);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp5_ = self->topbar;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp6_ = _tmp5_->back_button;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp7_ = boxes_ui_get_previous_ui_state ((BoxesUI*) self);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp8_ = _tmp7_;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp6_, _tmp8_ == BOXES_UI_STATE_WIZARD);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp9_ = self->topbar;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp10_ = boxes_ui_get_previous_ui_state ((BoxesUI*) self);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp11_ = _tmp10_;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_header_bar_set_show_close_button ((GtkHeaderBar*) _tmp9_, _tmp11_ != BOXES_UI_STATE_WIZARD);
#line 247 "properties-window.c"
}


static gboolean boxes_properties_window_on_key_pressed (BoxesPropertiesWindow* self, GtkWidget* widget, GdkEventKey* event) {
	gboolean result = FALSE;
	GdkEventKey* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = event;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp1_ = _tmp0_->keyval;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	if (_tmp1_ == ((guint) GDK_KEY_Escape)) {
#line 267 "properties-window.c"
		BoxesPropertiesToolbar* _tmp2_ = NULL;
		GtkButton* _tmp3_ = NULL;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		_tmp2_ = self->topbar;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		_tmp3_ = _tmp2_->back_button;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		gtk_button_clicked (_tmp3_);
#line 276 "properties-window.c"
	}
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	result = FALSE;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return result;
#line 282 "properties-window.c"
}


static gboolean _boxes_properties_window_on_key_pressed_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
	gboolean result;
	result = boxes_properties_window_on_key_pressed ((BoxesPropertiesWindow*) self, _sender, event);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return result;
#line 291 "properties-window.c"
}


static gboolean boxes_properties_window_on_delete_event (BoxesPropertiesWindow* self) {
	gboolean result = FALSE;
	BoxesPropertiesToolbar* _tmp0_ = NULL;
	GtkButton* _tmp1_ = NULL;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = self->topbar;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp1_ = _tmp0_->back_button;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_button_clicked (_tmp1_);
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	result = TRUE;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return result;
#line 311 "properties-window.c"
}


static gboolean _boxes_properties_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
	gboolean result;
	result = boxes_properties_window_on_delete_event ((BoxesPropertiesWindow*) self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return result;
#line 320 "properties-window.c"
}


static BoxesUIState boxes_properties_window_real_get_previous_ui_state (BoxesUI* base) {
	BoxesUIState result;
	BoxesPropertiesWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self = (BoxesPropertiesWindow*) base;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = self->priv->_previous_ui_state;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	result = _tmp0_;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return result;
#line 336 "properties-window.c"
}


static void boxes_properties_window_real_set_previous_ui_state (BoxesUI* base, BoxesUIState value) {
	BoxesPropertiesWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self = (BoxesPropertiesWindow*) base;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = value;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self->priv->_previous_ui_state = _tmp0_;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_object_notify ((GObject *) self, "previous-ui-state");
#line 351 "properties-window.c"
}


static BoxesUIState boxes_properties_window_real_get_ui_state (BoxesUI* base) {
	BoxesUIState result;
	BoxesPropertiesWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self = (BoxesPropertiesWindow*) base;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = self->priv->_ui_state;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	result = _tmp0_;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	return result;
#line 367 "properties-window.c"
}


static void boxes_properties_window_real_set_ui_state (BoxesUI* base, BoxesUIState value) {
	BoxesPropertiesWindow* self;
	BoxesUIState _tmp0_ = 0;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self = (BoxesPropertiesWindow*) base;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_tmp0_ = value;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self->priv->_ui_state = _tmp0_;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_object_notify ((GObject *) self, "ui-state");
#line 382 "properties-window.c"
}


static void boxes_properties_window_class_init (BoxesPropertiesWindowClass * klass) {
	gint BoxesPropertiesWindow_private_offset;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	boxes_properties_window_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_type_class_add_private (klass, sizeof (BoxesPropertiesWindowPrivate));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_properties_window_get_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_properties_window_set_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_properties_window_finalize;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_PROPERTIES_WINDOW_PREVIOUS_UI_STATE, g_param_spec_enum ("previous-ui-state", "previous-ui-state", "previous-ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_PROPERTIES_WINDOW_UI_STATE, g_param_spec_enum ("ui-state", "ui-state", "ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	BoxesPropertiesWindow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/properties-window.ui");
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "properties", FALSE, G_STRUCT_OFFSET (BoxesPropertiesWindow, properties));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "topbar", FALSE, G_STRUCT_OFFSET (BoxesPropertiesWindow, topbar));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_key_pressed", G_CALLBACK(_boxes_properties_window_on_key_pressed_gtk_widget_key_press_event));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_delete_event", G_CALLBACK(_boxes_properties_window_on_delete_event_gtk_widget_delete_event));
#line 414 "properties-window.c"
}


static void boxes_properties_window_boxes_ui_interface_init (BoxesUIIface * iface) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	boxes_properties_window_boxes_ui_parent_iface = g_type_interface_peek_parent (iface);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	iface->get_previous_ui_state = boxes_properties_window_real_get_previous_ui_state;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	iface->set_previous_ui_state = boxes_properties_window_real_set_previous_ui_state;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	iface->get_ui_state = boxes_properties_window_real_get_ui_state;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	iface->set_ui_state = boxes_properties_window_real_set_ui_state;
#line 429 "properties-window.c"
}


static void boxes_properties_window_instance_init (BoxesPropertiesWindow * self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self->priv = BOXES_PROPERTIES_WINDOW_GET_PRIVATE (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_type_ensure (BOXES_TYPE_PROPERTIES_TOOLBAR);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	g_type_ensure (BOXES_TYPE_PROPERTIES);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 442 "properties-window.c"
}


static void boxes_properties_window_finalize (GObject* obj) {
	BoxesPropertiesWindow * self;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindow);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_g_object_unref0 (self->properties);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	_g_object_unref0 (self->topbar);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	G_OBJECT_CLASS (boxes_properties_window_parent_class)->finalize (obj);
#line 456 "properties-window.c"
}


GType boxes_properties_window_get_type (void) {
	static volatile gsize boxes_properties_window_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_properties_window_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesPropertiesWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_properties_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesPropertiesWindow), 0, (GInstanceInitFunc) boxes_properties_window_instance_init, NULL };
		static const GInterfaceInfo boxes_ui_info = { (GInterfaceInitFunc) boxes_properties_window_boxes_ui_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_properties_window_type_id;
		boxes_properties_window_type_id = g_type_register_static (gtk_window_get_type (), "BoxesPropertiesWindow", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_properties_window_type_id, BOXES_TYPE_UI, &boxes_ui_info);
		g_once_init_leave (&boxes_properties_window_type_id__volatile, boxes_properties_window_type_id);
	}
	return boxes_properties_window_type_id__volatile;
}


static void _vala_boxes_properties_window_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesPropertiesWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindow);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		case BOXES_PROPERTIES_WINDOW_PREVIOUS_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state ((BoxesUI*) self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		case BOXES_PROPERTIES_WINDOW_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state ((BoxesUI*) self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		break;
#line 491 "properties-window.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		break;
#line 497 "properties-window.c"
	}
}


static void _vala_boxes_properties_window_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesPropertiesWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindow);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		case BOXES_PROPERTIES_WINDOW_PREVIOUS_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		boxes_ui_set_previous_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		case BOXES_PROPERTIES_WINDOW_UI_STATE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		boxes_ui_set_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		break;
#line 519 "properties-window.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-window.vala"
		break;
#line 525 "properties-window.c"
	}
}



