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

#include <gtk/gtk.h>
#include <glib-object.h>
#include <adwaita.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gdk/gdk.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_PROFILE_BUTTON (proton_plus_widgets_profile_button_get_type ())
#define PROTON_PLUS_WIDGETS_PROFILE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON, ProtonPlusWidgetsProfileButton))
#define PROTON_PLUS_WIDGETS_PROFILE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON, ProtonPlusWidgetsProfileButtonClass))
#define PROTON_PLUS_WIDGETS_IS_PROFILE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON))
#define PROTON_PLUS_WIDGETS_IS_PROFILE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON))
#define PROTON_PLUS_WIDGETS_PROFILE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON, ProtonPlusWidgetsProfileButtonClass))

typedef struct _ProtonPlusWidgetsProfileButton ProtonPlusWidgetsProfileButton;
typedef struct _ProtonPlusWidgetsProfileButtonClass ProtonPlusWidgetsProfileButtonClass;
typedef struct _ProtonPlusWidgetsProfileButtonPrivate ProtonPlusWidgetsProfileButtonPrivate;

#define PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE (proton_plus_models_steam_profile_get_type ())
#define PROTON_PLUS_MODELS_STEAM_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE, ProtonPlusModelsSteamProfile))
#define PROTON_PLUS_MODELS_STEAM_PROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE, ProtonPlusModelsSteamProfileClass))
#define PROTON_PLUS_MODELS_IS_STEAM_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE))
#define PROTON_PLUS_MODELS_IS_STEAM_PROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE))
#define PROTON_PLUS_MODELS_STEAM_PROFILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE, ProtonPlusModelsSteamProfileClass))

typedef struct _ProtonPlusModelsSteamProfile ProtonPlusModelsSteamProfile;
typedef struct _ProtonPlusModelsSteamProfileClass ProtonPlusModelsSteamProfileClass;

#define PROTON_PLUS_WIDGETS_TYPE_PROFILE_DIALOG (proton_plus_widgets_profile_dialog_get_type ())
#define PROTON_PLUS_WIDGETS_PROFILE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_TYPE_PROFILE_DIALOG, ProtonPlusWidgetsProfileDialog))
#define PROTON_PLUS_WIDGETS_PROFILE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_TYPE_PROFILE_DIALOG, ProtonPlusWidgetsProfileDialogClass))
#define PROTON_PLUS_WIDGETS_IS_PROFILE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_TYPE_PROFILE_DIALOG))
#define PROTON_PLUS_WIDGETS_IS_PROFILE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_TYPE_PROFILE_DIALOG))
#define PROTON_PLUS_WIDGETS_PROFILE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_TYPE_PROFILE_DIALOG, ProtonPlusWidgetsProfileDialogClass))

typedef struct _ProtonPlusWidgetsProfileDialog ProtonPlusWidgetsProfileDialog;
typedef struct _ProtonPlusWidgetsProfileDialogClass ProtonPlusWidgetsProfileDialogClass;
enum  {
	PROTON_PLUS_WIDGETS_PROFILE_BUTTON_0_PROPERTY,
	PROTON_PLUS_WIDGETS_PROFILE_BUTTON_GESTURE_CLICK_PROPERTY,
	PROTON_PLUS_WIDGETS_PROFILE_BUTTON_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_profile_button_properties[PROTON_PLUS_WIDGETS_PROFILE_BUTTON_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsProfileButton {
	GtkBox parent_instance;
	ProtonPlusWidgetsProfileButtonPrivate * priv;
};

struct _ProtonPlusWidgetsProfileButtonClass {
	GtkBoxClass parent_class;
};

struct _ProtonPlusWidgetsProfileButtonPrivate {
	ProtonPlusModelsSteamProfile* _profile;
	ProtonPlusWidgetsProfileDialog* _profile_dialog;
	GtkImage* _profile_image;
	AdwAvatar* _profile_avatar;
	GtkLabel* _profile_label;
	GtkGestureClick* _gesture_click;
};

static gint ProtonPlusWidgetsProfileButton_private_offset;
static gpointer proton_plus_widgets_profile_button_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_profile_button_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsProfileButton, g_object_unref)
VALA_EXTERN GType proton_plus_models_steam_profile_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsSteamProfile, g_object_unref)
VALA_EXTERN GType proton_plus_widgets_profile_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsProfileDialog, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsProfileButton* proton_plus_widgets_profile_button_new (ProtonPlusModelsSteamProfile* profile,
                                                                        ProtonPlusWidgetsProfileDialog* profile_dialog);
VALA_EXTERN ProtonPlusWidgetsProfileButton* proton_plus_widgets_profile_button_construct (GType object_type,
                                                                              ProtonPlusModelsSteamProfile* profile,
                                                                              ProtonPlusWidgetsProfileDialog* profile_dialog);
static void proton_plus_widgets_profile_button_set_profile (ProtonPlusWidgetsProfileButton* self,
                                                     ProtonPlusModelsSteamProfile* value);
static void proton_plus_widgets_profile_button_set_profile_dialog (ProtonPlusWidgetsProfileButton* self,
                                                            ProtonPlusWidgetsProfileDialog* value);
VALA_EXTERN void proton_plus_widgets_profile_button_set_gesture_click (ProtonPlusWidgetsProfileButton* self,
                                                           GtkGestureClick* value);
VALA_EXTERN const gchar* proton_plus_models_steam_profile_get_image_path (ProtonPlusModelsSteamProfile* self);
static void proton_plus_widgets_profile_button_set_profile_image (ProtonPlusWidgetsProfileButton* self,
                                                           GtkImage* value);
static void proton_plus_widgets_profile_button_set_profile_avatar (ProtonPlusWidgetsProfileButton* self,
                                                            AdwAvatar* value);
static AdwAvatar* proton_plus_widgets_profile_button_get_profile_avatar (ProtonPlusWidgetsProfileButton* self);
static GtkImage* proton_plus_widgets_profile_button_get_profile_image (ProtonPlusWidgetsProfileButton* self);
VALA_EXTERN const gchar* proton_plus_models_steam_profile_get_username (ProtonPlusModelsSteamProfile* self);
static void proton_plus_widgets_profile_button_set_profile_label (ProtonPlusWidgetsProfileButton* self,
                                                           GtkLabel* value);
VALA_EXTERN GtkGestureClick* proton_plus_widgets_profile_button_get_gesture_click (ProtonPlusWidgetsProfileButton* self);
static GtkLabel* proton_plus_widgets_profile_button_get_profile_label (ProtonPlusWidgetsProfileButton* self);
static ProtonPlusModelsSteamProfile* proton_plus_widgets_profile_button_get_profile (ProtonPlusWidgetsProfileButton* self);
static ProtonPlusWidgetsProfileDialog* proton_plus_widgets_profile_button_get_profile_dialog (ProtonPlusWidgetsProfileButton* self);
static void proton_plus_widgets_profile_button_finalize (GObject * obj);
static GType proton_plus_widgets_profile_button_get_type_once (void);
static void _vala_proton_plus_widgets_profile_button_get_property (GObject * object,
                                                            guint property_id,
                                                            GValue * value,
                                                            GParamSpec * pspec);
static void _vala_proton_plus_widgets_profile_button_set_property (GObject * object,
                                                            guint property_id,
                                                            const GValue * value,
                                                            GParamSpec * pspec);

static inline gpointer
proton_plus_widgets_profile_button_get_instance_private (ProtonPlusWidgetsProfileButton* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsProfileButton_private_offset);
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

ProtonPlusWidgetsProfileButton*
proton_plus_widgets_profile_button_construct (GType object_type,
                                              ProtonPlusModelsSteamProfile* profile,
                                              ProtonPlusWidgetsProfileDialog* profile_dialog)
{
	ProtonPlusWidgetsProfileButton * self = NULL;
	GtkGestureClick* _tmp0_;
	GtkGestureClick* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	GtkImage* _tmp4_;
	GtkImage* _tmp5_;
	AdwAvatar* _tmp6_;
	AdwAvatar* _tmp7_;
	AdwAvatar* _tmp8_;
	GtkImage* _tmp9_;
	GdkPaintable* _tmp10_;
	AdwAvatar* _tmp11_;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	GtkLabel* _tmp14_;
	GtkLabel* _tmp15_;
	GtkGestureClick* _tmp16_;
	GtkEventController* _tmp17_;
	AdwAvatar* _tmp18_;
	GtkLabel* _tmp19_;
	g_return_val_if_fail (profile != NULL, NULL);
	g_return_val_if_fail (profile_dialog != NULL, NULL);
	self = (ProtonPlusWidgetsProfileButton*) g_object_new (object_type, NULL);
	proton_plus_widgets_profile_button_set_profile (self, profile);
	proton_plus_widgets_profile_button_set_profile_dialog (self, profile_dialog);
	_tmp0_ = (GtkGestureClick*) gtk_gesture_click_new ();
	_tmp1_ = _tmp0_;
	proton_plus_widgets_profile_button_set_gesture_click (self, _tmp1_);
	_g_object_unref0 (_tmp1_);
	_tmp2_ = proton_plus_models_steam_profile_get_image_path (profile);
	_tmp3_ = _tmp2_;
	_tmp4_ = (GtkImage*) gtk_image_new_from_file (_tmp3_);
	g_object_ref_sink (_tmp4_);
	_tmp5_ = _tmp4_;
	proton_plus_widgets_profile_button_set_profile_image (self, _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = (AdwAvatar*) adw_avatar_new (96, NULL, FALSE);
	g_object_ref_sink (_tmp6_);
	_tmp7_ = _tmp6_;
	proton_plus_widgets_profile_button_set_profile_avatar (self, _tmp7_);
	_g_object_unref0 (_tmp7_);
	_tmp8_ = self->priv->_profile_avatar;
	_tmp9_ = self->priv->_profile_image;
	_tmp10_ = gtk_image_get_paintable (_tmp9_);
	adw_avatar_set_custom_image (_tmp8_, _tmp10_);
	_tmp11_ = self->priv->_profile_avatar;
	gtk_widget_set_can_focus ((GtkWidget*) _tmp11_, TRUE);
	_tmp12_ = proton_plus_models_steam_profile_get_username (profile);
	_tmp13_ = _tmp12_;
	_tmp14_ = (GtkLabel*) gtk_label_new (_tmp13_);
	g_object_ref_sink (_tmp14_);
	_tmp15_ = _tmp14_;
	proton_plus_widgets_profile_button_set_profile_label (self, _tmp15_);
	_g_object_unref0 (_tmp15_);
	gtk_orientable_set_orientation ((GtkOrientable*) self, GTK_ORIENTATION_VERTICAL);
	gtk_widget_set_halign ((GtkWidget*) self, GTK_ALIGN_CENTER);
	gtk_box_set_spacing ((GtkBox*) self, 10);
	gtk_widget_set_margin_start ((GtkWidget*) self, 10);
	gtk_widget_set_margin_end ((GtkWidget*) self, 10);
	gtk_widget_set_margin_bottom ((GtkWidget*) self, 10);
	gtk_widget_add_css_class ((GtkWidget*) self, "p-10");
	gtk_widget_add_css_class ((GtkWidget*) self, "activatable");
	gtk_widget_add_css_class ((GtkWidget*) self, "card");
	_tmp16_ = self->priv->_gesture_click;
	_tmp17_ = _g_object_ref0 ((GtkEventController*) _tmp16_);
	gtk_widget_add_controller ((GtkWidget*) self, _tmp17_);
	_tmp18_ = self->priv->_profile_avatar;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp18_);
	_tmp19_ = self->priv->_profile_label;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp19_);
	return self;
}

ProtonPlusWidgetsProfileButton*
proton_plus_widgets_profile_button_new (ProtonPlusModelsSteamProfile* profile,
                                        ProtonPlusWidgetsProfileDialog* profile_dialog)
{
	return proton_plus_widgets_profile_button_construct (PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON, profile, profile_dialog);
}

static ProtonPlusModelsSteamProfile*
proton_plus_widgets_profile_button_get_profile (ProtonPlusWidgetsProfileButton* self)
{
	ProtonPlusModelsSteamProfile* result;
	ProtonPlusModelsSteamProfile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_profile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_profile_button_set_profile (ProtonPlusWidgetsProfileButton* self,
                                                ProtonPlusModelsSteamProfile* value)
{
	ProtonPlusModelsSteamProfile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_profile);
	self->priv->_profile = _tmp0_;
}

static ProtonPlusWidgetsProfileDialog*
proton_plus_widgets_profile_button_get_profile_dialog (ProtonPlusWidgetsProfileButton* self)
{
	ProtonPlusWidgetsProfileDialog* result;
	ProtonPlusWidgetsProfileDialog* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_profile_dialog;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_profile_button_set_profile_dialog (ProtonPlusWidgetsProfileButton* self,
                                                       ProtonPlusWidgetsProfileDialog* value)
{
	ProtonPlusWidgetsProfileDialog* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_profile_dialog);
	self->priv->_profile_dialog = _tmp0_;
}

static GtkImage*
proton_plus_widgets_profile_button_get_profile_image (ProtonPlusWidgetsProfileButton* self)
{
	GtkImage* result;
	GtkImage* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_profile_image;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_profile_button_set_profile_image (ProtonPlusWidgetsProfileButton* self,
                                                      GtkImage* value)
{
	GtkImage* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_profile_image);
	self->priv->_profile_image = _tmp0_;
}

static AdwAvatar*
proton_plus_widgets_profile_button_get_profile_avatar (ProtonPlusWidgetsProfileButton* self)
{
	AdwAvatar* result;
	AdwAvatar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_profile_avatar;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_profile_button_set_profile_avatar (ProtonPlusWidgetsProfileButton* self,
                                                       AdwAvatar* value)
{
	AdwAvatar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_profile_avatar);
	self->priv->_profile_avatar = _tmp0_;
}

static GtkLabel*
proton_plus_widgets_profile_button_get_profile_label (ProtonPlusWidgetsProfileButton* self)
{
	GtkLabel* result;
	GtkLabel* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_profile_label;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_profile_button_set_profile_label (ProtonPlusWidgetsProfileButton* self,
                                                      GtkLabel* value)
{
	GtkLabel* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_profile_label);
	self->priv->_profile_label = _tmp0_;
}

GtkGestureClick*
proton_plus_widgets_profile_button_get_gesture_click (ProtonPlusWidgetsProfileButton* self)
{
	GtkGestureClick* result;
	GtkGestureClick* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_gesture_click;
	result = _tmp0_;
	return result;
}

void
proton_plus_widgets_profile_button_set_gesture_click (ProtonPlusWidgetsProfileButton* self,
                                                      GtkGestureClick* value)
{
	GtkGestureClick* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_profile_button_get_gesture_click (self);
	if (old_value != value) {
		GtkGestureClick* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_gesture_click);
		self->priv->_gesture_click = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_profile_button_properties[PROTON_PLUS_WIDGETS_PROFILE_BUTTON_GESTURE_CLICK_PROPERTY]);
	}
}

static void
proton_plus_widgets_profile_button_class_init (ProtonPlusWidgetsProfileButtonClass * klass,
                                               gpointer klass_data)
{
	proton_plus_widgets_profile_button_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsProfileButton_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_profile_button_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_profile_button_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_profile_button_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_PROFILE_BUTTON_GESTURE_CLICK_PROPERTY, proton_plus_widgets_profile_button_properties[PROTON_PLUS_WIDGETS_PROFILE_BUTTON_GESTURE_CLICK_PROPERTY] = g_param_spec_object ("gesture-click", "gesture-click", "gesture-click", gtk_gesture_click_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_widgets_profile_button_instance_init (ProtonPlusWidgetsProfileButton * self,
                                                  gpointer klass)
{
	self->priv = proton_plus_widgets_profile_button_get_instance_private (self);
}

static void
proton_plus_widgets_profile_button_finalize (GObject * obj)
{
	ProtonPlusWidgetsProfileButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON, ProtonPlusWidgetsProfileButton);
	_g_object_unref0 (self->priv->_profile);
	_g_object_unref0 (self->priv->_profile_dialog);
	_g_object_unref0 (self->priv->_profile_image);
	_g_object_unref0 (self->priv->_profile_avatar);
	_g_object_unref0 (self->priv->_profile_label);
	_g_object_unref0 (self->priv->_gesture_click);
	G_OBJECT_CLASS (proton_plus_widgets_profile_button_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_profile_button_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsProfileButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_profile_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsProfileButton), 0, (GInstanceInitFunc) proton_plus_widgets_profile_button_instance_init, NULL };
	GType proton_plus_widgets_profile_button_type_id;
	proton_plus_widgets_profile_button_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsProfileButton", &g_define_type_info, 0);
	ProtonPlusWidgetsProfileButton_private_offset = g_type_add_instance_private (proton_plus_widgets_profile_button_type_id, sizeof (ProtonPlusWidgetsProfileButtonPrivate));
	return proton_plus_widgets_profile_button_type_id;
}

GType
proton_plus_widgets_profile_button_get_type (void)
{
	static volatile gsize proton_plus_widgets_profile_button_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_profile_button_type_id__once)) {
		GType proton_plus_widgets_profile_button_type_id;
		proton_plus_widgets_profile_button_type_id = proton_plus_widgets_profile_button_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_profile_button_type_id__once, proton_plus_widgets_profile_button_type_id);
	}
	return proton_plus_widgets_profile_button_type_id__once;
}

static void
_vala_proton_plus_widgets_profile_button_get_property (GObject * object,
                                                       guint property_id,
                                                       GValue * value,
                                                       GParamSpec * pspec)
{
	ProtonPlusWidgetsProfileButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON, ProtonPlusWidgetsProfileButton);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_PROFILE_BUTTON_GESTURE_CLICK_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_profile_button_get_gesture_click (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_profile_button_set_property (GObject * object,
                                                       guint property_id,
                                                       const GValue * value,
                                                       GParamSpec * pspec)
{
	ProtonPlusWidgetsProfileButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_TYPE_PROFILE_BUTTON, ProtonPlusWidgetsProfileButton);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_PROFILE_BUTTON_GESTURE_CLICK_PROPERTY:
		proton_plus_widgets_profile_button_set_gesture_click (self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

