/* access-token-row.c generated by valac 0.56.19, the Vala compiler
 * generated from access-token-row.vala, do not modify */

#include <adwaita.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.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_PREFERENCES_TYPE_ACCESS_TOKEN_ROW (proton_plus_widgets_preferences_access_token_row_get_type ())
#define PROTON_PLUS_WIDGETS_PREFERENCES_ACCESS_TOKEN_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_ACCESS_TOKEN_ROW, ProtonPlusWidgetsPreferencesAccessTokenRow))
#define PROTON_PLUS_WIDGETS_PREFERENCES_ACCESS_TOKEN_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_ACCESS_TOKEN_ROW, ProtonPlusWidgetsPreferencesAccessTokenRowClass))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_ACCESS_TOKEN_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_ACCESS_TOKEN_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_ACCESS_TOKEN_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_ACCESS_TOKEN_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_ACCESS_TOKEN_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_ACCESS_TOKEN_ROW, ProtonPlusWidgetsPreferencesAccessTokenRowClass))

typedef struct _ProtonPlusWidgetsPreferencesAccessTokenRow ProtonPlusWidgetsPreferencesAccessTokenRow;
typedef struct _ProtonPlusWidgetsPreferencesAccessTokenRowClass ProtonPlusWidgetsPreferencesAccessTokenRowClass;
typedef struct _ProtonPlusWidgetsPreferencesAccessTokenRowPrivate ProtonPlusWidgetsPreferencesAccessTokenRowPrivate;
enum  {
	PROTON_PLUS_WIDGETS_PREFERENCES_ACCESS_TOKEN_ROW_0_PROPERTY,
	PROTON_PLUS_WIDGETS_PREFERENCES_ACCESS_TOKEN_ROW_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_preferences_access_token_row_properties[PROTON_PLUS_WIDGETS_PREFERENCES_ACCESS_TOKEN_ROW_NUM_PROPERTIES];

struct _ProtonPlusWidgetsPreferencesAccessTokenRow {
	AdwEntryRow parent_instance;
	ProtonPlusWidgetsPreferencesAccessTokenRowPrivate * priv;
};

struct _ProtonPlusWidgetsPreferencesAccessTokenRowClass {
	AdwEntryRowClass parent_class;
};

static gpointer proton_plus_widgets_preferences_access_token_row_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_preferences_access_token_row_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsPreferencesAccessTokenRow, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsPreferencesAccessTokenRow* proton_plus_widgets_preferences_access_token_row_new (void);
VALA_EXTERN ProtonPlusWidgetsPreferencesAccessTokenRow* proton_plus_widgets_preferences_access_token_row_construct (GType object_type);
static GObject * proton_plus_widgets_preferences_access_token_row_constructor (GType type,
                                                                        guint n_construct_properties,
                                                                        GObjectConstructParam * construct_properties);
static GType proton_plus_widgets_preferences_access_token_row_get_type_once (void);

ProtonPlusWidgetsPreferencesAccessTokenRow*
proton_plus_widgets_preferences_access_token_row_construct (GType object_type)
{
	ProtonPlusWidgetsPreferencesAccessTokenRow * self = NULL;
	self = (ProtonPlusWidgetsPreferencesAccessTokenRow*) g_object_new (object_type, NULL);
	return self;
}

ProtonPlusWidgetsPreferencesAccessTokenRow*
proton_plus_widgets_preferences_access_token_row_new (void)
{
	return proton_plus_widgets_preferences_access_token_row_construct (PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_ACCESS_TOKEN_ROW);
}

static GObject *
proton_plus_widgets_preferences_access_token_row_constructor (GType type,
                                                              guint n_construct_properties,
                                                              GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ProtonPlusWidgetsPreferencesAccessTokenRow * self;
	parent_class = G_OBJECT_CLASS (proton_plus_widgets_preferences_access_token_row_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_ACCESS_TOKEN_ROW, ProtonPlusWidgetsPreferencesAccessTokenRow);
	adw_preferences_row_set_title ((AdwPreferencesRow*) self, _ ("Access token"));
	gtk_widget_set_tooltip_text ((GtkWidget*) self, _ ("Enter an access token to reduce your chances of being rate limited"));
	return obj;
}

static void
proton_plus_widgets_preferences_access_token_row_class_init (ProtonPlusWidgetsPreferencesAccessTokenRowClass * klass,
                                                             gpointer klass_data)
{
	proton_plus_widgets_preferences_access_token_row_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = proton_plus_widgets_preferences_access_token_row_constructor;
}

static void
proton_plus_widgets_preferences_access_token_row_instance_init (ProtonPlusWidgetsPreferencesAccessTokenRow * self,
                                                                gpointer klass)
{
}

static GType
proton_plus_widgets_preferences_access_token_row_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsPreferencesAccessTokenRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_preferences_access_token_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsPreferencesAccessTokenRow), 0, (GInstanceInitFunc) proton_plus_widgets_preferences_access_token_row_instance_init, NULL };
	GType proton_plus_widgets_preferences_access_token_row_type_id;
	proton_plus_widgets_preferences_access_token_row_type_id = g_type_register_static (adw_entry_row_get_type (), "ProtonPlusWidgetsPreferencesAccessTokenRow", &g_define_type_info, 0);
	return proton_plus_widgets_preferences_access_token_row_type_id;
}

GType
proton_plus_widgets_preferences_access_token_row_get_type (void)
{
	static volatile gsize proton_plus_widgets_preferences_access_token_row_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_preferences_access_token_row_type_id__once)) {
		GType proton_plus_widgets_preferences_access_token_row_type_id;
		proton_plus_widgets_preferences_access_token_row_type_id = proton_plus_widgets_preferences_access_token_row_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_preferences_access_token_row_type_id__once, proton_plus_widgets_preferences_access_token_row_type_id);
	}
	return proton_plus_widgets_preferences_access_token_row_type_id__once;
}

