/* selectionbar.c generated by valac 0.25.2.7-aa52, the Vala compiler
 * generated from selectionbar.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <libgd/gd.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>


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

typedef struct _BoxesSelectionbar BoxesSelectionbar;
typedef struct _BoxesSelectionbarClass BoxesSelectionbarClass;
typedef struct _BoxesSelectionbarPrivate BoxesSelectionbarPrivate;

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

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block63Data Block63Data;

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

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;

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

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;

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

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;

#define BOXES_TYPE_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 TYPE_PROPERTY_CREATION_FLAG (property_creation_flag_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 __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _Block64Data Block64Data;
typedef struct _BoxesAppWindowPrivate BoxesAppWindowPrivate;

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

typedef struct _BoxesSearchbar BoxesSearchbar;
typedef struct _BoxesSearchbarClass BoxesSearchbarClass;

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

typedef struct _BoxesTopbar BoxesTopbar;
typedef struct _BoxesTopbarClass BoxesTopbarClass;

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

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;

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

typedef struct _BoxesSidebar BoxesSidebar;
typedef struct _BoxesSidebarClass BoxesSidebarClass;

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

typedef struct _BoxesWizard BoxesWizard;
typedef struct _BoxesWizardClass BoxesWizardClass;

#define BOXES_TYPE_PROPERTIES (boxes_properties_get_type ())
#define BOXES_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES, BoxesProperties))
#define BOXES_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))
#define BOXES_IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES))
#define BOXES_IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES))
#define BOXES_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))

typedef struct _BoxesProperties BoxesProperties;
typedef struct _BoxesPropertiesClass BoxesPropertiesClass;

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

typedef struct _BoxesDisplayPage BoxesDisplayPage;
typedef struct _BoxesDisplayPageClass BoxesDisplayPageClass;

#define BOXES_TYPE_EMPTY_BOXES (boxes_empty_boxes_get_type ())
#define BOXES_EMPTY_BOXES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxes))
#define BOXES_EMPTY_BOXES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxesClass))
#define BOXES_IS_EMPTY_BOXES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_EMPTY_BOXES))
#define BOXES_IS_EMPTY_BOXES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_EMPTY_BOXES))
#define BOXES_EMPTY_BOXES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxesClass))

typedef struct _BoxesEmptyBoxes BoxesEmptyBoxes;
typedef struct _BoxesEmptyBoxesClass BoxesEmptyBoxesClass;

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

typedef struct _BoxesCollectionView BoxesCollectionView;
typedef struct _BoxesCollectionViewClass BoxesCollectionViewClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())
typedef struct _BoxesAppPrivate BoxesAppPrivate;

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

typedef struct _BoxesCollection BoxesCollection;
typedef struct _BoxesCollectionClass BoxesCollectionClass;

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

typedef struct _BoxesCollectionFilter BoxesCollectionFilter;
typedef struct _BoxesCollectionFilterClass BoxesCollectionFilterClass;
typedef struct _BoxesCollectionPrivate BoxesCollectionPrivate;

struct _BoxesSelectionbar {
	GtkRevealer parent_instance;
	BoxesSelectionbarPrivate * priv;
};

struct _BoxesSelectionbarClass {
	GtkRevealerClass parent_class;
};

struct _BoxesSelectionbarPrivate {
	GtkToggleButton* favorite_btn;
	GtkButton* pause_btn;
	GtkButton* remove_btn;
	GtkButton* properties_btn;
	GtkButton* open_btn;
	BoxesAppWindow* window;
	gboolean ignore_favorite_btn_clicks;
};

struct _Block63Data {
	int _ref_count_;
	BoxesSelectionbar* self;
	BoxesAppWindow* window;
};

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
} 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_LOGIN,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DISPLAY,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_SNAPSHOTS,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

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

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

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;
	gboolean suspend_at_exit;
};

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, PropertyCreationFlag* flags);
	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 (*disconnect_display) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
};

struct _Block64Data {
	int _ref_count_;
	BoxesSelectionbar* self;
	BoxesMachine* machine;
};

struct _BoxesAppWindow {
	GtkApplicationWindow parent_instance;
	BoxesAppWindowPrivate * priv;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesNotificationbar* notificationbar;
	BoxesSelectionbar* selectionbar;
	BoxesSidebar* sidebar;
	BoxesWizard* wizard;
	BoxesProperties* properties;
	BoxesDisplayPage* display_page;
	BoxesEmptyBoxes* empty_boxes;
	GtkStack* below_bin;
	BoxesCollectionView* view;
	GSettings* settings;
};

struct _BoxesAppWindowClass {
	GtkApplicationWindowClass parent_class;
};

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

struct _BoxesApp {
	GtkApplication parent_instance;
	BoxesAppPrivate * priv;
	BoxesCollection* collection;
	BoxesCollectionFilter* filter;
};

struct _BoxesAppClass {
	GtkApplicationClass parent_class;
};

struct _BoxesCollection {
	GObject parent_instance;
	BoxesCollectionPrivate * priv;
	GPtrArray* items;
};

struct _BoxesCollectionClass {
	GObjectClass parent_class;
};


static gpointer boxes_selectionbar_parent_class = NULL;
extern BoxesApp* boxes_app_app;

GType boxes_selectionbar_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
#define BOXES_SELECTIONBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarPrivate))
enum  {
	BOXES_SELECTIONBAR_DUMMY_PROPERTY
};
void boxes_selectionbar_setup_ui (BoxesSelectionbar* self, BoxesAppWindow* window);
static Block63Data* block63_data_ref (Block63Data* _data63_);
static void block63_data_unref (void * _userdata_);
static void __lambda160_ (Block63Data* _data63_);
gboolean boxes_app_window_get_selection_mode (BoxesAppWindow* self);
static void ___lambda160__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void boxes_selectionbar_on_favorite_btn_clicked (BoxesSelectionbar* self);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GList* boxes_app_get_selected_items (BoxesApp* self);
GType boxes_machine_get_type (void) G_GNUC_CONST;
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 property_creation_flag_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 _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
void boxes_app_window_set_selection_mode (BoxesAppWindow* self, gboolean value);
static void _boxes_selectionbar_on_favorite_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void boxes_selectionbar_on_pause_btn_clicked (BoxesSelectionbar* self);
static Block64Data* block64_data_ref (Block64Data* _data64_);
static void block64_data_unref (void * _userdata_);
void boxes_machine_save (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_save_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
static void ____lambda161_ (Block64Data* _data64_, GObject* obj, GAsyncResult* _result_);
GType boxes_searchbar_get_type (void) G_GNUC_CONST;
GType boxes_topbar_get_type (void) G_GNUC_CONST;
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
GType boxes_sidebar_get_type (void) G_GNUC_CONST;
GType boxes_wizard_get_type (void) G_GNUC_CONST;
GType boxes_properties_get_type (void) G_GNUC_CONST;
GType boxes_display_page_get_type (void) G_GNUC_CONST;
GType boxes_empty_boxes_get_type (void) G_GNUC_CONST;
GType boxes_collection_view_get_type (void) G_GNUC_CONST;
GdNotification* boxes_notificationbar_display_error (BoxesNotificationbar* self, const gchar* message, gint timeout);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
static void _____lambda161__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void _boxes_selectionbar_on_pause_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void boxes_selectionbar_on_open_btn_clicked (BoxesSelectionbar* self);
void boxes_app_open_selected_items_in_new_window (BoxesApp* self);
static void _boxes_selectionbar_on_open_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void boxes_selectionbar_on_remove_btn_clicked (BoxesSelectionbar* self);
void boxes_app_remove_selected_items (BoxesApp* self);
static void _boxes_selectionbar_on_remove_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void boxes_selectionbar_on_properties_btn_clicked (BoxesSelectionbar* self);
void boxes_app_window_show_properties (BoxesAppWindow* self);
static void _boxes_selectionbar_on_properties_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void boxes_selectionbar_update_favorite_btn (BoxesSelectionbar* self);
static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle);
static void boxes_selectionbar_update_properties_btn (BoxesSelectionbar* self);
static void boxes_selectionbar_update_pause_btn (BoxesSelectionbar* self);
gboolean boxes_machine_get_can_save (BoxesMachine* self);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void boxes_selectionbar_update_delete_btn (BoxesSelectionbar* self);
GType boxes_collection_get_type (void) G_GNUC_CONST;
GType boxes_collection_filter_get_type (void) G_GNUC_CONST;
static void ____lambda186_ (BoxesSelectionbar* self);
static void _____lambda186__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
gboolean boxes_machine_get_can_delete (BoxesMachine* self);
static void boxes_selectionbar_update_open_btn (BoxesSelectionbar* self);
BoxesSelectionbar* boxes_selectionbar_new (void);
BoxesSelectionbar* boxes_selectionbar_construct (GType object_type);
static GObject * boxes_selectionbar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _boxes_selectionbar___lambda187_ (BoxesSelectionbar* self);
static void __boxes_selectionbar___lambda187__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void boxes_selectionbar_finalize (GObject* obj);
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 gpointer _g_object_ref0 (gpointer self) {
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	return self ? g_object_ref (self) : NULL;
#line 472 "selectionbar.c"
}


static Block63Data* block63_data_ref (Block63Data* _data63_) {
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_atomic_int_inc (&_data63_->_ref_count_);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	return _data63_;
#line 481 "selectionbar.c"
}


static void block63_data_unref (void * _userdata_) {
	Block63Data* _data63_;
	_data63_ = (Block63Data*) _userdata_;
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	if (g_atomic_int_dec_and_test (&_data63_->_ref_count_)) {
#line 490 "selectionbar.c"
		BoxesSelectionbar* self;
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		self = _data63_->self;
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_object_unref0 (_data63_->window);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_object_unref0 (self);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		g_slice_free (Block63Data, _data63_);
#line 500 "selectionbar.c"
	}
}


static void __lambda160_ (Block63Data* _data63_) {
	BoxesSelectionbar* self;
	BoxesAppWindow* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 32 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self = _data63_->self;
#line 33 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = _data63_->window;
#line 33 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = boxes_app_window_get_selection_mode (_tmp0_);
#line 33 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _tmp1_;
#line 33 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_revealer_set_reveal_child ((GtkRevealer*) self, _tmp2_);
#line 520 "selectionbar.c"
}


static void ___lambda160__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 32 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	__lambda160_ (self);
#line 527 "selectionbar.c"
}


void boxes_selectionbar_setup_ui (BoxesSelectionbar* self, BoxesAppWindow* window) {
	Block63Data* _data63_;
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
	BoxesAppWindow* _tmp2_ = NULL;
	BoxesAppWindow* _tmp3_ = NULL;
	BoxesAppWindow* _tmp4_ = NULL;
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (window != NULL);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_data63_ = g_slice_new0 (Block63Data);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_data63_->_ref_count_ = 1;
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_data63_->self = g_object_ref (self);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = window;
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (_data63_->window);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_data63_->window = _tmp1_;
#line 30 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _data63_->window;
#line 30 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 30 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (self->priv->window);
#line 30 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self->priv->window = _tmp3_;
#line 32 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp4_ = _data63_->window;
#line 32 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_signal_connect_data ((GObject*) _tmp4_, "notify::selection-mode", (GCallback) ___lambda160__g_object_notify, block63_data_ref (_data63_), (GClosureNotify) block63_data_unref, 0);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	block63_data_unref (_data63_);
#line 29 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_data63_ = NULL;
#line 572 "selectionbar.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 579 "selectionbar.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_list_free (self);
#line 588 "selectionbar.c"
}


static void boxes_selectionbar_on_favorite_btn_clicked (BoxesSelectionbar* self) {
	gboolean _tmp0_ = FALSE;
	BoxesApp* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	BoxesAppWindow* _tmp13_ = NULL;
#line 39 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 40 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = self->priv->ignore_favorite_btn_clicks;
#line 40 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	if (_tmp0_) {
#line 41 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		return;
#line 606 "selectionbar.c"
	}
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = boxes_app_app;
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = boxes_app_get_selected_items (_tmp1_);
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp3_ = _tmp2_;
#line 614 "selectionbar.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		item_collection = _tmp3_;
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 622 "selectionbar.c"
			BoxesCollectionItem* _tmp4_ = NULL;
			BoxesCollectionItem* item = NULL;
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			_tmp4_ = _g_object_ref0 ((BoxesCollectionItem*) item_it->data);
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			item = _tmp4_;
#line 629 "selectionbar.c"
			{
				BoxesMachine* machine = NULL;
				BoxesCollectionItem* _tmp5_ = NULL;
				BoxesMachine* _tmp6_ = NULL;
				BoxesMachine* _tmp7_ = NULL;
				BoxesMachine* _tmp8_ = NULL;
				BoxesBoxConfig* _tmp9_ = NULL;
				GtkToggleButton* _tmp10_ = NULL;
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
#line 44 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp5_ = item;
#line 44 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp5_) : NULL);
#line 44 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				machine = _tmp6_;
#line 45 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp7_ = machine;
#line 45 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (_tmp7_ == NULL) {
#line 46 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (machine);
#line 46 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (item);
#line 46 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					continue;
#line 656 "selectionbar.c"
				}
#line 47 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp8_ = machine;
#line 47 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp9_ = _tmp8_->config;
#line 47 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp10_ = self->priv->favorite_btn;
#line 47 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp11_ = gtk_toggle_button_get_active (_tmp10_);
#line 47 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp12_ = _tmp11_;
#line 47 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				boxes_box_config_set_category (_tmp9_, "favorite", _tmp12_);
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (machine);
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (item);
#line 674 "selectionbar.c"
			}
		}
#line 43 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		__g_list_free__g_object_unref0_0 (item_collection);
#line 679 "selectionbar.c"
	}
#line 50 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp13_ = self->priv->window;
#line 50 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_app_window_set_selection_mode (_tmp13_, FALSE);
#line 685 "selectionbar.c"
}


static void _boxes_selectionbar_on_favorite_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_on_favorite_btn_clicked ((BoxesSelectionbar*) self);
#line 692 "selectionbar.c"
}


static Block64Data* block64_data_ref (Block64Data* _data64_) {
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_atomic_int_inc (&_data64_->_ref_count_);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	return _data64_;
#line 701 "selectionbar.c"
}


static void block64_data_unref (void * _userdata_) {
	Block64Data* _data64_;
	_data64_ = (Block64Data*) _userdata_;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	if (g_atomic_int_dec_and_test (&_data64_->_ref_count_)) {
#line 710 "selectionbar.c"
		BoxesSelectionbar* self;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		self = _data64_->self;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_object_unref0 (_data64_->machine);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_object_unref0 (self);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		g_slice_free (Block64Data, _data64_);
#line 720 "selectionbar.c"
	}
}


static void ____lambda161_ (Block64Data* _data64_, GObject* obj, GAsyncResult* _result_) {
	BoxesSelectionbar* self;
	GError * _inner_error_ = NULL;
#line 59 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self = _data64_->self;
#line 59 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (_result_ != NULL);
#line 732 "selectionbar.c"
	{
		BoxesMachine* _tmp0_ = NULL;
		GAsyncResult* _tmp1_ = NULL;
#line 61 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp0_ = _data64_->machine;
#line 61 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp1_ = _result_;
#line 61 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		boxes_machine_save_finish (_tmp0_, _tmp1_, &_inner_error_);
#line 61 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 744 "selectionbar.c"
			goto __catch69_g_error;
		}
	}
	goto __finally69;
	__catch69_g_error:
	{
		GError* e = NULL;
		BoxesAppWindow* _tmp2_ = NULL;
		BoxesNotificationbar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		BoxesMachine* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		GdNotification* _tmp10_ = NULL;
		GdNotification* _tmp11_ = NULL;
#line 60 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		e = _inner_error_;
#line 60 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_inner_error_ = NULL;
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp2_ = self->priv->window;
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp3_ = _tmp2_->notificationbar;
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp4_ = _ ("Pausing '%s' failed");
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp5_ = _data64_->machine;
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp6_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _tmp5_);
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp7_ = _tmp6_;
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp8_ = g_strdup_printf (_tmp4_, _tmp7_);
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp9_ = _tmp8_;
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp10_ = boxes_notificationbar_display_error (_tmp3_, _tmp9_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp11_ = _tmp10_;
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_object_unref0 (_tmp11_);
#line 63 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_free0 (_tmp9_);
#line 60 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_error_free0 (e);
#line 792 "selectionbar.c"
	}
	__finally69:
#line 60 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 60 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.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 60 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		g_clear_error (&_inner_error_);
#line 60 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		return;
#line 803 "selectionbar.c"
	}
}


static void _____lambda161__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 59 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	____lambda161_ (self, source_object, res);
#line 59 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	block64_data_unref (self);
#line 813 "selectionbar.c"
}


static void boxes_selectionbar_on_pause_btn_clicked (BoxesSelectionbar* self) {
	BoxesApp* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GtkButton* _tmp8_ = NULL;
	BoxesAppWindow* _tmp9_ = NULL;
#line 54 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = boxes_app_get_selected_items (_tmp0_);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _tmp1_;
#line 831 "selectionbar.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		item_collection = _tmp2_;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 839 "selectionbar.c"
			BoxesCollectionItem* _tmp3_ = NULL;
			BoxesCollectionItem* item = NULL;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			_tmp3_ = _g_object_ref0 ((BoxesCollectionItem*) item_it->data);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			item = _tmp3_;
#line 846 "selectionbar.c"
			{
				Block64Data* _data64_;
				BoxesCollectionItem* _tmp4_ = NULL;
				BoxesMachine* _tmp5_ = NULL;
				BoxesMachine* _tmp6_ = NULL;
				BoxesMachine* _tmp7_ = NULL;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_data64_ = g_slice_new0 (Block64Data);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_data64_->_ref_count_ = 1;
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_data64_->self = g_object_ref (self);
#line 56 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp4_ = item;
#line 56 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp4_) : NULL);
#line 56 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_data64_->machine = _tmp5_;
#line 57 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp6_ = _data64_->machine;
#line 57 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (_tmp6_ == NULL) {
#line 58 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (item);
#line 58 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					block64_data_unref (_data64_);
#line 58 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_data64_ = NULL;
#line 58 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					continue;
#line 877 "selectionbar.c"
				}
#line 59 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp7_ = _data64_->machine;
#line 59 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				boxes_machine_save (_tmp7_, _____lambda161__gasync_ready_callback, block64_data_ref (_data64_));
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (item);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				block64_data_unref (_data64_);
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_data64_ = NULL;
#line 889 "selectionbar.c"
			}
		}
#line 55 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		__g_list_free__g_object_unref0_0 (item_collection);
#line 894 "selectionbar.c"
	}
#line 68 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp8_ = self->priv->pause_btn;
#line 68 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp8_, FALSE);
#line 69 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp9_ = self->priv->window;
#line 69 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_app_window_set_selection_mode (_tmp9_, FALSE);
#line 904 "selectionbar.c"
}


static void _boxes_selectionbar_on_pause_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_on_pause_btn_clicked ((BoxesSelectionbar*) self);
#line 911 "selectionbar.c"
}


static void boxes_selectionbar_on_open_btn_clicked (BoxesSelectionbar* self) {
	BoxesApp* _tmp0_ = NULL;
#line 73 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 74 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 74 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_app_open_selected_items_in_new_window (_tmp0_);
#line 923 "selectionbar.c"
}


static void _boxes_selectionbar_on_open_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_on_open_btn_clicked ((BoxesSelectionbar*) self);
#line 930 "selectionbar.c"
}


static void boxes_selectionbar_on_remove_btn_clicked (BoxesSelectionbar* self) {
	BoxesApp* _tmp0_ = NULL;
#line 78 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 79 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 79 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_app_remove_selected_items (_tmp0_);
#line 942 "selectionbar.c"
}


static void _boxes_selectionbar_on_remove_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_on_remove_btn_clicked ((BoxesSelectionbar*) self);
#line 949 "selectionbar.c"
}


static void boxes_selectionbar_on_properties_btn_clicked (BoxesSelectionbar* self) {
	BoxesAppWindow* _tmp0_ = NULL;
#line 83 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 84 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = self->priv->window;
#line 84 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_app_window_show_properties (_tmp0_);
#line 961 "selectionbar.c"
}


static void _boxes_selectionbar_on_properties_btn_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_on_properties_btn_clicked ((BoxesSelectionbar*) self);
#line 968 "selectionbar.c"
}


static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle) {
	int i;
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	for (i = 0; i < stack_length; i++) {
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		if (g_strcmp0 (stack[i], needle) == 0) {
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			return TRUE;
#line 980 "selectionbar.c"
		}
	}
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	return FALSE;
#line 985 "selectionbar.c"
}


static void boxes_selectionbar_update_favorite_btn (BoxesSelectionbar* self) {
	gboolean active = FALSE;
	gboolean sensitive = FALSE;
	BoxesApp* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	guint _tmp4_ = 0U;
	gboolean _tmp5_ = FALSE;
	BoxesApp* _tmp6_ = NULL;
	GList* _tmp7_ = NULL;
	GList* _tmp8_ = NULL;
	GtkToggleButton* _tmp22_ = NULL;
	gboolean _tmp23_ = FALSE;
	GtkToggleButton* _tmp24_ = NULL;
	gboolean _tmp25_ = FALSE;
#line 87 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 88 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	active = FALSE;
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = boxes_app_get_selected_items (_tmp0_);
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _tmp1_;
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp3_ = _tmp2_;
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp4_ = g_list_length (_tmp3_);
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp5_ = _tmp4_ > ((guint) 0);
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	__g_list_free__g_object_unref0_0 (_tmp3_);
#line 89 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	sensitive = _tmp5_;
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp6_ = boxes_app_app;
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp7_ = boxes_app_get_selected_items (_tmp6_);
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp8_ = _tmp7_;
#line 1031 "selectionbar.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		item_collection = _tmp8_;
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 1039 "selectionbar.c"
			BoxesCollectionItem* _tmp9_ = NULL;
			BoxesCollectionItem* item = NULL;
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			_tmp9_ = _g_object_ref0 ((BoxesCollectionItem*) item_it->data);
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			item = _tmp9_;
#line 1046 "selectionbar.c"
			{
				BoxesMachine* machine = NULL;
				BoxesCollectionItem* _tmp10_ = NULL;
				BoxesMachine* _tmp11_ = NULL;
				BoxesMachine* _tmp12_ = NULL;
				gboolean is_favorite = FALSE;
				BoxesMachine* _tmp13_ = NULL;
				BoxesBoxConfig* _tmp14_ = NULL;
				gchar** _tmp15_ = NULL;
				gint _tmp15__length1 = 0;
				gchar** _tmp16_ = NULL;
				gint _tmp16__length1 = 0;
				gchar** _tmp17_ = NULL;
				gint _tmp17__length1 = 0;
				gboolean _tmp18_ = FALSE;
				gboolean _tmp19_ = FALSE;
#line 92 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp10_ = item;
#line 92 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp10_) : NULL);
#line 92 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				machine = _tmp11_;
#line 93 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp12_ = machine;
#line 93 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (_tmp12_ == NULL) {
#line 94 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (machine);
#line 94 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (item);
#line 94 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					continue;
#line 1079 "selectionbar.c"
				}
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp13_ = machine;
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp14_ = _tmp13_->config;
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp15_ = boxes_box_config_get_categories (_tmp14_, &_tmp15__length1);
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp16_ = _tmp15_;
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp16__length1 = _tmp15__length1;
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp17_ = _tmp16_;
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp17__length1 = _tmp16__length1;
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp18_ = _vala_string_array_contains (_tmp17_, _tmp16__length1, "favorite");
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp17_ = (_vala_array_free (_tmp17_, _tmp17__length1, (GDestroyNotify) g_free), NULL);
#line 96 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				is_favorite = _tmp18_;
#line 97 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp19_ = active;
#line 97 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (!_tmp19_) {
#line 1105 "selectionbar.c"
					gboolean _tmp20_ = FALSE;
#line 98 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp20_ = is_favorite;
#line 98 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					active = _tmp20_;
#line 1111 "selectionbar.c"
				} else {
					gboolean _tmp21_ = FALSE;
#line 99 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp21_ = is_favorite;
#line 99 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					if (!_tmp21_) {
#line 100 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
						sensitive = FALSE;
#line 101 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
						_g_object_unref0 (machine);
#line 101 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
						_g_object_unref0 (item);
#line 101 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
						break;
#line 1126 "selectionbar.c"
					}
				}
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (machine);
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (item);
#line 1133 "selectionbar.c"
			}
		}
#line 91 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		__g_list_free__g_object_unref0_0 (item_collection);
#line 1138 "selectionbar.c"
	}
#line 105 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self->priv->ignore_favorite_btn_clicks = TRUE;
#line 106 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp22_ = self->priv->favorite_btn;
#line 106 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp23_ = active;
#line 106 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_toggle_button_set_active (_tmp22_, _tmp23_);
#line 107 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp24_ = self->priv->favorite_btn;
#line 107 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp25_ = sensitive;
#line 107 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp24_, _tmp25_);
#line 108 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self->priv->ignore_favorite_btn_clicks = FALSE;
#line 1156 "selectionbar.c"
}


static void boxes_selectionbar_update_properties_btn (BoxesSelectionbar* self) {
	gboolean sensitive = FALSE;
	BoxesApp* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	guint _tmp4_ = 0U;
	gboolean _tmp5_ = FALSE;
	GtkButton* _tmp6_ = NULL;
#line 111 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = boxes_app_get_selected_items (_tmp0_);
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _tmp1_;
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp3_ = _tmp2_;
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp4_ = g_list_length (_tmp3_);
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp5_ = _tmp4_ == ((guint) 1);
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	__g_list_free__g_object_unref0_0 (_tmp3_);
#line 112 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	sensitive = _tmp5_;
#line 114 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp6_ = self->priv->properties_btn;
#line 114 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, sensitive);
#line 1191 "selectionbar.c"
}


static void boxes_selectionbar_update_pause_btn (BoxesSelectionbar* self) {
	gboolean sensitive = FALSE;
	BoxesApp* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GtkButton* _tmp14_ = NULL;
	gboolean _tmp15_ = FALSE;
#line 117 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 118 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	sensitive = FALSE;
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = boxes_app_get_selected_items (_tmp0_);
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _tmp1_;
#line 1212 "selectionbar.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		item_collection = _tmp2_;
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 1220 "selectionbar.c"
			BoxesCollectionItem* _tmp3_ = NULL;
			BoxesCollectionItem* item = NULL;
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			_tmp3_ = _g_object_ref0 ((BoxesCollectionItem*) item_it->data);
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			item = _tmp3_;
#line 1227 "selectionbar.c"
			{
				BoxesCollectionItem* _tmp4_ = NULL;
				BoxesMachine* machine = NULL;
				BoxesCollectionItem* _tmp5_ = NULL;
				BoxesMachine* _tmp6_ = NULL;
				gboolean _tmp7_ = FALSE;
				BoxesMachine* _tmp8_ = NULL;
				gboolean _tmp9_ = FALSE;
				gboolean _tmp10_ = FALSE;
#line 120 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp4_ = item;
#line 120 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, BOXES_TYPE_MACHINE)) {
#line 121 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (item);
#line 121 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					continue;
#line 1245 "selectionbar.c"
				}
#line 123 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp5_ = item;
#line 123 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp5_) : NULL);
#line 123 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				machine = _tmp6_;
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp8_ = machine;
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp9_ = boxes_machine_get_can_save (_tmp8_);
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp10_ = _tmp9_;
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (_tmp10_) {
#line 1261 "selectionbar.c"
					BoxesMachine* _tmp11_ = NULL;
					BoxesMachineMachineState _tmp12_ = 0;
					BoxesMachineMachineState _tmp13_ = 0;
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp11_ = machine;
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp12_ = boxes_machine_get_state (_tmp11_);
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp13_ = _tmp12_;
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp7_ = _tmp13_ != BOXES_MACHINE_MACHINE_STATE_SAVED;
#line 1273 "selectionbar.c"
				} else {
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp7_ = FALSE;
#line 1277 "selectionbar.c"
				}
#line 124 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (_tmp7_) {
#line 125 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					sensitive = TRUE;
#line 127 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (machine);
#line 127 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (item);
#line 127 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					break;
#line 1289 "selectionbar.c"
				}
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (machine);
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (item);
#line 1295 "selectionbar.c"
			}
		}
#line 119 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		__g_list_free__g_object_unref0_0 (item_collection);
#line 1300 "selectionbar.c"
	}
#line 131 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp14_ = self->priv->pause_btn;
#line 131 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp15_ = sensitive;
#line 131 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp14_, _tmp15_);
#line 1308 "selectionbar.c"
}


static void ____lambda186_ (BoxesSelectionbar* self) {
#line 147 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_update_delete_btn (self);
#line 1315 "selectionbar.c"
}


static void _____lambda186__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 146 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	____lambda186_ ((BoxesSelectionbar*) self);
#line 1322 "selectionbar.c"
}


static void boxes_selectionbar_update_delete_btn (BoxesSelectionbar* self) {
	BoxesApp* _tmp0_ = NULL;
	BoxesCollection* _tmp1_ = NULL;
	GPtrArray* _tmp2_ = NULL;
	gpointer* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	gboolean sensitive = FALSE;
	BoxesApp* _tmp11_ = NULL;
	GList* _tmp12_ = NULL;
	GList* _tmp13_ = NULL;
	GList* _tmp14_ = NULL;
	guint _tmp15_ = 0U;
	gboolean _tmp16_ = FALSE;
	BoxesApp* _tmp17_ = NULL;
	GList* _tmp18_ = NULL;
	GList* _tmp19_ = NULL;
	GtkButton* _tmp30_ = NULL;
	gboolean _tmp31_ = FALSE;
#line 134 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = _tmp0_->collection;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _tmp1_->items;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp3_ = _tmp2_->pdata;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp3__length1 = (gint) _tmp2_->len;
#line 1356 "selectionbar.c"
	{
		BoxesCollectionItem** item_collection = NULL;
		gint item_collection_length1 = 0;
		gint _item_collection_size_ = 0;
		gint item_it = 0;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		item_collection = _tmp3_;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		item_collection_length1 = _tmp3__length1;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		for (item_it = 0; item_it < _tmp3__length1; item_it = item_it + 1) {
#line 1368 "selectionbar.c"
			BoxesCollectionItem* _tmp4_ = NULL;
			BoxesCollectionItem* item = NULL;
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			_tmp4_ = _g_object_ref0 (item_collection[item_it]);
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			item = _tmp4_;
#line 1375 "selectionbar.c"
			{
				gulong can_delete_id = 0UL;
				BoxesCollectionItem* _tmp5_ = NULL;
				gconstpointer _tmp6_ = NULL;
				gulong _tmp7_ = 0UL;
#line 136 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp5_ = item;
#line 136 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp6_ = g_object_get_data ((GObject*) _tmp5_, "can_delete_id");
#line 136 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				can_delete_id = (gulong) ((guintptr) _tmp6_);
#line 137 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp7_ = can_delete_id;
#line 137 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (_tmp7_ > ((gulong) 0)) {
#line 1391 "selectionbar.c"
					BoxesCollectionItem* _tmp8_ = NULL;
					gulong _tmp9_ = 0UL;
					BoxesCollectionItem* _tmp10_ = NULL;
#line 138 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp8_ = item;
#line 138 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp9_ = can_delete_id;
#line 138 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					g_signal_handler_disconnect ((GObject*) _tmp8_, _tmp9_);
#line 139 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp10_ = item;
#line 139 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					g_object_set_data_full ((GObject*) _tmp10_, "can_delete_id", (gpointer) ((guintptr) ((gulong) 0)), NULL);
#line 1405 "selectionbar.c"
				}
#line 135 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (item);
#line 1409 "selectionbar.c"
			}
		}
	}
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp11_ = boxes_app_app;
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp12_ = boxes_app_get_selected_items (_tmp11_);
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp13_ = _tmp12_;
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp14_ = _tmp13_;
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp15_ = g_list_length (_tmp14_);
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp16_ = _tmp15_ > ((guint) 0);
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	__g_list_free__g_object_unref0_0 (_tmp14_);
#line 143 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	sensitive = _tmp16_;
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp17_ = boxes_app_app;
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp18_ = boxes_app_get_selected_items (_tmp17_);
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp19_ = _tmp18_;
#line 1435 "selectionbar.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		item_collection = _tmp19_;
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 1443 "selectionbar.c"
			BoxesCollectionItem* _tmp20_ = NULL;
			BoxesCollectionItem* item = NULL;
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			_tmp20_ = _g_object_ref0 ((BoxesCollectionItem*) item_it->data);
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
			item = _tmp20_;
#line 1450 "selectionbar.c"
			{
				gulong can_delete_id = 0UL;
				BoxesCollectionItem* _tmp21_ = NULL;
				gulong _tmp22_ = 0UL;
				BoxesCollectionItem* _tmp23_ = NULL;
				gulong _tmp24_ = 0UL;
				gboolean _tmp25_ = FALSE;
				BoxesCollectionItem* _tmp26_ = NULL;
#line 145 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				can_delete_id = (gulong) 0;
#line 146 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp21_ = item;
#line 146 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp22_ = g_signal_connect_object ((GObject*) _tmp21_, "notify::can-delete", (GCallback) _____lambda186__g_object_notify, self, 0);
#line 146 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				can_delete_id = _tmp22_;
#line 149 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp23_ = item;
#line 149 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp24_ = can_delete_id;
#line 149 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				g_object_set_data_full ((GObject*) _tmp23_, "can_delete_id", (gpointer) ((guintptr) _tmp24_), NULL);
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_tmp26_ = item;
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, BOXES_TYPE_MACHINE)) {
#line 1477 "selectionbar.c"
					BoxesCollectionItem* _tmp27_ = NULL;
					gboolean _tmp28_ = FALSE;
					gboolean _tmp29_ = FALSE;
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp27_ = item;
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp28_ = boxes_machine_get_can_delete (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp27_) : NULL);
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp29_ = _tmp28_;
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp25_ = !_tmp29_;
#line 1489 "selectionbar.c"
				} else {
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_tmp25_ = FALSE;
#line 1493 "selectionbar.c"
				}
#line 151 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				if (_tmp25_) {
#line 152 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					sensitive = FALSE;
#line 153 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					_g_object_unref0 (item);
#line 153 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
					break;
#line 1503 "selectionbar.c"
				}
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
				_g_object_unref0 (item);
#line 1507 "selectionbar.c"
			}
		}
#line 144 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		__g_list_free__g_object_unref0_0 (item_collection);
#line 1512 "selectionbar.c"
	}
#line 157 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp30_ = self->priv->remove_btn;
#line 157 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp31_ = sensitive;
#line 157 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp30_, _tmp31_);
#line 1520 "selectionbar.c"
}


static void boxes_selectionbar_update_open_btn (BoxesSelectionbar* self) {
	guint items = 0U;
	BoxesApp* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	guint _tmp4_ = 0U;
	guint _tmp5_ = 0U;
	GtkButton* _tmp6_ = NULL;
	guint _tmp7_ = 0U;
	guint _tmp8_ = 0U;
#line 160 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_return_if_fail (self != NULL);
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp1_ = boxes_app_get_selected_items (_tmp0_);
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp2_ = _tmp1_;
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp3_ = _tmp2_;
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp4_ = g_list_length (_tmp3_);
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp5_ = _tmp4_;
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	__g_list_free__g_object_unref0_0 (_tmp3_);
#line 161 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	items = _tmp5_;
#line 163 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp6_ = self->priv->open_btn;
#line 163 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp7_ = items;
#line 163 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, _tmp7_ > ((guint) 0));
#line 165 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp8_ = items;
#line 165 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	if (_tmp8_ == ((guint) 0)) {
#line 1563 "selectionbar.c"
		GtkButton* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
#line 166 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp9_ = self->priv->open_btn;
#line 166 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp10_ = _ ("_Open in new window");
#line 166 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		gtk_button_set_label (_tmp9_, _tmp10_);
#line 1572 "selectionbar.c"
	} else {
		GtkButton* _tmp11_ = NULL;
		guint _tmp12_ = 0U;
		const gchar* _tmp13_ = NULL;
		guint _tmp14_ = 0U;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp11_ = self->priv->open_btn;
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp12_ = items;
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp13_ = ngettext ("_Open in new window", "_Open in %d new windows", (gulong) _tmp12_);
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp14_ = items;
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp15_ = g_strdup_printf (_tmp13_, _tmp14_);
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_tmp16_ = _tmp15_;
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		gtk_button_set_label (_tmp11_, _tmp16_);
#line 168 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
		_g_free0 (_tmp16_);
#line 1596 "selectionbar.c"
	}
}


BoxesSelectionbar* boxes_selectionbar_construct (GType object_type) {
	BoxesSelectionbar * self = NULL;
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self = (BoxesSelectionbar*) g_object_new (object_type, NULL);
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	return self;
#line 1607 "selectionbar.c"
}


BoxesSelectionbar* boxes_selectionbar_new (void) {
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	return boxes_selectionbar_construct (BOXES_TYPE_SELECTIONBAR);
#line 1614 "selectionbar.c"
}


static void _boxes_selectionbar___lambda187_ (BoxesSelectionbar* self) {
#line 21 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_update_favorite_btn (self);
#line 22 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_update_properties_btn (self);
#line 23 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_update_pause_btn (self);
#line 24 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_update_delete_btn (self);
#line 25 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_update_open_btn (self);
#line 1629 "selectionbar.c"
}


static void __boxes_selectionbar___lambda187__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 20 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_boxes_selectionbar___lambda187_ ((BoxesSelectionbar*) self);
#line 1636 "selectionbar.c"
}


static GObject * boxes_selectionbar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	BoxesSelectionbar * self;
	BoxesApp* _tmp0_ = NULL;
#line 19 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	parent_class = G_OBJECT_CLASS (boxes_selectionbar_parent_class);
#line 19 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 19 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_SELECTIONBAR, BoxesSelectionbar);
#line 20 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_tmp0_ = boxes_app_app;
#line 20 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_signal_connect_object ((GObject*) _tmp0_, "notify::selected-items", (GCallback) __boxes_selectionbar___lambda187__g_object_notify, self, 0);
#line 19 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	return obj;
#line 1657 "selectionbar.c"
}


static void boxes_selectionbar_class_init (BoxesSelectionbarClass * klass) {
	gint BoxesSelectionbar_private_offset;
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	boxes_selectionbar_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	g_type_class_add_private (klass, sizeof (BoxesSelectionbarPrivate));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_selectionbar_constructor;
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_selectionbar_finalize;
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	BoxesSelectionbar_private_offset = g_type_class_get_instance_private_offset (klass);
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/selectionbar.ui");
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "favorite_btn", FALSE, BoxesSelectionbar_private_offset + G_STRUCT_OFFSET (BoxesSelectionbarPrivate, favorite_btn));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "pause_btn", FALSE, BoxesSelectionbar_private_offset + G_STRUCT_OFFSET (BoxesSelectionbarPrivate, pause_btn));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "remove_btn", FALSE, BoxesSelectionbar_private_offset + G_STRUCT_OFFSET (BoxesSelectionbarPrivate, remove_btn));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "properties_btn", FALSE, BoxesSelectionbar_private_offset + G_STRUCT_OFFSET (BoxesSelectionbarPrivate, properties_btn));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "open_btn", FALSE, BoxesSelectionbar_private_offset + G_STRUCT_OFFSET (BoxesSelectionbarPrivate, open_btn));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_favorite_btn_clicked", G_CALLBACK(_boxes_selectionbar_on_favorite_btn_clicked_gtk_button_clicked));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_pause_btn_clicked", G_CALLBACK(_boxes_selectionbar_on_pause_btn_clicked_gtk_button_clicked));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_open_btn_clicked", G_CALLBACK(_boxes_selectionbar_on_open_btn_clicked_gtk_button_clicked));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_remove_btn_clicked", G_CALLBACK(_boxes_selectionbar_on_remove_btn_clicked_gtk_button_clicked));
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_properties_btn_clicked", G_CALLBACK(_boxes_selectionbar_on_properties_btn_clicked_gtk_button_clicked));
#line 1695 "selectionbar.c"
}


static void boxes_selectionbar_instance_init (BoxesSelectionbar * self) {
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self->priv = BOXES_SELECTIONBAR_GET_PRIVATE (self);
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 1704 "selectionbar.c"
}


static void boxes_selectionbar_finalize (GObject* obj) {
	BoxesSelectionbar * self;
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_SELECTIONBAR, BoxesSelectionbar);
#line 7 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (self->priv->favorite_btn);
#line 9 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (self->priv->pause_btn);
#line 11 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (self->priv->remove_btn);
#line 13 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (self->priv->properties_btn);
#line 15 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (self->priv->open_btn);
#line 17 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	_g_object_unref0 (self->priv->window);
#line 5 "/home/mclasen/Sources/gnome-boxes/src/selectionbar.vala"
	G_OBJECT_CLASS (boxes_selectionbar_parent_class)->finalize (obj);
#line 1726 "selectionbar.c"
}


GType boxes_selectionbar_get_type (void) {
	static volatile gsize boxes_selectionbar_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_selectionbar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesSelectionbarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_selectionbar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesSelectionbar), 0, (GInstanceInitFunc) boxes_selectionbar_instance_init, NULL };
		GType boxes_selectionbar_type_id;
		boxes_selectionbar_type_id = g_type_register_static (gtk_revealer_get_type (), "BoxesSelectionbar", &g_define_type_info, 0);
		g_once_init_leave (&boxes_selectionbar_type_id__volatile, boxes_selectionbar_type_id);
	}
	return boxes_selectionbar_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
#line 476 "/home/mclasen/Sources/gnome-boxes/src/libvirt-machine.vala"
	if ((array != NULL) && (destroy_func != NULL)) {
#line 1745 "selectionbar.c"
		int i;
#line 476 "/home/mclasen/Sources/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 476 "/home/mclasen/Sources/gnome-boxes/src/libvirt-machine.vala"
			if (((gpointer*) array)[i] != NULL) {
#line 476 "/home/mclasen/Sources/gnome-boxes/src/libvirt-machine.vala"
				destroy_func (((gpointer*) array)[i]);
#line 1753 "selectionbar.c"
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
#line 476 "/home/mclasen/Sources/gnome-boxes/src/libvirt-machine.vala"
	_vala_array_destroy (array, array_length, destroy_func);
#line 476 "/home/mclasen/Sources/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 1765 "selectionbar.c"
}



