/* gpu-vendor-nvidia-options-group.c generated by valac 0.56.19, the Vala compiler
 * generated from gpu-vendor-nvidia-options-group.vala, do not modify */

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

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE (proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_TILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass;
enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_GPU_VENDOR_NVIDIA_OPTIONS_GROUP_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_GPU_VENDOR_NVIDIA_OPTIONS_GROUP_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_GPU_VENDOR_NVIDIA_OPTIONS_GROUP_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroupPrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _nvapi_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _nvidia_ngx_updater_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _nvidia_hide_gpu_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _dlss_indicator_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _nvidia_libs_tile;
	gboolean refreshing_controls;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type (void) G_GNUC_CONST ;
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup* self,
                                                                                                                                                  const gchar* title,
                                                                                                                                                  const gchar* subtitle,
                                                                                                                                                  gchar** tokens,
                                                                                                                                                  gint tokens_length1,
                                                                                                                                                  gboolean is_advanced,
                                                                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType type,
                                                                                                                                                  const gchar* id);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvapi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvapi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
VALA_EXTERN GtkSwitch* proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* self);
static void __lambda129_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_nvidia_nvapi_toggle_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static void ___lambda129__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_ngx_updater_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvidia_ngx_updater_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static void __lambda130_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_nvidia_dlss_updater_toggle_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static void ___lambda130__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_hide_gpu_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_dlss_indicator_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                                     ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_libs_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvidia_hide_gpu_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_dlss_indicator_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvidia_libs_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_normalize_nvidia_vendor_dependencies (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_reset_controls (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_property (GObject * object,
                                                                                                                guint property_id,
                                                                                                                GValue * value,
                                                                                                                GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_property (GObject * object,
                                                                                                                guint property_id,
                                                                                                                const GValue * value,
                                                                                                                GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static inline gpointer
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup_private_offset);
}

static void
__lambda129_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_nvidia_nvapi_toggle_changed (self);
}

static void
___lambda129__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda129_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup*) self);
}

static void
__lambda130_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_nvidia_dlss_updater_toggle_changed (self);
}

static void
___lambda130__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda130_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup*) self);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup*
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_construct (GType object_type,
                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup * self = NULL;
	gchar* _tmp0_;
	gchar** _tmp1_;
	gchar** _tmp2_;
	gint _tmp2__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp3_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp4_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp5_;
	GtkSwitch* _tmp6_;
	GtkSwitch* _tmp7_;
	gchar* _tmp8_;
	gchar** _tmp9_;
	gchar** _tmp10_;
	gint _tmp10__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp11_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp12_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp13_;
	GtkSwitch* _tmp14_;
	GtkSwitch* _tmp15_;
	gchar* _tmp16_;
	gchar** _tmp17_;
	gchar** _tmp18_;
	gint _tmp18__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp19_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp20_;
	gchar* _tmp21_;
	gchar** _tmp22_;
	gchar** _tmp23_;
	gint _tmp23__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp24_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp25_;
	gchar* _tmp26_;
	gchar** _tmp27_;
	gchar** _tmp28_;
	gint _tmp28__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp29_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp30_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp31_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp32_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp33_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp34_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp35_;
	g_return_val_if_fail (launch_option_handlers != NULL, NULL);
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup*) proton_plus_widgets_games_launch_options_editor_groups_base_options_group_construct (object_type, launch_option_handlers, TRUE, presentation_registry, FALSE);
	self->priv->refreshing_controls = TRUE;
	_tmp0_ = g_strdup ("PROTON_ENABLE_NVAPI=1");
	_tmp1_ = g_new0 (gchar*, 1 + 1);
	_tmp1_[0] = _tmp0_;
	_tmp2_ = _tmp1_;
	_tmp2__length1 = 1;
	_tmp3_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("NVAPI"), _ ("Lets games access NVIDIA-specific features like DLSS."), _tmp2_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "nvidia-nvapi");
	_tmp4_ = _tmp3_;
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvapi_tile (self, _tmp4_);
	_g_object_unref0 (_tmp4_);
	_tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL);
	_tmp5_ = self->priv->_nvapi_tile;
	_tmp6_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp5_);
	_tmp7_ = _tmp6_;
	g_signal_connect_object ((GObject*) _tmp7_, "notify::active", (GCallback) ___lambda129__g_object_notify, self, 0);
	_tmp8_ = g_strdup ("PROTON_ENABLE_NGX_UPDATER=1");
	_tmp9_ = g_new0 (gchar*, 1 + 1);
	_tmp9_[0] = _tmp8_;
	_tmp10_ = _tmp9_;
	_tmp10__length1 = 1;
	_tmp11_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("DLSS component updates"), _ ("Auto upgrades DLSS components for supported games."), _tmp10_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "nvidia-dlss-updater");
	_tmp12_ = _tmp11_;
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_ngx_updater_tile (self, _tmp12_);
	_g_object_unref0 (_tmp12_);
	_tmp10_ = (_vala_array_free (_tmp10_, _tmp10__length1, (GDestroyNotify) g_free), NULL);
	_tmp13_ = self->priv->_nvidia_ngx_updater_tile;
	_tmp14_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp13_);
	_tmp15_ = _tmp14_;
	g_signal_connect_object ((GObject*) _tmp15_, "notify::active", (GCallback) ___lambda130__g_object_notify, self, 0);
	_tmp16_ = g_strdup ("PROTON_HIDE_NVIDIA_GPU=1");
	_tmp17_ = g_new0 (gchar*, 1 + 1);
	_tmp17_[0] = _tmp16_;
	_tmp18_ = _tmp17_;
	_tmp18__length1 = 1;
	_tmp19_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Report GPU as AMD"), _ ("Makes Proton report an NVIDIA GPU as AMD for games that expect Windows" \
"-only NVIDIA driver behavior."), _tmp18_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "nvidia-report-amd");
	_tmp20_ = _tmp19_;
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_hide_gpu_tile (self, _tmp20_);
	_g_object_unref0 (_tmp20_);
	_tmp18_ = (_vala_array_free (_tmp18_, _tmp18__length1, (GDestroyNotify) g_free), NULL);
	_tmp21_ = g_strdup ("PROTON_DLSS_INDICATOR=1");
	_tmp22_ = g_new0 (gchar*, 1 + 1);
	_tmp22_[0] = _tmp21_;
	_tmp23_ = _tmp22_;
	_tmp23__length1 = 1;
	_tmp24_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("DLSS indicator"), _ ("Shows a DLSS status indicator in-game."), _tmp23_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "nvidia-dlss-indicator");
	_tmp25_ = _tmp24_;
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_dlss_indicator_tile (self, _tmp25_);
	_g_object_unref0 (_tmp25_);
	_tmp23_ = (_vala_array_free (_tmp23_, _tmp23__length1, (GDestroyNotify) g_free), NULL);
	_tmp26_ = g_strdup ("PROTON_NVIDIA_LIBS=1");
	_tmp27_ = g_new0 (gchar*, 1 + 1);
	_tmp27_[0] = _tmp26_;
	_tmp28_ = _tmp27_;
	_tmp28__length1 = 1;
	_tmp29_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("NVIDIA libraries"), _ ("Enables NVIDIA-specific libraries (PhysX, CUDA). This is not needed fo" \
"r DLSS or ray tracing."), _tmp28_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "nvidia-libraries");
	_tmp30_ = _tmp29_;
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_libs_tile (self, _tmp30_);
	_g_object_unref0 (_tmp30_);
	_tmp28_ = (_vala_array_free (_tmp28_, _tmp28__length1, (GDestroyNotify) g_free), NULL);
	_tmp31_ = self->priv->_nvapi_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp31_);
	_tmp32_ = self->priv->_nvidia_ngx_updater_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp32_);
	_tmp33_ = self->priv->_nvidia_hide_gpu_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp33_);
	_tmp34_ = self->priv->_dlss_indicator_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp34_);
	_tmp35_ = self->priv->_nvidia_libs_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp35_);
	self->priv->refreshing_controls = FALSE;
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup*
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	return proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GPU_VENDOR_NVIDIA_OPTIONS_GROUP, launch_option_handlers, presentation_registry);
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_nvidia_nvapi_toggle_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	gboolean _tmp0_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp1_;
	GtkSwitch* _tmp2_;
	GtkSwitch* _tmp3_;
	g_return_if_fail (self != NULL);
	if (self->priv->refreshing_controls) {
		return;
	}
	_tmp1_ = self->priv->_nvapi_tile;
	_tmp2_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp1_);
	_tmp3_ = _tmp2_;
	if (!gtk_switch_get_active (_tmp3_)) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp4_;
		GtkSwitch* _tmp5_;
		GtkSwitch* _tmp6_;
		_tmp4_ = self->priv->_nvidia_ngx_updater_tile;
		_tmp5_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp0_ = gtk_switch_get_active (_tmp6_);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp7_;
		GtkSwitch* _tmp8_;
		GtkSwitch* _tmp9_;
		self->priv->refreshing_controls = TRUE;
		_tmp7_ = self->priv->_nvidia_ngx_updater_tile;
		_tmp8_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp7_);
		_tmp9_ = _tmp8_;
		gtk_switch_set_active (_tmp9_, FALSE);
		self->priv->refreshing_controls = FALSE;
	}
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_nvidia_dlss_updater_toggle_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	gboolean _tmp0_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp1_;
	GtkSwitch* _tmp2_;
	GtkSwitch* _tmp3_;
	g_return_if_fail (self != NULL);
	if (self->priv->refreshing_controls) {
		return;
	}
	_tmp1_ = self->priv->_nvidia_ngx_updater_tile;
	_tmp2_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp1_);
	_tmp3_ = _tmp2_;
	if (gtk_switch_get_active (_tmp3_)) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp4_;
		GtkSwitch* _tmp5_;
		GtkSwitch* _tmp6_;
		_tmp4_ = self->priv->_nvapi_tile;
		_tmp5_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp0_ = !gtk_switch_get_active (_tmp6_);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp7_;
		GtkSwitch* _tmp8_;
		GtkSwitch* _tmp9_;
		self->priv->refreshing_controls = TRUE;
		_tmp7_ = self->priv->_nvapi_tile;
		_tmp8_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp7_);
		_tmp9_ = _tmp8_;
		gtk_switch_set_active (_tmp9_, TRUE);
		self->priv->refreshing_controls = FALSE;
	}
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
}

void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_normalize_nvidia_vendor_dependencies (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	gboolean _tmp0_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp1_;
	GtkSwitch* _tmp2_;
	GtkSwitch* _tmp3_;
	gboolean was_refreshing = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp7_;
	GtkSwitch* _tmp8_;
	GtkSwitch* _tmp9_;
	g_return_if_fail (self != NULL);
	_tmp1_ = self->priv->_nvidia_ngx_updater_tile;
	_tmp2_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp1_);
	_tmp3_ = _tmp2_;
	if (!gtk_switch_get_active (_tmp3_)) {
		_tmp0_ = TRUE;
	} else {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp4_;
		GtkSwitch* _tmp5_;
		GtkSwitch* _tmp6_;
		_tmp4_ = self->priv->_nvapi_tile;
		_tmp5_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp0_ = gtk_switch_get_active (_tmp6_);
	}
	if (_tmp0_) {
		return;
	}
	was_refreshing = self->priv->refreshing_controls;
	self->priv->refreshing_controls = TRUE;
	_tmp7_ = self->priv->_nvapi_tile;
	_tmp8_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp7_);
	_tmp9_ = _tmp8_;
	gtk_switch_set_active (_tmp9_, TRUE);
	self->priv->refreshing_controls = was_refreshing;
}

void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_reset_controls (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	GtkSwitch* _tmp1_;
	GtkSwitch* _tmp2_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp3_;
	GtkSwitch* _tmp4_;
	GtkSwitch* _tmp5_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp6_;
	GtkSwitch* _tmp7_;
	GtkSwitch* _tmp8_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp9_;
	GtkSwitch* _tmp10_;
	GtkSwitch* _tmp11_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp12_;
	GtkSwitch* _tmp13_;
	GtkSwitch* _tmp14_;
	g_return_if_fail (self != NULL);
	self->priv->refreshing_controls = TRUE;
	_tmp0_ = self->priv->_nvapi_tile;
	_tmp1_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp0_);
	_tmp2_ = _tmp1_;
	gtk_switch_set_active (_tmp2_, FALSE);
	_tmp3_ = self->priv->_nvidia_ngx_updater_tile;
	_tmp4_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp3_);
	_tmp5_ = _tmp4_;
	gtk_switch_set_active (_tmp5_, FALSE);
	_tmp6_ = self->priv->_nvidia_hide_gpu_tile;
	_tmp7_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp6_);
	_tmp8_ = _tmp7_;
	gtk_switch_set_active (_tmp8_, FALSE);
	_tmp9_ = self->priv->_dlss_indicator_tile;
	_tmp10_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp9_);
	_tmp11_ = _tmp10_;
	gtk_switch_set_active (_tmp11_, FALSE);
	_tmp12_ = self->priv->_nvidia_libs_tile;
	_tmp13_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp12_);
	_tmp14_ = _tmp13_;
	gtk_switch_set_active (_tmp14_, FALSE);
	self->priv->refreshing_controls = FALSE;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvapi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_nvapi_tile;
	result = _tmp0_;
	return result;
}

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

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvapi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                       ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_nvapi_tile);
	self->priv->_nvapi_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvidia_ngx_updater_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_nvidia_ngx_updater_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_ngx_updater_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_nvidia_ngx_updater_tile);
	self->priv->_nvidia_ngx_updater_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvidia_hide_gpu_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_nvidia_hide_gpu_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_hide_gpu_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                                 ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_nvidia_hide_gpu_tile);
	self->priv->_nvidia_hide_gpu_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_dlss_indicator_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dlss_indicator_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_dlss_indicator_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                                ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dlss_indicator_tile);
	self->priv->_dlss_indicator_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_nvidia_libs_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_nvidia_libs_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_nvidia_libs_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup* self,
                                                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_nvidia_libs_tile);
	self->priv->_nvidia_libs_tile = _tmp0_;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroupClass * klass,
                                                                                                   gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_finalize;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup * self,
                                                                                                      gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_instance_private (self);
}

static void
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GPU_VENDOR_NVIDIA_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup);
	_g_object_unref0 (self->priv->_nvapi_tile);
	_g_object_unref0 (self->priv->_nvidia_ngx_updater_tile);
	_g_object_unref0 (self->priv->_nvidia_hide_gpu_tile);
	_g_object_unref0 (self->priv->_dlss_indicator_tile);
	_g_object_unref0 (self->priv->_nvidia_libs_tile);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id;
	proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_BASE_OPTIONS_GROUP, "ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroupPrivate));
	return proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id;
		proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id = proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id__once, proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_get_property (GObject * object,
                                                                                                           guint property_id,
                                                                                                           GValue * value,
                                                                                                           GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GPU_VENDOR_NVIDIA_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup);
	switch (property_id) {
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_gpu_vendor_nvidia_options_group_set_property (GObject * object,
                                                                                                           guint property_id,
                                                                                                           const GValue * value,
                                                                                                           GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GPU_VENDOR_NVIDIA_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGpuVendorNvidiaOptionsGroup);
	switch (property_id) {
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

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

