/* filters-box.c generated by valac 0.56.19, the Vala compiler
 * generated from filters-box.vala, do not modify */

#include <gtk/gtk.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <adwaita.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX (proton_plus_widgets_filters_box_get_type ())
#define PROTON_PLUS_WIDGETS_FILTERS_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX, ProtonPlusWidgetsFiltersBox))
#define PROTON_PLUS_WIDGETS_FILTERS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX, ProtonPlusWidgetsFiltersBoxClass))
#define PROTON_PLUS_WIDGETS_IS_FILTERS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX))
#define PROTON_PLUS_WIDGETS_IS_FILTERS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX))
#define PROTON_PLUS_WIDGETS_FILTERS_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX, ProtonPlusWidgetsFiltersBoxClass))

typedef struct _ProtonPlusWidgetsFiltersBox ProtonPlusWidgetsFiltersBox;
typedef struct _ProtonPlusWidgetsFiltersBoxClass ProtonPlusWidgetsFiltersBoxClass;
typedef struct _ProtonPlusWidgetsFiltersBoxPrivate ProtonPlusWidgetsFiltersBoxPrivate;
enum  {
	PROTON_PLUS_WIDGETS_FILTERS_BOX_0_PROPERTY,
	PROTON_PLUS_WIDGETS_FILTERS_BOX_INSTALLED_ONLY_PROPERTY,
	PROTON_PLUS_WIDGETS_FILTERS_BOX_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_filters_box_properties[PROTON_PLUS_WIDGETS_FILTERS_BOX_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define PROTON_PLUS_WIDGETS_TYPE_WINDOW (proton_plus_widgets_window_get_type ())
#define PROTON_PLUS_WIDGETS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_TYPE_WINDOW, ProtonPlusWidgetsWindow))
#define PROTON_PLUS_WIDGETS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_TYPE_WINDOW, ProtonPlusWidgetsWindowClass))
#define PROTON_PLUS_WIDGETS_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_TYPE_WINDOW))
#define PROTON_PLUS_WIDGETS_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_TYPE_WINDOW))
#define PROTON_PLUS_WIDGETS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_TYPE_WINDOW, ProtonPlusWidgetsWindowClass))

typedef struct _ProtonPlusWidgetsWindow ProtonPlusWidgetsWindow;
typedef struct _ProtonPlusWidgetsWindowClass ProtonPlusWidgetsWindowClass;

struct _ProtonPlusWidgetsFiltersBox {
	GtkBox parent_instance;
	ProtonPlusWidgetsFiltersBoxPrivate * priv;
};

struct _ProtonPlusWidgetsFiltersBoxClass {
	GtkBoxClass parent_class;
};

struct _ProtonPlusWidgetsFiltersBoxPrivate {
	GtkToggleButton* installed_only_button;
	GtkToggleButton* used_only_button;
	GtkToggleButton* unused_only_button;
};

static gint ProtonPlusWidgetsFiltersBox_private_offset;
static gpointer proton_plus_widgets_filters_box_parent_class = NULL;
VALA_EXTERN ProtonPlusWidgetsWindow* proton_plus_widgets_application_window;

VALA_EXTERN GType proton_plus_widgets_filters_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsFiltersBox, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsFiltersBox* proton_plus_widgets_filters_box_new (void);
VALA_EXTERN ProtonPlusWidgetsFiltersBox* proton_plus_widgets_filters_box_construct (GType object_type);
static void __lambda10_ (ProtonPlusWidgetsFiltersBox* self);
static void ___lambda10__g_object_notify (GObject* _sender,
                                   GParamSpec* pspec,
                                   gpointer self);
static void proton_plus_widgets_filters_box_used_only_button_active_changed (ProtonPlusWidgetsFiltersBox* self);
static void _proton_plus_widgets_filters_box_used_only_button_active_changed_g_object_notify (GObject* _sender,
                                                                                       GParamSpec* pspec,
                                                                                       gpointer self);
static void proton_plus_widgets_filters_box_unused_only_button_active_changed (ProtonPlusWidgetsFiltersBox* self);
static void _proton_plus_widgets_filters_box_unused_only_button_active_changed_g_object_notify (GObject* _sender,
                                                                                         GParamSpec* pspec,
                                                                                         gpointer self);
VALA_EXTERN void proton_plus_widgets_filters_box_apply_filters (ProtonPlusWidgetsFiltersBox* self);
VALA_EXTERN GType proton_plus_widgets_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsWindow, g_object_unref)
VALA_EXTERN void proton_plus_widgets_window_set_only_show_unused (ProtonPlusWidgetsWindow* self,
                                                      gboolean value);
VALA_EXTERN void proton_plus_widgets_window_set_only_show_used (ProtonPlusWidgetsWindow* self,
                                                    gboolean value);
VALA_EXTERN gboolean proton_plus_widgets_filters_box_get_installed_only (ProtonPlusWidgetsFiltersBox* self);
VALA_EXTERN void proton_plus_widgets_filters_box_set_installed_only (ProtonPlusWidgetsFiltersBox* self,
                                                         gboolean value);
static void proton_plus_widgets_filters_box_finalize (GObject * obj);
static GType proton_plus_widgets_filters_box_get_type_once (void);
static void _vala_proton_plus_widgets_filters_box_get_property (GObject * object,
                                                         guint property_id,
                                                         GValue * value,
                                                         GParamSpec * pspec);
static void _vala_proton_plus_widgets_filters_box_set_property (GObject * object,
                                                         guint property_id,
                                                         const GValue * value,
                                                         GParamSpec * pspec);

static inline gpointer
proton_plus_widgets_filters_box_get_instance_private (ProtonPlusWidgetsFiltersBox* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsFiltersBox_private_offset);
}

static void
__lambda10_ (ProtonPlusWidgetsFiltersBox* self)
{
	g_object_notify ((GObject*) self, "installed-only");
}

static void
___lambda10__g_object_notify (GObject* _sender,
                              GParamSpec* pspec,
                              gpointer self)
{
	__lambda10_ ((ProtonPlusWidgetsFiltersBox*) self);
}

static void
_proton_plus_widgets_filters_box_used_only_button_active_changed_g_object_notify (GObject* _sender,
                                                                                  GParamSpec* pspec,
                                                                                  gpointer self)
{
	proton_plus_widgets_filters_box_used_only_button_active_changed ((ProtonPlusWidgetsFiltersBox*) self);
}

static void
_proton_plus_widgets_filters_box_unused_only_button_active_changed_g_object_notify (GObject* _sender,
                                                                                    GParamSpec* pspec,
                                                                                    gpointer self)
{
	proton_plus_widgets_filters_box_unused_only_button_active_changed ((ProtonPlusWidgetsFiltersBox*) self);
}

ProtonPlusWidgetsFiltersBox*
proton_plus_widgets_filters_box_construct (GType object_type)
{
	ProtonPlusWidgetsFiltersBox * self = NULL;
	GtkToggleButton* _tmp0_;
	GtkToggleButton* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	AdwButtonContent* _tmp4_ = NULL;
	AdwButtonContent* _tmp5_;
	GtkToggleButton* _tmp6_;
	GtkToggleButton* _tmp7_;
	GtkToggleButton* _tmp8_;
	GtkToggleButton* _tmp9_;
	GtkToggleButton* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	AdwButtonContent* _tmp13_ = NULL;
	AdwButtonContent* _tmp14_;
	GtkToggleButton* _tmp15_;
	GtkToggleButton* _tmp16_;
	GtkToggleButton* _tmp17_;
	GtkToggleButton* _tmp18_;
	GtkToggleButton* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	AdwButtonContent* _tmp22_ = NULL;
	AdwButtonContent* _tmp23_;
	GtkToggleButton* _tmp24_;
	GtkToggleButton* _tmp25_;
	GtkToggleButton* _tmp26_;
	GtkToggleButton* _tmp27_;
	GtkToggleButton* _tmp28_;
	GtkToggleButton* _tmp29_;
	self = (ProtonPlusWidgetsFiltersBox*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, "spacing", 15, NULL);
	gtk_widget_set_halign ((GtkWidget*) self, GTK_ALIGN_CENTER);
	gtk_widget_add_css_class ((GtkWidget*) self, "card");
	gtk_widget_add_css_class ((GtkWidget*) self, "p-10");
	_tmp0_ = (GtkToggleButton*) gtk_toggle_button_new ();
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->installed_only_button);
	self->priv->installed_only_button = _tmp0_;
	_tmp1_ = self->priv->installed_only_button;
	_tmp2_ = g_strdup ("boxes-stacked-symbolic");
	_tmp3_ = g_strdup (_ ("Installed"));
	_tmp4_ = (AdwButtonContent*) adw_button_content_new ();
	adw_button_content_set_icon_name (_tmp4_, _tmp2_);
	_g_free0 (_tmp2_);
	adw_button_content_set_label (_tmp4_, _tmp3_);
	_g_free0 (_tmp3_);
	g_object_ref_sink (_tmp4_);
	_tmp5_ = _tmp4_;
	gtk_button_set_child ((GtkButton*) _tmp1_, (GtkWidget*) _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = self->priv->installed_only_button;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp6_, _ ("Show installed runners"));
	_tmp7_ = self->priv->installed_only_button;
	gtk_widget_add_css_class ((GtkWidget*) _tmp7_, "flat");
	_tmp8_ = self->priv->installed_only_button;
	g_signal_connect_object ((GObject*) _tmp8_, "notify::active", (GCallback) ___lambda10__g_object_notify, self, 0);
	_tmp9_ = (GtkToggleButton*) gtk_toggle_button_new ();
	g_object_ref_sink (_tmp9_);
	_g_object_unref0 (self->priv->used_only_button);
	self->priv->used_only_button = _tmp9_;
	_tmp10_ = self->priv->used_only_button;
	_tmp11_ = g_strdup ("box-open-symbolic");
	_tmp12_ = g_strdup (_ ("Used"));
	_tmp13_ = (AdwButtonContent*) adw_button_content_new ();
	adw_button_content_set_icon_name (_tmp13_, _tmp11_);
	_g_free0 (_tmp11_);
	adw_button_content_set_label (_tmp13_, _tmp12_);
	_g_free0 (_tmp12_);
	g_object_ref_sink (_tmp13_);
	_tmp14_ = _tmp13_;
	gtk_button_set_child ((GtkButton*) _tmp10_, (GtkWidget*) _tmp14_);
	_g_object_unref0 (_tmp14_);
	_tmp15_ = self->priv->used_only_button;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp15_, _ ("Show runners that are used by one game or more"));
	_tmp16_ = self->priv->used_only_button;
	gtk_widget_add_css_class ((GtkWidget*) _tmp16_, "flat");
	_tmp17_ = self->priv->used_only_button;
	g_signal_connect_object ((GObject*) _tmp17_, "notify::active", (GCallback) _proton_plus_widgets_filters_box_used_only_button_active_changed_g_object_notify, self, 0);
	_tmp18_ = (GtkToggleButton*) gtk_toggle_button_new ();
	g_object_ref_sink (_tmp18_);
	_g_object_unref0 (self->priv->unused_only_button);
	self->priv->unused_only_button = _tmp18_;
	_tmp19_ = self->priv->unused_only_button;
	_tmp20_ = g_strdup ("box-archive-symbolic");
	_tmp21_ = g_strdup (_ ("Unused"));
	_tmp22_ = (AdwButtonContent*) adw_button_content_new ();
	adw_button_content_set_icon_name (_tmp22_, _tmp20_);
	_g_free0 (_tmp20_);
	adw_button_content_set_label (_tmp22_, _tmp21_);
	_g_free0 (_tmp21_);
	g_object_ref_sink (_tmp22_);
	_tmp23_ = _tmp22_;
	gtk_button_set_child ((GtkButton*) _tmp19_, (GtkWidget*) _tmp23_);
	_g_object_unref0 (_tmp23_);
	_tmp24_ = self->priv->unused_only_button;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp24_, _ ("Show runners that aren't used by any games"));
	_tmp25_ = self->priv->unused_only_button;
	gtk_widget_add_css_class ((GtkWidget*) _tmp25_, "flat");
	_tmp26_ = self->priv->unused_only_button;
	g_signal_connect_object ((GObject*) _tmp26_, "notify::active", (GCallback) _proton_plus_widgets_filters_box_unused_only_button_active_changed_g_object_notify, self, 0);
	_tmp27_ = self->priv->installed_only_button;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp27_);
	_tmp28_ = self->priv->used_only_button;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp28_);
	_tmp29_ = self->priv->unused_only_button;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp29_);
	return self;
}

ProtonPlusWidgetsFiltersBox*
proton_plus_widgets_filters_box_new (void)
{
	return proton_plus_widgets_filters_box_construct (PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX);
}

void
proton_plus_widgets_filters_box_apply_filters (ProtonPlusWidgetsFiltersBox* self)
{
	GtkToggleButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	GtkToggleButton* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->used_only_button;
	_tmp1_ = gtk_toggle_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		proton_plus_widgets_filters_box_used_only_button_active_changed (self);
	}
	_tmp3_ = self->priv->unused_only_button;
	_tmp4_ = gtk_toggle_button_get_active (_tmp3_);
	_tmp5_ = _tmp4_;
	if (_tmp5_) {
		proton_plus_widgets_filters_box_unused_only_button_active_changed (self);
	}
}

static void
proton_plus_widgets_filters_box_used_only_button_active_changed (ProtonPlusWidgetsFiltersBox* self)
{
	GtkToggleButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ProtonPlusWidgetsWindow* _tmp5_;
	GtkToggleButton* _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp8_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->used_only_button;
	_tmp1_ = gtk_toggle_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		GtkToggleButton* _tmp3_;
		ProtonPlusWidgetsWindow* _tmp4_;
		_tmp3_ = self->priv->unused_only_button;
		gtk_toggle_button_set_active (_tmp3_, FALSE);
		_tmp4_ = proton_plus_widgets_application_window;
		proton_plus_widgets_window_set_only_show_unused (_tmp4_, FALSE);
	}
	_tmp5_ = proton_plus_widgets_application_window;
	_tmp6_ = self->priv->used_only_button;
	_tmp7_ = gtk_toggle_button_get_active (_tmp6_);
	_tmp8_ = _tmp7_;
	proton_plus_widgets_window_set_only_show_used (_tmp5_, _tmp8_);
}

static void
proton_plus_widgets_filters_box_unused_only_button_active_changed (ProtonPlusWidgetsFiltersBox* self)
{
	GtkToggleButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ProtonPlusWidgetsWindow* _tmp5_;
	GtkToggleButton* _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp8_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->unused_only_button;
	_tmp1_ = gtk_toggle_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		GtkToggleButton* _tmp3_;
		ProtonPlusWidgetsWindow* _tmp4_;
		_tmp3_ = self->priv->used_only_button;
		gtk_toggle_button_set_active (_tmp3_, FALSE);
		_tmp4_ = proton_plus_widgets_application_window;
		proton_plus_widgets_window_set_only_show_used (_tmp4_, FALSE);
	}
	_tmp5_ = proton_plus_widgets_application_window;
	_tmp6_ = self->priv->unused_only_button;
	_tmp7_ = gtk_toggle_button_get_active (_tmp6_);
	_tmp8_ = _tmp7_;
	proton_plus_widgets_window_set_only_show_unused (_tmp5_, _tmp8_);
}

gboolean
proton_plus_widgets_filters_box_get_installed_only (ProtonPlusWidgetsFiltersBox* self)
{
	gboolean result;
	GtkToggleButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->installed_only_button;
	_tmp1_ = gtk_toggle_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	result = _tmp2_;
	return result;
}

void
proton_plus_widgets_filters_box_set_installed_only (ProtonPlusWidgetsFiltersBox* self,
                                                    gboolean value)
{
	GtkToggleButton* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->installed_only_button;
	gtk_toggle_button_set_active (_tmp0_, value);
	g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_filters_box_properties[PROTON_PLUS_WIDGETS_FILTERS_BOX_INSTALLED_ONLY_PROPERTY]);
}

static void
proton_plus_widgets_filters_box_class_init (ProtonPlusWidgetsFiltersBoxClass * klass,
                                            gpointer klass_data)
{
	proton_plus_widgets_filters_box_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsFiltersBox_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_filters_box_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_filters_box_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_filters_box_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_FILTERS_BOX_INSTALLED_ONLY_PROPERTY, proton_plus_widgets_filters_box_properties[PROTON_PLUS_WIDGETS_FILTERS_BOX_INSTALLED_ONLY_PROPERTY] = g_param_spec_boolean ("installed-only", "installed-only", "installed-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_widgets_filters_box_instance_init (ProtonPlusWidgetsFiltersBox * self,
                                               gpointer klass)
{
	self->priv = proton_plus_widgets_filters_box_get_instance_private (self);
}

static void
proton_plus_widgets_filters_box_finalize (GObject * obj)
{
	ProtonPlusWidgetsFiltersBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX, ProtonPlusWidgetsFiltersBox);
	_g_object_unref0 (self->priv->installed_only_button);
	_g_object_unref0 (self->priv->used_only_button);
	_g_object_unref0 (self->priv->unused_only_button);
	G_OBJECT_CLASS (proton_plus_widgets_filters_box_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_filters_box_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsFiltersBoxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_filters_box_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsFiltersBox), 0, (GInstanceInitFunc) proton_plus_widgets_filters_box_instance_init, NULL };
	GType proton_plus_widgets_filters_box_type_id;
	proton_plus_widgets_filters_box_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsFiltersBox", &g_define_type_info, 0);
	ProtonPlusWidgetsFiltersBox_private_offset = g_type_add_instance_private (proton_plus_widgets_filters_box_type_id, sizeof (ProtonPlusWidgetsFiltersBoxPrivate));
	return proton_plus_widgets_filters_box_type_id;
}

GType
proton_plus_widgets_filters_box_get_type (void)
{
	static volatile gsize proton_plus_widgets_filters_box_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_filters_box_type_id__once)) {
		GType proton_plus_widgets_filters_box_type_id;
		proton_plus_widgets_filters_box_type_id = proton_plus_widgets_filters_box_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_filters_box_type_id__once, proton_plus_widgets_filters_box_type_id);
	}
	return proton_plus_widgets_filters_box_type_id__once;
}

static void
_vala_proton_plus_widgets_filters_box_get_property (GObject * object,
                                                    guint property_id,
                                                    GValue * value,
                                                    GParamSpec * pspec)
{
	ProtonPlusWidgetsFiltersBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX, ProtonPlusWidgetsFiltersBox);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_FILTERS_BOX_INSTALLED_ONLY_PROPERTY:
		g_value_set_boolean (value, proton_plus_widgets_filters_box_get_installed_only (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_filters_box_set_property (GObject * object,
                                                    guint property_id,
                                                    const GValue * value,
                                                    GParamSpec * pspec)
{
	ProtonPlusWidgetsFiltersBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_TYPE_FILTERS_BOX, ProtonPlusWidgetsFiltersBox);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_FILTERS_BOX_INSTALLED_ONLY_PROPERTY:
		proton_plus_widgets_filters_box_set_installed_only (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

