/* actions-popover.c generated by valac 0.39.5, the Vala compiler
 * generated from actions-popover.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 <atk/atk.h>
#include <glib/gi18n-lib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <stdlib.h>
#include <string.h>


#define BOXES_TYPE_ACTIONS_POPOVER (boxes_actions_popover_get_type ())
#define BOXES_ACTIONS_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ACTIONS_POPOVER, BoxesActionsPopover))
#define BOXES_ACTIONS_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_ACTIONS_POPOVER, BoxesActionsPopoverClass))
#define BOXES_IS_ACTIONS_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ACTIONS_POPOVER))
#define BOXES_IS_ACTIONS_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_ACTIONS_POPOVER))
#define BOXES_ACTIONS_POPOVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_ACTIONS_POPOVER, BoxesActionsPopoverClass))

typedef struct _BoxesActionsPopover BoxesActionsPopover;
typedef struct _BoxesActionsPopoverClass BoxesActionsPopoverClass;
typedef struct _BoxesActionsPopoverPrivate BoxesActionsPopoverPrivate;

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

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

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;

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

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;

#define BOXES_TYPE_LIBVIRT_MACHINE (boxes_libvirt_machine_get_type ())
#define BOXES_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine))
#define BOXES_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))
#define BOXES_IS_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_IS_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_LIBVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))

typedef struct _BoxesLibvirtMachine BoxesLibvirtMachine;
typedef struct _BoxesLibvirtMachineClass BoxesLibvirtMachineClass;

#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 ())

#define BOXES_TYPE_DISPLAY (boxes_display_get_type ())
#define BOXES_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY, BoxesDisplay))
#define BOXES_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY, BoxesDisplayClass))
#define BOXES_IS_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY))
#define BOXES_IS_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY))
#define BOXES_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY, BoxesDisplayClass))

typedef struct _BoxesDisplay BoxesDisplay;
typedef struct _BoxesDisplayClass BoxesDisplayClass;
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 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 _g_free0(var) (var = (g_free (var), NULL))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
typedef struct _Block10Data Block10Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesAppWindowPrivate BoxesAppWindowPrivate;

#define BOXES_TYPE_WIZARD_WINDOW (boxes_wizard_window_get_type ())
#define BOXES_WIZARD_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindow))
#define BOXES_WIZARD_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowClass))
#define BOXES_IS_WIZARD_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_WINDOW))
#define BOXES_IS_WIZARD_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_WINDOW))
#define BOXES_WIZARD_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowClass))

typedef struct _BoxesWizardWindow BoxesWizardWindow;
typedef struct _BoxesWizardWindowClass BoxesWizardWindowClass;

#define BOXES_TYPE_PROPERTIES_WINDOW (boxes_properties_window_get_type ())
#define BOXES_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindow))
#define BOXES_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))
#define BOXES_IS_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_IS_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))

typedef struct _BoxesPropertiesWindow BoxesPropertiesWindow;
typedef struct _BoxesPropertiesWindowClass BoxesPropertiesWindowClass;

#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_SELECTIONBAR (boxes_selectionbar_get_type ())
#define BOXES_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbar))
#define BOXES_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))
#define BOXES_IS_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SELECTIONBAR))
#define BOXES_IS_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SELECTIONBAR))
#define BOXES_SELECTIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))

typedef struct _BoxesSelectionbar BoxesSelectionbar;
typedef struct _BoxesSelectionbarClass BoxesSelectionbarClass;

#define BOXES_TYPE_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_TROUBLESHOOT_VIEW (boxes_troubleshoot_view_get_type ())
#define BOXES_TROUBLESHOOT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootView))
#define BOXES_TROUBLESHOOT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootViewClass))
#define BOXES_IS_TROUBLESHOOT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW))
#define BOXES_IS_TROUBLESHOOT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TROUBLESHOOT_VIEW))
#define BOXES_TROUBLESHOOT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootViewClass))

typedef struct _BoxesTroubleshootView BoxesTroubleshootView;
typedef struct _BoxesTroubleshootViewClass BoxesTroubleshootViewClass;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

struct _BoxesActionsPopover {
	GtkPopover parent_instance;
	BoxesActionsPopoverPrivate * priv;
};

struct _BoxesActionsPopoverClass {
	GtkPopoverClass parent_class;
};

struct _BoxesActionsPopoverPrivate {
	BoxesAppWindow* window;
	GSimpleActionGroup* action_group;
};

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

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

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

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

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

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

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

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

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	void (*save_real) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*save_real_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*take_screenshot) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GdkPixbuf* (*take_screenshot_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	GList* (*get_properties) (BoxesMachine* self, BoxesPropertiesPage page);
	void (*connect_display) (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*restart) (BoxesMachine* self);
	void (*clone) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*clone_finish) (BoxesMachine* self, GAsyncResult* _res_);
	void (*disconnect_display) (BoxesMachine* self);
	void (*update_status) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
	gboolean (*get_suspend_at_exit) (BoxesMachine* self);
	gboolean (*get_can_save) (BoxesMachine* self);
	gboolean (*get_can_restart) (BoxesMachine* self);
	gboolean (*get_can_clone) (BoxesMachine* self);
	gboolean (*get_should_autosave) (BoxesMachine* self);
	gboolean (*get_is_local) (BoxesMachine* self);
};

struct _Block10Data {
	int _ref_count_;
	BoxesActionsPopover* self;
	GtkStyleContext* ctx;
};

struct _BoxesAppWindow {
	GtkApplicationWindow parent_instance;
	BoxesAppWindowPrivate * priv;
	BoxesWizardWindow* wizard_window;
	BoxesPropertiesWindow* props_window;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesSelectionbar* selectionbar;
	BoxesDisplayPage* display_page;
	BoxesEmptyBoxes* empty_boxes;
	BoxesTroubleshootView* troubleshoot_view;
	GtkStack* below_bin;
	GSettings* settings;
};

struct _BoxesAppWindowClass {
	GtkApplicationWindowClass parent_class;
};

typedef void (*BoxesAppUndoNotifyCallback) (void* user_data);

static gpointer boxes_actions_popover_parent_class = NULL;
extern BoxesApp* boxes_app_app;

GType boxes_actions_popover_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
#define BOXES_ACTIONS_POPOVER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_ACTIONS_POPOVER, BoxesActionsPopoverPrivate))
static void boxes_actions_popover_open_in_new_win_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_open_in_new_win_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                        GVariant* parameter,
                                                                                        gpointer self);
static void boxes_actions_popover_favorite_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_favorite_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                 GVariant* parameter,
                                                                                 gpointer self);
static void boxes_actions_popover_take_screenshot_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_take_screenshot_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                        GVariant* parameter,
                                                                                        gpointer self);
static void boxes_actions_popover_force_shutdown_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_force_shutdown_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                       GVariant* parameter,
                                                                                       gpointer self);
static void boxes_actions_popover_delete_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_delete_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                               GVariant* parameter,
                                                                               gpointer self);
static void boxes_actions_popover_clone_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_clone_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                              GVariant* parameter,
                                                                              gpointer self);
static void boxes_actions_popover_properties_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_properties_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                   GVariant* parameter,
                                                                                   gpointer self);
static void boxes_actions_popover_restart_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_restart_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                GVariant* parameter,
                                                                                gpointer self);
static void boxes_actions_popover_send_file_activated (BoxesActionsPopover* self);
static void _boxes_actions_popover_send_file_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                  GVariant* parameter,
                                                                                  gpointer self);
BoxesActionsPopover* boxes_actions_popover_new (BoxesAppWindow* window);
BoxesActionsPopover* boxes_actions_popover_construct (GType object_type,
                                                      BoxesAppWindow* window);
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
void boxes_actions_popover_update_for_item (BoxesActionsPopover* self,
                                            BoxesCollectionItem* item);
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
gboolean boxes_libvirt_machine_get_importing (BoxesLibvirtMachine* self);
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
GType boxes_display_get_type (void) G_GNUC_CONST;
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
gboolean boxes_display_get_can_transfer_files (BoxesDisplay* self);
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 gboolean _vala_string_array_contains (gchar* * stack,
                                      int stack_length,
                                      gchar* needle);
gboolean boxes_machine_get_is_running (BoxesMachine* self);
gboolean boxes_machine_get_can_clone (BoxesMachine* self);
gboolean boxes_machine_get_can_delete (BoxesMachine* self);
gboolean boxes_machine_get_can_restart (BoxesMachine* self);
void boxes_app_window_set_current_item (BoxesAppWindow* self,
                                        BoxesCollectionItem* value);
GType boxes_app_get_type (void) G_GNUC_CONST;
void boxes_app_open_in_new_window (BoxesApp* self,
                                   BoxesMachine* machine);
BoxesCollectionItem* boxes_app_window_get_current_item (BoxesAppWindow* self);
static gchar* boxes_actions_popover_get_screenshot_filename (BoxesActionsPopover* self);
static Block10Data* block10_data_ref (Block10Data* _data10_);
static void block10_data_unref (void * _userdata_);
GdkPixbuf* boxes_display_get_pixbuf (BoxesDisplay* self,
                                     gint n,
                                     GError** error);
GType boxes_wizard_window_get_type (void) G_GNUC_CONST;
GType boxes_properties_window_get_type (void) G_GNUC_CONST;
GType boxes_searchbar_get_type (void) G_GNUC_CONST;
GType boxes_topbar_get_type (void) G_GNUC_CONST;
GType boxes_selectionbar_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_troubleshoot_view_get_type (void) G_GNUC_CONST;
static gboolean __lambda237_ (Block10Data* _data10_);
static gboolean ___lambda237__gsource_func (gpointer self);
void boxes_libvirt_machine_force_shutdown (BoxesLibvirtMachine* self);
void boxes_machine_restart (BoxesMachine* self);
void boxes_ui_set_state (BoxesUI* self,
                         BoxesUIState new_state);
void boxes_app_delete_machines_undoable (BoxesApp* self,
                                         GList* items,
                                         const gchar* message,
                                         BoxesAppUndoNotifyCallback undo_notify_callback,
                                         void* undo_notify_callback_target,
                                         GDestroyNotify undo_notify_callback_target_destroy_notify);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
void boxes_machine_clone (BoxesMachine* self,
                          GAsyncReadyCallback _callback_,
                          gpointer _user_data_);
void boxes_machine_clone_finish (BoxesMachine* self,
                                 GAsyncResult* _res_);
void boxes_app_window_show_send_file (BoxesAppWindow* self);
void boxes_app_window_show_properties (BoxesAppWindow* self);
static void boxes_actions_popover_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 const GActionEntry BOXES_ACTIONS_POPOVER_action_entries[9] = {{"open-in-new-win", _boxes_actions_popover_open_in_new_win_activated_gsimple_action_activate_callback}, {"favorite", _boxes_actions_popover_favorite_activated_gsimple_action_activate_callback}, {"take_screenshot", _boxes_actions_popover_take_screenshot_activated_gsimple_action_activate_callback}, {"force_shutdown", _boxes_actions_popover_force_shutdown_activated_gsimple_action_activate_callback}, {"delete", _boxes_actions_popover_delete_activated_gsimple_action_activate_callback}, {"clone", _boxes_actions_popover_clone_activated_gsimple_action_activate_callback}, {"properties", _boxes_actions_popover_properties_activated_gsimple_action_activate_callback}, {"restart", _boxes_actions_popover_restart_activated_gsimple_action_activate_callback}, {"send_file", _boxes_actions_popover_send_file_activated_gsimple_action_activate_callback}};

static void
_boxes_actions_popover_open_in_new_win_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                   GVariant* parameter,
                                                                                   gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_open_in_new_win_activated ((BoxesActionsPopover*) self);
#line 460 "actions-popover.c"
}


static void
_boxes_actions_popover_favorite_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                            GVariant* parameter,
                                                                            gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_favorite_activated ((BoxesActionsPopover*) self);
#line 471 "actions-popover.c"
}


static void
_boxes_actions_popover_take_screenshot_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                   GVariant* parameter,
                                                                                   gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_take_screenshot_activated ((BoxesActionsPopover*) self);
#line 482 "actions-popover.c"
}


static void
_boxes_actions_popover_force_shutdown_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                  GVariant* parameter,
                                                                                  gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_force_shutdown_activated ((BoxesActionsPopover*) self);
#line 493 "actions-popover.c"
}


static void
_boxes_actions_popover_delete_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                          GVariant* parameter,
                                                                          gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_delete_activated ((BoxesActionsPopover*) self);
#line 504 "actions-popover.c"
}


static void
_boxes_actions_popover_clone_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                         GVariant* parameter,
                                                                         gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_clone_activated ((BoxesActionsPopover*) self);
#line 515 "actions-popover.c"
}


static void
_boxes_actions_popover_properties_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                              GVariant* parameter,
                                                                              gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_properties_activated ((BoxesActionsPopover*) self);
#line 526 "actions-popover.c"
}


static void
_boxes_actions_popover_restart_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                           GVariant* parameter,
                                                                           gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_restart_activated ((BoxesActionsPopover*) self);
#line 537 "actions-popover.c"
}


static void
_boxes_actions_popover_send_file_activated_gsimple_action_activate_callback (GSimpleAction* action,
                                                                             GVariant* parameter,
                                                                             gpointer self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_send_file_activated ((BoxesActionsPopover*) self);
#line 548 "actions-popover.c"
}


static gpointer
_g_object_ref0 (gpointer self)
{
#line 21 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	return self ? g_object_ref (self) : NULL;
#line 557 "actions-popover.c"
}


BoxesActionsPopover*
boxes_actions_popover_construct (GType object_type,
                                 BoxesAppWindow* window)
{
	BoxesActionsPopover * self = NULL;
	BoxesAppWindow* _tmp0_;
	GSimpleActionGroup* _tmp1_;
	GSimpleActionGroup* _tmp2_;
	GSimpleActionGroup* _tmp3_;
	AtkObject* a11y = NULL;
	AtkObject* _tmp4_;
	AtkObject* _tmp5_;
#line 20 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_val_if_fail (window != NULL, NULL);
#line 20 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	self = (BoxesActionsPopover*) g_object_new (object_type, NULL);
#line 21 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = _g_object_ref0 (window);
#line 21 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (self->priv->window);
#line 21 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	self->priv->window = _tmp0_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = g_simple_action_group_new ();
#line 23 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (self->priv->action_group);
#line 23 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	self->priv->action_group = _tmp1_;
#line 24 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = self->priv->action_group;
#line 24 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_action_map_add_action_entries ((GActionMap*) _tmp2_, BOXES_ACTIONS_POPOVER_action_entries, G_N_ELEMENTS (BOXES_ACTIONS_POPOVER_action_entries), self);
#line 25 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp3_ = self->priv->action_group;
#line 25 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	gtk_widget_insert_action_group ((GtkWidget*) self, "box", (GActionGroup*) _tmp3_);
#line 27 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp4_ = gtk_widget_get_accessible ((GtkWidget*) self);
#line 27 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 27 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	a11y = _tmp5_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	a11y->role = ATK_ROLE_POPUP_MENU;
#line 30 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	a11y->name = _ ("Box actions");
#line 20 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (a11y);
#line 20 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	return self;
#line 611 "actions-popover.c"
}


BoxesActionsPopover*
boxes_actions_popover_new (BoxesAppWindow* window)
{
#line 20 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	return boxes_actions_popover_construct (BOXES_TYPE_ACTIONS_POPOVER, window);
#line 620 "actions-popover.c"
}


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


void
boxes_actions_popover_update_for_item (BoxesActionsPopover* self,
                                       BoxesCollectionItem* item)
{
	BoxesMachine* machine = NULL;
	BoxesMachine* _tmp0_;
	GMenu* menu = NULL;
	GMenu* _tmp1_;
	GMenu* section = NULL;
	GMenu* _tmp2_;
	gboolean _tmp3_ = FALSE;
	BoxesMachine* _tmp4_;
	gboolean importing = FALSE;
	BoxesAppWindow* _tmp8_;
	BoxesUIState _tmp9_;
	BoxesUIState _tmp10_;
	BoxesMachine* _tmp28_;
	BoxesBoxConfig* _tmp29_;
	gchar** _tmp30_;
	gint _tmp30__length1;
	gchar** _tmp31_;
	gint _tmp31__length1;
	gchar** _tmp32_;
	gint _tmp32__length1;
	gboolean _tmp33_;
	GMenu* _tmp36_;
	GMenu* _tmp37_;
	GMenu* _tmp38_;
	BoxesMachine* _tmp39_;
	BoxesAppWindow* _tmp48_;
	BoxesUIState _tmp49_;
	BoxesUIState _tmp50_;
	GMenu* _tmp75_;
	GMenu* _tmp76_;
	GMenu* _tmp77_;
	GMenu* _tmp78_;
	GMenu* _tmp79_;
	GMenu* _tmp80_;
	GSimpleAction* action = NULL;
	GSimpleActionGroup* _tmp81_;
	GAction* _tmp82_;
	GSimpleAction* _tmp83_;
	gboolean _tmp84_;
	GMenu* _tmp85_;
	BoxesAppWindow* _tmp86_;
#line 33 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 33 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (item != NULL);
#line 34 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (item, BOXES_TYPE_MACHINE));
#line 35 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (item, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) item) : NULL);
#line 35 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	machine = _tmp0_;
#line 37 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = g_menu_new ();
#line 37 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	menu = _tmp1_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = g_menu_new ();
#line 38 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	section = _tmp2_;
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp4_ = machine;
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, BOXES_TYPE_LIBVIRT_MACHINE)) {
#line 712 "actions-popover.c"
		BoxesMachine* _tmp5_;
		gboolean _tmp6_;
		gboolean _tmp7_;
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp5_ = machine;
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp6_ = boxes_libvirt_machine_get_importing (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, BOXES_TYPE_LIBVIRT_MACHINE) ? ((BoxesLibvirtMachine*) _tmp5_) : NULL);
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp7_ = _tmp6_;
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp3_ = _tmp7_;
#line 724 "actions-popover.c"
	} else {
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp3_ = FALSE;
#line 728 "actions-popover.c"
	}
#line 40 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	importing = _tmp3_;
#line 43 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp8_ = self->priv->window;
#line 43 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp9_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp8_);
#line 43 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp10_ = _tmp9_;
#line 43 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	if (_tmp10_ != BOXES_UI_STATE_DISPLAY) {
#line 740 "actions-popover.c"
		GMenu* _tmp11_;
		GSimpleAction* action = NULL;
		GSimpleActionGroup* _tmp12_;
		GAction* _tmp13_;
		GSimpleAction* _tmp14_;
		GSimpleAction* _tmp15_;
		gboolean _tmp16_;
#line 44 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp11_ = section;
#line 44 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp11_, _ ("Open in New Window"), "box.open-in-new-win");
#line 45 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp12_ = self->priv->action_group;
#line 45 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp13_ = g_action_map_lookup_action ((GActionMap*) _tmp12_, "open-in-new-win");
#line 45 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp13_) : NULL);
#line 45 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		action = _tmp14_;
#line 46 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp15_ = action;
#line 46 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp16_ = importing;
#line 46 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_simple_action_set_enabled (_tmp15_, !_tmp16_);
#line 43 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (action);
#line 768 "actions-popover.c"
	} else {
		GMenu* _tmp17_;
		GSimpleAction* action = NULL;
		GSimpleActionGroup* _tmp18_;
		GAction* _tmp19_;
		GSimpleAction* _tmp20_;
		GSimpleAction* _tmp21_;
		BoxesMachine* _tmp22_;
		BoxesDisplay* _tmp23_;
		BoxesDisplay* _tmp24_;
		gboolean _tmp25_;
		gboolean _tmp26_;
		GMenu* _tmp27_;
#line 49 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp17_ = section;
#line 49 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp17_, _ ("Send File…"), "box.send_file");
#line 50 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp18_ = self->priv->action_group;
#line 50 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp19_ = g_action_map_lookup_action ((GActionMap*) _tmp18_, "send_file");
#line 50 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp19_) : NULL);
#line 50 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		action = _tmp20_;
#line 51 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp21_ = action;
#line 51 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp22_ = machine;
#line 51 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp23_ = boxes_machine_get_display (_tmp22_);
#line 51 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp24_ = _tmp23_;
#line 51 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp25_ = boxes_display_get_can_transfer_files (_tmp24_);
#line 51 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp26_ = _tmp25_;
#line 51 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_simple_action_set_enabled (_tmp21_, _tmp26_);
#line 54 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp27_ = section;
#line 54 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp27_, _ ("Take Screenshot"), "box.take_screenshot");
#line 43 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (action);
#line 814 "actions-popover.c"
	}
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp28_ = machine;
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp29_ = _tmp28_->config;
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp30_ = boxes_box_config_get_categories (_tmp29_, &_tmp30__length1);
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp31_ = _tmp30_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp31__length1 = _tmp30__length1;
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp32_ = _tmp31_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp32__length1 = _tmp31__length1;
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp33_ = _vala_string_array_contains (_tmp32_, _tmp31__length1, "favorite");
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp32_ = (_vala_array_free (_tmp32_, _tmp32__length1, (GDestroyNotify) g_free), NULL);
#line 58 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	if (_tmp33_) {
#line 836 "actions-popover.c"
		GMenu* _tmp34_;
#line 59 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp34_ = section;
#line 59 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp34_, _ ("Remove from Favorites"), "box.favorite");
#line 842 "actions-popover.c"
	} else {
		GMenu* _tmp35_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp35_ = section;
#line 61 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp35_, _ ("Add to Favorites"), "box.favorite");
#line 849 "actions-popover.c"
	}
#line 62 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp36_ = menu;
#line 62 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp37_ = section;
#line 62 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_menu_append_section (_tmp36_, NULL, (GMenuModel*) _tmp37_);
#line 65 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp38_ = g_menu_new ();
#line 65 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (section);
#line 65 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	section = _tmp38_;
#line 67 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp39_ = machine;
#line 67 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, BOXES_TYPE_LIBVIRT_MACHINE)) {
#line 867 "actions-popover.c"
		GMenu* _tmp40_;
		GSimpleAction* action = NULL;
		GSimpleActionGroup* _tmp41_;
		GAction* _tmp42_;
		GSimpleAction* _tmp43_;
		GSimpleAction* _tmp44_;
		BoxesMachine* _tmp45_;
		gboolean _tmp46_;
		gboolean _tmp47_;
#line 68 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp40_ = section;
#line 68 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp40_, _ ("Force Shutdown"), "box.force_shutdown");
#line 69 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp41_ = self->priv->action_group;
#line 69 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp42_ = g_action_map_lookup_action ((GActionMap*) _tmp41_, "force_shutdown");
#line 69 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp43_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp42_) : NULL);
#line 69 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		action = _tmp43_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp44_ = action;
#line 70 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp45_ = machine;
#line 70 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp46_ = boxes_machine_get_is_running (_tmp45_);
#line 70 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp47_ = _tmp46_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_simple_action_set_enabled (_tmp44_, _tmp47_);
#line 67 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (action);
#line 901 "actions-popover.c"
	}
#line 73 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp48_ = self->priv->window;
#line 73 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp49_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp48_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp50_ = _tmp49_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	if (_tmp50_ != BOXES_UI_STATE_DISPLAY) {
#line 911 "actions-popover.c"
		GMenu* _tmp51_;
		GSimpleAction* action = NULL;
		GSimpleActionGroup* _tmp52_;
		GAction* _tmp53_;
		GSimpleAction* _tmp54_;
		GSimpleAction* _tmp55_;
		BoxesMachine* _tmp56_;
		gboolean _tmp57_;
		gboolean _tmp58_;
		GMenu* _tmp59_;
		GSimpleActionGroup* _tmp60_;
		GAction* _tmp61_;
		GSimpleAction* _tmp62_;
		GSimpleAction* _tmp63_;
		BoxesMachine* _tmp64_;
		gboolean _tmp65_;
		gboolean _tmp66_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp51_ = section;
#line 75 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp51_, _ ("Clone"), "box.clone");
#line 76 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp52_ = self->priv->action_group;
#line 76 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp53_ = g_action_map_lookup_action ((GActionMap*) _tmp52_, "clone");
#line 76 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp54_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp53_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp53_) : NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		action = _tmp54_;
#line 77 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp55_ = action;
#line 77 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp56_ = machine;
#line 77 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp57_ = boxes_machine_get_can_clone (_tmp56_);
#line 77 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp58_ = _tmp57_;
#line 77 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_simple_action_set_enabled (_tmp55_, _tmp58_);
#line 80 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp59_ = section;
#line 80 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp59_, _ ("Delete"), "box.delete");
#line 81 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp60_ = self->priv->action_group;
#line 81 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp61_ = g_action_map_lookup_action ((GActionMap*) _tmp60_, "delete");
#line 81 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp62_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp61_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp61_) : NULL);
#line 81 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (action);
#line 81 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		action = _tmp62_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp63_ = action;
#line 82 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp64_ = machine;
#line 82 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp65_ = boxes_machine_get_can_delete (_tmp64_);
#line 82 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp66_ = _tmp65_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_simple_action_set_enabled (_tmp63_, _tmp66_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (action);
#line 977 "actions-popover.c"
	} else {
		GMenu* _tmp67_;
		GSimpleAction* action = NULL;
		GSimpleActionGroup* _tmp68_;
		GAction* _tmp69_;
		GSimpleAction* _tmp70_;
		GSimpleAction* _tmp71_;
		BoxesMachine* _tmp72_;
		gboolean _tmp73_;
		gboolean _tmp74_;
#line 84 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp67_ = section;
#line 84 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_menu_append (_tmp67_, _ ("Restart"), "box.restart");
#line 85 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp68_ = self->priv->action_group;
#line 85 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp69_ = g_action_map_lookup_action ((GActionMap*) _tmp68_, "restart");
#line 85 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp70_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp69_) : NULL);
#line 85 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		action = _tmp70_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp71_ = action;
#line 86 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp72_ = machine;
#line 86 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp73_ = boxes_machine_get_can_restart (_tmp72_);
#line 86 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp74_ = _tmp73_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_simple_action_set_enabled (_tmp71_, _tmp74_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (action);
#line 1012 "actions-popover.c"
	}
#line 89 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp75_ = menu;
#line 89 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp76_ = section;
#line 89 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_menu_append_section (_tmp75_, NULL, (GMenuModel*) _tmp76_);
#line 92 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp77_ = g_menu_new ();
#line 92 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (section);
#line 92 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	section = _tmp77_;
#line 93 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp78_ = section;
#line 93 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_menu_append (_tmp78_, _ ("Properties"), "box.properties");
#line 94 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp79_ = menu;
#line 94 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp80_ = section;
#line 94 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_menu_append_section (_tmp79_, NULL, (GMenuModel*) _tmp80_);
#line 95 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp81_ = self->priv->action_group;
#line 95 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp82_ = g_action_map_lookup_action ((GActionMap*) _tmp81_, "properties");
#line 95 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp83_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp82_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp82_) : NULL);
#line 95 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	action = _tmp83_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp84_ = importing;
#line 96 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_simple_action_set_enabled (action, !_tmp84_);
#line 98 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp85_ = menu;
#line 98 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	gtk_popover_bind_model ((GtkPopover*) self, (GMenuModel*) _tmp85_, NULL);
#line 99 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp86_ = self->priv->window;
#line 99 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_app_window_set_current_item (_tmp86_, item);
#line 33 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (action);
#line 33 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (section);
#line 33 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (menu);
#line 33 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (machine);
#line 1064 "actions-popover.c"
}


static void
boxes_actions_popover_open_in_new_win_activated (BoxesActionsPopover* self)
{
	BoxesApp* _tmp0_;
	BoxesAppWindow* _tmp1_;
	BoxesCollectionItem* _tmp2_;
	BoxesCollectionItem* _tmp3_;
#line 102 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 103 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = boxes_app_app;
#line 103 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = self->priv->window;
#line 103 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = boxes_app_window_get_current_item (_tmp1_);
#line 103 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp3_ = _tmp2_;
#line 103 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_app_open_in_new_window (_tmp0_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp3_) : NULL);
#line 1087 "actions-popover.c"
}


static void
boxes_actions_popover_favorite_activated (BoxesActionsPopover* self)
{
	BoxesMachine* machine = NULL;
	BoxesAppWindow* _tmp0_;
	BoxesCollectionItem* _tmp1_;
	BoxesCollectionItem* _tmp2_;
	BoxesMachine* _tmp3_;
	gboolean enabled = FALSE;
	BoxesBoxConfig* _tmp4_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	gchar** _tmp6_;
	gint _tmp6__length1;
	gchar** _tmp7_;
	gint _tmp7__length1;
	gboolean _tmp8_;
	BoxesBoxConfig* _tmp9_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 107 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 107 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = boxes_app_window_get_current_item (_tmp0_);
#line 107 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = _tmp1_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp2_) : NULL);
#line 107 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	machine = _tmp3_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp4_ = machine->config;
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp5_ = boxes_box_config_get_categories (_tmp4_, &_tmp5__length1);
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp6_ = _tmp5_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp6__length1 = _tmp5__length1;
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp7_ = _tmp6_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp7__length1 = _tmp6__length1;
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp8_ = !_vala_string_array_contains (_tmp7_, _tmp6__length1, "favorite");
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
#line 108 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	enabled = _tmp8_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp9_ = machine->config;
#line 109 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_box_config_set_category (_tmp9_, "favorite", enabled);
#line 106 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (machine);
#line 1145 "actions-popover.c"
}


static gchar*
boxes_actions_popover_get_screenshot_filename (BoxesActionsPopover* self)
{
	gchar* result = NULL;
	GDateTime* now = NULL;
	GDateTime* _tmp0_;
	gchar* timestamp = NULL;
	gchar* _tmp1_;
	gchar* filename = NULL;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
#line 112 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 113 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = g_date_time_new_now_local ();
#line 113 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	now = _tmp0_;
#line 114 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = g_date_time_format (now, "%Y-%m-%d %H-%M-%S");
#line 114 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	timestamp = _tmp1_;
#line 117 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = g_strdup_printf (_ ("Screenshot from %s"), timestamp);
#line 117 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	filename = _tmp2_;
#line 119 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp3_ = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
#line 119 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp4_ = g_build_filename (_tmp3_, filename, NULL);
#line 119 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	result = _tmp4_;
#line 119 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_free0 (filename);
#line 119 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_free0 (timestamp);
#line 119 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_date_time_unref0 (now);
#line 119 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	return result;
#line 1189 "actions-popover.c"
}


static Block10Data*
block10_data_ref (Block10Data* _data10_)
{
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_atomic_int_inc (&_data10_->_ref_count_);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	return _data10_;
#line 1200 "actions-popover.c"
}


static void
block10_data_unref (void * _userdata_)
{
	Block10Data* _data10_;
	_data10_ = (Block10Data*) _userdata_;
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
#line 1211 "actions-popover.c"
		BoxesActionsPopover* self;
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		self = _data10_->self;
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (_data10_->ctx);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (self);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_slice_free (Block10Data, _data10_);
#line 1221 "actions-popover.c"
	}
}


static gboolean
__lambda237_ (Block10Data* _data10_)
{
	BoxesActionsPopover* self;
	gboolean result = FALSE;
#line 134 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	self = _data10_->self;
#line 135 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	gtk_style_context_remove_class (_data10_->ctx, "flash");
#line 137 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	result = FALSE;
#line 137 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	return result;
#line 1239 "actions-popover.c"
}


static gboolean
___lambda237__gsource_func (gpointer self)
{
	gboolean result;
	result = __lambda237_ (self);
#line 134 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	return result;
#line 1250 "actions-popover.c"
}


static void
boxes_actions_popover_take_screenshot_activated (BoxesActionsPopover* self)
{
	Block10Data* _data10_;
	BoxesMachine* machine = NULL;
	BoxesAppWindow* _tmp0_;
	BoxesCollectionItem* _tmp1_;
	BoxesCollectionItem* _tmp2_;
	BoxesMachine* _tmp3_;
	BoxesAppWindow* _tmp15_;
	GtkStack* _tmp16_;
	GtkStyleContext* _tmp17_;
	GtkStyleContext* _tmp18_;
	GError * _inner_error_ = NULL;
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_data10_ = g_slice_new0 (Block10Data);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_data10_->_ref_count_ = 1;
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_data10_->self = g_object_ref (self);
#line 124 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 124 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = boxes_app_window_get_current_item (_tmp0_);
#line 124 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = _tmp1_;
#line 124 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp2_) : NULL);
#line 124 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	machine = _tmp3_;
#line 1286 "actions-popover.c"
	{
		GdkPixbuf* pixbuf = NULL;
		BoxesMachine* _tmp4_;
		BoxesDisplay* _tmp5_;
		BoxesDisplay* _tmp6_;
		GdkPixbuf* _tmp7_;
		GdkPixbuf* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
		gchar* _tmp11_;
		gchar* _tmp12_;
#line 126 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp4_ = machine;
#line 126 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp5_ = boxes_machine_get_display (_tmp4_);
#line 126 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp6_ = _tmp5_;
#line 126 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp7_ = boxes_display_get_pixbuf (_tmp6_, 0, &_inner_error_);
#line 126 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		pixbuf = _tmp7_;
#line 126 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1310 "actions-popover.c"
			goto __catch7_g_error;
		}
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp8_ = pixbuf;
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp9_ = boxes_actions_popover_get_screenshot_filename (self);
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp10_ = _tmp9_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp11_ = g_strconcat (_tmp10_, ".png", NULL);
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp12_ = _tmp11_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		gdk_pixbuf_save (_tmp8_, _tmp12_, "png", &_inner_error_, NULL);
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_free0 (_tmp12_);
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_free0 (_tmp10_);
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 127 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
			_g_object_unref0 (pixbuf);
#line 1333 "actions-popover.c"
			goto __catch7_g_error;
		}
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (pixbuf);
#line 1338 "actions-popover.c"
	}
	goto __finally7;
	__catch7_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp13_;
		const gchar* _tmp14_;
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_error_ = _inner_error_;
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_inner_error_ = NULL;
#line 129 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp13_ = _error_;
#line 129 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_tmp14_ = _tmp13_->message;
#line 129 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_warning ("actions-popover.vala:129: %s", _tmp14_);
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_error_free0 (_error_);
#line 1358 "actions-popover.c"
	}
	__finally7:
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_g_object_unref0 (machine);
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		block10_data_unref (_data10_);
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		_data10_ = NULL;
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.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 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		g_clear_error (&_inner_error_);
#line 125 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
		return;
#line 1375 "actions-popover.c"
	}
#line 132 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp15_ = self->priv->window;
#line 132 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp16_ = _tmp15_->below_bin;
#line 132 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp17_ = gtk_widget_get_style_context ((GtkWidget*) _tmp16_);
#line 132 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp18_ = _g_object_ref0 (_tmp17_);
#line 132 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_data10_->ctx = _tmp18_;
#line 133 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	gtk_style_context_add_class (_data10_->ctx, "flash");
#line 134 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 200, ___lambda237__gsource_func, block10_data_ref (_data10_), block10_data_unref);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (machine);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	block10_data_unref (_data10_);
#line 123 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_data10_ = NULL;
#line 1397 "actions-popover.c"
}


static void
boxes_actions_popover_force_shutdown_activated (BoxesActionsPopover* self)
{
	BoxesLibvirtMachine* machine = NULL;
	BoxesAppWindow* _tmp0_;
	BoxesCollectionItem* _tmp1_;
	BoxesCollectionItem* _tmp2_;
	BoxesLibvirtMachine* _tmp3_;
#line 141 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 142 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 142 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = boxes_app_window_get_current_item (_tmp0_);
#line 142 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = _tmp1_;
#line 142 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_LIBVIRT_MACHINE) ? ((BoxesLibvirtMachine*) _tmp2_) : NULL);
#line 142 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	machine = _tmp3_;
#line 144 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_libvirt_machine_force_shutdown (machine);
#line 141 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (machine);
#line 1425 "actions-popover.c"
}


static void
boxes_actions_popover_restart_activated (BoxesActionsPopover* self)
{
	BoxesAppWindow* _tmp0_;
	BoxesCollectionItem* _tmp1_;
	BoxesCollectionItem* _tmp2_;
#line 147 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 148 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 148 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = boxes_app_window_get_current_item (_tmp0_);
#line 148 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = _tmp1_;
#line 148 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_machine_restart (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp2_) : NULL);
#line 1445 "actions-popover.c"
}


static void
_g_object_unref0_ (gpointer var)
{
#line 151 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1454 "actions-popover.c"
}


static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
#line 151 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
#line 1463 "actions-popover.c"
}


static void
boxes_actions_popover_delete_activated (BoxesActionsPopover* self)
{
	BoxesAppWindow* _tmp0_;
	GList* items = NULL;
	BoxesAppWindow* _tmp1_;
	BoxesCollectionItem* _tmp2_;
	BoxesCollectionItem* _tmp3_;
	BoxesCollectionItem* _tmp4_;
	BoxesApp* _tmp5_;
	GList* _tmp6_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 152 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 152 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp0_, BOXES_UI_STATE_COLLECTION);
#line 154 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	items = NULL;
#line 155 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = self->priv->window;
#line 155 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = boxes_app_window_get_current_item (_tmp1_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp3_ = _tmp2_;
#line 155 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	items = g_list_append (items, _tmp4_);
#line 157 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp5_ = boxes_app_app;
#line 157 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp6_ = items;
#line 157 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	items = NULL;
#line 157 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_app_delete_machines_undoable (_tmp5_, _tmp6_, NULL, NULL, NULL, NULL);
#line 151 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	__g_list_free__g_object_unref0_0 (items);
#line 1506 "actions-popover.c"
}


static void
boxes_actions_popover_clone_activated (BoxesActionsPopover* self)
{
	BoxesAppWindow* _tmp0_;
	BoxesCollectionItem* _tmp1_;
	BoxesCollectionItem* _tmp2_;
#line 160 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 161 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 161 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp1_ = boxes_app_window_get_current_item (_tmp0_);
#line 161 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp2_ = _tmp1_;
#line 161 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_machine_clone (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp2_) : NULL, NULL, NULL);
#line 1526 "actions-popover.c"
}


static void
boxes_actions_popover_send_file_activated (BoxesActionsPopover* self)
{
	BoxesAppWindow* _tmp0_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 165 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 165 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_app_window_show_send_file (_tmp0_);
#line 1540 "actions-popover.c"
}


static void
boxes_actions_popover_properties_activated (BoxesActionsPopover* self)
{
	BoxesAppWindow* _tmp0_;
#line 169 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_return_if_fail (self != NULL);
#line 170 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_tmp0_ = self->priv->window;
#line 170 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_app_window_show_properties (_tmp0_);
#line 1554 "actions-popover.c"
}


static void
boxes_actions_popover_class_init (BoxesActionsPopoverClass * klass)
{
#line 3 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	boxes_actions_popover_parent_class = g_type_class_peek_parent (klass);
#line 3 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	g_type_class_add_private (klass, sizeof (BoxesActionsPopoverPrivate));
#line 3 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_actions_popover_finalize;
#line 1567 "actions-popover.c"
}


static void
boxes_actions_popover_instance_init (BoxesActionsPopover * self)
{
#line 3 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	self->priv = BOXES_ACTIONS_POPOVER_GET_PRIVATE (self);
#line 1576 "actions-popover.c"
}


static void
boxes_actions_popover_finalize (GObject * obj)
{
	BoxesActionsPopover * self;
#line 3 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_ACTIONS_POPOVER, BoxesActionsPopover);
#line 17 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (self->priv->window);
#line 18 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	_g_object_unref0 (self->priv->action_group);
#line 3 "/home/fborges/checkout/gnome-boxes/src/actions-popover.vala"
	G_OBJECT_CLASS (boxes_actions_popover_parent_class)->finalize (obj);
#line 1592 "actions-popover.c"
}


GType
boxes_actions_popover_get_type (void)
{
	static volatile gsize boxes_actions_popover_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_actions_popover_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesActionsPopoverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_actions_popover_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesActionsPopover), 0, (GInstanceInitFunc) boxes_actions_popover_instance_init, NULL };
		GType boxes_actions_popover_type_id;
		boxes_actions_popover_type_id = g_type_register_static (gtk_popover_get_type (), "BoxesActionsPopover", &g_define_type_info, 0);
		g_once_init_leave (&boxes_actions_popover_type_id__volatile, boxes_actions_popover_type_id);
	}
	return boxes_actions_popover_type_id__volatile;
}


static void
_vala_array_destroy (gpointer array,
                     gint array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void
_vala_array_free (gpointer array,
                  gint array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



