/* machine-thumbnailer.c generated by valac 0.39.5, the Vala compiler
 * generated from machine-thumbnailer.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <gdk/gdk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>
#include <float.h>
#include <math.h>
#include <gio/gio.h>
#include <libcommon.h>
#include <stdlib.h>
#include <string.h>


#define BOXES_TYPE_MACHINE_THUMBNAILER (boxes_machine_thumbnailer_get_type ())
#define BOXES_MACHINE_THUMBNAILER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailer))
#define BOXES_MACHINE_THUMBNAILER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailerClass))
#define BOXES_IS_MACHINE_THUMBNAILER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE_THUMBNAILER))
#define BOXES_IS_MACHINE_THUMBNAILER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE_THUMBNAILER))
#define BOXES_MACHINE_THUMBNAILER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailerClass))

typedef struct _BoxesMachineThumbnailer BoxesMachineThumbnailer;
typedef struct _BoxesMachineThumbnailerClass BoxesMachineThumbnailerClass;
typedef struct _BoxesMachineThumbnailerPrivate BoxesMachineThumbnailerPrivate;

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

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;

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

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;
enum  {
	BOXES_MACHINE_THUMBNAILER_0_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_MACHINE_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_WIDTH_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_HEIGHT_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_CENTRED_EMBLEM_SIZE_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_EMBLEM_SIZE_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_BORDER_COLOR_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_BACKGROUND_COLOR_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_THUMBNAIL_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_FAVORITE_EMBLEM_ENABLED_PROPERTY,
	BOXES_MACHINE_THUMBNAILER_NUM_PROPERTIES
};
static GParamSpec* boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_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 ())

#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_MACHINE_TYPE_CONNECT_FLAGS (boxes_machine_connect_flags_get_type ())
#define _gtk_icon_info_free0(var) ((var == NULL) ? NULL : (var = (gtk_icon_info_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

struct _BoxesMachineThumbnailer {
	GObject parent_instance;
	BoxesMachineThumbnailerPrivate * priv;
};

struct _BoxesMachineThumbnailerClass {
	GObjectClass parent_class;
};

struct _BoxesMachineThumbnailerPrivate {
	BoxesMachine* _machine;
	gint _width;
	gint _height;
	gint _centred_emblem_size;
	gint _emblem_size;
	GdkRGBA _border_color;
	GdkRGBA _background_color;
	GdkPixbuf* _thumbnail;
	gboolean _favorite_emblem_enabled;
	GdkPixbuf* empty_thumbnail;
	GdkPixbuf* default_thumbnail;
	GdkPixbuf* stopped_thumbnail;
};

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);
};


static gpointer boxes_machine_thumbnailer_parent_class = NULL;

GType boxes_machine_thumbnailer_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;
#define BOXES_MACHINE_THUMBNAILER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailerPrivate))
#define BOXES_MACHINE_THUMBNAILER_FRAME_RADIUS 2.0
#define BOXES_MACHINE_THUMBNAILER_EMBLEM_PADDING 8
BoxesMachineThumbnailer* boxes_machine_thumbnailer_new (BoxesMachine* machine,
                                                        gint width,
                                                        gint height,
                                                        gint centred_emblem_size,
                                                        gint emblem_size,
                                                        GdkRGBA* border_color,
                                                        GdkRGBA* background_color);
BoxesMachineThumbnailer* boxes_machine_thumbnailer_construct (GType object_type,
                                                              BoxesMachine* machine,
                                                              gint width,
                                                              gint height,
                                                              gint centred_emblem_size,
                                                              gint emblem_size,
                                                              GdkRGBA* border_color,
                                                              GdkRGBA* background_color);
static void boxes_machine_thumbnailer_set_machine (BoxesMachineThumbnailer* self,
                                            BoxesMachine* value);
void boxes_machine_thumbnailer_set_width (BoxesMachineThumbnailer* self,
                                          gint value);
void boxes_machine_thumbnailer_set_height (BoxesMachineThumbnailer* self,
                                           gint value);
void boxes_machine_thumbnailer_set_centred_emblem_size (BoxesMachineThumbnailer* self,
                                                        gint value);
void boxes_machine_thumbnailer_set_emblem_size (BoxesMachineThumbnailer* self,
                                                gint value);
void boxes_machine_thumbnailer_set_border_color (BoxesMachineThumbnailer* self,
                                                 GdkRGBA * value);
void boxes_machine_thumbnailer_set_background_color (BoxesMachineThumbnailer* self,
                                                     GdkRGBA * value);
static void __lambda7_ (BoxesMachineThumbnailer* self);
static void boxes_machine_thumbnailer_update_thumbnail (BoxesMachineThumbnailer* self);
static void ___lambda7__g_object_notify (GObject* _sender,
                                  GParamSpec* pspec,
                                  gpointer self);
static void __lambda257_ (BoxesMachineThumbnailer* self);
static void ___lambda257__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
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_property_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;
static void __lambda258_ (BoxesMachineThumbnailer* self);
static void ___lambda258__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void _boxes_machine_thumbnailer_update_thumbnail_g_object_notify (GObject* _sender,
                                                                  GParamSpec* pspec,
                                                                  gpointer self);
BoxesMachine* boxes_machine_thumbnailer_get_machine (BoxesMachineThumbnailer* self);
gboolean boxes_machine_get_is_stopped (BoxesMachine* self);
gboolean boxes_machine_get_under_construction (BoxesMachine* self);
static GdkPixbuf* boxes_machine_thumbnailer_get_under_construction_thumbnail (BoxesMachineThumbnailer* self);
static GdkPixbuf* boxes_machine_thumbnailer_get_stopped_thumbnail (BoxesMachineThumbnailer* self);
GdkPixbuf* boxes_machine_get_pixbuf (BoxesMachine* self);
gint boxes_machine_thumbnailer_get_width (BoxesMachineThumbnailer* self);
gint boxes_machine_thumbnailer_get_height (BoxesMachineThumbnailer* self);
static GdkPixbuf* boxes_machine_thumbnailer_get_default_thumbnail (BoxesMachineThumbnailer* self);
gboolean boxes_machine_thumbnailer_get_favorite_emblem_enabled (BoxesMachineThumbnailer* self);
static gboolean _vala_string_array_contains (gchar* * stack,
                                      int stack_length,
                                      gchar* needle);
static GdkPixbuf* boxes_machine_thumbnailer_add_emblem_icon (BoxesMachineThumbnailer* self,
                                                      GdkPixbuf* pixbuf,
                                                      const gchar* icon_name,
                                                      GtkCornerType corner_type);
static void boxes_machine_thumbnailer_set_thumbnail (BoxesMachineThumbnailer* self,
                                              GdkPixbuf* value);
static GdkPixbuf* boxes_machine_thumbnailer_get_empty_thumbnail (BoxesMachineThumbnailer* self);
GdkPixbuf* boxes_paint_empty_frame (gint width,
                                    gint height,
                                    gdouble radius,
                                    GdkRGBA* border_color,
                                    GdkRGBA* bg_color);
void boxes_machine_thumbnailer_get_border_color (BoxesMachineThumbnailer* self,
                                                 GdkRGBA * result);
void boxes_machine_thumbnailer_get_background_color (BoxesMachineThumbnailer* self,
                                                     GdkRGBA * result);
static GdkPixbuf* boxes_machine_thumbnailer_add_centered_emblem_icon (BoxesMachineThumbnailer* self,
                                                               GdkPixbuf* pixbuf,
                                                               const gchar* icon_name,
                                                               gint size);
gint boxes_machine_thumbnailer_get_centred_emblem_size (BoxesMachineThumbnailer* self);
gint boxes_machine_thumbnailer_get_emblem_size (BoxesMachineThumbnailer* self);
static gboolean _vala_gtk_corner_type_array_contains (GtkCornerType * stack,
                                               int stack_length,
                                               GtkCornerType needle);
static gboolean _gdk_rgba_equal (const GdkRGBA * s1,
                          const GdkRGBA * s2);
GdkPixbuf* boxes_machine_thumbnailer_get_thumbnail (BoxesMachineThumbnailer* self);
void boxes_machine_thumbnailer_set_favorite_emblem_enabled (BoxesMachineThumbnailer* self,
                                                            gboolean value);
static void boxes_machine_thumbnailer_finalize (GObject * obj);
static void _vala_boxes_machine_thumbnailer_get_property (GObject * object,
                                                   guint property_id,
                                                   GValue * value,
                                                   GParamSpec * pspec);
static void _vala_boxes_machine_thumbnailer_set_property (GObject * object,
                                                   guint property_id,
                                                   const GValue * value,
                                                   GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gint array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gint array_length,
                       GDestroyNotify destroy_func);

static const GtkCornerType BOXES_MACHINE_THUMBNAILER_right_corners[2] = {GTK_CORNER_TOP_RIGHT, GTK_CORNER_BOTTOM_RIGHT};
static const GtkCornerType BOXES_MACHINE_THUMBNAILER_bottom_corners[2] = {GTK_CORNER_BOTTOM_LEFT, GTK_CORNER_BOTTOM_RIGHT};
const GdkRGBA BOXES_MACHINE_THUMBNAILER_CENTERED_EMBLEM_COLOR = {0xbe / 255.0, 0xbe / 255.0, 0xbe / 255.0, 1.0};
const GdkRGBA BOXES_MACHINE_THUMBNAILER_SMALL_EMBLEM_COLOR = {1.0, 1.0, 1.0, 1.0};

static void
__lambda7_ (BoxesMachineThumbnailer* self)
{
#line 37 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_update_thumbnail (self);
#line 333 "machine-thumbnailer.c"
}


static void
___lambda7__g_object_notify (GObject* _sender,
                             GParamSpec* pspec,
                             gpointer self)
{
#line 36 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	__lambda7_ ((BoxesMachineThumbnailer*) self);
#line 344 "machine-thumbnailer.c"
}


static void
__lambda257_ (BoxesMachineThumbnailer* self)
{
#line 41 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_update_thumbnail (self);
#line 353 "machine-thumbnailer.c"
}


static void
___lambda257__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
#line 40 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	__lambda257_ ((BoxesMachineThumbnailer*) self);
#line 364 "machine-thumbnailer.c"
}


static void
__lambda258_ (BoxesMachineThumbnailer* self)
{
#line 45 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_update_thumbnail (self);
#line 373 "machine-thumbnailer.c"
}


static void
___lambda258__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
#line 44 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	__lambda258_ ((BoxesMachineThumbnailer*) self);
#line 384 "machine-thumbnailer.c"
}


static void
_boxes_machine_thumbnailer_update_thumbnail_g_object_notify (GObject* _sender,
                                                             GParamSpec* pspec,
                                                             gpointer self)
{
#line 48 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_update_thumbnail ((BoxesMachineThumbnailer*) self);
#line 395 "machine-thumbnailer.c"
}


BoxesMachineThumbnailer*
boxes_machine_thumbnailer_construct (GType object_type,
                                     BoxesMachine* machine,
                                     gint width,
                                     gint height,
                                     gint centred_emblem_size,
                                     gint emblem_size,
                                     GdkRGBA* border_color,
                                     GdkRGBA* background_color)
{
	BoxesMachineThumbnailer * self = NULL;
	GdkRGBA _tmp0_;
	GdkRGBA _tmp1_;
	BoxesBoxConfig* _tmp2_;
#line 24 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (machine != NULL, NULL);
#line 24 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (border_color != NULL, NULL);
#line 24 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (background_color != NULL, NULL);
#line 24 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	self = (BoxesMachineThumbnailer*) g_object_new (object_type, NULL);
#line 28 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_machine (self, machine);
#line 29 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_width (self, width);
#line 30 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_height (self, height);
#line 31 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_centred_emblem_size (self, centred_emblem_size);
#line 32 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_emblem_size (self, emblem_size);
#line 33 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = *border_color;
#line 33 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_border_color (self, &_tmp0_);
#line 34 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp1_ = *background_color;
#line 34 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_background_color (self, &_tmp1_);
#line 36 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) machine, "notify::pixbuf", (GCallback) ___lambda7__g_object_notify, self, 0);
#line 40 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) machine, "notify::under-construction", (GCallback) ___lambda257__g_object_notify, self, 0);
#line 44 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp2_ = machine->config;
#line 44 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) _tmp2_, "notify::categories", (GCallback) ___lambda258__g_object_notify, self, 0);
#line 48 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) self, "notify::width", (GCallback) _boxes_machine_thumbnailer_update_thumbnail_g_object_notify, self, 0);
#line 49 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) self, "notify::height", (GCallback) _boxes_machine_thumbnailer_update_thumbnail_g_object_notify, self, 0);
#line 50 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) self, "notify::border-color", (GCallback) _boxes_machine_thumbnailer_update_thumbnail_g_object_notify, self, 0);
#line 51 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) self, "notify::favorite-emblem-enabled", (GCallback) _boxes_machine_thumbnailer_update_thumbnail_g_object_notify, self, 0);
#line 52 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_signal_connect_object ((GObject*) self, "notify::construction-spinner-enabled", (GCallback) _boxes_machine_thumbnailer_update_thumbnail_g_object_notify, self, 0);
#line 54 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_update_thumbnail (self);
#line 24 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return self;
#line 461 "machine-thumbnailer.c"
}


BoxesMachineThumbnailer*
boxes_machine_thumbnailer_new (BoxesMachine* machine,
                               gint width,
                               gint height,
                               gint centred_emblem_size,
                               gint emblem_size,
                               GdkRGBA* border_color,
                               GdkRGBA* background_color)
{
#line 24 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return boxes_machine_thumbnailer_construct (BOXES_TYPE_MACHINE_THUMBNAILER, machine, width, height, centred_emblem_size, emblem_size, border_color, background_color);
#line 476 "machine-thumbnailer.c"
}


static gpointer
_g_object_ref0 (gpointer self)
{
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return self ? g_object_ref (self) : NULL;
#line 485 "machine-thumbnailer.c"
}


static gboolean
_vala_string_array_contains (gchar* * stack,
                             int stack_length,
                             gchar* needle)
{
	int i;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	for (i = 0; i < stack_length; i++) {
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		if (g_strcmp0 (stack[i], needle) == 0) {
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			return TRUE;
#line 501 "machine-thumbnailer.c"
		}
	}
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return FALSE;
#line 506 "machine-thumbnailer.c"
}


static void
boxes_machine_thumbnailer_update_thumbnail (BoxesMachineThumbnailer* self)
{
	GdkPixbuf* new_thumbnail = NULL;
	BoxesMachine* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	GdkPixbuf* _tmp19_;
	gboolean _tmp21_ = FALSE;
	gboolean _tmp22_;
	GdkPixbuf* _tmp30_;
#line 57 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 58 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	new_thumbnail = NULL;
#line 60 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_machine;
#line 60 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp1_ = boxes_machine_get_is_stopped (_tmp0_);
#line 60 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp2_ = _tmp1_;
#line 60 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp2_) {
#line 533 "machine-thumbnailer.c"
		GdkPixbuf* _tmp3_ = NULL;
		BoxesMachine* _tmp4_;
		gboolean _tmp5_;
		gboolean _tmp6_;
		GdkPixbuf* _tmp9_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp4_ = self->priv->_machine;
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp5_ = boxes_machine_get_under_construction (_tmp4_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp6_ = _tmp5_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		if (_tmp6_) {
#line 547 "machine-thumbnailer.c"
			GdkPixbuf* _tmp7_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp7_ = boxes_machine_thumbnailer_get_under_construction_thumbnail (self);
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_g_object_unref0 (_tmp3_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp3_ = _tmp7_;
#line 555 "machine-thumbnailer.c"
		} else {
			GdkPixbuf* _tmp8_;
#line 62 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp8_ = boxes_machine_thumbnailer_get_stopped_thumbnail (self);
#line 62 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_g_object_unref0 (_tmp3_);
#line 62 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp3_ = _tmp8_;
#line 564 "machine-thumbnailer.c"
		}
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp9_ = _g_object_ref0 (_tmp3_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (new_thumbnail);
#line 61 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		new_thumbnail = _tmp9_;
#line 60 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (_tmp3_);
#line 574 "machine-thumbnailer.c"
	} else {
		BoxesMachine* _tmp10_;
		GdkPixbuf* _tmp11_;
		GdkPixbuf* _tmp12_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp10_ = self->priv->_machine;
#line 63 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp11_ = boxes_machine_get_pixbuf (_tmp10_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp12_ = _tmp11_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		if (_tmp12_ != NULL) {
#line 587 "machine-thumbnailer.c"
			BoxesMachine* _tmp13_;
			GdkPixbuf* _tmp14_;
			GdkPixbuf* _tmp15_;
			gint _tmp16_;
			gint _tmp17_;
			GdkPixbuf* _tmp18_;
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp13_ = self->priv->_machine;
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp14_ = boxes_machine_get_pixbuf (_tmp13_);
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp15_ = _tmp14_;
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp16_ = self->priv->_width;
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp17_ = self->priv->_height;
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_tmp18_ = gdk_pixbuf_scale_simple (_tmp15_, _tmp16_, _tmp17_, GDK_INTERP_BILINEAR);
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_g_object_unref0 (new_thumbnail);
#line 64 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			new_thumbnail = _tmp18_;
#line 610 "machine-thumbnailer.c"
		}
	}
#line 67 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp19_ = new_thumbnail;
#line 67 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp19_ == NULL) {
#line 617 "machine-thumbnailer.c"
		GdkPixbuf* _tmp20_;
#line 68 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp20_ = boxes_machine_thumbnailer_get_default_thumbnail (self);
#line 68 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (new_thumbnail);
#line 68 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		new_thumbnail = _tmp20_;
#line 625 "machine-thumbnailer.c"
	}
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp22_ = self->priv->_favorite_emblem_enabled;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp22_) {
#line 631 "machine-thumbnailer.c"
		BoxesMachine* _tmp23_;
		BoxesBoxConfig* _tmp24_;
		gchar** _tmp25_;
		gint _tmp25__length1;
		gchar** _tmp26_;
		gint _tmp26__length1;
		gchar** _tmp27_;
		gint _tmp27__length1;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp23_ = self->priv->_machine;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp24_ = _tmp23_->config;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp25_ = boxes_box_config_get_categories (_tmp24_, &_tmp25__length1);
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp26_ = _tmp25_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp26__length1 = _tmp25__length1;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp27_ = _tmp26_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp27__length1 = _tmp26__length1;
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp21_ = _vala_string_array_contains (_tmp27_, _tmp26__length1, "favorite");
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp27_ = (_vala_array_free (_tmp27_, _tmp27__length1, (GDestroyNotify) g_free), NULL);
#line 658 "machine-thumbnailer.c"
	} else {
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp21_ = FALSE;
#line 662 "machine-thumbnailer.c"
	}
#line 70 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp21_) {
#line 666 "machine-thumbnailer.c"
		GdkPixbuf* _tmp28_;
		GdkPixbuf* _tmp29_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp28_ = new_thumbnail;
#line 71 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp29_ = boxes_machine_thumbnailer_add_emblem_icon (self, _tmp28_, "starred-symbolic", GTK_CORNER_BOTTOM_LEFT);
#line 71 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (new_thumbnail);
#line 71 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		new_thumbnail = _tmp29_;
#line 677 "machine-thumbnailer.c"
	}
#line 73 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp30_ = new_thumbnail;
#line 73 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_set_thumbnail (self, _tmp30_);
#line 57 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (new_thumbnail);
#line 685 "machine-thumbnailer.c"
}


static GdkPixbuf*
boxes_machine_thumbnailer_get_empty_thumbnail (BoxesMachineThumbnailer* self)
{
	GdkPixbuf* result = NULL;
	GdkPixbuf* _tmp0_;
	gint _tmp3_;
	gint _tmp4_;
	GdkRGBA _tmp5_;
	GdkRGBA _tmp6_;
	GdkPixbuf* _tmp7_;
	GdkPixbuf* _tmp8_;
	GdkPixbuf* _tmp9_;
#line 77 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 78 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->empty_thumbnail;
#line 78 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp0_ != NULL) {
#line 707 "machine-thumbnailer.c"
		GdkPixbuf* _tmp1_;
		GdkPixbuf* _tmp2_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp1_ = self->priv->empty_thumbnail;
#line 79 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp2_ = _g_object_ref0 (_tmp1_);
#line 79 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		result = _tmp2_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return result;
#line 718 "machine-thumbnailer.c"
	}
#line 81 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp3_ = self->priv->_width;
#line 81 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp4_ = self->priv->_height;
#line 81 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp5_ = self->priv->_border_color;
#line 81 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp6_ = self->priv->_background_color;
#line 81 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp7_ = boxes_paint_empty_frame (_tmp3_, _tmp4_, BOXES_MACHINE_THUMBNAILER_FRAME_RADIUS, &_tmp5_, &_tmp6_);
#line 81 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (self->priv->empty_thumbnail);
#line 81 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	self->priv->empty_thumbnail = _tmp7_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp8_ = self->priv->empty_thumbnail;
#line 83 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 83 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp9_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 742 "machine-thumbnailer.c"
}


static GdkPixbuf*
boxes_machine_thumbnailer_get_default_thumbnail (BoxesMachineThumbnailer* self)
{
	GdkPixbuf* result = NULL;
	GdkPixbuf* _tmp0_;
	GdkPixbuf* frame = NULL;
	GdkPixbuf* _tmp3_;
	GdkPixbuf* _tmp4_;
	gint _tmp5_;
	GdkPixbuf* _tmp6_;
	GdkPixbuf* _tmp7_;
	GdkPixbuf* _tmp8_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 88 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->default_thumbnail;
#line 88 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp0_ != NULL) {
#line 764 "machine-thumbnailer.c"
		GdkPixbuf* _tmp1_;
		GdkPixbuf* _tmp2_;
#line 89 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp1_ = self->priv->default_thumbnail;
#line 89 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp2_ = _g_object_ref0 (_tmp1_);
#line 89 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		result = _tmp2_;
#line 89 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return result;
#line 775 "machine-thumbnailer.c"
	}
#line 91 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp3_ = boxes_machine_thumbnailer_get_empty_thumbnail (self);
#line 91 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	frame = _tmp3_;
#line 92 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp4_ = frame;
#line 92 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp5_ = self->priv->_centred_emblem_size;
#line 92 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp6_ = boxes_machine_thumbnailer_add_centered_emblem_icon (self, _tmp4_, "computer-symbolic", _tmp5_);
#line 92 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (self->priv->default_thumbnail);
#line 92 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	self->priv->default_thumbnail = _tmp6_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp7_ = self->priv->default_thumbnail;
#line 94 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp8_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (frame);
#line 94 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 801 "machine-thumbnailer.c"
}


static GdkPixbuf*
boxes_machine_thumbnailer_get_stopped_thumbnail (BoxesMachineThumbnailer* self)
{
	GdkPixbuf* result = NULL;
	GdkPixbuf* _tmp0_;
	GdkPixbuf* frame = NULL;
	GdkPixbuf* _tmp3_;
	GdkPixbuf* _tmp4_;
	gint _tmp5_;
	GdkPixbuf* _tmp6_;
	GdkPixbuf* _tmp7_;
	GdkPixbuf* _tmp8_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 99 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->stopped_thumbnail;
#line 99 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp0_ != NULL) {
#line 823 "machine-thumbnailer.c"
		GdkPixbuf* _tmp1_;
		GdkPixbuf* _tmp2_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp1_ = self->priv->stopped_thumbnail;
#line 100 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp2_ = _g_object_ref0 (_tmp1_);
#line 100 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		result = _tmp2_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return result;
#line 834 "machine-thumbnailer.c"
	}
#line 102 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp3_ = boxes_machine_thumbnailer_get_empty_thumbnail (self);
#line 102 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	frame = _tmp3_;
#line 103 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp4_ = frame;
#line 103 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp5_ = self->priv->_centred_emblem_size;
#line 103 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp6_ = boxes_machine_thumbnailer_add_centered_emblem_icon (self, _tmp4_, "system-shutdown-symbolic", _tmp5_);
#line 103 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (self->priv->stopped_thumbnail);
#line 103 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	self->priv->stopped_thumbnail = _tmp6_;
#line 105 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp7_ = self->priv->stopped_thumbnail;
#line 105 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 105 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp8_;
#line 105 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (frame);
#line 105 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 860 "machine-thumbnailer.c"
}


static GdkPixbuf*
boxes_machine_thumbnailer_get_under_construction_thumbnail (BoxesMachineThumbnailer* self)
{
	GdkPixbuf* result = NULL;
	GdkPixbuf* _tmp0_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 110 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = boxes_machine_thumbnailer_get_empty_thumbnail (self);
#line 110 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 110 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 877 "machine-thumbnailer.c"
}


static const gchar*
string_to_string (const gchar* self)
{
	const gchar* result = NULL;
#line 1456 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1457 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	result = self;
#line 1457 "/home/fborges/jhbuild/install/share/vala-0.40/vapi/glib-2.0.vapi"
	return result;
#line 891 "machine-thumbnailer.c"
}


static GdkPixbuf*
boxes_machine_thumbnailer_add_centered_emblem_icon (BoxesMachineThumbnailer* self,
                                                    GdkPixbuf* pixbuf,
                                                    const gchar* icon_name,
                                                    gint size)
{
	GdkPixbuf* result = NULL;
	GdkPixbuf* emblem = NULL;
	GtkIconTheme* theme = NULL;
	GtkIconTheme* _tmp0_;
	GtkIconTheme* _tmp1_;
	GdkPixbuf* _tmp15_;
	gdouble offset_x = 0.0;
	gint _tmp17_;
	gint _tmp18_;
	GdkPixbuf* _tmp19_;
	gint _tmp20_;
	gint _tmp21_;
	gdouble offset_y = 0.0;
	gint _tmp22_;
	gint _tmp23_;
	GdkPixbuf* _tmp24_;
	gint _tmp25_;
	gint _tmp26_;
	GdkPixbuf* emblemed = NULL;
	GdkPixbuf* _tmp27_;
	GdkPixbuf* _tmp28_;
	GdkPixbuf* _tmp29_;
	gdouble _tmp30_;
	gdouble _tmp31_;
	gdouble _tmp32_;
	gdouble _tmp33_;
	GError * _inner_error_ = NULL;
#line 113 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 113 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (pixbuf != NULL, NULL);
#line 113 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (icon_name != NULL, NULL);
#line 114 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	emblem = NULL;
#line 116 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = gtk_icon_theme_get_default ();
#line 116 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 116 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	theme = _tmp1_;
#line 942 "machine-thumbnailer.c"
	{
		GtkIconInfo* icon_info = NULL;
		GtkIconTheme* _tmp2_;
		GtkIconInfo* _tmp3_;
		GdkPixbuf* _tmp4_ = NULL;
		GtkIconInfo* _tmp5_;
		GdkPixbuf* _tmp6_;
		GdkPixbuf* _tmp7_;
#line 118 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp2_ = theme;
#line 118 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp3_ = gtk_icon_theme_lookup_icon (_tmp2_, icon_name, size, GTK_ICON_LOOKUP_FORCE_SIZE);
#line 118 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		icon_info = _tmp3_;
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp5_ = icon_info;
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp6_ = gtk_icon_info_load_symbolic (_tmp5_, &BOXES_MACHINE_THUMBNAILER_CENTERED_EMBLEM_COLOR, NULL, NULL, NULL, NULL, &_inner_error_);
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp4_ = _tmp6_;
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_gtk_icon_info_free0 (icon_info);
#line 967 "machine-thumbnailer.c"
			goto __catch62_g_error;
		}
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp7_ = _tmp4_;
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp4_ = NULL;
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 119 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		emblem = _tmp7_;
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (_tmp4_);
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_gtk_icon_info_free0 (icon_info);
#line 982 "machine-thumbnailer.c"
	}
	goto __finally62;
	__catch62_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp8_;
		GError* _tmp9_;
		const gchar* _tmp10_;
		const gchar* _tmp11_;
		gchar* _tmp12_;
		gchar* _tmp13_;
		GdkPixbuf* _tmp14_;
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_error_ = _inner_error_;
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_inner_error_ = NULL;
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp8_ = string_to_string (icon_name);
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp9_ = _error_;
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp10_ = _tmp9_->message;
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp11_ = string_to_string (_tmp10_);
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp12_ = g_strconcat ("Unable to get icon '", _tmp8_, "': ", _tmp11_, NULL);
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp13_ = _tmp12_;
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_warning ("machine-thumbnailer.vala:121: %s", _tmp13_);
#line 121 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_free0 (_tmp13_);
#line 122 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp14_ = _g_object_ref0 (pixbuf);
#line 122 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		result = _tmp14_;
#line 122 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_error_free0 (_error_);
#line 122 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (theme);
#line 122 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 122 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return result;
#line 1027 "machine-thumbnailer.c"
	}
	__finally62:
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (theme);
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.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 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_clear_error (&_inner_error_);
#line 117 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return NULL;
#line 1042 "machine-thumbnailer.c"
	}
#line 125 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp15_ = emblem;
#line 125 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp15_ == NULL) {
#line 1048 "machine-thumbnailer.c"
		GdkPixbuf* _tmp16_;
#line 126 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp16_ = _g_object_ref0 (pixbuf);
#line 126 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		result = _tmp16_;
#line 126 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (theme);
#line 126 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 126 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return result;
#line 1060 "machine-thumbnailer.c"
	}
#line 128 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp17_ = gdk_pixbuf_get_width (pixbuf);
#line 128 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp18_ = _tmp17_;
#line 128 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp19_ = emblem;
#line 128 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp20_ = gdk_pixbuf_get_width (_tmp19_);
#line 128 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp21_ = _tmp20_;
#line 128 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	offset_x = (_tmp18_ / 2.0) - (_tmp21_ / 2.0);
#line 129 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp22_ = gdk_pixbuf_get_height (pixbuf);
#line 129 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp23_ = _tmp22_;
#line 129 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp24_ = emblem;
#line 129 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp25_ = gdk_pixbuf_get_height (_tmp24_);
#line 129 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp26_ = _tmp25_;
#line 129 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	offset_y = (_tmp23_ / 2.0) - (_tmp26_ / 2.0);
#line 131 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp27_ = gdk_pixbuf_copy (pixbuf);
#line 131 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	emblemed = _tmp27_;
#line 132 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp28_ = emblem;
#line 132 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp29_ = emblemed;
#line 132 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp30_ = offset_x;
#line 132 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp31_ = offset_y;
#line 132 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp32_ = offset_x;
#line 132 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp33_ = offset_y;
#line 132 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	gdk_pixbuf_composite (_tmp28_, _tmp29_, (gint) _tmp30_, (gint) _tmp31_, size, size, _tmp32_, _tmp33_, 1.0, 1.0, GDK_INTERP_BILINEAR, 255);
#line 135 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = emblemed;
#line 135 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (theme);
#line 135 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (emblem);
#line 135 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1112 "machine-thumbnailer.c"
}


static gboolean
_vala_gtk_corner_type_array_contains (GtkCornerType * stack,
                                      int stack_length,
                                      GtkCornerType needle)
{
	int i;
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	for (i = 0; i < stack_length; i++) {
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		if (needle == stack[i]) {
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			return TRUE;
#line 1128 "machine-thumbnailer.c"
		}
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return FALSE;
#line 1133 "machine-thumbnailer.c"
}


static GdkPixbuf*
boxes_machine_thumbnailer_add_emblem_icon (BoxesMachineThumbnailer* self,
                                           GdkPixbuf* pixbuf,
                                           const gchar* icon_name,
                                           GtkCornerType corner_type)
{
	GdkPixbuf* result = NULL;
	GdkPixbuf* emblem = NULL;
	GtkIconTheme* theme = NULL;
	GtkIconTheme* _tmp0_;
	GtkIconTheme* _tmp1_;
	GdkPixbuf* _tmp16_;
	gint _tmp18_ = 0;
	gint offset_x = 0;
	gint _tmp24_ = 0;
	gint offset_y = 0;
	GdkPixbuf* emblemed = NULL;
	GdkPixbuf* _tmp30_;
	GdkPixbuf* _tmp31_;
	GdkPixbuf* _tmp32_;
	gint _tmp33_;
	gint _tmp34_;
	gint _tmp35_;
	gint _tmp36_;
	gint _tmp37_;
	gint _tmp38_;
	GError * _inner_error_ = NULL;
#line 139 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 139 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (pixbuf != NULL, NULL);
#line 139 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (icon_name != NULL, NULL);
#line 140 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	emblem = NULL;
#line 142 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = gtk_icon_theme_get_default ();
#line 142 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 142 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	theme = _tmp1_;
#line 1178 "machine-thumbnailer.c"
	{
		GtkIconInfo* icon_info = NULL;
		GtkIconTheme* _tmp2_;
		gint _tmp3_;
		GtkIconInfo* _tmp4_;
		GdkPixbuf* _tmp5_ = NULL;
		GtkIconInfo* _tmp6_;
		GdkPixbuf* _tmp7_;
		GdkPixbuf* _tmp8_;
#line 144 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp2_ = theme;
#line 144 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp3_ = self->priv->_emblem_size;
#line 144 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp4_ = gtk_icon_theme_lookup_icon (_tmp2_, icon_name, _tmp3_, GTK_ICON_LOOKUP_FORCE_SIZE);
#line 144 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		icon_info = _tmp4_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp6_ = icon_info;
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp7_ = gtk_icon_info_load_symbolic (_tmp6_, &BOXES_MACHINE_THUMBNAILER_SMALL_EMBLEM_COLOR, NULL, NULL, NULL, NULL, &_inner_error_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp5_ = _tmp7_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			_gtk_icon_info_free0 (icon_info);
#line 1206 "machine-thumbnailer.c"
			goto __catch63_g_error;
		}
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp8_ = _tmp5_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp5_ = NULL;
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 145 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		emblem = _tmp8_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (_tmp5_);
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_gtk_icon_info_free0 (icon_info);
#line 1221 "machine-thumbnailer.c"
	}
	goto __finally63;
	__catch63_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp9_;
		GError* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		gchar* _tmp13_;
		gchar* _tmp14_;
		GdkPixbuf* _tmp15_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_error_ = _inner_error_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_inner_error_ = NULL;
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp9_ = string_to_string (icon_name);
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp10_ = _error_;
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp11_ = _tmp10_->message;
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp12_ = string_to_string (_tmp11_);
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp13_ = g_strconcat ("Unable to get icon '", _tmp9_, "': ", _tmp12_, NULL);
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp14_ = _tmp13_;
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_warning ("machine-thumbnailer.vala:147: %s", _tmp14_);
#line 147 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_free0 (_tmp14_);
#line 148 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp15_ = _g_object_ref0 (pixbuf);
#line 148 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		result = _tmp15_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_error_free0 (_error_);
#line 148 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (theme);
#line 148 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 148 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return result;
#line 1266 "machine-thumbnailer.c"
	}
	__finally63:
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (theme);
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.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 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_clear_error (&_inner_error_);
#line 143 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return NULL;
#line 1281 "machine-thumbnailer.c"
	}
#line 151 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp16_ = emblem;
#line 151 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_tmp16_ == NULL) {
#line 1287 "machine-thumbnailer.c"
		GdkPixbuf* _tmp17_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp17_ = _g_object_ref0 (pixbuf);
#line 152 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		result = _tmp17_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (theme);
#line 152 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (emblem);
#line 152 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return result;
#line 1299 "machine-thumbnailer.c"
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_vala_gtk_corner_type_array_contains (BOXES_MACHINE_THUMBNAILER_right_corners, G_N_ELEMENTS (BOXES_MACHINE_THUMBNAILER_right_corners), corner_type)) {
#line 1303 "machine-thumbnailer.c"
		gint _tmp19_;
		gint _tmp20_;
		GdkPixbuf* _tmp21_;
		gint _tmp22_;
		gint _tmp23_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp19_ = gdk_pixbuf_get_width (pixbuf);
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp20_ = _tmp19_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp21_ = emblem;
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp22_ = gdk_pixbuf_get_width (_tmp21_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp23_ = _tmp22_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp18_ = (_tmp20_ - _tmp23_) - BOXES_MACHINE_THUMBNAILER_EMBLEM_PADDING;
#line 1321 "machine-thumbnailer.c"
	} else {
#line 155 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp18_ = BOXES_MACHINE_THUMBNAILER_EMBLEM_PADDING;
#line 1325 "machine-thumbnailer.c"
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	offset_x = _tmp18_;
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_vala_gtk_corner_type_array_contains (BOXES_MACHINE_THUMBNAILER_bottom_corners, G_N_ELEMENTS (BOXES_MACHINE_THUMBNAILER_bottom_corners), corner_type)) {
#line 1331 "machine-thumbnailer.c"
		gint _tmp25_;
		gint _tmp26_;
		GdkPixbuf* _tmp27_;
		gint _tmp28_;
		gint _tmp29_;
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp25_ = gdk_pixbuf_get_height (pixbuf);
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp26_ = _tmp25_;
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp27_ = emblem;
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp28_ = gdk_pixbuf_get_height (_tmp27_);
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp29_ = _tmp28_;
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp24_ = (_tmp26_ - _tmp29_) - BOXES_MACHINE_THUMBNAILER_EMBLEM_PADDING;
#line 1349 "machine-thumbnailer.c"
	} else {
#line 158 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp24_ = BOXES_MACHINE_THUMBNAILER_EMBLEM_PADDING;
#line 1353 "machine-thumbnailer.c"
	}
#line 157 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	offset_y = _tmp24_;
#line 160 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp30_ = gdk_pixbuf_copy (pixbuf);
#line 160 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	emblemed = _tmp30_;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp31_ = emblem;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp32_ = emblemed;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp33_ = offset_x;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp34_ = offset_y;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp35_ = self->priv->_emblem_size;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp36_ = self->priv->_emblem_size;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp37_ = offset_x;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp38_ = offset_y;
#line 161 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	gdk_pixbuf_composite (_tmp31_, _tmp32_, _tmp33_, _tmp34_, _tmp35_, _tmp36_, (gdouble) _tmp37_, (gdouble) _tmp38_, 1.0, 1.0, GDK_INTERP_BILINEAR, 255);
#line 164 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = emblemed;
#line 164 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (theme);
#line 164 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (emblem);
#line 164 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1387 "machine-thumbnailer.c"
}


BoxesMachine*
boxes_machine_thumbnailer_get_machine (BoxesMachineThumbnailer* self)
{
	BoxesMachine* result;
	BoxesMachine* _tmp0_;
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_machine;
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1404 "machine-thumbnailer.c"
}


static void
boxes_machine_thumbnailer_set_machine (BoxesMachineThumbnailer* self,
                                       BoxesMachine* value)
{
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (boxes_machine_thumbnailer_get_machine (self) != value) {
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_machine = value;
#line 12 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_MACHINE_PROPERTY]);
#line 1420 "machine-thumbnailer.c"
	}
}


gint
boxes_machine_thumbnailer_get_width (BoxesMachineThumbnailer* self)
{
	gint result;
	gint _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_width;
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1438 "machine-thumbnailer.c"
}


void
boxes_machine_thumbnailer_set_width (BoxesMachineThumbnailer* self,
                                     gint value)
{
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (boxes_machine_thumbnailer_get_width (self) != value) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_width = value;
#line 13 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_WIDTH_PROPERTY]);
#line 1454 "machine-thumbnailer.c"
	}
}


gint
boxes_machine_thumbnailer_get_height (BoxesMachineThumbnailer* self)
{
	gint result;
	gint _tmp0_;
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_height;
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1472 "machine-thumbnailer.c"
}


void
boxes_machine_thumbnailer_set_height (BoxesMachineThumbnailer* self,
                                      gint value)
{
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (boxes_machine_thumbnailer_get_height (self) != value) {
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_height = value;
#line 14 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_HEIGHT_PROPERTY]);
#line 1488 "machine-thumbnailer.c"
	}
}


gint
boxes_machine_thumbnailer_get_centred_emblem_size (BoxesMachineThumbnailer* self)
{
	gint result;
	gint _tmp0_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_centred_emblem_size;
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1506 "machine-thumbnailer.c"
}


void
boxes_machine_thumbnailer_set_centred_emblem_size (BoxesMachineThumbnailer* self,
                                                   gint value)
{
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (boxes_machine_thumbnailer_get_centred_emblem_size (self) != value) {
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_centred_emblem_size = value;
#line 15 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_CENTRED_EMBLEM_SIZE_PROPERTY]);
#line 1522 "machine-thumbnailer.c"
	}
}


gint
boxes_machine_thumbnailer_get_emblem_size (BoxesMachineThumbnailer* self)
{
	gint result;
	gint _tmp0_;
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_emblem_size;
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1540 "machine-thumbnailer.c"
}


void
boxes_machine_thumbnailer_set_emblem_size (BoxesMachineThumbnailer* self,
                                           gint value)
{
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (boxes_machine_thumbnailer_get_emblem_size (self) != value) {
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_emblem_size = value;
#line 16 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_EMBLEM_SIZE_PROPERTY]);
#line 1556 "machine-thumbnailer.c"
	}
}


void
boxes_machine_thumbnailer_get_border_color (BoxesMachineThumbnailer* self,
                                            GdkRGBA * result)
{
	GdkRGBA _tmp0_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_border_color;
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	*result = _tmp0_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return;
#line 1574 "machine-thumbnailer.c"
}


static gboolean
_gdk_rgba_equal (const GdkRGBA * s1,
                 const GdkRGBA * s2)
{
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (s1 == s2) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return TRUE;
#line 1586 "machine-thumbnailer.c"
	}
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (s1 == NULL) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return FALSE;
#line 1592 "machine-thumbnailer.c"
	}
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (s2 == NULL) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return FALSE;
#line 1598 "machine-thumbnailer.c"
	}
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (s1->red != s2->red) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return FALSE;
#line 1604 "machine-thumbnailer.c"
	}
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (s1->green != s2->green) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return FALSE;
#line 1610 "machine-thumbnailer.c"
	}
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (s1->blue != s2->blue) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return FALSE;
#line 1616 "machine-thumbnailer.c"
	}
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (s1->alpha != s2->alpha) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		return FALSE;
#line 1622 "machine-thumbnailer.c"
	}
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return TRUE;
#line 1626 "machine-thumbnailer.c"
}


void
boxes_machine_thumbnailer_set_border_color (BoxesMachineThumbnailer* self,
                                            GdkRGBA * value)
{
	GdkRGBA old_value;
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_gdk_rgba_equal (value, (boxes_machine_thumbnailer_get_border_color (self, &old_value), &old_value)) != TRUE) {
#line 1639 "machine-thumbnailer.c"
		GdkRGBA _tmp0_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp0_ = *value;
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_border_color = _tmp0_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_BORDER_COLOR_PROPERTY]);
#line 1647 "machine-thumbnailer.c"
	}
}


void
boxes_machine_thumbnailer_get_background_color (BoxesMachineThumbnailer* self,
                                                GdkRGBA * result)
{
	GdkRGBA _tmp0_;
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_background_color;
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	*result = _tmp0_;
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return;
#line 1665 "machine-thumbnailer.c"
}


void
boxes_machine_thumbnailer_set_background_color (BoxesMachineThumbnailer* self,
                                                GdkRGBA * value)
{
	GdkRGBA old_value;
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (_gdk_rgba_equal (value, (boxes_machine_thumbnailer_get_background_color (self, &old_value), &old_value)) != TRUE) {
#line 1678 "machine-thumbnailer.c"
		GdkRGBA _tmp0_;
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp0_ = *value;
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_background_color = _tmp0_;
#line 18 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_BACKGROUND_COLOR_PROPERTY]);
#line 1686 "machine-thumbnailer.c"
	}
}


GdkPixbuf*
boxes_machine_thumbnailer_get_thumbnail (BoxesMachineThumbnailer* self)
{
	GdkPixbuf* result;
	GdkPixbuf* _tmp0_;
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_thumbnail;
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1704 "machine-thumbnailer.c"
}


static void
boxes_machine_thumbnailer_set_thumbnail (BoxesMachineThumbnailer* self,
                                         GdkPixbuf* value)
{
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (boxes_machine_thumbnailer_get_thumbnail (self) != value) {
#line 1716 "machine-thumbnailer.c"
		GdkPixbuf* _tmp0_;
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		_g_object_unref0 (self->priv->_thumbnail);
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_thumbnail = _tmp0_;
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_THUMBNAIL_PROPERTY]);
#line 1726 "machine-thumbnailer.c"
	}
}


gboolean
boxes_machine_thumbnailer_get_favorite_emblem_enabled (BoxesMachineThumbnailer* self)
{
	gboolean result;
	gboolean _tmp0_;
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_tmp0_ = self->priv->_favorite_emblem_enabled;
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	result = _tmp0_;
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	return result;
#line 1744 "machine-thumbnailer.c"
}


void
boxes_machine_thumbnailer_set_favorite_emblem_enabled (BoxesMachineThumbnailer* self,
                                                       gboolean value)
{
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_return_if_fail (self != NULL);
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	if (boxes_machine_thumbnailer_get_favorite_emblem_enabled (self) != value) {
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		self->priv->_favorite_emblem_enabled = value;
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_FAVORITE_EMBLEM_ENABLED_PROPERTY]);
#line 1760 "machine-thumbnailer.c"
	}
}


static void
boxes_machine_thumbnailer_class_init (BoxesMachineThumbnailerClass * klass)
{
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	boxes_machine_thumbnailer_parent_class = g_type_class_peek_parent (klass);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_type_class_add_private (klass, sizeof (BoxesMachineThumbnailerPrivate));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_machine_thumbnailer_get_property;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_machine_thumbnailer_set_property;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_machine_thumbnailer_finalize;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_MACHINE_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_MACHINE_PROPERTY] = g_param_spec_object ("machine", "machine", "machine", BOXES_TYPE_MACHINE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_WIDTH_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_WIDTH_PROPERTY] = g_param_spec_int ("width", "width", "width", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_HEIGHT_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_HEIGHT_PROPERTY] = g_param_spec_int ("height", "height", "height", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_CENTRED_EMBLEM_SIZE_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_CENTRED_EMBLEM_SIZE_PROPERTY] = g_param_spec_int ("centred-emblem-size", "centred-emblem-size", "centred-emblem-size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_EMBLEM_SIZE_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_EMBLEM_SIZE_PROPERTY] = g_param_spec_int ("emblem-size", "emblem-size", "emblem-size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_BORDER_COLOR_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_BORDER_COLOR_PROPERTY] = g_param_spec_boxed ("border-color", "border-color", "border-color", gdk_rgba_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_BACKGROUND_COLOR_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_BACKGROUND_COLOR_PROPERTY] = g_param_spec_boxed ("background-color", "background-color", "background-color", gdk_rgba_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_THUMBNAIL_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_THUMBNAIL_PROPERTY] = g_param_spec_object ("thumbnail", "thumbnail", "thumbnail", gdk_pixbuf_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_MACHINE_THUMBNAILER_FAVORITE_EMBLEM_ENABLED_PROPERTY, boxes_machine_thumbnailer_properties[BOXES_MACHINE_THUMBNAILER_FAVORITE_EMBLEM_ENABLED_PROPERTY] = g_param_spec_boolean ("favorite-emblem-enabled", "favorite-emblem-enabled", "favorite-emblem-enabled", TRUE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 1796 "machine-thumbnailer.c"
}


static void
boxes_machine_thumbnailer_instance_init (BoxesMachineThumbnailer * self)
{
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	self->priv = BOXES_MACHINE_THUMBNAILER_GET_PRIVATE (self);
#line 22 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	self->priv->_favorite_emblem_enabled = TRUE;
#line 1807 "machine-thumbnailer.c"
}


static void
boxes_machine_thumbnailer_finalize (GObject * obj)
{
	BoxesMachineThumbnailer * self;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailer);
#line 20 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (self->priv->_thumbnail);
#line 76 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (self->priv->empty_thumbnail);
#line 86 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (self->priv->default_thumbnail);
#line 97 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	_g_object_unref0 (self->priv->stopped_thumbnail);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	G_OBJECT_CLASS (boxes_machine_thumbnailer_parent_class)->finalize (obj);
#line 1827 "machine-thumbnailer.c"
}


GType
boxes_machine_thumbnailer_get_type (void)
{
	static volatile gsize boxes_machine_thumbnailer_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_machine_thumbnailer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesMachineThumbnailerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_machine_thumbnailer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesMachineThumbnailer), 0, (GInstanceInitFunc) boxes_machine_thumbnailer_instance_init, NULL };
		GType boxes_machine_thumbnailer_type_id;
		boxes_machine_thumbnailer_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesMachineThumbnailer", &g_define_type_info, 0);
		g_once_init_leave (&boxes_machine_thumbnailer_type_id__volatile, boxes_machine_thumbnailer_type_id);
	}
	return boxes_machine_thumbnailer_type_id__volatile;
}


static void
_vala_boxes_machine_thumbnailer_get_property (GObject * object,
                                              guint property_id,
                                              GValue * value,
                                              GParamSpec * pspec)
{
	BoxesMachineThumbnailer * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailer);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	switch (property_id) {
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_MACHINE_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_value_set_object (value, boxes_machine_thumbnailer_get_machine (self));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_WIDTH_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_value_set_int (value, boxes_machine_thumbnailer_get_width (self));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_HEIGHT_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_value_set_int (value, boxes_machine_thumbnailer_get_height (self));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_CENTRED_EMBLEM_SIZE_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_value_set_int (value, boxes_machine_thumbnailer_get_centred_emblem_size (self));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_EMBLEM_SIZE_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_value_set_int (value, boxes_machine_thumbnailer_get_emblem_size (self));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_BORDER_COLOR_PROPERTY:
#line 1887 "machine-thumbnailer.c"
		{
			GdkRGBA boxed;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			boxes_machine_thumbnailer_get_border_color (self, &boxed);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			g_value_set_boxed (value, &boxed);
#line 1894 "machine-thumbnailer.c"
		}
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_BACKGROUND_COLOR_PROPERTY:
#line 1900 "machine-thumbnailer.c"
		{
			GdkRGBA boxed;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			boxes_machine_thumbnailer_get_background_color (self, &boxed);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
			g_value_set_boxed (value, &boxed);
#line 1907 "machine-thumbnailer.c"
		}
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_THUMBNAIL_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_value_set_object (value, boxes_machine_thumbnailer_get_thumbnail (self));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_FAVORITE_EMBLEM_ENABLED_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		g_value_set_boolean (value, boxes_machine_thumbnailer_get_favorite_emblem_enabled (self));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 1923 "machine-thumbnailer.c"
		default:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 1929 "machine-thumbnailer.c"
	}
}


static void
_vala_boxes_machine_thumbnailer_set_property (GObject * object,
                                              guint property_id,
                                              const GValue * value,
                                              GParamSpec * pspec)
{
	BoxesMachineThumbnailer * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_MACHINE_THUMBNAILER, BoxesMachineThumbnailer);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
	switch (property_id) {
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_MACHINE_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_machine (self, g_value_get_object (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_WIDTH_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_width (self, g_value_get_int (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_HEIGHT_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_height (self, g_value_get_int (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_CENTRED_EMBLEM_SIZE_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_centred_emblem_size (self, g_value_get_int (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_EMBLEM_SIZE_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_emblem_size (self, g_value_get_int (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_BORDER_COLOR_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_border_color (self, g_value_get_boxed (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_BACKGROUND_COLOR_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_background_color (self, g_value_get_boxed (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_THUMBNAIL_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_thumbnail (self, g_value_get_object (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		case BOXES_MACHINE_THUMBNAILER_FAVORITE_EMBLEM_ENABLED_PROPERTY:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		boxes_machine_thumbnailer_set_favorite_emblem_enabled (self, g_value_get_boolean (value));
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 1998 "machine-thumbnailer.c"
		default:
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 3 "/home/fborges/checkout/gnome-boxes/src/machine-thumbnailer.vala"
		break;
#line 2004 "machine-thumbnailer.c"
	}
}


static void
_vala_array_destroy (gpointer array,
                     gint array_length,
                     GDestroyNotify destroy_func)
{
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	if ((array != NULL) && (destroy_func != NULL)) {
#line 2016 "machine-thumbnailer.c"
		int i;
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
			if (((gpointer*) array)[i] != NULL) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
				destroy_func (((gpointer*) array)[i]);
#line 2024 "machine-thumbnailer.c"
			}
		}
	}
}


static void
_vala_array_free (gpointer array,
                  gint array_length,
                  GDestroyNotify destroy_func)
{
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	_vala_array_destroy (array, array_length, destroy_func);
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 2040 "machine-thumbnailer.c"
}



