/* topbar.c generated by valac 0.26.0.50-d9a75, the Vala compiler
 * generated from topbar.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 <stdlib.h>
#include <string.h>
#include <libgd/gd.h>
#include <gio/gio.h>


#define BOXES_TYPE_TOPBAR_PAGE (boxes_topbar_page_get_type ())

#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_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;
typedef struct _BoxesTopbarPrivate BoxesTopbarPrivate;

#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;

#define BOXES_TYPE_COLLECTION_TOOLBAR (boxes_collection_toolbar_get_type ())
#define BOXES_COLLECTION_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_TOOLBAR, BoxesCollectionToolbar))
#define BOXES_COLLECTION_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_TOOLBAR, BoxesCollectionToolbarClass))
#define BOXES_IS_COLLECTION_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_TOOLBAR))
#define BOXES_IS_COLLECTION_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_TOOLBAR))
#define BOXES_COLLECTION_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_TOOLBAR, BoxesCollectionToolbarClass))

typedef struct _BoxesCollectionToolbar BoxesCollectionToolbar;
typedef struct _BoxesCollectionToolbarClass BoxesCollectionToolbarClass;

#define BOXES_TYPE_SELECTION_TOOLBAR (boxes_selection_toolbar_get_type ())
#define BOXES_SELECTION_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SELECTION_TOOLBAR, BoxesSelectionToolbar))
#define BOXES_SELECTION_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SELECTION_TOOLBAR, BoxesSelectionToolbarClass))
#define BOXES_IS_SELECTION_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SELECTION_TOOLBAR))
#define BOXES_IS_SELECTION_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SELECTION_TOOLBAR))
#define BOXES_SELECTION_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SELECTION_TOOLBAR, BoxesSelectionToolbarClass))

typedef struct _BoxesSelectionToolbar BoxesSelectionToolbar;
typedef struct _BoxesSelectionToolbarClass BoxesSelectionToolbarClass;

#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;

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

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block72Data Block72Data;
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_NOTIFICATIONBAR (boxes_notificationbar_get_type ())
#define BOXES_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbar))
#define BOXES_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))
#define BOXES_IS_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_IS_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_NOTIFICATIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;

#define BOXES_TYPE_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_COLLECTION_VIEW (boxes_collection_view_get_type ())
#define BOXES_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionView))
#define BOXES_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))
#define BOXES_IS_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_IS_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_COLLECTION_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))

typedef struct _BoxesCollectionView BoxesCollectionView;
typedef struct _BoxesCollectionViewClass BoxesCollectionViewClass;
typedef struct _BoxesDisplayPagePrivate BoxesDisplayPagePrivate;

typedef enum  {
	BOXES_TOPBAR_PAGE_COLLECTION,
	BOXES_TOPBAR_PAGE_SELECTION,
	BOXES_TOPBAR_PAGE_PROPERTIES,
	BOXES_TOPBAR_PAGE_DISPLAY
} BoxesTopbarPage;

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

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

struct _BoxesTopbar {
	GtkStack parent_instance;
	BoxesTopbarPrivate * priv;
	BoxesPropertiesToolbar* props_toolbar;
	gchar* _status;
};

struct _BoxesTopbarClass {
	GtkStackClass parent_class;
};

struct _BoxesTopbarPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
	BoxesCollectionToolbar* collection_toolbar;
	BoxesSelectionToolbar* selection_toolbar;
	BoxesDisplayToolbar* display_toolbar;
	BoxesAppWindow* window;
	BoxesTopbarPage _page;
};

struct _Block72Data {
	int _ref_count_;
	BoxesTopbar* self;
	BoxesAppWindow* window;
};

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

struct _BoxesAppWindowClass {
	GtkApplicationWindowClass parent_class;
};

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

struct _BoxesDisplayPageClass {
	GtkBoxClass parent_class;
};


static gpointer boxes_topbar_parent_class = NULL;
static BoxesUIIface* boxes_topbar_boxes_ui_parent_iface = NULL;

GType boxes_topbar_page_get_type (void) G_GNUC_CONST;
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_topbar_get_type (void) G_GNUC_CONST;
GType boxes_properties_toolbar_get_type (void) G_GNUC_CONST;
GType boxes_collection_toolbar_get_type (void) G_GNUC_CONST;
GType boxes_selection_toolbar_get_type (void) G_GNUC_CONST;
GType boxes_display_toolbar_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
#define BOXES_TOPBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_TOPBAR, BoxesTopbarPrivate))
enum  {
	BOXES_TOPBAR_DUMMY_PROPERTY,
	BOXES_TOPBAR_PREVIOUS_UI_STATE,
	BOXES_TOPBAR_UI_STATE,
	BOXES_TOPBAR_STATUS,
	BOXES_TOPBAR_PAGE
};
void boxes_topbar_click_back_button (BoxesTopbar* self);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
void boxes_collection_toolbar_click_back_button (BoxesCollectionToolbar* self);
void boxes_topbar_click_cancel_button (BoxesTopbar* self);
gboolean boxes_app_window_get_selection_mode (BoxesAppWindow* self);
void boxes_app_window_set_selection_mode (BoxesAppWindow* self, gboolean value);
void boxes_topbar_click_new_button (BoxesTopbar* self);
void boxes_collection_toolbar_click_new_button (BoxesCollectionToolbar* self);
void boxes_topbar_click_search_button (BoxesTopbar* self);
void boxes_collection_toolbar_click_search_button (BoxesCollectionToolbar* self);
void boxes_topbar_setup_ui (BoxesTopbar* self, BoxesAppWindow* window);
static Block72Data* block72_data_ref (Block72Data* _data72_);
static void block72_data_unref (void * _userdata_);
static void __lambda41_ (Block72Data* _data72_);
void boxes_topbar_set_page (BoxesTopbar* self, BoxesTopbarPage value);
static void ___lambda41__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
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_notificationbar_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_collection_view_get_type (void) G_GNUC_CONST;
void boxes_collection_toolbar_setup_ui (BoxesCollectionToolbar* self, BoxesAppWindow* window);
void boxes_selection_toolbar_setup_ui (BoxesSelectionToolbar* self, BoxesAppWindow* window);
void boxes_display_toolbar_setup_ui (BoxesDisplayToolbar* self, BoxesAppWindow* window);
void boxes_properties_toolbar_setup_ui (BoxesPropertiesToolbar* self, BoxesAppWindow* window);
static void boxes_topbar_ui_state_changed (BoxesTopbar* self);
BoxesTopbar* boxes_topbar_new (void);
BoxesTopbar* boxes_topbar_construct (GType object_type);
const gchar* boxes_topbar_get_status (BoxesTopbar* self);
void boxes_topbar_set_status (BoxesTopbar* self, const gchar* value);
BoxesTopbarPage boxes_topbar_get_page (BoxesTopbar* self);
static GObject * boxes_topbar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _boxes_topbar_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void boxes_topbar_finalize (GObject* obj);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
static void _vala_boxes_topbar_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_topbar_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);

static const gchar* BOXES_TOPBAR_page_names[4] = {"collection", "selection", "properties", "display"};

GType boxes_topbar_page_get_type (void) {
	static volatile gsize boxes_topbar_page_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_topbar_page_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_TOPBAR_PAGE_COLLECTION, "BOXES_TOPBAR_PAGE_COLLECTION", "collection"}, {BOXES_TOPBAR_PAGE_SELECTION, "BOXES_TOPBAR_PAGE_SELECTION", "selection"}, {BOXES_TOPBAR_PAGE_PROPERTIES, "BOXES_TOPBAR_PAGE_PROPERTIES", "properties"}, {BOXES_TOPBAR_PAGE_DISPLAY, "BOXES_TOPBAR_PAGE_DISPLAY", "display"}, {0, NULL, NULL}};
		GType boxes_topbar_page_type_id;
		boxes_topbar_page_type_id = g_enum_register_static ("BoxesTopbarPage", values);
		g_once_init_leave (&boxes_topbar_page_type_id__volatile, boxes_topbar_page_type_id);
	}
	return boxes_topbar_page_type_id__volatile;
}


void boxes_topbar_click_back_button (BoxesTopbar* self) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesUIState _tmp1_ = 0;
	BoxesUIState _tmp2_ = 0;
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = self->priv->window;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp0_);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = _tmp1_;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	switch (_tmp2_) {
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_UI_STATE_PROPERTIES:
#line 350 "topbar.c"
		{
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			break;
#line 354 "topbar.c"
		}
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_UI_STATE_CREDS:
#line 358 "topbar.c"
		{
			BoxesCollectionToolbar* _tmp3_ = NULL;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			_tmp3_ = self->priv->collection_toolbar;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			boxes_collection_toolbar_click_back_button (_tmp3_);
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			break;
#line 367 "topbar.c"
		}
		default:
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 372 "topbar.c"
	}
}


void boxes_topbar_click_cancel_button (BoxesTopbar* self) {
	gboolean _tmp0_ = FALSE;
	BoxesAppWindow* _tmp1_ = NULL;
	BoxesUIState _tmp2_ = 0;
	BoxesUIState _tmp3_ = 0;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = self->priv->window;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp1_);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp3_ = _tmp2_;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (_tmp3_ == BOXES_UI_STATE_COLLECTION) {
#line 392 "topbar.c"
		BoxesAppWindow* _tmp4_ = NULL;
		gboolean _tmp5_ = FALSE;
		gboolean _tmp6_ = FALSE;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp4_ = self->priv->window;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp5_ = boxes_app_window_get_selection_mode (_tmp4_);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp6_ = _tmp5_;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp0_ = _tmp6_;
#line 404 "topbar.c"
	} else {
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp0_ = FALSE;
#line 408 "topbar.c"
	}
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (_tmp0_) {
#line 412 "topbar.c"
		BoxesAppWindow* _tmp7_ = NULL;
#line 43 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp7_ = self->priv->window;
#line 43 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_app_window_set_selection_mode (_tmp7_, FALSE);
#line 418 "topbar.c"
	}
}


void boxes_topbar_click_new_button (BoxesTopbar* self) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesUIState _tmp1_ = 0;
	BoxesUIState _tmp2_ = 0;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = self->priv->window;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp0_);
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = _tmp1_;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (_tmp2_ == BOXES_UI_STATE_COLLECTION) {
#line 437 "topbar.c"
		BoxesCollectionToolbar* _tmp3_ = NULL;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp3_ = self->priv->collection_toolbar;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_collection_toolbar_click_new_button (_tmp3_);
#line 443 "topbar.c"
	}
}


void boxes_topbar_click_search_button (BoxesTopbar* self) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesUIState _tmp1_ = 0;
	BoxesUIState _tmp2_ = 0;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = self->priv->window;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = boxes_ui_get_ui_state ((BoxesUI*) _tmp0_);
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = _tmp1_;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (_tmp2_ == BOXES_UI_STATE_COLLECTION) {
#line 462 "topbar.c"
		BoxesCollectionToolbar* _tmp3_ = NULL;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp3_ = self->priv->collection_toolbar;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_collection_toolbar_click_search_button (_tmp3_);
#line 468 "topbar.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return self ? g_object_ref (self) : NULL;
#line 476 "topbar.c"
}


static Block72Data* block72_data_ref (Block72Data* _data72_) {
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_atomic_int_inc (&_data72_->_ref_count_);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return _data72_;
#line 485 "topbar.c"
}


static void block72_data_unref (void * _userdata_) {
	Block72Data* _data72_;
	_data72_ = (Block72Data*) _userdata_;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (g_atomic_int_dec_and_test (&_data72_->_ref_count_)) {
#line 494 "topbar.c"
		BoxesTopbar* self;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		self = _data72_->self;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_g_object_unref0 (_data72_->window);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_g_object_unref0 (self);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		g_slice_free (Block72Data, _data72_);
#line 504 "topbar.c"
	}
}


static void __lambda41_ (Block72Data* _data72_) {
	BoxesTopbar* self;
	BoxesTopbarPage _tmp0_ = 0;
	BoxesAppWindow* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = _data72_->self;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = _data72_->window;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = boxes_app_window_get_selection_mode (_tmp1_);
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp3_ = _tmp2_;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (_tmp3_) {
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp0_ = BOXES_TOPBAR_PAGE_SELECTION;
#line 527 "topbar.c"
	} else {
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_topbar_set_page (self, BOXES_TOPBAR_PAGE_COLLECTION);
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp0_ = BOXES_TOPBAR_PAGE_COLLECTION;
#line 533 "topbar.c"
	}
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_topbar_set_page (self, _tmp0_);
#line 537 "topbar.c"
}


static void ___lambda41__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	__lambda41_ (self);
#line 544 "topbar.c"
}


void boxes_topbar_setup_ui (BoxesTopbar* self, BoxesAppWindow* window) {
	Block72Data* _data72_;
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesAppWindow* _tmp1_ = NULL;
	BoxesAppWindow* _tmp2_ = NULL;
	BoxesAppWindow* _tmp3_ = NULL;
	BoxesAppWindow* _tmp4_ = NULL;
	BoxesDisplayToolbar* toolbar = NULL;
	BoxesAppWindow* _tmp5_ = NULL;
	BoxesDisplayPage* _tmp6_ = NULL;
	BoxesDisplayToolbar* _tmp7_ = NULL;
	BoxesDisplayToolbar* _tmp8_ = NULL;
	BoxesDisplayToolbar* _tmp9_ = NULL;
	BoxesDisplayToolbar* _tmp10_ = NULL;
	BoxesCollectionToolbar* _tmp11_ = NULL;
	BoxesAppWindow* _tmp12_ = NULL;
	BoxesSelectionToolbar* _tmp13_ = NULL;
	BoxesAppWindow* _tmp14_ = NULL;
	BoxesDisplayToolbar* _tmp15_ = NULL;
	BoxesAppWindow* _tmp16_ = NULL;
	BoxesPropertiesToolbar* _tmp17_ = NULL;
	BoxesAppWindow* _tmp18_ = NULL;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (window != NULL);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_data72_ = g_slice_new0 (Block72Data);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_data72_->_ref_count_ = 1;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_data72_->self = g_object_ref (self);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = window;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (_data72_->window);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_data72_->window = _tmp1_;
#line 83 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = _data72_->window;
#line 83 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 83 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (self->priv->window);
#line 83 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self->priv->window = _tmp3_;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp4_ = _data72_->window;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_signal_connect_data ((GObject*) _tmp4_, "notify::selection-mode", (GCallback) ___lambda41__g_object_notify, block72_data_ref (_data72_), (GClosureNotify) block72_data_unref, 0);
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp5_ = _data72_->window;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp6_ = _tmp5_->display_page;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp7_ = _tmp6_->toolbar;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	toolbar = _tmp8_;
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp9_ = self->priv->display_toolbar;
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_bind_property_with_closures ((GObject*) toolbar, "title", (GObject*) _tmp9_, "title", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 92 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp10_ = self->priv->display_toolbar;
#line 92 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_bind_property_with_closures ((GObject*) toolbar, "subtitle", (GObject*) _tmp10_, "subtitle", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 94 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp11_ = self->priv->collection_toolbar;
#line 94 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp12_ = _data72_->window;
#line 94 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_collection_toolbar_setup_ui (_tmp11_, _tmp12_);
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp13_ = self->priv->selection_toolbar;
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp14_ = _data72_->window;
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_selection_toolbar_setup_ui (_tmp13_, _tmp14_);
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp15_ = self->priv->display_toolbar;
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp16_ = _data72_->window;
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_display_toolbar_setup_ui (_tmp15_, _tmp16_);
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp17_ = self->props_toolbar;
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp18_ = _data72_->window;
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_properties_toolbar_setup_ui (_tmp17_, _tmp18_);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (toolbar);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	block72_data_unref (_data72_);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_data72_ = NULL;
#line 648 "topbar.c"
}


static void boxes_topbar_ui_state_changed (BoxesTopbar* self) {
	BoxesUIState _tmp0_ = 0;
	BoxesUIState _tmp1_ = 0;
#line 100 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = boxes_ui_get_ui_state ((BoxesUI*) self);
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = _tmp0_;
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	switch (_tmp1_) {
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_UI_STATE_COLLECTION:
#line 665 "topbar.c"
		{
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			boxes_topbar_set_page (self, BOXES_TOPBAR_PAGE_COLLECTION);
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			break;
#line 671 "topbar.c"
		}
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_UI_STATE_CREDS:
#line 675 "topbar.c"
		{
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			boxes_topbar_set_page (self, BOXES_TOPBAR_PAGE_COLLECTION);
#line 108 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			break;
#line 681 "topbar.c"
		}
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_UI_STATE_DISPLAY:
#line 685 "topbar.c"
		{
#line 111 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			boxes_topbar_set_page (self, BOXES_TOPBAR_PAGE_DISPLAY);
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			break;
#line 691 "topbar.c"
		}
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_UI_STATE_PROPERTIES:
#line 695 "topbar.c"
		{
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			boxes_topbar_set_page (self, BOXES_TOPBAR_PAGE_PROPERTIES);
#line 116 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			break;
#line 701 "topbar.c"
		}
		default:
		{
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
			break;
#line 707 "topbar.c"
		}
	}
}


BoxesTopbar* boxes_topbar_construct (GType object_type) {
	BoxesTopbar * self = NULL;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = (BoxesTopbar*) g_object_new (object_type, NULL);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return self;
#line 719 "topbar.c"
}


BoxesTopbar* boxes_topbar_new (void) {
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return boxes_topbar_construct (BOXES_TYPE_TOPBAR);
#line 726 "topbar.c"
}


static BoxesUIState boxes_topbar_real_get_previous_ui_state (BoxesUI* base) {
	BoxesUIState result;
	BoxesTopbar* self;
	BoxesUIState _tmp0_ = 0;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = (BoxesTopbar*) base;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = self->priv->_previous_ui_state;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	result = _tmp0_;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return result;
#line 742 "topbar.c"
}


static void boxes_topbar_real_set_previous_ui_state (BoxesUI* base, BoxesUIState value) {
	BoxesTopbar* self;
	BoxesUIState _tmp0_ = 0;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = (BoxesTopbar*) base;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = value;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self->priv->_previous_ui_state = _tmp0_;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_notify ((GObject *) self, "previous-ui-state");
#line 757 "topbar.c"
}


static BoxesUIState boxes_topbar_real_get_ui_state (BoxesUI* base) {
	BoxesUIState result;
	BoxesTopbar* self;
	BoxesUIState _tmp0_ = 0;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = (BoxesTopbar*) base;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = self->priv->_ui_state;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	result = _tmp0_;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return result;
#line 773 "topbar.c"
}


static void boxes_topbar_real_set_ui_state (BoxesUI* base, BoxesUIState value) {
	BoxesTopbar* self;
	BoxesUIState _tmp0_ = 0;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = (BoxesTopbar*) base;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = value;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self->priv->_ui_state = _tmp0_;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_notify ((GObject *) self, "ui-state");
#line 788 "topbar.c"
}


const gchar* boxes_topbar_get_status (BoxesTopbar* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = self->_status;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	result = _tmp0_;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return result;
#line 803 "topbar.c"
}


void boxes_topbar_set_status (BoxesTopbar* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	BoxesCollectionToolbar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	BoxesDisplayToolbar* _tmp7_ = NULL;
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = value;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_free0 (self->_status);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self->_status = _tmp1_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp3_ = self->_status;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = _tmp3_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (_tmp2_ == NULL) {
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp2_ = "";
#line 834 "topbar.c"
	}
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp4_ = self->priv->collection_toolbar;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_header_bar_set_title ((GtkHeaderBar*) _tmp4_, _tmp2_);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp6_ = self->_status;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp5_ = _tmp6_;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	if (_tmp5_ == NULL) {
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		_tmp5_ = "";
#line 848 "topbar.c"
	}
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp7_ = self->priv->display_toolbar;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_header_bar_set_title ((GtkHeaderBar*) _tmp7_, _tmp5_);
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_notify ((GObject *) self, "status");
#line 856 "topbar.c"
}


BoxesTopbarPage boxes_topbar_get_page (BoxesTopbar* self) {
	BoxesTopbarPage result;
	BoxesTopbarPage _tmp0_ = 0;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = self->priv->_page;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	result = _tmp0_;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return result;
#line 871 "topbar.c"
}


void boxes_topbar_set_page (BoxesTopbar* self, BoxesTopbarPage value) {
	BoxesTopbarPage _tmp0_ = 0;
	BoxesTopbarPage _tmp1_ = 0;
	const gchar* _tmp2_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_return_if_fail (self != NULL);
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp0_ = value;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self->priv->_page = _tmp0_;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp1_ = value;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_tmp2_ = BOXES_TOPBAR_page_names[_tmp1_];
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_stack_set_visible_child_name ((GtkStack*) self, _tmp2_);
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_notify ((GObject *) self, "page");
#line 893 "topbar.c"
}


static void _boxes_topbar_ui_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_topbar_ui_state_changed ((BoxesTopbar*) self);
#line 900 "topbar.c"
}


static GObject * boxes_topbar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	BoxesTopbar * self;
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	parent_class = G_OBJECT_CLASS (boxes_topbar_parent_class);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_TOPBAR, BoxesTopbar);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_signal_connect_object ((GObject*) self, "notify::ui-state", (GCallback) _boxes_topbar_ui_state_changed_g_object_notify, self, 0);
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_stack_set_transition_type ((GtkStack*) self, GTK_STACK_TRANSITION_TYPE_CROSSFADE);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	return obj;
#line 920 "topbar.c"
}


static void boxes_topbar_class_init (BoxesTopbarClass * klass) {
	gint BoxesTopbar_private_offset;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_topbar_parent_class = g_type_class_peek_parent (klass);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_type_class_add_private (klass, sizeof (BoxesTopbarPrivate));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_topbar_get_property;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_topbar_set_property;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_topbar_constructor;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_topbar_finalize;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_TOPBAR_PREVIOUS_UI_STATE, 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 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_TOPBAR_UI_STATE, 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 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_TOPBAR_STATUS, g_param_spec_string ("status", "status", "status", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_TOPBAR_PAGE, g_param_spec_enum ("page", "page", "page", BOXES_TYPE_TOPBAR_PAGE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	BoxesTopbar_private_offset = g_type_class_get_instance_private_offset (klass);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/topbar.ui");
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "props_toolbar", FALSE, G_STRUCT_OFFSET (BoxesTopbar, props_toolbar));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "collection_toolbar", FALSE, BoxesTopbar_private_offset + G_STRUCT_OFFSET (BoxesTopbarPrivate, collection_toolbar));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "selection_toolbar", FALSE, BoxesTopbar_private_offset + G_STRUCT_OFFSET (BoxesTopbarPrivate, selection_toolbar));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "display_toolbar", FALSE, BoxesTopbar_private_offset + G_STRUCT_OFFSET (BoxesTopbarPrivate, display_toolbar));
#line 958 "topbar.c"
}


static void boxes_topbar_boxes_ui_interface_init (BoxesUIIface * iface) {
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	boxes_topbar_boxes_ui_parent_iface = g_type_interface_peek_parent (iface);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	iface->get_previous_ui_state = boxes_topbar_real_get_previous_ui_state;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	iface->set_previous_ui_state = boxes_topbar_real_set_previous_ui_state;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	iface->get_ui_state = boxes_topbar_real_get_ui_state;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	iface->set_ui_state = boxes_topbar_real_set_ui_state;
#line 973 "topbar.c"
}


static void boxes_topbar_instance_init (BoxesTopbar * self) {
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self->priv = BOXES_TOPBAR_GET_PRIVATE (self);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_type_ensure (BOXES_TYPE_PROPERTIES_TOOLBAR);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_type_ensure (BOXES_TYPE_SELECTION_TOOLBAR);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_type_ensure (BOXES_TYPE_COLLECTION_TOOLBAR);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	g_type_ensure (BOXES_TYPE_DISPLAY_TOOLBAR);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 990 "topbar.c"
}


static void boxes_topbar_finalize (GObject* obj) {
	BoxesTopbar * self;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_TOPBAR, BoxesTopbar);
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (self->props_toolbar);
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (self->priv->collection_toolbar);
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (self->priv->selection_toolbar);
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (self->priv->display_toolbar);
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_object_unref0 (self->priv->window);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	_g_free0 (self->_status);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	G_OBJECT_CLASS (boxes_topbar_parent_class)->finalize (obj);
#line 1012 "topbar.c"
}


GType boxes_topbar_get_type (void) {
	static volatile gsize boxes_topbar_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_topbar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesTopbarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_topbar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesTopbar), 0, (GInstanceInitFunc) boxes_topbar_instance_init, NULL };
		static const GInterfaceInfo boxes_ui_info = { (GInterfaceInitFunc) boxes_topbar_boxes_ui_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_topbar_type_id;
		boxes_topbar_type_id = g_type_register_static (gtk_stack_get_type (), "BoxesTopbar", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_topbar_type_id, BOXES_TYPE_UI, &boxes_ui_info);
		g_once_init_leave (&boxes_topbar_type_id__volatile, boxes_topbar_type_id);
	}
	return boxes_topbar_type_id__volatile;
}


static void _vala_boxes_topbar_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesTopbar * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_TOPBAR, BoxesTopbar);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	switch (property_id) {
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_PREVIOUS_UI_STATE:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state ((BoxesUI*) self));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_UI_STATE:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state ((BoxesUI*) self));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_STATUS:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		g_value_set_string (value, boxes_topbar_get_status (self));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_PAGE:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		g_value_set_enum (value, boxes_topbar_get_page (self));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 1059 "topbar.c"
		default:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 1065 "topbar.c"
	}
}


static void _vala_boxes_topbar_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesTopbar * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_TOPBAR, BoxesTopbar);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
	switch (property_id) {
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_PREVIOUS_UI_STATE:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_ui_set_previous_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_UI_STATE:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_ui_set_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_STATUS:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_topbar_set_status (self, g_value_get_string (value));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		case BOXES_TOPBAR_PAGE:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		boxes_topbar_set_page (self, g_value_get_enum (value));
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 1099 "topbar.c"
		default:
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/topbar.vala"
		break;
#line 1105 "topbar.c"
	}
}



