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

#include "protonplus_core.h"
#include <gtk/gtk.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib-object.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

enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_STACK_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_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))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroupPrivate {
	GtkStack* _stack;
	GtkStackSwitcher* _switcher;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _gamescope;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _scopebuddy;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _none;
	gboolean refreshing_controls;
	gchar* backend_title;
	gchar* backend_description;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_parent_class = NULL;

static void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_none (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* value);
static void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_gamescope (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* value);
static void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_scopebuddy (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                          ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_none (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void __lambda151_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void ___lambda151__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* _sender,
                                                                                          gpointer self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_gamescope (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void __lambda152_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void ___lambda152__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* _sender,
                                                                                          gpointer self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_scopebuddy (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void __lambda153_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void ___lambda153__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* _sender,
                                                                                          gpointer self);
static void __lambda154_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_selection_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void ___lambda154__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_switcher (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                        GtkStackSwitcher* value);
static GtkStackSwitcher* proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_switcher (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void __lambda155_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void ___lambda155__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void __lambda156_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void ___lambda156__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_reset_controls (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_normalize_selection (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_property (GObject * object,
                                                                                              guint property_id,
                                                                                              GValue * value,
                                                                                              GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_property (GObject * object,
                                                                                              guint property_id,
                                                                                              const GValue * value,
                                                                                              GParamSpec * pspec);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static inline gpointer
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup_private_offset);
}

static void
__lambda151_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
}

static void
___lambda151__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* _sender,
                                                                                     gpointer self)
{
	__lambda151_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*) self);
}

static void
__lambda152_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
}

static void
___lambda152__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* _sender,
                                                                                     gpointer self)
{
	__lambda152_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*) self);
}

static void
__lambda153_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
}

static void
___lambda153__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* _sender,
                                                                                     gpointer self)
{
	__lambda153_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*) self);
}

static void
__lambda154_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_selection_changed (self);
}

static void
___lambda154__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda154_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*) self);
}

static void
__lambda155_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	gboolean _tmp0_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	_tmp1_ = self->priv->_gamescope;
	_tmp2_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp1_);
	_tmp3_ = _tmp2_;
	if (_tmp3_) {
		_tmp0_ = !self->priv->refreshing_controls;
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		GtkStack* _tmp4_;
		self->priv->refreshing_controls = TRUE;
		_tmp4_ = self->priv->_stack;
		gtk_stack_set_visible_child_name (_tmp4_, "gamescope");
		self->priv->refreshing_controls = FALSE;
	}
}

static void
___lambda155__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda155_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*) self);
}

static void
__lambda156_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	gboolean _tmp0_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	_tmp1_ = self->priv->_scopebuddy;
	_tmp2_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp1_);
	_tmp3_ = _tmp2_;
	if (_tmp3_) {
		_tmp0_ = !self->priv->refreshing_controls;
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		GtkStack* _tmp4_;
		self->priv->refreshing_controls = TRUE;
		_tmp4_ = self->priv->_stack;
		gtk_stack_set_visible_child_name (_tmp4_, "scopebuddy");
		self->priv->refreshing_controls = FALSE;
	}
}

static void
___lambda156__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda156_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*) self);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_construct (GType object_type,
                                                                                ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup * self = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp4_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp5_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp6_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp7_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp8_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp9_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp10_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp11_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp12_;
	GtkWidget* gamescope_page = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp13_;
	GtkWidget* _tmp14_;
	GtkWidget* scopebuddy_page = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp15_;
	GtkWidget* _tmp16_;
	GtkWidget* none_page = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp17_;
	GtkWidget* _tmp18_;
	GtkStack* _tmp19_;
	GtkStack* _tmp20_;
	GtkStack* _tmp21_;
	GtkStack* _tmp22_;
	GtkStack* _tmp23_;
	GtkStack* _tmp24_;
	GtkStack* _tmp25_;
	GtkWidget* _tmp26_;
	GtkStackSwitcher* _tmp35_;
	GtkStackSwitcher* _tmp36_;
	GtkStackSwitcher* _tmp37_;
	GtkStack* _tmp38_;
	GtkStackSwitcher* _tmp39_;
	GtkStackSwitcher* _tmp40_;
	const gchar* _tmp41_;
	const gchar* _tmp42_;
	gboolean _tmp43_ = FALSE;
	GtkStackSwitcher* _tmp45_;
	GtkStack* _tmp46_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp47_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp48_;
	GtkStack* _tmp49_;
	g_return_val_if_fail (launch_option_handlers != NULL, NULL);
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*) proton_plus_widgets_games_launch_options_editor_groups_base_options_group_construct (object_type, launch_option_handlers, FALSE, presentation_registry, FALSE);
	self->priv->refreshing_controls = TRUE;
	_tmp0_ = g_strdup (_ ("Launch backend"));
	_g_free0 (self->priv->backend_title);
	self->priv->backend_title = _tmp0_;
	_tmp1_ = g_strdup (_ ("Choose System default, Gamescope, or ScopeBuddy for display and launch" \
" options."));
	_g_free0 (self->priv->backend_description);
	self->priv->backend_description = _tmp1_;
	_tmp2_ = self->priv->backend_title;
	adw_preferences_group_set_title ((AdwPreferencesGroup*) self, _tmp2_);
	_tmp3_ = self->priv->backend_description;
	adw_preferences_group_set_description ((AdwPreferencesGroup*) self, _tmp3_);
	if (presentation_registry != NULL) {
		proton_plus_widgets_games_launch_options_editor_launch_option_presentation_registry_register (presentation_registry, "launch-backend", (GtkWidget*) self, NULL, FALSE);
	}
	_tmp4_ = proton_plus_widgets_games_launch_options_editor_wrappers_none_new (launch_option_handlers, presentation_registry);
	_tmp5_ = _tmp4_;
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_none (self, _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = proton_plus_widgets_games_launch_options_editor_wrappers_gamescope_new (launch_option_handlers, presentation_registry);
	_tmp7_ = _tmp6_;
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_gamescope (self, _tmp7_);
	_g_object_unref0 (_tmp7_);
	_tmp8_ = proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_new (launch_option_handlers, presentation_registry);
	_tmp9_ = _tmp8_;
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_scopebuddy (self, _tmp9_);
	_g_object_unref0 (_tmp9_);
	_tmp10_ = self->priv->_none;
	g_signal_connect_object ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp10_, "changed", (GCallback) ___lambda151__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed, self, 0);
	_tmp11_ = self->priv->_gamescope;
	g_signal_connect_object ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp11_, "changed", (GCallback) ___lambda152__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed, self, 0);
	_tmp12_ = self->priv->_scopebuddy;
	g_signal_connect_object ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp12_, "changed", (GCallback) ___lambda153__proton_plus_widgets_games_launch_options_editor_wrappers_base_changed, self, 0);
	_tmp13_ = self->priv->_gamescope;
	_tmp14_ = proton_plus_widgets_games_launch_options_editor_wrappers_gamescope_create_page (_tmp13_);
	gamescope_page = _tmp14_;
	_tmp15_ = self->priv->_scopebuddy;
	_tmp16_ = proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_create_page (_tmp15_);
	scopebuddy_page = _tmp16_;
	_tmp17_ = self->priv->_none;
	_tmp18_ = proton_plus_widgets_games_launch_options_editor_wrappers_none_create_page (_tmp17_);
	none_page = _tmp18_;
	_tmp19_ = (GtkStack*) gtk_stack_new ();
	g_object_ref_sink (_tmp19_);
	_tmp20_ = _tmp19_;
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_stack (self, _tmp20_);
	_g_object_unref0 (_tmp20_);
	_tmp21_ = self->priv->_stack;
	gtk_stack_set_hhomogeneous (_tmp21_, FALSE);
	_tmp22_ = self->priv->_stack;
	gtk_stack_set_vhomogeneous (_tmp22_, FALSE);
	_tmp23_ = self->priv->_stack;
	gtk_stack_set_transition_type (_tmp23_, GTK_STACK_TRANSITION_TYPE_CROSSFADE);
	_tmp24_ = self->priv->_stack;
	g_signal_connect_object ((GObject*) _tmp24_, "notify::visible-child-name", (GCallback) ___lambda154__g_object_notify, self, 0);
	_tmp25_ = self->priv->_stack;
	_tmp26_ = none_page;
	gtk_stack_add_titled (_tmp25_, _tmp26_, "none", _ ("System default"));
	if (proton_plus_globals_GAMESCOPE_INSTALLED) {
		GtkStack* _tmp27_;
		GtkWidget* _tmp28_;
		_tmp27_ = self->priv->_stack;
		_tmp28_ = gamescope_page;
		gtk_stack_add_titled (_tmp27_, _tmp28_, "gamescope", _ ("Gamescope"));
	} else {
		GtkStack* _tmp29_;
		GtkWidget* _tmp30_;
		_tmp29_ = self->priv->_stack;
		_tmp30_ = gamescope_page;
		gtk_stack_add_named (_tmp29_, _tmp30_, "gamescope");
	}
	if (proton_plus_globals_SCOPEBUDDY_INSTALLED) {
		GtkStack* _tmp31_;
		GtkWidget* _tmp32_;
		_tmp31_ = self->priv->_stack;
		_tmp32_ = scopebuddy_page;
		gtk_stack_add_titled (_tmp31_, _tmp32_, "scopebuddy", _ ("ScopeBuddy"));
	} else {
		GtkStack* _tmp33_;
		GtkWidget* _tmp34_;
		_tmp33_ = self->priv->_stack;
		_tmp34_ = scopebuddy_page;
		gtk_stack_add_named (_tmp33_, _tmp34_, "scopebuddy");
	}
	_tmp35_ = (GtkStackSwitcher*) gtk_stack_switcher_new ();
	g_object_ref_sink (_tmp35_);
	_tmp36_ = _tmp35_;
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_switcher (self, _tmp36_);
	_g_object_unref0 (_tmp36_);
	_tmp37_ = self->priv->_switcher;
	_tmp38_ = self->priv->_stack;
	gtk_stack_switcher_set_stack (_tmp37_, _tmp38_);
	_tmp39_ = self->priv->_switcher;
	gtk_widget_set_halign ((GtkWidget*) _tmp39_, GTK_ALIGN_START);
	_tmp40_ = self->priv->_switcher;
	_tmp41_ = adw_preferences_group_get_description ((AdwPreferencesGroup*) self);
	_tmp42_ = _tmp41_;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp40_, _tmp42_);
	if (!proton_plus_globals_GAMESCOPE_INSTALLED) {
		_tmp43_ = !proton_plus_globals_SCOPEBUDDY_INSTALLED;
	} else {
		_tmp43_ = FALSE;
	}
	if (_tmp43_) {
		GtkStackSwitcher* _tmp44_;
		_tmp44_ = self->priv->_switcher;
		gtk_widget_set_visible ((GtkWidget*) _tmp44_, FALSE);
	}
	_tmp45_ = self->priv->_switcher;
	adw_preferences_group_set_header_suffix ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp45_);
	_tmp46_ = self->priv->_stack;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp46_);
	_tmp47_ = self->priv->_gamescope;
	g_signal_connect_object ((GObject*) _tmp47_, "notify::active", (GCallback) ___lambda155__g_object_notify, self, 0);
	_tmp48_ = self->priv->_scopebuddy;
	g_signal_connect_object ((GObject*) _tmp48_, "notify::active", (GCallback) ___lambda156__g_object_notify, self, 0);
	self->priv->refreshing_controls = TRUE;
	_tmp49_ = self->priv->_stack;
	gtk_stack_set_visible_child_name (_tmp49_, "none");
	self->priv->refreshing_controls = FALSE;
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_selection_changed (self);
	_g_object_unref0 (none_page);
	_g_object_unref0 (scopebuddy_page);
	_g_object_unref0 (gamescope_page);
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                          ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	return proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_WRAPPER_GROUP, launch_option_handlers, presentation_registry);
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_selection_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	gchar* current_wrapper = NULL;
	GtkStack* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	if (self->priv->refreshing_controls) {
		return;
	}
	self->priv->refreshing_controls = TRUE;
	_tmp0_ = self->priv->_stack;
	_tmp1_ = gtk_stack_get_visible_child_name (_tmp0_);
	_tmp2_ = g_strdup (_tmp1_);
	current_wrapper = _tmp2_;
	_tmp3_ = current_wrapper;
	if (g_strcmp0 (_tmp3_, "none") == 0) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp4_;
		ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp5_;
		ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp6_;
		ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp7_;
		ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp8_;
		_tmp4_ = self->priv->_none;
		proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp4_, TRUE);
		_tmp5_ = self->priv->_gamescope;
		proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp5_, FALSE);
		_tmp6_ = self->priv->_scopebuddy;
		proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp6_, FALSE);
		_tmp7_ = self->priv->_gamescope;
		proton_plus_widgets_games_launch_options_editor_wrappers_gamescope_selection_change (_tmp7_);
		_tmp8_ = self->priv->_scopebuddy;
		proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_selection_change (_tmp8_);
	} else {
		const gchar* _tmp9_;
		_tmp9_ = current_wrapper;
		if (g_strcmp0 (_tmp9_, "gamescope") == 0) {
			ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp10_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp11_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp12_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp13_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp14_;
			_tmp10_ = self->priv->_gamescope;
			proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp10_, TRUE);
			_tmp11_ = self->priv->_none;
			proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp11_, FALSE);
			_tmp12_ = self->priv->_scopebuddy;
			proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp12_, FALSE);
			_tmp13_ = self->priv->_none;
			proton_plus_widgets_games_launch_options_editor_wrappers_none_selection_change (_tmp13_);
			_tmp14_ = self->priv->_scopebuddy;
			proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_selection_change (_tmp14_);
		} else {
			const gchar* _tmp15_;
			_tmp15_ = current_wrapper;
			if (g_strcmp0 (_tmp15_, "scopebuddy") == 0) {
				ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp16_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp17_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp18_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp19_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp20_;
				_tmp16_ = self->priv->_scopebuddy;
				proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp16_, TRUE);
				_tmp17_ = self->priv->_none;
				proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp17_, FALSE);
				_tmp18_ = self->priv->_gamescope;
				proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp18_, FALSE);
				_tmp19_ = self->priv->_none;
				proton_plus_widgets_games_launch_options_editor_wrappers_none_selection_change (_tmp19_);
				_tmp20_ = self->priv->_gamescope;
				proton_plus_widgets_games_launch_options_editor_wrappers_gamescope_selection_change (_tmp20_);
			}
		}
	}
	self->priv->refreshing_controls = FALSE;
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
	_g_free0 (current_wrapper);
}

void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_insert_before_backend_options (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                                    GtkWidget* widget)
{
	GtkStack* _tmp0_;
	GtkStack* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (widget != NULL);
	_tmp0_ = self->priv->_stack;
	adw_preferences_group_remove ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp0_);
	adw_preferences_group_add ((AdwPreferencesGroup*) self, widget);
	_tmp1_ = self->priv->_stack;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp1_);
}

gboolean
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_should_show_backend_chrome (gboolean gamescope_available,
                                                                                                 gboolean scopebuddy_available,
                                                                                                 gboolean active_non_default_backend)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean result;
	if (gamescope_available) {
		_tmp1_ = TRUE;
	} else {
		_tmp1_ = scopebuddy_available;
	}
	if (_tmp1_) {
		_tmp0_ = TRUE;
	} else {
		_tmp0_ = active_non_default_backend;
	}
	result = _tmp0_;
	return result;
}

gboolean
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_should_show_backend_group (gboolean display_visible,
                                                                                                gboolean show_chrome)
{
	gboolean _tmp0_ = FALSE;
	gboolean result;
	if (display_visible) {
		_tmp0_ = show_chrome;
	} else {
		_tmp0_ = FALSE;
	}
	result = _tmp0_;
	return result;
}

gboolean
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_has_active_non_default_backend (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	gboolean _tmp0_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp1_ = self->priv->_gamescope;
	_tmp2_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp1_);
	_tmp3_ = _tmp2_;
	if (_tmp3_) {
		_tmp0_ = TRUE;
	} else {
		ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp4_;
		gboolean _tmp5_;
		gboolean _tmp6_;
		_tmp4_ = self->priv->_scopebuddy;
		_tmp5_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp4_);
		_tmp6_ = _tmp5_;
		_tmp0_ = _tmp6_;
	}
	result = _tmp0_;
	return result;
}

gchar*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_selected_backend_id (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	gchar* _tmp8_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_gamescope;
	_tmp1_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		gchar* _tmp3_;
		_tmp3_ = g_strdup ("gamescope");
		result = _tmp3_;
		return result;
	}
	_tmp4_ = self->priv->_scopebuddy;
	_tmp5_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp4_);
	_tmp6_ = _tmp5_;
	if (_tmp6_) {
		gchar* _tmp7_;
		_tmp7_ = g_strdup ("scopebuddy");
		result = _tmp7_;
		return result;
	}
	_tmp8_ = g_strdup ("");
	result = _tmp8_;
	return result;
}

void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_reset_controls (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp0_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp1_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp2_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp3_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp4_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp5_;
	GtkStack* _tmp6_;
	g_return_if_fail (self != NULL);
	self->priv->refreshing_controls = TRUE;
	_tmp0_ = self->priv->_none;
	proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp0_, TRUE);
	_tmp1_ = self->priv->_gamescope;
	proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp1_, FALSE);
	_tmp2_ = self->priv->_scopebuddy;
	proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp2_, FALSE);
	_tmp3_ = self->priv->_none;
	proton_plus_widgets_games_launch_options_editor_wrappers_none_selection_change (_tmp3_);
	_tmp4_ = self->priv->_gamescope;
	proton_plus_widgets_games_launch_options_editor_wrappers_gamescope_selection_change (_tmp4_);
	_tmp5_ = self->priv->_scopebuddy;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_selection_change (_tmp5_);
	_tmp6_ = self->priv->_stack;
	gtk_stack_set_visible_child_name (_tmp6_, "none");
	self->priv->refreshing_controls = FALSE;
}

void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_normalize_selection (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	const gchar* _tmp0_ = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gchar* selected = NULL;
	gchar* _tmp8_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp9_;
	GtkStack* _tmp10_;
	g_return_if_fail (self != NULL);
	self->priv->refreshing_controls = TRUE;
	_tmp1_ = self->priv->_gamescope;
	_tmp2_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp1_);
	_tmp3_ = _tmp2_;
	if (_tmp3_) {
		_tmp0_ = "gamescope";
	} else {
		const gchar* _tmp4_ = NULL;
		ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp5_;
		gboolean _tmp6_;
		gboolean _tmp7_;
		_tmp5_ = self->priv->_scopebuddy;
		_tmp6_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp5_);
		_tmp7_ = _tmp6_;
		if (_tmp7_) {
			_tmp4_ = "scopebuddy";
		} else {
			_tmp4_ = "none";
		}
		_tmp0_ = _tmp4_;
	}
	_tmp8_ = g_strdup (_tmp0_);
	selected = _tmp8_;
	_tmp9_ = self->priv->_none;
	proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) _tmp9_, g_strcmp0 (selected, "none") == 0);
	_tmp10_ = self->priv->_stack;
	gtk_stack_set_visible_child_name (_tmp10_, selected);
	self->priv->refreshing_controls = FALSE;
	_g_free0 (selected);
}

void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_presentation_visible (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                               gboolean visible)
{
	gboolean show_chrome = FALSE;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp2_ = NULL;
	g_return_if_fail (self != NULL);
	show_chrome = proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_should_show_backend_chrome (proton_plus_globals_GAMESCOPE_INSTALLED, proton_plus_globals_SCOPEBUDDY_INSTALLED, proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_has_active_non_default_backend (self));
	if (show_chrome) {
		const gchar* _tmp1_;
		_tmp1_ = self->priv->backend_title;
		_tmp0_ = _tmp1_;
	} else {
		_tmp0_ = "";
	}
	adw_preferences_group_set_title ((AdwPreferencesGroup*) self, _tmp0_);
	if (show_chrome) {
		const gchar* _tmp3_;
		_tmp3_ = self->priv->backend_description;
		_tmp2_ = _tmp3_;
	} else {
		_tmp2_ = "";
	}
	adw_preferences_group_set_description ((AdwPreferencesGroup*) self, _tmp2_);
	gtk_widget_set_visible ((GtkWidget*) self, proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_should_show_backend_group (visible, show_chrome));
}

GtkStack*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_stack (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	GtkStack* result;
	GtkStack* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_stack;
	result = _tmp0_;
	return result;
}

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

void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_stack (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                GtkStack* value)
{
	GtkStack* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_stack (self);
	if (old_value != value) {
		GtkStack* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_stack);
		self->priv->_stack = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_STACK_PROPERTY]);
	}
}

static GtkStackSwitcher*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_switcher (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	GtkStackSwitcher* result;
	GtkStackSwitcher* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_switcher;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_switcher (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                   GtkStackSwitcher* value)
{
	GtkStackSwitcher* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_switcher);
	self->priv->_switcher = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_gamescope (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_gamescope;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_gamescope (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersGamescope* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_gamescope);
	self->priv->_gamescope = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_scopebuddy (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_scopebuddy;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_scopebuddy (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                                     ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_scopebuddy);
	self->priv->_scopebuddy = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone*
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_none (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_none;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_none (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup* self,
                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_none);
	self->priv->_none = _tmp0_;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroupClass * klass,
                                                                                 gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_STACK_PROPERTY, proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_STACK_PROPERTY] = g_param_spec_object ("stack", "stack", "stack", gtk_stack_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup * self,
                                                                                    gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_instance_private (self);
}

static void
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_WRAPPER_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup);
	_g_object_unref0 (self->priv->_stack);
	_g_object_unref0 (self->priv->_switcher);
	_g_object_unref0 (self->priv->_gamescope);
	_g_object_unref0 (self->priv->_scopebuddy);
	_g_object_unref0 (self->priv->_none);
	_g_free0 (self->priv->backend_title);
	_g_free0 (self->priv->backend_description);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id;
	proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_BASE_OPTIONS_GROUP, "ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroupPrivate));
	return proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id;
		proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id = proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id__once, proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_property (GObject * object,
                                                                                         guint property_id,
                                                                                         GValue * value,
                                                                                         GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_WRAPPER_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_STACK_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_get_stack (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_property (GObject * object,
                                                                                         guint property_id,
                                                                                         const GValue * value,
                                                                                         GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_WRAPPER_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsWrapperGroup);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_WRAPPER_GROUP_STACK_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_groups_wrapper_group_set_stack (self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

