/* properties-page-widget.c generated by valac 0.31.1.12-d87fb, the Vala compiler
 * generated from properties-page-widget.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 <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>


#define BOXES_TYPE_PROPERTIES_PAGE_WIDGET (boxes_properties_page_widget_get_type ())
#define BOXES_PROPERTIES_PAGE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES_PAGE_WIDGET, BoxesPropertiesPageWidget))
#define BOXES_PROPERTIES_PAGE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES_PAGE_WIDGET, BoxesPropertiesPageWidgetClass))
#define BOXES_IS_PROPERTIES_PAGE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES_PAGE_WIDGET))
#define BOXES_IS_PROPERTIES_PAGE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES_PAGE_WIDGET))
#define BOXES_PROPERTIES_PAGE_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES_PAGE_WIDGET, BoxesPropertiesPageWidgetClass))

typedef struct _BoxesPropertiesPageWidget BoxesPropertiesPageWidget;
typedef struct _BoxesPropertiesPageWidgetClass BoxesPropertiesPageWidgetClass;
typedef struct _BoxesPropertiesPageWidgetPrivate BoxesPropertiesPageWidgetPrivate;

#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 _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#define BOXES_TYPE_PROPERTIES_PAGE (boxes_properties_page_get_type ())

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

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;

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

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;

#define TYPE_PROPERTY_CREATION_FLAG (property_creation_flag_get_type ())

struct _BoxesPropertiesPageWidget {
	GtkBox parent_instance;
	BoxesPropertiesPageWidgetPrivate * priv;
	gboolean empty;
};

struct _BoxesPropertiesPageWidgetClass {
	GtkBoxClass parent_class;
};

struct _BoxesPropertiesPageWidgetPrivate {
	GtkGrid* grid;
	GList* properties;
};

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

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


static gpointer boxes_properties_page_widget_parent_class = NULL;

GType boxes_properties_page_widget_get_type (void) G_GNUC_CONST;
GType boxes_property_get_type (void) G_GNUC_CONST;
#define BOXES_PROPERTIES_PAGE_WIDGET_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_PROPERTIES_PAGE_WIDGET, BoxesPropertiesPageWidgetPrivate))
enum  {
	BOXES_PROPERTIES_PAGE_WIDGET_DUMMY_PROPERTY
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
BoxesPropertiesPageWidget* boxes_properties_page_widget_new (BoxesPropertiesPage page, BoxesMachine* machine);
BoxesPropertiesPageWidget* boxes_properties_page_widget_construct (GType object_type, BoxesPropertiesPage page, BoxesMachine* machine);
GType property_creation_flag_get_type (void) G_GNUC_CONST;
GList* boxes_machine_get_properties (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
const gchar* boxes_property_get_description (BoxesProperty* self);
GtkAlign boxes_property_get_description_alignment (BoxesProperty* self);
GtkWidget* boxes_property_get_widget (BoxesProperty* self);
GtkWidget* boxes_property_get_extra_widget (BoxesProperty* self);
static void _____lambda87_ (BoxesPropertiesPageWidget* self);
static void ______lambda87__boxes_property_refresh_properties (BoxesProperty* _sender, gpointer self);
gboolean boxes_properties_page_widget_flush_changes (BoxesPropertiesPageWidget* self);
void boxes_property_flush (BoxesProperty* self);
gboolean boxes_property_get_reboot_required (BoxesProperty* self);
static void boxes_properties_page_widget_finalize (GObject* obj);


static void _g_object_unref0_ (gpointer var) {
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 123 "properties-page-widget.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_list_free (self);
#line 132 "properties-page-widget.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	return self ? g_object_ref (self) : NULL;
#line 139 "properties-page-widget.c"
}


static void _____lambda87_ (BoxesPropertiesPageWidget* self) {
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_signal_emit_by_name (self, "refresh-properties");
#line 146 "properties-page-widget.c"
}


static void ______lambda87__boxes_property_refresh_properties (BoxesProperty* _sender, gpointer self) {
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_____lambda87_ ((BoxesPropertiesPageWidget*) self);
#line 153 "properties-page-widget.c"
}


BoxesPropertiesPageWidget* boxes_properties_page_widget_construct (GType object_type, BoxesPropertiesPage page, BoxesMachine* machine) {
	BoxesPropertiesPageWidget * self = NULL;
	BoxesPropertiesPage _tmp0_ = 0;
	GtkStyleContext* _tmp5_ = NULL;
	GtkGrid* _tmp6_ = NULL;
	GtkGrid* _tmp7_ = NULL;
	GtkGrid* _tmp8_ = NULL;
	GtkGrid* _tmp9_ = NULL;
	GtkScrolledWindow* scrolled_win = NULL;
	GtkScrolledWindow* _tmp10_ = NULL;
	GtkScrolledWindow* _tmp11_ = NULL;
	GtkScrolledWindow* _tmp12_ = NULL;
	GtkScrolledWindow* _tmp13_ = NULL;
	GtkScrolledWindow* _tmp14_ = NULL;
	GtkGrid* _tmp15_ = NULL;
	GtkScrolledWindow* _tmp16_ = NULL;
	PropertyCreationFlag flags = 0;
	BoxesMachine* _tmp17_ = NULL;
	BoxesPropertiesPage _tmp18_ = 0;
	GList* _tmp19_ = NULL;
	GList* _tmp20_ = NULL;
	guint _tmp21_ = 0U;
	gboolean _tmp22_ = FALSE;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_return_val_if_fail (machine != NULL, NULL);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	self = (BoxesPropertiesPageWidget*) g_object_new (object_type, NULL);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp0_ = page;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	switch (_tmp0_) {
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_GENERAL:
#line 190 "properties-page-widget.c"
		{
			const gchar* _tmp1_ = NULL;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			_tmp1_ = _ ("General");
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _tmp1_);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 199 "properties-page-widget.c"
		}
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_SYSTEM:
#line 203 "properties-page-widget.c"
		{
			const gchar* _tmp2_ = NULL;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			_tmp2_ = _ ("System");
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _tmp2_);
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 212 "properties-page-widget.c"
		}
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_DEVICES:
#line 216 "properties-page-widget.c"
		{
			const gchar* _tmp3_ = NULL;
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			_tmp3_ = _ ("Devices");
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _tmp3_);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 225 "properties-page-widget.c"
		}
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_SNAPSHOTS:
#line 229 "properties-page-widget.c"
		{
			const gchar* _tmp4_ = NULL;
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			_tmp4_ = _ ("Snapshots");
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _tmp4_);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 238 "properties-page-widget.c"
		}
		default:
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		break;
#line 243 "properties-page-widget.c"
	}
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_style_context_add_class (_tmp5_, "transparent-bg");
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp6_ = (GtkGrid*) gtk_grid_new ();
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_object_ref_sink (_tmp6_);
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_g_object_unref0 (self->priv->grid);
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	self->priv->grid = _tmp6_;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp7_ = self->priv->grid;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_object_set ((GtkWidget*) _tmp7_, "margin", 20, NULL);
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp8_ = self->priv->grid;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_grid_set_row_spacing (_tmp8_, 10);
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp9_ = self->priv->grid;
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_grid_set_column_spacing (_tmp9_, 20);
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp10_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_object_ref_sink (_tmp10_);
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	scrolled_win = _tmp10_;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp11_ = scrolled_win;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_widget_set_margin_start ((GtkWidget*) _tmp11_, 20);
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp12_ = scrolled_win;
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_widget_set_margin_end ((GtkWidget*) _tmp12_, 20);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp13_ = scrolled_win;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_scrolled_window_set_policy (_tmp13_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp14_ = scrolled_win;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp15_ = self->priv->grid;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_container_add ((GtkContainer*) _tmp14_, (GtkWidget*) _tmp15_);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp16_ = scrolled_win;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_box_pack_end ((GtkBox*) self, (GtkWidget*) _tmp16_, TRUE, TRUE, (guint) 0);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	flags = PROPERTY_CREATION_FLAG_NONE;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp17_ = machine;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp18_ = page;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp19_ = boxes_machine_get_properties (_tmp17_, _tmp18_, &flags);
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	__g_list_free__g_object_unref0_0 (self->priv->properties);
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	self->priv->properties = _tmp19_;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp20_ = self->priv->properties;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp21_ = g_list_length (_tmp20_);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	self->empty = _tmp21_ == ((guint) 0);
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp22_ = self->empty;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	if (!_tmp22_) {
#line 319 "properties-page-widget.c"
		gint current_row = 0;
		GList* _tmp23_ = NULL;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		current_row = 1;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		_tmp23_ = self->priv->properties;
#line 326 "properties-page-widget.c"
		{
			GList* property_collection = NULL;
			GList* property_it = NULL;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			property_collection = _tmp23_;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
#line 334 "properties-page-widget.c"
				BoxesProperty* _tmp24_ = NULL;
				BoxesProperty* property = NULL;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				_tmp24_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				property = _tmp24_;
#line 341 "properties-page-widget.c"
				{
					BoxesProperty* _tmp25_ = NULL;
					const gchar* _tmp26_ = NULL;
					const gchar* _tmp27_ = NULL;
					GtkWidget* widget = NULL;
					BoxesProperty* _tmp60_ = NULL;
					GtkWidget* _tmp61_ = NULL;
					GtkWidget* _tmp62_ = NULL;
					GtkWidget* _tmp63_ = NULL;
					GtkWidget* _tmp64_ = NULL;
					BoxesProperty* _tmp70_ = NULL;
					gint _tmp71_ = 0;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp25_ = property;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp26_ = boxes_property_get_description (_tmp25_);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp27_ = _tmp26_;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					if (_tmp27_ != NULL) {
#line 362 "properties-page-widget.c"
						GtkLabel* label_name = NULL;
						BoxesProperty* _tmp28_ = NULL;
						const gchar* _tmp29_ = NULL;
						const gchar* _tmp30_ = NULL;
						GtkLabel* _tmp31_ = NULL;
						GtkLabel* _tmp32_ = NULL;
						GtkStyleContext* _tmp33_ = NULL;
						GtkLabel* _tmp34_ = NULL;
						BoxesProperty* _tmp35_ = NULL;
						GtkAlign _tmp36_ = 0;
						GtkAlign _tmp37_ = 0;
						GtkLabel* _tmp38_ = NULL;
						GtkGrid* _tmp39_ = NULL;
						GtkLabel* _tmp40_ = NULL;
						gint _tmp41_ = 0;
						GtkWidget* widget = NULL;
						BoxesProperty* _tmp42_ = NULL;
						GtkWidget* _tmp43_ = NULL;
						GtkWidget* _tmp44_ = NULL;
						GtkWidget* _tmp45_ = NULL;
						GtkWidget* _tmp46_ = NULL;
						GtkGrid* _tmp47_ = NULL;
						GtkWidget* _tmp48_ = NULL;
						gint _tmp49_ = 0;
						GtkLabel* _tmp50_ = NULL;
						GtkWidget* _tmp51_ = NULL;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp28_ = property;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp29_ = boxes_property_get_description (_tmp28_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp30_ = _tmp29_;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp31_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp30_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						g_object_ref_sink (_tmp31_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						label_name = _tmp31_;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp32_ = label_name;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp33_ = gtk_widget_get_style_context ((GtkWidget*) _tmp32_);
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_style_context_add_class (_tmp33_, "dim-label");
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp34_ = label_name;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp35_ = property;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp36_ = boxes_property_get_description_alignment (_tmp35_);
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp37_ = _tmp36_;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_halign ((GtkWidget*) _tmp34_, _tmp37_);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp38_ = label_name;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand ((GtkWidget*) _tmp38_, FALSE);
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp39_ = self->priv->grid;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp40_ = label_name;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp41_ = current_row;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp39_, (GtkWidget*) _tmp40_, 0, _tmp41_, 1, 1);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp42_ = property;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp43_ = boxes_property_get_widget (_tmp42_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp44_ = _tmp43_;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp45_ = _g_object_ref0 (_tmp44_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						widget = _tmp45_;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp46_ = widget;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand (_tmp46_, TRUE);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp47_ = self->priv->grid;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp48_ = widget;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp49_ = current_row;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp47_, _tmp48_, 1, _tmp49_, 1, 1);
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp50_ = label_name;
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp51_ = widget;
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_label_set_mnemonic_widget (_tmp50_, _tmp51_);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_g_object_unref0 (widget);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_g_object_unref0 (label_name);
#line 461 "properties-page-widget.c"
					} else {
						GtkWidget* widget = NULL;
						BoxesProperty* _tmp52_ = NULL;
						GtkWidget* _tmp53_ = NULL;
						GtkWidget* _tmp54_ = NULL;
						GtkWidget* _tmp55_ = NULL;
						GtkWidget* _tmp56_ = NULL;
						GtkGrid* _tmp57_ = NULL;
						GtkWidget* _tmp58_ = NULL;
						gint _tmp59_ = 0;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp52_ = property;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp53_ = boxes_property_get_widget (_tmp52_);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp54_ = _tmp53_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp55_ = _g_object_ref0 (_tmp54_);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						widget = _tmp55_;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp56_ = widget;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand (_tmp56_, TRUE);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp57_ = self->priv->grid;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp58_ = widget;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp59_ = current_row;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp57_, _tmp58_, 0, _tmp59_, 2, 1);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_g_object_unref0 (widget);
#line 496 "properties-page-widget.c"
					}
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp60_ = property;
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp61_ = boxes_property_get_extra_widget (_tmp60_);
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp62_ = _tmp61_;
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp63_ = _g_object_ref0 (_tmp62_);
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					widget = _tmp63_;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp64_ = widget;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					if (_tmp64_ != NULL) {
#line 512 "properties-page-widget.c"
						gint _tmp65_ = 0;
						GtkWidget* _tmp66_ = NULL;
						GtkGrid* _tmp67_ = NULL;
						GtkWidget* _tmp68_ = NULL;
						gint _tmp69_ = 0;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp65_ = current_row;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						current_row = _tmp65_ + 1;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp66_ = widget;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand (_tmp66_, TRUE);
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp67_ = self->priv->grid;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp68_ = widget;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						_tmp69_ = current_row;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp67_, _tmp68_, 0, _tmp69_, 2, 1);
#line 534 "properties-page-widget.c"
					}
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp70_ = property;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					g_signal_connect_object (_tmp70_, "refresh-properties", (GCallback) ______lambda87__boxes_property_refresh_properties, self, 0);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_tmp71_ = current_row;
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					current_row = _tmp71_ + 1;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_g_object_unref0 (widget);
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
					_g_object_unref0 (property);
#line 548 "properties-page-widget.c"
				}
			}
		}
	}
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	gtk_widget_show_all ((GtkWidget*) self);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_g_object_unref0 (scrolled_win);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	return self;
#line 559 "properties-page-widget.c"
}


BoxesPropertiesPageWidget* boxes_properties_page_widget_new (BoxesPropertiesPage page, BoxesMachine* machine) {
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	return boxes_properties_page_widget_construct (BOXES_TYPE_PROPERTIES_PAGE_WIDGET, page, machine);
#line 566 "properties-page-widget.c"
}


gboolean boxes_properties_page_widget_flush_changes (BoxesPropertiesPageWidget* self) {
	gboolean result = FALSE;
	gboolean reboot_required = FALSE;
	GList* _tmp0_ = NULL;
#line 83 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	reboot_required = FALSE;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_tmp0_ = self->priv->properties;
#line 580 "properties-page-widget.c"
	{
		GList* property_collection = NULL;
		GList* property_it = NULL;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		property_collection = _tmp0_;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
		for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
#line 588 "properties-page-widget.c"
			BoxesProperty* _tmp1_ = NULL;
			BoxesProperty* property = NULL;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			_tmp1_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
			property = _tmp1_;
#line 595 "properties-page-widget.c"
			{
				BoxesProperty* _tmp2_ = NULL;
				gboolean _tmp3_ = FALSE;
				BoxesProperty* _tmp4_ = NULL;
				gboolean _tmp5_ = FALSE;
				gboolean _tmp6_ = FALSE;
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				_tmp2_ = property;
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				boxes_property_flush (_tmp2_);
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				_tmp3_ = reboot_required;
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				_tmp4_ = property;
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				_tmp5_ = boxes_property_get_reboot_required (_tmp4_);
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				_tmp6_ = _tmp5_;
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				reboot_required = _tmp3_ | _tmp6_;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
				_g_object_unref0 (property);
#line 618 "properties-page-widget.c"
			}
		}
	}
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	result = reboot_required;
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	return result;
#line 626 "properties-page-widget.c"
}


static void boxes_properties_page_widget_class_init (BoxesPropertiesPageWidgetClass * klass) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	boxes_properties_page_widget_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_type_class_add_private (klass, sizeof (BoxesPropertiesPageWidgetPrivate));
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_properties_page_widget_finalize;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	g_signal_new ("refresh_properties", BOXES_TYPE_PROPERTIES_PAGE_WIDGET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 639 "properties-page-widget.c"
}


static void boxes_properties_page_widget_instance_init (BoxesPropertiesPageWidget * self) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	self->priv = BOXES_PROPERTIES_PAGE_WIDGET_GET_PRIVATE (self);
#line 646 "properties-page-widget.c"
}


static void boxes_properties_page_widget_finalize (GObject* obj) {
	BoxesPropertiesPageWidget * self;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_PROPERTIES_PAGE_WIDGET, BoxesPropertiesPageWidget);
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	_g_object_unref0 (self->priv->grid);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	__g_list_free__g_object_unref0_0 (self->priv->properties);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/properties-page-widget.vala"
	G_OBJECT_CLASS (boxes_properties_page_widget_parent_class)->finalize (obj);
#line 660 "properties-page-widget.c"
}


GType boxes_properties_page_widget_get_type (void) {
	static volatile gsize boxes_properties_page_widget_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_properties_page_widget_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesPropertiesPageWidgetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_properties_page_widget_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesPropertiesPageWidget), 0, (GInstanceInitFunc) boxes_properties_page_widget_instance_init, NULL };
		GType boxes_properties_page_widget_type_id;
		boxes_properties_page_widget_type_id = g_type_register_static (gtk_box_get_type (), "BoxesPropertiesPageWidget", &g_define_type_info, 0);
		g_once_init_leave (&boxes_properties_page_widget_type_id__volatile, boxes_properties_page_widget_type_id);
	}
	return boxes_properties_page_widget_type_id__volatile;
}



