/* display-toolbar.c generated by valac 0.39.5, the Vala compiler
 * generated from display-toolbar.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 <float.h>
#include <math.h>
#include <gdk/gdk.h>
#include <cairo.h>
#include <gio/gio.h>
#include <atk/atk.h>
#include <glib/gi18n-lib.h>


#define BOXES_TYPE_DISPLAY_TOOLBAR (boxes_display_toolbar_get_type ())
#define BOXES_DISPLAY_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbar))
#define BOXES_DISPLAY_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbarClass))
#define BOXES_IS_DISPLAY_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_TOOLBAR))
#define BOXES_IS_DISPLAY_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_TOOLBAR))
#define BOXES_DISPLAY_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbarClass))

typedef struct _BoxesDisplayToolbar BoxesDisplayToolbar;
typedef struct _BoxesDisplayToolbarClass BoxesDisplayToolbarClass;
typedef struct _BoxesDisplayToolbarPrivate BoxesDisplayToolbarPrivate;

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

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;
enum  {
	BOXES_DISPLAY_TOOLBAR_0_PROPERTY,
	BOXES_DISPLAY_TOOLBAR_OVERLAY_PROPERTY,
	BOXES_DISPLAY_TOOLBAR_HANDLE_DRAG_PROPERTY,
	BOXES_DISPLAY_TOOLBAR_PROGRESS_PROPERTY,
	BOXES_DISPLAY_TOOLBAR_NUM_PROPERTIES
};
static GParamSpec* boxes_display_toolbar_properties[BOXES_DISPLAY_TOOLBAR_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block22Data Block22Data;

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

typedef struct _BoxesActionsPopover BoxesActionsPopover;
typedef struct _BoxesActionsPopoverClass BoxesActionsPopoverClass;

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

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;

#define BOXES_TYPE_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_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_KEYS_INPUT_POPOVER (boxes_keys_input_popover_get_type ())
#define BOXES_KEYS_INPUT_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_KEYS_INPUT_POPOVER, BoxesKeysInputPopover))
#define BOXES_KEYS_INPUT_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_KEYS_INPUT_POPOVER, BoxesKeysInputPopoverClass))
#define BOXES_IS_KEYS_INPUT_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_KEYS_INPUT_POPOVER))
#define BOXES_IS_KEYS_INPUT_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_KEYS_INPUT_POPOVER))
#define BOXES_KEYS_INPUT_POPOVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_KEYS_INPUT_POPOVER, BoxesKeysInputPopoverClass))

typedef struct _BoxesKeysInputPopover BoxesKeysInputPopover;
typedef struct _BoxesKeysInputPopoverClass BoxesKeysInputPopoverClass;

#define BOXES_TYPE_TRANSFER_POPOVER (boxes_transfer_popover_get_type ())
#define BOXES_TRANSFER_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TRANSFER_POPOVER, BoxesTransferPopover))
#define BOXES_TRANSFER_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TRANSFER_POPOVER, BoxesTransferPopoverClass))
#define BOXES_IS_TRANSFER_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TRANSFER_POPOVER))
#define BOXES_IS_TRANSFER_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TRANSFER_POPOVER))
#define BOXES_TRANSFER_POPOVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TRANSFER_POPOVER, BoxesTransferPopoverClass))

typedef struct _BoxesTransferPopover BoxesTransferPopover;
typedef struct _BoxesTransferPopoverClass BoxesTransferPopoverClass;
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;
typedef struct _BoxesDisplayPagePrivate BoxesDisplayPagePrivate;
#define __vala_GdkEvent_free0(var) ((var == NULL) ? NULL : (var = (_vala_GdkEvent_free (var), NULL)))
#define __vala_GdkEventMotion_free0(var) ((var == NULL) ? NULL : (var = (_vala_GdkEventMotion_free (var), NULL)))
typedef struct _Block23Data Block23Data;
typedef struct _Block24Data Block24Data;

struct _BoxesDisplayToolbar {
	GtkHeaderBar parent_instance;
	BoxesDisplayToolbarPrivate * priv;
	GtkButton* transfers_button;
};

struct _BoxesDisplayToolbarClass {
	GtkHeaderBarClass parent_class;
};

struct _BoxesDisplayToolbarPrivate {
	gboolean _overlay;
	gboolean _handle_drag;
	GtkImage* fullscreen_image;
	GtkDrawingArea* transfers_drawing_area;
	GtkButton* back;
	GtkButton* fullscreen;
	GtkMenuButton* menu_button;
	GtkMenuButton* keys_menu_button;
	BoxesAppWindow* window;
	gdouble _progress;
	gboolean button_down;
	gint button_down_x;
	gint button_down_y;
	guint button_down_button;
};

struct _Block22Data {
	int _ref_count_;
	BoxesDisplayToolbar* self;
	BoxesAppWindow* window;
};

typedef enum  {
	BOXES_UI_STATE_NONE,
	BOXES_UI_STATE_COLLECTION,
	BOXES_UI_STATE_CREDS,
	BOXES_UI_STATE_DISPLAY,
	BOXES_UI_STATE_WIZARD,
	BOXES_UI_STATE_PROPERTIES,
	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;
};

struct _BoxesDisplayPage {
	GtkBox parent_instance;
	BoxesDisplayPagePrivate * priv;
	BoxesDisplayToolbar* toolbar;
	GtkLabel* size_label;
	GtkBox* transfer_message_box;
	BoxesTransferPopover* transfer_popover;
};

struct _BoxesDisplayPageClass {
	GtkBoxClass parent_class;
};

struct _Block23Data {
	int _ref_count_;
	BoxesDisplayToolbar* self;
	GdkEventMotion* event;
};

struct _Block24Data {
	int _ref_count_;
	Block23Data * _data23_;
	GtkWindow* window;
	gint old_width;
	gulong id;
};


static gpointer boxes_display_toolbar_parent_class = NULL;
extern BoxesApp* boxes_app_app;

GType boxes_display_toolbar_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
#define BOXES_DISPLAY_TOOLBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbarPrivate))
BoxesDisplayToolbar* boxes_display_toolbar_new (gboolean overlay,
                                                gboolean handle_drag);
BoxesDisplayToolbar* boxes_display_toolbar_construct (GType object_type,
                                                      gboolean overlay,
                                                      gboolean handle_drag);
void boxes_display_toolbar_setup_ui (BoxesDisplayToolbar* self,
                                     BoxesAppWindow* window);
static Block22Data* block22_data_ref (Block22Data* _data22_);
static void block22_data_unref (void * _userdata_);
BoxesActionsPopover* boxes_actions_popover_new (BoxesAppWindow* window);
BoxesActionsPopover* boxes_actions_popover_construct (GType object_type,
                                                      BoxesAppWindow* window);
GType boxes_actions_popover_get_type (void) G_GNUC_CONST;
GType boxes_app_get_type (void) G_GNUC_CONST;
static void __lambda15_ (Block22Data* _data22_);
BoxesAppWindow* boxes_app_get_main_window (BoxesApp* self);
static void ___lambda15__g_object_notify (GObject* _sender,
                                   GParamSpec* pspec,
                                   gpointer self);
static void __lambda16_ (Block22Data* _data22_);
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
void boxes_actions_popover_update_for_item (BoxesActionsPopover* self,
                                            BoxesCollectionItem* item);
BoxesCollectionItem* boxes_app_window_get_current_item (BoxesAppWindow* self);
static void ___lambda16__g_object_notify (GObject* _sender,
                                   GParamSpec* pspec,
                                   gpointer self);
BoxesKeysInputPopover* boxes_keys_input_popover_new (BoxesAppWindow* window);
BoxesKeysInputPopover* boxes_keys_input_popover_construct (GType object_type,
                                                           BoxesAppWindow* window);
GType boxes_keys_input_popover_get_type (void) G_GNUC_CONST;
static gboolean boxes_display_toolbar_on_draw (BoxesDisplayToolbar* self,
                                        GtkWidget* da,
                                        cairo_t* ctx);
static gboolean _boxes_display_toolbar_on_draw_gtk_widget_draw (GtkWidget* _sender,
                                                         cairo_t* cr,
                                                         gpointer self);
static void __lambda199_ (Block22Data* _data22_);
GType boxes_transfer_popover_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;
static void ___lambda199__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static gboolean boxes_display_toolbar_real_button_press_event (GtkWidget* base,
                                                        GdkEventButton* event);
gboolean boxes_display_toolbar_get_handle_drag (BoxesDisplayToolbar* self);
static GdkEvent* _vala_GdkEvent_copy (GdkEvent* self);
static void _vala_GdkEvent_free (GdkEvent* self);
static gboolean boxes_display_toolbar_real_button_release_event (GtkWidget* base,
                                                          GdkEventButton* event);
static gboolean boxes_display_toolbar_real_motion_notify_event (GtkWidget* base,
                                                         GdkEventMotion* event);
static GdkEventMotion* _vala_GdkEventMotion_copy (GdkEventMotion* self);
static void _vala_GdkEventMotion_free (GdkEventMotion* self);
static Block23Data* block23_data_ref (Block23Data* _data23_);
static void block23_data_unref (void * _userdata_);
static Block24Data* block24_data_ref (Block24Data* _data24_);
static void block24_data_unref (void * _userdata_);
void boxes_app_window_set_fullscreened (BoxesAppWindow* self,
                                        gboolean value);
static void ____lambda200_ (Block24Data* _data24_);
static void _____lambda200__g_object_notify (GObject* _sender,
                                      GParamSpec* pspec,
                                      gpointer self);
static void boxes_display_toolbar_on_back_clicked (BoxesDisplayToolbar* self);
void boxes_ui_set_state (BoxesUI* self,
                         BoxesUIState new_state);
static void _boxes_display_toolbar_on_back_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                gpointer self);
static void boxes_display_toolbar_on_fullscreen_clicked (BoxesDisplayToolbar* self);
gboolean boxes_app_window_get_fullscreened (BoxesAppWindow* self);
static void _boxes_display_toolbar_on_fullscreen_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                      gpointer self);
gboolean boxes_display_toolbar_get_overlay (BoxesDisplayToolbar* self);
static void boxes_display_toolbar_set_overlay (BoxesDisplayToolbar* self,
                                        gboolean value);
static void boxes_display_toolbar_set_handle_drag (BoxesDisplayToolbar* self,
                                            gboolean value);
gdouble boxes_display_toolbar_get_progress (BoxesDisplayToolbar* self);
void boxes_display_toolbar_set_progress (BoxesDisplayToolbar* self,
                                         gdouble value);
static GObject * boxes_display_toolbar_constructor (GType type,
                                             guint n_construct_properties,
                                             GObjectConstructParam * construct_properties);
static void _boxes_display_toolbar___lambda201_ (BoxesDisplayToolbar* self);
static void __boxes_display_toolbar___lambda201__g_object_notify (GObject* _sender,
                                                           GParamSpec* pspec,
                                                           gpointer self);
static void boxes_display_toolbar_finalize (GObject * obj);
static void _vala_boxes_display_toolbar_get_property (GObject * object,
                                               guint property_id,
                                               GValue * value,
                                               GParamSpec * pspec);
static void _vala_boxes_display_toolbar_set_property (GObject * object,
                                               guint property_id,
                                               const GValue * value,
                                               GParamSpec * pspec);


BoxesDisplayToolbar*
boxes_display_toolbar_construct (GType object_type,
                                 gboolean overlay,
                                 gboolean handle_drag)
{
	BoxesDisplayToolbar * self = NULL;
#line 43 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = (BoxesDisplayToolbar*) g_object_new (object_type, "overlay", overlay, "handle-drag", handle_drag, NULL);
#line 42 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return self;
#line 418 "display-toolbar.c"
}


BoxesDisplayToolbar*
boxes_display_toolbar_new (gboolean overlay,
                           gboolean handle_drag)
{
#line 42 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return boxes_display_toolbar_construct (BOXES_TYPE_DISPLAY_TOOLBAR, overlay, handle_drag);
#line 428 "display-toolbar.c"
}


static gpointer
_g_object_ref0 (gpointer self)
{
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return self ? g_object_ref (self) : NULL;
#line 437 "display-toolbar.c"
}


static Block22Data*
block22_data_ref (Block22Data* _data22_)
{
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_atomic_int_inc (&_data22_->_ref_count_);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return _data22_;
#line 448 "display-toolbar.c"
}


static void
block22_data_unref (void * _userdata_)
{
	Block22Data* _data22_;
	_data22_ = (Block22Data*) _userdata_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (g_atomic_int_dec_and_test (&_data22_->_ref_count_)) {
#line 459 "display-toolbar.c"
		BoxesDisplayToolbar* self;
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self = _data22_->self;
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_g_object_unref0 (_data22_->window);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_g_object_unref0 (self);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_slice_free (Block22Data, _data22_);
#line 469 "display-toolbar.c"
	}
}


static void
__lambda15_ (Block22Data* _data22_)
{
	BoxesDisplayToolbar* self;
	GtkButton* _tmp0_;
	BoxesApp* _tmp1_;
	BoxesAppWindow* _tmp2_;
	BoxesAppWindow* _tmp3_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = _data22_->self;
#line 84 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->back;
#line 84 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = boxes_app_app;
#line 84 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = boxes_app_get_main_window (_tmp1_);
#line 84 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = _tmp2_;
#line 84 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp0_, _data22_->window == _tmp3_);
#line 494 "display-toolbar.c"
}


static void
___lambda15__g_object_notify (GObject* _sender,
                              GParamSpec* pspec,
                              gpointer self)
{
#line 83 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	__lambda15_ (self);
#line 505 "display-toolbar.c"
}


static void
__lambda16_ (Block22Data* _data22_)
{
	BoxesDisplayToolbar* self;
	BoxesUIState _tmp0_;
	BoxesUIState _tmp1_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = _data22_->self;
#line 87 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = boxes_ui_get_ui_state ((BoxesUI*) _data22_->window);
#line 87 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = _tmp0_;
#line 87 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (_tmp1_ == BOXES_UI_STATE_DISPLAY) {
#line 523 "display-toolbar.c"
		GtkMenuButton* _tmp2_;
		GtkPopover* _tmp3_;
		GtkPopover* _tmp4_;
		BoxesCollectionItem* _tmp5_;
		BoxesCollectionItem* _tmp6_;
#line 88 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp2_ = self->priv->menu_button;
#line 88 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp3_ = gtk_menu_button_get_popover (_tmp2_);
#line 88 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp4_ = _tmp3_;
#line 88 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp5_ = boxes_app_window_get_current_item (_data22_->window);
#line 88 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp6_ = _tmp5_;
#line 88 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		boxes_actions_popover_update_for_item (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, BOXES_TYPE_ACTIONS_POPOVER) ? ((BoxesActionsPopover*) _tmp4_) : NULL, _tmp6_);
#line 541 "display-toolbar.c"
	}
}


static void
___lambda16__g_object_notify (GObject* _sender,
                              GParamSpec* pspec,
                              gpointer self)
{
#line 86 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	__lambda16_ (self);
#line 553 "display-toolbar.c"
}


static gboolean
_boxes_display_toolbar_on_draw_gtk_widget_draw (GtkWidget* _sender,
                                                cairo_t* cr,
                                                gpointer self)
{
	gboolean result;
	result = boxes_display_toolbar_on_draw ((BoxesDisplayToolbar*) self, _sender, cr);
#line 91 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 566 "display-toolbar.c"
}


static void
__lambda199_ (Block22Data* _data22_)
{
	BoxesDisplayToolbar* self;
	BoxesTransferPopover* popover = NULL;
	BoxesDisplayPage* _tmp0_;
	BoxesTransferPopover* _tmp1_;
	BoxesTransferPopover* _tmp2_;
	BoxesTransferPopover* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
#line 92 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = _data22_->self;
#line 93 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = _data22_->window->display_page;
#line 93 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = _tmp0_->transfer_popover;
#line 93 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 93 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	popover = _tmp2_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = popover;
#line 94 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp4_ = gtk_widget_get_visible ((GtkWidget*) _tmp3_);
#line 94 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp5_ = _tmp4_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (_tmp5_) {
#line 599 "display-toolbar.c"
		BoxesTransferPopover* _tmp6_;
#line 95 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp6_ = popover;
#line 95 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_popover_popdown ((GtkPopover*) _tmp6_);
#line 605 "display-toolbar.c"
	} else {
		BoxesTransferPopover* _tmp7_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp7_ = popover;
#line 97 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_popover_popup ((GtkPopover*) _tmp7_);
#line 612 "display-toolbar.c"
	}
#line 92 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (popover);
#line 616 "display-toolbar.c"
}


static void
___lambda199__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
#line 92 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	__lambda199_ (self);
#line 626 "display-toolbar.c"
}


void
boxes_display_toolbar_setup_ui (BoxesDisplayToolbar* self,
                                BoxesAppWindow* window)
{
	Block22Data* _data22_;
	BoxesAppWindow* _tmp0_;
	BoxesAppWindow* _tmp1_;
	GtkMenuButton* _tmp2_;
	BoxesActionsPopover* _tmp3_;
	BoxesActionsPopover* _tmp4_;
	BoxesApp* _tmp5_;
	GtkMenuButton* _tmp6_;
	BoxesKeysInputPopover* _tmp7_;
	BoxesKeysInputPopover* _tmp8_;
	GtkDrawingArea* _tmp9_;
	GtkButton* _tmp10_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_if_fail (self != NULL);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_if_fail (window != NULL);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data22_ = g_slice_new0 (Block22Data);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data22_->_ref_count_ = 1;
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data22_->self = g_object_ref (self);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = _g_object_ref0 (window);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (_data22_->window);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data22_->window = _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = _g_object_ref0 (_data22_->window);
#line 80 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->window);
#line 80 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self->priv->window = _tmp1_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = self->priv->menu_button;
#line 82 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = boxes_actions_popover_new (_data22_->window);
#line 82 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_object_ref_sink (_tmp3_);
#line 82 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp4_ = _tmp3_;
#line 82 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_menu_button_set_popover (_tmp2_, (GtkPopover*) _tmp4_);
#line 82 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (_tmp4_);
#line 83 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp5_ = boxes_app_app;
#line 83 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_signal_connect_data ((GObject*) _tmp5_, "notify::main-window", (GCallback) ___lambda15__g_object_notify, block22_data_ref (_data22_), (GClosureNotify) block22_data_unref, 0);
#line 86 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_signal_connect_data ((GObject*) _data22_->window, "notify::ui-state", (GCallback) ___lambda16__g_object_notify, block22_data_ref (_data22_), (GClosureNotify) block22_data_unref, 0);
#line 90 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp6_ = self->priv->keys_menu_button;
#line 90 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp7_ = boxes_keys_input_popover_new (_data22_->window);
#line 90 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_object_ref_sink (_tmp7_);
#line 90 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp8_ = _tmp7_;
#line 90 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_menu_button_set_popover (_tmp6_, (GtkPopover*) _tmp8_);
#line 90 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (_tmp8_);
#line 91 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp9_ = self->priv->transfers_drawing_area;
#line 91 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_signal_connect_object ((GtkWidget*) _tmp9_, "draw", (GCallback) _boxes_display_toolbar_on_draw_gtk_widget_draw, self, 0);
#line 92 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp10_ = self->transfers_button;
#line 92 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_signal_connect_data (_tmp10_, "clicked", (GCallback) ___lambda199__gtk_button_clicked, block22_data_ref (_data22_), (GClosureNotify) block22_data_unref, 0);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	block22_data_unref (_data22_);
#line 79 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data22_ = NULL;
#line 710 "display-toolbar.c"
}


static gboolean
boxes_display_toolbar_on_draw (BoxesDisplayToolbar* self,
                               GtkWidget* da,
                               cairo_t* ctx)
{
	gboolean result = FALSE;
	gint width = 0;
	GtkDrawingArea* _tmp0_;
	gint height = 0;
	GtkDrawingArea* _tmp1_;
	GtkStyleContext* style_context = NULL;
	GtkButton* _tmp2_;
	GtkStyleContext* _tmp3_;
	GtkStyleContext* _tmp4_;
	GdkRGBA foreground = {0};
	GtkButton* _tmp5_;
	GdkRGBA _tmp6_ = {0};
	GdkRGBA background = {0};
	GdkRGBA _tmp7_;
	gdouble _tmp8_;
	GdkRGBA _tmp9_;
	gdouble _tmp10_;
	GdkRGBA _tmp11_;
	gdouble _tmp12_;
	GdkRGBA _tmp13_;
	gdouble _tmp14_;
	GdkRGBA _tmp15_;
	gdouble _tmp16_;
	GdkRGBA _tmp17_;
	gdouble _tmp18_;
	GdkRGBA _tmp19_;
	gdouble _tmp20_;
	GdkRGBA _tmp21_;
	gdouble _tmp22_;
	GdkRGBA _tmp23_;
	gdouble _tmp24_;
	gdouble radians = 0.0;
	gdouble _tmp25_;
#line 101 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 101 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (da != NULL, FALSE);
#line 101 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (ctx != NULL, FALSE);
#line 103 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->transfers_drawing_area;
#line 103 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	width = gtk_widget_get_allocated_width ((GtkWidget*) _tmp0_);
#line 104 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = self->priv->transfers_drawing_area;
#line 104 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	height = gtk_widget_get_allocated_height ((GtkWidget*) _tmp1_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_set_line_join (ctx, CAIRO_LINE_JOIN_ROUND);
#line 108 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = self->transfers_button;
#line 108 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = gtk_widget_get_style_context ((GtkWidget*) _tmp2_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	style_context = _tmp4_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp5_ = self->transfers_button;
#line 109 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_style_context_get_color (style_context, gtk_widget_get_state_flags ((GtkWidget*) _tmp5_), &_tmp6_);
#line 109 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	foreground = _tmp6_;
#line 110 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp7_ = foreground;
#line 110 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	background = _tmp7_;
#line 112 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp8_ = background.alpha;
#line 112 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	background.alpha = _tmp8_ * 0.3;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp9_ = background;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp10_ = _tmp9_.red;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp11_ = background;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp12_ = _tmp11_.green;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp13_ = background;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp14_ = _tmp13_.blue;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp15_ = background;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp16_ = _tmp15_.alpha;
#line 113 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_set_source_rgba (ctx, _tmp10_, _tmp12_, _tmp14_, _tmp16_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_arc (ctx, (gdouble) (width / 2), (gdouble) (height / 2), (gdouble) (height / 3), (-G_PI) / 2, (3 * G_PI) / 2);
#line 115 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_fill (ctx);
#line 117 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_move_to (ctx, (gdouble) (width / 2), (gdouble) (height / 2));
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp17_ = foreground;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp18_ = _tmp17_.red;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp19_ = foreground;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp20_ = _tmp19_.green;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp21_ = foreground;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp22_ = _tmp21_.blue;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp23_ = foreground;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp24_ = _tmp23_.alpha;
#line 118 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_set_source_rgba (ctx, _tmp18_, _tmp20_, _tmp22_, _tmp24_);
#line 120 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp25_ = self->priv->_progress;
#line 120 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	radians = ((-G_PI) / 2) + ((2 * G_PI) * _tmp25_);
#line 121 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_arc (ctx, (gdouble) (width / 2), (gdouble) (height / 2), (gdouble) (height / 3), (-G_PI) / 2, radians);
#line 122 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	cairo_fill (ctx);
#line 124 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	result = TRUE;
#line 124 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (style_context);
#line 124 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 846 "display-toolbar.c"
}


static GdkEvent*
_vala_GdkEvent_copy (GdkEvent* self)
{
#line 137 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return g_boxed_copy (gdk_event_get_type (), self);
#line 855 "display-toolbar.c"
}


static gpointer
__vala_GdkEvent_copy0 (gpointer self)
{
#line 137 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return self ? _vala_GdkEvent_copy (self) : NULL;
#line 864 "display-toolbar.c"
}


static void
_vala_GdkEvent_free (GdkEvent* self)
{
#line 145 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_boxed_free (gdk_event_get_type (), self);
#line 873 "display-toolbar.c"
}


static gboolean
boxes_display_toolbar_real_button_press_event (GtkWidget* base,
                                               GdkEventButton* event)
{
	BoxesDisplayToolbar * self;
	gboolean result = FALSE;
	gboolean res = FALSE;
	gboolean _tmp0_;
	GdkEvent* base_event = NULL;
	GdkEvent* _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_;
#line 132 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = (BoxesDisplayToolbar*) base;
#line 132 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 133 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	res = GTK_WIDGET_CLASS (boxes_display_toolbar_parent_class)->button_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_header_bar_get_type (), GtkHeaderBar), event);
#line 134 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->_handle_drag;
#line 134 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (!_tmp0_) {
#line 135 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		result = res;
#line 135 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		return result;
#line 903 "display-toolbar.c"
	}
#line 137 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = __vala_GdkEvent_copy0 ((GdkEvent*) event);
#line 137 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	base_event = _tmp1_;
#line 139 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = res;
#line 139 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (!_tmp3_) {
#line 913 "display-toolbar.c"
		GdkEvent* _tmp4_;
#line 139 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp4_ = base_event;
#line 139 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp2_ = !gdk_event_triggers_context_menu (_tmp4_);
#line 919 "display-toolbar.c"
	} else {
#line 139 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp2_ = FALSE;
#line 923 "display-toolbar.c"
	}
#line 139 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (_tmp2_) {
#line 927 "display-toolbar.c"
		guint _tmp5_;
		gdouble _tmp6_;
		gdouble _tmp7_;
#line 140 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self->priv->button_down = TRUE;
#line 141 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp5_ = event->button;
#line 141 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self->priv->button_down_button = _tmp5_;
#line 142 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp6_ = event->x;
#line 142 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self->priv->button_down_x = (gint) _tmp6_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp7_ = event->y;
#line 143 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self->priv->button_down_y = (gint) _tmp7_;
#line 945 "display-toolbar.c"
	}
#line 145 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	result = res;
#line 145 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	__vala_GdkEvent_free0 (base_event);
#line 145 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 953 "display-toolbar.c"
}


static gboolean
boxes_display_toolbar_real_button_release_event (GtkWidget* base,
                                                 GdkEventButton* event)
{
	BoxesDisplayToolbar * self;
	gboolean result = FALSE;
#line 148 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = (BoxesDisplayToolbar*) base;
#line 148 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 149 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self->priv->button_down = FALSE;
#line 150 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	result = GTK_WIDGET_CLASS (boxes_display_toolbar_parent_class)->button_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_header_bar_get_type (), GtkHeaderBar), event);
#line 150 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 973 "display-toolbar.c"
}


static GdkEventMotion*
_vala_GdkEventMotion_copy (GdkEventMotion* self)
{
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return g_boxed_copy (gdk_event_get_type (), self);
#line 982 "display-toolbar.c"
}


static gpointer
__vala_GdkEventMotion_copy0 (gpointer self)
{
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return self ? _vala_GdkEventMotion_copy (self) : NULL;
#line 991 "display-toolbar.c"
}


static void
_vala_GdkEventMotion_free (GdkEventMotion* self)
{
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_boxed_free (gdk_event_get_type (), self);
#line 1000 "display-toolbar.c"
}


static Block23Data*
block23_data_ref (Block23Data* _data23_)
{
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_atomic_int_inc (&_data23_->_ref_count_);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return _data23_;
#line 1011 "display-toolbar.c"
}


static void
block23_data_unref (void * _userdata_)
{
	Block23Data* _data23_;
	_data23_ = (Block23Data*) _userdata_;
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (g_atomic_int_dec_and_test (&_data23_->_ref_count_)) {
#line 1022 "display-toolbar.c"
		BoxesDisplayToolbar* self;
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self = _data23_->self;
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		__vala_GdkEventMotion_free0 (_data23_->event);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_g_object_unref0 (self);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_slice_free (Block23Data, _data23_);
#line 1032 "display-toolbar.c"
	}
}


static Block24Data*
block24_data_ref (Block24Data* _data24_)
{
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_atomic_int_inc (&_data24_->_ref_count_);
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return _data24_;
#line 1044 "display-toolbar.c"
}


static void
block24_data_unref (void * _userdata_)
{
	Block24Data* _data24_;
	_data24_ = (Block24Data*) _userdata_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (g_atomic_int_dec_and_test (&_data24_->_ref_count_)) {
#line 1055 "display-toolbar.c"
		BoxesDisplayToolbar* self;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self = _data24_->_data23_->self;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_g_object_unref0 (_data24_->window);
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		block23_data_unref (_data24_->_data23_);
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_data24_->_data23_ = NULL;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_slice_free (Block24Data, _data24_);
#line 1067 "display-toolbar.c"
	}
}


static void
____lambda200_ (Block24Data* _data24_)
{
	Block23Data* _data23_;
	BoxesDisplayToolbar* self;
	gint root_x = 0;
	gint root_y = 0;
	gint width = 0;
	GtkWindow* _tmp0_;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	GtkWindow* _tmp3_;
	GdkWindow* _tmp4_;
	gint _tmp5_ = 0;
	GtkWindow* _tmp6_;
	guint _tmp7_;
	gint _tmp8_;
	gint _tmp9_;
	gint _tmp10_;
	guint32 _tmp11_;
	BoxesApp* _tmp12_;
	gulong _tmp13_;
#line 171 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data23_ = _data24_->_data23_;
#line 171 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = _data23_->self;
#line 173 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = _data24_->window;
#line 173 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_window_get_position (_tmp0_, &_tmp1_, &_tmp2_);
#line 173 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	root_x = _tmp1_;
#line 173 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	root_y = _tmp2_;
#line 174 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = _data24_->window;
#line 174 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp4_ = gtk_widget_get_window ((GtkWidget*) _tmp3_);
#line 174 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gdk_window_get_geometry (_tmp4_, NULL, NULL, &_tmp5_, NULL);
#line 174 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	width = _tmp5_;
#line 175 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp6_ = _data24_->window;
#line 175 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp7_ = self->priv->button_down_button;
#line 175 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp8_ = self->priv->button_down_x;
#line 175 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp9_ = _data24_->old_width;
#line 175 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp10_ = self->priv->button_down_y;
#line 175 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp11_ = _data23_->event->time;
#line 175 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_window_begin_move_drag (_tmp6_, (gint) _tmp7_, root_x + ((gint) ((_tmp8_ / ((gdouble) _tmp9_)) * width)), root_y + _tmp10_, _tmp11_);
#line 179 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp12_ = boxes_app_app;
#line 179 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp13_ = _data24_->id;
#line 179 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_signal_handler_disconnect ((GObject*) _tmp12_, _tmp13_);
#line 1134 "display-toolbar.c"
}


static void
_____lambda200__g_object_notify (GObject* _sender,
                                 GParamSpec* pspec,
                                 gpointer self)
{
#line 171 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	____lambda200_ (self);
#line 1145 "display-toolbar.c"
}


static gboolean
boxes_display_toolbar_real_motion_notify_event (GtkWidget* base,
                                                GdkEventMotion* event)
{
	BoxesDisplayToolbar * self;
	gboolean result = FALSE;
	Block23Data* _data23_;
	GdkEventMotion* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = (BoxesDisplayToolbar*) base;
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data23_ = g_slice_new0 (Block23Data);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data23_->_ref_count_ = 1;
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data23_->self = g_object_ref (self);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = __vala_GdkEventMotion_copy0 (event);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	__vala_GdkEventMotion_free0 (_data23_->event);
#line 153 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data23_->event = _tmp0_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = self->priv->_handle_drag;
#line 154 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (!_tmp1_) {
#line 155 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		result = GTK_WIDGET_CLASS (boxes_display_toolbar_parent_class)->motion_notify_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_header_bar_get_type (), GtkHeaderBar), _data23_->event);
#line 155 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		block23_data_unref (_data23_);
#line 155 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_data23_ = NULL;
#line 155 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		return result;
#line 1187 "display-toolbar.c"
	}
#line 157 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = self->priv->button_down;
#line 157 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (_tmp2_) {
#line 1193 "display-toolbar.c"
		gdouble dx = 0.0;
		gdouble _tmp3_;
		gint _tmp4_;
		gdouble dy = 0.0;
		gdouble _tmp5_;
		gint _tmp6_;
		gdouble _tmp7_;
		gdouble _tmp8_;
		gdouble _tmp9_;
		gdouble _tmp10_;
#line 158 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp3_ = _data23_->event->x;
#line 158 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp4_ = self->priv->button_down_x;
#line 158 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		dx = _tmp3_ - _tmp4_;
#line 159 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp5_ = _data23_->event->y;
#line 159 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp6_ = self->priv->button_down_y;
#line 159 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		dy = _tmp5_ - _tmp6_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp7_ = dx;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp8_ = dx;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp9_ = dy;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp10_ = dy;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		if (((_tmp7_ * _tmp8_) + (_tmp9_ * _tmp10_)) > ((gdouble) (40 * 40))) {
#line 1226 "display-toolbar.c"
			Block24Data* _data24_;
			BoxesAppWindow* _tmp11_;
			GtkWidget* _tmp12_;
			GtkWindow* _tmp13_;
			GtkWindow* _tmp14_;
			gint _tmp15_ = 0;
			BoxesApp* _tmp16_;
			gulong _tmp17_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_ = g_slice_new0 (Block24Data);
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_->_ref_count_ = 1;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_->_data23_ = block23_data_ref (_data23_);
#line 163 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			self->priv->button_down = FALSE;
#line 164 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_tmp11_ = self->priv->window;
#line 164 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			boxes_app_window_set_fullscreened (_tmp11_, FALSE);
#line 166 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_tmp12_ = gtk_widget_get_toplevel ((GtkWidget*) self);
#line 166 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, gtk_window_get_type ()) ? ((GtkWindow*) _tmp12_) : NULL);
#line 166 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_->window = _tmp13_;
#line 168 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_tmp14_ = _data24_->window;
#line 168 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			gtk_window_get_size (_tmp14_, &_tmp15_, NULL);
#line 168 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_->old_width = _tmp15_;
#line 170 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_->id = (gulong) 0;
#line 171 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_tmp16_ = boxes_app_app;
#line 171 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_tmp17_ = g_signal_connect_data ((GObject*) _tmp16_, "notify::fullscreened", (GCallback) _____lambda200__g_object_notify, block24_data_ref (_data24_), (GClosureNotify) block24_data_unref, 0);
#line 171 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_->id = _tmp17_;
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			block24_data_unref (_data24_);
#line 162 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
			_data24_ = NULL;
#line 1271 "display-toolbar.c"
		}
	}
#line 183 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (GTK_WIDGET_CLASS (boxes_display_toolbar_parent_class)->motion_notify_event != NULL) {
#line 184 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		result = GTK_WIDGET_CLASS (boxes_display_toolbar_parent_class)->motion_notify_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_header_bar_get_type (), GtkHeaderBar), _data23_->event);
#line 184 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		block23_data_unref (_data23_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_data23_ = NULL;
#line 184 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		return result;
#line 1284 "display-toolbar.c"
	}
#line 185 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	result = FALSE;
#line 185 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	block23_data_unref (_data23_);
#line 185 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_data23_ = NULL;
#line 185 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 1294 "display-toolbar.c"
}


static void
boxes_display_toolbar_on_back_clicked (BoxesDisplayToolbar* self)
{
	BoxesAppWindow* _tmp0_;
#line 189 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_if_fail (self != NULL);
#line 190 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->window;
#line 190 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	boxes_ui_set_state ((BoxesUI*) _tmp0_, BOXES_UI_STATE_COLLECTION);
#line 1308 "display-toolbar.c"
}


static void
_boxes_display_toolbar_on_back_clicked_gtk_button_clicked (GtkButton* _sender,
                                                           gpointer self)
{
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	boxes_display_toolbar_on_back_clicked ((BoxesDisplayToolbar*) self);
#line 1318 "display-toolbar.c"
}


static void
boxes_display_toolbar_on_fullscreen_clicked (BoxesDisplayToolbar* self)
{
	BoxesAppWindow* _tmp0_;
	BoxesAppWindow* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
#line 194 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_if_fail (self != NULL);
#line 195 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->window;
#line 195 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = self->priv->window;
#line 195 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = boxes_app_window_get_fullscreened (_tmp1_);
#line 195 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = _tmp2_;
#line 195 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	boxes_app_window_set_fullscreened (_tmp0_, !_tmp3_);
#line 1341 "display-toolbar.c"
}


static void
_boxes_display_toolbar_on_fullscreen_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                 gpointer self)
{
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	boxes_display_toolbar_on_fullscreen_clicked ((BoxesDisplayToolbar*) self);
#line 1351 "display-toolbar.c"
}


gboolean
boxes_display_toolbar_get_overlay (BoxesDisplayToolbar* self)
{
	gboolean result;
	gboolean _tmp0_;
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->_overlay;
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	result = _tmp0_;
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 1368 "display-toolbar.c"
}


static void
boxes_display_toolbar_set_overlay (BoxesDisplayToolbar* self,
                                   gboolean value)
{
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_if_fail (self != NULL);
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (boxes_display_toolbar_get_overlay (self) != value) {
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self->priv->_overlay = value;
#line 6 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_display_toolbar_properties[BOXES_DISPLAY_TOOLBAR_OVERLAY_PROPERTY]);
#line 1384 "display-toolbar.c"
	}
}


gboolean
boxes_display_toolbar_get_handle_drag (BoxesDisplayToolbar* self)
{
	gboolean result;
	gboolean _tmp0_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->_handle_drag;
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	result = _tmp0_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 1402 "display-toolbar.c"
}


static void
boxes_display_toolbar_set_handle_drag (BoxesDisplayToolbar* self,
                                       gboolean value)
{
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_if_fail (self != NULL);
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (boxes_display_toolbar_get_handle_drag (self) != value) {
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		self->priv->_handle_drag = value;
#line 7 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_display_toolbar_properties[BOXES_DISPLAY_TOOLBAR_HANDLE_DRAG_PROPERTY]);
#line 1418 "display-toolbar.c"
	}
}


gdouble
boxes_display_toolbar_get_progress (BoxesDisplayToolbar* self)
{
	gdouble result;
	gdouble _tmp0_;
#line 29 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_val_if_fail (self != NULL, 0.0);
#line 30 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->_progress;
#line 30 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	result = _tmp0_;
#line 30 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return result;
#line 1436 "display-toolbar.c"
}


void
boxes_display_toolbar_set_progress (BoxesDisplayToolbar* self,
                                    gdouble value)
{
	GtkButton* _tmp0_;
	GtkDrawingArea* _tmp2_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_return_if_fail (self != NULL);
#line 33 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->transfers_button;
#line 33 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (!gtk_widget_get_visible ((GtkWidget*) _tmp0_)) {
#line 1452 "display-toolbar.c"
		GtkButton* _tmp1_;
#line 34 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp1_ = self->transfers_button;
#line 34 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp1_, TRUE);
#line 1458 "display-toolbar.c"
	}
#line 36 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self->priv->_progress = value;
#line 38 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = self->priv->transfers_drawing_area;
#line 38 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_queue_draw ((GtkWidget*) _tmp2_);
#line 32 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_object_notify_by_pspec ((GObject *) self, boxes_display_toolbar_properties[BOXES_DISPLAY_TOOLBAR_PROGRESS_PROPERTY]);
#line 1468 "display-toolbar.c"
}


static void
_boxes_display_toolbar___lambda201_ (BoxesDisplayToolbar* self)
{
	AtkObject* a11y = NULL;
	GtkButton* _tmp0_;
	AtkObject* _tmp1_;
	AtkObject* _tmp2_;
	BoxesAppWindow* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
#line 67 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->fullscreen;
#line 67 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp1_ = gtk_widget_get_accessible ((GtkWidget*) _tmp0_);
#line 67 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 67 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	a11y = _tmp2_;
#line 69 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = self->priv->window;
#line 69 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp4_ = boxes_app_window_get_fullscreened (_tmp3_);
#line 69 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp5_ = _tmp4_;
#line 69 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (_tmp5_) {
#line 1498 "display-toolbar.c"
		GtkImage* _tmp6_;
		AtkObject* _tmp7_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp6_ = self->priv->fullscreen_image;
#line 70 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_object_set (_tmp6_, "icon-name", "view-restore-symbolic", NULL);
#line 71 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp7_ = a11y;
#line 71 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_object_set (_tmp7_, "accessible-name", _ ("Exit fullscreen"), NULL);
#line 1509 "display-toolbar.c"
	} else {
		GtkImage* _tmp8_;
		AtkObject* _tmp9_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp8_ = self->priv->fullscreen_image;
#line 73 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_object_set (_tmp8_, "icon-name", "view-fullscreen-symbolic", NULL);
#line 74 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp9_ = a11y;
#line 74 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_object_set (_tmp9_, "accessible-name", _ ("Fullscreen"), NULL);
#line 1521 "display-toolbar.c"
	}
#line 66 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (a11y);
#line 1525 "display-toolbar.c"
}


static void
__boxes_display_toolbar___lambda201__g_object_notify (GObject* _sender,
                                                      GParamSpec* pspec,
                                                      gpointer self)
{
#line 66 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_boxes_display_toolbar___lambda201_ ((BoxesDisplayToolbar*) self);
#line 1536 "display-toolbar.c"
}


static GObject *
boxes_display_toolbar_constructor (GType type,
                                   guint n_construct_properties,
                                   GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	BoxesDisplayToolbar * self;
	gboolean _tmp0_;
	gboolean _tmp3_;
	BoxesApp* _tmp12_;
#line 47 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	parent_class = G_OBJECT_CLASS (boxes_display_toolbar_parent_class);
#line 47 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 47 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbar);
#line 48 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_add_events ((GtkWidget*) self, (gint) ((GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK) | GDK_BUTTON_RELEASE_MASK));
#line 52 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp0_ = self->priv->_overlay;
#line 52 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (_tmp0_) {
#line 1563 "display-toolbar.c"
		GtkStyleContext* _tmp1_;
		GtkStyleContext* _tmp2_;
#line 53 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp1_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 53 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_style_context_add_class (_tmp1_, GTK_STYLE_CLASS_TOOLBAR);
#line 54 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp2_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 54 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_style_context_add_class (_tmp2_, GTK_STYLE_CLASS_OSD);
#line 1574 "display-toolbar.c"
	} else {
#line 56 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_header_bar_set_show_close_button ((GtkHeaderBar*) self, TRUE);
#line 1578 "display-toolbar.c"
	}
#line 59 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp3_ = self->priv->_overlay;
#line 59 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	if (!_tmp3_) {
#line 1584 "display-toolbar.c"
		GtkButton* _tmp4_;
		GtkStyleContext* _tmp5_;
		GtkButton* _tmp6_;
		GtkStyleContext* _tmp7_;
		GtkMenuButton* _tmp8_;
		GtkStyleContext* _tmp9_;
		GtkMenuButton* _tmp10_;
		GtkStyleContext* _tmp11_;
#line 60 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp4_ = self->priv->back;
#line 60 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) _tmp4_);
#line 60 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_style_context_add_class (_tmp5_, GTK_STYLE_CLASS_RAISED);
#line 61 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp6_ = self->priv->fullscreen;
#line 61 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp7_ = gtk_widget_get_style_context ((GtkWidget*) _tmp6_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_style_context_add_class (_tmp7_, GTK_STYLE_CLASS_RAISED);
#line 62 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp8_ = self->priv->menu_button;
#line 62 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp9_ = gtk_widget_get_style_context ((GtkWidget*) _tmp8_);
#line 62 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_style_context_add_class (_tmp9_, GTK_STYLE_CLASS_RAISED);
#line 63 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp10_ = self->priv->keys_menu_button;
#line 63 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		gtk_style_context_add_class (_tmp11_, GTK_STYLE_CLASS_RAISED);
#line 1617 "display-toolbar.c"
	}
#line 66 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_tmp12_ = boxes_app_app;
#line 66 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_signal_connect_object ((GObject*) _tmp12_, "notify::fullscreened", (GCallback) __boxes_display_toolbar___lambda201__g_object_notify, self, G_CONNECT_AFTER);
#line 47 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	return obj;
#line 1625 "display-toolbar.c"
}


static void
boxes_display_toolbar_class_init (BoxesDisplayToolbarClass * klass)
{
	gint BoxesDisplayToolbar_private_offset;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	boxes_display_toolbar_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_type_class_add_private (klass, sizeof (BoxesDisplayToolbarPrivate));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) boxes_display_toolbar_real_button_press_event;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	((GtkWidgetClass *) klass)->button_release_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) boxes_display_toolbar_real_button_release_event;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	((GtkWidgetClass *) klass)->motion_notify_event = (gboolean (*) (GtkWidget *, GdkEventMotion*)) boxes_display_toolbar_real_motion_notify_event;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_display_toolbar_get_property;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_display_toolbar_set_property;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_display_toolbar_constructor;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_display_toolbar_finalize;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_DISPLAY_TOOLBAR_OVERLAY_PROPERTY, boxes_display_toolbar_properties[BOXES_DISPLAY_TOOLBAR_OVERLAY_PROPERTY] = g_param_spec_boolean ("overlay", "overlay", "overlay", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_DISPLAY_TOOLBAR_HANDLE_DRAG_PROPERTY, boxes_display_toolbar_properties[BOXES_DISPLAY_TOOLBAR_HANDLE_DRAG_PROPERTY] = g_param_spec_boolean ("handle-drag", "handle-drag", "handle-drag", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_DISPLAY_TOOLBAR_PROGRESS_PROPERTY, boxes_display_toolbar_properties[BOXES_DISPLAY_TOOLBAR_PROGRESS_PROPERTY] = g_param_spec_double ("progress", "progress", "progress", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	BoxesDisplayToolbar_private_offset = g_type_class_get_instance_private_offset (klass);
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/display-toolbar.ui");
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "fullscreen_image", FALSE, BoxesDisplayToolbar_private_offset + G_STRUCT_OFFSET (BoxesDisplayToolbarPrivate, fullscreen_image));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transfers_drawing_area", FALSE, BoxesDisplayToolbar_private_offset + G_STRUCT_OFFSET (BoxesDisplayToolbarPrivate, transfers_drawing_area));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transfers_button", FALSE, G_STRUCT_OFFSET (BoxesDisplayToolbar, transfers_button));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "back", FALSE, BoxesDisplayToolbar_private_offset + G_STRUCT_OFFSET (BoxesDisplayToolbarPrivate, back));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "fullscreen", FALSE, BoxesDisplayToolbar_private_offset + G_STRUCT_OFFSET (BoxesDisplayToolbarPrivate, fullscreen));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "menu_button", FALSE, BoxesDisplayToolbar_private_offset + G_STRUCT_OFFSET (BoxesDisplayToolbarPrivate, menu_button));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "keys_menu_button", FALSE, BoxesDisplayToolbar_private_offset + G_STRUCT_OFFSET (BoxesDisplayToolbarPrivate, keys_menu_button));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_back_clicked", G_CALLBACK(_boxes_display_toolbar_on_back_clicked_gtk_button_clicked));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_fullscreen_clicked", G_CALLBACK(_boxes_display_toolbar_on_fullscreen_clicked_gtk_button_clicked));
#line 1679 "display-toolbar.c"
}


static void
boxes_display_toolbar_instance_init (BoxesDisplayToolbar * self)
{
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self->priv = BOXES_DISPLAY_TOOLBAR_GET_PRIVATE (self);
#line 27 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self->priv->_progress = (gdouble) 0;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 1692 "display-toolbar.c"
}


static void
boxes_display_toolbar_finalize (GObject * obj)
{
	BoxesDisplayToolbar * self;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbar);
#line 10 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->fullscreen_image);
#line 12 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->transfers_drawing_area);
#line 14 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->transfers_button);
#line 17 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->back);
#line 19 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->fullscreen);
#line 21 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->menu_button);
#line 23 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->keys_menu_button);
#line 25 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	_g_object_unref0 (self->priv->window);
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	G_OBJECT_CLASS (boxes_display_toolbar_parent_class)->finalize (obj);
#line 1720 "display-toolbar.c"
}


GType
boxes_display_toolbar_get_type (void)
{
	static volatile gsize boxes_display_toolbar_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_display_toolbar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesDisplayToolbarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_display_toolbar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesDisplayToolbar), 0, (GInstanceInitFunc) boxes_display_toolbar_instance_init, NULL };
		GType boxes_display_toolbar_type_id;
		boxes_display_toolbar_type_id = g_type_register_static (gtk_header_bar_get_type (), "BoxesDisplayToolbar", &g_define_type_info, 0);
		g_once_init_leave (&boxes_display_toolbar_type_id__volatile, boxes_display_toolbar_type_id);
	}
	return boxes_display_toolbar_type_id__volatile;
}


static void
_vala_boxes_display_toolbar_get_property (GObject * object,
                                          guint property_id,
                                          GValue * value,
                                          GParamSpec * pspec)
{
	BoxesDisplayToolbar * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbar);
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	switch (property_id) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		case BOXES_DISPLAY_TOOLBAR_OVERLAY_PROPERTY:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_value_set_boolean (value, boxes_display_toolbar_get_overlay (self));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		case BOXES_DISPLAY_TOOLBAR_HANDLE_DRAG_PROPERTY:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_value_set_boolean (value, boxes_display_toolbar_get_handle_drag (self));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		case BOXES_DISPLAY_TOOLBAR_PROGRESS_PROPERTY:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		g_value_set_double (value, boxes_display_toolbar_get_progress (self));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 1766 "display-toolbar.c"
		default:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 1772 "display-toolbar.c"
	}
}


static void
_vala_boxes_display_toolbar_set_property (GObject * object,
                                          guint property_id,
                                          const GValue * value,
                                          GParamSpec * pspec)
{
	BoxesDisplayToolbar * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_DISPLAY_TOOLBAR, BoxesDisplayToolbar);
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
	switch (property_id) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		case BOXES_DISPLAY_TOOLBAR_OVERLAY_PROPERTY:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		boxes_display_toolbar_set_overlay (self, g_value_get_boolean (value));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		case BOXES_DISPLAY_TOOLBAR_HANDLE_DRAG_PROPERTY:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		boxes_display_toolbar_set_handle_drag (self, g_value_get_boolean (value));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		case BOXES_DISPLAY_TOOLBAR_PROGRESS_PROPERTY:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		boxes_display_toolbar_set_progress (self, g_value_get_double (value));
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 1805 "display-toolbar.c"
		default:
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/fborges/checkout/gnome-boxes/src/display-toolbar.vala"
		break;
#line 1811 "display-toolbar.c"
	}
}



