/* collection-filter-switcher.c generated by valac 0.29.2.5-8632, the Vala compiler
 * generated from collection-filter-switcher.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 <libgd/gd.h>
#include <gio/gio.h>


#define BOXES_TYPE_COLLECTION_FILTER_SWITCHER (boxes_collection_filter_switcher_get_type ())
#define BOXES_COLLECTION_FILTER_SWITCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_FILTER_SWITCHER, BoxesCollectionFilterSwitcher))
#define BOXES_COLLECTION_FILTER_SWITCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_FILTER_SWITCHER, BoxesCollectionFilterSwitcherClass))
#define BOXES_IS_COLLECTION_FILTER_SWITCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_FILTER_SWITCHER))
#define BOXES_IS_COLLECTION_FILTER_SWITCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_FILTER_SWITCHER))
#define BOXES_COLLECTION_FILTER_SWITCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_FILTER_SWITCHER, BoxesCollectionFilterSwitcherClass))

typedef struct _BoxesCollectionFilterSwitcher BoxesCollectionFilterSwitcher;
typedef struct _BoxesCollectionFilterSwitcherClass BoxesCollectionFilterSwitcherClass;
typedef struct _BoxesCollectionFilterSwitcherPrivate BoxesCollectionFilterSwitcherPrivate;

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

typedef struct _BoxesCollectionFilter BoxesCollectionFilter;
typedef struct _BoxesCollectionFilterClass BoxesCollectionFilterClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#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 BOXES_TYPE_UI (boxes_ui_get_type ())
#define BOXES_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UI, BoxesUI))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_UI_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_UI, BoxesUIIface))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIIface BoxesUIIface;

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

typedef struct _BoxesCollectionView BoxesCollectionView;
typedef struct _BoxesCollectionViewClass BoxesCollectionViewClass;

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

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;

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

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _BoxesCollectionFilterSwitcher {
	GtkButtonBox parent_instance;
	BoxesCollectionFilterSwitcherPrivate * priv;
};

struct _BoxesCollectionFilterSwitcherClass {
	GtkButtonBoxClass parent_class;
};

struct _BoxesCollectionFilterSwitcherPrivate {
	GtkToggleButton* all_button;
	GtkToggleButton* local_button;
	GtkToggleButton* remote_button;
	GtkToggleButton* active_button;
	BoxesCollectionFilter* filter;
};

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 _BoxesAppWindow {
	GtkApplicationWindow parent_instance;
	BoxesAppWindowPrivate * priv;
	BoxesWizardWindow* wizard_window;
	BoxesPropertiesWindow* props_window;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesSelectionbar* selectionbar;
	BoxesDisplayPage* display_page;
	BoxesEmptyBoxes* empty_boxes;
	GtkStack* below_bin;
	BoxesCollectionView* view;
	GSettings* settings;
};

struct _BoxesAppWindowClass {
	GtkApplicationWindowClass parent_class;
};

typedef gboolean (*BoxesCollectionFilterFunc) (BoxesCollectionItem* item, void* user_data);

static gpointer boxes_collection_filter_switcher_parent_class = NULL;

GType boxes_collection_filter_switcher_get_type (void) G_GNUC_CONST;
GType boxes_collection_filter_get_type (void) G_GNUC_CONST;
#define BOXES_COLLECTION_FILTER_SWITCHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_COLLECTION_FILTER_SWITCHER, BoxesCollectionFilterSwitcherPrivate))
enum  {
	BOXES_COLLECTION_FILTER_SWITCHER_DUMMY_PROPERTY
};
GType boxes_app_window_get_type (void) G_GNUC_CONST;
void boxes_collection_filter_switcher_setup_ui (BoxesCollectionFilterSwitcher* self, BoxesAppWindow* window);
GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_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_collection_view_get_type (void) G_GNUC_CONST;
BoxesCollectionFilter* boxes_collection_view_get_filter (BoxesCollectionView* self);
static void boxes_collection_filter_switcher_activate_button (BoxesCollectionFilterSwitcher* self, GtkToggleButton* button);
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
void boxes_collection_filter_set_filter_func (BoxesCollectionFilter* self, BoxesCollectionFilterFunc value, gpointer value_target);
static BoxesCollectionFilterFunc boxes_collection_filter_switcher_get_filter_func (BoxesCollectionFilterSwitcher* self, void** result_target);
static gboolean boxes_collection_filter_switcher_local_filter_func (BoxesCollectionFilterSwitcher* self, BoxesCollectionItem* item);
static gboolean _boxes_collection_filter_switcher_local_filter_func_boxes_collection_filter_func (BoxesCollectionItem* item, gpointer self);
static gboolean boxes_collection_filter_switcher_remote_filter_func (BoxesCollectionFilterSwitcher* self, BoxesCollectionItem* item);
static gboolean _boxes_collection_filter_switcher_remote_filter_func_boxes_collection_filter_func (BoxesCollectionItem* item, gpointer self);
GType boxes_machine_get_type (void) G_GNUC_CONST;
gboolean boxes_machine_get_is_local (BoxesMachine* self);
static void _boxes_collection_filter_switcher_activate_button_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
BoxesCollectionFilterSwitcher* boxes_collection_filter_switcher_new (void);
BoxesCollectionFilterSwitcher* boxes_collection_filter_switcher_construct (GType object_type);
static void boxes_collection_filter_switcher_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	return self ? g_object_ref (self) : NULL;
#line 257 "collection-filter-switcher.c"
}


void boxes_collection_filter_switcher_setup_ui (BoxesCollectionFilterSwitcher* self, BoxesAppWindow* window) {
	BoxesAppWindow* _tmp0_ = NULL;
	BoxesCollectionView* _tmp1_ = NULL;
	BoxesCollectionFilter* _tmp2_ = NULL;
	BoxesCollectionFilter* _tmp3_ = NULL;
	BoxesCollectionFilter* _tmp4_ = NULL;
	BoxesCollectionFilter* _tmp5_ = NULL;
	GtkToggleButton* _tmp6_ = NULL;
	GtkToggleButton* _tmp7_ = NULL;
	BoxesCollectionFilter* _tmp8_ = NULL;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_if_fail (self != NULL);
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_if_fail (window != NULL);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp0_ = window;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp1_ = _tmp0_->view;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp2_ = boxes_collection_view_get_filter (_tmp1_);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp3_ = _tmp2_;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_g_object_unref0 (self->priv->filter);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	self->priv->filter = _tmp4_;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp5_ = self->priv->filter;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_vala_assert (_tmp5_ != NULL, "filter != null");
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp6_ = self->priv->all_button;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	gtk_toggle_button_set_active (_tmp6_, TRUE);
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp7_ = self->priv->all_button;
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	boxes_collection_filter_switcher_activate_button (self, _tmp7_);
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp8_ = self->priv->filter;
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	boxes_collection_filter_set_filter_func (_tmp8_, NULL, NULL);
#line 305 "collection-filter-switcher.c"
}


static gboolean _boxes_collection_filter_switcher_local_filter_func_boxes_collection_filter_func (BoxesCollectionItem* item, gpointer self) {
	gboolean result;
	result = boxes_collection_filter_switcher_local_filter_func ((BoxesCollectionFilterSwitcher*) self, item);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	return result;
#line 314 "collection-filter-switcher.c"
}


static gboolean _boxes_collection_filter_switcher_remote_filter_func_boxes_collection_filter_func (BoxesCollectionItem* item, gpointer self) {
	gboolean result;
	result = boxes_collection_filter_switcher_remote_filter_func ((BoxesCollectionFilterSwitcher*) self, item);
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	return result;
#line 323 "collection-filter-switcher.c"
}


static BoxesCollectionFilterFunc boxes_collection_filter_switcher_get_filter_func (BoxesCollectionFilterSwitcher* self, void** result_target) {
	BoxesCollectionFilterFunc result = NULL;
	GtkToggleButton* _tmp0_ = NULL;
	GtkToggleButton* _tmp1_ = NULL;
	GtkToggleButton* _tmp3_ = NULL;
	GtkToggleButton* _tmp4_ = NULL;
	GtkToggleButton* _tmp6_ = NULL;
	GtkToggleButton* _tmp7_ = NULL;
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 26 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp0_ = self->priv->active_button;
#line 26 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp1_ = self->priv->all_button;
#line 26 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	if (_tmp0_ == _tmp1_) {
#line 343 "collection-filter-switcher.c"
		BoxesCollectionFilterFunc _tmp2_ = NULL;
		void* _tmp2__target = NULL;
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp2_ = NULL;
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp2__target = NULL;
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		*result_target = _tmp2__target;
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		result = _tmp2_;
#line 27 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		return result;
#line 356 "collection-filter-switcher.c"
	}
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp3_ = self->priv->active_button;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp4_ = self->priv->local_button;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	if (_tmp3_ == _tmp4_) {
#line 364 "collection-filter-switcher.c"
		BoxesCollectionFilterFunc _tmp5_ = NULL;
		void* _tmp5__target = NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp5_ = _boxes_collection_filter_switcher_local_filter_func_boxes_collection_filter_func;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp5__target = self;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		*result_target = _tmp5__target;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		result = _tmp5_;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		return result;
#line 377 "collection-filter-switcher.c"
	}
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp6_ = self->priv->active_button;
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp7_ = self->priv->remote_button;
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	if (_tmp6_ == _tmp7_) {
#line 385 "collection-filter-switcher.c"
		BoxesCollectionFilterFunc _tmp8_ = NULL;
		void* _tmp8__target = NULL;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp8_ = _boxes_collection_filter_switcher_remote_filter_func_boxes_collection_filter_func;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp8__target = self;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		*result_target = _tmp8__target;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		result = _tmp8_;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		return result;
#line 398 "collection-filter-switcher.c"
	} else {
		BoxesCollectionFilterFunc _tmp9_ = NULL;
		void* _tmp9__target = NULL;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp9_ = NULL;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp9__target = NULL;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		*result_target = _tmp9__target;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		result = _tmp9_;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		return result;
#line 412 "collection-filter-switcher.c"
	}
}


static gboolean boxes_collection_filter_switcher_local_filter_func (BoxesCollectionFilterSwitcher* self, BoxesCollectionItem* item) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	BoxesCollectionItem* _tmp1_ = NULL;
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_val_if_fail (item != NULL, FALSE);
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp1_ = item;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, BOXES_TYPE_MACHINE)) {
#line 429 "collection-filter-switcher.c"
		BoxesCollectionItem* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp2_ = item;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp3_ = boxes_machine_get_is_local (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp2_) : NULL);
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp4_ = _tmp3_;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp0_ = _tmp4_;
#line 441 "collection-filter-switcher.c"
	} else {
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp0_ = FALSE;
#line 445 "collection-filter-switcher.c"
	}
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	result = _tmp0_;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	return result;
#line 451 "collection-filter-switcher.c"
}


static gboolean boxes_collection_filter_switcher_remote_filter_func (BoxesCollectionFilterSwitcher* self, BoxesCollectionItem* item) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	BoxesCollectionItem* _tmp1_ = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_val_if_fail (item != NULL, FALSE);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp1_ = item;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, BOXES_TYPE_MACHINE)) {
#line 467 "collection-filter-switcher.c"
		BoxesCollectionItem* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp2_ = item;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp3_ = boxes_machine_get_is_local (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, BOXES_TYPE_MACHINE) ? ((BoxesMachine*) _tmp2_) : NULL);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp4_ = _tmp3_;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp0_ = !_tmp4_;
#line 479 "collection-filter-switcher.c"
	} else {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp0_ = FALSE;
#line 483 "collection-filter-switcher.c"
	}
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	result = _tmp0_;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	return result;
#line 489 "collection-filter-switcher.c"
}


static void boxes_collection_filter_switcher_activate_button (BoxesCollectionFilterSwitcher* self, GtkToggleButton* button) {
	GtkToggleButton* _tmp0_ = NULL;
	GtkToggleButton* _tmp1_ = NULL;
	GtkToggleButton* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	GList* _tmp7_ = NULL;
	BoxesCollectionFilter* _tmp14_ = NULL;
	void* _tmp15_ = NULL;
	BoxesCollectionFilterFunc _tmp16_ = NULL;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_if_fail (self != NULL);
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_return_if_fail (button != NULL);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp0_ = button;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp1_ = self->priv->active_button;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	if (_tmp0_ == _tmp1_) {
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		return;
#line 515 "collection-filter-switcher.c"
	}
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp2_ = button;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp3_ = gtk_toggle_button_get_active (_tmp2_);
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp4_ = _tmp3_;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	if (_tmp4_) {
#line 525 "collection-filter-switcher.c"
		GtkToggleButton* _tmp5_ = NULL;
		GtkToggleButton* _tmp6_ = NULL;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp5_ = button;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_g_object_unref0 (self->priv->active_button);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		self->priv->active_button = _tmp6_;
#line 536 "collection-filter-switcher.c"
	}
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp7_ = gtk_container_get_children ((GtkContainer*) self);
#line 540 "collection-filter-switcher.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		child_collection = _tmp7_;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 548 "collection-filter-switcher.c"
			GtkWidget* child = NULL;
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
			child = (GtkWidget*) child_it->data;
#line 552 "collection-filter-switcher.c"
			{
				GtkToggleButton* toggle_button = NULL;
				GtkWidget* _tmp8_ = NULL;
				GtkToggleButton* _tmp9_ = NULL;
				GtkToggleButton* _tmp10_ = NULL;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
				_tmp8_ = child;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
				_tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_toggle_button_get_type ()) ? ((GtkToggleButton*) _tmp8_) : NULL);
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
				toggle_button = _tmp9_;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
				_tmp10_ = toggle_button;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
				if (_tmp10_ != NULL) {
#line 568 "collection-filter-switcher.c"
					GtkToggleButton* _tmp11_ = NULL;
					GtkToggleButton* _tmp12_ = NULL;
					GtkToggleButton* _tmp13_ = NULL;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
					_tmp11_ = toggle_button;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
					_tmp12_ = toggle_button;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
					_tmp13_ = self->priv->active_button;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
					gtk_toggle_button_set_active (_tmp11_, _tmp12_ == _tmp13_);
#line 580 "collection-filter-switcher.c"
				}
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
				_g_object_unref0 (toggle_button);
#line 584 "collection-filter-switcher.c"
			}
		}
#line 52 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
		_g_list_free0 (child_collection);
#line 589 "collection-filter-switcher.c"
	}
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp14_ = self->priv->filter;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_tmp16_ = boxes_collection_filter_switcher_get_filter_func (self, &_tmp15_);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	boxes_collection_filter_set_filter_func (_tmp14_, _tmp16_, _tmp15_);
#line 597 "collection-filter-switcher.c"
}


static void _boxes_collection_filter_switcher_activate_button_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	boxes_collection_filter_switcher_activate_button ((BoxesCollectionFilterSwitcher*) self, _sender);
#line 604 "collection-filter-switcher.c"
}


BoxesCollectionFilterSwitcher* boxes_collection_filter_switcher_construct (GType object_type) {
	BoxesCollectionFilterSwitcher * self = NULL;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	self = (BoxesCollectionFilterSwitcher*) g_object_new (object_type, NULL);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	return self;
#line 614 "collection-filter-switcher.c"
}


BoxesCollectionFilterSwitcher* boxes_collection_filter_switcher_new (void) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	return boxes_collection_filter_switcher_construct (BOXES_TYPE_COLLECTION_FILTER_SWITCHER);
#line 621 "collection-filter-switcher.c"
}


static void boxes_collection_filter_switcher_class_init (BoxesCollectionFilterSwitcherClass * klass) {
	gint BoxesCollectionFilterSwitcher_private_offset;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	boxes_collection_filter_switcher_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	g_type_class_add_private (klass, sizeof (BoxesCollectionFilterSwitcherPrivate));
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_collection_filter_switcher_finalize;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	BoxesCollectionFilterSwitcher_private_offset = g_type_class_get_instance_private_offset (klass);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/collection-filter-switcher.ui");
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "all_button", FALSE, BoxesCollectionFilterSwitcher_private_offset + G_STRUCT_OFFSET (BoxesCollectionFilterSwitcherPrivate, all_button));
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "local_button", FALSE, BoxesCollectionFilterSwitcher_private_offset + G_STRUCT_OFFSET (BoxesCollectionFilterSwitcherPrivate, local_button));
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "remote_button", FALSE, BoxesCollectionFilterSwitcher_private_offset + G_STRUCT_OFFSET (BoxesCollectionFilterSwitcherPrivate, remote_button));
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "activate_button", G_CALLBACK(_boxes_collection_filter_switcher_activate_button_gtk_toggle_button_toggled));
#line 645 "collection-filter-switcher.c"
}


static void boxes_collection_filter_switcher_instance_init (BoxesCollectionFilterSwitcher * self) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	self->priv = BOXES_COLLECTION_FILTER_SWITCHER_GET_PRIVATE (self);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 654 "collection-filter-switcher.c"
}


static void boxes_collection_filter_switcher_finalize (GObject* obj) {
	BoxesCollectionFilterSwitcher * self;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_COLLECTION_FILTER_SWITCHER, BoxesCollectionFilterSwitcher);
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_g_object_unref0 (self->priv->all_button);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_g_object_unref0 (self->priv->local_button);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_g_object_unref0 (self->priv->remote_button);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_g_object_unref0 (self->priv->active_button);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	_g_object_unref0 (self->priv->filter);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/collection-filter-switcher.vala"
	G_OBJECT_CLASS (boxes_collection_filter_switcher_parent_class)->finalize (obj);
#line 674 "collection-filter-switcher.c"
}


GType boxes_collection_filter_switcher_get_type (void) {
	static volatile gsize boxes_collection_filter_switcher_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_collection_filter_switcher_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesCollectionFilterSwitcherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_collection_filter_switcher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesCollectionFilterSwitcher), 0, (GInstanceInitFunc) boxes_collection_filter_switcher_instance_init, NULL };
		GType boxes_collection_filter_switcher_type_id;
		boxes_collection_filter_switcher_type_id = g_type_register_static (gtk_button_box_get_type (), "BoxesCollectionFilterSwitcher", &g_define_type_info, 0);
		g_once_init_leave (&boxes_collection_filter_switcher_type_id__volatile, boxes_collection_filter_switcher_type_id);
	}
	return boxes_collection_filter_switcher_type_id__volatile;
}



