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


#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_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;
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 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_ICON_VIEW (boxes_icon_view_get_type ())
#define BOXES_ICON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ICON_VIEW, BoxesIconView))
#define BOXES_ICON_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_ICON_VIEW, BoxesIconViewClass))
#define BOXES_IS_ICON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ICON_VIEW))
#define BOXES_IS_ICON_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_ICON_VIEW))
#define BOXES_ICON_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_ICON_VIEW, BoxesIconViewClass))

typedef struct _BoxesIconView BoxesIconView;
typedef struct _BoxesIconViewClass BoxesIconViewClass;

#define BOXES_TYPE_LIST_VIEW (boxes_list_view_get_type ())
#define BOXES_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIST_VIEW, BoxesListView))
#define BOXES_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIST_VIEW, BoxesListViewClass))
#define BOXES_IS_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIST_VIEW))
#define BOXES_IS_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIST_VIEW))
#define BOXES_LIST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIST_VIEW, BoxesListViewClass))

typedef struct _BoxesListView BoxesListView;
typedef struct _BoxesListViewClass BoxesListViewClass;

#define BOXES_APP_WINDOW_TYPE_VIEW_TYPE (boxes_app_window_view_type_get_type ())

#define BOXES_TYPE_ICOLLECTION_VIEW (boxes_icollection_view_get_type ())
#define BOXES_ICOLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ICOLLECTION_VIEW, BoxesICollectionView))
#define BOXES_IS_ICOLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ICOLLECTION_VIEW))
#define BOXES_ICOLLECTION_VIEW_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_ICOLLECTION_VIEW, BoxesICollectionViewIface))

typedef struct _BoxesICollectionView BoxesICollectionView;
typedef struct _BoxesICollectionViewIface BoxesICollectionViewIface;

#define BOXES_TYPE_SELECTION_CRITERIA (boxes_selection_criteria_get_type ())

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

typedef struct _BoxesCollectionFilter BoxesCollectionFilter;
typedef struct _BoxesCollectionFilterClass BoxesCollectionFilterClass;

#define BOXES_TYPE_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;
enum  {
	BOXES_APP_WINDOW_0_PROPERTY,
	BOXES_APP_WINDOW_PREVIOUS_UI_STATE_PROPERTY,
	BOXES_APP_WINDOW_UI_STATE_PROPERTY,
	BOXES_APP_WINDOW_CURRENT_ITEM_PROPERTY,
	BOXES_APP_WINDOW_FULLSCREENED_PROPERTY,
	BOXES_APP_WINDOW_SELECTION_MODE_PROPERTY,
	BOXES_APP_WINDOW_NOTIFICATIONBAR_PROPERTY,
	BOXES_APP_WINDOW_VIEW_TYPE_PROPERTY,
	BOXES_APP_WINDOW_VIEW_PROPERTY,
	BOXES_APP_WINDOW_NUM_PROPERTIES
};
static GParamSpec* boxes_app_window_properties[BOXES_APP_WINDOW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))

#define BOXES_TYPE_KBD_SHORTCUTS_WINDOW (boxes_kbd_shortcuts_window_get_type ())
#define BOXES_KBD_SHORTCUTS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_KBD_SHORTCUTS_WINDOW, BoxesKbdShortcutsWindow))
#define BOXES_KBD_SHORTCUTS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_KBD_SHORTCUTS_WINDOW, BoxesKbdShortcutsWindowClass))
#define BOXES_IS_KBD_SHORTCUTS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_KBD_SHORTCUTS_WINDOW))
#define BOXES_IS_KBD_SHORTCUTS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_KBD_SHORTCUTS_WINDOW))
#define BOXES_KBD_SHORTCUTS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_KBD_SHORTCUTS_WINDOW, BoxesKbdShortcutsWindowClass))

typedef struct _BoxesKbdShortcutsWindow BoxesKbdShortcutsWindow;
typedef struct _BoxesKbdShortcutsWindowClass BoxesKbdShortcutsWindowClass;
typedef struct _BoxesNotificationbarPrivate BoxesNotificationbarPrivate;

#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_APP (boxes_app_get_type ())
#define BOXES_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP, BoxesApp))
#define BOXES_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP, BoxesAppClass))
#define BOXES_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP))
#define BOXES_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP))
#define BOXES_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP, BoxesAppClass))

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

#define BOXES_TYPE_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 _g_free0(var) (var = (g_free (var), NULL))
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#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;
#define __g_list_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_free0_ (var), NULL)))
#define __g_slist_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free__g_free0_ (var), NULL)))

#define BOXES_TYPE_NOTIFICATION (boxes_notification_get_type ())
#define BOXES_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATION, BoxesNotification))
#define BOXES_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATION, BoxesNotificationClass))
#define BOXES_IS_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATION))
#define BOXES_IS_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATION))
#define BOXES_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATION, BoxesNotificationClass))

typedef struct _BoxesNotification BoxesNotification;
typedef struct _BoxesNotificationClass BoxesNotificationClass;
typedef struct _Block9Data Block9Data;

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())
typedef struct _BoxesWizardWindowPrivate BoxesWizardWindowPrivate;

#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_WIZARD_TOOLBAR (boxes_wizard_toolbar_get_type ())
#define BOXES_WIZARD_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_TOOLBAR, BoxesWizardToolbar))
#define BOXES_WIZARD_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_TOOLBAR, BoxesWizardToolbarClass))
#define BOXES_IS_WIZARD_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_TOOLBAR))
#define BOXES_IS_WIZARD_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_TOOLBAR))
#define BOXES_WIZARD_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_TOOLBAR, BoxesWizardToolbarClass))

typedef struct _BoxesWizardToolbar BoxesWizardToolbar;
typedef struct _BoxesWizardToolbarClass BoxesWizardToolbarClass;
typedef struct _BoxesPropertiesWindowPrivate BoxesPropertiesWindowPrivate;

#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_TROUBLESHOOT_LOG (boxes_troubleshoot_log_get_type ())
#define BOXES_TROUBLESHOOT_LOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TROUBLESHOOT_LOG, BoxesTroubleshootLog))
#define BOXES_TROUBLESHOOT_LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TROUBLESHOOT_LOG, BoxesTroubleshootLogClass))
#define BOXES_IS_TROUBLESHOOT_LOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TROUBLESHOOT_LOG))
#define BOXES_IS_TROUBLESHOOT_LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TROUBLESHOOT_LOG))
#define BOXES_TROUBLESHOOT_LOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TROUBLESHOOT_LOG, BoxesTroubleshootLogClass))

typedef struct _BoxesTroubleshootLog BoxesTroubleshootLog;
typedef struct _BoxesTroubleshootLogClass BoxesTroubleshootLogClass;

#define BOXES_TYPE_PROPERTIES_TOOLBAR (boxes_properties_toolbar_get_type ())
#define BOXES_PROPERTIES_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES_TOOLBAR, BoxesPropertiesToolbar))
#define BOXES_PROPERTIES_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES_TOOLBAR, BoxesPropertiesToolbarClass))
#define BOXES_IS_PROPERTIES_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES_TOOLBAR))
#define BOXES_IS_PROPERTIES_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES_TOOLBAR))
#define BOXES_PROPERTIES_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES_TOOLBAR, BoxesPropertiesToolbarClass))

typedef struct _BoxesPropertiesToolbar BoxesPropertiesToolbar;
typedef struct _BoxesPropertiesToolbarClass BoxesPropertiesToolbarClass;
enum  {
	BOXES_APP_WINDOW_ITEM_SELECTED_SIGNAL,
	BOXES_APP_WINDOW_NUM_SIGNALS
};
static guint boxes_app_window_signals[BOXES_APP_WINDOW_NUM_SIGNALS] = {0};

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 _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 enum  {
	BOXES_APP_WINDOW_VIEW_TYPE_ICON = 1,
	BOXES_APP_WINDOW_VIEW_TYPE_LIST = 2
} BoxesAppWindowViewType;

typedef enum  {
	BOXES_SELECTION_CRITERIA_ALL,
	BOXES_SELECTION_CRITERIA_NONE,
	BOXES_SELECTION_CRITERIA_RUNNING
} BoxesSelectionCriteria;

struct _BoxesICollectionViewIface {
	GTypeInterface parent_iface;
	GList* (*get_selected_items) (BoxesICollectionView* self);
	void (*activate_first_item) (BoxesICollectionView* self);
	void (*select_by_criteria) (BoxesICollectionView* self, BoxesSelectionCriteria criteria);
	void (*select_all) (BoxesICollectionView* self);
	void (*unselect_all) (BoxesICollectionView* self);
	BoxesCollectionFilter* (*get_filter) (BoxesICollectionView* self);
	void (*set_filter) (BoxesICollectionView* self, BoxesCollectionFilter* value);
};

struct _BoxesAppWindowPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
	BoxesCollectionItem* _current_item;
	GBinding* status_bind;
	gulong got_error_id;
	gulong machine_state_notify_id;
	gulong machine_deleted_notify_id;
	gboolean _selection_mode;
	BoxesIconView* icon_view;
	BoxesListView* list_view;
	BoxesAppWindowViewType _view_type;
	BoxesICollectionView** views;
	gint views_length1;
	gint _views_size_;
	BoxesNotificationbar* _notificationbar;
	guint configure_id;
	GtkWindowGroup* group;
};

struct _BoxesNotificationbar {
	GtkGrid parent_instance;
	BoxesNotificationbarPrivate * priv;
	BoxesSearchbar* searchbar;
};

struct _BoxesNotificationbarClass {
	GtkGridClass parent_class;
};

struct _BoxesApp {
	GtkApplication parent_instance;
	BoxesAppPrivate * priv;
	BoxesCollection* collection;
	BoxesAsyncLauncher* async_launcher;
};

struct _BoxesAppClass {
	GtkApplicationClass parent_class;
};

struct _Block9Data {
	int _ref_count_;
	BoxesAppWindow* self;
	gchar* text;
};

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 _BoxesWizardWindow {
	GtkWindow parent_instance;
	BoxesWizardWindowPrivate * priv;
	GtkStack* view;
	BoxesWizard* wizard;
	GtkGrid* customization_grid;
	GtkFileChooserWidget* file_chooser;
	BoxesWizardToolbar* topbar;
	BoxesNotificationbar* notificationbar;
};

struct _BoxesWizardWindowClass {
	GtkWindowClass parent_class;
};

struct _BoxesPropertiesWindow {
	GtkWindow parent_instance;
	BoxesPropertiesWindowPrivate * priv;
	GtkStack* view;
	BoxesProperties* properties;
	BoxesTroubleshootLog* troubleshoot_log;
	GtkFileChooserWidget* file_chooser;
	BoxesPropertiesToolbar* topbar;
	BoxesNotificationbar* notificationbar;
};

struct _BoxesPropertiesWindowClass {
	GtkWindowClass parent_class;
};


static gpointer boxes_app_window_parent_class = NULL;
extern BoxesApp* boxes_app_app;
static BoxesUIIface * boxes_app_window_boxes_ui_parent_iface = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
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;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_icon_view_get_type (void) G_GNUC_CONST;
GType boxes_list_view_get_type (void) G_GNUC_CONST;
GType boxes_app_window_view_type_get_type (void) G_GNUC_CONST;
GType boxes_selection_criteria_get_type (void) G_GNUC_CONST;
GType boxes_collection_filter_get_type (void) G_GNUC_CONST;
GType boxes_icollection_view_get_type (void) G_GNUC_CONST;
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
#define BOXES_APP_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_APP_WINDOW, BoxesAppWindowPrivate))
#define BOXES_APP_WINDOW_TRANSITION_DURATION ((guint) 400)
#define BOXES_APP_WINDOW_configure_id_timeout ((guint) 100)
BoxesAppWindow* boxes_app_window_new (GtkApplication* app);
BoxesAppWindow* boxes_app_window_construct (GType object_type,
                                            GtkApplication* app);
static void boxes_app_window_ui_state_changed (BoxesAppWindow* self);
static void _boxes_app_window_ui_state_changed_g_object_notify (GObject* _sender,
                                                         GParamSpec* pspec,
                                                         gpointer self);
GtkCssProvider* boxes_load_css (const gchar* css);
static gint _variant_get1 (GVariant* value);
static gint _variant_get2 (GVariant* value);
static gint _variant_get3 (GVariant* value);
static gint _variant_get4 (GVariant* value);
static void __lambda260_ (BoxesAppWindow* self);
GType boxes_kbd_shortcuts_window_get_type (void) G_GNUC_CONST;
BoxesKbdShortcutsWindow* boxes_kbd_shortcuts_window_new (void);
BoxesKbdShortcutsWindow* boxes_kbd_shortcuts_window_construct (GType object_type);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
static void ___lambda260__g_simple_action_activate (GSimpleAction* _sender,
                                             GVariant* parameter,
                                             gpointer self);
void boxes_app_window_setup_ui (BoxesAppWindow* self);
void boxes_topbar_setup_ui (BoxesTopbar* self,
                            BoxesAppWindow* window);
void boxes_display_page_setup_ui (BoxesDisplayPage* self,
                                  BoxesAppWindow* window);
void boxes_icon_view_setup_ui (BoxesIconView* self,
                               BoxesAppWindow* window);
void boxes_list_view_setup_ui (BoxesListView* self,
                               BoxesAppWindow* window);
void boxes_selectionbar_setup_ui (BoxesSelectionbar* self,
                                  BoxesAppWindow* window);
void boxes_searchbar_setup_ui (BoxesSearchbar* self,
                               BoxesAppWindow* window);
void boxes_empty_boxes_setup_ui (BoxesEmptyBoxes* self,
                                 BoxesAppWindow* window);
void boxes_troubleshoot_view_setup_ui (BoxesTroubleshootView* self,
                                       BoxesAppWindow* window);
BoxesNotificationbar* boxes_app_window_get_notificationbar (BoxesAppWindow* self);
BoxesWizardWindow* boxes_wizard_window_new (BoxesAppWindow* app_window);
BoxesWizardWindow* boxes_wizard_window_construct (GType object_type,
                                                  BoxesAppWindow* app_window);
BoxesPropertiesWindow* boxes_properties_window_new (BoxesAppWindow* app_window);
BoxesPropertiesWindow* boxes_properties_window_construct (GType object_type,
                                                          BoxesAppWindow* app_window);
static void boxes_app_window_save_window_geometry (BoxesAppWindow* self);
static gboolean boxes_app_window_get_maximized (BoxesAppWindow* self);
static GVariant* _variant_new5 (gint* value,
                         gint value_length1);
static GVariant* _variant_new6 (gint* value,
                         gint value_length1);
void boxes_ui_set_state (BoxesUI* self,
                         BoxesUIState new_state);
GType boxes_machine_get_type (void) G_GNUC_CONST;
BoxesCollectionItem* boxes_app_window_get_current_item (BoxesAppWindow* self);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_collection_get_type (void) G_GNUC_CONST;
guint boxes_collection_get_length (BoxesCollection* self);
BoxesICollectionView* boxes_app_window_get_view (BoxesAppWindow* self);
void boxes_app_window_set_fullscreened (BoxesAppWindow* self,
                                        gboolean value);
void boxes_app_window_foreach_view (BoxesAppWindow* self,
                                    GFunc func,
                                    void* func_target);
static void ___lambda236_ (BoxesAppWindow* self,
                    BoxesICollectionView* view);
static void ____lambda236__gfunc (gconstpointer data,
                           gpointer self);
void boxes_topbar_set_status (BoxesTopbar* self,
                              const gchar* value);
GCancellable* boxes_machine_get_connecting_cancellable (BoxesMachine* self);
void boxes_machine_schedule_autosave (BoxesMachine* self);
void boxes_machine_unschedule_autosave (BoxesMachine* self);
const gchar* boxes_ui_state_to_string (BoxesUIState self);
BoxesAppWindow* boxes_machine_get_window (BoxesMachine* self);
void boxes_app_window_show_properties (BoxesAppWindow* self);
gboolean boxes_app_window_get_selection_mode (BoxesAppWindow* self);
void boxes_app_window_set_selection_mode (BoxesAppWindow* self,
                                          gboolean value);
GList* boxes_icollection_view_get_selected_items (BoxesICollectionView* self);
void boxes_app_window_set_current_item (BoxesAppWindow* self,
                                        BoxesCollectionItem* value);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
void boxes_app_window_show_send_file (BoxesAppWindow* self);
GType boxes_display_get_type (void) G_GNUC_CONST;
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
void boxes_display_transfer_files (BoxesDisplay* self,
                                   GList* uris);
static void _g_free0_ (gpointer var);
static inline void _g_list_free__g_free0_ (GList* self);
static inline void _g_slist_free__g_free0_ (GSList* self);
void boxes_app_window_connect_to (BoxesAppWindow* self,
                                  BoxesMachine* machine);
void boxes_machine_set_window (BoxesMachine* self,
                               BoxesAppWindow* value);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
static void __lambda56_ (BoxesAppWindow* self,
                  const gchar* message);
GType boxes_notification_get_type (void) G_GNUC_CONST;
BoxesNotification* boxes_notificationbar_display_error (BoxesNotificationbar* self,
                                                        const gchar* message,
                                                        gint timeout);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
static void ___lambda56__boxes_machine_got_error (BoxesMachine* _sender,
                                           const gchar* message,
                                           gpointer self);
void boxes_app_window_select_item (BoxesAppWindow* self,
                                   BoxesCollectionItem* item);
BoxesAppWindow* boxes_app_get_main_window (BoxesApp* self);
void boxes_app_window_filter (BoxesAppWindow* self,
                              const gchar* text);
static Block9Data* block9_data_ref (Block9Data* _data9_);
static void block9_data_unref (void * _userdata_);
static void __lambda13_ (Block9Data* _data9_,
                  BoxesICollectionView* view);
BoxesCollectionFilter* boxes_icollection_view_get_filter (BoxesICollectionView* self);
void boxes_collection_filter_set_text (BoxesCollectionFilter* self,
                                       const gchar* value);
static void ___lambda13__gfunc (gconstpointer data,
                         gpointer self);
gboolean boxes_app_window_on_key_pressed (BoxesAppWindow* self,
                                          GtkWidget* widget,
                                          GdkEventKey* event);
gboolean boxes_app_window_get_fullscreened (BoxesAppWindow* self);
gboolean boxes_app_quit_app (BoxesApp* self);
void boxes_topbar_click_new_button (BoxesTopbar* self);
void boxes_topbar_click_search_button (BoxesTopbar* self);
static void _________lambda261_ (BoxesAppWindow* self,
                          BoxesICollectionView* view);
void boxes_icollection_view_select_all (BoxesICollectionView* self);
static void __________lambda261__gfunc (gconstpointer data,
                                 gpointer self);
static void __________lambda262_ (BoxesAppWindow* self,
                           BoxesICollectionView* view);
void boxes_icollection_view_unselect_all (BoxesICollectionView* self);
static void ___________lambda262__gfunc (gconstpointer data,
                                  gpointer self);
void boxes_topbar_click_back_button (BoxesTopbar* self);
void boxes_topbar_click_cancel_button (BoxesTopbar* self);
static gboolean _boxes_app_window_on_key_pressed_gtk_widget_key_press_event (GtkWidget* _sender,
                                                                      GdkEventKey* event,
                                                                      gpointer self);
static gboolean boxes_app_window_on_configure_event (BoxesAppWindow* self);
static gboolean __lambda263_ (BoxesAppWindow* self);
static gboolean ___lambda263__gsource_func (gpointer self);
static gboolean _boxes_app_window_on_configure_event_gtk_widget_configure_event (GtkWidget* _sender,
                                                                          GdkEventConfigure* event,
                                                                          gpointer self);
static gboolean boxes_app_window_on_window_state_event (BoxesAppWindow* self,
                                                 GdkEventWindowState* event);
static gboolean _boxes_app_window_on_window_state_event_gtk_widget_window_state_event (GtkWidget* _sender,
                                                                                GdkEventWindowState* event,
                                                                                gpointer self);
static gboolean boxes_app_window_on_delete_event (BoxesAppWindow* self);
gboolean boxes_app_remove_window (BoxesApp* self,
                                  BoxesAppWindow* window);
static gboolean _boxes_app_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender,
                                                                    GdkEventAny* event,
                                                                    gpointer self);
static void boxes_app_window_on_machine_state_notify (BoxesAppWindow* self);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void boxes_app_window_on_machine_deleted_notify (BoxesAppWindow* self);
gboolean boxes_machine_get_deleted (BoxesMachine* self);
static void _boxes_app_window_on_machine_state_notify_g_object_notify (GObject* _sender,
                                                                GParamSpec* pspec,
                                                                gpointer self);
static void _boxes_app_window_on_machine_deleted_notify_g_object_notify (GObject* _sender,
                                                                  GParamSpec* pspec,
                                                                  gpointer self);
GType boxes_wizard_get_type (void) G_GNUC_CONST;
GType boxes_wizard_toolbar_get_type (void) G_GNUC_CONST;
GType boxes_properties_get_type (void) G_GNUC_CONST;
GType boxes_troubleshoot_log_get_type (void) G_GNUC_CONST;
GType boxes_properties_toolbar_get_type (void) G_GNUC_CONST;
BoxesAppWindowViewType boxes_app_window_get_view_type (BoxesAppWindow* self);
void boxes_app_window_set_view_type (BoxesAppWindow* self,
                                     BoxesAppWindowViewType value);
static void boxes_app_window_finalize (GObject * obj);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
static void _vala_boxes_app_window_get_property (GObject * object,
                                          guint property_id,
                                          GValue * value,
                                          GParamSpec * pspec);
void boxes_ui_set_previous_ui_state (BoxesUI* self,
                                     BoxesUIState value);
void boxes_ui_set_ui_state (BoxesUI* self,
                            BoxesUIState value);
static void _vala_boxes_app_window_set_property (GObject * object,
                                          guint property_id,
                                          const GValue * value,
                                          GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gint array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gint array_length,
                       GDestroyNotify destroy_func);


GType
boxes_app_window_view_type_get_type (void)
{
	static volatile gsize boxes_app_window_view_type_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_app_window_view_type_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_APP_WINDOW_VIEW_TYPE_ICON, "BOXES_APP_WINDOW_VIEW_TYPE_ICON", "icon"}, {BOXES_APP_WINDOW_VIEW_TYPE_LIST, "BOXES_APP_WINDOW_VIEW_TYPE_LIST", "list"}, {0, NULL, NULL}};
		GType boxes_app_window_view_type_type_id;
		boxes_app_window_view_type_type_id = g_enum_register_static ("BoxesAppWindowViewType", values);
		g_once_init_leave (&boxes_app_window_view_type_type_id__volatile, boxes_app_window_view_type_type_id);
	}
	return boxes_app_window_view_type_type_id__volatile;
}


static void
_boxes_app_window_ui_state_changed_g_object_notify (GObject* _sender,
                                                    GParamSpec* pspec,
                                                    gpointer self)
{
#line 138 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_ui_state_changed ((BoxesAppWindow*) self);
#line 717 "app-window.c"
}


static gint
_variant_get1 (GVariant* value)
{
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return g_variant_get_int32 (value);
#line 726 "app-window.c"
}


static gint
_variant_get2 (GVariant* value)
{
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return g_variant_get_int32 (value);
#line 735 "app-window.c"
}


static gint
_variant_get3 (GVariant* value)
{
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return g_variant_get_int32 (value);
#line 744 "app-window.c"
}


static gint
_variant_get4 (GVariant* value)
{
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return g_variant_get_int32 (value);
#line 753 "app-window.c"
}


static gpointer
_g_object_ref0 (gpointer self)
{
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return self ? g_object_ref (self) : NULL;
#line 762 "app-window.c"
}


static void
__lambda260_ (BoxesAppWindow* self)
{
	BoxesKbdShortcutsWindow* window = NULL;
	BoxesKbdShortcutsWindow* _tmp0_;
	BoxesUIState _tmp1_;
	BoxesUIState _tmp2_;
	BoxesKbdShortcutsWindow* _tmp13_;
#line 172 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_kbd_shortcuts_window_new ();
#line 172 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_ref_sink (_tmp0_);
#line 172 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	window = _tmp0_;
#line 173 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 173 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = _tmp1_;
#line 173 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp2_ == BOXES_UI_STATE_COLLECTION) {
#line 786 "app-window.c"
		BoxesKbdShortcutsWindow* _tmp3_;
#line 174 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = window;
#line 174 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_object_set ((GtkShortcutsWindow*) _tmp3_, "view-name", "overview", NULL);
#line 792 "app-window.c"
	} else {
		gboolean _tmp4_ = FALSE;
		BoxesUIState _tmp5_;
		BoxesUIState _tmp6_;
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp5_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp6_ = _tmp5_;
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		if (_tmp6_ == BOXES_UI_STATE_WIZARD) {
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp4_ = TRUE;
#line 805 "app-window.c"
		} else {
			BoxesUIState _tmp7_;
			BoxesUIState _tmp8_;
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp7_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp8_ = _tmp7_;
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp4_ = _tmp8_ == BOXES_UI_STATE_PROPERTIES;
#line 815 "app-window.c"
		}
#line 175 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		if (_tmp4_) {
#line 819 "app-window.c"
			BoxesKbdShortcutsWindow* _tmp9_;
#line 176 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp9_ = window;
#line 176 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			g_object_set ((GtkShortcutsWindow*) _tmp9_, "view-name", "wizard", NULL);
#line 825 "app-window.c"
		} else {
			BoxesUIState _tmp10_;
			BoxesUIState _tmp11_;
#line 177 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp10_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 177 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp11_ = _tmp10_;
#line 177 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			if (_tmp11_ == BOXES_UI_STATE_DISPLAY) {
#line 835 "app-window.c"
				BoxesKbdShortcutsWindow* _tmp12_;
#line 178 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp12_ = window;
#line 178 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				g_object_set ((GtkShortcutsWindow*) _tmp12_, "view-name", "display", NULL);
#line 841 "app-window.c"
			}
		}
	}
#line 180 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp13_ = window;
#line 180 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp13_);
#line 171 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (window);
#line 851 "app-window.c"
}


static void
___lambda260__g_simple_action_activate (GSimpleAction* _sender,
                                        GVariant* parameter,
                                        gpointer self)
{
#line 171 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	__lambda260_ ((BoxesAppWindow*) self);
#line 862 "app-window.c"
}


BoxesAppWindow*
boxes_app_window_construct (GType object_type,
                            GtkApplication* app)
{
	BoxesAppWindow * self = NULL;
	GSettings* _tmp0_;
	GtkSettings* _tmp1_;
	GtkCssProvider* provider = NULL;
	GtkCssProvider* _tmp2_;
	GdkScreen* _tmp3_;
	GtkCssProvider* _tmp4_;
	GVariant* size = NULL;
	GSettings* _tmp5_;
	GVariant* _tmp6_;
	GVariant* _tmp7_;
	GSettings* _tmp20_;
	GVariant* position = NULL;
	GSettings* _tmp21_;
	GVariant* _tmp22_;
	GVariant* _tmp23_;
	BoxesIconView* _tmp36_;
	BoxesICollectionView* _tmp37_;
	BoxesListView* _tmp38_;
	BoxesICollectionView* _tmp39_;
	BoxesICollectionView** _tmp40_;
	GSimpleAction* action = NULL;
	GSimpleAction* _tmp41_;
#line 130 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 131 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self = (BoxesAppWindow*) g_object_new (object_type, "application", app, "title", _ ("Boxes"), "show-menubar", FALSE, NULL);
#line 136 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = g_settings_new ("org.gnome.boxes");
#line 136 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->settings);
#line 136 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->settings = _tmp0_;
#line 138 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_signal_connect_object ((GObject*) self, "notify::ui-state", (GCallback) _boxes_app_window_ui_state_changed_g_object_notify, self, 0);
#line 140 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_window_set_default_icon_name ("gnome-boxes");
#line 141 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = gtk_settings_get_default ();
#line 141 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_set (_tmp1_, "gtk-application-prefer-dark-theme", TRUE, NULL);
#line 143 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = boxes_load_css ("gtk-style.css");
#line 143 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	provider = _tmp2_;
#line 144 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = gdk_screen_get_default ();
#line 144 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp4_ = provider;
#line 144 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_style_context_add_provider_for_screen (_tmp3_, (GtkStyleProvider*) _tmp4_, (guint) 600);
#line 149 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = self->settings;
#line 149 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = g_settings_get_value (_tmp5_, "window-size");
#line 149 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	size = _tmp6_;
#line 150 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_ = size;
#line 150 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (g_variant_n_children (_tmp7_) == ((gsize) 2)) {
#line 931 "app-window.c"
		gint width = 0;
		GVariant* _tmp8_;
		GVariant* _tmp9_;
		GVariant* _tmp10_;
		gint _tmp11_;
		gint _tmp12_;
		gint height = 0;
		GVariant* _tmp13_;
		GVariant* _tmp14_;
		GVariant* _tmp15_;
		gint _tmp16_;
		gint _tmp17_;
		gint _tmp18_;
		gint _tmp19_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp8_ = size;
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp9_ = g_variant_get_child_value (_tmp8_, (gsize) 0);
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp10_ = _tmp9_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp11_ = _variant_get1 (_tmp10_);
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp12_ = _tmp11_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_variant_unref0 (_tmp10_);
#line 151 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		width = _tmp12_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp13_ = size;
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp14_ = g_variant_get_child_value (_tmp13_, (gsize) 1);
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp15_ = _tmp14_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp16_ = _variant_get2 (_tmp15_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp17_ = _tmp16_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_variant_unref0 (_tmp15_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		height = _tmp17_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp18_ = width;
#line 154 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp19_ = height;
#line 154 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		gtk_window_set_default_size ((GtkWindow*) self, _tmp18_, _tmp19_);
#line 980 "app-window.c"
	}
#line 157 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp20_ = self->settings;
#line 157 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (g_settings_get_boolean (_tmp20_, "window-maximized")) {
#line 158 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		gtk_window_maximize ((GtkWindow*) self);
#line 988 "app-window.c"
	}
#line 160 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp21_ = self->settings;
#line 160 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp22_ = g_settings_get_value (_tmp21_, "window-position");
#line 160 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	position = _tmp22_;
#line 161 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp23_ = position;
#line 161 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (g_variant_n_children (_tmp23_) == ((gsize) 2)) {
#line 1000 "app-window.c"
		gint x = 0;
		GVariant* _tmp24_;
		GVariant* _tmp25_;
		GVariant* _tmp26_;
		gint _tmp27_;
		gint _tmp28_;
		gint y = 0;
		GVariant* _tmp29_;
		GVariant* _tmp30_;
		GVariant* _tmp31_;
		gint _tmp32_;
		gint _tmp33_;
		gint _tmp34_;
		gint _tmp35_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp24_ = position;
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp25_ = g_variant_get_child_value (_tmp24_, (gsize) 0);
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp26_ = _tmp25_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp27_ = _variant_get3 (_tmp26_);
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp28_ = _tmp27_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_variant_unref0 (_tmp26_);
#line 162 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		x = _tmp28_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp29_ = position;
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp30_ = g_variant_get_child_value (_tmp29_, (gsize) 1);
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp31_ = _tmp30_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp32_ = _variant_get4 (_tmp31_);
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp33_ = _tmp32_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_variant_unref0 (_tmp31_);
#line 163 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		y = _tmp33_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp34_ = x;
#line 165 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp35_ = y;
#line 165 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		gtk_window_move ((GtkWindow*) self, _tmp34_, _tmp35_);
#line 1049 "app-window.c"
	}
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp36_ = self->priv->icon_view;
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp37_ = _g_object_ref0 ((BoxesICollectionView*) _tmp36_);
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp38_ = self->priv->list_view;
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp39_ = _g_object_ref0 ((BoxesICollectionView*) _tmp38_);
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp40_ = g_new0 (BoxesICollectionView*, 2 + 1);
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp40_[0] = _tmp37_;
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp40_[1] = _tmp39_;
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->views = (_vala_array_free (self->priv->views, self->priv->views_length1, (GDestroyNotify) g_object_unref), NULL);
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->views = _tmp40_;
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->views_length1 = 2;
#line 168 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->_views_size_ = self->priv->views_length1;
#line 170 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp41_ = g_simple_action_new ("kbd-shortcuts", NULL);
#line 170 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	action = _tmp41_;
#line 171 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_signal_connect_object (action, "activate", (GCallback) ___lambda260__g_simple_action_activate, self, 0);
#line 182 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_action_map_add_action ((GActionMap*) self, (GAction*) action);
#line 130 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (action);
#line 130 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_variant_unref0 (position);
#line 130 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_variant_unref0 (size);
#line 130 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (provider);
#line 130 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return self;
#line 1091 "app-window.c"
}


BoxesAppWindow*
boxes_app_window_new (GtkApplication* app)
{
#line 130 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return boxes_app_window_construct (BOXES_TYPE_APP_WINDOW, app);
#line 1100 "app-window.c"
}


void
boxes_app_window_setup_ui (BoxesAppWindow* self)
{
	BoxesTopbar* _tmp0_;
	BoxesDisplayPage* _tmp1_;
	BoxesIconView* _tmp2_;
	BoxesListView* _tmp3_;
	BoxesSelectionbar* _tmp4_;
	BoxesSearchbar* _tmp5_;
	BoxesEmptyBoxes* _tmp6_;
	BoxesTroubleshootView* _tmp7_;
	BoxesNotificationbar* _tmp8_;
	BoxesNotificationbar* _tmp9_;
	BoxesSearchbar* _tmp10_;
	BoxesSearchbar* _tmp11_;
	GtkWindowGroup* _tmp12_;
	BoxesWizardWindow* _tmp13_;
	GtkWindowGroup* _tmp14_;
	BoxesWizardWindow* _tmp15_;
	BoxesPropertiesWindow* _tmp16_;
	GtkWindowGroup* _tmp17_;
	BoxesPropertiesWindow* _tmp18_;
#line 185 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 186 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->topbar;
#line 186 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_topbar_setup_ui (_tmp0_, self);
#line 187 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = self->display_page;
#line 187 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_display_page_setup_ui (_tmp1_, self);
#line 188 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = self->priv->icon_view;
#line 188 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_icon_view_setup_ui (_tmp2_, self);
#line 189 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = self->priv->list_view;
#line 189 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_list_view_setup_ui (_tmp3_, self);
#line 190 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp4_ = self->selectionbar;
#line 190 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_selectionbar_setup_ui (_tmp4_, self);
#line 191 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = self->searchbar;
#line 191 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_searchbar_setup_ui (_tmp5_, self);
#line 192 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = self->empty_boxes;
#line 192 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_empty_boxes_setup_ui (_tmp6_, self);
#line 193 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_ = self->troubleshoot_view;
#line 193 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_troubleshoot_view_setup_ui (_tmp7_, self);
#line 194 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8_ = boxes_app_window_get_notificationbar (self);
#line 194 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp9_ = _tmp8_;
#line 194 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp10_ = self->searchbar;
#line 194 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp11_ = _g_object_ref0 (_tmp10_);
#line 194 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (_tmp9_->searchbar);
#line 194 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp9_->searchbar = _tmp11_;
#line 196 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_ = gtk_window_group_new ();
#line 196 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->group);
#line 196 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->group = _tmp12_;
#line 197 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp13_ = boxes_wizard_window_new (self);
#line 197 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_ref_sink (_tmp13_);
#line 197 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->wizard_window);
#line 197 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->wizard_window = _tmp13_;
#line 198 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp14_ = self->priv->group;
#line 198 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp15_ = self->wizard_window;
#line 198 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_window_group_add_window (_tmp14_, (GtkWindow*) _tmp15_);
#line 199 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp16_ = boxes_properties_window_new (self);
#line 199 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_ref_sink (_tmp16_);
#line 199 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->props_window);
#line 199 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->props_window = _tmp16_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp17_ = self->priv->group;
#line 200 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp18_ = self->props_window;
#line 200 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_window_group_add_window (_tmp17_, (GtkWindow*) _tmp18_);
#line 202 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_signal_connect_object ((GObject*) self, "notify::view-type", (GCallback) _boxes_app_window_ui_state_changed_g_object_notify, self, 0);
#line 1208 "app-window.c"
}


static GVariant*
_variant_new5 (gint* value,
               gint value_length1)
{
	gint* _tmp9_;
	GVariantBuilder _tmp10_;
	int _tmp11_;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp9_ = value;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_variant_builder_init (&_tmp10_, G_VARIANT_TYPE ("ai"));
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	for (_tmp11_ = 0; _tmp11_ < value_length1; _tmp11_++) {
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_variant_builder_add_value (&_tmp10_, g_variant_new_int32 (*_tmp9_));
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp9_++;
#line 1229 "app-window.c"
	}
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return g_variant_ref_sink (g_variant_builder_end (&_tmp10_));
#line 1233 "app-window.c"
}


static GVariant*
_variant_new6 (gint* value,
               gint value_length1)
{
	gint* _tmp20_;
	GVariantBuilder _tmp21_;
	int _tmp22_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp20_ = value;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_variant_builder_init (&_tmp21_, G_VARIANT_TYPE ("ai"));
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	for (_tmp22_ = 0; _tmp22_ < value_length1; _tmp22_++) {
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_variant_builder_add_value (&_tmp21_, g_variant_new_int32 (*_tmp20_));
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp20_++;
#line 1254 "app-window.c"
	}
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return g_variant_ref_sink (g_variant_builder_end (&_tmp21_));
#line 1258 "app-window.c"
}


static void
boxes_app_window_save_window_geometry (BoxesAppWindow* self)
{
	gint width = 0;
	gint height = 0;
	gint x = 0;
	gint y = 0;
	gboolean _tmp0_;
	gboolean _tmp1_;
	gint _tmp2_ = 0;
	gint _tmp3_ = 0;
	GSettings* _tmp4_;
	gint _tmp5_;
	gint _tmp6_;
	gint* _tmp7_;
	gint* _tmp8_;
	gint _tmp8__length1;
	GVariant* _tmp12_;
	gint _tmp13_ = 0;
	gint _tmp14_ = 0;
	GSettings* _tmp15_;
	gint _tmp16_;
	gint _tmp17_;
	gint* _tmp18_;
	gint* _tmp19_;
	gint _tmp19__length1;
	GVariant* _tmp23_;
#line 205 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 208 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_app_window_get_maximized (self);
#line 208 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _tmp0_;
#line 208 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp1_) {
#line 209 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		return;
#line 1299 "app-window.c"
	}
#line 211 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_window_get_size ((GtkWindow*) self, &_tmp2_, &_tmp3_);
#line 211 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	width = _tmp2_;
#line 211 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	height = _tmp3_;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp4_ = self->settings;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = width;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = height;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_ = g_new0 (gint, 2);
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_[0] = _tmp5_;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_[1] = _tmp6_;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8_ = _tmp7_;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8__length1 = 2;
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_ = _variant_new5 (_tmp8_, 2);
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_settings_set_value (_tmp4_, "window-size", _tmp12_);
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_variant_unref0 (_tmp12_);
#line 212 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8_ = (g_free (_tmp8_), NULL);
#line 214 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_window_get_position ((GtkWindow*) self, &_tmp13_, &_tmp14_);
#line 214 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	x = _tmp13_;
#line 214 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	y = _tmp14_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp15_ = self->settings;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp16_ = x;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp17_ = y;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp18_ = g_new0 (gint, 2);
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp18_[0] = _tmp16_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp18_[1] = _tmp17_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp19_ = _tmp18_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp19__length1 = 2;
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp23_ = _variant_new6 (_tmp19_, 2);
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_settings_set_value (_tmp15_, "window-position", _tmp23_);
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_variant_unref0 (_tmp23_);
#line 215 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp19_ = (g_free (_tmp19_), NULL);
#line 1361 "app-window.c"
}


static void
___lambda236_ (BoxesAppWindow* self,
               BoxesICollectionView* view)
{
#line 242 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (view != NULL);
#line 242 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_set_visible ((GtkWidget*) view, TRUE);
#line 1373 "app-window.c"
}


static void
____lambda236__gfunc (gconstpointer data,
                      gpointer self)
{
#line 242 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	___lambda236_ ((BoxesAppWindow*) self, (BoxesICollectionView*) data);
#line 1383 "app-window.c"
}


static void
boxes_app_window_ui_state_changed (BoxesAppWindow* self)
{
	BoxesTopbar* _tmp0_;
	BoxesUI* _tmp1_;
	BoxesIconView* _tmp2_;
	BoxesUI* _tmp3_;
	BoxesListView* _tmp4_;
	BoxesUI* _tmp5_;
	BoxesPropertiesWindow* _tmp6_;
	BoxesUI* _tmp7_;
	BoxesWizardWindow* _tmp8_;
	BoxesUI* _tmp9_;
	BoxesEmptyBoxes* _tmp10_;
	BoxesUI* _tmp11_;
	BoxesUI** _tmp12_;
	BoxesUIState _tmp17_;
	BoxesUIState _tmp18_;
	BoxesMachine* _tmp20_ = NULL;
	BoxesCollectionItem* _tmp21_;
	BoxesCollectionItem* _tmp22_;
	BoxesMachine* machine = NULL;
	BoxesMachine* _tmp25_;
	BoxesUIState _tmp26_;
	BoxesUIState _tmp27_;
	gboolean _tmp63_ = FALSE;
	BoxesMachine* _tmp64_;
#line 218 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->topbar;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _g_object_ref0 ((BoxesUI*) _tmp0_);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = self->priv->icon_view;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = _g_object_ref0 ((BoxesUI*) _tmp2_);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp4_ = self->priv->list_view;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = _g_object_ref0 ((BoxesUI*) _tmp4_);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = self->props_window;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_ = _g_object_ref0 ((BoxesUI*) _tmp6_);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8_ = self->wizard_window;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp9_ = _g_object_ref0 ((BoxesUI*) _tmp8_);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp10_ = self->empty_boxes;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp11_ = _g_object_ref0 ((BoxesUI*) _tmp10_);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_ = g_new0 (BoxesUI*, 6 + 1);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_[0] = _tmp1_;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_[1] = _tmp3_;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_[2] = _tmp5_;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_[3] = _tmp7_;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_[4] = _tmp9_;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_[5] = _tmp11_;
#line 1454 "app-window.c"
	{
		BoxesUI** ui_collection = NULL;
		gint ui_collection_length1 = 0;
		gint _ui_collection_size_ = 0;
		gint ui_it = 0;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		ui_collection = _tmp12_;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		ui_collection_length1 = 6;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		for (ui_it = 0; ui_it < 6; ui_it = ui_it + 1) {
#line 1466 "app-window.c"
			BoxesUI* _tmp13_;
			BoxesUI* ui = NULL;
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp13_ = _g_object_ref0 (ui_collection[ui_it]);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			ui = _tmp13_;
#line 1473 "app-window.c"
			{
				BoxesUI* _tmp14_;
				BoxesUIState _tmp15_;
				BoxesUIState _tmp16_;
#line 227 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp14_ = ui;
#line 227 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp15_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 227 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp16_ = _tmp15_;
#line 227 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				boxes_ui_set_state (_tmp14_, _tmp16_);
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_g_object_unref0 (ui);
#line 1488 "app-window.c"
			}
		}
#line 221 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		ui_collection = (_vala_array_free (ui_collection, ui_collection_length1, (GDestroyNotify) g_object_unref), NULL);
#line 1493 "app-window.c"
	}
#line 230 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp17_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 230 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp18_ = _tmp17_;
#line 230 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp18_ != BOXES_UI_STATE_COLLECTION) {
#line 1501 "app-window.c"
		BoxesSearchbar* _tmp19_;
#line 231 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp19_ = self->searchbar;
#line 231 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_object_set ((GtkSearchBar*) _tmp19_, "search-mode-enabled", FALSE, NULL);
#line 1507 "app-window.c"
	}
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp21_ = boxes_app_window_get_current_item (self);
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp22_ = _tmp21_;
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, BOXES_TYPE_MACHINE)) {
#line 1515 "app-window.c"
		BoxesCollectionItem* _tmp23_;
		BoxesCollectionItem* _tmp24_;
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp23_ = boxes_app_window_get_current_item (self);
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp24_ = _tmp23_;
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp24_) : NULL;
#line 1524 "app-window.c"
	} else {
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp20_ = NULL;
#line 1528 "app-window.c"
	}
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp25_ = _g_object_ref0 (_tmp20_);
#line 233 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	machine = _tmp25_;
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp26_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp27_ = _tmp26_;
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	switch (_tmp27_) {
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_COLLECTION:
#line 1542 "app-window.c"
		{
			BoxesApp* _tmp28_;
			BoxesCollection* _tmp29_;
			guint _tmp30_;
			guint _tmp31_;
			GBinding* _tmp37_;
			BoxesTopbar* _tmp40_;
			AtkObject* a11y = NULL;
			AtkObject* _tmp41_;
			AtkObject* _tmp42_;
			AtkObject* _tmp43_;
			BoxesMachine* _tmp44_;
#line 237 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp28_ = boxes_app_app;
#line 237 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp29_ = _tmp28_->collection;
#line 237 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp30_ = boxes_collection_get_length (_tmp29_);
#line 237 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp31_ = _tmp30_;
#line 237 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			if (_tmp31_ != ((guint) 0)) {
#line 1565 "app-window.c"
				GtkStack* _tmp32_;
				BoxesICollectionView* _tmp33_;
				BoxesICollectionView* _tmp34_;
#line 238 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp32_ = self->below_bin;
#line 238 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp33_ = boxes_app_window_get_view (self);
#line 238 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp34_ = _tmp33_;
#line 238 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				gtk_stack_set_visible_child (_tmp32_, (GtkWidget*) _tmp34_);
#line 1577 "app-window.c"
			} else {
				GtkStack* _tmp35_;
				BoxesEmptyBoxes* _tmp36_;
#line 240 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp35_ = self->below_bin;
#line 240 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp36_ = self->empty_boxes;
#line 240 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				gtk_stack_set_visible_child (_tmp35_, (GtkWidget*) _tmp36_);
#line 1587 "app-window.c"
			}
#line 241 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			boxes_app_window_set_fullscreened (self, FALSE);
#line 242 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			boxes_app_window_foreach_view (self, ____lambda236__gfunc, self);
#line 244 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp37_ = self->priv->status_bind;
#line 244 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			if (_tmp37_ != NULL) {
#line 1597 "app-window.c"
				GBinding* _tmp38_;
				GBinding* _tmp39_;
#line 245 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp38_ = self->priv->status_bind;
#line 245 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp39_ = _g_object_ref0 (_tmp38_);
#line 245 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				g_binding_unbind (_tmp39_);
#line 246 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_g_object_unref0 (self->priv->status_bind);
#line 246 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				self->priv->status_bind = NULL;
#line 1610 "app-window.c"
			}
#line 248 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp40_ = self->topbar;
#line 248 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			boxes_topbar_set_status (_tmp40_, _ ("Boxes"));
#line 249 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp41_ = gtk_widget_get_accessible ((GtkWidget*) self);
#line 249 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp42_ = _g_object_ref0 (_tmp41_);
#line 249 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			a11y = _tmp42_;
#line 250 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp43_ = a11y;
#line 250 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			g_object_set (_tmp43_, "accessible-name", _ ("Boxes"), NULL);
#line 252 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp44_ = machine;
#line 252 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			if (_tmp44_ != NULL) {
#line 1630 "app-window.c"
				gulong _tmp45_;
				BoxesMachine* _tmp48_;
				GCancellable* _tmp49_;
				GCancellable* _tmp50_;
				BoxesMachine* _tmp51_;
#line 253 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp45_ = self->priv->got_error_id;
#line 253 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				if (_tmp45_ != ((gulong) 0)) {
#line 1640 "app-window.c"
					BoxesMachine* _tmp46_;
					gulong _tmp47_;
#line 254 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp46_ = machine;
#line 254 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp47_ = self->priv->got_error_id;
#line 254 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					g_signal_handler_disconnect ((GObject*) _tmp46_, _tmp47_);
#line 255 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					self->priv->got_error_id = (gulong) 0;
#line 1651 "app-window.c"
				}
#line 258 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp48_ = machine;
#line 258 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp49_ = boxes_machine_get_connecting_cancellable (_tmp48_);
#line 258 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp50_ = _tmp49_;
#line 258 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				g_cancellable_cancel (_tmp50_);
#line 259 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp51_ = machine;
#line 259 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				boxes_machine_schedule_autosave (_tmp51_);
#line 1665 "app-window.c"
			}
#line 262 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_g_object_unref0 (a11y);
#line 262 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			break;
#line 1671 "app-window.c"
		}
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_CREDS:
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_DISPLAY:
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_WIZARD:
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_PROPERTIES:
#line 1681 "app-window.c"
		{
			BoxesCollectionItem* _tmp52_;
			BoxesCollectionItem* _tmp53_;
#line 268 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp52_ = boxes_app_window_get_current_item (self);
#line 268 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp53_ = _tmp52_;
#line 268 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			if (_tmp53_ != NULL) {
#line 1691 "app-window.c"
				BoxesCollectionItem* _tmp54_;
				BoxesCollectionItem* _tmp55_;
#line 269 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp54_ = boxes_app_window_get_current_item (self);
#line 269 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp55_ = _tmp54_;
#line 269 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				boxes_machine_unschedule_autosave (G_TYPE_CHECK_INSTANCE_TYPE (_tmp55_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp55_) : NULL);
#line 1700 "app-window.c"
			}
#line 271 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			break;
#line 1704 "app-window.c"
		}
#line 235 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_TROUBLESHOOT:
#line 1708 "app-window.c"
		{
			GtkStack* _tmp56_;
			BoxesTroubleshootView* _tmp57_;
#line 274 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp56_ = self->below_bin;
#line 274 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp57_ = self->troubleshoot_view;
#line 274 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			gtk_stack_set_visible_child (_tmp56_, (GtkWidget*) _tmp57_);
#line 276 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			break;
#line 1720 "app-window.c"
		}
		default:
		{
			BoxesUIState _tmp58_;
			BoxesUIState _tmp59_;
			GEnumValue* _tmp60_;
			gchar* _tmp61_;
			gchar* _tmp62_;
#line 279 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp58_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 279 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp59_ = _tmp58_;
#line 279 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp60_ = g_enum_get_value (g_type_class_ref (BOXES_TYPE_UI_STATE), _tmp59_);
#line 279 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp61_ = g_strdup_printf ("Unhandled UI state %s", (_tmp60_ != NULL) ? _tmp60_->value_name : NULL);
#line 279 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp62_ = _tmp61_;
#line 279 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			g_warning ("app-window.vala:279: %s", _tmp62_);
#line 279 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_g_free0 (_tmp62_);
#line 280 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			break;
#line 1745 "app-window.c"
		}
	}
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp64_ = machine;
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp64_ != NULL) {
#line 1752 "app-window.c"
		BoxesMachine* _tmp65_;
		BoxesAppWindow* _tmp66_;
		BoxesAppWindow* _tmp67_;
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp65_ = machine;
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp66_ = boxes_machine_get_window (_tmp65_);
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp67_ = _tmp66_;
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp63_ = self == _tmp67_;
#line 1764 "app-window.c"
	} else {
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp63_ = FALSE;
#line 1768 "app-window.c"
	}
#line 283 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp63_) {
#line 1772 "app-window.c"
		BoxesCollectionItem* _tmp68_;
		BoxesCollectionItem* _tmp69_;
		BoxesUIState _tmp70_;
		BoxesUIState _tmp71_;
#line 284 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp68_ = boxes_app_window_get_current_item (self);
#line 284 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp69_ = _tmp68_;
#line 284 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp70_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 284 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp71_ = _tmp70_;
#line 284 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_ui_set_state ((BoxesUI*) _tmp69_, _tmp71_);
#line 1787 "app-window.c"
	}
#line 218 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (machine);
#line 1791 "app-window.c"
}


void
boxes_app_window_foreach_view (BoxesAppWindow* self,
                               GFunc func,
                               void* func_target)
{
	BoxesICollectionView** _tmp0_;
	gint _tmp0__length1;
#line 287 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->views;
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0__length1 = self->priv->views_length1;
#line 1808 "app-window.c"
	{
		BoxesICollectionView** view_collection = NULL;
		gint view_collection_length1 = 0;
		gint _view_collection_size_ = 0;
		gint view_it = 0;
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		view_collection = _tmp0_;
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		view_collection_length1 = _tmp0__length1;
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		for (view_it = 0; view_it < _tmp0__length1; view_it = view_it + 1) {
#line 1820 "app-window.c"
			BoxesICollectionView* _tmp1_;
			BoxesICollectionView* view = NULL;
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp1_ = _g_object_ref0 (view_collection[view_it]);
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			view = _tmp1_;
#line 1827 "app-window.c"
			{
				BoxesICollectionView* _tmp2_;
#line 289 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp2_ = view;
#line 289 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				func (_tmp2_, func_target);
#line 288 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_g_object_unref0 (view);
#line 1836 "app-window.c"
			}
		}
	}
}


static void
_g_object_unref0_ (gpointer var)
{
#line 292 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1848 "app-window.c"
}


static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
#line 292 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
#line 1857 "app-window.c"
}


void
boxes_app_window_show_properties (BoxesAppWindow* self)
{
	BoxesCollectionItem* _tmp0_;
	BoxesCollectionItem* _tmp1_;
	GList* selected_items = NULL;
	BoxesICollectionView* _tmp7_;
	BoxesICollectionView* _tmp8_;
	GList* _tmp9_;
	gboolean _tmp10_ = FALSE;
	BoxesUIState _tmp11_;
	BoxesUIState _tmp12_;
	GList* _tmp15_;
#line 292 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 293 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_app_window_get_current_item (self);
#line 293 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _tmp0_;
#line 293 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp1_ != NULL) {
#line 1882 "app-window.c"
		gboolean _tmp2_ = FALSE;
		BoxesUIState _tmp3_;
		BoxesUIState _tmp4_;
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp4_ = _tmp3_;
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		if (_tmp4_ == BOXES_UI_STATE_COLLECTION) {
#line 1892 "app-window.c"
			gboolean _tmp5_;
			gboolean _tmp6_;
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp5_ = boxes_app_window_get_selection_mode (self);
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp6_ = _tmp5_;
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp2_ = _tmp6_;
#line 1901 "app-window.c"
		} else {
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp2_ = FALSE;
#line 1905 "app-window.c"
		}
#line 294 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		if (_tmp2_) {
#line 295 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			boxes_app_window_set_selection_mode (self, FALSE);
#line 1911 "app-window.c"
		}
#line 296 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_ui_set_state ((BoxesUI*) self, BOXES_UI_STATE_PROPERTIES);
#line 298 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		return;
#line 1917 "app-window.c"
	}
#line 301 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_ = boxes_app_window_get_view (self);
#line 301 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8_ = _tmp7_;
#line 301 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp9_ = boxes_icollection_view_get_selected_items (_tmp8_);
#line 301 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	selected_items = _tmp9_;
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp11_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp12_ = _tmp11_;
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp12_ == BOXES_UI_STATE_COLLECTION) {
#line 1933 "app-window.c"
		gboolean _tmp13_;
		gboolean _tmp14_;
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp13_ = boxes_app_window_get_selection_mode (self);
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp14_ = _tmp13_;
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp10_ = _tmp14_;
#line 1942 "app-window.c"
	} else {
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp10_ = FALSE;
#line 1946 "app-window.c"
	}
#line 303 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp10_) {
#line 304 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_set_selection_mode (self, FALSE);
#line 1952 "app-window.c"
	}
#line 307 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp15_ = selected_items;
#line 1956 "app-window.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 307 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		item_collection = _tmp15_;
#line 307 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 1964 "app-window.c"
			BoxesCollectionItem* _tmp16_;
			BoxesCollectionItem* item = NULL;
#line 307 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp16_ = _g_object_ref0 ((BoxesCollectionItem*) item_it->data);
#line 307 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			item = _tmp16_;
#line 1971 "app-window.c"
			{
				BoxesCollectionItem* _tmp17_;
#line 308 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp17_ = item;
#line 308 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				boxes_app_window_set_current_item (self, _tmp17_);
#line 309 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				boxes_ui_set_state ((BoxesUI*) self, BOXES_UI_STATE_PROPERTIES);
#line 310 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_g_object_unref0 (item);
#line 310 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				break;
#line 1984 "app-window.c"
			}
		}
	}
#line 292 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	__g_list_free__g_object_unref0_0 (selected_items);
#line 1990 "app-window.c"
}


static void
_g_free0_ (gpointer var)
{
#line 323 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	var = (g_free (var), NULL);
#line 1999 "app-window.c"
}


static inline void
_g_list_free__g_free0_ (GList* self)
{
#line 323 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_list_free_full (self, (GDestroyNotify) _g_free0_);
#line 2008 "app-window.c"
}


static inline void
_g_slist_free__g_free0_ (GSList* self)
{
#line 323 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_slist_free_full (self, (GDestroyNotify) _g_free0_);
#line 2017 "app-window.c"
}


void
boxes_app_window_show_send_file (BoxesAppWindow* self)
{
	GtkFileChooserDialog* dialog = NULL;
	GtkFileChooserDialog* _tmp0_;
	GtkFileChooserDialog* _tmp1_;
	GtkFileChooserDialog* _tmp2_;
	GtkFileChooserDialog* _tmp14_;
#line 314 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 315 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new ("Select files to transfer", (GtkWindow*) self, GTK_FILE_CHOOSER_ACTION_OPEN, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Open"), GTK_RESPONSE_ACCEPT, NULL);
#line 315 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_ref_sink (_tmp0_);
#line 315 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	dialog = _tmp0_;
#line 321 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = dialog;
#line 321 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_file_chooser_set_select_multiple ((GtkFileChooser*) _tmp1_, TRUE);
#line 323 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = dialog;
#line 323 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (gtk_dialog_run ((GtkDialog*) _tmp2_) == ((gint) GTK_RESPONSE_ACCEPT)) {
#line 2045 "app-window.c"
		GSList* uris = NULL;
		GtkFileChooserDialog* _tmp3_;
		GSList* _tmp4_;
		GList* uris_param = NULL;
		GSList* _tmp5_;
		BoxesCollectionItem* _tmp9_;
		BoxesCollectionItem* _tmp10_;
		BoxesDisplay* _tmp11_;
		BoxesDisplay* _tmp12_;
		GList* _tmp13_;
#line 324 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = dialog;
#line 324 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp4_ = gtk_file_chooser_get_uris ((GtkFileChooser*) _tmp3_);
#line 324 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		uris = _tmp4_;
#line 326 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		uris_param = NULL;
#line 327 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp5_ = uris;
#line 2066 "app-window.c"
		{
			GSList* uri_collection = NULL;
			GSList* uri_it = NULL;
#line 327 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			uri_collection = _tmp5_;
#line 327 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) {
#line 2074 "app-window.c"
				gchar* _tmp6_;
				gchar* uri = NULL;
#line 327 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp6_ = g_strdup ((const gchar*) uri_it->data);
#line 327 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				uri = _tmp6_;
#line 2081 "app-window.c"
				{
					const gchar* _tmp7_;
					gchar* _tmp8_;
#line 328 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp7_ = uri;
#line 328 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp8_ = g_strdup (_tmp7_);
#line 328 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					uris_param = g_list_append (uris_param, _tmp8_);
#line 327 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_g_free0 (uri);
#line 2093 "app-window.c"
				}
			}
		}
#line 331 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp9_ = boxes_app_window_get_current_item (self);
#line 331 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp10_ = _tmp9_;
#line 331 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp11_ = boxes_machine_get_display (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp10_) : NULL);
#line 331 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp12_ = _tmp11_;
#line 331 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp13_ = uris_param;
#line 331 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_display_transfer_files (_tmp12_, _tmp13_);
#line 323 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		__g_list_free__g_free0_0 (uris_param);
#line 323 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		__g_slist_free__g_free0_0 (uris);
#line 2113 "app-window.c"
	}
#line 334 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp14_ = dialog;
#line 334 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp14_);
#line 314 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (dialog);
#line 2121 "app-window.c"
}


static void
__lambda56_ (BoxesAppWindow* self,
             const gchar* message)
{
	BoxesNotificationbar* _tmp0_;
	BoxesNotificationbar* _tmp1_;
	BoxesNotification* _tmp2_;
	BoxesNotification* _tmp3_;
#line 348 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (message != NULL);
#line 349 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_app_window_get_notificationbar (self);
#line 349 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _tmp0_;
#line 349 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = boxes_notificationbar_display_error (_tmp1_, message, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 349 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = _tmp2_;
#line 349 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (_tmp3_);
#line 2145 "app-window.c"
}


static void
___lambda56__boxes_machine_got_error (BoxesMachine* _sender,
                                      const gchar* message,
                                      gpointer self)
{
#line 348 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	__lambda56_ ((BoxesAppWindow*) self, message);
#line 2156 "app-window.c"
}


void
boxes_app_window_connect_to (BoxesAppWindow* self,
                             BoxesMachine* machine)
{
	AtkObject* a11y = NULL;
	AtkObject* _tmp0_;
	AtkObject* _tmp1_;
	AtkObject* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	BoxesTopbar* _tmp5_;
	GBinding* _tmp6_;
	GBinding* _tmp7_;
	gulong _tmp8_;
	BoxesUIState _tmp9_;
	BoxesUIState _tmp10_;
#line 337 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 337 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (machine != NULL);
#line 338 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_set_current_item (self, (BoxesCollectionItem*) machine);
#line 339 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_machine_set_window (machine, self);
#line 340 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_machine_unschedule_autosave (machine);
#line 342 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = gtk_widget_get_accessible ((GtkWidget*) self);
#line 342 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 342 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	a11y = _tmp1_;
#line 343 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = a11y;
#line 343 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = boxes_collection_item_get_name ((BoxesCollectionItem*) machine);
#line 343 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp4_ = _tmp3_;
#line 343 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_set (_tmp2_, "accessible-name", _tmp4_, NULL);
#line 346 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = self->topbar;
#line 346 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = g_object_bind_property_with_closures ((GObject*) machine, "status", (GObject*) _tmp5_, "status", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 346 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 346 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->status_bind);
#line 346 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->status_bind = _tmp7_;
#line 348 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8_ = g_signal_connect_object (machine, "got-error", (GCallback) ___lambda56__boxes_machine_got_error, self, 0);
#line 348 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->got_error_id = _tmp8_;
#line 352 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp9_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 352 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp10_ = _tmp9_;
#line 352 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp10_ != BOXES_UI_STATE_CREDS) {
#line 353 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_ui_set_state ((BoxesUI*) self, BOXES_UI_STATE_CREDS);
#line 2222 "app-window.c"
	}
#line 337 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (a11y);
#line 2226 "app-window.c"
}


void
boxes_app_window_select_item (BoxesAppWindow* self,
                              BoxesCollectionItem* item)
{
	gboolean _tmp0_ = FALSE;
	BoxesUIState _tmp1_;
	BoxesUIState _tmp2_;
	BoxesMachine* machine = NULL;
	BoxesMachine* _tmp5_;
	BoxesMachine* _tmp6_;
	BoxesAppWindow* _tmp7_;
	BoxesAppWindow* _tmp8_;
	BoxesApp* _tmp9_;
	BoxesAppWindow* _tmp10_;
	BoxesAppWindow* _tmp11_;
	BoxesCollectionItem* _tmp15_;
	BoxesCollectionItem* _tmp16_;
#line 356 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 356 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (item != NULL);
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = _tmp1_;
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp2_ != BOXES_UI_STATE_COLLECTION) {
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = TRUE;
#line 2259 "app-window.c"
	} else {
		gboolean _tmp3_;
		gboolean _tmp4_;
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = boxes_app_window_get_selection_mode (self);
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp4_ = _tmp3_;
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = _tmp4_;
#line 2269 "app-window.c"
	}
#line 357 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp0_) {
#line 358 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		return;
#line 2275 "app-window.c"
	}
#line 360 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (item, BOXES_TYPE_MACHINE));
#line 362 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (item, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) item) : NULL);
#line 362 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	machine = _tmp5_;
#line 364 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = machine;
#line 364 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp7_ = boxes_machine_get_window (_tmp6_);
#line 364 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp8_ = _tmp7_;
#line 364 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp9_ = boxes_app_app;
#line 364 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp10_ = boxes_app_get_main_window (_tmp9_);
#line 364 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp11_ = _tmp10_;
#line 364 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp8_ != _tmp11_) {
#line 2297 "app-window.c"
		BoxesMachine* _tmp12_;
		BoxesAppWindow* _tmp13_;
		BoxesAppWindow* _tmp14_;
#line 365 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp12_ = machine;
#line 365 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp13_ = boxes_machine_get_window (_tmp12_);
#line 365 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp14_ = _tmp13_;
#line 365 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		gtk_window_present ((GtkWindow*) _tmp14_);
#line 367 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_object_unref0 (machine);
#line 367 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		return;
#line 2313 "app-window.c"
	}
#line 370 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_set_current_item (self, item);
#line 372 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp15_ = boxes_app_window_get_current_item (self);
#line 372 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp16_ = _tmp15_;
#line 372 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, BOXES_TYPE_MACHINE)) {
#line 2323 "app-window.c"
		BoxesMachine* _tmp17_;
#line 373 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp17_ = machine;
#line 373 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_connect_to (self, _tmp17_);
#line 2329 "app-window.c"
	} else {
#line 375 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_warning ("app-window.vala:375: unknown item, fix your code");
#line 2333 "app-window.c"
	}
#line 377 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_signal_emit (self, boxes_app_window_signals[BOXES_APP_WINDOW_ITEM_SELECTED_SIGNAL], 0, item);
#line 356 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (machine);
#line 2339 "app-window.c"
}


static Block9Data*
block9_data_ref (Block9Data* _data9_)
{
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_atomic_int_inc (&_data9_->_ref_count_);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return _data9_;
#line 2350 "app-window.c"
}


static void
block9_data_unref (void * _userdata_)
{
	Block9Data* _data9_;
	_data9_ = (Block9Data*) _userdata_;
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
#line 2361 "app-window.c"
		BoxesAppWindow* self;
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self = _data9_->self;
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_free0 (_data9_->text);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_object_unref0 (self);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_slice_free (Block9Data, _data9_);
#line 2371 "app-window.c"
	}
}


static void
__lambda13_ (Block9Data* _data9_,
             BoxesICollectionView* view)
{
	BoxesAppWindow* self;
	BoxesCollectionFilter* _tmp0_;
	BoxesCollectionFilter* _tmp1_;
#line 381 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self = _data9_->self;
#line 381 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (view != NULL);
#line 381 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_icollection_view_get_filter (view);
#line 381 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _tmp0_;
#line 381 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_collection_filter_set_text (_tmp1_, _data9_->text);
#line 2393 "app-window.c"
}


static void
___lambda13__gfunc (gconstpointer data,
                    gpointer self)
{
#line 381 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	__lambda13_ (self, (BoxesICollectionView*) data);
#line 2403 "app-window.c"
}


void
boxes_app_window_filter (BoxesAppWindow* self,
                         const gchar* text)
{
	Block9Data* _data9_;
	gchar* _tmp0_;
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (text != NULL);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_data9_ = g_slice_new0 (Block9Data);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_data9_->_ref_count_ = 1;
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_data9_->self = g_object_ref (self);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = g_strdup (text);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_free0 (_data9_->text);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_data9_->text = _tmp0_;
#line 381 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_foreach_view (self, ___lambda13__gfunc, _data9_);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	block9_data_unref (_data9_);
#line 380 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_data9_ = NULL;
#line 2435 "app-window.c"
}


static void
_________lambda261_ (BoxesAppWindow* self,
                     BoxesICollectionView* view)
{
#line 420 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (view != NULL);
#line 420 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_icollection_view_select_all (view);
#line 2447 "app-window.c"
}


static void
__________lambda261__gfunc (gconstpointer data,
                            gpointer self)
{
#line 420 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_________lambda261_ ((BoxesAppWindow*) self, (BoxesICollectionView*) data);
#line 2457 "app-window.c"
}


static void
__________lambda262_ (BoxesAppWindow* self,
                      BoxesICollectionView* view)
{
#line 425 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (view != NULL);
#line 425 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_icollection_view_unselect_all (view);
#line 2469 "app-window.c"
}


static void
___________lambda262__gfunc (gconstpointer data,
                             gpointer self)
{
#line 425 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	__________lambda262_ ((BoxesAppWindow*) self, (BoxesICollectionView*) data);
#line 2479 "app-window.c"
}


gboolean
boxes_app_window_on_key_pressed (BoxesAppWindow* self,
                                 GtkWidget* widget,
                                 GdkEventKey* event)
{
	gboolean result = FALSE;
	GdkModifierType default_modifiers = 0;
	GtkTextDirection direction = 0;
	guint _tmp0_;
#line 385 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 385 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 385 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 386 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	default_modifiers = gtk_accelerator_get_default_mod_mask ();
#line 387 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	direction = gtk_widget_get_direction ((GtkWidget*) self);
#line 389 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = event->keyval;
#line 389 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp0_ == ((guint) GDK_KEY_F11)) {
#line 2506 "app-window.c"
		gboolean _tmp1_;
		gboolean _tmp2_;
#line 390 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp1_ = boxes_app_window_get_fullscreened (self);
#line 390 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp2_ = _tmp1_;
#line 390 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_set_fullscreened (self, !_tmp2_);
#line 392 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		result = TRUE;
#line 392 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		return result;
#line 2519 "app-window.c"
	} else {
		guint _tmp3_;
#line 393 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = event->keyval;
#line 393 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		if (_tmp3_ == ((guint) GDK_KEY_F1)) {
#line 2526 "app-window.c"
			BoxesApp* _tmp4_;
#line 394 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp4_ = boxes_app_app;
#line 394 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			g_action_group_activate_action ((GActionGroup*) _tmp4_, "help", NULL);
#line 396 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			result = TRUE;
#line 396 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			return result;
#line 2536 "app-window.c"
		} else {
			gboolean _tmp5_ = FALSE;
			guint _tmp6_;
#line 397 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp6_ = event->keyval;
#line 397 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			if (_tmp6_ == ((guint) GDK_KEY_k)) {
#line 2544 "app-window.c"
				GdkModifierType _tmp7_;
				GdkModifierType _tmp8_;
#line 398 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp7_ = event->state;
#line 398 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp8_ = default_modifiers;
#line 398 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp5_ = (_tmp7_ & _tmp8_) == GDK_CONTROL_MASK;
#line 2553 "app-window.c"
			} else {
#line 397 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp5_ = FALSE;
#line 2557 "app-window.c"
			}
#line 397 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			if (_tmp5_) {
#line 399 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				g_action_group_activate_action ((GActionGroup*) self, "kbd-shortcuts", NULL);
#line 401 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				result = TRUE;
#line 401 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				return result;
#line 2567 "app-window.c"
			} else {
				gboolean _tmp9_ = FALSE;
				guint _tmp10_;
#line 402 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				_tmp10_ = event->keyval;
#line 402 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				if (_tmp10_ == ((guint) GDK_KEY_q)) {
#line 2575 "app-window.c"
					GdkModifierType _tmp11_;
					GdkModifierType _tmp12_;
#line 403 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp11_ = event->state;
#line 403 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp12_ = default_modifiers;
#line 403 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp9_ = (_tmp11_ & _tmp12_) == GDK_CONTROL_MASK;
#line 2584 "app-window.c"
				} else {
#line 402 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp9_ = FALSE;
#line 2588 "app-window.c"
				}
#line 402 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
				if (_tmp9_) {
#line 2592 "app-window.c"
					BoxesApp* _tmp13_;
#line 404 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp13_ = boxes_app_app;
#line 404 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					boxes_app_quit_app (_tmp13_);
#line 406 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					result = TRUE;
#line 406 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					return result;
#line 2602 "app-window.c"
				} else {
					gboolean _tmp14_ = FALSE;
					guint _tmp15_;
#line 407 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					_tmp15_ = event->keyval;
#line 407 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					if (_tmp15_ == ((guint) GDK_KEY_n)) {
#line 2610 "app-window.c"
						GdkModifierType _tmp16_;
						GdkModifierType _tmp17_;
#line 408 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						_tmp16_ = event->state;
#line 408 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						_tmp17_ = default_modifiers;
#line 408 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						_tmp14_ = (_tmp16_ & _tmp17_) == GDK_CONTROL_MASK;
#line 2619 "app-window.c"
					} else {
#line 407 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						_tmp14_ = FALSE;
#line 2623 "app-window.c"
					}
#line 407 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
					if (_tmp14_) {
#line 2627 "app-window.c"
						BoxesTopbar* _tmp18_;
#line 409 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						_tmp18_ = self->topbar;
#line 409 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						boxes_topbar_click_new_button (_tmp18_);
#line 411 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						result = TRUE;
#line 411 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						return result;
#line 2637 "app-window.c"
					} else {
						gboolean _tmp19_ = FALSE;
						guint _tmp20_;
#line 412 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						_tmp20_ = event->keyval;
#line 412 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						if (_tmp20_ == ((guint) GDK_KEY_f)) {
#line 2645 "app-window.c"
							GdkModifierType _tmp21_;
							GdkModifierType _tmp22_;
#line 413 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							_tmp21_ = event->state;
#line 413 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							_tmp22_ = default_modifiers;
#line 413 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							_tmp19_ = (_tmp21_ & _tmp22_) == GDK_CONTROL_MASK;
#line 2654 "app-window.c"
						} else {
#line 412 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							_tmp19_ = FALSE;
#line 2658 "app-window.c"
						}
#line 412 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
						if (_tmp19_) {
#line 2662 "app-window.c"
							BoxesTopbar* _tmp23_;
#line 414 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							_tmp23_ = self->topbar;
#line 414 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							boxes_topbar_click_search_button (_tmp23_);
#line 416 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							result = TRUE;
#line 416 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							return result;
#line 2672 "app-window.c"
						} else {
							gboolean _tmp24_ = FALSE;
							guint _tmp25_;
#line 417 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							_tmp25_ = event->keyval;
#line 417 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							if (_tmp25_ == ((guint) GDK_KEY_a)) {
#line 2680 "app-window.c"
								GdkModifierType _tmp26_;
								GdkModifierType _tmp27_;
#line 418 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								_tmp26_ = event->state;
#line 418 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								_tmp27_ = default_modifiers;
#line 418 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								_tmp24_ = (_tmp26_ & _tmp27_) == GDK_CONTROL_MASK;
#line 2689 "app-window.c"
							} else {
#line 417 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								_tmp24_ = FALSE;
#line 2693 "app-window.c"
							}
#line 417 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
							if (_tmp24_) {
#line 419 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								boxes_app_window_set_selection_mode (self, TRUE);
#line 420 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								boxes_app_window_foreach_view (self, __________lambda261__gfunc, self);
#line 422 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								result = TRUE;
#line 422 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								return result;
#line 2705 "app-window.c"
							} else {
								gboolean _tmp28_ = FALSE;
								guint _tmp29_;
#line 423 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								_tmp29_ = event->keyval;
#line 423 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								if (_tmp29_ == ((guint) GDK_KEY_A)) {
#line 2713 "app-window.c"
									GdkModifierType _tmp30_;
									GdkModifierType _tmp31_;
#line 424 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									_tmp30_ = event->state;
#line 424 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									_tmp31_ = default_modifiers;
#line 424 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									_tmp28_ = ((_tmp30_ & _tmp31_) == GDK_CONTROL_MASK) | GDK_SHIFT_MASK;
#line 2722 "app-window.c"
								} else {
#line 423 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									_tmp28_ = FALSE;
#line 2726 "app-window.c"
								}
#line 423 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
								if (_tmp28_) {
#line 425 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									boxes_app_window_foreach_view (self, ___________lambda262__gfunc, self);
#line 427 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									result = TRUE;
#line 427 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									return result;
#line 2736 "app-window.c"
								} else {
									gboolean _tmp32_ = FALSE;
									gboolean _tmp33_ = FALSE;
									gboolean _tmp34_ = FALSE;
									GtkTextDirection _tmp35_;
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									_tmp35_ = direction;
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									if (_tmp35_ == GTK_TEXT_DIR_LTR) {
#line 2746 "app-window.c"
										guint _tmp36_;
#line 429 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp36_ = event->keyval;
#line 429 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp34_ = _tmp36_ == ((guint) GDK_KEY_Left);
#line 2752 "app-window.c"
									} else {
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp34_ = FALSE;
#line 2756 "app-window.c"
									}
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									if (_tmp34_) {
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp33_ = TRUE;
#line 2762 "app-window.c"
									} else {
										gboolean _tmp37_ = FALSE;
										GtkTextDirection _tmp38_;
#line 430 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp38_ = direction;
#line 430 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										if (_tmp38_ == GTK_TEXT_DIR_RTL) {
#line 2770 "app-window.c"
											guint _tmp39_;
#line 431 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
											_tmp39_ = event->keyval;
#line 431 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
											_tmp37_ = _tmp39_ == ((guint) GDK_KEY_Right);
#line 2776 "app-window.c"
										} else {
#line 430 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
											_tmp37_ = FALSE;
#line 2780 "app-window.c"
										}
#line 430 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp33_ = _tmp37_;
#line 2784 "app-window.c"
									}
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									if (_tmp33_) {
#line 2788 "app-window.c"
										GdkModifierType _tmp40_;
										GdkModifierType _tmp41_;
#line 432 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp40_ = event->state;
#line 432 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp41_ = default_modifiers;
#line 432 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp32_ = (_tmp40_ & _tmp41_) == GDK_MOD1_MASK;
#line 2797 "app-window.c"
									} else {
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp32_ = FALSE;
#line 2801 "app-window.c"
									}
#line 428 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
									if (_tmp32_) {
#line 2805 "app-window.c"
										BoxesTopbar* _tmp42_;
#line 433 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp42_ = self->topbar;
#line 433 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										boxes_topbar_click_back_button (_tmp42_);
#line 434 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										result = TRUE;
#line 434 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										return result;
#line 2815 "app-window.c"
									} else {
										guint _tmp43_;
#line 435 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										_tmp43_ = event->keyval;
#line 435 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
										if (_tmp43_ == ((guint) GDK_KEY_Escape)) {
#line 2822 "app-window.c"
											BoxesTopbar* _tmp44_;
#line 436 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
											_tmp44_ = self->topbar;
#line 436 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
											boxes_topbar_click_cancel_button (_tmp44_);
#line 2828 "app-window.c"
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
#line 439 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = FALSE;
#line 439 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 2843 "app-window.c"
}


static gboolean
_boxes_app_window_on_key_pressed_gtk_widget_key_press_event (GtkWidget* _sender,
                                                             GdkEventKey* event,
                                                             gpointer self)
{
	gboolean result;
	result = boxes_app_window_on_key_pressed ((BoxesAppWindow*) self, _sender, event);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 2856 "app-window.c"
}


static gboolean
__lambda263_ (BoxesAppWindow* self)
{
	gboolean result = FALSE;
#line 450 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->configure_id = (guint) 0;
#line 451 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_save_window_geometry (self);
#line 453 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = FALSE;
#line 453 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 2872 "app-window.c"
}


static gboolean
___lambda263__gsource_func (gpointer self)
{
	gboolean result;
	result = __lambda263_ ((BoxesAppWindow*) self);
#line 449 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 2883 "app-window.c"
}


static gboolean
boxes_app_window_on_configure_event (BoxesAppWindow* self)
{
	gboolean result = FALSE;
	gboolean _tmp0_;
	gboolean _tmp1_;
	guint _tmp2_;
#line 443 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 444 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_app_window_get_fullscreened (self);
#line 444 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _tmp0_;
#line 444 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp1_) {
#line 445 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		result = FALSE;
#line 445 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		return result;
#line 2906 "app-window.c"
	}
#line 447 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = self->priv->configure_id;
#line 447 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp2_ != ((guint) 0)) {
#line 2912 "app-window.c"
		guint _tmp3_;
#line 448 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = self->priv->configure_id;
#line 448 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_source_remove (_tmp3_);
#line 2918 "app-window.c"
	}
#line 449 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->configure_id = g_timeout_add_full (G_PRIORITY_DEFAULT, BOXES_APP_WINDOW_configure_id_timeout, ___lambda263__gsource_func, g_object_ref (self), g_object_unref);
#line 456 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = FALSE;
#line 456 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 2926 "app-window.c"
}


static gboolean
_boxes_app_window_on_configure_event_gtk_widget_configure_event (GtkWidget* _sender,
                                                                 GdkEventConfigure* event,
                                                                 gpointer self)
{
	gboolean result;
	result = boxes_app_window_on_configure_event ((BoxesAppWindow*) self);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 2939 "app-window.c"
}


static gboolean
boxes_app_window_on_window_state_event (BoxesAppWindow* self,
                                        GdkEventWindowState* event)
{
	gboolean result = FALSE;
	GdkWindowState _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	GSettings* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
#line 460 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 460 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 461 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = event->changed_mask;
#line 461 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if ((_tmp0_ & GDK_WINDOW_STATE_FULLSCREEN) == GDK_WINDOW_STATE_FULLSCREEN) {
#line 462 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_object_notify ((GObject*) self, "fullscreened");
#line 2964 "app-window.c"
	}
#line 464 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = boxes_app_window_get_fullscreened (self);
#line 464 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = _tmp1_;
#line 464 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp2_) {
#line 465 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		result = FALSE;
#line 465 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		return result;
#line 2976 "app-window.c"
	}
#line 467 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = self->settings;
#line 467 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp4_ = boxes_app_window_get_maximized (self);
#line 467 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = _tmp4_;
#line 467 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_settings_set_boolean (_tmp3_, "window-maximized", _tmp5_);
#line 469 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = FALSE;
#line 469 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 2990 "app-window.c"
}


static gboolean
_boxes_app_window_on_window_state_event_gtk_widget_window_state_event (GtkWidget* _sender,
                                                                       GdkEventWindowState* event,
                                                                       gpointer self)
{
	gboolean result;
	result = boxes_app_window_on_window_state_event ((BoxesAppWindow*) self, event);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3003 "app-window.c"
}


static gboolean
boxes_app_window_on_delete_event (BoxesAppWindow* self)
{
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	BoxesCollectionItem* _tmp1_;
	BoxesCollectionItem* _tmp2_;
	BoxesCollectionItem* _tmp5_;
	BoxesCollectionItem* _tmp6_;
	BoxesApp* _tmp16_;
#line 473 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = boxes_app_window_get_current_item (self);
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = _tmp1_;
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp2_ == NULL) {
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = TRUE;
#line 3027 "app-window.c"
	} else {
		BoxesCollectionItem* _tmp3_;
		BoxesCollectionItem* _tmp4_;
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = boxes_app_window_get_current_item (self);
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp4_ = _tmp3_;
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, BOXES_TYPE_MACHINE);
#line 3037 "app-window.c"
	}
#line 474 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (_tmp0_, FALSE);
#line 476 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = boxes_app_window_get_current_item (self);
#line 476 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = _tmp5_;
#line 476 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp6_ != NULL) {
#line 3047 "app-window.c"
		BoxesMachine* machine = NULL;
		BoxesCollectionItem* _tmp7_;
		BoxesCollectionItem* _tmp8_;
		BoxesMachine* _tmp9_;
		BoxesMachine* _tmp10_;
		BoxesMachine* _tmp11_;
		BoxesMachine* _tmp12_;
		gulong _tmp13_;
		BoxesMachine* _tmp14_;
		gulong _tmp15_;
#line 477 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp7_ = boxes_app_window_get_current_item (self);
#line 477 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp8_ = _tmp7_;
#line 477 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp8_) : NULL);
#line 477 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		machine = _tmp9_;
#line 479 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp10_ = machine;
#line 479 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_machine_set_window (_tmp10_, NULL);
#line 480 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp11_ = machine;
#line 480 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_machine_schedule_autosave (_tmp11_);
#line 482 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp12_ = machine;
#line 482 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp13_ = self->priv->machine_state_notify_id;
#line 482 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp12_, _tmp13_);
#line 483 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->machine_state_notify_id = (gulong) 0;
#line 484 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp14_ = machine;
#line 484 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp15_ = self->priv->machine_deleted_notify_id;
#line 484 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp14_, _tmp15_);
#line 485 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->machine_deleted_notify_id = (gulong) 0;
#line 476 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_object_unref0 (machine);
#line 3092 "app-window.c"
	}
#line 488 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp16_ = boxes_app_app;
#line 488 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = boxes_app_remove_window (_tmp16_, self);
#line 488 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3100 "app-window.c"
}


static gboolean
_boxes_app_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender,
                                                           GdkEventAny* event,
                                                           gpointer self)
{
	gboolean result;
	result = boxes_app_window_on_delete_event ((BoxesAppWindow*) self);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3113 "app-window.c"
}


static void
boxes_app_window_on_machine_state_notify (BoxesAppWindow* self)
{
	gboolean _tmp0_ = FALSE;
	BoxesApp* _tmp1_;
	BoxesAppWindow* _tmp2_;
	BoxesAppWindow* _tmp3_;
#line 491 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = boxes_app_app;
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = boxes_app_get_main_window (_tmp1_);
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = _tmp2_;
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (self != _tmp3_) {
#line 3134 "app-window.c"
		BoxesCollectionItem* _tmp4_;
		BoxesCollectionItem* _tmp5_;
		BoxesMachineMachineState _tmp6_;
		BoxesMachineMachineState _tmp7_;
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp4_ = boxes_app_window_get_current_item (self);
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp5_ = _tmp4_;
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp6_ = boxes_machine_get_state (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp5_) : NULL);
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp7_ = _tmp6_;
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = _tmp7_ != BOXES_MACHINE_MACHINE_STATE_RUNNING;
#line 3149 "app-window.c"
	} else {
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = FALSE;
#line 3153 "app-window.c"
	}
#line 492 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp0_) {
#line 493 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_on_delete_event (self);
#line 3159 "app-window.c"
	}
}


static void
boxes_app_window_on_machine_deleted_notify (BoxesAppWindow* self)
{
	gboolean _tmp0_ = FALSE;
	BoxesApp* _tmp1_;
	BoxesAppWindow* _tmp2_;
	BoxesAppWindow* _tmp3_;
#line 496 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = boxes_app_app;
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp2_ = boxes_app_get_main_window (_tmp1_);
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp3_ = _tmp2_;
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (self != _tmp3_) {
#line 3181 "app-window.c"
		BoxesCollectionItem* _tmp4_;
		BoxesCollectionItem* _tmp5_;
		gboolean _tmp6_;
		gboolean _tmp7_;
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp4_ = boxes_app_window_get_current_item (self);
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp5_ = _tmp4_;
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp6_ = boxes_machine_get_deleted (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp5_) : NULL);
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp7_ = _tmp6_;
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = _tmp7_;
#line 3196 "app-window.c"
	} else {
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp0_ = FALSE;
#line 3200 "app-window.c"
	}
#line 497 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp0_) {
#line 498 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_on_delete_event (self);
#line 3206 "app-window.c"
	}
}


static BoxesUIState
boxes_app_window_real_get_previous_ui_state (BoxesUI* base)
{
	BoxesUIState result;
	BoxesAppWindow* self;
	BoxesUIState _tmp0_;
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self = (BoxesAppWindow*) base;
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->_previous_ui_state;
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = _tmp0_;
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3225 "app-window.c"
}


static void
boxes_app_window_real_set_previous_ui_state (BoxesUI* base,
                                             BoxesUIState value)
{
	BoxesAppWindow* self;
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self = (BoxesAppWindow*) base;
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (boxes_app_window_real_get_previous_ui_state (base) != value) {
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->_previous_ui_state = value;
#line 14 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_app_window_properties[BOXES_APP_WINDOW_PREVIOUS_UI_STATE_PROPERTY]);
#line 3242 "app-window.c"
	}
}


static BoxesUIState
boxes_app_window_real_get_ui_state (BoxesUI* base)
{
	BoxesUIState result;
	BoxesAppWindow* self;
	BoxesUIState _tmp0_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self = (BoxesAppWindow*) base;
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->_ui_state;
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = _tmp0_;
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3261 "app-window.c"
}


static void
boxes_app_window_real_set_ui_state (BoxesUI* base,
                                    BoxesUIState value)
{
	BoxesAppWindow* self;
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self = (BoxesAppWindow*) base;
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (boxes_app_window_real_get_ui_state (base) != value) {
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->_ui_state = value;
#line 15 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_app_window_properties[BOXES_APP_WINDOW_UI_STATE_PROPERTY]);
#line 3278 "app-window.c"
	}
}


BoxesCollectionItem*
boxes_app_window_get_current_item (BoxesAppWindow* self)
{
	BoxesCollectionItem* result;
	BoxesCollectionItem* _tmp0_;
#line 20 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 21 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->_current_item;
#line 21 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = _tmp0_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3296 "app-window.c"
}


static void
_boxes_app_window_on_machine_state_notify_g_object_notify (GObject* _sender,
                                                           GParamSpec* pspec,
                                                           gpointer self)
{
#line 36 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_on_machine_state_notify ((BoxesAppWindow*) self);
#line 3307 "app-window.c"
}


static void
_boxes_app_window_on_machine_deleted_notify_g_object_notify (GObject* _sender,
                                                             GParamSpec* pspec,
                                                             gpointer self)
{
#line 37 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_on_machine_deleted_notify ((BoxesAppWindow*) self);
#line 3318 "app-window.c"
}


void
boxes_app_window_set_current_item (BoxesAppWindow* self,
                                   BoxesCollectionItem* value)
{
	BoxesCollectionItem* _tmp0_;
	BoxesCollectionItem* _tmp5_;
	BoxesCollectionItem* _tmp6_;
#line 24 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 25 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->_current_item;
#line 25 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp0_ != NULL) {
#line 3335 "app-window.c"
		BoxesCollectionItem* _tmp1_;
		gulong _tmp2_;
		BoxesCollectionItem* _tmp3_;
		gulong _tmp4_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp1_ = self->priv->_current_item;
#line 26 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp2_ = self->priv->machine_state_notify_id;
#line 26 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 27 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp3_ = self->priv->_current_item;
#line 27 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp4_ = self->priv->machine_deleted_notify_id;
#line 27 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp3_, _tmp4_);
#line 28 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->machine_state_notify_id = (gulong) 0;
#line 29 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->machine_deleted_notify_id = (gulong) 0;
#line 3356 "app-window.c"
	}
#line 32 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp5_ = _g_object_ref0 (value);
#line 32 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->_current_item);
#line 32 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->_current_item = _tmp5_;
#line 33 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp6_ = self->priv->_current_item;
#line 33 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (_tmp6_ != NULL) {
#line 3368 "app-window.c"
		BoxesMachine* machine = NULL;
		BoxesCollectionItem* _tmp7_;
		BoxesMachine* _tmp8_;
		BoxesMachine* _tmp9_;
		gulong _tmp10_;
		BoxesMachine* _tmp11_;
		gulong _tmp12_;
#line 34 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp7_ = self->priv->_current_item;
#line 34 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp7_) : NULL);
#line 34 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		machine = _tmp8_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp9_ = machine;
#line 36 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp10_ = g_signal_connect_object ((GObject*) _tmp9_, "notify::state", (GCallback) _boxes_app_window_on_machine_state_notify_g_object_notify, self, 0);
#line 36 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->machine_state_notify_id = _tmp10_;
#line 37 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp11_ = machine;
#line 37 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_tmp12_ = g_signal_connect_object ((GObject*) _tmp11_, "notify::deleted", (GCallback) _boxes_app_window_on_machine_deleted_notify_g_object_notify, self, 0);
#line 37 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->machine_deleted_notify_id = _tmp12_;
#line 33 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		_g_object_unref0 (machine);
#line 3396 "app-window.c"
	}
#line 24 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_notify_by_pspec ((GObject *) self, boxes_app_window_properties[BOXES_APP_WINDOW_CURRENT_ITEM_PROPERTY]);
#line 3400 "app-window.c"
}


gboolean
boxes_app_window_get_fullscreened (BoxesAppWindow* self)
{
	gboolean result;
	GdkWindow* _tmp0_;
#line 50 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 50 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = gtk_widget_get_window ((GtkWidget*) self);
#line 50 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = (gdk_window_get_state (_tmp0_) & GDK_WINDOW_STATE_FULLSCREEN) == GDK_WINDOW_STATE_FULLSCREEN;
#line 50 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3417 "app-window.c"
}


void
boxes_app_window_set_fullscreened (BoxesAppWindow* self,
                                   gboolean value)
{
#line 51 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 52 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (value) {
#line 53 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		gtk_window_fullscreen ((GtkWindow*) self);
#line 3431 "app-window.c"
	} else {
#line 55 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		gtk_window_unfullscreen ((GtkWindow*) self);
#line 3435 "app-window.c"
	}
}


static gboolean
boxes_app_window_get_maximized (BoxesAppWindow* self)
{
	gboolean result;
	GdkWindow* _tmp0_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 58 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = gtk_widget_get_window ((GtkWidget*) self);
#line 58 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = (gdk_window_get_state (_tmp0_) & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED;
#line 58 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3453 "app-window.c"
}


gboolean
boxes_app_window_get_selection_mode (BoxesAppWindow* self)
{
	gboolean result;
	gboolean _tmp0_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 61 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->_selection_mode;
#line 61 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = _tmp0_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3470 "app-window.c"
}


void
boxes_app_window_set_selection_mode (BoxesAppWindow* self,
                                     gboolean value)
{
	BoxesUIState _tmp0_;
	BoxesUIState _tmp1_;
#line 62 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 63 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 63 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _tmp0_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (_tmp1_ == BOXES_UI_STATE_COLLECTION);
#line 65 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->_selection_mode = value;
#line 62 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_notify_by_pspec ((GObject *) self, boxes_app_window_properties[BOXES_APP_WINDOW_SELECTION_MODE_PROPERTY]);
#line 3492 "app-window.c"
}


BoxesNotificationbar*
boxes_app_window_get_notificationbar (BoxesAppWindow* self)
{
	BoxesNotificationbar* result;
	BoxesUIState _tmp0_;
	BoxesUIState _tmp1_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 71 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 71 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp1_ = _tmp0_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	switch (_tmp1_) {
#line 71 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_WIZARD:
#line 3512 "app-window.c"
		{
			BoxesWizardWindow* _tmp2_;
			BoxesNotificationbar* _tmp3_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp2_ = self->wizard_window;
#line 73 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp3_ = _tmp2_->notificationbar;
#line 73 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			result = _tmp3_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			return result;
#line 3524 "app-window.c"
		}
#line 71 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_UI_STATE_PROPERTIES:
#line 3528 "app-window.c"
		{
			BoxesPropertiesWindow* _tmp4_;
			BoxesNotificationbar* _tmp5_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp4_ = self->props_window;
#line 75 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp5_ = _tmp4_->notificationbar;
#line 75 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			result = _tmp5_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			return result;
#line 3540 "app-window.c"
		}
		default:
		{
			BoxesNotificationbar* _tmp6_;
#line 77 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp6_ = self->priv->_notificationbar;
#line 77 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			result = _tmp6_;
#line 77 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			return result;
#line 3551 "app-window.c"
		}
	}
}


BoxesAppWindowViewType
boxes_app_window_get_view_type (BoxesAppWindow* self)
{
	BoxesAppWindowViewType result;
	BoxesAppWindowViewType _tmp0_;
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->_view_type;
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	result = _tmp0_;
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	return result;
#line 3570 "app-window.c"
}


void
boxes_app_window_set_view_type (BoxesAppWindow* self,
                                BoxesAppWindowViewType value)
{
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_if_fail (self != NULL);
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	if (boxes_app_window_get_view_type (self) != value) {
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		self->priv->_view_type = value;
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_app_window_properties[BOXES_APP_WINDOW_VIEW_TYPE_PROPERTY]);
#line 3586 "app-window.c"
	}
}


BoxesICollectionView*
boxes_app_window_get_view (BoxesAppWindow* self)
{
	BoxesICollectionView* result;
	BoxesAppWindowViewType _tmp0_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 108 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_tmp0_ = self->priv->_view_type;
#line 108 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	switch (_tmp0_) {
#line 3602 "app-window.c"
		default:
#line 108 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_VIEW_TYPE_ICON:
#line 3606 "app-window.c"
		{
			BoxesIconView* _tmp1_;
#line 111 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp1_ = self->priv->icon_view;
#line 111 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			result = (BoxesICollectionView*) _tmp1_;
#line 111 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			return result;
#line 3615 "app-window.c"
		}
#line 108 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_VIEW_TYPE_LIST:
#line 3619 "app-window.c"
		{
			BoxesListView* _tmp2_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			_tmp2_ = self->priv->list_view;
#line 113 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			result = (BoxesICollectionView*) _tmp2_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
			return result;
#line 3628 "app-window.c"
		}
	}
}


static void
boxes_app_window_class_init (BoxesAppWindowClass * klass)
{
	gint BoxesAppWindow_private_offset;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_parent_class = g_type_class_peek_parent (klass);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_class_add_private (klass, sizeof (BoxesAppWindowPrivate));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_app_window_get_property;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_app_window_set_property;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_app_window_finalize;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_PREVIOUS_UI_STATE_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_PREVIOUS_UI_STATE_PROPERTY] = g_param_spec_enum ("previous-ui-state", "previous-ui-state", "previous-ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_UI_STATE_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_UI_STATE_PROPERTY] = g_param_spec_enum ("ui-state", "ui-state", "ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_CURRENT_ITEM_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_CURRENT_ITEM_PROPERTY] = g_param_spec_object ("current-item", "current-item", "current-item", BOXES_TYPE_COLLECTION_ITEM, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_FULLSCREENED_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_FULLSCREENED_PROPERTY] = g_param_spec_boolean ("fullscreened", "fullscreened", "fullscreened", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_SELECTION_MODE_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_SELECTION_MODE_PROPERTY] = g_param_spec_boolean ("selection-mode", "selection-mode", "selection-mode", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_NOTIFICATIONBAR_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_NOTIFICATIONBAR_PROPERTY] = g_param_spec_object ("notificationbar", "notificationbar", "notificationbar", BOXES_TYPE_NOTIFICATIONBAR, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_VIEW_TYPE_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_VIEW_TYPE_PROPERTY] = g_param_spec_enum ("view-type", "view-type", "view-type", BOXES_APP_WINDOW_TYPE_VIEW_TYPE, BOXES_APP_WINDOW_VIEW_TYPE_ICON, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_APP_WINDOW_VIEW_PROPERTY, boxes_app_window_properties[BOXES_APP_WINDOW_VIEW_PROPERTY] = g_param_spec_object ("view", "view", "view", BOXES_TYPE_ICOLLECTION_VIEW, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	BoxesAppWindow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/app-window.ui");
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_signals[BOXES_APP_WINDOW_ITEM_SELECTED_SIGNAL] = g_signal_new ("item-selected", BOXES_TYPE_APP_WINDOW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, BOXES_TYPE_COLLECTION_ITEM);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "searchbar", FALSE, G_STRUCT_OFFSET (BoxesAppWindow, searchbar));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "topbar", FALSE, G_STRUCT_OFFSET (BoxesAppWindow, topbar));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "selectionbar", FALSE, G_STRUCT_OFFSET (BoxesAppWindow, selectionbar));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "display_page", FALSE, G_STRUCT_OFFSET (BoxesAppWindow, display_page));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "empty_boxes", FALSE, G_STRUCT_OFFSET (BoxesAppWindow, empty_boxes));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "troubleshoot_view", FALSE, G_STRUCT_OFFSET (BoxesAppWindow, troubleshoot_view));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "below_bin", FALSE, G_STRUCT_OFFSET (BoxesAppWindow, below_bin));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "icon_view", FALSE, BoxesAppWindow_private_offset + G_STRUCT_OFFSET (BoxesAppWindowPrivate, icon_view));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "list_view", FALSE, BoxesAppWindow_private_offset + G_STRUCT_OFFSET (BoxesAppWindowPrivate, list_view));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "_notificationbar", FALSE, BoxesAppWindow_private_offset + G_STRUCT_OFFSET (BoxesAppWindowPrivate, _notificationbar));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_key_pressed", G_CALLBACK(_boxes_app_window_on_key_pressed_gtk_widget_key_press_event));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_configure_event", G_CALLBACK(_boxes_app_window_on_configure_event_gtk_widget_configure_event));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_window_state_event", G_CALLBACK(_boxes_app_window_on_window_state_event_gtk_widget_window_state_event));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_delete_event", G_CALLBACK(_boxes_app_window_on_delete_event_gtk_widget_delete_event));
#line 3698 "app-window.c"
}


static void
boxes_app_window_boxes_ui_interface_init (BoxesUIIface * iface)
{
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	boxes_app_window_boxes_ui_parent_iface = g_type_interface_peek_parent (iface);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	iface->get_previous_ui_state = boxes_app_window_real_get_previous_ui_state;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	iface->set_previous_ui_state = boxes_app_window_real_set_previous_ui_state;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	iface->get_ui_state = boxes_app_window_real_get_ui_state;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	iface->set_ui_state = boxes_app_window_real_set_ui_state;
#line 3715 "app-window.c"
}


static void
boxes_app_window_instance_init (BoxesAppWindow * self)
{
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv = BOXES_APP_WINDOW_GET_PRIVATE (self);
#line 104 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->_view_type = BOXES_APP_WINDOW_VIEW_TYPE_ICON;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_SEARCHBAR);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_TOPBAR);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_SELECTIONBAR);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_DISPLAY_PAGE);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_EMPTY_BOXES);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_TROUBLESHOOT_VIEW);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_ICON_VIEW);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_LIST_VIEW);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	g_type_ensure (BOXES_TYPE_NOTIFICATIONBAR);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 3746 "app-window.c"
}


static void
boxes_app_window_finalize (GObject * obj)
{
	BoxesAppWindow * self;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_APP_WINDOW, BoxesAppWindow);
#line 18 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->_current_item);
#line 43 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->status_bind);
#line 82 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->wizard_window);
#line 83 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->props_window);
#line 86 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->searchbar);
#line 88 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->topbar);
#line 90 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->selectionbar);
#line 92 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->display_page);
#line 94 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->empty_boxes);
#line 96 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->troubleshoot_view);
#line 98 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->below_bin);
#line 100 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->icon_view);
#line 102 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->list_view);
#line 118 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	self->priv->views = (_vala_array_free (self->priv->views, self->priv->views_length1, (GDestroyNotify) g_object_unref), NULL);
#line 120 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->settings);
#line 123 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->_notificationbar);
#line 128 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	_g_object_unref0 (self->priv->group);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	G_OBJECT_CLASS (boxes_app_window_parent_class)->finalize (obj);
#line 3792 "app-window.c"
}


GType
boxes_app_window_get_type (void)
{
	static volatile gsize boxes_app_window_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_app_window_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesAppWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_app_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesAppWindow), 0, (GInstanceInitFunc) boxes_app_window_instance_init, NULL };
		static const GInterfaceInfo boxes_ui_info = { (GInterfaceInitFunc) boxes_app_window_boxes_ui_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_app_window_type_id;
		boxes_app_window_type_id = g_type_register_static (gtk_application_window_get_type (), "BoxesAppWindow", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_app_window_type_id, BOXES_TYPE_UI, &boxes_ui_info);
		g_once_init_leave (&boxes_app_window_type_id__volatile, boxes_app_window_type_id);
	}
	return boxes_app_window_type_id__volatile;
}


static void
_vala_boxes_app_window_get_property (GObject * object,
                                     guint property_id,
                                     GValue * value,
                                     GParamSpec * pspec)
{
	BoxesAppWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_APP_WINDOW, BoxesAppWindow);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	switch (property_id) {
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_PREVIOUS_UI_STATE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state ((BoxesUI*) self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_UI_STATE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state ((BoxesUI*) self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_CURRENT_ITEM_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_object (value, boxes_app_window_get_current_item (self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_FULLSCREENED_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_boolean (value, boxes_app_window_get_fullscreened (self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_SELECTION_MODE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_boolean (value, boxes_app_window_get_selection_mode (self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_NOTIFICATIONBAR_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_object (value, boxes_app_window_get_notificationbar (self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_VIEW_TYPE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_enum (value, boxes_app_window_get_view_type (self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_VIEW_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		g_value_set_object (value, boxes_app_window_get_view (self));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 3870 "app-window.c"
		default:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 3876 "app-window.c"
	}
}


static void
_vala_boxes_app_window_set_property (GObject * object,
                                     guint property_id,
                                     const GValue * value,
                                     GParamSpec * pspec)
{
	BoxesAppWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_APP_WINDOW, BoxesAppWindow);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
	switch (property_id) {
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_PREVIOUS_UI_STATE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_ui_set_previous_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_UI_STATE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_ui_set_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_CURRENT_ITEM_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_set_current_item (self, g_value_get_object (value));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_FULLSCREENED_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_set_fullscreened (self, g_value_get_boolean (value));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_SELECTION_MODE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_set_selection_mode (self, g_value_get_boolean (value));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		case BOXES_APP_WINDOW_VIEW_TYPE_PROPERTY:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		boxes_app_window_set_view_type (self, g_value_get_enum (value));
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 3927 "app-window.c"
		default:
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 6 "/home/fborges/checkout/gnome-boxes/src/app-window.vala"
		break;
#line 3933 "app-window.c"
	}
}


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



