/* properties.c generated by valac 0.17.7, the Vala compiler
 * generated from properties.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <clutter/clutter.h>
#include <gtk/gtk.h>
#include <clutter-gtk/clutter-gtk.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <float.h>
#include <math.h>
#include <libgd/gd.h>
#include <pango/pango.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>


#define BOXES_TYPE_PROPERTIES_PAGE (boxes_properties_page_get_type ())

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

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIClass BoxesUIClass;
typedef struct _BoxesUIPrivate BoxesUIPrivate;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())

#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;
typedef struct _BoxesPropertiesPrivate BoxesPropertiesPrivate;

#define BOXES_TYPE_MINI_GRAPH (boxes_mini_graph_get_type ())
#define BOXES_MINI_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MINI_GRAPH, BoxesMiniGraph))
#define BOXES_MINI_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MINI_GRAPH, BoxesMiniGraphClass))
#define BOXES_IS_MINI_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MINI_GRAPH))
#define BOXES_IS_MINI_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MINI_GRAPH))
#define BOXES_MINI_GRAPH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MINI_GRAPH, BoxesMiniGraphClass))

typedef struct _BoxesMiniGraph BoxesMiniGraph;
typedef struct _BoxesMiniGraphClass BoxesMiniGraphClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#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 BOXES_TYPE_LIBVIRT_MACHINE (boxes_libvirt_machine_get_type ())
#define BOXES_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine))
#define BOXES_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))
#define BOXES_IS_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_IS_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_LIBVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))

typedef struct _BoxesLibvirtMachine BoxesLibvirtMachine;
typedef struct _BoxesLibvirtMachineClass BoxesLibvirtMachineClass;
typedef struct _Block32Data Block32Data;

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

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;
typedef struct _BoxesAppPrivate BoxesAppPrivate;

#define BOXES_TYPE_SEARCHBAR (boxes_searchbar_get_type ())
#define BOXES_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbar))
#define BOXES_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))
#define BOXES_IS_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SEARCHBAR))
#define BOXES_IS_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SEARCHBAR))
#define BOXES_SEARCHBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))

typedef struct _BoxesSearchbar BoxesSearchbar;
typedef struct _BoxesSearchbarClass BoxesSearchbarClass;

#define BOXES_TYPE_TOPBAR (boxes_topbar_get_type ())
#define BOXES_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TOPBAR, BoxesTopbar))
#define BOXES_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TOPBAR, BoxesTopbarClass))
#define BOXES_IS_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TOPBAR))
#define BOXES_IS_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TOPBAR))
#define BOXES_TOPBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TOPBAR, BoxesTopbarClass))

typedef struct _BoxesTopbar BoxesTopbar;
typedef struct _BoxesTopbarClass BoxesTopbarClass;

#define BOXES_TYPE_NOTIFICATIONBAR (boxes_notificationbar_get_type ())
#define BOXES_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbar))
#define BOXES_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))
#define BOXES_IS_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_IS_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_NOTIFICATIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;

#define BOXES_TYPE_REVEALER (boxes_revealer_get_type ())
#define BOXES_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_REVEALER, BoxesRevealer))
#define BOXES_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_REVEALER, BoxesRevealerClass))
#define BOXES_IS_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_REVEALER))
#define BOXES_IS_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_REVEALER))
#define BOXES_REVEALER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_REVEALER, BoxesRevealerClass))

typedef struct _BoxesRevealer BoxesRevealer;
typedef struct _BoxesRevealerClass BoxesRevealerClass;

#define BOXES_TYPE_SIDEBAR (boxes_sidebar_get_type ())
#define BOXES_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SIDEBAR, BoxesSidebar))
#define BOXES_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SIDEBAR, BoxesSidebarClass))
#define BOXES_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SIDEBAR))
#define BOXES_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SIDEBAR))
#define BOXES_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SIDEBAR, BoxesSidebarClass))

typedef struct _BoxesSidebar BoxesSidebar;
typedef struct _BoxesSidebarClass BoxesSidebarClass;

#define BOXES_TYPE_SELECTIONBAR (boxes_selectionbar_get_type ())
#define BOXES_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbar))
#define BOXES_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))
#define BOXES_IS_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SELECTIONBAR))
#define BOXES_IS_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SELECTIONBAR))
#define BOXES_SELECTIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))

typedef struct _BoxesSelectionbar BoxesSelectionbar;
typedef struct _BoxesSelectionbarClass BoxesSelectionbarClass;

#define BOXES_TYPE_WIZARD (boxes_wizard_get_type ())
#define BOXES_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD, BoxesWizard))
#define BOXES_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD, BoxesWizardClass))
#define BOXES_IS_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD))
#define BOXES_IS_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD))
#define BOXES_WIZARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD, BoxesWizardClass))

typedef struct _BoxesWizard BoxesWizard;
typedef struct _BoxesWizardClass BoxesWizardClass;

#define BOXES_TYPE_DISPLAY_PAGE (boxes_display_page_get_type ())
#define BOXES_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPage))
#define BOXES_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))
#define BOXES_IS_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_IS_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_DISPLAY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))

typedef struct _BoxesDisplayPage BoxesDisplayPage;
typedef struct _BoxesDisplayPageClass BoxesDisplayPageClass;

#define BOXES_TYPE_COLLECTION (boxes_collection_get_type ())
#define BOXES_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION, BoxesCollection))
#define BOXES_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION, BoxesCollectionClass))
#define BOXES_IS_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION))
#define BOXES_IS_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION))
#define BOXES_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION, BoxesCollectionClass))

typedef struct _BoxesCollection BoxesCollection;
typedef struct _BoxesCollectionClass BoxesCollectionClass;

#define BOXES_TYPE_COLLECTION_FILTER (boxes_collection_filter_get_type ())
#define BOXES_COLLECTION_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilter))
#define BOXES_COLLECTION_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilterClass))
#define BOXES_IS_COLLECTION_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_FILTER))
#define BOXES_IS_COLLECTION_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_FILTER))
#define BOXES_COLLECTION_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilterClass))

typedef struct _BoxesCollectionFilter BoxesCollectionFilter;
typedef struct _BoxesCollectionFilterClass BoxesCollectionFilterClass;

#define BOXES_TYPE_COLLECTION_VIEW (boxes_collection_view_get_type ())
#define BOXES_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionView))
#define BOXES_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))
#define BOXES_IS_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_IS_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_COLLECTION_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))

typedef struct _BoxesCollectionView BoxesCollectionView;
typedef struct _BoxesCollectionViewClass BoxesCollectionViewClass;

#define BOXES_PROPERTIES_TYPE_PAGE_WIDGET (boxes_properties_page_widget_get_type ())
#define BOXES_PROPERTIES_PAGE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_PROPERTIES_TYPE_PAGE_WIDGET, BoxesPropertiesPageWidget))
#define BOXES_PROPERTIES_PAGE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_PROPERTIES_TYPE_PAGE_WIDGET, BoxesPropertiesPageWidgetClass))
#define BOXES_PROPERTIES_IS_PAGE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_PROPERTIES_TYPE_PAGE_WIDGET))
#define BOXES_PROPERTIES_IS_PAGE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_PROPERTIES_TYPE_PAGE_WIDGET))
#define BOXES_PROPERTIES_PAGE_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_PROPERTIES_TYPE_PAGE_WIDGET, BoxesPropertiesPageWidgetClass))

typedef struct _BoxesPropertiesPageWidget BoxesPropertiesPageWidget;
typedef struct _BoxesPropertiesPageWidgetClass BoxesPropertiesPageWidgetClass;
typedef struct _BoxesPropertiesPageWidgetPrivate BoxesPropertiesPageWidgetPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
typedef struct _BoxesCollectionItemPrivate BoxesCollectionItemPrivate;

#define BOXES_TYPE_IPROPERTIES_PROVIDER (boxes_iproperties_provider_get_type ())
#define BOXES_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProvider))
#define BOXES_IS_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER))
#define BOXES_IPROPERTIES_PROVIDER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProviderIface))

typedef struct _BoxesIPropertiesProvider BoxesIPropertiesProvider;
typedef struct _BoxesIPropertiesProviderIface BoxesIPropertiesProviderIface;

#define BOXES_TYPE_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;
typedef struct _BoxesMachinePrivate BoxesMachinePrivate;

#define BOXES_TYPE_MACHINE_ACTOR (boxes_machine_actor_get_type ())
#define BOXES_MACHINE_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActor))
#define BOXES_MACHINE_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActorClass))
#define BOXES_IS_MACHINE_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE_ACTOR))
#define BOXES_IS_MACHINE_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE_ACTOR))
#define BOXES_MACHINE_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActorClass))

typedef struct _BoxesMachineActor BoxesMachineActor;
typedef struct _BoxesMachineActorClass BoxesMachineActorClass;
typedef struct _BoxesLibvirtMachinePrivate BoxesLibvirtMachinePrivate;

#define BOXES_TYPE_VM_CREATOR (boxes_vm_creator_get_type ())
#define BOXES_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreator))
#define BOXES_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))
#define BOXES_IS_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VM_CREATOR))
#define BOXES_IS_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VM_CREATOR))
#define BOXES_VM_CREATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))

typedef struct _BoxesVMCreator BoxesVMCreator;
typedef struct _BoxesVMCreatorClass BoxesVMCreatorClass;
typedef struct _BoxesTopbarPrivate BoxesTopbarPrivate;

#define BOXES_TYPE_TOPBAR_PAGE (boxes_topbar_page_get_type ())
typedef struct _BoxesSidebarPrivate BoxesSidebarPrivate;

#define BOXES_TYPE_SIDEBAR_PAGE (boxes_sidebar_page_get_type ())
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

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

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

struct _BoxesUI {
	GObject parent_instance;
	BoxesUIPrivate * priv;
	BoxesUIState previous_ui_state;
};

struct _BoxesUIClass {
	GObjectClass parent_class;
	void (*ui_state_changed) (BoxesUI* self);
	ClutterActor* (*get_actor) (BoxesUI* self);
};

struct _BoxesProperties {
	BoxesUI parent_instance;
	BoxesPropertiesPrivate * priv;
	GtkWidget* screenshot_placeholder;
};

struct _BoxesPropertiesClass {
	BoxesUIClass parent_class;
};

struct _BoxesPropertiesPrivate {
	GtkClutterActor* gtk_actor;
	GtkNotebook* notebook;
	GtkButton* back;
	GtkLabel* toolbar_label;
	GtkListStore* listmodel;
	GtkTreeView* tree_view;
	GBinding* toolbar_label_bind;
	BoxesMiniGraph* cpu;
	BoxesMiniGraph* io;
	BoxesMiniGraph* net;
	gulong stats_id;
};

struct _Block32Data {
	int _ref_count_;
	BoxesProperties * self;
	BoxesLibvirtMachine* machine;
};

struct _BoxesApp {
	BoxesUI parent_instance;
	BoxesAppPrivate * priv;
	GtkApplicationWindow* window;
	GtkNotebook* notebook;
	GtkClutterEmbed* embed;
	ClutterStage* stage;
	ClutterBinLayout* stage_bin;
	ClutterActor* overlay_bin_actor;
	ClutterBinLayout* overlay_bin;
	BoxesCollectionItem* current_item;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesNotificationbar* notificationbar;
	BoxesRevealer* sidebar_revealer;
	BoxesRevealer* searchbar_revealer;
	BoxesSidebar* sidebar;
	BoxesSelectionbar* selectionbar;
	guint duration;
	GSettings* settings;
	BoxesWizard* wizard;
	BoxesProperties* properties;
	BoxesDisplayPage* display_page;
	BoxesCollection* collection;
	BoxesCollectionFilter* filter;
	GSimpleAction* action_properties;
	GSimpleAction* action_fullscreen;
	GSimpleAction* action_shutdown;
	BoxesCollectionView* view;
};

struct _BoxesAppClass {
	BoxesUIClass parent_class;
};

struct _BoxesPropertiesPageWidget {
	GObject parent_instance;
	BoxesPropertiesPageWidgetPrivate * priv;
	GtkWidget* widget;
	gchar* name;
	gboolean empty;
};

struct _BoxesPropertiesPageWidgetClass {
	GObjectClass parent_class;
};

struct _BoxesCollectionItem {
	BoxesUI parent_instance;
	BoxesCollectionItemPrivate * priv;
};

struct _BoxesCollectionItemClass {
	BoxesUIClass parent_class;
};

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

struct _BoxesMachine {
	BoxesCollectionItem parent_instance;
	BoxesMachinePrivate * priv;
	BoxesMachineActor* machine_actor;
	BoxesCollectionSource* source;
	BoxesDisplayConfig* config;
	gboolean stay_on_display;
	gboolean suspend_at_exit;
	gboolean deleted;
};

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	void (*take_screenshot) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GdkPixbuf* (*take_screenshot_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	GList* (*get_properties) (BoxesMachine* self, BoxesPropertiesPage page);
	void (*connect_display) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*disconnect_display) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
};

struct _BoxesLibvirtMachine {
	BoxesMachine parent_instance;
	BoxesLibvirtMachinePrivate * priv;
	GVirDomain* domain;
	GVirConfigDomain* domain_config;
	GVirConnection* connection;
	GVirStorageVol* storage_volume;
	BoxesVMCreator* vm_creator;
	gdouble* cpu_stats;
	gint cpu_stats_length1;
	gint _cpu_stats_size_;
	gdouble* io_stats;
	gint io_stats_length1;
	gint _io_stats_size_;
	gdouble* net_stats;
	gint net_stats_length1;
	gint _net_stats_size_;
};

struct _BoxesLibvirtMachineClass {
	BoxesMachineClass parent_class;
};

struct _BoxesTopbar {
	BoxesUI parent_instance;
	BoxesTopbarPrivate * priv;
	GtkNotebook* notebook;
};

struct _BoxesTopbarClass {
	BoxesUIClass parent_class;
};

typedef enum  {
	BOXES_TOPBAR_PAGE_COLLECTION,
	BOXES_TOPBAR_PAGE_SELECTION,
	BOXES_TOPBAR_PAGE_WIZARD,
	BOXES_TOPBAR_PAGE_PROPERTIES
} BoxesTopbarPage;

struct _BoxesSidebar {
	BoxesUI parent_instance;
	BoxesSidebarPrivate * priv;
	GtkNotebook* notebook;
};

struct _BoxesSidebarClass {
	BoxesUIClass parent_class;
};

typedef enum  {
	BOXES_SIDEBAR_PAGE_COLLECTION,
	BOXES_SIDEBAR_PAGE_WIZARD,
	BOXES_SIDEBAR_PAGE_PROPERTIES
} BoxesSidebarPage;

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


static gpointer boxes_properties_parent_class = NULL;
extern BoxesApp* boxes_app_app;
static gpointer boxes_properties_page_widget_parent_class = NULL;

GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_properties_get_type (void) G_GNUC_CONST;
GType boxes_mini_graph_get_type (void) G_GNUC_CONST;
#define BOXES_PROPERTIES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_PROPERTIES, BoxesPropertiesPrivate))
enum  {
	BOXES_PROPERTIES_DUMMY_PROPERTY,
	BOXES_PROPERTIES_ACTOR
};
BoxesProperties* boxes_properties_new (void);
BoxesProperties* boxes_properties_construct (GType object_type);
BoxesUI* boxes_ui_construct (GType object_type);
static void boxes_properties_setup_ui (BoxesProperties* self);
static void boxes_properties_list_append (BoxesProperties* self, GtkListStore* listmodel, const gchar* label);
static void boxes_properties_populate (BoxesProperties* self);
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
static Block32Data* block32_data_ref (Block32Data* _data32_);
static void block32_data_unref (void * _userdata_);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_searchbar_get_type (void) G_GNUC_CONST;
GType boxes_topbar_get_type (void) G_GNUC_CONST;
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
GType boxes_revealer_get_type (void) G_GNUC_CONST;
GType boxes_sidebar_get_type (void) G_GNUC_CONST;
GType boxes_selectionbar_get_type (void) G_GNUC_CONST;
GType boxes_wizard_get_type (void) G_GNUC_CONST;
GType boxes_display_page_get_type (void) G_GNUC_CONST;
GType boxes_collection_get_type (void) G_GNUC_CONST;
GType boxes_collection_filter_get_type (void) G_GNUC_CONST;
GType boxes_collection_view_get_type (void) G_GNUC_CONST;
static BoxesPropertiesPageWidget* boxes_properties_page_widget_new (BoxesPropertiesPage page, BoxesMachine* machine);
static BoxesPropertiesPageWidget* boxes_properties_page_widget_construct (GType object_type, BoxesPropertiesPage page, BoxesMachine* machine);
static GType boxes_properties_page_widget_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static void ___lambda88_ (Block32Data* _data32_);
GType boxes_property_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_actor_get_type (void) G_GNUC_CONST;
gpointer boxes_vm_creator_ref (gpointer instance);
void boxes_vm_creator_unref (gpointer instance);
GParamSpec* boxes_param_spec_vm_creator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void boxes_value_set_vm_creator (GValue* value, gpointer v_object);
void boxes_value_take_vm_creator (GValue* value, gpointer v_object);
gpointer boxes_value_get_vm_creator (const GValue* value);
GType boxes_vm_creator_get_type (void) G_GNUC_CONST;
void boxes_mini_graph_set_points (BoxesMiniGraph* self, gdouble* value, int value_length1);
static void ____lambda88__boxes_libvirt_machine_stats_updated (BoxesLibvirtMachine* _sender, gpointer self);
GType boxes_topbar_page_get_type (void) G_GNUC_CONST;
static void __lambda43_ (BoxesProperties* self, GtkButton* button);
void boxes_ui_set_ui_state (BoxesUI* self, BoxesUIState value);
static void ___lambda43__gtk_button_clicked (GtkButton* _sender, gpointer self);
GType boxes_sidebar_page_get_type (void) G_GNUC_CONST;
void boxes_tree_view_activate_on_single_click (GtkTreeView* tree_view, gboolean should_activate);
static void __lambda46_ (BoxesProperties* self, GtkTreeView* treeview, GtkTreePath* path, GtkTreeViewColumn* column);
static void ___lambda46__gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self);
#define BOXES_SIDEBAR_shadow_width 7
BoxesMiniGraph* boxes_mini_graph_new_with_ymax (gdouble* points, int points_length1, gdouble ymax, gint npoints);
BoxesMiniGraph* boxes_mini_graph_construct_with_ymax (GType object_type, gdouble* points, int points_length1, gdouble ymax, gint npoints);
BoxesMiniGraph* boxes_mini_graph_new (gdouble* points, int points_length1, gint npoints);
BoxesMiniGraph* boxes_mini_graph_construct (GType object_type, gdouble* points, int points_length1, gint npoints);
static void boxes_properties_real_ui_state_changed (BoxesUI* base);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
static void boxes_properties_page_widget_flush_changes (BoxesPropertiesPageWidget* self);
void boxes_fade_actor (ClutterActor* actor, guint opacity);
ClutterActor* boxes_ui_get_actor (BoxesUI* self);
#define BOXES_PROPERTIES_PAGE_WIDGET_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_PROPERTIES_TYPE_PAGE_WIDGET, BoxesPropertiesPageWidgetPrivate))
enum  {
	BOXES_PROPERTIES_PAGE_WIDGET_DUMMY_PROPERTY
};
static void boxes_properties_page_widget_update_infobar (BoxesPropertiesPageWidget* self);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
gboolean boxes_property_get_reboot_required (BoxesProperty* self);
GList* boxes_machine_get_properties (BoxesMachine* self, BoxesPropertiesPage page);
const gchar* boxes_property_get_description (BoxesProperty* self);
void boxes_get_color (const gchar* desc, GdkColor* result);
GtkWidget* boxes_property_get_widget (BoxesProperty* self);
static void _boxes_properties_page_widget_update_infobar_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
void boxes_property_flush (BoxesProperty* self);
static void boxes_properties_page_widget_finalize (GObject* obj);
static void boxes_properties_finalize (GObject* obj);
static void _vala_boxes_properties_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


GType boxes_properties_page_get_type (void) {
	static volatile gsize boxes_properties_page_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_properties_page_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_PROPERTIES_PAGE_LOGIN, "BOXES_PROPERTIES_PAGE_LOGIN", "login"}, {BOXES_PROPERTIES_PAGE_SYSTEM, "BOXES_PROPERTIES_PAGE_SYSTEM", "system"}, {BOXES_PROPERTIES_PAGE_DISPLAY, "BOXES_PROPERTIES_PAGE_DISPLAY", "display"}, {BOXES_PROPERTIES_PAGE_DEVICES, "BOXES_PROPERTIES_PAGE_DEVICES", "devices"}, {BOXES_PROPERTIES_PAGE_LAST, "BOXES_PROPERTIES_PAGE_LAST", "last"}, {0, NULL, NULL}};
		GType boxes_properties_page_type_id;
		boxes_properties_page_type_id = g_enum_register_static ("BoxesPropertiesPage", values);
		g_once_init_leave (&boxes_properties_page_type_id__volatile, boxes_properties_page_type_id);
	}
	return boxes_properties_page_type_id__volatile;
}


BoxesProperties* boxes_properties_construct (GType object_type) {
	BoxesProperties * self = NULL;
	self = (BoxesProperties*) boxes_ui_construct (object_type);
	boxes_properties_setup_ui (self);
	return self;
}


BoxesProperties* boxes_properties_new (void) {
	return boxes_properties_construct (BOXES_TYPE_PROPERTIES);
}


static void boxes_properties_list_append (BoxesProperties* self, GtkListStore* listmodel, const gchar* label) {
	GtkTreeIter iter = {0};
	GtkListStore* _tmp0_;
	GtkTreeIter _tmp1_ = {0};
	GtkListStore* _tmp2_;
	GtkTreeIter _tmp3_;
	const gchar* _tmp4_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (listmodel != NULL);
	g_return_if_fail (label != NULL);
	_tmp0_ = listmodel;
	gtk_list_store_append (_tmp0_, &_tmp1_);
	iter = _tmp1_;
	_tmp2_ = listmodel;
	_tmp3_ = iter;
	_tmp4_ = label;
	gtk_list_store_set (_tmp2_, &_tmp3_, 0, _tmp4_, -1);
}


static Block32Data* block32_data_ref (Block32Data* _data32_) {
	g_atomic_int_inc (&_data32_->_ref_count_);
	return _data32_;
}


static void block32_data_unref (void * _userdata_) {
	Block32Data* _data32_;
	_data32_ = (Block32Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data32_->_ref_count_)) {
		BoxesProperties * self;
		self = _data32_->self;
		_g_object_unref0 (_data32_->machine);
		_g_object_unref0 (self);
		g_slice_free (Block32Data, _data32_);
	}
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void ___lambda88_ (Block32Data* _data32_) {
	BoxesProperties * self;
	BoxesMiniGraph* _tmp0_;
	BoxesLibvirtMachine* _tmp1_;
	gdouble* _tmp2_;
	gint _tmp2__length1;
	BoxesMiniGraph* _tmp3_;
	BoxesLibvirtMachine* _tmp4_;
	gdouble* _tmp5_;
	gint _tmp5__length1;
	BoxesMiniGraph* _tmp6_;
	BoxesLibvirtMachine* _tmp7_;
	gdouble* _tmp8_;
	gint _tmp8__length1;
	self = _data32_->self;
	_tmp0_ = self->priv->cpu;
	_tmp1_ = _data32_->machine;
	_tmp2_ = _tmp1_->cpu_stats;
	_tmp2__length1 = _tmp1_->cpu_stats_length1;
	boxes_mini_graph_set_points (_tmp0_, _tmp2_, _tmp2__length1);
	_tmp3_ = self->priv->net;
	_tmp4_ = _data32_->machine;
	_tmp5_ = _tmp4_->net_stats;
	_tmp5__length1 = _tmp4_->net_stats_length1;
	boxes_mini_graph_set_points (_tmp3_, _tmp5_, _tmp5__length1);
	_tmp6_ = self->priv->io;
	_tmp7_ = _data32_->machine;
	_tmp8_ = _tmp7_->io_stats;
	_tmp8__length1 = _tmp7_->io_stats_length1;
	boxes_mini_graph_set_points (_tmp6_, _tmp8_, _tmp8__length1);
}


static void ____lambda88__boxes_libvirt_machine_stats_updated (BoxesLibvirtMachine* _sender, gpointer self) {
	___lambda88_ (self);
}


static void boxes_properties_populate (BoxesProperties* self) {
	Block32Data* _data32_;
	GtkListStore* _tmp0_;
	BoxesApp* _tmp6_;
	BoxesCollectionItem* _tmp7_;
	GtkTreeView* _tmp34_;
	GtkTreeSelection* _tmp35_ = NULL;
	GtkTreePath* _tmp36_;
	GtkTreePath* _tmp37_;
	BoxesApp* _tmp38_;
	BoxesCollectionItem* _tmp39_;
	BoxesLibvirtMachine* _tmp40_;
	BoxesLibvirtMachine* _tmp41_;
	g_return_if_fail (self != NULL);
	_data32_ = g_slice_new0 (Block32Data);
	_data32_->_ref_count_ = 1;
	_data32_->self = g_object_ref (self);
	_tmp0_ = self->priv->listmodel;
	gtk_list_store_clear (_tmp0_);
	{
		gint i;
		i = 0;
		{
			gboolean _tmp1_;
			_tmp1_ = TRUE;
			while (TRUE) {
				gboolean _tmp2_;
				gint _tmp4_;
				GtkNotebook* _tmp5_;
				_tmp2_ = _tmp1_;
				if (!_tmp2_) {
					gint _tmp3_;
					_tmp3_ = i;
					i = _tmp3_ + 1;
				}
				_tmp1_ = FALSE;
				_tmp4_ = i;
				if (!(_tmp4_ < ((gint) BOXES_PROPERTIES_PAGE_LAST))) {
					break;
				}
				_tmp5_ = self->priv->notebook;
				gtk_notebook_remove_page (_tmp5_, -1);
			}
		}
	}
	_tmp6_ = boxes_app_app;
	_tmp7_ = _tmp6_->current_item;
	if (_tmp7_ == NULL) {
		block32_data_unref (_data32_);
		_data32_ = NULL;
		return;
	}
	{
		gint i;
		i = 0;
		{
			gboolean _tmp8_;
			_tmp8_ = TRUE;
			while (TRUE) {
				gboolean _tmp9_;
				gint _tmp11_;
				BoxesApp* _tmp12_;
				BoxesCollectionItem* _tmp13_;
				BoxesMachine* _tmp14_;
				BoxesMachine* machine;
				gint _tmp15_;
				BoxesMachine* _tmp16_;
				BoxesPropertiesPageWidget* _tmp17_;
				BoxesPropertiesPageWidget* page;
				GtkNotebook* _tmp18_;
				BoxesPropertiesPageWidget* _tmp19_;
				GtkWidget* _tmp20_;
				GtkNotebook* _tmp21_;
				gint _tmp22_;
				gchar* _tmp23_ = NULL;
				gchar* _tmp24_;
				gchar* _tmp25_ = NULL;
				gchar* _tmp26_;
				BoxesPropertiesPageWidget* _tmp27_;
				BoxesPropertiesPageWidget* _tmp28_;
				BoxesPropertiesPageWidget* _tmp29_;
				gboolean _tmp30_;
				_tmp9_ = _tmp8_;
				if (!_tmp9_) {
					gint _tmp10_;
					_tmp10_ = i;
					i = _tmp10_ + 1;
				}
				_tmp8_ = FALSE;
				_tmp11_ = i;
				if (!(_tmp11_ < ((gint) BOXES_PROPERTIES_PAGE_LAST))) {
					break;
				}
				_tmp12_ = boxes_app_app;
				_tmp13_ = _tmp12_->current_item;
				_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp13_) : NULL);
				machine = _tmp14_;
				_tmp15_ = i;
				_tmp16_ = machine;
				_tmp17_ = boxes_properties_page_widget_new (_tmp15_, _tmp16_);
				page = _tmp17_;
				_tmp18_ = self->priv->notebook;
				_tmp19_ = page;
				_tmp20_ = _tmp19_->widget;
				gtk_notebook_append_page (_tmp18_, _tmp20_, NULL);
				_tmp21_ = self->priv->notebook;
				_tmp22_ = i;
				_tmp23_ = g_strdup_printf ("%i", _tmp22_);
				_tmp24_ = _tmp23_;
				_tmp25_ = g_strconcat ("boxes-property-", _tmp24_, NULL);
				_tmp26_ = _tmp25_;
				_tmp27_ = page;
				_tmp28_ = _g_object_ref0 (_tmp27_);
				g_object_set_data_full ((GObject*) _tmp21_, _tmp26_, _tmp28_, g_object_unref);
				_g_free0 (_tmp26_);
				_g_free0 (_tmp24_);
				_tmp29_ = page;
				_tmp30_ = _tmp29_->empty;
				if (!_tmp30_) {
					GtkListStore* _tmp31_;
					BoxesPropertiesPageWidget* _tmp32_;
					const gchar* _tmp33_;
					_tmp31_ = self->priv->listmodel;
					_tmp32_ = page;
					_tmp33_ = _tmp32_->name;
					boxes_properties_list_append (self, _tmp31_, _tmp33_);
				}
				_g_object_unref0 (page);
				_g_object_unref0 (machine);
			}
		}
	}
	_tmp34_ = self->priv->tree_view;
	_tmp35_ = gtk_tree_view_get_selection (_tmp34_);
	_tmp36_ = gtk_tree_path_new_from_string ("0");
	_tmp37_ = _tmp36_;
	gtk_tree_selection_select_path (_tmp35_, _tmp37_);
	_gtk_tree_path_free0 (_tmp37_);
	_tmp38_ = boxes_app_app;
	_tmp39_ = _tmp38_->current_item;
	_tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, BOXES_TYPE_LIBVIRT_MACHINE) ? ((BoxesLibvirtMachine*) _tmp39_) : NULL);
	_data32_->machine = _tmp40_;
	_tmp41_ = _data32_->machine;
	if (_tmp41_ != NULL) {
		BoxesLibvirtMachine* _tmp42_;
		gulong _tmp43_ = 0UL;
		_tmp42_ = _data32_->machine;
		_tmp43_ = g_signal_connect_data (_tmp42_, "stats-updated", (GCallback) ____lambda88__boxes_libvirt_machine_stats_updated, block32_data_ref (_data32_), (GClosureNotify) block32_data_unref, 0);
		self->priv->stats_id = _tmp43_;
	}
	block32_data_unref (_data32_);
	_data32_ = NULL;
}


static void __lambda43_ (BoxesProperties* self, GtkButton* button) {
	BoxesApp* _tmp0_;
	BoxesApp* _tmp1_;
	BoxesUIState _tmp2_;
	g_return_if_fail (button != NULL);
	_tmp0_ = boxes_app_app;
	_tmp1_ = boxes_app_app;
	_tmp2_ = ((BoxesUI*) _tmp1_)->previous_ui_state;
	boxes_ui_set_ui_state ((BoxesUI*) _tmp0_, _tmp2_);
}


static void ___lambda43__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	__lambda43_ (self, _sender);
}


static void __lambda46_ (BoxesProperties* self, GtkTreeView* treeview, GtkTreePath* path, GtkTreeViewColumn* column) {
	GtkNotebook* _tmp0_;
	GtkTreePath* _tmp1_;
	gint _tmp2_ = 0;
	gint* _tmp3_ = NULL;
	gint _tmp4_;
	g_return_if_fail (treeview != NULL);
	g_return_if_fail (path != NULL);
	g_return_if_fail (column != NULL);
	_tmp0_ = self->priv->notebook;
	_tmp1_ = path;
	_tmp3_ = gtk_tree_path_get_indices_with_depth (_tmp1_, &_tmp2_);
	_tmp4_ = _tmp3_[0];
	g_object_set (_tmp0_, "page", _tmp4_, NULL);
}


static void ___lambda46__gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self) {
	__lambda46_ (self, _sender, path, column);
}


static void boxes_properties_setup_ui (BoxesProperties* self) {
	GtkNotebook* _tmp0_;
	GtkNotebook* _tmp1_;
	GtkNotebook* _tmp2_;
	GtkStyleContext* _tmp3_ = NULL;
	GtkNotebook* _tmp4_;
	GtkClutterActor* _tmp5_;
	GtkClutterActor* _tmp6_;
	GtkWidget* _tmp7_ = NULL;
	GtkStyleContext* _tmp8_ = NULL;
	GtkClutterActor* _tmp9_;
	GtkClutterActor* _tmp10_;
	BoxesApp* _tmp11_;
	BoxesTopbar* _tmp12_;
	GtkNotebook* _tmp13_;
	GtkWidget* _tmp14_ = NULL;
	GtkHBox* _tmp15_;
	GtkHBox* hbox;
	GtkHBox* _tmp16_;
	GtkHBox* box;
	GtkImage* _tmp17_;
	GtkImage* _tmp18_;
	GtkLabel* _tmp19_;
	GtkLabel* _tmp20_;
	GdMainToolbar* _tmp21_;
	GdMainToolbar* toolbar;
	GtkStyleContext* _tmp22_ = NULL;
	GtkWidget* _tmp23_ = NULL;
	GtkButton* _tmp24_;
	GtkButton* _tmp25_;
	GtkButton* _tmp26_;
	BoxesApp* _tmp27_;
	BoxesSidebar* _tmp28_;
	GtkNotebook* _tmp29_;
	GtkWidget* _tmp30_ = NULL;
	GtkVBox* _tmp31_;
	GtkVBox* vbox;
	GtkTreeView* _tmp32_;
	GtkTreeView* _tmp33_;
	GtkStyleContext* _tmp34_ = NULL;
	GtkTreeView* _tmp35_;
	GtkTreeSelection* _tmp36_ = NULL;
	GtkTreeSelection* _tmp37_;
	GtkTreeSelection* selection;
	GtkTreeView* _tmp38_;
	GtkTreeView* _tmp39_;
	GtkListStore* _tmp40_;
	GtkTreeView* _tmp41_;
	GtkListStore* _tmp42_;
	GtkTreeView* _tmp43_;
	GtkCellRendererText* _tmp44_;
	GtkCellRendererText* renderer;
	GtkTreeView* _tmp45_;
	GtkTreeView* _tmp46_;
	GtkGrid* _tmp47_;
	GtkGrid* grid;
	GtkAlignment* _tmp48_;
	GtkWidget* _tmp49_;
	GtkWidget* _tmp50_;
	const gchar* _tmp51_ = NULL;
	GtkLabel* _tmp52_;
	GtkLabel* label;
	GtkLabel* _tmp53_;
	GtkStyleContext* _tmp54_ = NULL;
	GtkLabel* _tmp55_;
	gdouble* _tmp56_ = NULL;
	gdouble* _tmp57_;
	gint _tmp57__length1;
	BoxesMiniGraph* _tmp58_;
	BoxesMiniGraph* _tmp59_;
	BoxesMiniGraph* _tmp60_;
	const gchar* _tmp61_ = NULL;
	GtkLabel* _tmp62_;
	GtkLabel* _tmp63_;
	GtkStyleContext* _tmp64_ = NULL;
	GtkLabel* _tmp65_;
	gdouble* _tmp66_ = NULL;
	gdouble* _tmp67_;
	gint _tmp67__length1;
	BoxesMiniGraph* _tmp68_;
	BoxesMiniGraph* _tmp69_;
	BoxesMiniGraph* _tmp70_;
	const gchar* _tmp71_ = NULL;
	GtkLabel* _tmp72_;
	GtkLabel* _tmp73_;
	GtkStyleContext* _tmp74_ = NULL;
	GtkLabel* _tmp75_;
	gdouble* _tmp76_ = NULL;
	gdouble* _tmp77_;
	gint _tmp77__length1;
	BoxesMiniGraph* _tmp78_;
	BoxesMiniGraph* _tmp79_;
	BoxesMiniGraph* _tmp80_;
	GtkNotebook* _tmp81_;
	g_return_if_fail (self != NULL);
	_tmp0_ = (GtkNotebook*) gtk_notebook_new ();
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->notebook);
	self->priv->notebook = _tmp0_;
	_tmp1_ = self->priv->notebook;
	gtk_notebook_set_show_tabs (_tmp1_, FALSE);
	_tmp2_ = self->priv->notebook;
	_tmp3_ = gtk_widget_get_style_context ((GtkWidget*) _tmp2_);
	gtk_style_context_add_class (_tmp3_, "boxes-bg");
	_tmp4_ = self->priv->notebook;
	_tmp5_ = (GtkClutterActor*) gtk_clutter_actor_new_with_contents ((GtkWidget*) _tmp4_);
	g_object_ref_sink (_tmp5_);
	_g_object_unref0 (self->priv->gtk_actor);
	self->priv->gtk_actor = _tmp5_;
	_tmp6_ = self->priv->gtk_actor;
	_tmp7_ = gtk_clutter_actor_get_widget (_tmp6_);
	_tmp8_ = gtk_widget_get_style_context (_tmp7_);
	gtk_style_context_add_class (_tmp8_, "boxes-bg");
	_tmp9_ = self->priv->gtk_actor;
	clutter_actor_set_name ((ClutterActor*) _tmp9_, "properties");
	_tmp10_ = self->priv->gtk_actor;
	clutter_actor_set_opacity ((ClutterActor*) _tmp10_, (guint) 0);
	_tmp11_ = boxes_app_app;
	_tmp12_ = _tmp11_->topbar;
	_tmp13_ = _tmp12_->notebook;
	_tmp14_ = gtk_notebook_get_nth_page (_tmp13_, (gint) BOXES_TOPBAR_PAGE_PROPERTIES);
	_tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, GTK_TYPE_HBOX) ? ((GtkHBox*) _tmp14_) : NULL);
	hbox = _tmp15_;
	_tmp16_ = (GtkHBox*) gtk_hbox_new (FALSE, 5);
	g_object_ref_sink (_tmp16_);
	box = _tmp16_;
	_tmp17_ = (GtkImage*) gtk_image_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_MENU);
	g_object_ref_sink (_tmp17_);
	_tmp18_ = _tmp17_;
	gtk_container_add ((GtkContainer*) box, (GtkWidget*) _tmp18_);
	_g_object_unref0 (_tmp18_);
	_tmp19_ = (GtkLabel*) gtk_label_new ("label");
	g_object_ref_sink (_tmp19_);
	_g_object_unref0 (self->priv->toolbar_label);
	self->priv->toolbar_label = _tmp19_;
	_tmp20_ = self->priv->toolbar_label;
	gtk_container_add ((GtkContainer*) box, (GtkWidget*) _tmp20_);
	gtk_widget_set_vexpand ((GtkWidget*) box, TRUE);
	_tmp21_ = (GdMainToolbar*) gd_main_toolbar_new ();
	g_object_ref_sink (_tmp21_);
	toolbar = _tmp21_;
	_tmp22_ = gtk_widget_get_style_context ((GtkWidget*) toolbar);
	gtk_style_context_add_class (_tmp22_, GTK_STYLE_CLASS_MENUBAR);
	gtk_box_pack_start ((GtkBox*) hbox, (GtkWidget*) toolbar, TRUE, TRUE, (guint) 0);
	_tmp23_ = gd_main_toolbar_add_button (toolbar, NULL, NULL, TRUE);
	_tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp23_) : NULL);
	_g_object_unref0 (self->priv->back);
	self->priv->back = _tmp24_;
	_tmp25_ = self->priv->back;
	g_object_set ((GtkContainer*) _tmp25_, "child", (GtkWidget*) box, NULL);
	_tmp26_ = self->priv->back;
	g_signal_connect_object (_tmp26_, "clicked", (GCallback) ___lambda43__gtk_button_clicked, self, 0);
	gtk_widget_show_all ((GtkWidget*) hbox);
	_tmp27_ = boxes_app_app;
	_tmp28_ = _tmp27_->sidebar;
	_tmp29_ = _tmp28_->notebook;
	_tmp30_ = gtk_notebook_get_nth_page (_tmp29_, (gint) BOXES_SIDEBAR_PAGE_PROPERTIES);
	_tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, GTK_TYPE_VBOX) ? ((GtkVBox*) _tmp30_) : NULL);
	vbox = _tmp31_;
	_tmp32_ = (GtkTreeView*) gtk_tree_view_new ();
	g_object_ref_sink (_tmp32_);
	_g_object_unref0 (self->priv->tree_view);
	self->priv->tree_view = _tmp32_;
	_tmp33_ = self->priv->tree_view;
	_tmp34_ = gtk_widget_get_style_context ((GtkWidget*) _tmp33_);
	gtk_style_context_add_class (_tmp34_, "boxes-bg");
	_tmp35_ = self->priv->tree_view;
	_tmp36_ = gtk_tree_view_get_selection (_tmp35_);
	_tmp37_ = _g_object_ref0 (_tmp36_);
	selection = _tmp37_;
	gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
	_tmp38_ = self->priv->tree_view;
	boxes_tree_view_activate_on_single_click (_tmp38_, TRUE);
	_tmp39_ = self->priv->tree_view;
	g_signal_connect_object (_tmp39_, "row-activated", (GCallback) ___lambda46__gtk_tree_view_row_activated, self, 0);
	_tmp40_ = gtk_list_store_new (1, G_TYPE_STRING);
	_g_object_unref0 (self->priv->listmodel);
	self->priv->listmodel = _tmp40_;
	_tmp41_ = self->priv->tree_view;
	_tmp42_ = self->priv->listmodel;
	gtk_tree_view_set_model (_tmp41_, (GtkTreeModel*) _tmp42_);
	_tmp43_ = self->priv->tree_view;
	gtk_tree_view_set_headers_visible (_tmp43_, FALSE);
	_tmp44_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp44_);
	renderer = _tmp44_;
	g_object_set ((GtkCellRenderer*) renderer, "xpad", (guint) 20, NULL);
	g_object_set (renderer, "weight", (gint) PANGO_WEIGHT_BOLD, NULL);
	_tmp45_ = self->priv->tree_view;
	gtk_tree_view_insert_column_with_attributes (_tmp45_, -1, "", (GtkCellRenderer*) renderer, "text", 0, NULL);
	_tmp46_ = self->priv->tree_view;
	gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) _tmp46_, TRUE, TRUE, (guint) 0);
	_tmp47_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp47_);
	grid = _tmp47_;
	gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) grid, FALSE, FALSE, (guint) 0);
	gtk_grid_set_column_homogeneous (grid, TRUE);
	gtk_grid_set_column_spacing (grid, 2);
	gtk_grid_set_row_spacing (grid, 10);
	gtk_widget_set_margin_left ((GtkWidget*) grid, 10);
	gtk_widget_set_margin_right ((GtkWidget*) grid, 10 + BOXES_SIDEBAR_shadow_width);
	gtk_widget_set_margin_bottom ((GtkWidget*) grid, 30);
	gtk_widget_set_margin_top ((GtkWidget*) grid, 10);
	_tmp48_ = (GtkAlignment*) gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
	g_object_ref_sink (_tmp48_);
	_g_object_unref0 (self->screenshot_placeholder);
	self->screenshot_placeholder = (GtkWidget*) _tmp48_;
	_tmp49_ = self->screenshot_placeholder;
	gtk_widget_set_size_request (_tmp49_, 180, 130);
	_tmp50_ = self->screenshot_placeholder;
	gtk_grid_attach (grid, _tmp50_, 0, 0, 6, 1);
	_tmp51_ = _ ("CPU:");
	_tmp52_ = (GtkLabel*) gtk_label_new (_tmp51_);
	g_object_ref_sink (_tmp52_);
	label = _tmp52_;
	_tmp53_ = label;
	_tmp54_ = gtk_widget_get_style_context ((GtkWidget*) _tmp53_);
	gtk_style_context_add_class (_tmp54_, "boxes-graph-label");
	_tmp55_ = label;
	gtk_grid_attach (grid, (GtkWidget*) _tmp55_, 0, 1, 1, 1);
	_tmp56_ = g_new0 (gdouble, 0);
	_tmp57_ = _tmp56_;
	_tmp57__length1 = 0;
	_tmp58_ = boxes_mini_graph_new_with_ymax (_tmp57_, 0, 100.0, 20);
	g_object_ref_sink (_tmp58_);
	_g_object_unref0 (self->priv->cpu);
	self->priv->cpu = _tmp58_;
	_tmp57_ = (g_free (_tmp57_), NULL);
	_tmp59_ = self->priv->cpu;
	gtk_widget_set_hexpand ((GtkWidget*) _tmp59_, TRUE);
	_tmp60_ = self->priv->cpu;
	gtk_grid_attach (grid, (GtkWidget*) _tmp60_, 1, 1, 1, 1);
	_tmp61_ = _ ("I/O:");
	_tmp62_ = (GtkLabel*) gtk_label_new (_tmp61_);
	g_object_ref_sink (_tmp62_);
	_g_object_unref0 (label);
	label = _tmp62_;
	_tmp63_ = label;
	_tmp64_ = gtk_widget_get_style_context ((GtkWidget*) _tmp63_);
	gtk_style_context_add_class (_tmp64_, "boxes-graph-label");
	_tmp65_ = label;
	gtk_grid_attach (grid, (GtkWidget*) _tmp65_, 2, 1, 1, 1);
	_tmp66_ = g_new0 (gdouble, 0);
	_tmp67_ = _tmp66_;
	_tmp67__length1 = 0;
	_tmp68_ = boxes_mini_graph_new (_tmp67_, 0, 20);
	g_object_ref_sink (_tmp68_);
	_g_object_unref0 (self->priv->io);
	self->priv->io = _tmp68_;
	_tmp67_ = (g_free (_tmp67_), NULL);
	_tmp69_ = self->priv->io;
	gtk_widget_set_hexpand ((GtkWidget*) _tmp69_, TRUE);
	_tmp70_ = self->priv->io;
	gtk_grid_attach (grid, (GtkWidget*) _tmp70_, 3, 1, 1, 1);
	_tmp71_ = _ ("Net:");
	_tmp72_ = (GtkLabel*) gtk_label_new (_tmp71_);
	g_object_ref_sink (_tmp72_);
	_g_object_unref0 (label);
	label = _tmp72_;
	_tmp73_ = label;
	_tmp74_ = gtk_widget_get_style_context ((GtkWidget*) _tmp73_);
	gtk_style_context_add_class (_tmp74_, "boxes-graph-label");
	_tmp75_ = label;
	gtk_grid_attach (grid, (GtkWidget*) _tmp75_, 4, 1, 1, 1);
	_tmp76_ = g_new0 (gdouble, 0);
	_tmp77_ = _tmp76_;
	_tmp77__length1 = 0;
	_tmp78_ = boxes_mini_graph_new (_tmp77_, 0, 20);
	g_object_ref_sink (_tmp78_);
	_g_object_unref0 (self->priv->net);
	self->priv->net = _tmp78_;
	_tmp77_ = (g_free (_tmp77_), NULL);
	_tmp79_ = self->priv->net;
	gtk_widget_set_hexpand ((GtkWidget*) _tmp79_, TRUE);
	_tmp80_ = self->priv->net;
	gtk_grid_attach (grid, (GtkWidget*) _tmp80_, 5, 1, 1, 1);
	gtk_widget_show_all ((GtkWidget*) vbox);
	_tmp81_ = self->priv->notebook;
	gtk_widget_show_all ((GtkWidget*) _tmp81_);
	_g_object_unref0 (label);
	_g_object_unref0 (grid);
	_g_object_unref0 (renderer);
	_g_object_unref0 (selection);
	_g_object_unref0 (vbox);
	_g_object_unref0 (toolbar);
	_g_object_unref0 (box);
	_g_object_unref0 (hbox);
}


static void boxes_properties_real_ui_state_changed (BoxesUI* base) {
	BoxesProperties * self;
	guint opacity;
	gulong _tmp0_;
	BoxesUIState _tmp4_;
	BoxesUIState _tmp5_;
	ClutterActor* _tmp26_;
	ClutterActor* _tmp27_;
	guint _tmp28_;
	self = (BoxesProperties*) base;
	opacity = (guint) 0;
	_tmp0_ = self->priv->stats_id;
	if (_tmp0_ != ((gulong) 0)) {
		BoxesApp* _tmp1_;
		BoxesCollectionItem* _tmp2_;
		gulong _tmp3_;
		_tmp1_ = boxes_app_app;
		_tmp2_ = _tmp1_->current_item;
		_tmp3_ = self->priv->stats_id;
		g_signal_handler_disconnect ((GObject*) _tmp2_, _tmp3_);
		self->priv->stats_id = (gulong) 0;
	}
	_tmp4_ = boxes_ui_get_ui_state ((BoxesUI*) self);
	_tmp5_ = _tmp4_;
	switch (_tmp5_) {
		case BOXES_UI_STATE_PROPERTIES:
		{
			BoxesApp* _tmp6_;
			BoxesCollectionItem* _tmp7_;
			GtkLabel* _tmp8_;
			GBinding* _tmp9_ = NULL;
			GBinding* _tmp10_;
			_tmp6_ = boxes_app_app;
			_tmp7_ = _tmp6_->current_item;
			_tmp8_ = self->priv->toolbar_label;
			_tmp9_ = g_object_bind_property_with_closures ((GObject*) _tmp7_, "name", (GObject*) _tmp8_, "label", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
			_tmp10_ = _g_object_ref0 (_tmp9_);
			_g_object_unref0 (self->priv->toolbar_label_bind);
			self->priv->toolbar_label_bind = _tmp10_;
			boxes_properties_populate (self);
			opacity = (guint) 255;
			break;
		}
		default:
		{
			BoxesUIState _tmp11_;
			_tmp11_ = ((BoxesUI*) self)->previous_ui_state;
			if (_tmp11_ == BOXES_UI_STATE_PROPERTIES) {
				{
					gint i;
					i = 0;
					{
						gboolean _tmp12_;
						_tmp12_ = TRUE;
						while (TRUE) {
							gboolean _tmp13_;
							gint _tmp15_;
							GtkNotebook* _tmp16_;
							gint _tmp17_;
							gchar* _tmp18_ = NULL;
							gchar* _tmp19_;
							gchar* _tmp20_ = NULL;
							gchar* _tmp21_;
							gconstpointer _tmp22_ = NULL;
							BoxesPropertiesPageWidget* _tmp23_;
							BoxesPropertiesPageWidget* _tmp24_;
							BoxesPropertiesPageWidget* page;
							BoxesPropertiesPageWidget* _tmp25_;
							_tmp13_ = _tmp12_;
							if (!_tmp13_) {
								gint _tmp14_;
								_tmp14_ = i;
								i = _tmp14_ + 1;
							}
							_tmp12_ = FALSE;
							_tmp15_ = i;
							if (!(_tmp15_ < ((gint) BOXES_PROPERTIES_PAGE_LAST))) {
								break;
							}
							_tmp16_ = self->priv->notebook;
							_tmp17_ = i;
							_tmp18_ = g_strdup_printf ("%i", _tmp17_);
							_tmp19_ = _tmp18_;
							_tmp20_ = g_strconcat ("boxes-property-", _tmp19_, NULL);
							_tmp21_ = _tmp20_;
							_tmp22_ = g_object_get_data ((GObject*) _tmp16_, _tmp21_);
							_tmp23_ = _g_object_ref0 ((BoxesPropertiesPageWidget*) _tmp22_);
							_tmp24_ = _tmp23_;
							_g_free0 (_tmp21_);
							_g_free0 (_tmp19_);
							page = _tmp24_;
							_tmp25_ = page;
							boxes_properties_page_widget_flush_changes (_tmp25_);
							_g_object_unref0 (page);
						}
					}
				}
			}
			break;
		}
	}
	_tmp26_ = boxes_ui_get_actor ((BoxesUI*) self);
	_tmp27_ = _tmp26_;
	_tmp28_ = opacity;
	boxes_fade_actor (_tmp27_, _tmp28_);
}


static ClutterActor* boxes_properties_real_get_actor (BoxesUI* base) {
	ClutterActor* result;
	BoxesProperties* self;
	GtkClutterActor* _tmp0_;
	self = (BoxesProperties*) base;
	_tmp0_ = self->priv->gtk_actor;
	result = (ClutterActor*) _tmp0_;
	return result;
}


static void _g_object_unref0_ (gpointer var) {
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
}


static void _g_list_free__g_object_unref0_ (GList* self) {
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
	g_list_free (self);
}


static void boxes_properties_page_widget_update_infobar (BoxesPropertiesPageWidget* self) {
	gboolean show_it;
	GList* _tmp0_;
	GtkInfoBar* _tmp5_;
	gboolean _tmp6_;
	g_return_if_fail (self != NULL);
	show_it = FALSE;
	_tmp0_ = self->priv->properties;
	{
		GList* property_collection = NULL;
		GList* property_it = NULL;
		property_collection = _tmp0_;
		for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
			BoxesProperty* _tmp1_;
			BoxesProperty* property = NULL;
			_tmp1_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
			property = _tmp1_;
			{
				BoxesProperty* _tmp2_;
				gboolean _tmp3_;
				gboolean _tmp4_;
				_tmp2_ = property;
				_tmp3_ = boxes_property_get_reboot_required (_tmp2_);
				_tmp4_ = _tmp3_;
				if (_tmp4_) {
					show_it = TRUE;
					_g_object_unref0 (property);
					break;
				}
				_g_object_unref0 (property);
			}
		}
	}
	_tmp5_ = self->priv->infobar;
	_tmp6_ = show_it;
	gtk_widget_set_visible ((GtkWidget*) _tmp5_, _tmp6_);
}


static void _boxes_properties_page_widget_update_infobar_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
	boxes_properties_page_widget_update_infobar (self);
}


static BoxesPropertiesPageWidget* boxes_properties_page_widget_construct (GType object_type, BoxesPropertiesPage page, BoxesMachine* machine) {
	BoxesPropertiesPageWidget * self = NULL;
	BoxesPropertiesPage _tmp0_;
	GtkGrid* _tmp9_;
	GtkGrid* _tmp10_;
	GtkGrid* _tmp11_;
	GtkGrid* _tmp12_;
	GtkGrid* _tmp13_;
	const gchar* _tmp14_;
	GtkLabel* _tmp15_;
	GtkLabel* label;
	GtkLabel* _tmp16_;
	GtkStyleContext* _tmp17_ = NULL;
	GtkLabel* _tmp18_;
	GtkLabel* _tmp19_;
	GtkLabel* _tmp20_;
	GtkGrid* _tmp21_;
	GtkLabel* _tmp22_;
	GtkInfoBar* _tmp23_;
	GtkInfoBar* _tmp24_;
	GtkInfoBar* _tmp25_;
	GtkWidget* _tmp26_ = NULL;
	GtkContainer* _tmp27_;
	GtkContainer* infobar_container;
	const gchar* _tmp28_ = NULL;
	GtkLabel* _tmp29_;
	GtkLabel* _tmp30_;
	GtkContainer* _tmp31_;
	GtkLabel* _tmp32_;
	GtkInfoBar* _tmp33_;
	GtkInfoBar* _tmp34_;
	GtkGrid* _tmp35_;
	GtkInfoBar* _tmp36_;
	BoxesMachine* _tmp37_;
	BoxesPropertiesPage _tmp38_;
	GList* _tmp39_ = NULL;
	GList* _tmp40_;
	guint _tmp41_ = 0U;
	gboolean _tmp42_;
	GtkGrid* _tmp67_;
	GtkGrid* _tmp68_;
	GtkWidget* _tmp69_;
	g_return_val_if_fail (machine != NULL, NULL);
	self = (BoxesPropertiesPageWidget*) g_object_new (object_type, NULL);
	_tmp0_ = page;
	switch (_tmp0_) {
		case BOXES_PROPERTIES_PAGE_LOGIN:
		{
			const gchar* _tmp1_ = NULL;
			gchar* _tmp2_;
			_tmp1_ = _ ("Login");
			_tmp2_ = g_strdup (_tmp1_);
			_g_free0 (self->name);
			self->name = _tmp2_;
			break;
		}
		case BOXES_PROPERTIES_PAGE_SYSTEM:
		{
			const gchar* _tmp3_ = NULL;
			gchar* _tmp4_;
			_tmp3_ = _ ("System");
			_tmp4_ = g_strdup (_tmp3_);
			_g_free0 (self->name);
			self->name = _tmp4_;
			break;
		}
		case BOXES_PROPERTIES_PAGE_DISPLAY:
		{
			const gchar* _tmp5_ = NULL;
			gchar* _tmp6_;
			_tmp5_ = _ ("Display");
			_tmp6_ = g_strdup (_tmp5_);
			_g_free0 (self->name);
			self->name = _tmp6_;
			break;
		}
		case BOXES_PROPERTIES_PAGE_DEVICES:
		{
			const gchar* _tmp7_ = NULL;
			gchar* _tmp8_;
			_tmp7_ = _ ("Devices");
			_tmp8_ = g_strdup (_tmp7_);
			_g_free0 (self->name);
			self->name = _tmp8_;
			break;
		}
		default:
		break;
	}
	_tmp9_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp9_);
	_g_object_unref0 (self->priv->grid);
	self->priv->grid = _tmp9_;
	_tmp10_ = self->priv->grid;
	g_object_set ((GtkWidget*) _tmp10_, "margin", 20, NULL);
	_tmp11_ = self->priv->grid;
	gtk_grid_set_row_spacing (_tmp11_, 10);
	_tmp12_ = self->priv->grid;
	gtk_grid_set_column_spacing (_tmp12_, 20);
	_tmp13_ = self->priv->grid;
	gtk_widget_set_valign ((GtkWidget*) _tmp13_, GTK_ALIGN_START);
	_tmp14_ = self->name;
	_tmp15_ = (GtkLabel*) gtk_label_new (_tmp14_);
	g_object_ref_sink (_tmp15_);
	label = _tmp15_;
	_tmp16_ = label;
	_tmp17_ = gtk_widget_get_style_context ((GtkWidget*) _tmp16_);
	gtk_style_context_add_class (_tmp17_, "boxes-step-label");
	_tmp18_ = label;
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp18_, 10);
	_tmp19_ = label;
	g_object_set ((GtkMisc*) _tmp19_, "xalign", 0.0f, NULL);
	_tmp20_ = label;
	gtk_widget_set_hexpand ((GtkWidget*) _tmp20_, FALSE);
	_tmp21_ = self->priv->grid;
	_tmp22_ = label;
	gtk_grid_attach (_tmp21_, (GtkWidget*) _tmp22_, 0, 0, 2, 1);
	_tmp23_ = (GtkInfoBar*) gtk_info_bar_new ();
	g_object_ref_sink (_tmp23_);
	_g_object_unref0 (self->priv->infobar);
	self->priv->infobar = _tmp23_;
	_tmp24_ = self->priv->infobar;
	gtk_widget_set_no_show_all ((GtkWidget*) _tmp24_, TRUE);
	_tmp25_ = self->priv->infobar;
	_tmp26_ = gtk_info_bar_get_content_area (_tmp25_);
	_tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, GTK_TYPE_CONTAINER) ? ((GtkContainer*) _tmp26_) : NULL);
	infobar_container = _tmp27_;
	_tmp28_ = _ ("Some changes may take effect only after reboot");
	_tmp29_ = (GtkLabel*) gtk_label_new (_tmp28_);
	g_object_ref_sink (_tmp29_);
	_g_object_unref0 (label);
	label = _tmp29_;
	_tmp30_ = label;
	gtk_widget_set_visible ((GtkWidget*) _tmp30_, TRUE);
	_tmp31_ = infobar_container;
	_tmp32_ = label;
	gtk_container_add (_tmp31_, (GtkWidget*) _tmp32_);
	_tmp33_ = self->priv->infobar;
	gtk_info_bar_set_message_type (_tmp33_, GTK_MESSAGE_INFO);
	_tmp34_ = self->priv->infobar;
	gtk_widget_set_hexpand ((GtkWidget*) _tmp34_, TRUE);
	_tmp35_ = self->priv->grid;
	_tmp36_ = self->priv->infobar;
	gtk_grid_attach (_tmp35_, (GtkWidget*) _tmp36_, 0, 1, 2, 1);
	_tmp37_ = machine;
	_tmp38_ = page;
	_tmp39_ = boxes_machine_get_properties (_tmp37_, _tmp38_);
	__g_list_free__g_object_unref0_0 (self->priv->properties);
	self->priv->properties = _tmp39_;
	_tmp40_ = self->priv->properties;
	_tmp41_ = g_list_length (_tmp40_);
	self->empty = _tmp41_ == ((guint) 0);
	_tmp42_ = self->empty;
	if (!_tmp42_) {
		gint current_row;
		GList* _tmp43_;
		current_row = 2;
		_tmp43_ = self->priv->properties;
		{
			GList* property_collection = NULL;
			GList* property_it = NULL;
			property_collection = _tmp43_;
			for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
				BoxesProperty* _tmp44_;
				BoxesProperty* property = NULL;
				_tmp44_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
				property = _tmp44_;
				{
					BoxesProperty* _tmp45_;
					const gchar* _tmp46_;
					const gchar* _tmp47_;
					GtkLabel* _tmp48_;
					GtkLabel* label_name;
					GtkLabel* _tmp49_;
					GdkColor _tmp50_ = {0};
					GtkLabel* _tmp51_;
					GtkLabel* _tmp52_;
					GtkLabel* _tmp53_;
					GtkGrid* _tmp54_;
					GtkLabel* _tmp55_;
					gint _tmp56_;
					BoxesProperty* _tmp57_;
					GtkWidget* _tmp58_;
					GtkWidget* _tmp59_;
					GtkWidget* _tmp60_;
					GtkWidget* widget;
					GtkWidget* _tmp61_;
					GtkGrid* _tmp62_;
					GtkWidget* _tmp63_;
					gint _tmp64_;
					BoxesProperty* _tmp65_;
					gint _tmp66_;
					_tmp45_ = property;
					_tmp46_ = boxes_property_get_description (_tmp45_);
					_tmp47_ = _tmp46_;
					_tmp48_ = (GtkLabel*) gtk_label_new (_tmp47_);
					g_object_ref_sink (_tmp48_);
					label_name = _tmp48_;
					_tmp49_ = label_name;
					boxes_get_color ("grey", &_tmp50_);
					gtk_widget_modify_fg ((GtkWidget*) _tmp49_, GTK_STATE_NORMAL, &_tmp50_);
					_tmp51_ = label_name;
					gtk_widget_set_margin_left ((GtkWidget*) _tmp51_, 25);
					_tmp52_ = label_name;
					gtk_widget_set_halign ((GtkWidget*) _tmp52_, GTK_ALIGN_START);
					_tmp53_ = label_name;
					gtk_widget_set_hexpand ((GtkWidget*) _tmp53_, FALSE);
					_tmp54_ = self->priv->grid;
					_tmp55_ = label_name;
					_tmp56_ = current_row;
					gtk_grid_attach (_tmp54_, (GtkWidget*) _tmp55_, 0, _tmp56_, 1, 1);
					_tmp57_ = property;
					_tmp58_ = boxes_property_get_widget (_tmp57_);
					_tmp59_ = _tmp58_;
					_tmp60_ = _g_object_ref0 (_tmp59_);
					widget = _tmp60_;
					_tmp61_ = widget;
					gtk_widget_set_hexpand (_tmp61_, TRUE);
					_tmp62_ = self->priv->grid;
					_tmp63_ = widget;
					_tmp64_ = current_row;
					gtk_grid_attach (_tmp62_, _tmp63_, 1, _tmp64_, 1, 1);
					_tmp65_ = property;
					g_signal_connect_object ((GObject*) _tmp65_, "notify::reboot-required", (GCallback) _boxes_properties_page_widget_update_infobar_g_object_notify, self, 0);
					_tmp66_ = current_row;
					current_row = _tmp66_ + 1;
					_g_object_unref0 (widget);
					_g_object_unref0 (label_name);
					_g_object_unref0 (property);
				}
			}
		}
		boxes_properties_page_widget_update_infobar (self);
	}
	_tmp67_ = self->priv->grid;
	gtk_widget_show_all ((GtkWidget*) _tmp67_);
	_tmp68_ = self->priv->grid;
	_tmp69_ = _g_object_ref0 ((GtkWidget*) _tmp68_);
	_g_object_unref0 (self->widget);
	self->widget = _tmp69_;
	_g_object_unref0 (infobar_container);
	_g_object_unref0 (label);
	return self;
}


static BoxesPropertiesPageWidget* boxes_properties_page_widget_new (BoxesPropertiesPage page, BoxesMachine* machine) {
	return boxes_properties_page_widget_construct (BOXES_PROPERTIES_TYPE_PAGE_WIDGET, page, machine);
}


static void boxes_properties_page_widget_flush_changes (BoxesPropertiesPageWidget* self) {
	GList* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->properties;
	{
		GList* property_collection = NULL;
		GList* property_it = NULL;
		property_collection = _tmp0_;
		for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
			BoxesProperty* _tmp1_;
			BoxesProperty* property = NULL;
			_tmp1_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
			property = _tmp1_;
			{
				BoxesProperty* _tmp2_;
				_tmp2_ = property;
				boxes_property_flush (_tmp2_);
				_g_object_unref0 (property);
			}
		}
	}
}


static void boxes_properties_page_widget_class_init (BoxesPropertiesPageWidgetClass * klass) {
	boxes_properties_page_widget_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (BoxesPropertiesPageWidgetPrivate));
	G_OBJECT_CLASS (klass)->finalize = boxes_properties_page_widget_finalize;
}


static void boxes_properties_page_widget_instance_init (BoxesPropertiesPageWidget * self) {
	self->priv = BOXES_PROPERTIES_PAGE_WIDGET_GET_PRIVATE (self);
}


static void boxes_properties_page_widget_finalize (GObject* obj) {
	BoxesPropertiesPageWidget * self;
	GList* _tmp0_;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_PROPERTIES_TYPE_PAGE_WIDGET, BoxesPropertiesPageWidget);
	_tmp0_ = self->priv->properties;
	{
		GList* property_collection = NULL;
		GList* property_it = NULL;
		property_collection = _tmp0_;
		for (property_it = property_collection; property_it != NULL; property_it = property_it->next) {
			BoxesProperty* _tmp1_;
			BoxesProperty* property = NULL;
			_tmp1_ = _g_object_ref0 ((BoxesProperty*) property_it->data);
			property = _tmp1_;
			{
				BoxesProperty* _tmp2_;
				_tmp2_ = property;
				g_signal_handlers_disconnect_by_func (_tmp2_, (void*) boxes_properties_page_widget_update_infobar, self);
				_g_object_unref0 (property);
			}
		}
	}
	_g_object_unref0 (self->widget);
	_g_free0 (self->name);
	_g_object_unref0 (self->priv->grid);
	_g_object_unref0 (self->priv->infobar);
	__g_list_free__g_object_unref0_0 (self->priv->properties);
	G_OBJECT_CLASS (boxes_properties_page_widget_parent_class)->finalize (obj);
}


static 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 (G_TYPE_OBJECT, "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;
}


static void boxes_properties_class_init (BoxesPropertiesClass * klass) {
	boxes_properties_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (BoxesPropertiesPrivate));
	BOXES_UI_CLASS (klass)->ui_state_changed = boxes_properties_real_ui_state_changed;
	BOXES_UI_CLASS (klass)->get_actor = boxes_properties_real_get_actor;
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_properties_get_property;
	G_OBJECT_CLASS (klass)->finalize = boxes_properties_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_PROPERTIES_ACTOR, g_param_spec_object ("actor", "actor", "actor", clutter_actor_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}


static void boxes_properties_instance_init (BoxesProperties * self) {
	self->priv = BOXES_PROPERTIES_GET_PRIVATE (self);
}


static void boxes_properties_finalize (GObject* obj) {
	BoxesProperties * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_PROPERTIES, BoxesProperties);
	_g_object_unref0 (self->screenshot_placeholder);
	_g_object_unref0 (self->priv->gtk_actor);
	_g_object_unref0 (self->priv->notebook);
	_g_object_unref0 (self->priv->back);
	_g_object_unref0 (self->priv->toolbar_label);
	_g_object_unref0 (self->priv->listmodel);
	_g_object_unref0 (self->priv->tree_view);
	_g_object_unref0 (self->priv->toolbar_label_bind);
	_g_object_unref0 (self->priv->cpu);
	_g_object_unref0 (self->priv->io);
	_g_object_unref0 (self->priv->net);
	G_OBJECT_CLASS (boxes_properties_parent_class)->finalize (obj);
}


GType boxes_properties_get_type (void) {
	static volatile gsize boxes_properties_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_properties_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesProperties), 0, (GInstanceInitFunc) boxes_properties_instance_init, NULL };
		GType boxes_properties_type_id;
		boxes_properties_type_id = g_type_register_static (BOXES_TYPE_UI, "BoxesProperties", &g_define_type_info, 0);
		g_once_init_leave (&boxes_properties_type_id__volatile, boxes_properties_type_id);
	}
	return boxes_properties_type_id__volatile;
}


static void _vala_boxes_properties_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesProperties * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_PROPERTIES, BoxesProperties);
	switch (property_id) {
		case BOXES_PROPERTIES_ACTOR:
		g_value_set_object (value, boxes_ui_get_actor ((BoxesUI*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



