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

#include <adwaita.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gio/gio.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_PREFERENCES_DIALOG (proton_plus_widgets_preferences_preferences_dialog_get_type ())
#define PROTON_PLUS_WIDGETS_PREFERENCES_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_PREFERENCES_DIALOG, ProtonPlusWidgetsPreferencesPreferencesDialog))
#define PROTON_PLUS_WIDGETS_PREFERENCES_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_PREFERENCES_DIALOG, ProtonPlusWidgetsPreferencesPreferencesDialogClass))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_PREFERENCES_DIALOG))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_PREFERENCES_DIALOG))
#define PROTON_PLUS_WIDGETS_PREFERENCES_PREFERENCES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_PREFERENCES_DIALOG, ProtonPlusWidgetsPreferencesPreferencesDialogClass))

typedef struct _ProtonPlusWidgetsPreferencesPreferencesDialog ProtonPlusWidgetsPreferencesPreferencesDialog;
typedef struct _ProtonPlusWidgetsPreferencesPreferencesDialogClass ProtonPlusWidgetsPreferencesPreferencesDialogClass;
typedef struct _ProtonPlusWidgetsPreferencesPreferencesDialogPrivate ProtonPlusWidgetsPreferencesPreferencesDialogPrivate;
enum  {
	PROTON_PLUS_WIDGETS_PREFERENCES_PREFERENCES_DIALOG_0_PROPERTY,
	PROTON_PLUS_WIDGETS_PREFERENCES_PREFERENCES_DIALOG_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_preferences_preferences_dialog_properties[PROTON_PLUS_WIDGETS_PREFERENCES_PREFERENCES_DIALOG_NUM_PROPERTIES];

#define PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_THEME_ROW (proton_plus_widgets_preferences_theme_row_get_type ())
#define PROTON_PLUS_WIDGETS_PREFERENCES_THEME_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_THEME_ROW, ProtonPlusWidgetsPreferencesThemeRow))
#define PROTON_PLUS_WIDGETS_PREFERENCES_THEME_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_THEME_ROW, ProtonPlusWidgetsPreferencesThemeRowClass))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_THEME_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_THEME_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_THEME_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_THEME_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_THEME_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_THEME_ROW, ProtonPlusWidgetsPreferencesThemeRowClass))

typedef struct _ProtonPlusWidgetsPreferencesThemeRow ProtonPlusWidgetsPreferencesThemeRow;
typedef struct _ProtonPlusWidgetsPreferencesThemeRowClass ProtonPlusWidgetsPreferencesThemeRowClass;

#define PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_LAUNCHERS_RUNNERS_ROW (proton_plus_widgets_preferences_refresh_launchers_runners_row_get_type ())
#define PROTON_PLUS_WIDGETS_PREFERENCES_REFRESH_LAUNCHERS_RUNNERS_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_LAUNCHERS_RUNNERS_ROW, ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow))
#define PROTON_PLUS_WIDGETS_PREFERENCES_REFRESH_LAUNCHERS_RUNNERS_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_LAUNCHERS_RUNNERS_ROW, ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRowClass))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_REFRESH_LAUNCHERS_RUNNERS_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_LAUNCHERS_RUNNERS_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_REFRESH_LAUNCHERS_RUNNERS_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_LAUNCHERS_RUNNERS_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_REFRESH_LAUNCHERS_RUNNERS_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_LAUNCHERS_RUNNERS_ROW, ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRowClass))

typedef struct _ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow;
typedef struct _ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRowClass ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRowClass;
#define _g_free0(var) (var = (g_free (var), NULL))

#define PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_CHECK_UPDATES_ROW (proton_plus_widgets_preferences_check_updates_row_get_type ())
#define PROTON_PLUS_WIDGETS_PREFERENCES_CHECK_UPDATES_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_CHECK_UPDATES_ROW, ProtonPlusWidgetsPreferencesCheckUpdatesRow))
#define PROTON_PLUS_WIDGETS_PREFERENCES_CHECK_UPDATES_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_CHECK_UPDATES_ROW, ProtonPlusWidgetsPreferencesCheckUpdatesRowClass))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_CHECK_UPDATES_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_CHECK_UPDATES_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_CHECK_UPDATES_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_CHECK_UPDATES_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_CHECK_UPDATES_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_CHECK_UPDATES_ROW, ProtonPlusWidgetsPreferencesCheckUpdatesRowClass))

typedef struct _ProtonPlusWidgetsPreferencesCheckUpdatesRow ProtonPlusWidgetsPreferencesCheckUpdatesRow;
typedef struct _ProtonPlusWidgetsPreferencesCheckUpdatesRowClass ProtonPlusWidgetsPreferencesCheckUpdatesRowClass;

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

#define PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_STEAM_PROFILES_ROW (proton_plus_widgets_preferences_refresh_steam_profiles_row_get_type ())
#define PROTON_PLUS_WIDGETS_PREFERENCES_REFRESH_STEAM_PROFILES_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_STEAM_PROFILES_ROW, ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow))
#define PROTON_PLUS_WIDGETS_PREFERENCES_REFRESH_STEAM_PROFILES_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_STEAM_PROFILES_ROW, ProtonPlusWidgetsPreferencesRefreshSteamProfilesRowClass))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_REFRESH_STEAM_PROFILES_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_STEAM_PROFILES_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_IS_REFRESH_STEAM_PROFILES_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_STEAM_PROFILES_ROW))
#define PROTON_PLUS_WIDGETS_PREFERENCES_REFRESH_STEAM_PROFILES_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_REFRESH_STEAM_PROFILES_ROW, ProtonPlusWidgetsPreferencesRefreshSteamProfilesRowClass))

typedef struct _ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow;
typedef struct _ProtonPlusWidgetsPreferencesRefreshSteamProfilesRowClass ProtonPlusWidgetsPreferencesRefreshSteamProfilesRowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsPreferencesPreferencesDialog {
	AdwPreferencesDialog parent_instance;
	ProtonPlusWidgetsPreferencesPreferencesDialogPrivate * priv;
};

struct _ProtonPlusWidgetsPreferencesPreferencesDialogClass {
	AdwPreferencesDialogClass parent_class;
};

static gpointer proton_plus_widgets_preferences_preferences_dialog_parent_class = NULL;
VALA_EXTERN GSettings* proton_plus_globals_SETTINGS;

VALA_EXTERN GType proton_plus_widgets_preferences_preferences_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsPreferencesPreferencesDialog, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsPreferencesPreferencesDialog* proton_plus_widgets_preferences_preferences_dialog_new (void);
VALA_EXTERN ProtonPlusWidgetsPreferencesPreferencesDialog* proton_plus_widgets_preferences_preferences_dialog_construct (GType object_type);
static GObject * proton_plus_widgets_preferences_preferences_dialog_constructor (GType type,
                                                                          guint n_construct_properties,
                                                                          GObjectConstructParam * construct_properties);
VALA_EXTERN GType proton_plus_widgets_preferences_theme_row_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsPreferencesThemeRow, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsPreferencesThemeRow* proton_plus_widgets_preferences_theme_row_new (void);
VALA_EXTERN ProtonPlusWidgetsPreferencesThemeRow* proton_plus_widgets_preferences_theme_row_construct (GType object_type);
VALA_EXTERN GType proton_plus_widgets_preferences_refresh_launchers_runners_row_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow* proton_plus_widgets_preferences_refresh_launchers_runners_row_new (ProtonPlusWidgetsPreferencesPreferencesDialog* dialog);
VALA_EXTERN ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow* proton_plus_widgets_preferences_refresh_launchers_runners_row_construct (GType object_type,
                                                                                                                                 ProtonPlusWidgetsPreferencesPreferencesDialog* dialog);
VALA_EXTERN GType proton_plus_widgets_preferences_check_updates_row_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsPreferencesCheckUpdatesRow, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsPreferencesCheckUpdatesRow* proton_plus_widgets_preferences_check_updates_row_new (ProtonPlusWidgetsPreferencesPreferencesDialog* dialog);
VALA_EXTERN ProtonPlusWidgetsPreferencesCheckUpdatesRow* proton_plus_widgets_preferences_check_updates_row_construct (GType object_type,
                                                                                                          ProtonPlusWidgetsPreferencesPreferencesDialog* dialog);
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);
VALA_EXTERN GType proton_plus_widgets_preferences_refresh_steam_profiles_row_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow* proton_plus_widgets_preferences_refresh_steam_profiles_row_new (ProtonPlusWidgetsPreferencesPreferencesDialog* dialog);
VALA_EXTERN ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow* proton_plus_widgets_preferences_refresh_steam_profiles_row_construct (GType object_type,
                                                                                                                           ProtonPlusWidgetsPreferencesPreferencesDialog* dialog);
static GType proton_plus_widgets_preferences_preferences_dialog_get_type_once (void);

ProtonPlusWidgetsPreferencesPreferencesDialog*
proton_plus_widgets_preferences_preferences_dialog_construct (GType object_type)
{
	ProtonPlusWidgetsPreferencesPreferencesDialog * self = NULL;
	self = (ProtonPlusWidgetsPreferencesPreferencesDialog*) g_object_new (object_type, NULL);
	return self;
}

ProtonPlusWidgetsPreferencesPreferencesDialog*
proton_plus_widgets_preferences_preferences_dialog_new (void)
{
	return proton_plus_widgets_preferences_preferences_dialog_construct (PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_PREFERENCES_DIALOG);
}

static GObject *
proton_plus_widgets_preferences_preferences_dialog_constructor (GType type,
                                                                guint n_construct_properties,
                                                                GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ProtonPlusWidgetsPreferencesPreferencesDialog * self;
	ProtonPlusWidgetsPreferencesThemeRow* theme_row = NULL;
	ProtonPlusWidgetsPreferencesThemeRow* _tmp0_;
	ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow* refresh_launchers_runners_row = NULL;
	ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow* _tmp1_;
	AdwPreferencesGroup* general_group = NULL;
	gchar* _tmp2_;
	AdwPreferencesGroup* _tmp3_ = NULL;
	AdwPreferencesGroup* _tmp4_;
	ProtonPlusWidgetsPreferencesThemeRow* _tmp5_;
	AdwSwitchRow* save_history_row = NULL;
	gchar* _tmp6_;
	gchar* _tmp7_;
	AdwSwitchRow* _tmp8_ = NULL;
	AdwPreferencesGroup* _tmp9_;
	AdwSwitchRow* _tmp10_;
	AdwPreferencesGroup* _tmp11_;
	ProtonPlusWidgetsPreferencesRefreshLaunchersRunnersRow* _tmp12_;
	AdwSwitchRow* automatic_updates_row = NULL;
	gchar* _tmp13_;
	gchar* _tmp14_;
	AdwSwitchRow* _tmp15_ = NULL;
	ProtonPlusWidgetsPreferencesCheckUpdatesRow* check_updates_row = NULL;
	ProtonPlusWidgetsPreferencesCheckUpdatesRow* _tmp16_;
	AdwPreferencesGroup* latest_group = NULL;
	gchar* _tmp17_;
	AdwPreferencesGroup* _tmp18_ = NULL;
	AdwPreferencesGroup* _tmp19_;
	AdwSwitchRow* _tmp20_;
	AdwPreferencesGroup* _tmp21_;
	ProtonPlusWidgetsPreferencesCheckUpdatesRow* _tmp22_;
	ProtonPlusWidgetsPreferencesAccessTokenRow* github_access_token_row = NULL;
	ProtonPlusWidgetsPreferencesAccessTokenRow* _tmp23_;
	AdwPreferencesGroup* github_group = NULL;
	gchar* _tmp24_;
	AdwPreferencesGroup* _tmp25_ = NULL;
	AdwPreferencesGroup* _tmp26_;
	ProtonPlusWidgetsPreferencesAccessTokenRow* _tmp27_;
	ProtonPlusWidgetsPreferencesAccessTokenRow* gitlab_access_token_row = NULL;
	ProtonPlusWidgetsPreferencesAccessTokenRow* _tmp28_;
	AdwPreferencesGroup* gitlab_group = NULL;
	gchar* _tmp29_;
	AdwPreferencesGroup* _tmp30_ = NULL;
	AdwPreferencesGroup* _tmp31_;
	ProtonPlusWidgetsPreferencesAccessTokenRow* _tmp32_;
	AdwSwitchRow* steam_remember_last_used_profile_row = NULL;
	gchar* _tmp33_;
	gchar* _tmp34_;
	AdwSwitchRow* _tmp35_ = NULL;
	ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow* refresh_steam_profiles_row = NULL;
	ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow* _tmp36_;
	AdwPreferencesGroup* steam_group = NULL;
	gchar* _tmp37_;
	AdwPreferencesGroup* _tmp38_ = NULL;
	AdwPreferencesGroup* _tmp39_;
	AdwSwitchRow* _tmp40_;
	AdwPreferencesGroup* _tmp41_;
	ProtonPlusWidgetsPreferencesRefreshSteamProfilesRow* _tmp42_;
	AdwPreferencesPage* page = NULL;
	AdwPreferencesPage* _tmp43_;
	AdwPreferencesPage* _tmp44_;
	AdwPreferencesGroup* _tmp45_;
	AdwPreferencesPage* _tmp46_;
	AdwPreferencesGroup* _tmp47_;
	AdwPreferencesPage* _tmp48_;
	AdwPreferencesGroup* _tmp49_;
	AdwPreferencesPage* _tmp50_;
	AdwPreferencesGroup* _tmp51_;
	AdwPreferencesPage* _tmp52_;
	AdwPreferencesGroup* _tmp53_;
	GSettings* _tmp54_;
	AdwPreferencesPage* _tmp65_;
	parent_class = G_OBJECT_CLASS (proton_plus_widgets_preferences_preferences_dialog_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_PREFERENCES_DIALOG, ProtonPlusWidgetsPreferencesPreferencesDialog);
	_tmp0_ = proton_plus_widgets_preferences_theme_row_new ();
	g_object_ref_sink (_tmp0_);
	theme_row = _tmp0_;
	_tmp1_ = proton_plus_widgets_preferences_refresh_launchers_runners_row_new (self);
	g_object_ref_sink (_tmp1_);
	refresh_launchers_runners_row = _tmp1_;
	_tmp2_ = g_strdup (_ ("General"));
	_tmp3_ = (AdwPreferencesGroup*) adw_preferences_group_new ();
	adw_preferences_group_set_title (_tmp3_, _tmp2_);
	_g_free0 (_tmp2_);
	g_object_ref_sink (_tmp3_);
	general_group = _tmp3_;
	_tmp4_ = general_group;
	_tmp5_ = theme_row;
	adw_preferences_group_add (_tmp4_, (GtkWidget*) _tmp5_);
	_tmp6_ = g_strdup (_ ("Save download history"));
	_tmp7_ = g_strdup (_ ("Save the download history to a file"));
	_tmp8_ = (AdwSwitchRow*) adw_switch_row_new ();
	adw_preferences_row_set_title ((AdwPreferencesRow*) _tmp8_, _tmp6_);
	_g_free0 (_tmp6_);
	adw_action_row_set_subtitle ((AdwActionRow*) _tmp8_, _tmp7_);
	_g_free0 (_tmp7_);
	g_object_ref_sink (_tmp8_);
	save_history_row = _tmp8_;
	_tmp9_ = general_group;
	_tmp10_ = save_history_row;
	adw_preferences_group_add (_tmp9_, (GtkWidget*) _tmp10_);
	_tmp11_ = general_group;
	_tmp12_ = refresh_launchers_runners_row;
	adw_preferences_group_add (_tmp11_, (GtkWidget*) _tmp12_);
	_tmp13_ = g_strdup (_ ("Automatic updates"));
	_tmp14_ = g_strdup (_ ("Update the installed 'Latest' runners when the application starts"));
	_tmp15_ = (AdwSwitchRow*) adw_switch_row_new ();
	adw_preferences_row_set_title ((AdwPreferencesRow*) _tmp15_, _tmp13_);
	_g_free0 (_tmp13_);
	adw_action_row_set_subtitle ((AdwActionRow*) _tmp15_, _tmp14_);
	_g_free0 (_tmp14_);
	g_object_ref_sink (_tmp15_);
	automatic_updates_row = _tmp15_;
	_tmp16_ = proton_plus_widgets_preferences_check_updates_row_new (self);
	g_object_ref_sink (_tmp16_);
	check_updates_row = _tmp16_;
	_tmp17_ = g_strdup (_ ("Latest"));
	_tmp18_ = (AdwPreferencesGroup*) adw_preferences_group_new ();
	adw_preferences_group_set_title (_tmp18_, _tmp17_);
	_g_free0 (_tmp17_);
	g_object_ref_sink (_tmp18_);
	latest_group = _tmp18_;
	_tmp19_ = latest_group;
	_tmp20_ = automatic_updates_row;
	adw_preferences_group_add (_tmp19_, (GtkWidget*) _tmp20_);
	_tmp21_ = latest_group;
	_tmp22_ = check_updates_row;
	adw_preferences_group_add (_tmp21_, (GtkWidget*) _tmp22_);
	_tmp23_ = proton_plus_widgets_preferences_access_token_row_new ();
	g_object_ref_sink (_tmp23_);
	github_access_token_row = _tmp23_;
	_tmp24_ = g_strdup ("GitHub");
	_tmp25_ = (AdwPreferencesGroup*) adw_preferences_group_new ();
	adw_preferences_group_set_title (_tmp25_, _tmp24_);
	_g_free0 (_tmp24_);
	g_object_ref_sink (_tmp25_);
	github_group = _tmp25_;
	_tmp26_ = github_group;
	_tmp27_ = github_access_token_row;
	adw_preferences_group_add (_tmp26_, (GtkWidget*) _tmp27_);
	_tmp28_ = proton_plus_widgets_preferences_access_token_row_new ();
	g_object_ref_sink (_tmp28_);
	gitlab_access_token_row = _tmp28_;
	_tmp29_ = g_strdup ("GitLab");
	_tmp30_ = (AdwPreferencesGroup*) adw_preferences_group_new ();
	adw_preferences_group_set_title (_tmp30_, _tmp29_);
	_g_free0 (_tmp29_);
	g_object_ref_sink (_tmp30_);
	gitlab_group = _tmp30_;
	_tmp31_ = gitlab_group;
	_tmp32_ = gitlab_access_token_row;
	adw_preferences_group_add (_tmp31_, (GtkWidget*) _tmp32_);
	_tmp33_ = g_strdup (_ ("Remember last used profile"));
	_tmp34_ = g_strdup (_ ("Remember the last used Steam profile"));
	_tmp35_ = (AdwSwitchRow*) adw_switch_row_new ();
	adw_preferences_row_set_title ((AdwPreferencesRow*) _tmp35_, _tmp33_);
	_g_free0 (_tmp33_);
	adw_action_row_set_subtitle ((AdwActionRow*) _tmp35_, _tmp34_);
	_g_free0 (_tmp34_);
	g_object_ref_sink (_tmp35_);
	steam_remember_last_used_profile_row = _tmp35_;
	_tmp36_ = proton_plus_widgets_preferences_refresh_steam_profiles_row_new (self);
	g_object_ref_sink (_tmp36_);
	refresh_steam_profiles_row = _tmp36_;
	_tmp37_ = g_strdup ("Steam");
	_tmp38_ = (AdwPreferencesGroup*) adw_preferences_group_new ();
	adw_preferences_group_set_title (_tmp38_, _tmp37_);
	_g_free0 (_tmp37_);
	g_object_ref_sink (_tmp38_);
	steam_group = _tmp38_;
	_tmp39_ = steam_group;
	_tmp40_ = steam_remember_last_used_profile_row;
	adw_preferences_group_add (_tmp39_, (GtkWidget*) _tmp40_);
	_tmp41_ = steam_group;
	_tmp42_ = refresh_steam_profiles_row;
	adw_preferences_group_add (_tmp41_, (GtkWidget*) _tmp42_);
	_tmp43_ = (AdwPreferencesPage*) adw_preferences_page_new ();
	g_object_ref_sink (_tmp43_);
	page = _tmp43_;
	_tmp44_ = page;
	_tmp45_ = general_group;
	adw_preferences_page_add (_tmp44_, _tmp45_);
	_tmp46_ = page;
	_tmp47_ = latest_group;
	adw_preferences_page_add (_tmp46_, _tmp47_);
	_tmp48_ = page;
	_tmp49_ = github_group;
	adw_preferences_page_add (_tmp48_, _tmp49_);
	_tmp50_ = page;
	_tmp51_ = gitlab_group;
	adw_preferences_page_add (_tmp50_, _tmp51_);
	_tmp52_ = page;
	_tmp53_ = steam_group;
	adw_preferences_page_add (_tmp52_, _tmp53_);
	_tmp54_ = proton_plus_globals_SETTINGS;
	if (_tmp54_ != NULL) {
		GSettings* _tmp55_;
		AdwSwitchRow* _tmp56_;
		GSettings* _tmp57_;
		ProtonPlusWidgetsPreferencesAccessTokenRow* _tmp58_;
		GSettings* _tmp59_;
		ProtonPlusWidgetsPreferencesAccessTokenRow* _tmp60_;
		GSettings* _tmp61_;
		AdwSwitchRow* _tmp62_;
		GSettings* _tmp63_;
		AdwSwitchRow* _tmp64_;
		_tmp55_ = proton_plus_globals_SETTINGS;
		_tmp56_ = automatic_updates_row;
		g_settings_bind (_tmp55_, "automatic-updates", (GObject*) _tmp56_, "active", G_SETTINGS_BIND_DEFAULT);
		_tmp57_ = proton_plus_globals_SETTINGS;
		_tmp58_ = github_access_token_row;
		g_settings_bind (_tmp57_, "github-api-key", (GObject*) _tmp58_, "text", G_SETTINGS_BIND_DEFAULT);
		_tmp59_ = proton_plus_globals_SETTINGS;
		_tmp60_ = gitlab_access_token_row;
		g_settings_bind (_tmp59_, "gitlab-api-key", (GObject*) _tmp60_, "text", G_SETTINGS_BIND_DEFAULT);
		_tmp61_ = proton_plus_globals_SETTINGS;
		_tmp62_ = steam_remember_last_used_profile_row;
		g_settings_bind (_tmp61_, "steam-remember-last-profile", (GObject*) _tmp62_, "active", G_SETTINGS_BIND_DEFAULT);
		_tmp63_ = proton_plus_globals_SETTINGS;
		_tmp64_ = save_history_row;
		g_settings_bind (_tmp63_, "save-history", (GObject*) _tmp64_, "active", G_SETTINGS_BIND_DEFAULT);
	}
	adw_preferences_dialog_set_search_enabled ((AdwPreferencesDialog*) self, TRUE);
	_tmp65_ = page;
	adw_preferences_dialog_add ((AdwPreferencesDialog*) self, _tmp65_);
	_g_object_unref0 (page);
	_g_object_unref0 (steam_group);
	_g_object_unref0 (refresh_steam_profiles_row);
	_g_object_unref0 (steam_remember_last_used_profile_row);
	_g_object_unref0 (gitlab_group);
	_g_object_unref0 (gitlab_access_token_row);
	_g_object_unref0 (github_group);
	_g_object_unref0 (github_access_token_row);
	_g_object_unref0 (latest_group);
	_g_object_unref0 (check_updates_row);
	_g_object_unref0 (automatic_updates_row);
	_g_object_unref0 (save_history_row);
	_g_object_unref0 (general_group);
	_g_object_unref0 (refresh_launchers_runners_row);
	_g_object_unref0 (theme_row);
	return obj;
}

static void
proton_plus_widgets_preferences_preferences_dialog_class_init (ProtonPlusWidgetsPreferencesPreferencesDialogClass * klass,
                                                               gpointer klass_data)
{
	proton_plus_widgets_preferences_preferences_dialog_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = proton_plus_widgets_preferences_preferences_dialog_constructor;
}

static void
proton_plus_widgets_preferences_preferences_dialog_instance_init (ProtonPlusWidgetsPreferencesPreferencesDialog * self,
                                                                  gpointer klass)
{
}

static GType
proton_plus_widgets_preferences_preferences_dialog_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsPreferencesPreferencesDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_preferences_preferences_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsPreferencesPreferencesDialog), 0, (GInstanceInitFunc) proton_plus_widgets_preferences_preferences_dialog_instance_init, NULL };
	GType proton_plus_widgets_preferences_preferences_dialog_type_id;
	proton_plus_widgets_preferences_preferences_dialog_type_id = g_type_register_static (adw_preferences_dialog_get_type (), "ProtonPlusWidgetsPreferencesPreferencesDialog", &g_define_type_info, 0);
	return proton_plus_widgets_preferences_preferences_dialog_type_id;
}

GType
proton_plus_widgets_preferences_preferences_dialog_get_type (void)
{
	static volatile gsize proton_plus_widgets_preferences_preferences_dialog_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_preferences_preferences_dialog_type_id__once)) {
		GType proton_plus_widgets_preferences_preferences_dialog_type_id;
		proton_plus_widgets_preferences_preferences_dialog_type_id = proton_plus_widgets_preferences_preferences_dialog_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_preferences_preferences_dialog_type_id__once, proton_plus_widgets_preferences_preferences_dialog_type_id);
	}
	return proton_plus_widgets_preferences_preferences_dialog_type_id__once;
}

