/* properties-page-widget.c generated by valac 0.39.5, 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;
enum  {
	BOXES_PROPERTIES_PAGE_WIDGET_0_PROPERTY,
	BOXES_PROPERTIES_PAGE_WIDGET_NUM_PROPERTIES
};
static GParamSpec* boxes_properties_page_widget_properties[BOXES_PROPERTIES_PAGE_WIDGET_NUM_PROPERTIES];
#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;
enum  {
	BOXES_PROPERTIES_PAGE_WIDGET_REFRESH_PROPERTIES_SIGNAL,
	BOXES_PROPERTIES_PAGE_WIDGET_NUM_SIGNALS
};
static guint boxes_properties_page_widget_signals[BOXES_PROPERTIES_PAGE_WIDGET_NUM_SIGNALS] = {0};

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;


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))
static void _g_object_unref0_ (gpointer var);
static inline 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);
GList* boxes_machine_get_properties (BoxesMachine* self,
                                     BoxesPropertiesPage page);
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 _____lambda129_ (BoxesPropertiesPageWidget* self);
static void ______lambda129__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/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 129 "properties-page-widget.c"
}


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


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


static void
_____lambda129_ (BoxesPropertiesPageWidget* self)
{
#line 73 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	g_signal_emit (self, boxes_properties_page_widget_signals[BOXES_PROPERTIES_PAGE_WIDGET_REFRESH_PROPERTIES_SIGNAL], 0);
#line 156 "properties-page-widget.c"
}


static void
______lambda129__boxes_property_refresh_properties (BoxesProperty* _sender,
                                                    gpointer self)
{
#line 72 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_____lambda129_ ((BoxesPropertiesPageWidget*) self);
#line 166 "properties-page-widget.c"
}


BoxesPropertiesPageWidget*
boxes_properties_page_widget_construct (GType object_type,
                                        BoxesPropertiesPage page,
                                        BoxesMachine* machine)
{
	BoxesPropertiesPageWidget * self = NULL;
	GtkStyleContext* _tmp0_;
	GtkGrid* _tmp1_;
	GtkGrid* _tmp2_;
	GtkGrid* _tmp3_;
	GtkGrid* _tmp4_;
	GtkScrolledWindow* scrolled_win = NULL;
	GtkScrolledWindow* _tmp5_;
	GtkScrolledWindow* _tmp6_;
	GtkScrolledWindow* _tmp7_;
	GtkScrolledWindow* _tmp8_;
	GtkScrolledWindow* _tmp9_;
	GtkGrid* _tmp10_;
	GtkScrolledWindow* _tmp11_;
	GList* _tmp12_;
	GList* _tmp13_;
	gboolean _tmp14_;
#line 12 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	g_return_val_if_fail (machine != NULL, NULL);
#line 12 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	self = (BoxesPropertiesPageWidget*) g_object_new (object_type, NULL);
#line 13 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	switch (page) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_GENERAL:
#line 200 "properties-page-widget.c"
		{
#line 15 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _ ("General"));
#line 16 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 206 "properties-page-widget.c"
		}
#line 13 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_SYSTEM:
#line 210 "properties-page-widget.c"
		{
#line 19 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _ ("System"));
#line 20 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 216 "properties-page-widget.c"
		}
#line 13 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_DEVICES:
#line 220 "properties-page-widget.c"
		{
#line 23 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _ ("Devices & Shares"));
#line 24 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 226 "properties-page-widget.c"
		}
#line 13 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		case BOXES_PROPERTIES_PAGE_SNAPSHOTS:
#line 230 "properties-page-widget.c"
		{
#line 27 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			gtk_widget_set_name ((GtkWidget*) self, _ ("Snapshots"));
#line 28 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			break;
#line 236 "properties-page-widget.c"
		}
		default:
#line 13 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		break;
#line 241 "properties-page-widget.c"
	}
#line 31 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 31 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_style_context_add_class (_tmp0_, "transparent-bg");
#line 33 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp1_ = (GtkGrid*) gtk_grid_new ();
#line 33 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	g_object_ref_sink (_tmp1_);
#line 33 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_g_object_unref0 (self->priv->grid);
#line 33 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	self->priv->grid = _tmp1_;
#line 34 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp2_ = self->priv->grid;
#line 34 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	g_object_set ((GtkWidget*) _tmp2_, "margin", 20, NULL);
#line 35 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp3_ = self->priv->grid;
#line 35 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_grid_set_row_spacing (_tmp3_, 10);
#line 36 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp4_ = self->priv->grid;
#line 36 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_grid_set_column_spacing (_tmp4_, 20);
#line 37 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp5_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 37 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	g_object_ref_sink (_tmp5_);
#line 37 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	scrolled_win = _tmp5_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp6_ = scrolled_win;
#line 38 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_widget_set_margin_start ((GtkWidget*) _tmp6_, 20);
#line 39 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp7_ = scrolled_win;
#line 39 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_widget_set_margin_end ((GtkWidget*) _tmp7_, 20);
#line 40 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp8_ = scrolled_win;
#line 40 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_scrolled_window_set_policy (_tmp8_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
#line 41 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp9_ = scrolled_win;
#line 41 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp10_ = self->priv->grid;
#line 41 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_container_add ((GtkContainer*) _tmp9_, (GtkWidget*) _tmp10_);
#line 42 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp11_ = scrolled_win;
#line 42 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_box_pack_end ((GtkBox*) self, (GtkWidget*) _tmp11_, TRUE, TRUE, (guint) 0);
#line 44 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp12_ = boxes_machine_get_properties (machine, page);
#line 44 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	__g_list_free__g_object_unref0_0 (self->priv->properties);
#line 44 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	self->priv->properties = _tmp12_;
#line 45 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp13_ = self->priv->properties;
#line 45 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	self->empty = g_list_length (_tmp13_) == ((guint) 0);
#line 46 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp14_ = self->empty;
#line 46 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	if (!_tmp14_) {
#line 309 "properties-page-widget.c"
		gint current_row = 0;
		GList* _tmp15_;
#line 47 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		current_row = 1;
#line 48 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		_tmp15_ = self->priv->properties;
#line 316 "properties-page-widget.c"
		{
			GList* property_collection = NULL;
			GList* property_it = NULL;
#line 48 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			property_collection = _tmp15_;
#line 48 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
#line 324 "properties-page-widget.c"
				BoxesProperty* _tmp16_;
				BoxesProperty* property = NULL;
#line 48 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				_tmp16_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
#line 48 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				property = _tmp16_;
#line 331 "properties-page-widget.c"
				{
					BoxesProperty* _tmp17_;
					const gchar* _tmp18_;
					const gchar* _tmp19_;
					GtkWidget* widget = NULL;
					BoxesProperty* _tmp52_;
					GtkWidget* _tmp53_;
					GtkWidget* _tmp54_;
					GtkWidget* _tmp55_;
					GtkWidget* _tmp56_;
					BoxesProperty* _tmp62_;
					gint _tmp63_;
#line 49 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp17_ = property;
#line 49 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp18_ = boxes_property_get_description (_tmp17_);
#line 49 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp19_ = _tmp18_;
#line 49 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					if (_tmp19_ != NULL) {
#line 352 "properties-page-widget.c"
						GtkLabel* label_name = NULL;
						BoxesProperty* _tmp20_;
						const gchar* _tmp21_;
						const gchar* _tmp22_;
						GtkLabel* _tmp23_;
						GtkLabel* _tmp24_;
						GtkStyleContext* _tmp25_;
						GtkLabel* _tmp26_;
						BoxesProperty* _tmp27_;
						GtkAlign _tmp28_;
						GtkAlign _tmp29_;
						GtkLabel* _tmp30_;
						GtkGrid* _tmp31_;
						GtkLabel* _tmp32_;
						gint _tmp33_;
						GtkWidget* widget = NULL;
						BoxesProperty* _tmp34_;
						GtkWidget* _tmp35_;
						GtkWidget* _tmp36_;
						GtkWidget* _tmp37_;
						GtkWidget* _tmp38_;
						GtkGrid* _tmp39_;
						GtkWidget* _tmp40_;
						gint _tmp41_;
						GtkLabel* _tmp42_;
						GtkWidget* _tmp43_;
#line 50 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp20_ = property;
#line 50 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp21_ = boxes_property_get_description (_tmp20_);
#line 50 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp22_ = _tmp21_;
#line 50 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp23_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp22_);
#line 50 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						g_object_ref_sink (_tmp23_);
#line 50 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						label_name = _tmp23_;
#line 51 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp24_ = label_name;
#line 51 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp25_ = gtk_widget_get_style_context ((GtkWidget*) _tmp24_);
#line 51 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_style_context_add_class (_tmp25_, "dim-label");
#line 52 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp26_ = label_name;
#line 52 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp27_ = property;
#line 52 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp28_ = boxes_property_get_description_alignment (_tmp27_);
#line 52 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp29_ = _tmp28_;
#line 52 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_halign ((GtkWidget*) _tmp26_, _tmp29_);
#line 53 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp30_ = label_name;
#line 53 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand ((GtkWidget*) _tmp30_, FALSE);
#line 54 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp31_ = self->priv->grid;
#line 54 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp32_ = label_name;
#line 54 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp33_ = current_row;
#line 54 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp31_, (GtkWidget*) _tmp32_, 0, _tmp33_, 1, 1);
#line 55 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp34_ = property;
#line 55 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp35_ = boxes_property_get_widget (_tmp34_);
#line 55 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp36_ = _tmp35_;
#line 55 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp37_ = _g_object_ref0 (_tmp36_);
#line 55 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						widget = _tmp37_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp38_ = widget;
#line 56 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand (_tmp38_, TRUE);
#line 57 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp39_ = self->priv->grid;
#line 57 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp40_ = widget;
#line 57 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp41_ = current_row;
#line 57 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp39_, _tmp40_, 1, _tmp41_, 1, 1);
#line 58 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp42_ = label_name;
#line 58 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp43_ = widget;
#line 58 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_label_set_mnemonic_widget (_tmp42_, _tmp43_);
#line 49 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_g_object_unref0 (widget);
#line 49 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_g_object_unref0 (label_name);
#line 451 "properties-page-widget.c"
					} else {
						GtkWidget* widget = NULL;
						BoxesProperty* _tmp44_;
						GtkWidget* _tmp45_;
						GtkWidget* _tmp46_;
						GtkWidget* _tmp47_;
						GtkWidget* _tmp48_;
						GtkGrid* _tmp49_;
						GtkWidget* _tmp50_;
						gint _tmp51_;
#line 60 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp44_ = property;
#line 60 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp45_ = boxes_property_get_widget (_tmp44_);
#line 60 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp46_ = _tmp45_;
#line 60 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp47_ = _g_object_ref0 (_tmp46_);
#line 60 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						widget = _tmp47_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp48_ = widget;
#line 61 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand (_tmp48_, TRUE);
#line 62 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp49_ = self->priv->grid;
#line 62 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp50_ = widget;
#line 62 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp51_ = current_row;
#line 62 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp49_, _tmp50_, 0, _tmp51_, 2, 1);
#line 49 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_g_object_unref0 (widget);
#line 486 "properties-page-widget.c"
					}
#line 65 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp52_ = property;
#line 65 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp53_ = boxes_property_get_extra_widget (_tmp52_);
#line 65 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp54_ = _tmp53_;
#line 65 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp55_ = _g_object_ref0 (_tmp54_);
#line 65 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					widget = _tmp55_;
#line 66 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp56_ = widget;
#line 66 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					if (_tmp56_ != NULL) {
#line 502 "properties-page-widget.c"
						gint _tmp57_;
						GtkWidget* _tmp58_;
						GtkGrid* _tmp59_;
						GtkWidget* _tmp60_;
						gint _tmp61_;
#line 67 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp57_ = current_row;
#line 67 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						current_row = _tmp57_ + 1;
#line 68 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp58_ = widget;
#line 68 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_widget_set_hexpand (_tmp58_, TRUE);
#line 69 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp59_ = self->priv->grid;
#line 69 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp60_ = widget;
#line 69 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						_tmp61_ = current_row;
#line 69 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
						gtk_grid_attach (_tmp59_, _tmp60_, 0, _tmp61_, 2, 1);
#line 524 "properties-page-widget.c"
					}
#line 72 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp62_ = property;
#line 72 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					g_signal_connect_object (_tmp62_, "refresh-properties", (GCallback) ______lambda129__boxes_property_refresh_properties, self, 0);
#line 75 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_tmp63_ = current_row;
#line 75 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					current_row = _tmp63_ + 1;
#line 48 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_g_object_unref0 (widget);
#line 48 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
					_g_object_unref0 (property);
#line 538 "properties-page-widget.c"
				}
			}
		}
	}
#line 79 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	gtk_widget_show_all ((GtkWidget*) self);
#line 12 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_g_object_unref0 (scrolled_win);
#line 12 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	return self;
#line 549 "properties-page-widget.c"
}


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


gboolean
boxes_properties_page_widget_flush_changes (BoxesPropertiesPageWidget* self)
{
	gboolean result = FALSE;
	gboolean reboot_required = FALSE;
	GList* _tmp0_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 83 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	reboot_required = FALSE;
#line 85 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	_tmp0_ = self->priv->properties;
#line 575 "properties-page-widget.c"
	{
		GList* property_collection = NULL;
		GList* property_it = NULL;
#line 85 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		property_collection = _tmp0_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
		for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
#line 583 "properties-page-widget.c"
			BoxesProperty* _tmp1_;
			BoxesProperty* property = NULL;
#line 85 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			_tmp1_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
#line 85 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
			property = _tmp1_;
#line 590 "properties-page-widget.c"
			{
				BoxesProperty* _tmp2_;
				gboolean _tmp3_;
				BoxesProperty* _tmp4_;
				gboolean _tmp5_;
				gboolean _tmp6_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				_tmp2_ = property;
#line 86 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				boxes_property_flush (_tmp2_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				_tmp3_ = reboot_required;
#line 87 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				_tmp4_ = property;
#line 87 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				_tmp5_ = boxes_property_get_reboot_required (_tmp4_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				_tmp6_ = _tmp5_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				reboot_required = _tmp3_ | _tmp6_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
				_g_object_unref0 (property);
#line 613 "properties-page-widget.c"
			}
		}
	}
#line 90 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	result = reboot_required;
#line 90 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	return result;
#line 621 "properties-page-widget.c"
}


static void
boxes_properties_page_widget_class_init (BoxesPropertiesPageWidgetClass * klass)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	boxes_properties_page_widget_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	g_type_class_add_private (klass, sizeof (BoxesPropertiesPageWidgetPrivate));
#line 4 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_properties_page_widget_finalize;
#line 4 "/home/fborges/checkout/gnome-boxes/src/properties-page-widget.vala"
	boxes_properties_page_widget_signals[BOXES_PROPERTIES_PAGE_WIDGET_REFRESH_PROPERTIES_SIGNAL] = 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 636 "properties-page-widget.c"
}


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


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



