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

#include "protonplus_core.h"
#include <adwaita.h>
#include <glib-object.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <glib/gi18n-lib.h>
#include <float.h>
#include <math.h>
#include <errno.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;

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE (proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SPIN_TILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SPIN_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_SPIN_TILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_SPIN_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SPIN_TILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass;

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_RESOLUTION_FIELD (proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_RESOLUTION_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_RESOLUTION_FIELD, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_RESOLUTION_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_RESOLUTION_FIELD, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionFieldClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_RESOLUTION_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_RESOLUTION_FIELD))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_RESOLUTION_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_RESOLUTION_FIELD))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_RESOLUTION_FIELD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_RESOLUTION_FIELD, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionFieldClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionFieldClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionFieldClass;

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_ENTRY_FIELD (proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_ENTRY_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_ENTRY_FIELD, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_ENTRY_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_ENTRY_FIELD, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryFieldClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_ENTRY_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_ENTRY_FIELD))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_ENTRY_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_ENTRY_FIELD))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_ENTRY_FIELD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_ENTRY_FIELD, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryFieldClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryFieldClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryFieldClass;

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING (proton_plus_widgets_games_launch_options_editor_base_binding_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_BASE_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_BASE_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass;

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_BINDING (proton_plus_widgets_games_launch_options_editor_launch_option_binding_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBindingClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_BINDING))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_BINDING))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_BINDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBindingClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBindingClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBindingClass;
enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_SCOPEBUDDY_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_SCOPEBUDDY_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_SCOPEBUDDY_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddyPrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _fullscreen_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _auto_hdr_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _auto_vrr_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _framerate_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _resolution_field;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _args_field;
	GList* bindings;
	GtkWidget* cached_page;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_base_binding_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_binding_get_type (void) G_GNUC_CONST ;
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_fullscreen_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
VALA_EXTERN GtkSwitch* proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_framerate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
VALA_EXTERN GtkSwitch* proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_toggle (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* self);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_set_value (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* self,
                                                                                        gint value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_resolution_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_reset (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_args_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_set_text (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* self,
                                                                                         const gchar* text);
VALA_EXTERN GtkSwitch* proton_plus_widgets_games_launch_options_editor_launch_option_binding_get_toggle (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* self);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* 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_wrappers_scopebuddy_set_fullscreen_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                              ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void __lambda153_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda153__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_auto_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_auto_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void __lambda154_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda154__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_auto_vrr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_auto_vrr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void __lambda155_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda155__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_new (const gchar* title,
                                                                                                                                            const gchar* subtitle,
                                                                                                                                            const gchar* value_label,
                                                                                                                                            gdouble lower,
                                                                                                                                            gdouble upper,
                                                                                                                                            gint default_value,
                                                                                                                                            const gchar* env_prefix);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_construct (GType object_type,
                                                                                                                                                  const gchar* title,
                                                                                                                                                  const gchar* subtitle,
                                                                                                                                                  const gchar* value_label,
                                                                                                                                                  gdouble lower,
                                                                                                                                                  gdouble upper,
                                                                                                                                                  gint default_value,
                                                                                                                                                  const gchar* env_prefix);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_framerate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* value);
static void __lambda156_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda156__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void __lambda157_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda157__proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_value_applied (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _sender,
                                                                                                          gpointer self);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* proton_plus_widgets_games_launch_options_editor_launch_option_binding_new (gchar** tokens,
                                                                                                                                         gint tokens_length1,
                                                                                                                                         GtkSwitch* toggle,
                                                                                                                                         gboolean is_advanced,
                                                                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType line_type);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* proton_plus_widgets_games_launch_options_editor_launch_option_binding_construct (GType object_type,
                                                                                                                                               gchar** tokens,
                                                                                                                                               gint tokens_length1,
                                                                                                                                               GtkSwitch* toggle,
                                                                                                                                               gboolean is_advanced,
                                                                                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType line_type);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_new (const gchar* title,
                                                                                                                                                          const gchar* subtitle,
                                                                                                                                                          gboolean include_auto,
                                                                                                                                                          gboolean is_scopebuddy);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_construct (GType object_type,
                                                                                                                                                                const gchar* title,
                                                                                                                                                                const gchar* subtitle,
                                                                                                                                                                gboolean include_auto,
                                                                                                                                                                gboolean is_scopebuddy);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_resolution_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* value);
VALA_EXTERN GtkSwitch* proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_get_toggle (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* self);
static void __lambda158_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda158__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
VALA_EXTERN GtkDropDown* proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_get_dropdown (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* self);
static void __lambda159_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda159__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void __lambda160_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda160__proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_value_applied (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _sender,
                                                                                                                 gpointer self);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_new (const gchar* title,
                                                                                                                                                const gchar* subtitle,
                                                                                                                                                const gchar* placeholder);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_construct (GType object_type,
                                                                                                                                                      const gchar* title,
                                                                                                                                                      const gchar* subtitle,
                                                                                                                                                      const gchar* placeholder);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_args_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* value);
static void __lambda161_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self);
static void ___lambda161__proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_value_applied (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _sender,
                                                                                                            gpointer self);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_clear (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_parse_tokens (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                            gchar** tokens,
                                                                                            gint tokens_length1,
                                                                                            gboolean* consumed,
                                                                                            gint consumed_length1);
VALA_EXTERN gint proton_plus_widgets_games_launch_options_editor_wrappers_base_get_first_present_index (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* self,
                                                                                            gchar** tokens,
                                                                                            gint tokens_length1,
                                                                                            gchar** candidates,
                                                                                            gint candidates_length1);
VALA_EXTERN gint proton_plus_widgets_games_launch_options_editor_wrappers_base_get_wrapper_end_index (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* self,
                                                                                          gchar** tokens,
                                                                                          gint tokens_length1,
                                                                                          gint wrapper_index,
                                                                                          gboolean* consumed,
                                                                                          gint consumed_length1);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_wrappers_base_append_token (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* self,
                                                                                 GString* output,
                                                                                 const gchar* token);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_append_command_segments (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                                       GeeLinkedList* segments);
static void proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_property (GObject * object,
                                                                                             guint property_id,
                                                                                             GValue * value,
                                                                                             GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_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_wrappers_scopebuddy_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy_private_offset);
}

static void
_g_object_unref0_ (gpointer var)
{
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
}

static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_construct (GType object_type,
                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self = NULL;
	g_return_val_if_fail (launch_option_handlers != NULL, NULL);
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) proton_plus_widgets_games_launch_options_editor_wrappers_base_construct (object_type, launch_option_handlers, presentation_registry);
	(self->priv->bindings == NULL) ? NULL : (self->priv->bindings = (_g_list_free__g_object_unref0_ (self->priv->bindings), NULL));
	self->priv->bindings = NULL;
	_g_object_unref0 (self->priv->cached_page);
	self->priv->cached_page = NULL;
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	return proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_SCOPEBUDDY, launch_option_handlers, presentation_registry);
}

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

void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_selection_change (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	GtkSwitch* _tmp1_;
	GtkSwitch* _tmp2_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp3_;
	GtkSwitch* _tmp4_;
	GtkSwitch* _tmp5_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp6_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp7_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp8_;
	GList* _tmp9_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->_fullscreen_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->_framerate_tile;
	_tmp4_ = proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_toggle (_tmp3_);
	_tmp5_ = _tmp4_;
	gtk_switch_set_active (_tmp5_, FALSE);
	_tmp6_ = self->priv->_framerate_tile;
	proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_set_value (_tmp6_, 60);
	_tmp7_ = self->priv->_resolution_field;
	proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_reset (_tmp7_);
	_tmp8_ = self->priv->_args_field;
	proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_set_text (_tmp8_, "");
	_tmp9_ = self->priv->bindings;
	{
		GList* binding_collection = NULL;
		GList* binding_it = NULL;
		binding_collection = _tmp9_;
		for (binding_it = binding_collection; binding_it != NULL; binding_it = binding_it->next) {
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* _tmp10_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* binding = NULL;
			_tmp10_ = _g_object_ref0 ((ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding*) binding_it->data);
			binding = _tmp10_;
			{
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* _tmp11_;
				GtkSwitch* _tmp12_;
				GtkSwitch* _tmp13_;
				_tmp11_ = binding;
				_tmp12_ = proton_plus_widgets_games_launch_options_editor_launch_option_binding_get_toggle (_tmp11_);
				_tmp13_ = _tmp12_;
				gtk_switch_set_active (_tmp13_, FALSE);
				_g_object_unref0 (binding);
			}
		}
	}
}

static void
__lambda153_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

static void
___lambda153__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda153_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) self);
}

static void
__lambda154_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

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

static void
__lambda155_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

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

static void
__lambda156_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

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

static void
__lambda157_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

static void
___lambda157__proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_value_applied (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _sender,
                                                                                                     gpointer self)
{
	__lambda157_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) self);
}

static void
__lambda158_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

static void
___lambda158__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda158_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) self);
}

static void
__lambda159_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

static void
___lambda159__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	__lambda159_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) self);
}

static void
__lambda160_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

static void
___lambda160__proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_value_applied (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _sender,
                                                                                                            gpointer self)
{
	__lambda160_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) self);
}

static void
__lambda161_ (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "changed");
}

static void
___lambda161__proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_value_applied (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _sender,
                                                                                                       gpointer self)
{
	__lambda161_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) self);
}

GtkWidget*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_create_page (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	AdwPreferencesGroup* group = NULL;
	AdwPreferencesGroup* _tmp0_;
	GtkWidget* _tmp1_;
	gchar* _tmp4_;
	gchar** _tmp5_;
	gchar** _tmp6_;
	gint _tmp6__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp7_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp8_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp9_;
	GtkSwitch* _tmp10_;
	GtkSwitch* _tmp11_;
	gchar* _tmp12_;
	gchar** _tmp13_;
	gchar** _tmp14_;
	gint _tmp14__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp15_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp16_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp17_;
	GtkSwitch* _tmp18_;
	GtkSwitch* _tmp19_;
	gchar* _tmp20_;
	gchar** _tmp21_;
	gchar** _tmp22_;
	gint _tmp22__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp23_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp24_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp25_;
	GtkSwitch* _tmp26_;
	GtkSwitch* _tmp27_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp28_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp29_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp30_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp31_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp32_;
	GtkSwitch* _tmp33_;
	GtkSwitch* _tmp34_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp35_;
	gchar* _tmp36_;
	gchar** _tmp37_;
	gchar** _tmp38_;
	gint _tmp38__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp39_;
	GtkSwitch* _tmp40_;
	GtkSwitch* _tmp41_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* _tmp42_;
	gchar* _tmp43_;
	gchar** _tmp44_;
	gchar** _tmp45_;
	gint _tmp45__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp46_;
	GtkSwitch* _tmp47_;
	GtkSwitch* _tmp48_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionBinding* _tmp49_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp50_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp51_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp52_;
	GtkSwitch* _tmp53_;
	GtkSwitch* _tmp54_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp55_;
	GtkDropDown* _tmp56_;
	GtkDropDown* _tmp57_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp58_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* _tmp59_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp60_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp61_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp62_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp63_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp64_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp65_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp66_;
	AdwPreferencesGroup* _tmp67_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp68_;
	AdwPreferencesGroup* _tmp69_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp70_;
	AdwPreferencesGroup* _tmp71_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp72_;
	AdwPreferencesGroup* _tmp73_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp74_;
	AdwPreferencesGroup* _tmp75_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp76_;
	AdwPreferencesGroup* _tmp77_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp78_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp79_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp80_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp81_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp82_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp83_;
	AdwPreferencesGroup* _tmp84_;
	GtkWidget* _tmp85_;
	GtkWidget* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = (AdwPreferencesGroup*) adw_preferences_group_new ();
	g_object_ref_sink (_tmp0_);
	group = _tmp0_;
	_tmp1_ = self->priv->cached_page;
	if (_tmp1_ != NULL) {
		GtkWidget* _tmp2_;
		GtkWidget* _tmp3_;
		_tmp2_ = self->priv->cached_page;
		_tmp3_ = _g_object_ref0 (_tmp2_);
		result = _tmp3_;
		_g_object_unref0 (group);
		return result;
	}
	_tmp4_ = g_strdup ("-f");
	_tmp5_ = g_new0 (gchar*, 1 + 1);
	_tmp5_[0] = _tmp4_;
	_tmp6_ = _tmp5_;
	_tmp6__length1 = 1;
	_tmp7_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _ ("Fullscreen"), _ ("Runs the game in a fullscreen session."), _tmp6_, (gint) 1, TRUE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_WRAPPER_ARGUMENT, "scopebuddy-fullscreen");
	_tmp8_ = _tmp7_;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_fullscreen_tile (self, _tmp8_);
	_g_object_unref0 (_tmp8_);
	_tmp6_ = (_vala_array_free (_tmp6_, _tmp6__length1, (GDestroyNotify) g_free), NULL);
	_tmp9_ = self->priv->_fullscreen_tile;
	_tmp10_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp9_);
	_tmp11_ = _tmp10_;
	g_signal_connect_object ((GObject*) _tmp11_, "notify::active", (GCallback) ___lambda153__g_object_notify, self, 0);
	_tmp12_ = g_strdup ("SCB_AUTO_HDR=1");
	_tmp13_ = g_new0 (gchar*, 1 + 1);
	_tmp13_[0] = _tmp12_;
	_tmp14_ = _tmp13_;
	_tmp14__length1 = 1;
	_tmp15_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _ ("Automatic HDR"), _ ("Outputs HDR colors if your display supports it."), _tmp14_, (gint) 1, TRUE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "scopebuddy-auto-hdr");
	_tmp16_ = _tmp15_;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_auto_hdr_tile (self, _tmp16_);
	_g_object_unref0 (_tmp16_);
	_tmp14_ = (_vala_array_free (_tmp14_, _tmp14__length1, (GDestroyNotify) g_free), NULL);
	_tmp17_ = self->priv->_auto_hdr_tile;
	_tmp18_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp17_);
	_tmp19_ = _tmp18_;
	g_signal_connect_object ((GObject*) _tmp19_, "notify::active", (GCallback) ___lambda154__g_object_notify, self, 0);
	_tmp20_ = g_strdup ("SCB_AUTO_VRR=1");
	_tmp21_ = g_new0 (gchar*, 1 + 1);
	_tmp21_[0] = _tmp20_;
	_tmp22_ = _tmp21_;
	_tmp22__length1 = 1;
	_tmp23_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _ ("Automatic variable refresh rate"), _ ("Matches your display's refresh rate to the game's FPS."), _tmp22_, (gint) 1, TRUE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "scopebuddy-auto-vrr");
	_tmp24_ = _tmp23_;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_auto_vrr_tile (self, _tmp24_);
	_g_object_unref0 (_tmp24_);
	_tmp22_ = (_vala_array_free (_tmp22_, _tmp22__length1, (GDestroyNotify) g_free), NULL);
	_tmp25_ = self->priv->_auto_vrr_tile;
	_tmp26_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp25_);
	_tmp27_ = _tmp26_;
	g_signal_connect_object ((GObject*) _tmp27_, "notify::active", (GCallback) ___lambda155__g_object_notify, self, 0);
	_tmp28_ = proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_new (_ ("Frame limit"), _ ("Caps the frame rate inside ScopeBuddy."), _ ("FPS"), (gdouble) 30, (gdouble) 360, 60, "-r ");
	g_object_ref_sink (_tmp28_);
	_tmp29_ = _tmp28_;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_framerate_tile (self, _tmp29_);
	_g_object_unref0 (_tmp29_);
	_tmp30_ = self->priv->_framerate_tile;
	_tmp31_ = self->priv->_framerate_tile;
	proton_plus_widgets_games_launch_options_editor_wrappers_base_register_option ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "scopebuddy-frame-limit", (GtkWidget*) _tmp30_, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp31_);
	_tmp32_ = self->priv->_framerate_tile;
	_tmp33_ = proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_toggle (_tmp32_);
	_tmp34_ = _tmp33_;
	g_signal_connect_object ((GObject*) _tmp34_, "notify::active", (GCallback) ___lambda156__g_object_notify, self, 0);
	_tmp35_ = self->priv->_framerate_tile;
	g_signal_connect_object (_tmp35_, "value-applied", (GCallback) ___lambda157__proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_value_applied, self, 0);
	_tmp36_ = g_strdup ("SCB_AUTO_HDR=1");
	_tmp37_ = g_new0 (gchar*, 1 + 1);
	_tmp37_[0] = _tmp36_;
	_tmp38_ = _tmp37_;
	_tmp38__length1 = 1;
	_tmp39_ = self->priv->_auto_hdr_tile;
	_tmp40_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp39_);
	_tmp41_ = _tmp40_;
	_tmp42_ = proton_plus_widgets_games_launch_options_editor_launch_option_binding_new (_tmp38_, 1, _tmp41_, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT);
	self->priv->bindings = g_list_append (self->priv->bindings, _tmp42_);
	_tmp38_ = (_vala_array_free (_tmp38_, _tmp38__length1, (GDestroyNotify) g_free), NULL);
	_tmp43_ = g_strdup ("SCB_AUTO_VRR=1");
	_tmp44_ = g_new0 (gchar*, 1 + 1);
	_tmp44_[0] = _tmp43_;
	_tmp45_ = _tmp44_;
	_tmp45__length1 = 1;
	_tmp46_ = self->priv->_auto_vrr_tile;
	_tmp47_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp46_);
	_tmp48_ = _tmp47_;
	_tmp49_ = proton_plus_widgets_games_launch_options_editor_launch_option_binding_new (_tmp45_, 1, _tmp48_, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT);
	self->priv->bindings = g_list_append (self->priv->bindings, _tmp49_);
	_tmp45_ = (_vala_array_free (_tmp45_, _tmp45__length1, (GDestroyNotify) g_free), NULL);
	_tmp50_ = proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_new (_ ("Resolution"), _ ("Sets the ScopeBuddy output resolution."), TRUE, TRUE);
	g_object_ref_sink (_tmp50_);
	_tmp51_ = _tmp50_;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_resolution_field (self, _tmp51_);
	_g_object_unref0 (_tmp51_);
	_tmp52_ = self->priv->_resolution_field;
	_tmp53_ = proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_get_toggle (_tmp52_);
	_tmp54_ = _tmp53_;
	g_signal_connect_object ((GObject*) _tmp54_, "notify::active", (GCallback) ___lambda158__g_object_notify, self, 0);
	_tmp55_ = self->priv->_resolution_field;
	_tmp56_ = proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_get_dropdown (_tmp55_);
	_tmp57_ = _tmp56_;
	g_signal_connect_object ((GObject*) _tmp57_, "notify::selected", (GCallback) ___lambda159__g_object_notify, self, 0);
	_tmp58_ = self->priv->_resolution_field;
	g_signal_connect_object (_tmp58_, "value-applied", (GCallback) ___lambda160__proton_plus_widgets_games_launch_options_editor_launch_option_resolution_field_value_applied, self, 0);
	_tmp59_ = ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self)->launch_option_handlers;
	_tmp60_ = self->priv->_resolution_field;
	proton_plus_widgets_games_launch_options_editor_launch_options_list_add (_tmp59_, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp60_);
	_tmp61_ = self->priv->_resolution_field;
	_tmp62_ = self->priv->_resolution_field;
	proton_plus_widgets_games_launch_options_editor_wrappers_base_register_option ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "scopebuddy-resolution", (GtkWidget*) _tmp61_, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp62_);
	_tmp63_ = proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_new (_ ("Additional ScopeBuddy arguments"), _ ("Keeps extra ScopeBuddy flags such as preferred output selection."), _ ("Add ScopeBuddy arguments"));
	g_object_ref_sink (_tmp63_);
	_tmp64_ = _tmp63_;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_args_field (self, _tmp64_);
	_g_object_unref0 (_tmp64_);
	_tmp65_ = self->priv->_args_field;
	proton_plus_widgets_games_launch_options_editor_wrappers_base_register_option ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, "scopebuddy-arguments", (GtkWidget*) _tmp65_, NULL);
	_tmp66_ = self->priv->_args_field;
	g_signal_connect_object (_tmp66_, "value-applied", (GCallback) ___lambda161__proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_value_applied, self, 0);
	_tmp67_ = group;
	_tmp68_ = self->priv->_fullscreen_tile;
	adw_preferences_group_add (_tmp67_, (GtkWidget*) _tmp68_);
	_tmp69_ = group;
	_tmp70_ = self->priv->_auto_hdr_tile;
	adw_preferences_group_add (_tmp69_, (GtkWidget*) _tmp70_);
	_tmp71_ = group;
	_tmp72_ = self->priv->_auto_vrr_tile;
	adw_preferences_group_add (_tmp71_, (GtkWidget*) _tmp72_);
	_tmp73_ = group;
	_tmp74_ = self->priv->_framerate_tile;
	adw_preferences_group_add (_tmp73_, (GtkWidget*) _tmp74_);
	_tmp75_ = group;
	_tmp76_ = self->priv->_resolution_field;
	adw_preferences_group_add (_tmp75_, (GtkWidget*) _tmp76_);
	_tmp77_ = group;
	_tmp78_ = self->priv->_args_field;
	adw_preferences_group_add (_tmp77_, (GtkWidget*) _tmp78_);
	_tmp79_ = self->priv->_fullscreen_tile;
	proton_plus_widgets_games_launch_options_editor_ilaunch_option_add_child ((ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) self, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp79_);
	_tmp80_ = self->priv->_auto_hdr_tile;
	proton_plus_widgets_games_launch_options_editor_ilaunch_option_add_child ((ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) self, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp80_);
	_tmp81_ = self->priv->_auto_vrr_tile;
	proton_plus_widgets_games_launch_options_editor_ilaunch_option_add_child ((ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) self, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp81_);
	_tmp82_ = self->priv->_framerate_tile;
	proton_plus_widgets_games_launch_options_editor_ilaunch_option_add_child ((ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) self, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp82_);
	_tmp83_ = self->priv->_resolution_field;
	proton_plus_widgets_games_launch_options_editor_ilaunch_option_add_child ((ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) self, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp83_);
	_tmp84_ = group;
	_tmp85_ = _g_object_ref0 ((GtkWidget*) _tmp84_);
	_g_object_unref0 (self->priv->cached_page);
	self->priv->cached_page = _tmp85_;
	result = (GtkWidget*) group;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_clear (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp9_;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) base;
	{
		GeeList* _child_list = NULL;
		GeeList* _tmp0_;
		gint _child_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _child_index = 0;
		_tmp0_ = ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self)->_children;
		_child_list = _tmp0_;
		_tmp1_ = _child_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_child_size = _tmp3_;
		_child_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp8_;
			_child_index = _child_index + 1;
			_tmp4_ = _child_index;
			_tmp5_ = _child_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _child_list;
			_tmp7_ = gee_list_get (_tmp6_, _child_index);
			child = (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp7_;
			_tmp8_ = child;
			proton_plus_widgets_games_launch_options_editor_ilaunch_option_clear (_tmp8_);
			_g_object_unref0 (child);
		}
	}
	_tmp9_ = self->priv->_args_field;
	proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_set_text (_tmp9_, "");
}

static gboolean
int_try_parse (const gchar* str,
               gint* _result_,
               const gchar** unparsed,
               guint _base)
{
	gint _vala__result_ = 0;
	const gchar* _vala_unparsed = NULL;
	gchar* endptr = NULL;
	glong long_result = 0L;
	gchar* _tmp0_ = NULL;
	glong _tmp1_;
	gchar* _tmp2_;
	gint _tmp3_;
	gint _tmp4_;
	glong _tmp6_;
	gboolean result;
	g_return_val_if_fail (str != NULL, FALSE);
	errno = 0;
	_tmp1_ = strtol (str, &_tmp0_, (gint) _base);
	endptr = _tmp0_;
	long_result = _tmp1_;
	_tmp2_ = endptr;
	_tmp3_ = strlen (str);
	_tmp4_ = _tmp3_;
	if (_tmp2_ == (((gchar*) str) + _tmp4_)) {
		_vala_unparsed = "";
	} else {
		gchar* _tmp5_;
		_tmp5_ = endptr;
		_vala_unparsed = (const gchar*) _tmp5_;
	}
	_tmp6_ = long_result;
	if ((((glong) G_MININT) <= _tmp6_) && (_tmp6_ <= ((glong) G_MAXINT))) {
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
		_vala__result_ = (gint) long_result;
		if (errno != ERANGE) {
			_tmp8_ = errno != EINVAL;
		} else {
			_tmp8_ = FALSE;
		}
		if (_tmp8_) {
			const gchar* _tmp9_;
			gchar* _tmp10_;
			_tmp9_ = _vala_unparsed;
			_tmp10_ = endptr;
			_tmp7_ = _tmp9_ != _tmp10_;
		} else {
			_tmp7_ = FALSE;
		}
		result = _tmp7_;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	} else {
		_vala__result_ = G_MAXINT;
		result = FALSE;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	}
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_parse_tokens (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                       gchar** tokens,
                                                                                       gint tokens_length1,
                                                                                       gboolean* consumed,
                                                                                       gint consumed_length1)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self;
	gint wrapper_index = 0;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar** _tmp2_;
	gchar** _tmp3_;
	gint _tmp3__length1;
	gint _tmp4_;
	gint end_index = 0;
	GString* extra_args = NULL;
	GString* _tmp5_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp25_;
	GString* _tmp26_;
	const gchar* _tmp27_;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) base;
	_tmp0_ = g_strdup ("scopebuddy");
	_tmp1_ = g_strdup ("scb");
	_tmp2_ = g_new0 (gchar*, 2 + 1);
	_tmp2_[0] = _tmp0_;
	_tmp2_[1] = _tmp1_;
	_tmp3_ = _tmp2_;
	_tmp3__length1 = 2;
	_tmp4_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_first_present_index ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, tokens, (gint) tokens_length1, _tmp3_, (gint) 2);
	_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
	wrapper_index = _tmp4_;
	if (wrapper_index < 0) {
		proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, FALSE);
		return;
	}
	proton_plus_widgets_games_launch_options_editor_wrappers_base_set_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, TRUE);
	consumed[wrapper_index] = TRUE;
	end_index = proton_plus_widgets_games_launch_options_editor_wrappers_base_get_wrapper_end_index ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, tokens, (gint) tokens_length1, wrapper_index, consumed, (gint) consumed_length1);
	_tmp5_ = g_string_new ("");
	extra_args = _tmp5_;
	{
		gint index = 0;
		index = wrapper_index + 1;
		{
			gboolean _tmp6_ = FALSE;
			_tmp6_ = TRUE;
			while (TRUE) {
				gboolean _tmp8_;
				const gchar* _tmp9_;
				gboolean _tmp13_ = FALSE;
				const gchar* _tmp14_;
				GString* _tmp23_;
				const gchar* _tmp24_;
				if (!_tmp6_) {
					gint _tmp7_;
					_tmp7_ = index;
					index = _tmp7_ + 1;
				}
				_tmp6_ = FALSE;
				if (!(index < end_index)) {
					break;
				}
				_tmp8_ = consumed[index];
				if (_tmp8_) {
					continue;
				}
				_tmp9_ = tokens[index];
				if (g_strcmp0 (_tmp9_, "-f") == 0) {
					ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp10_;
					GtkSwitch* _tmp11_;
					GtkSwitch* _tmp12_;
					_tmp10_ = self->priv->_fullscreen_tile;
					_tmp11_ = proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_toggle (_tmp10_);
					_tmp12_ = _tmp11_;
					gtk_switch_set_active (_tmp12_, TRUE);
					consumed[index] = TRUE;
					continue;
				}
				_tmp14_ = tokens[index];
				if (g_strcmp0 (_tmp14_, "-r") == 0) {
					_tmp13_ = (index + 1) < end_index;
				} else {
					_tmp13_ = FALSE;
				}
				if (_tmp13_) {
					gint framerate = 0;
					const gchar* _tmp15_;
					gint _tmp16_ = 0;
					gboolean _tmp17_;
					_tmp15_ = tokens[index + 1];
					_tmp17_ = int_try_parse (_tmp15_, &_tmp16_, NULL, (guint) 0);
					framerate = _tmp16_;
					if (_tmp17_) {
						ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp18_;
						GtkSwitch* _tmp19_;
						GtkSwitch* _tmp20_;
						ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp21_;
						gint _tmp22_;
						_tmp18_ = self->priv->_framerate_tile;
						_tmp19_ = proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_toggle (_tmp18_);
						_tmp20_ = _tmp19_;
						gtk_switch_set_active (_tmp20_, TRUE);
						_tmp21_ = self->priv->_framerate_tile;
						proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_set_value (_tmp21_, framerate);
						consumed[index] = TRUE;
						consumed[index + 1] = TRUE;
						_tmp22_ = index;
						index = _tmp22_ + 1;
						continue;
					}
				}
				_tmp23_ = extra_args;
				_tmp24_ = tokens[index];
				proton_plus_widgets_games_launch_options_editor_wrappers_base_append_token ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _tmp23_, _tmp24_);
				consumed[index] = TRUE;
			}
		}
	}
	_tmp25_ = self->priv->_args_field;
	_tmp26_ = extra_args;
	_tmp27_ = _tmp26_->str;
	proton_plus_widgets_games_launch_options_editor_launch_option_entry_field_set_text (_tmp25_, _tmp27_);
	_g_string_free0 (extra_args);
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_append_command_segments (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                                  GeeLinkedList* segments)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy*) base;
	g_return_if_fail (segments != NULL);
	if (!proton_plus_widgets_games_launch_options_editor_ilaunch_option_is_active ((ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) self)) {
		return;
	}
	gee_abstract_collection_add ((GeeAbstractCollection*) segments, "scopebuddy");
	{
		GeeList* _child_list = NULL;
		GeeList* _tmp0_;
		gint _child_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _child_index = 0;
		_tmp0_ = ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self)->_children;
		_child_list = _tmp0_;
		_tmp1_ = _child_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_child_size = _tmp3_;
		_child_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp8_;
			_child_index = _child_index + 1;
			_tmp4_ = _child_index;
			_tmp5_ = _child_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _child_list;
			_tmp7_ = gee_list_get (_tmp6_, _child_index);
			child = (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp7_;
			_tmp8_ = child;
			if (proton_plus_widgets_games_launch_options_editor_ilaunch_option_is_active (_tmp8_)) {
				ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp9_;
				_tmp9_ = child;
				proton_plus_widgets_games_launch_options_editor_ilaunch_option_append_command_segments (_tmp9_, segments);
			}
			_g_object_unref0 (child);
		}
	}
	gee_abstract_collection_add ((GeeAbstractCollection*) segments, "--");
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_fullscreen_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_fullscreen_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_fullscreen_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_fullscreen_tile);
	self->priv->_fullscreen_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_auto_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_auto_hdr_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_auto_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                       ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_auto_hdr_tile);
	self->priv->_auto_hdr_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_auto_vrr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_auto_vrr_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_auto_vrr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                       ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_auto_vrr_tile);
	self->priv->_auto_vrr_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_framerate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_framerate_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_framerate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                        ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_framerate_tile);
	self->priv->_framerate_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_resolution_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_resolution_field;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_resolution_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                          ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionResolutionField* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_resolution_field);
	self->priv->_resolution_field = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField*
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_args_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_args_field;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_args_field (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy* self,
                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEntryField* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_args_field);
	self->priv->_args_field = _tmp0_;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddyClass * klass,
                                                                                gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy_private_offset);
	((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBaseClass *) klass)->clear = (void (*) (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*)) proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_clear;
	((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBaseClass *) klass)->parse_tokens = (void (*) (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*, gchar**, gint, gboolean*, gint)) proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_parse_tokens;
	((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBaseClass *) klass)->append_command_segments = (void (*) (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*, GeeLinkedList*)) proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_real_append_command_segments;
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_finalize;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self,
                                                                                   gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_instance_private (self);
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_SCOPEBUDDY, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy);
	_g_object_unref0 (self->priv->_fullscreen_tile);
	_g_object_unref0 (self->priv->_auto_hdr_tile);
	_g_object_unref0 (self->priv->_auto_vrr_tile);
	_g_object_unref0 (self->priv->_framerate_tile);
	_g_object_unref0 (self->priv->_resolution_field);
	_g_object_unref0 (self->priv->_args_field);
	(self->priv->bindings == NULL) ? NULL : (self->priv->bindings = (_g_list_free__g_object_unref0_ (self->priv->bindings), NULL));
	_g_object_unref0 (self->priv->cached_page);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id;
	proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_BASE, "ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddyPrivate));
	return proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id;
		proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id = proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id__once, proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_wrappers_scopebuddy_get_property (GObject * object,
                                                                                        guint property_id,
                                                                                        GValue * value,
                                                                                        GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_SCOPEBUDDY, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy);
	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_wrappers_scopebuddy_set_property (GObject * object,
                                                                                        guint property_id,
                                                                                        const GValue * value,
                                                                                        GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_SCOPEBUDDY, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersScopebuddy);
	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;
}

