/* snapshots-property.c generated by valac 0.39.5, the Vala compiler
 * generated from snapshots-property.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 <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <float.h>
#include <math.h>
#include <libvirt-gconfig/libvirt-gconfig.h>


#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 _BoxesPropertyPrivate BoxesPropertyPrivate;

#define BOXES_TYPE_SNAPSHOTS_PROPERTY (boxes_snapshots_property_get_type ())
#define BOXES_SNAPSHOTS_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SNAPSHOTS_PROPERTY, BoxesSnapshotsProperty))
#define BOXES_SNAPSHOTS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SNAPSHOTS_PROPERTY, BoxesSnapshotsPropertyClass))
#define BOXES_IS_SNAPSHOTS_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SNAPSHOTS_PROPERTY))
#define BOXES_IS_SNAPSHOTS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SNAPSHOTS_PROPERTY))
#define BOXES_SNAPSHOTS_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SNAPSHOTS_PROPERTY, BoxesSnapshotsPropertyClass))

typedef struct _BoxesSnapshotsProperty BoxesSnapshotsProperty;
typedef struct _BoxesSnapshotsPropertyClass BoxesSnapshotsPropertyClass;
typedef struct _BoxesSnapshotsPropertyPrivate BoxesSnapshotsPropertyPrivate;

#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;
enum  {
	BOXES_SNAPSHOTS_PROPERTY_0_PROPERTY,
	BOXES_SNAPSHOTS_PROPERTY_NUM_PROPERTIES
};
static GParamSpec* boxes_snapshots_property_properties[BOXES_SNAPSHOTS_PROPERTY_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

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

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIIface BoxesUIIface;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())
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_PROPERTIES_PAGE (boxes_properties_page_get_type ())
typedef struct _BoxesMachinePrivate BoxesMachinePrivate;

#define BOXES_MACHINE_TYPE_CONNECT_FLAGS (boxes_machine_connect_flags_get_type ())
typedef struct _BoxesLibvirtMachinePrivate BoxesLibvirtMachinePrivate;

#define BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES (boxes_libvirt_machine_properties_get_type ())
#define BOXES_LIBVIRT_MACHINE_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachineProperties))
#define BOXES_LIBVIRT_MACHINE_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachinePropertiesClass))
#define BOXES_IS_LIBVIRT_MACHINE_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES))
#define BOXES_IS_LIBVIRT_MACHINE_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES))
#define BOXES_LIBVIRT_MACHINE_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachinePropertiesClass))

typedef struct _BoxesLibvirtMachineProperties BoxesLibvirtMachineProperties;
typedef struct _BoxesLibvirtMachinePropertiesClass BoxesLibvirtMachinePropertiesClass;

#define BOXES_TYPE_SNAPSHOT_LIST_ROW (boxes_snapshot_list_row_get_type ())
#define BOXES_SNAPSHOT_LIST_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SNAPSHOT_LIST_ROW, BoxesSnapshotListRow))
#define BOXES_SNAPSHOT_LIST_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SNAPSHOT_LIST_ROW, BoxesSnapshotListRowClass))
#define BOXES_IS_SNAPSHOT_LIST_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SNAPSHOT_LIST_ROW))
#define BOXES_IS_SNAPSHOT_LIST_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SNAPSHOT_LIST_ROW))
#define BOXES_SNAPSHOT_LIST_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SNAPSHOT_LIST_ROW, BoxesSnapshotListRowClass))

typedef struct _BoxesSnapshotListRow BoxesSnapshotListRow;
typedef struct _BoxesSnapshotListRowClass BoxesSnapshotListRowClass;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesSnapshotsPropertyFetchSnapshotsData BoxesSnapshotsPropertyFetchSnapshotsData;
typedef struct _BoxesSnapshotListRowPrivate BoxesSnapshotListRowPrivate;

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())

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

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;

#define 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_NOTIFICATION (boxes_notification_get_type ())
#define BOXES_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATION, BoxesNotification))
#define BOXES_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATION, BoxesNotificationClass))
#define BOXES_IS_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATION))
#define BOXES_IS_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATION))
#define BOXES_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATION, BoxesNotificationClass))

typedef struct _BoxesNotification BoxesNotification;
typedef struct _BoxesNotificationClass BoxesNotificationClass;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _BoxesSnapshotsPropertyCreateSnapshotData BoxesSnapshotsPropertyCreateSnapshotData;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

struct _BoxesProperty {
	GObject parent_instance;
	BoxesPropertyPrivate * priv;
};

struct _BoxesPropertyClass {
	GObjectClass parent_class;
};

struct _BoxesSnapshotsProperty {
	BoxesProperty parent_instance;
	BoxesSnapshotsPropertyPrivate * priv;
};

struct _BoxesSnapshotsPropertyClass {
	BoxesPropertyClass parent_class;
};

struct _BoxesSnapshotsPropertyPrivate {
	BoxesLibvirtMachine* machine;
	GtkListBox* snapshot_list;
	GtkStack* stack;
	GtkLabel* activity_label;
	GtkStack* snapshot_stack;
	GtkLabel* empty_label;
	GtkBox* activity_box;
	GtkBox* snapshot_box;
	gulong added_id;
	gulong removed_id;
};

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

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

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

struct _BoxesCollectionItemClass {
	GObjectClass parent_class;
	gint (*compare) (BoxesCollectionItem* self, BoxesCollectionItem* other);
};

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

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

typedef enum  {
	BOXES_MACHINE_CONNECT_FLAGS_NONE = 0,
	BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE = 1 << 0
} BoxesMachineConnectFlags;

struct _BoxesMachine {
	BoxesCollectionItem parent_instance;
	BoxesMachinePrivate * priv;
	BoxesCollectionSource* source;
	BoxesBoxConfig* config;
	gboolean stay_on_display;
};

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	void (*save_real) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*save_real_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	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, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*restart) (BoxesMachine* self);
	void (*clone) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*clone_finish) (BoxesMachine* self, GAsyncResult* _res_);
	void (*disconnect_display) (BoxesMachine* self);
	void (*update_status) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
	gboolean (*get_suspend_at_exit) (BoxesMachine* self);
	gboolean (*get_can_save) (BoxesMachine* self);
	gboolean (*get_can_restart) (BoxesMachine* self);
	gboolean (*get_can_clone) (BoxesMachine* self);
	gboolean (*get_should_autosave) (BoxesMachine* self);
	gboolean (*get_is_local) (BoxesMachine* self);
};

struct _BoxesLibvirtMachine {
	BoxesMachine parent_instance;
	BoxesLibvirtMachinePrivate * priv;
	BoxesLibvirtMachineProperties* properties;
	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 _BoxesSnapshotsPropertyFetchSnapshotsData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesSnapshotsProperty* self;
	GList* snapshots;
	BoxesLibvirtMachine* _tmp0_;
	BoxesLibvirtMachineProperties* _tmp1_;
	GList* _tmp2_;
	GList* snapshot_collection;
	GList* snapshot_it;
	GVirDomainSnapshot* _tmp3_;
	GVirDomainSnapshot* snapshot;
	BoxesSnapshotListRow* row;
	GVirDomainSnapshot* _tmp4_;
	BoxesLibvirtMachine* _tmp5_;
	BoxesSnapshotListRow* _tmp6_;
	BoxesSnapshotListRow* _tmp7_;
	GtkListBox* _tmp8_;
	BoxesSnapshotListRow* _tmp9_;
	GError* e;
	GError* _tmp10_;
	const gchar* _tmp11_;
	GError * _inner_error_;
};

struct _BoxesSnapshotListRow {
	GtkListBoxRow parent_instance;
	BoxesSnapshotListRowPrivate * priv;
	GVirDomainSnapshot* snapshot;
};

struct _BoxesSnapshotListRowClass {
	GtkListBoxRowClass parent_class;
};

typedef enum  {
	BOXES_MACHINE_MACHINE_STATE_UNKNOWN,
	BOXES_MACHINE_MACHINE_STATE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_RUNNING,
	BOXES_MACHINE_MACHINE_STATE_PAUSED,
	BOXES_MACHINE_MACHINE_STATE_SAVED,
	BOXES_MACHINE_MACHINE_STATE_SLEEPING
} BoxesMachineMachineState;

struct _BoxesSnapshotsPropertyCreateSnapshotData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesSnapshotsProperty* self;
	BoxesLibvirtMachine* _tmp0_;
	BoxesMachineMachineState _tmp1_;
	BoxesMachineMachineState _tmp2_;
	GVirDomainSnapshot* new_snapshot;
	BoxesLibvirtMachine* _tmp3_;
	GVirDomainSnapshot* _tmp4_;
	BoxesSnapshotListRow* new_row;
	BoxesLibvirtMachine* _tmp5_;
	BoxesSnapshotListRow* _tmp6_;
	BoxesSnapshotListRow* _tmp7_;
	GtkListBox* _tmp8_;
	BoxesSnapshotListRow* _tmp9_;
	GError* e;
	gchar* msg;
	BoxesLibvirtMachine* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	BoxesLibvirtMachine* _tmp14_;
	BoxesAppWindow* _tmp15_;
	BoxesAppWindow* _tmp16_;
	BoxesNotificationbar* _tmp17_;
	BoxesNotificationbar* _tmp18_;
	const gchar* _tmp19_;
	BoxesNotification* _tmp20_;
	BoxesNotification* _tmp21_;
	GError* _tmp22_;
	const gchar* _tmp23_;
	GError * _inner_error_;
};


static gpointer boxes_snapshots_property_parent_class = NULL;

GType boxes_property_get_type (void) G_GNUC_CONST;
GType boxes_snapshots_property_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;
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
#define BOXES_SNAPSHOTS_PROPERTY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_SNAPSHOTS_PROPERTY, BoxesSnapshotsPropertyPrivate))
BoxesSnapshotsProperty* boxes_snapshots_property_new (BoxesLibvirtMachine* machine);
BoxesSnapshotsProperty* boxes_snapshots_property_construct (GType object_type,
                                                            BoxesLibvirtMachine* machine);
BoxesProperty* boxes_property_new (const gchar* description,
                                   GtkWidget* widget,
                                   GtkWidget* extra_widget);
BoxesProperty* boxes_property_construct (GType object_type,
                                         const gchar* description,
                                         GtkWidget* widget,
                                         GtkWidget* extra_widget);
static void __lambda147_ (BoxesSnapshotsProperty* self);
static void boxes_snapshots_property_create_snapshot (BoxesSnapshotsProperty* self,
                                               GAsyncReadyCallback _callback_,
                                               gpointer _user_data_);
static void boxes_snapshots_property_create_snapshot_finish (BoxesSnapshotsProperty* self,
                                                      GAsyncResult* _res_);
static void ___lambda147__gtk_tool_button_clicked (GtkToolButton* _sender,
                                            gpointer self);
static gint boxes_snapshots_property_config_sort_func (BoxesSnapshotsProperty* self,
                                                GtkListBoxRow* row1,
                                                GtkListBoxRow* row2);
static gint _boxes_snapshots_property_config_sort_func_gtk_list_box_sort_func (GtkListBoxRow* row1,
                                                                        GtkListBoxRow* row2,
                                                                        gpointer self);
static void boxes_snapshots_property_update_snapshot_stack_page (BoxesSnapshotsProperty* self);
static void _boxes_snapshots_property_update_snapshot_stack_page_gtk_container_add (GtkContainer* _sender,
                                                                             GtkWidget* widget,
                                                                             gpointer self);
static void _boxes_snapshots_property_update_snapshot_stack_page_gtk_container_remove (GtkContainer* _sender,
                                                                                GtkWidget* widget,
                                                                                gpointer self);
static void boxes_snapshots_property_on_flushed (BoxesSnapshotsProperty* self);
static void _boxes_snapshots_property_on_flushed_boxes_property_flushed (BoxesProperty* _sender,
                                                                  gpointer self);
static void boxes_snapshots_property_fetch_snapshots (BoxesSnapshotsProperty* self,
                                               GAsyncReadyCallback _callback_,
                                               gpointer _user_data_);
static void boxes_snapshots_property_fetch_snapshots_finish (BoxesSnapshotsProperty* self,
                                                      GAsyncResult* _res_);
static void boxes_snapshots_property_fetch_snapshots_data_free (gpointer _data);
static gboolean boxes_snapshots_property_fetch_snapshots_co (BoxesSnapshotsPropertyFetchSnapshotsData* _data_);
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_connect_flags_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_properties_get_type (void) G_GNUC_CONST;
void boxes_libvirt_machine_properties_get_snapshots (BoxesLibvirtMachineProperties* self,
                                                     GCancellable* cancellable,
                                                     GAsyncReadyCallback _callback_,
                                                     gpointer _user_data_);
GList* boxes_libvirt_machine_properties_get_snapshots_finish (BoxesLibvirtMachineProperties* self,
                                                              GAsyncResult* _res_,
                                                              GError** error);
static void boxes_snapshots_property_fetch_snapshots_ready (GObject* source_object,
                                                     GAsyncResult* _res_,
                                                     gpointer _user_data_);
GType boxes_snapshot_list_row_get_type (void) G_GNUC_CONST;
BoxesSnapshotListRow* boxes_snapshot_list_row_new (GVirDomainSnapshot* snapshot,
                                                   BoxesLibvirtMachine* machine);
BoxesSnapshotListRow* boxes_snapshot_list_row_construct (GType object_type,
                                                         GVirDomainSnapshot* snapshot,
                                                         BoxesLibvirtMachine* machine);
static void boxes_snapshots_property_row_activity_changed (BoxesSnapshotsProperty* self,
                                                    GObject* source,
                                                    GParamSpec* param_spec);
static void _boxes_snapshots_property_row_activity_changed_g_object_notify (GObject* _sender,
                                                                     GParamSpec* pspec,
                                                                     gpointer self);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
static void boxes_snapshots_property_create_snapshot_data_free (gpointer _data);
static gboolean boxes_snapshots_property_create_snapshot_co (BoxesSnapshotsPropertyCreateSnapshotData* _data_);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void boxes_snapshots_property_set_activity (BoxesSnapshotsProperty* self,
                                            const gchar* value);
void boxes_libvirt_machine_create_snapshot (BoxesLibvirtMachine* self,
                                            const gchar* description_prefix,
                                            GAsyncReadyCallback _callback_,
                                            gpointer _user_data_);
GVirDomainSnapshot* boxes_libvirt_machine_create_snapshot_finish (BoxesLibvirtMachine* self,
                                                                  GAsyncResult* _res_,
                                                                  GError** error);
static void boxes_snapshots_property_create_snapshot_ready (GObject* source_object,
                                                     GAsyncResult* _res_,
                                                     gpointer _user_data_);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
GType boxes_app_window_get_type (void) G_GNUC_CONST;
BoxesAppWindow* boxes_machine_get_window (BoxesMachine* self);
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
BoxesNotificationbar* boxes_app_window_get_notificationbar (BoxesAppWindow* self);
GType boxes_notification_get_type (void) G_GNUC_CONST;
BoxesNotification* boxes_notificationbar_display_error (BoxesNotificationbar* self,
                                                        const gchar* message,
                                                        gint timeout);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
const gchar* boxes_snapshot_list_row_get_activity_message (BoxesSnapshotListRow* self);
static void boxes_snapshots_property_finalize (GObject * obj);
static void _vala_boxes_snapshots_property_set_property (GObject * object,
                                                  guint property_id,
                                                  const GValue * value,
                                                  GParamSpec * pspec);


static gpointer
_g_object_ref0 (gpointer self)
{
#line 31 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	return self ? g_object_ref (self) : NULL;
#line 494 "snapshots-property.c"
}


static void
__lambda147_ (BoxesSnapshotsProperty* self)
{
#line 45 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_create_snapshot (self, NULL, NULL);
#line 503 "snapshots-property.c"
}


static void
___lambda147__gtk_tool_button_clicked (GtkToolButton* _sender,
                                       gpointer self)
{
#line 44 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	__lambda147_ ((BoxesSnapshotsProperty*) self);
#line 513 "snapshots-property.c"
}


static gint
_boxes_snapshots_property_config_sort_func_gtk_list_box_sort_func (GtkListBoxRow* row1,
                                                                   GtkListBoxRow* row2,
                                                                   gpointer self)
{
	gint result;
	result = boxes_snapshots_property_config_sort_func ((BoxesSnapshotsProperty*) self, row1, row2);
#line 56 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	return result;
#line 526 "snapshots-property.c"
}


static void
_boxes_snapshots_property_update_snapshot_stack_page_gtk_container_add (GtkContainer* _sender,
                                                                        GtkWidget* widget,
                                                                        gpointer self)
{
#line 57 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_update_snapshot_stack_page ((BoxesSnapshotsProperty*) self);
#line 537 "snapshots-property.c"
}


static void
_boxes_snapshots_property_update_snapshot_stack_page_gtk_container_remove (GtkContainer* _sender,
                                                                           GtkWidget* widget,
                                                                           gpointer self)
{
#line 58 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_update_snapshot_stack_page ((BoxesSnapshotsProperty*) self);
#line 548 "snapshots-property.c"
}


static void
_boxes_snapshots_property_on_flushed_boxes_property_flushed (BoxesProperty* _sender,
                                                             gpointer self)
{
#line 84 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_on_flushed ((BoxesSnapshotsProperty*) self);
#line 558 "snapshots-property.c"
}


BoxesSnapshotsProperty*
boxes_snapshots_property_construct (GType object_type,
                                    BoxesLibvirtMachine* machine)
{
	BoxesSnapshotsProperty * self = NULL;
	GtkStack* stack = NULL;
	GtkStack* _tmp0_;
	GtkStack* _tmp1_;
	BoxesLibvirtMachine* _tmp2_;
	GtkBox* _tmp3_;
	GtkBox* _tmp4_;
	GtkToolbar* toolbar = NULL;
	GtkToolbar* _tmp5_;
	GtkStyleContext* _tmp6_;
	GtkToolButton* create_snapshot_button = NULL;
	GtkToolButton* _tmp7_;
	GtkImage* icon_img = NULL;
	GtkImage* _tmp8_;
	GtkStack* _tmp9_;
	GtkStack* _tmp10_;
	GtkListBox* _tmp11_;
	GtkListBox* _tmp12_;
	GtkListBox* _tmp13_;
	GtkListBox* _tmp14_;
	gulong _tmp15_;
	GtkListBox* _tmp16_;
	gulong _tmp17_;
	GtkStack* _tmp18_;
	GtkListBox* _tmp19_;
	GtkLabel* _tmp20_;
	GtkLabel* _tmp21_;
	GtkLabel* _tmp22_;
	GtkLabel* _tmp23_;
	GtkStack* _tmp24_;
	GtkLabel* _tmp25_;
	GtkFrame* snapshot_list_frame = NULL;
	GtkFrame* _tmp26_;
	GtkStack* _tmp27_;
	GtkBox* _tmp28_;
	GtkBox* _tmp29_;
	GtkBox* _tmp30_;
	GtkBox* _tmp31_;
	GtkBox* _tmp32_;
	GtkSpinner* activity_spinner = NULL;
	GtkSpinner* _tmp33_;
	GtkBox* _tmp34_;
	GtkLabel* _tmp35_;
	GtkStyleContext* _tmp36_;
	GtkBox* _tmp37_;
	GtkLabel* _tmp38_;
	GtkBox* _tmp39_;
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_val_if_fail (machine != NULL, NULL);
#line 26 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp0_ = (GtkStack*) gtk_stack_new ();
#line 26 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp0_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	stack = _tmp0_;
#line 27 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_stack_set_transition_type (stack, GTK_STACK_TRANSITION_TYPE_CROSSFADE);
#line 29 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self = (BoxesSnapshotsProperty*) boxes_property_construct (object_type, NULL, (GtkWidget*) stack, NULL);
#line 31 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp1_ = _g_object_ref0 (stack);
#line 31 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->stack);
#line 31 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->stack = _tmp1_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp2_ = _g_object_ref0 (machine);
#line 32 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->machine);
#line 32 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->machine = _tmp2_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
#line 35 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp3_);
#line 35 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->snapshot_box);
#line 35 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->snapshot_box = _tmp3_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp4_ = self->priv->snapshot_box;
#line 36 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_set ((GtkWidget*) _tmp4_, "margin", 20, NULL);
#line 38 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp5_ = (GtkToolbar*) gtk_toolbar_new ();
#line 38 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp5_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	toolbar = _tmp5_;
#line 39 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp6_ = gtk_widget_get_style_context ((GtkWidget*) toolbar);
#line 39 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_style_context_add_class (_tmp6_, GTK_STYLE_CLASS_INLINE_TOOLBAR);
#line 40 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_toolbar_set_icon_size (toolbar, GTK_ICON_SIZE_MENU);
#line 41 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_widget_set_valign ((GtkWidget*) toolbar, GTK_ALIGN_START);
#line 43 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp7_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL);
#line 43 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp7_);
#line 43 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	create_snapshot_button = _tmp7_;
#line 44 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_signal_connect_object (create_snapshot_button, "clicked", (GCallback) ___lambda147__gtk_tool_button_clicked, self, 0);
#line 47 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp8_ = (GtkImage*) gtk_image_new_from_icon_name ("list-add-symbolic", (GtkIconSize) GTK_ICON_SIZE_MENU);
#line 47 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp8_);
#line 47 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	icon_img = _tmp8_;
#line 48 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_tool_button_set_icon_widget (create_snapshot_button, (GtkWidget*) icon_img);
#line 49 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_container_add ((GtkContainer*) toolbar, (GtkWidget*) create_snapshot_button);
#line 51 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp9_ = (GtkStack*) gtk_stack_new ();
#line 51 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp9_);
#line 51 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->snapshot_stack);
#line 51 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->snapshot_stack = _tmp9_;
#line 53 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp10_ = self->priv->snapshot_stack;
#line 53 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_stack_set_transition_type (_tmp10_, GTK_STACK_TRANSITION_TYPE_CROSSFADE);
#line 54 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp11_ = self->priv->snapshot_list;
#line 54 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_list_box_set_selection_mode (_tmp11_, GTK_SELECTION_NONE);
#line 55 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp12_ = self->priv->snapshot_list;
#line 55 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp12_, -1, 250);
#line 56 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp13_ = self->priv->snapshot_list;
#line 56 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_list_box_set_sort_func (_tmp13_, _boxes_snapshots_property_config_sort_func_gtk_list_box_sort_func, g_object_ref (self), g_object_unref);
#line 57 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp14_ = self->priv->snapshot_list;
#line 57 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp15_ = g_signal_connect_object ((GtkContainer*) _tmp14_, "add", (GCallback) _boxes_snapshots_property_update_snapshot_stack_page_gtk_container_add, self, 0);
#line 57 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->added_id = _tmp15_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp16_ = self->priv->snapshot_list;
#line 58 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp17_ = g_signal_connect_object ((GtkContainer*) _tmp16_, "remove", (GCallback) _boxes_snapshots_property_update_snapshot_stack_page_gtk_container_remove, self, 0);
#line 58 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->removed_id = _tmp17_;
#line 59 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp18_ = self->priv->snapshot_stack;
#line 59 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp19_ = self->priv->snapshot_list;
#line 59 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_container_add ((GtkContainer*) _tmp18_, (GtkWidget*) _tmp19_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp20_ = (GtkLabel*) gtk_label_new (_ ("No snapshots created yet. Create one using the button below."));
#line 61 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp20_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->empty_label);
#line 61 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->empty_label = _tmp20_;
#line 62 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp21_ = self->priv->empty_label;
#line 62 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_set ((GtkWidget*) _tmp21_, "expand", TRUE, NULL);
#line 63 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp22_ = self->priv->empty_label;
#line 63 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp22_, GTK_ALIGN_CENTER);
#line 64 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp23_ = self->priv->empty_label;
#line 64 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp23_, GTK_ALIGN_CENTER);
#line 65 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp24_ = self->priv->snapshot_stack;
#line 65 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp25_ = self->priv->empty_label;
#line 65 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_container_add ((GtkContainer*) _tmp24_, (GtkWidget*) _tmp25_);
#line 67 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp26_ = (GtkFrame*) gtk_frame_new (NULL);
#line 67 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp26_);
#line 67 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	snapshot_list_frame = _tmp26_;
#line 68 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp27_ = self->priv->snapshot_stack;
#line 68 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_container_add ((GtkContainer*) snapshot_list_frame, (GtkWidget*) _tmp27_);
#line 69 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp28_ = self->priv->snapshot_box;
#line 69 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_box_pack_start (_tmp28_, (GtkWidget*) snapshot_list_frame, TRUE, TRUE, (guint) 0);
#line 70 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp29_ = self->priv->snapshot_box;
#line 70 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_box_pack_start (_tmp29_, (GtkWidget*) toolbar, TRUE, TRUE, (guint) 0);
#line 71 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp30_ = self->priv->snapshot_box;
#line 71 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_container_add ((GtkContainer*) stack, (GtkWidget*) _tmp30_);
#line 74 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp31_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
#line 74 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp31_);
#line 74 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->activity_box);
#line 74 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->activity_box = _tmp31_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp32_ = self->priv->activity_box;
#line 75 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp32_, GTK_ALIGN_CENTER);
#line 76 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp33_ = (GtkSpinner*) gtk_spinner_new ();
#line 76 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp33_);
#line 76 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	activity_spinner = _tmp33_;
#line 77 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_widget_set_size_request ((GtkWidget*) activity_spinner, 64, 64);
#line 78 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_spinner_start (activity_spinner);
#line 79 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp34_ = self->priv->activity_box;
#line 79 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_box_pack_start (_tmp34_, (GtkWidget*) activity_spinner, FALSE, FALSE, (guint) 0);
#line 80 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp35_ = self->priv->activity_label;
#line 80 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp36_ = gtk_widget_get_style_context ((GtkWidget*) _tmp35_);
#line 80 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_style_context_add_class (_tmp36_, GTK_STYLE_CLASS_DIM_LABEL);
#line 81 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp37_ = self->priv->activity_box;
#line 81 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp38_ = self->priv->activity_label;
#line 81 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_box_pack_start (_tmp37_, (GtkWidget*) _tmp38_, FALSE, FALSE, (guint) 0);
#line 82 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp39_ = self->priv->activity_box;
#line 82 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	gtk_container_add ((GtkContainer*) stack, (GtkWidget*) _tmp39_);
#line 84 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_signal_connect_object ((BoxesProperty*) self, "flushed", (GCallback) _boxes_snapshots_property_on_flushed_boxes_property_flushed, self, 0);
#line 86 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_fetch_snapshots (self, NULL, NULL);
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (activity_spinner);
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (snapshot_list_frame);
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (icon_img);
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (create_snapshot_button);
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (toolbar);
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (stack);
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	return self;
#line 831 "snapshots-property.c"
}


BoxesSnapshotsProperty*
boxes_snapshots_property_new (BoxesLibvirtMachine* machine)
{
#line 25 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	return boxes_snapshots_property_construct (BOXES_TYPE_SNAPSHOTS_PROPERTY, machine);
#line 840 "snapshots-property.c"
}


static void
boxes_snapshots_property_fetch_snapshots_data_free (gpointer _data)
{
	BoxesSnapshotsPropertyFetchSnapshotsData* _data_;
	_data_ = _data;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (_data_->self);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_slice_free (BoxesSnapshotsPropertyFetchSnapshotsData, _data_);
#line 853 "snapshots-property.c"
}


static void
boxes_snapshots_property_fetch_snapshots (BoxesSnapshotsProperty* self,
                                          GAsyncReadyCallback _callback_,
                                          gpointer _user_data_)
{
	BoxesSnapshotsPropertyFetchSnapshotsData* _data_;
	BoxesSnapshotsProperty* _tmp0_;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_ = g_slice_new0 (BoxesSnapshotsPropertyFetchSnapshotsData);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_snapshots_property_fetch_snapshots_data_free);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->self = _tmp0_;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_fetch_snapshots_co (_data_);
#line 876 "snapshots-property.c"
}


static void
boxes_snapshots_property_fetch_snapshots_finish (BoxesSnapshotsProperty* self,
                                                 GAsyncResult* _res_)
{
	BoxesSnapshotsPropertyFetchSnapshotsData* _data_;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 887 "snapshots-property.c"
}


static void
boxes_snapshots_property_fetch_snapshots_ready (GObject* source_object,
                                                GAsyncResult* _res_,
                                                gpointer _user_data_)
{
	BoxesSnapshotsPropertyFetchSnapshotsData* _data_;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_ = _user_data_;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_source_object_ = source_object;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_res_ = _res_;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_fetch_snapshots_co (_data_);
#line 905 "snapshots-property.c"
}


static void
_boxes_snapshots_property_row_activity_changed_g_object_notify (GObject* _sender,
                                                                GParamSpec* pspec,
                                                                gpointer self)
{
#line 95 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_row_activity_changed ((BoxesSnapshotsProperty*) self, _sender, pspec);
#line 916 "snapshots-property.c"
}


static void
_g_object_unref0_ (gpointer var)
{
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 925 "snapshots-property.c"
}


static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
#line 934 "snapshots-property.c"
}


static gboolean
boxes_snapshots_property_fetch_snapshots_co (BoxesSnapshotsPropertyFetchSnapshotsData* _data_)
{
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	switch (_data_->_state_) {
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		case 0:
#line 945 "snapshots-property.c"
		goto _state_0;
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		case 1:
#line 949 "snapshots-property.c"
		goto _state_1;
		default:
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_assert_not_reached ();
#line 954 "snapshots-property.c"
	}
	_state_0:
	{
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp0_ = _data_->self->priv->machine;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp1_ = _data_->_tmp0_->properties;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_state_ = 1;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		boxes_libvirt_machine_properties_get_snapshots (_data_->_tmp1_, NULL, boxes_snapshots_property_fetch_snapshots_ready, _data_);
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		return FALSE;
#line 968 "snapshots-property.c"
		_state_1:
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp2_ = boxes_libvirt_machine_properties_get_snapshots_finish (_data_->_tmp1_, _data_->_res_, &_data_->_inner_error_);
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->snapshots = _data_->_tmp2_;
#line 91 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 976 "snapshots-property.c"
			goto __catch163_g_error;
		}
		{
#line 93 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			_data_->snapshot_collection = _data_->snapshots;
#line 93 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			for (_data_->snapshot_it = _data_->snapshot_collection; _data_->snapshot_it != NULL; _data_->snapshot_it = _data_->snapshot_it->next) {
#line 93 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
				_data_->_tmp3_ = _g_object_ref0 ((GVirDomainSnapshot*) _data_->snapshot_it->data);
#line 93 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
				_data_->snapshot = _data_->_tmp3_;
#line 988 "snapshots-property.c"
				{
#line 94 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_data_->_tmp4_ = _data_->snapshot;
#line 94 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_data_->_tmp5_ = _data_->self->priv->machine;
#line 94 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_data_->_tmp6_ = boxes_snapshot_list_row_new (_data_->_tmp4_, _data_->_tmp5_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					g_object_ref_sink (_data_->_tmp6_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_data_->row = _data_->_tmp6_;
#line 95 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_data_->_tmp7_ = _data_->row;
#line 95 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					g_signal_connect_object ((GObject*) _data_->_tmp7_, "notify::activity-message", (GCallback) _boxes_snapshots_property_row_activity_changed_g_object_notify, _data_->self, 0);
#line 96 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_data_->_tmp8_ = _data_->self->priv->snapshot_list;
#line 96 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_data_->_tmp9_ = _data_->row;
#line 96 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					gtk_container_add ((GtkContainer*) _data_->_tmp8_, (GtkWidget*) _data_->_tmp9_);
#line 93 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_g_object_unref0 (_data_->row);
#line 93 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
					_g_object_unref0 (_data_->snapshot);
#line 1014 "snapshots-property.c"
				}
			}
		}
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		__g_list_free__g_object_unref0_0 (_data_->snapshots);
#line 1020 "snapshots-property.c"
	}
	goto __finally163;
	__catch163_g_error:
	{
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->e = _data_->_inner_error_;
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_inner_error_ = NULL;
#line 99 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp10_ = _data_->e;
#line 99 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp11_ = _data_->_tmp10_->message;
#line 99 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_warning ("snapshots-property.vala:99: Could not fetch snapshots: %s", _data_->_tmp11_);
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_error_free0 (_data_->e);
#line 1037 "snapshots-property.c"
	}
	__finally163:
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_clear_error (&_data_->_inner_error_);
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_object_unref (_data_->_async_result);
#line 90 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		return FALSE;
#line 1050 "snapshots-property.c"
	}
#line 102 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_update_snapshot_stack_page (_data_->self);
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (_data_->_state_ != 0) {
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1062 "snapshots-property.c"
		}
	}
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_unref (_data_->_async_result);
#line 89 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	return FALSE;
#line 1069 "snapshots-property.c"
}


static gint
boxes_snapshots_property_config_sort_func (BoxesSnapshotsProperty* self,
                                           GtkListBoxRow* row1,
                                           GtkListBoxRow* row2)
{
	gint result = 0;
	gint _tmp8_ = 0;
	GError * _inner_error_ = NULL;
#line 105 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 105 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_val_if_fail (row1 != NULL, 0);
#line 105 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_val_if_fail (row2 != NULL, 0);
#line 1087 "snapshots-property.c"
	{
		GVirConfigDomainSnapshot* conf1 = NULL;
		GVirDomainSnapshot* _tmp0_;
		GVirConfigDomainSnapshot* _tmp1_;
		GVirConfigDomainSnapshot* conf2 = NULL;
		GVirDomainSnapshot* _tmp2_;
		GVirConfigDomainSnapshot* _tmp3_;
		GVirConfigDomainSnapshot* _tmp4_;
		GVirConfigDomainSnapshot* _tmp5_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp0_ = (G_TYPE_CHECK_INSTANCE_TYPE (row1, BOXES_TYPE_SNAPSHOT_LIST_ROW) ? ((BoxesSnapshotListRow*) row1) : NULL)->snapshot;
#line 107 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp1_ = gvir_domain_snapshot_get_config (_tmp0_, (guint) 0, &_inner_error_);
#line 107 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		conf1 = _tmp1_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1105 "snapshots-property.c"
			goto __catch164_g_error;
		}
#line 108 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp2_ = (G_TYPE_CHECK_INSTANCE_TYPE (row2, BOXES_TYPE_SNAPSHOT_LIST_ROW) ? ((BoxesSnapshotListRow*) row2) : NULL)->snapshot;
#line 108 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp3_ = gvir_domain_snapshot_get_config (_tmp2_, (guint) 0, &_inner_error_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		conf2 = _tmp3_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 108 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			_g_object_unref0 (conf1);
#line 1118 "snapshots-property.c"
			goto __catch164_g_error;
		}
#line 109 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp4_ = conf1;
#line 109 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp5_ = conf2;
#line 109 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		if (gvir_config_domain_snapshot_get_creation_time (_tmp4_) < gvir_config_domain_snapshot_get_creation_time (_tmp5_)) {
#line 110 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			result = -1;
#line 110 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			_g_object_unref0 (conf2);
#line 110 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			_g_object_unref0 (conf1);
#line 110 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			return result;
#line 1135 "snapshots-property.c"
		} else {
#line 112 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			result = 1;
#line 112 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			_g_object_unref0 (conf2);
#line 112 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			_g_object_unref0 (conf1);
#line 112 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			return result;
#line 1145 "snapshots-property.c"
		}
#line 106 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_object_unref0 (conf2);
#line 106 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_object_unref0 (conf1);
#line 1151 "snapshots-property.c"
	}
	goto __finally164;
	__catch164_g_error:
	{
		GError* e = NULL;
		GError* _tmp6_;
		const gchar* _tmp7_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		e = _inner_error_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_inner_error_ = NULL;
#line 114 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp6_ = e;
#line 114 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp7_ = _tmp6_->message;
#line 114 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_warning ("snapshots-property.vala:114: Failed to fetch snapshot config: %s", _tmp7_);
#line 115 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		result = 0;
#line 115 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_error_free0 (e);
#line 115 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		return result;
#line 1175 "snapshots-property.c"
	}
	__finally164:
#line 106 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 106 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_clear_error (&_inner_error_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	return _tmp8_;
#line 1184 "snapshots-property.c"
}


static void
boxes_snapshots_property_create_snapshot_data_free (gpointer _data)
{
	BoxesSnapshotsPropertyCreateSnapshotData* _data_;
	_data_ = _data;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (_data_->self);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_slice_free (BoxesSnapshotsPropertyCreateSnapshotData, _data_);
#line 1197 "snapshots-property.c"
}


static void
boxes_snapshots_property_create_snapshot (BoxesSnapshotsProperty* self,
                                          GAsyncReadyCallback _callback_,
                                          gpointer _user_data_)
{
	BoxesSnapshotsPropertyCreateSnapshotData* _data_;
	BoxesSnapshotsProperty* _tmp0_;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_ = g_slice_new0 (BoxesSnapshotsPropertyCreateSnapshotData);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_snapshots_property_create_snapshot_data_free);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->self = _tmp0_;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_create_snapshot_co (_data_);
#line 1220 "snapshots-property.c"
}


static void
boxes_snapshots_property_create_snapshot_finish (BoxesSnapshotsProperty* self,
                                                 GAsyncResult* _res_)
{
	BoxesSnapshotsPropertyCreateSnapshotData* _data_;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 1231 "snapshots-property.c"
}


static void
boxes_snapshots_property_create_snapshot_ready (GObject* source_object,
                                                GAsyncResult* _res_,
                                                gpointer _user_data_)
{
	BoxesSnapshotsPropertyCreateSnapshotData* _data_;
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_ = _user_data_;
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_source_object_ = source_object;
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_res_ = _res_;
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_create_snapshot_co (_data_);
#line 1249 "snapshots-property.c"
}


static gboolean
boxes_snapshots_property_create_snapshot_co (BoxesSnapshotsPropertyCreateSnapshotData* _data_)
{
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	switch (_data_->_state_) {
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		case 0:
#line 1260 "snapshots-property.c"
		goto _state_0;
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		case 1:
#line 1264 "snapshots-property.c"
		goto _state_1;
		default:
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_assert_not_reached ();
#line 1269 "snapshots-property.c"
	}
	_state_0:
#line 120 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_tmp0_ = _data_->self->priv->machine;
#line 120 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_tmp1_ = boxes_machine_get_state ((BoxesMachine*) _data_->_tmp0_);
#line 120 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 120 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (_data_->_tmp2_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 121 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		boxes_snapshots_property_set_activity (_data_->self, _ ("Creating new snapshot…"));
#line 1282 "snapshots-property.c"
	}
	{
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp3_ = _data_->self->priv->machine;
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_state_ = 1;
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		boxes_libvirt_machine_create_snapshot (_data_->_tmp3_, "", boxes_snapshots_property_create_snapshot_ready, _data_);
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		return FALSE;
#line 1293 "snapshots-property.c"
		_state_1:
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp4_ = boxes_libvirt_machine_create_snapshot_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->new_snapshot = _data_->_tmp4_;
#line 124 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1301 "snapshots-property.c"
			goto __catch165_g_error;
		}
#line 125 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp5_ = _data_->self->priv->machine;
#line 125 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp6_ = boxes_snapshot_list_row_new (_data_->new_snapshot, _data_->_tmp5_);
#line 125 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_object_ref_sink (_data_->_tmp6_);
#line 125 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->new_row = _data_->_tmp6_;
#line 126 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp7_ = _data_->new_row;
#line 126 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp7_, "notify::activity-message", (GCallback) _boxes_snapshots_property_row_activity_changed_g_object_notify, _data_->self, 0);
#line 127 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp8_ = _data_->self->priv->snapshot_list;
#line 127 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp9_ = _data_->new_row;
#line 127 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		gtk_container_add ((GtkContainer*) _data_->_tmp8_, (GtkWidget*) _data_->_tmp9_);
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_object_unref0 (_data_->new_row);
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_object_unref0 (_data_->new_snapshot);
#line 1326 "snapshots-property.c"
	}
	goto __finally165;
	__catch165_g_error:
	{
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->e = _data_->_inner_error_;
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_inner_error_ = NULL;
#line 129 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp10_ = _data_->self->priv->machine;
#line 129 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp11_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->_tmp10_);
#line 129 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp12_ = _data_->_tmp11_;
#line 129 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp13_ = g_strdup_printf (_ ("Failed to create snapshot of %s"), _data_->_tmp12_);
#line 129 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->msg = _data_->_tmp13_;
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp14_ = _data_->self->priv->machine;
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp15_ = boxes_machine_get_window ((BoxesMachine*) _data_->_tmp14_);
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp16_ = _data_->_tmp15_;
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp17_ = boxes_app_window_get_notificationbar (_data_->_tmp16_);
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp18_ = _data_->_tmp17_;
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp19_ = _data_->msg;
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp20_ = boxes_notificationbar_display_error (_data_->_tmp18_, _data_->_tmp19_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp21_ = _data_->_tmp20_;
#line 130 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_object_unref0 (_data_->_tmp21_);
#line 131 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp22_ = _data_->e;
#line 131 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 131 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_warning ("snapshots-property.vala:131: %s", _data_->_tmp23_);
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_free0 (_data_->msg);
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_g_error_free0 (_data_->e);
#line 1373 "snapshots-property.c"
	}
	__finally165:
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_clear_error (&_data_->_inner_error_);
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_object_unref (_data_->_async_result);
#line 123 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		return FALSE;
#line 1386 "snapshots-property.c"
	}
#line 133 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_set_activity (_data_->self, NULL);
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (_data_->_state_ != 0) {
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1398 "snapshots-property.c"
		}
	}
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_unref (_data_->_async_result);
#line 119 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	return FALSE;
#line 1405 "snapshots-property.c"
}


static void
boxes_snapshots_property_row_activity_changed (BoxesSnapshotsProperty* self,
                                               GObject* source,
                                               GParamSpec* param_spec)
{
	BoxesSnapshotListRow* row = NULL;
	BoxesSnapshotListRow* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_if_fail (self != NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_if_fail (source != NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_if_fail (param_spec != NULL);
#line 137 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, BOXES_TYPE_SNAPSHOT_LIST_ROW) ? ((BoxesSnapshotListRow*) source) : NULL);
#line 137 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	row = _tmp0_;
#line 138 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp1_ = boxes_snapshot_list_row_get_activity_message (row);
#line 138 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp2_ = _tmp1_;
#line 138 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_set_activity (self, _tmp2_);
#line 136 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (row);
#line 1436 "snapshots-property.c"
}


static void
boxes_snapshots_property_update_snapshot_stack_page (BoxesSnapshotsProperty* self)
{
	guint num_snapshots = 0U;
	GtkListBox* _tmp0_;
	GList* _tmp1_;
	GList* _tmp2_;
	guint _tmp3_;
	guint _tmp4_;
#line 141 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_if_fail (self != NULL);
#line 142 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp0_ = self->priv->snapshot_list;
#line 142 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp1_ = gtk_container_get_children ((GtkContainer*) _tmp0_);
#line 142 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp2_ = _tmp1_;
#line 142 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp3_ = g_list_length (_tmp2_);
#line 142 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_list_free0 (_tmp2_);
#line 142 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	num_snapshots = _tmp3_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp4_ = num_snapshots;
#line 143 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (_tmp4_ > ((guint) 0)) {
#line 1467 "snapshots-property.c"
		GtkStack* _tmp5_;
		GtkListBox* _tmp6_;
#line 144 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp5_ = self->priv->snapshot_stack;
#line 144 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp6_ = self->priv->snapshot_list;
#line 144 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		gtk_stack_set_visible_child (_tmp5_, (GtkWidget*) _tmp6_);
#line 1476 "snapshots-property.c"
	} else {
		GtkStack* _tmp7_;
		GtkLabel* _tmp8_;
#line 146 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp7_ = self->priv->snapshot_stack;
#line 146 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp8_ = self->priv->empty_label;
#line 146 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		gtk_stack_set_visible_child (_tmp7_, (GtkWidget*) _tmp8_);
#line 1486 "snapshots-property.c"
	}
}


static void
boxes_snapshots_property_on_flushed (BoxesSnapshotsProperty* self)
{
	gulong _tmp0_;
	gulong _tmp3_;
#line 149 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_if_fail (self != NULL);
#line 150 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp0_ = self->priv->added_id;
#line 150 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (_tmp0_ != ((gulong) 0)) {
#line 1502 "snapshots-property.c"
		GtkListBox* _tmp1_;
		gulong _tmp2_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp1_ = self->priv->snapshot_list;
#line 151 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp2_ = self->priv->added_id;
#line 151 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		self->priv->added_id = (gulong) 0;
#line 1513 "snapshots-property.c"
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp3_ = self->priv->removed_id;
#line 154 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (_tmp3_ != ((gulong) 0)) {
#line 1519 "snapshots-property.c"
		GtkListBox* _tmp4_;
		gulong _tmp5_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp4_ = self->priv->snapshot_list;
#line 155 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp5_ = self->priv->removed_id;
#line 155 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		g_signal_handler_disconnect ((GObject*) _tmp4_, _tmp5_);
#line 156 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		self->priv->removed_id = (gulong) 0;
#line 1530 "snapshots-property.c"
	}
}


static void
boxes_snapshots_property_set_activity (BoxesSnapshotsProperty* self,
                                       const gchar* value)
{
#line 13 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_return_if_fail (self != NULL);
#line 14 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	if (value == NULL) {
#line 1543 "snapshots-property.c"
		GtkStack* _tmp0_;
		GtkBox* _tmp1_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp0_ = self->priv->stack;
#line 15 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp1_ = self->priv->snapshot_box;
#line 15 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		gtk_stack_set_visible_child (_tmp0_, (GtkWidget*) _tmp1_);
#line 1552 "snapshots-property.c"
	} else {
		GtkLabel* _tmp2_;
		GtkStack* _tmp3_;
		GtkBox* _tmp4_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp2_ = self->priv->activity_label;
#line 17 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		gtk_label_set_label (_tmp2_, value);
#line 18 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp3_ = self->priv->stack;
#line 18 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		_tmp4_ = self->priv->activity_box;
#line 18 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		gtk_stack_set_visible_child (_tmp3_, (GtkWidget*) _tmp4_);
#line 1567 "snapshots-property.c"
	}
}


static void
boxes_snapshots_property_class_init (BoxesSnapshotsPropertyClass * klass)
{
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	boxes_snapshots_property_parent_class = g_type_class_peek_parent (klass);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_type_class_add_private (klass, sizeof (BoxesSnapshotsPropertyPrivate));
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_snapshots_property_set_property;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_snapshots_property_finalize;
#line 1583 "snapshots-property.c"
}


static void
boxes_snapshots_property_instance_init (BoxesSnapshotsProperty * self)
{
	GtkListBox* _tmp0_;
	GtkLabel* _tmp1_;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv = BOXES_SNAPSHOTS_PROPERTY_GET_PRIVATE (self);
#line 5 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp0_ = (GtkListBox*) gtk_list_box_new ();
#line 5 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp0_);
#line 5 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->snapshot_list = _tmp0_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_tmp1_ = (GtkLabel*) gtk_label_new ("");
#line 7 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	g_object_ref_sink (_tmp1_);
#line 7 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self->priv->activity_label = _tmp1_;
#line 1606 "snapshots-property.c"
}


static void
boxes_snapshots_property_finalize (GObject * obj)
{
	BoxesSnapshotsProperty * self;
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_SNAPSHOTS_PROPERTY, BoxesSnapshotsProperty);
#line 4 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->machine);
#line 5 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->snapshot_list);
#line 6 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->stack);
#line 7 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->activity_label);
#line 8 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->snapshot_stack);
#line 9 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->empty_label);
#line 10 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->activity_box);
#line 11 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	_g_object_unref0 (self->priv->snapshot_box);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	G_OBJECT_CLASS (boxes_snapshots_property_parent_class)->finalize (obj);
#line 1634 "snapshots-property.c"
}


GType
boxes_snapshots_property_get_type (void)
{
	static volatile gsize boxes_snapshots_property_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_snapshots_property_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesSnapshotsPropertyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_snapshots_property_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesSnapshotsProperty), 0, (GInstanceInitFunc) boxes_snapshots_property_instance_init, NULL };
		GType boxes_snapshots_property_type_id;
		boxes_snapshots_property_type_id = g_type_register_static (BOXES_TYPE_PROPERTY, "BoxesSnapshotsProperty", &g_define_type_info, 0);
		g_once_init_leave (&boxes_snapshots_property_type_id__volatile, boxes_snapshots_property_type_id);
	}
	return boxes_snapshots_property_type_id__volatile;
}


static void
_vala_boxes_snapshots_property_set_property (GObject * object,
                                             guint property_id,
                                             const GValue * value,
                                             GParamSpec * pspec)
{
	BoxesSnapshotsProperty * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_SNAPSHOTS_PROPERTY, BoxesSnapshotsProperty);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
	switch (property_id) {
#line 1662 "snapshots-property.c"
		default:
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 3 "/home/fborges/checkout/gnome-boxes/src/snapshots-property.vala"
		break;
#line 1668 "snapshots-property.c"
	}
}



