/* mangohud-extras-page.c generated by valac 0.56.19, the Vala compiler
 * generated from mangohud-extras-page.vala, do not modify */

#include "protonplus_core.h"
#include <adwaita.h>
#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <gio/gio.h>
#include <gdk/gdk.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

enum  {
	PROTON_PLUS_WIDGETS_MANGO_HUD_EXTRAS_PAGE_0_PROPERTY,
	PROTON_PLUS_WIDGETS_MANGO_HUD_EXTRAS_PAGE_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_mango_hud_extras_page_properties[PROTON_PLUS_WIDGETS_MANGO_HUD_EXTRAS_PAGE_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block38Data Block38Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

struct _ProtonPlusWidgetsMangoHudExtrasPagePrivate {
	AdwSwitchRow* distro_row;
	AdwSwitchRow* refresh_rate_row;
	AdwSwitchRow* resolution_row;
	AdwSwitchRow* display_server_row;
	AdwSwitchRow* arch_row;
	AdwSwitchRow* wine_row;
	AdwSwitchRow* engine_version_row;
	AdwSwitchRow* engine_short_names_row;
	AdwSwitchRow* wine_sync_row;
	AdwSwitchRow* dx_api_row;
	AdwSwitchRow* fex_stats_row;
	AdwSwitchRow* hud_version_row;
	AdwSwitchRow* gamemode_row;
	AdwSwitchRow* vkbasalt_row;
	AdwSwitchRow* fcat_row;
	AdwSwitchRow* fsr_row;
	AdwSwitchRow* hdr_row;
	AdwSwitchRow* battery_row;
	AdwSwitchRow* battery_wattage_row;
	AdwSwitchRow* battery_time_row;
	AdwSwitchRow* device_battery_row;
	AdwSwitchRow* media_player_row;
	GtkColorDialogButton* wine_color_btn;
	GtkColorDialogButton* engine_color_btn;
	GtkColorDialogButton* battery_color_btn;
	GtkColorDialogButton* media_player_color_btn;
	AdwEntryRow* network_row;
	AdwSwitchRow* fahrenheit_row;
	AdwSwitchRow* time_row;
	AdwEntryRow* custom_text_row;
	GtkListBoxRow* autostart_log_row;
	GtkScale* autostart_log_scale;
	GtkListBoxRow* log_duration_row;
	GtkScale* log_duration_scale;
	GtkListBoxRow* log_interval_row;
	GtkScale* log_interval_scale;
	AdwComboRow* toggle_logging_row;
	AdwEntryRow* output_folder_row;
	AdwSwitchRow* upload_log_row;
	AdwSwitchRow* log_versioning_row;
};

struct _Block38Data {
	int _ref_count_;
	ProtonPlusWidgetsMangoHudExtrasPage* self;
	GtkFileDialog* folder_dialog;
};

static gint ProtonPlusWidgetsMangoHudExtrasPage_private_offset;
static gpointer proton_plus_widgets_mango_hud_extras_page_parent_class = NULL;

static void __lambda249_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda249__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda250_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda250__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda251_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda251__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda252_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda252__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda253_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda253__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda254_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda254__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda255_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda255__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda256_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda256__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda257_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda257__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda258_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda258__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda259_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda259__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda260_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda260__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda261_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda261__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda262_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda262__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda263_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda263__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda264_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda264__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda265_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda265__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda266_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda266__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda267_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda267__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda268_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda268__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda269_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda269__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda270_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda270__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda271_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda271__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda272_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda272__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda273_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda273__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda274_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda274__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda275_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda275__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda276_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda276__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda277_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda277__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda278_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda278__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda279_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda279__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda280_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda280__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda281_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda281__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda282_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gint val);
static void ___lambda282__proton_plus_widgets_mango_hud_page_set_value_func_int (gint val,
                                                                          gpointer self);
static void proton_plus_widgets_mango_hud_extras_page_refresh_toggle_logging_row (ProtonPlusWidgetsMangoHudExtrasPage* self);
static void __lambda283_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   const gchar* val);
static void ___lambda283__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda284_ (ProtonPlusWidgetsMangoHudExtrasPage* self);
static Block38Data* block38_data_ref (Block38Data* _data38_);
static void block38_data_unref (void * _userdata_);
static void __lambda285_ (Block38Data* _data38_,
                   GObject* obj,
                   GAsyncResult* res);
static void ___lambda285__gasync_ready_callback (GObject* source_object,
                                          GAsyncResult* res,
                                          gpointer self);
static void ___lambda284__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda286_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda286__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda287_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
                   gboolean val);
static void ___lambda287__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void proton_plus_widgets_mango_hud_extras_page_real_refresh (ProtonPlusWidgetsMangoHudPage* base);
static void proton_plus_widgets_mango_hud_extras_page_finalize (GObject * obj);
static GType proton_plus_widgets_mango_hud_extras_page_get_type_once (void);
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_mango_hud_extras_page_get_instance_private (ProtonPlusWidgetsMangoHudExtrasPage* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsMangoHudExtrasPage_private_offset);
}

static void
__lambda249_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_distro (_tmp1_, val);
}

static void
___lambda249__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda249_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda250_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_refresh_rate (_tmp1_, val);
}

static void
___lambda250__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda250_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda251_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_resolution (_tmp1_, val);
}

static void
___lambda251__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda251_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda252_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_display_server (_tmp1_, val);
}

static void
___lambda252__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda252_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda253_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_time (_tmp1_, val);
}

static void
___lambda253__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda253_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda254_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_arch (_tmp1_, val);
}

static void
___lambda254__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda254_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

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

static void
__lambda255_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_wine (_tmp1_, val);
}

static void
___lambda255__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda255_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda256_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_wine_color (_tmp1_, val);
}

static void
___lambda256__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda256_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda257_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_engine_version (_tmp1_, val);
}

static void
___lambda257__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda257_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda258_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_engine_color (_tmp1_, val);
}

static void
___lambda258__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda258_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda259_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_engine_short_names (_tmp1_, val);
}

static void
___lambda259__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda259_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda260_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_wine_sync (_tmp1_, val);
}

static void
___lambda260__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda260_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda261_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_dx_api (_tmp1_, val);
}

static void
___lambda261__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda261_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda262_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_fex_stats (_tmp1_, val);
}

static void
___lambda262__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda262_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda263_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_hud_version (_tmp1_, val);
}

static void
___lambda263__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda263_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda264_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_gamemode (_tmp1_, val);
}

static void
___lambda264__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda264_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda265_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_vkbasalt (_tmp1_, val);
}

static void
___lambda265__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda265_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda266_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_fcat (_tmp1_, val);
}

static void
___lambda266__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda266_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda267_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_fsr (_tmp1_, val);
}

static void
___lambda267__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda267_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda268_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_hdr (_tmp1_, val);
}

static void
___lambda268__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda268_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda269_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_battery (_tmp1_, val);
}

static void
___lambda269__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda269_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda270_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_battery_color (_tmp1_, val);
}

static void
___lambda270__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda270_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda271_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_battery_wattage (_tmp1_, val);
}

static void
___lambda271__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda271_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda272_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_battery_time (_tmp1_, val);
}

static void
___lambda272__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda272_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda273_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_device_battery (_tmp1_, val);
}

static void
___lambda273__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda273_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda274_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_media_player (_tmp1_, val);
}

static void
___lambda274__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda274_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda275_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_media_player_color (_tmp1_, val);
}

static void
___lambda275__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda275_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda276_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_network (_tmp1_, val);
}

static void
___lambda276__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda276_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda277_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_fahrenheit (_tmp1_, val);
}

static void
___lambda277__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda277_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda278_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_custom_text (_tmp1_, val);
}

static void
___lambda278__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda278_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda279_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_log_duration (_tmp1_, val);
}

static void
___lambda279__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda279_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda280_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_autostart_log (_tmp1_, val);
}

static void
___lambda280__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda280_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda281_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_log_interval (_tmp1_, val);
}

static void
___lambda281__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda281_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda282_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gint val)
{
	switch (val) {
		case 0:
		{
			ProtonPlusUtilsMangoHudManager* _tmp0_;
			ProtonPlusUtilsMangoHudManager* _tmp1_;
			_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
			_tmp1_ = _tmp0_;
			proton_plus_utils_mango_hud_manager_set_toggle_logging (_tmp1_, "Shift_L+F2");
			break;
		}
		case 1:
		{
			ProtonPlusUtilsMangoHudManager* _tmp2_;
			ProtonPlusUtilsMangoHudManager* _tmp3_;
			_tmp2_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
			_tmp3_ = _tmp2_;
			proton_plus_utils_mango_hud_manager_set_toggle_logging (_tmp3_, "Shift_L+F3");
			break;
		}
		case 2:
		{
			ProtonPlusUtilsMangoHudManager* _tmp4_;
			ProtonPlusUtilsMangoHudManager* _tmp5_;
			_tmp4_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
			_tmp5_ = _tmp4_;
			proton_plus_utils_mango_hud_manager_set_toggle_logging (_tmp5_, "Shift_L+F4");
			break;
		}
		case 3:
		{
			ProtonPlusUtilsMangoHudManager* _tmp6_;
			ProtonPlusUtilsMangoHudManager* _tmp7_;
			_tmp6_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
			_tmp7_ = _tmp6_;
			proton_plus_utils_mango_hud_manager_set_toggle_logging (_tmp7_, "Shift_L+F5");
			break;
		}
		case 4:
		{
			ProtonPlusUtilsMangoHudManager* _tmp8_;
			ProtonPlusUtilsMangoHudManager* _tmp9_;
			_tmp8_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
			_tmp9_ = _tmp8_;
			proton_plus_utils_mango_hud_manager_set_toggle_logging (_tmp9_, "");
			break;
		}
		default:
		break;
	}
}

static void
___lambda282__proton_plus_widgets_mango_hud_page_set_value_func_int (gint val,
                                                                     gpointer self)
{
	__lambda282_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda283_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              const gchar* val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	g_return_if_fail (val != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_output_folder (_tmp1_, val);
}

static void
___lambda283__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda283_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static Block38Data*
block38_data_ref (Block38Data* _data38_)
{
	g_atomic_int_inc (&_data38_->_ref_count_);
	return _data38_;
}

static void
block38_data_unref (void * _userdata_)
{
	Block38Data* _data38_;
	_data38_ = (Block38Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data38_->_ref_count_)) {
		ProtonPlusWidgetsMangoHudExtrasPage* self;
		self = _data38_->self;
		_g_object_unref0 (_data38_->folder_dialog);
		_g_object_unref0 (self);
		g_slice_free (Block38Data, _data38_);
	}
}

static void
__lambda285_ (Block38Data* _data38_,
              GObject* obj,
              GAsyncResult* res)
{
	ProtonPlusWidgetsMangoHudExtrasPage* self;
	GError* _inner_error0_ = NULL;
	self = _data38_->self;
	g_return_if_fail (res != NULL);
	{
		GFile* file = NULL;
		GFile* _tmp0_;
		AdwEntryRow* _tmp1_;
		gchar* _tmp2_;
		gchar* _tmp3_;
		_tmp0_ = gtk_file_dialog_select_folder_finish (_data38_->folder_dialog, res, &_inner_error0_);
		file = _tmp0_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_tmp1_ = self->priv->output_folder_row;
		_tmp2_ = g_file_get_path (file);
		_tmp3_ = _tmp2_;
		gtk_editable_set_text ((GtkEditable*) _tmp1_, _tmp3_);
		_g_free0 (_tmp3_);
		_g_object_unref0 (file);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp4_ = e;
		_tmp5_ = _tmp4_->message;
		g_warning ("mangohud-extras-page.vala:185: %s", _tmp5_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return;
	}
}

static void
___lambda285__gasync_ready_callback (GObject* source_object,
                                     GAsyncResult* res,
                                     gpointer self)
{
	__lambda285_ (self, source_object, res);
	block38_data_unref (self);
}

static void
__lambda284_ (ProtonPlusWidgetsMangoHudExtrasPage* self)
{
	Block38Data* _data38_;
	gchar* _tmp0_;
	GtkFileDialog* _tmp1_ = NULL;
	_data38_ = g_slice_new0 (Block38Data);
	_data38_->_ref_count_ = 1;
	_data38_->self = g_object_ref (self);
	_tmp0_ = g_strdup (_ ("Select Output Folder"));
	_tmp1_ = gtk_file_dialog_new ();
	gtk_file_dialog_set_title (_tmp1_, _tmp0_);
	_g_free0 (_tmp0_);
	_data38_->folder_dialog = _tmp1_;
	gtk_file_dialog_select_folder (_data38_->folder_dialog, NULL, NULL, ___lambda285__gasync_ready_callback, block38_data_ref (_data38_));
	block38_data_unref (_data38_);
	_data38_ = NULL;
}

static void
___lambda284__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda284_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self);
}

static void
__lambda286_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_upload_log (_tmp1_, val);
}

static void
___lambda286__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda286_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

static void
__lambda287_ (ProtonPlusWidgetsMangoHudExtrasPage* self,
              gboolean val)
{
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	proton_plus_utils_mango_hud_manager_set_log_versioning (_tmp1_, val);
}

static void
___lambda287__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda287_ ((ProtonPlusWidgetsMangoHudExtrasPage*) self, val);
}

ProtonPlusWidgetsMangoHudExtrasPage*
proton_plus_widgets_mango_hud_extras_page_construct (GType object_type,
                                                     ProtonPlusUtilsMangoHudManager* config)
{
	ProtonPlusWidgetsMangoHudExtrasPage * self = NULL;
	GtkColorDialog* color_dialog = NULL;
	GtkColorDialog* _tmp0_;
	GtkBox* info_box = NULL;
	GtkBox* _tmp1_;
	GtkLabel* info_label = NULL;
	GtkLabel* _tmp2_ = NULL;
	gboolean _tmp3_;
	gboolean _tmp4_;
	AdwSwitchRow* _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	AdwSwitchRow* _tmp8_;
	gboolean _tmp9_;
	gboolean _tmp10_;
	AdwSwitchRow* _tmp11_;
	gboolean _tmp12_;
	gboolean _tmp13_;
	AdwSwitchRow* _tmp14_;
	gboolean _tmp15_;
	gboolean _tmp16_;
	AdwSwitchRow* _tmp17_;
	gboolean _tmp18_;
	gboolean _tmp19_;
	AdwSwitchRow* _tmp20_;
	AdwSwitchRow* _tmp21_;
	GtkWidget* _tmp22_;
	AdwSwitchRow* _tmp23_;
	GtkWidget* _tmp24_;
	AdwSwitchRow* _tmp25_;
	GtkWidget* _tmp26_;
	AdwSwitchRow* _tmp27_;
	GtkWidget* _tmp28_;
	AdwSwitchRow* _tmp29_;
	GtkWidget* _tmp30_;
	AdwSwitchRow* _tmp31_;
	GtkWidget* _tmp32_;
	GtkWidget** _tmp33_;
	GtkWidget** _tmp34_;
	gint _tmp34__length1;
	GtkFlowBox* _tmp35_;
	GtkFlowBox* _tmp36_;
	gboolean _tmp37_;
	gboolean _tmp38_;
	AdwSwitchRow* _tmp39_;
	const gchar* _tmp40_;
	const gchar* _tmp41_;
	GtkColorDialogButton* _tmp42_;
	AdwSwitchRow* _tmp43_;
	GtkColorDialogButton* _tmp44_;
	AdwSwitchRow* _tmp45_;
	GtkColorDialogButton* _tmp46_;
	gboolean _tmp47_;
	gboolean _tmp48_;
	AdwSwitchRow* _tmp49_;
	const gchar* _tmp50_;
	const gchar* _tmp51_;
	GtkColorDialogButton* _tmp52_;
	AdwSwitchRow* _tmp53_;
	GtkColorDialogButton* _tmp54_;
	AdwSwitchRow* _tmp55_;
	GtkColorDialogButton* _tmp56_;
	gboolean _tmp57_;
	gboolean _tmp58_;
	AdwSwitchRow* _tmp59_;
	gboolean _tmp60_;
	gboolean _tmp61_;
	AdwSwitchRow* _tmp62_;
	gboolean _tmp63_;
	gboolean _tmp64_;
	AdwSwitchRow* _tmp65_;
	gboolean _tmp66_;
	gboolean _tmp67_;
	AdwSwitchRow* _tmp68_;
	AdwSwitchRow* _tmp69_;
	GtkWidget* _tmp70_;
	AdwSwitchRow* _tmp71_;
	GtkWidget* _tmp72_;
	AdwSwitchRow* _tmp73_;
	GtkWidget* _tmp74_;
	AdwSwitchRow* _tmp75_;
	GtkWidget* _tmp76_;
	AdwSwitchRow* _tmp77_;
	GtkWidget* _tmp78_;
	AdwSwitchRow* _tmp79_;
	GtkWidget* _tmp80_;
	GtkWidget** _tmp81_;
	GtkWidget** _tmp82_;
	gint _tmp82__length1;
	GtkFlowBox* _tmp83_;
	GtkFlowBox* _tmp84_;
	gboolean _tmp85_;
	gboolean _tmp86_;
	AdwSwitchRow* _tmp87_;
	gboolean _tmp88_;
	gboolean _tmp89_;
	AdwSwitchRow* _tmp90_;
	gboolean _tmp91_;
	gboolean _tmp92_;
	AdwSwitchRow* _tmp93_;
	gboolean _tmp94_;
	gboolean _tmp95_;
	AdwSwitchRow* _tmp96_;
	gboolean _tmp97_;
	gboolean _tmp98_;
	AdwSwitchRow* _tmp99_;
	gboolean _tmp100_;
	gboolean _tmp101_;
	AdwSwitchRow* _tmp102_;
	AdwSwitchRow* _tmp103_;
	GtkWidget* _tmp104_;
	AdwSwitchRow* _tmp105_;
	GtkWidget* _tmp106_;
	AdwSwitchRow* _tmp107_;
	GtkWidget* _tmp108_;
	AdwSwitchRow* _tmp109_;
	GtkWidget* _tmp110_;
	AdwSwitchRow* _tmp111_;
	GtkWidget* _tmp112_;
	AdwSwitchRow* _tmp113_;
	GtkWidget* _tmp114_;
	GtkWidget** _tmp115_;
	GtkWidget** _tmp116_;
	gint _tmp116__length1;
	GtkFlowBox* _tmp117_;
	GtkFlowBox* _tmp118_;
	gboolean _tmp119_;
	gboolean _tmp120_;
	AdwSwitchRow* _tmp121_;
	const gchar* _tmp122_;
	const gchar* _tmp123_;
	GtkColorDialogButton* _tmp124_;
	AdwSwitchRow* _tmp125_;
	GtkColorDialogButton* _tmp126_;
	AdwSwitchRow* _tmp127_;
	GtkColorDialogButton* _tmp128_;
	gboolean _tmp129_;
	gboolean _tmp130_;
	AdwSwitchRow* _tmp131_;
	gboolean _tmp132_;
	gboolean _tmp133_;
	AdwSwitchRow* _tmp134_;
	gboolean _tmp135_;
	gboolean _tmp136_;
	AdwSwitchRow* _tmp137_;
	AdwSwitchRow* _tmp138_;
	GtkWidget* _tmp139_;
	AdwSwitchRow* _tmp140_;
	GtkWidget* _tmp141_;
	AdwSwitchRow* _tmp142_;
	GtkWidget* _tmp143_;
	AdwSwitchRow* _tmp144_;
	GtkWidget* _tmp145_;
	GtkWidget** _tmp146_;
	GtkWidget** _tmp147_;
	gint _tmp147__length1;
	GtkFlowBox* _tmp148_;
	GtkFlowBox* _tmp149_;
	gboolean _tmp150_;
	gboolean _tmp151_;
	AdwSwitchRow* _tmp152_;
	const gchar* _tmp153_;
	const gchar* _tmp154_;
	GtkColorDialogButton* _tmp155_;
	AdwSwitchRow* _tmp156_;
	GtkColorDialogButton* _tmp157_;
	AdwSwitchRow* _tmp158_;
	GtkColorDialogButton* _tmp159_;
	const gchar* _tmp160_;
	const gchar* _tmp161_;
	AdwEntryRow* _tmp162_;
	gboolean _tmp163_;
	gboolean _tmp164_;
	AdwSwitchRow* _tmp165_;
	const gchar* _tmp166_;
	const gchar* _tmp167_;
	AdwEntryRow* _tmp168_;
	AdwSwitchRow* _tmp169_;
	GtkWidget* _tmp170_;
	AdwEntryRow* _tmp171_;
	GtkWidget* _tmp172_;
	AdwSwitchRow* _tmp173_;
	GtkWidget* _tmp174_;
	AdwEntryRow* _tmp175_;
	GtkWidget* _tmp176_;
	GtkWidget** _tmp177_;
	GtkWidget** _tmp178_;
	gint _tmp178__length1;
	GtkFlowBox* _tmp179_;
	GtkFlowBox* _tmp180_;
	GtkBox* logging_box = NULL;
	GtkBox* _tmp181_;
	GtkLabel* logging_label = NULL;
	GtkLabel* _tmp182_ = NULL;
	GtkScale* _tmp183_ = NULL;
	GtkListBoxRow* _tmp184_;
	GtkScale* _tmp185_ = NULL;
	GtkListBoxRow* _tmp186_;
	GtkScale* _tmp187_ = NULL;
	GtkListBoxRow* _tmp188_;
	gchar* _tmp189_;
	gchar* _tmp190_;
	gchar* _tmp191_;
	gchar* _tmp192_;
	gchar* _tmp193_;
	gchar** _tmp194_;
	gchar** _tmp195_;
	gint _tmp195__length1;
	AdwComboRow* _tmp196_;
	const gchar* _tmp197_;
	const gchar* _tmp198_;
	AdwEntryRow* _tmp199_;
	GtkButton* output_folder_btn = NULL;
	GtkButton* _tmp200_;
	AdwEntryRow* _tmp201_;
	gboolean _tmp202_;
	gboolean _tmp203_;
	AdwSwitchRow* _tmp204_;
	gboolean _tmp205_;
	gboolean _tmp206_;
	AdwSwitchRow* _tmp207_;
	GtkListBoxRow* _tmp208_;
	GtkWidget* _tmp209_;
	GtkListBoxRow* _tmp210_;
	GtkWidget* _tmp211_;
	GtkListBoxRow* _tmp212_;
	GtkWidget* _tmp213_;
	AdwComboRow* _tmp214_;
	GtkWidget* _tmp215_;
	AdwEntryRow* _tmp216_;
	GtkWidget* _tmp217_;
	AdwSwitchRow* _tmp218_;
	GtkWidget* _tmp219_;
	AdwSwitchRow* _tmp220_;
	GtkWidget* _tmp221_;
	GtkWidget** _tmp222_;
	GtkWidget** _tmp223_;
	gint _tmp223__length1;
	GtkFlowBox* _tmp224_;
	GtkFlowBox* _tmp225_;
	g_return_val_if_fail (config != NULL, NULL);
	self = (ProtonPlusWidgetsMangoHudExtrasPage*) proton_plus_widgets_mango_hud_page_construct (object_type, config);
	_tmp0_ = gtk_color_dialog_new ();
	color_dialog = _tmp0_;
	_tmp1_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
	g_object_ref_sink (_tmp1_);
	info_box = _tmp1_;
	_tmp2_ = (GtkLabel*) gtk_label_new (_ ("System Information"));
	gtk_widget_set_halign ((GtkWidget*) _tmp2_, GTK_ALIGN_START);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp2_, 12);
	g_object_ref_sink (_tmp2_);
	info_label = _tmp2_;
	gtk_widget_add_css_class ((GtkWidget*) info_label, "heading");
	gtk_box_append (info_box, (GtkWidget*) info_label);
	_tmp3_ = proton_plus_utils_mango_hud_manager_get_distro (config);
	_tmp4_ = _tmp3_;
	_tmp5_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Distro info"), _tmp4_, ___lambda249__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->distro_row);
	self->priv->distro_row = _tmp5_;
	_tmp6_ = proton_plus_utils_mango_hud_manager_get_refresh_rate (config);
	_tmp7_ = _tmp6_;
	_tmp8_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Refresh rate*"), _tmp7_, ___lambda250__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->refresh_rate_row);
	self->priv->refresh_rate_row = _tmp8_;
	_tmp9_ = proton_plus_utils_mango_hud_manager_get_resolution (config);
	_tmp10_ = _tmp9_;
	_tmp11_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Resolution"), _tmp10_, ___lambda251__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->resolution_row);
	self->priv->resolution_row = _tmp11_;
	_tmp12_ = proton_plus_utils_mango_hud_manager_get_display_server (config);
	_tmp13_ = _tmp12_;
	_tmp14_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Display Server"), _tmp13_, ___lambda252__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->display_server_row);
	self->priv->display_server_row = _tmp14_;
	_tmp15_ = proton_plus_utils_mango_hud_manager_get_time (config);
	_tmp16_ = _tmp15_;
	_tmp17_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Time"), _tmp16_, ___lambda253__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->time_row);
	self->priv->time_row = _tmp17_;
	_tmp18_ = proton_plus_utils_mango_hud_manager_get_arch (config);
	_tmp19_ = _tmp18_;
	_tmp20_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Arch"), _tmp19_, ___lambda254__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->arch_row);
	self->priv->arch_row = _tmp20_;
	_tmp21_ = self->priv->distro_row;
	_tmp22_ = _g_object_ref0 ((GtkWidget*) _tmp21_);
	_tmp23_ = self->priv->refresh_rate_row;
	_tmp24_ = _g_object_ref0 ((GtkWidget*) _tmp23_);
	_tmp25_ = self->priv->resolution_row;
	_tmp26_ = _g_object_ref0 ((GtkWidget*) _tmp25_);
	_tmp27_ = self->priv->display_server_row;
	_tmp28_ = _g_object_ref0 ((GtkWidget*) _tmp27_);
	_tmp29_ = self->priv->time_row;
	_tmp30_ = _g_object_ref0 ((GtkWidget*) _tmp29_);
	_tmp31_ = self->priv->arch_row;
	_tmp32_ = _g_object_ref0 ((GtkWidget*) _tmp31_);
	_tmp33_ = g_new0 (GtkWidget*, 6 + 1);
	_tmp33_[0] = _tmp22_;
	_tmp33_[1] = _tmp24_;
	_tmp33_[2] = _tmp26_;
	_tmp33_[3] = _tmp28_;
	_tmp33_[4] = _tmp30_;
	_tmp33_[5] = _tmp32_;
	_tmp34_ = _tmp33_;
	_tmp34__length1 = 6;
	_tmp35_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, info_box, _ ("System"), _tmp34_, (gint) 6, "caption");
	_tmp36_ = _tmp35_;
	_g_object_unref0 (_tmp36_);
	_tmp34_ = (_vala_array_free (_tmp34_, _tmp34__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp37_ = proton_plus_utils_mango_hud_manager_get_wine (config);
	_tmp38_ = _tmp37_;
	_tmp39_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Wine Ver"), _tmp38_, ___lambda255__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->wine_row);
	self->priv->wine_row = _tmp39_;
	_tmp40_ = proton_plus_utils_mango_hud_manager_get_wine_color (config);
	_tmp41_ = _tmp40_;
	_tmp42_ = proton_plus_widgets_mango_hud_page_create_color_button ((ProtonPlusWidgetsMangoHudPage*) self, color_dialog, _tmp41_, ___lambda256__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->wine_color_btn);
	self->priv->wine_color_btn = _tmp42_;
	_tmp43_ = self->priv->wine_row;
	_tmp44_ = self->priv->wine_color_btn;
	adw_action_row_add_suffix ((AdwActionRow*) _tmp43_, (GtkWidget*) _tmp44_);
	_tmp45_ = self->priv->wine_row;
	_tmp46_ = self->priv->wine_color_btn;
	g_object_bind_property_with_closures ((GObject*) _tmp45_, "active", (GObject*) _tmp46_, "visible", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp47_ = proton_plus_utils_mango_hud_manager_get_engine_version (config);
	_tmp48_ = _tmp47_;
	_tmp49_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Engine Ver"), _tmp48_, ___lambda257__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->engine_version_row);
	self->priv->engine_version_row = _tmp49_;
	_tmp50_ = proton_plus_utils_mango_hud_manager_get_engine_color (config);
	_tmp51_ = _tmp50_;
	_tmp52_ = proton_plus_widgets_mango_hud_page_create_color_button ((ProtonPlusWidgetsMangoHudPage*) self, color_dialog, _tmp51_, ___lambda258__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->engine_color_btn);
	self->priv->engine_color_btn = _tmp52_;
	_tmp53_ = self->priv->engine_version_row;
	_tmp54_ = self->priv->engine_color_btn;
	adw_action_row_add_suffix ((AdwActionRow*) _tmp53_, (GtkWidget*) _tmp54_);
	_tmp55_ = self->priv->engine_version_row;
	_tmp56_ = self->priv->engine_color_btn;
	g_object_bind_property_with_closures ((GObject*) _tmp55_, "active", (GObject*) _tmp56_, "visible", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp57_ = proton_plus_utils_mango_hud_manager_get_engine_short_names (config);
	_tmp58_ = _tmp57_;
	_tmp59_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Engine Short"), _tmp58_, ___lambda259__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->engine_short_names_row);
	self->priv->engine_short_names_row = _tmp59_;
	_tmp60_ = proton_plus_utils_mango_hud_manager_get_wine_sync (config);
	_tmp61_ = _tmp60_;
	_tmp62_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Wine Sync"), _tmp61_, ___lambda260__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->wine_sync_row);
	self->priv->wine_sync_row = _tmp62_;
	_tmp63_ = proton_plus_utils_mango_hud_manager_get_dx_api (config);
	_tmp64_ = _tmp63_;
	_tmp65_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("DX API"), _tmp64_, ___lambda261__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->dx_api_row);
	self->priv->dx_api_row = _tmp65_;
	_tmp66_ = proton_plus_utils_mango_hud_manager_get_fex_stats (config);
	_tmp67_ = _tmp66_;
	_tmp68_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("FEX Stats"), _tmp67_, ___lambda262__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->fex_stats_row);
	self->priv->fex_stats_row = _tmp68_;
	_tmp69_ = self->priv->wine_row;
	_tmp70_ = _g_object_ref0 ((GtkWidget*) _tmp69_);
	_tmp71_ = self->priv->engine_version_row;
	_tmp72_ = _g_object_ref0 ((GtkWidget*) _tmp71_);
	_tmp73_ = self->priv->engine_short_names_row;
	_tmp74_ = _g_object_ref0 ((GtkWidget*) _tmp73_);
	_tmp75_ = self->priv->wine_sync_row;
	_tmp76_ = _g_object_ref0 ((GtkWidget*) _tmp75_);
	_tmp77_ = self->priv->dx_api_row;
	_tmp78_ = _g_object_ref0 ((GtkWidget*) _tmp77_);
	_tmp79_ = self->priv->fex_stats_row;
	_tmp80_ = _g_object_ref0 ((GtkWidget*) _tmp79_);
	_tmp81_ = g_new0 (GtkWidget*, 6 + 1);
	_tmp81_[0] = _tmp70_;
	_tmp81_[1] = _tmp72_;
	_tmp81_[2] = _tmp74_;
	_tmp81_[3] = _tmp76_;
	_tmp81_[4] = _tmp78_;
	_tmp81_[5] = _tmp80_;
	_tmp82_ = _tmp81_;
	_tmp82__length1 = 6;
	_tmp83_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, info_box, _ ("Wine"), _tmp82_, (gint) 6, "caption");
	_tmp84_ = _tmp83_;
	_g_object_unref0 (_tmp84_);
	_tmp82_ = (_vala_array_free (_tmp82_, _tmp82__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp85_ = proton_plus_utils_mango_hud_manager_get_hud_version (config);
	_tmp86_ = _tmp85_;
	_tmp87_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("HUD Version"), _tmp86_, ___lambda263__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->hud_version_row);
	self->priv->hud_version_row = _tmp87_;
	_tmp88_ = proton_plus_utils_mango_hud_manager_get_gamemode (config);
	_tmp89_ = _tmp88_;
	_tmp90_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("GameMode"), _tmp89_, ___lambda264__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gamemode_row);
	self->priv->gamemode_row = _tmp90_;
	_tmp91_ = proton_plus_utils_mango_hud_manager_get_vkbasalt (config);
	_tmp92_ = _tmp91_;
	_tmp93_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("vkBasalt"), _tmp92_, ___lambda265__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->vkbasalt_row);
	self->priv->vkbasalt_row = _tmp93_;
	_tmp94_ = proton_plus_utils_mango_hud_manager_get_fcat (config);
	_tmp95_ = _tmp94_;
	_tmp96_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("FCAT"), _tmp95_, ___lambda266__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->fcat_row);
	self->priv->fcat_row = _tmp96_;
	_tmp97_ = proton_plus_utils_mango_hud_manager_get_fsr (config);
	_tmp98_ = _tmp97_;
	_tmp99_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("FSR*"), _tmp98_, ___lambda267__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->fsr_row);
	self->priv->fsr_row = _tmp99_;
	_tmp100_ = proton_plus_utils_mango_hud_manager_get_hdr (config);
	_tmp101_ = _tmp100_;
	_tmp102_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("HDR*"), _tmp101_, ___lambda268__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->hdr_row);
	self->priv->hdr_row = _tmp102_;
	_tmp103_ = self->priv->hud_version_row;
	_tmp104_ = _g_object_ref0 ((GtkWidget*) _tmp103_);
	_tmp105_ = self->priv->gamemode_row;
	_tmp106_ = _g_object_ref0 ((GtkWidget*) _tmp105_);
	_tmp107_ = self->priv->vkbasalt_row;
	_tmp108_ = _g_object_ref0 ((GtkWidget*) _tmp107_);
	_tmp109_ = self->priv->fcat_row;
	_tmp110_ = _g_object_ref0 ((GtkWidget*) _tmp109_);
	_tmp111_ = self->priv->fsr_row;
	_tmp112_ = _g_object_ref0 ((GtkWidget*) _tmp111_);
	_tmp113_ = self->priv->hdr_row;
	_tmp114_ = _g_object_ref0 ((GtkWidget*) _tmp113_);
	_tmp115_ = g_new0 (GtkWidget*, 6 + 1);
	_tmp115_[0] = _tmp104_;
	_tmp115_[1] = _tmp106_;
	_tmp115_[2] = _tmp108_;
	_tmp115_[3] = _tmp110_;
	_tmp115_[4] = _tmp112_;
	_tmp115_[5] = _tmp114_;
	_tmp116_ = _tmp115_;
	_tmp116__length1 = 6;
	_tmp117_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, info_box, _ ("Options"), _tmp116_, (gint) 6, "caption");
	_tmp118_ = _tmp117_;
	_g_object_unref0 (_tmp118_);
	_tmp116_ = (_vala_array_free (_tmp116_, _tmp116__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp119_ = proton_plus_utils_mango_hud_manager_get_battery (config);
	_tmp120_ = _tmp119_;
	_tmp121_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Percentage"), _tmp120_, ___lambda269__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->battery_row);
	self->priv->battery_row = _tmp121_;
	_tmp122_ = proton_plus_utils_mango_hud_manager_get_battery_color (config);
	_tmp123_ = _tmp122_;
	_tmp124_ = proton_plus_widgets_mango_hud_page_create_color_button ((ProtonPlusWidgetsMangoHudPage*) self, color_dialog, _tmp123_, ___lambda270__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->battery_color_btn);
	self->priv->battery_color_btn = _tmp124_;
	_tmp125_ = self->priv->battery_row;
	_tmp126_ = self->priv->battery_color_btn;
	adw_action_row_add_suffix ((AdwActionRow*) _tmp125_, (GtkWidget*) _tmp126_);
	_tmp127_ = self->priv->battery_row;
	_tmp128_ = self->priv->battery_color_btn;
	g_object_bind_property_with_closures ((GObject*) _tmp127_, "active", (GObject*) _tmp128_, "visible", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp129_ = proton_plus_utils_mango_hud_manager_get_battery_wattage (config);
	_tmp130_ = _tmp129_;
	_tmp131_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Wattage"), _tmp130_, ___lambda271__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->battery_wattage_row);
	self->priv->battery_wattage_row = _tmp131_;
	_tmp132_ = proton_plus_utils_mango_hud_manager_get_battery_time (config);
	_tmp133_ = _tmp132_;
	_tmp134_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Time remain"), _tmp133_, ___lambda272__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->battery_time_row);
	self->priv->battery_time_row = _tmp134_;
	_tmp135_ = proton_plus_utils_mango_hud_manager_get_device_battery (config);
	_tmp136_ = _tmp135_;
	_tmp137_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Devices"), _tmp136_, ___lambda273__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->device_battery_row);
	self->priv->device_battery_row = _tmp137_;
	_tmp138_ = self->priv->battery_row;
	_tmp139_ = _g_object_ref0 ((GtkWidget*) _tmp138_);
	_tmp140_ = self->priv->battery_wattage_row;
	_tmp141_ = _g_object_ref0 ((GtkWidget*) _tmp140_);
	_tmp142_ = self->priv->battery_time_row;
	_tmp143_ = _g_object_ref0 ((GtkWidget*) _tmp142_);
	_tmp144_ = self->priv->device_battery_row;
	_tmp145_ = _g_object_ref0 ((GtkWidget*) _tmp144_);
	_tmp146_ = g_new0 (GtkWidget*, 4 + 1);
	_tmp146_[0] = _tmp139_;
	_tmp146_[1] = _tmp141_;
	_tmp146_[2] = _tmp143_;
	_tmp146_[3] = _tmp145_;
	_tmp147_ = _tmp146_;
	_tmp147__length1 = 4;
	_tmp148_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, info_box, _ ("Battery"), _tmp147_, (gint) 4, "caption");
	_tmp149_ = _tmp148_;
	_g_object_unref0 (_tmp149_);
	_tmp147_ = (_vala_array_free (_tmp147_, _tmp147__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp150_ = proton_plus_utils_mango_hud_manager_get_media_player (config);
	_tmp151_ = _tmp150_;
	_tmp152_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Media Info"), _tmp151_, ___lambda274__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->media_player_row);
	self->priv->media_player_row = _tmp152_;
	_tmp153_ = proton_plus_utils_mango_hud_manager_get_media_player_color (config);
	_tmp154_ = _tmp153_;
	_tmp155_ = proton_plus_widgets_mango_hud_page_create_color_button ((ProtonPlusWidgetsMangoHudPage*) self, color_dialog, _tmp154_, ___lambda275__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->media_player_color_btn);
	self->priv->media_player_color_btn = _tmp155_;
	_tmp156_ = self->priv->media_player_row;
	_tmp157_ = self->priv->media_player_color_btn;
	adw_action_row_add_suffix ((AdwActionRow*) _tmp156_, (GtkWidget*) _tmp157_);
	_tmp158_ = self->priv->media_player_row;
	_tmp159_ = self->priv->media_player_color_btn;
	g_object_bind_property_with_closures ((GObject*) _tmp158_, "active", (GObject*) _tmp159_, "visible", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp160_ = proton_plus_utils_mango_hud_manager_get_network (config);
	_tmp161_ = _tmp160_;
	_tmp162_ = proton_plus_widgets_mango_hud_page_create_entry ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Network"), _tmp161_, ___lambda276__proton_plus_widgets_mango_hud_page_set_value_func_str, self, PROTON_PLUS_UTILS_TEXT_INPUT_FIELD_KIND_PATH_OR_IDENTIFIER);
	_g_object_unref0 (self->priv->network_row);
	self->priv->network_row = _tmp162_;
	_tmp163_ = proton_plus_utils_mango_hud_manager_get_fahrenheit (config);
	_tmp164_ = _tmp163_;
	_tmp165_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Fahrenheit"), _tmp164_, ___lambda277__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->fahrenheit_row);
	self->priv->fahrenheit_row = _tmp165_;
	_tmp166_ = proton_plus_utils_mango_hud_manager_get_custom_text (config);
	_tmp167_ = _tmp166_;
	_tmp168_ = proton_plus_widgets_mango_hud_page_create_entry ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Custom command"), _tmp167_, ___lambda278__proton_plus_widgets_mango_hud_page_set_value_func_str, self, PROTON_PLUS_UTILS_TEXT_INPUT_FIELD_KIND_COMMAND);
	_g_object_unref0 (self->priv->custom_text_row);
	self->priv->custom_text_row = _tmp168_;
	_tmp169_ = self->priv->media_player_row;
	_tmp170_ = _g_object_ref0 ((GtkWidget*) _tmp169_);
	_tmp171_ = self->priv->network_row;
	_tmp172_ = _g_object_ref0 ((GtkWidget*) _tmp171_);
	_tmp173_ = self->priv->fahrenheit_row;
	_tmp174_ = _g_object_ref0 ((GtkWidget*) _tmp173_);
	_tmp175_ = self->priv->custom_text_row;
	_tmp176_ = _g_object_ref0 ((GtkWidget*) _tmp175_);
	_tmp177_ = g_new0 (GtkWidget*, 4 + 1);
	_tmp177_[0] = _tmp170_;
	_tmp177_[1] = _tmp172_;
	_tmp177_[2] = _tmp174_;
	_tmp177_[3] = _tmp176_;
	_tmp178_ = _tmp177_;
	_tmp178__length1 = 4;
	_tmp179_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, info_box, _ ("Others"), _tmp178_, (gint) 4, "caption");
	_tmp180_ = _tmp179_;
	_g_object_unref0 (_tmp180_);
	_tmp178_ = (_vala_array_free (_tmp178_, _tmp178__length1, (GDestroyNotify) g_object_unref), NULL);
	gtk_box_append ((GtkBox*) self, (GtkWidget*) info_box);
	_tmp181_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
	g_object_ref_sink (_tmp181_);
	logging_box = _tmp181_;
	_tmp182_ = (GtkLabel*) gtk_label_new (_ ("Logging"));
	gtk_widget_set_halign ((GtkWidget*) _tmp182_, GTK_ALIGN_START);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp182_, 12);
	g_object_ref_sink (_tmp182_);
	logging_label = _tmp182_;
	gtk_widget_add_css_class ((GtkWidget*) logging_label, "heading");
	gtk_box_append (logging_box, (GtkWidget*) logging_label);
	_tmp184_ = proton_plus_widgets_mango_hud_page_create_scale ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Duration"), (gdouble) 0, (gdouble) 200, (gdouble) 1, &_tmp183_, ___lambda279__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->log_duration_scale);
	self->priv->log_duration_scale = _tmp183_;
	_g_object_unref0 (self->priv->log_duration_row);
	self->priv->log_duration_row = _tmp184_;
	_tmp186_ = proton_plus_widgets_mango_hud_page_create_scale ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Autostart"), (gdouble) 0, (gdouble) 30, (gdouble) 1, &_tmp185_, ___lambda280__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->autostart_log_scale);
	self->priv->autostart_log_scale = _tmp185_;
	_g_object_unref0 (self->priv->autostart_log_row);
	self->priv->autostart_log_row = _tmp186_;
	_tmp188_ = proton_plus_widgets_mango_hud_page_create_scale ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Interval"), (gdouble) 0, (gdouble) 500, (gdouble) 1, &_tmp187_, ___lambda281__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->log_interval_scale);
	self->priv->log_interval_scale = _tmp187_;
	_g_object_unref0 (self->priv->log_interval_row);
	self->priv->log_interval_row = _tmp188_;
	_tmp189_ = g_strdup ("Shift_L+F2");
	_tmp190_ = g_strdup ("Shift_L+F3");
	_tmp191_ = g_strdup ("Shift_L+F4");
	_tmp192_ = g_strdup ("Shift_L+F5");
	_tmp193_ = g_strdup (_ ("None"));
	_tmp194_ = g_new0 (gchar*, 5 + 1);
	_tmp194_[0] = _tmp189_;
	_tmp194_[1] = _tmp190_;
	_tmp194_[2] = _tmp191_;
	_tmp194_[3] = _tmp192_;
	_tmp194_[4] = _tmp193_;
	_tmp195_ = _tmp194_;
	_tmp195__length1 = 5;
	_tmp196_ = proton_plus_widgets_mango_hud_page_create_combo ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Toggle key"), _tmp195_, (gint) 5, 0, "preferences-desktop-keyboard-shortcuts-symbolic", ___lambda282__proton_plus_widgets_mango_hud_page_set_value_func_int, self);
	_g_object_unref0 (self->priv->toggle_logging_row);
	self->priv->toggle_logging_row = _tmp196_;
	_tmp195_ = (_vala_array_free (_tmp195_, _tmp195__length1, (GDestroyNotify) g_free), NULL);
	proton_plus_widgets_mango_hud_extras_page_refresh_toggle_logging_row (self);
	_tmp197_ = proton_plus_utils_mango_hud_manager_get_output_folder (config);
	_tmp198_ = _tmp197_;
	_tmp199_ = proton_plus_widgets_mango_hud_page_create_entry ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Output Folder"), _tmp198_, ___lambda283__proton_plus_widgets_mango_hud_page_set_value_func_str, self, PROTON_PLUS_UTILS_TEXT_INPUT_FIELD_KIND_PATH_OR_IDENTIFIER);
	_g_object_unref0 (self->priv->output_folder_row);
	self->priv->output_folder_row = _tmp199_;
	_tmp200_ = (GtkButton*) gtk_button_new_from_icon_name ("folder-open-symbolic");
	g_object_ref_sink (_tmp200_);
	output_folder_btn = _tmp200_;
	gtk_widget_set_valign ((GtkWidget*) output_folder_btn, GTK_ALIGN_CENTER);
	_tmp201_ = self->priv->output_folder_row;
	adw_entry_row_add_suffix (_tmp201_, (GtkWidget*) output_folder_btn);
	g_signal_connect_object (output_folder_btn, "clicked", (GCallback) ___lambda284__gtk_button_clicked, self, 0);
	_tmp202_ = proton_plus_utils_mango_hud_manager_get_upload_log (config);
	_tmp203_ = _tmp202_;
	_tmp204_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Autoupload Results"), _tmp203_, ___lambda286__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->upload_log_row);
	self->priv->upload_log_row = _tmp204_;
	_tmp205_ = proton_plus_utils_mango_hud_manager_get_log_versioning (config);
	_tmp206_ = _tmp205_;
	_tmp207_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Log Versioning"), _tmp206_, ___lambda287__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->log_versioning_row);
	self->priv->log_versioning_row = _tmp207_;
	_tmp208_ = self->priv->log_duration_row;
	_tmp209_ = _g_object_ref0 ((GtkWidget*) _tmp208_);
	_tmp210_ = self->priv->autostart_log_row;
	_tmp211_ = _g_object_ref0 ((GtkWidget*) _tmp210_);
	_tmp212_ = self->priv->log_interval_row;
	_tmp213_ = _g_object_ref0 ((GtkWidget*) _tmp212_);
	_tmp214_ = self->priv->toggle_logging_row;
	_tmp215_ = _g_object_ref0 ((GtkWidget*) _tmp214_);
	_tmp216_ = self->priv->output_folder_row;
	_tmp217_ = _g_object_ref0 ((GtkWidget*) _tmp216_);
	_tmp218_ = self->priv->upload_log_row;
	_tmp219_ = _g_object_ref0 ((GtkWidget*) _tmp218_);
	_tmp220_ = self->priv->log_versioning_row;
	_tmp221_ = _g_object_ref0 ((GtkWidget*) _tmp220_);
	_tmp222_ = g_new0 (GtkWidget*, 7 + 1);
	_tmp222_[0] = _tmp209_;
	_tmp222_[1] = _tmp211_;
	_tmp222_[2] = _tmp213_;
	_tmp222_[3] = _tmp215_;
	_tmp222_[4] = _tmp217_;
	_tmp222_[5] = _tmp219_;
	_tmp222_[6] = _tmp221_;
	_tmp223_ = _tmp222_;
	_tmp223__length1 = 7;
	_tmp224_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, logging_box, NULL, _tmp223_, (gint) 7, "caption");
	_tmp225_ = _tmp224_;
	_g_object_unref0 (_tmp225_);
	_tmp223_ = (_vala_array_free (_tmp223_, _tmp223__length1, (GDestroyNotify) g_object_unref), NULL);
	gtk_box_append ((GtkBox*) self, (GtkWidget*) logging_box);
	_g_object_unref0 (output_folder_btn);
	_g_object_unref0 (logging_label);
	_g_object_unref0 (logging_box);
	_g_object_unref0 (info_label);
	_g_object_unref0 (info_box);
	_g_object_unref0 (color_dialog);
	return self;
}

ProtonPlusWidgetsMangoHudExtrasPage*
proton_plus_widgets_mango_hud_extras_page_new (ProtonPlusUtilsMangoHudManager* config)
{
	return proton_plus_widgets_mango_hud_extras_page_construct (PROTON_PLUS_WIDGETS_MANGO_HUD_TYPE_EXTRAS_PAGE, config);
}

static void
proton_plus_widgets_mango_hud_extras_page_refresh_toggle_logging_row (ProtonPlusWidgetsMangoHudExtrasPage* self)
{
	gint toggle_index = 0;
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	GQuark _tmp6_ = 0U;
	static GQuark _tmp5_label0 = 0;
	static GQuark _tmp5_label1 = 0;
	static GQuark _tmp5_label2 = 0;
	static GQuark _tmp5_label3 = 0;
	static GQuark _tmp5_label4 = 0;
	AdwComboRow* _tmp7_;
	g_return_if_fail (self != NULL);
	toggle_index = 4;
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_utils_mango_hud_manager_get_toggle_logging (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = _tmp3_;
	_tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_);
	if (_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("Shift_L+F2")))) {
		switch (0) {
			default:
			{
				toggle_index = 0;
				break;
			}
		}
	} else if (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("Shift_L+F3")))) {
		switch (0) {
			default:
			{
				toggle_index = 1;
				break;
			}
		}
	} else if (_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("Shift_L+F4")))) {
		switch (0) {
			default:
			{
				toggle_index = 2;
				break;
			}
		}
	} else if (_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("Shift_L+F5")))) {
		switch (0) {
			default:
			{
				toggle_index = 3;
				break;
			}
		}
	} else if (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("")))) {
		switch (0) {
			default:
			{
				toggle_index = 4;
				break;
			}
		}
	}
	_tmp7_ = self->priv->toggle_logging_row;
	adw_combo_row_set_selected (_tmp7_, (guint) toggle_index);
}

static gdouble
double_parse (const gchar* str)
{
	gdouble result;
	g_return_val_if_fail (str != NULL, -1.0);
	result = g_ascii_strtod (str, NULL);
	return result;
}

static void
proton_plus_widgets_mango_hud_extras_page_real_refresh (ProtonPlusWidgetsMangoHudPage* base)
{
	ProtonPlusWidgetsMangoHudExtrasPage * self;
	AdwSwitchRow* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	ProtonPlusUtilsMangoHudManager* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	AdwSwitchRow* _tmp5_;
	ProtonPlusUtilsMangoHudManager* _tmp6_;
	ProtonPlusUtilsMangoHudManager* _tmp7_;
	gboolean _tmp8_;
	gboolean _tmp9_;
	AdwSwitchRow* _tmp10_;
	ProtonPlusUtilsMangoHudManager* _tmp11_;
	ProtonPlusUtilsMangoHudManager* _tmp12_;
	gboolean _tmp13_;
	gboolean _tmp14_;
	AdwSwitchRow* _tmp15_;
	ProtonPlusUtilsMangoHudManager* _tmp16_;
	ProtonPlusUtilsMangoHudManager* _tmp17_;
	gboolean _tmp18_;
	gboolean _tmp19_;
	AdwSwitchRow* _tmp20_;
	ProtonPlusUtilsMangoHudManager* _tmp21_;
	ProtonPlusUtilsMangoHudManager* _tmp22_;
	gboolean _tmp23_;
	gboolean _tmp24_;
	AdwSwitchRow* _tmp25_;
	ProtonPlusUtilsMangoHudManager* _tmp26_;
	ProtonPlusUtilsMangoHudManager* _tmp27_;
	gboolean _tmp28_;
	gboolean _tmp29_;
	AdwSwitchRow* _tmp30_;
	ProtonPlusUtilsMangoHudManager* _tmp31_;
	ProtonPlusUtilsMangoHudManager* _tmp32_;
	gboolean _tmp33_;
	gboolean _tmp34_;
	AdwSwitchRow* _tmp35_;
	ProtonPlusUtilsMangoHudManager* _tmp36_;
	ProtonPlusUtilsMangoHudManager* _tmp37_;
	gboolean _tmp38_;
	gboolean _tmp39_;
	AdwSwitchRow* _tmp40_;
	ProtonPlusUtilsMangoHudManager* _tmp41_;
	ProtonPlusUtilsMangoHudManager* _tmp42_;
	gboolean _tmp43_;
	gboolean _tmp44_;
	AdwSwitchRow* _tmp45_;
	ProtonPlusUtilsMangoHudManager* _tmp46_;
	ProtonPlusUtilsMangoHudManager* _tmp47_;
	gboolean _tmp48_;
	gboolean _tmp49_;
	AdwSwitchRow* _tmp50_;
	ProtonPlusUtilsMangoHudManager* _tmp51_;
	ProtonPlusUtilsMangoHudManager* _tmp52_;
	gboolean _tmp53_;
	gboolean _tmp54_;
	AdwSwitchRow* _tmp55_;
	ProtonPlusUtilsMangoHudManager* _tmp56_;
	ProtonPlusUtilsMangoHudManager* _tmp57_;
	gboolean _tmp58_;
	gboolean _tmp59_;
	AdwSwitchRow* _tmp60_;
	ProtonPlusUtilsMangoHudManager* _tmp61_;
	ProtonPlusUtilsMangoHudManager* _tmp62_;
	gboolean _tmp63_;
	gboolean _tmp64_;
	AdwSwitchRow* _tmp65_;
	ProtonPlusUtilsMangoHudManager* _tmp66_;
	ProtonPlusUtilsMangoHudManager* _tmp67_;
	gboolean _tmp68_;
	gboolean _tmp69_;
	AdwSwitchRow* _tmp70_;
	ProtonPlusUtilsMangoHudManager* _tmp71_;
	ProtonPlusUtilsMangoHudManager* _tmp72_;
	gboolean _tmp73_;
	gboolean _tmp74_;
	AdwSwitchRow* _tmp75_;
	ProtonPlusUtilsMangoHudManager* _tmp76_;
	ProtonPlusUtilsMangoHudManager* _tmp77_;
	gboolean _tmp78_;
	gboolean _tmp79_;
	AdwSwitchRow* _tmp80_;
	ProtonPlusUtilsMangoHudManager* _tmp81_;
	ProtonPlusUtilsMangoHudManager* _tmp82_;
	gboolean _tmp83_;
	gboolean _tmp84_;
	AdwSwitchRow* _tmp85_;
	ProtonPlusUtilsMangoHudManager* _tmp86_;
	ProtonPlusUtilsMangoHudManager* _tmp87_;
	gboolean _tmp88_;
	gboolean _tmp89_;
	AdwSwitchRow* _tmp90_;
	ProtonPlusUtilsMangoHudManager* _tmp91_;
	ProtonPlusUtilsMangoHudManager* _tmp92_;
	gboolean _tmp93_;
	gboolean _tmp94_;
	AdwSwitchRow* _tmp95_;
	ProtonPlusUtilsMangoHudManager* _tmp96_;
	ProtonPlusUtilsMangoHudManager* _tmp97_;
	gboolean _tmp98_;
	gboolean _tmp99_;
	AdwSwitchRow* _tmp100_;
	ProtonPlusUtilsMangoHudManager* _tmp101_;
	ProtonPlusUtilsMangoHudManager* _tmp102_;
	gboolean _tmp103_;
	gboolean _tmp104_;
	AdwSwitchRow* _tmp105_;
	ProtonPlusUtilsMangoHudManager* _tmp106_;
	ProtonPlusUtilsMangoHudManager* _tmp107_;
	gboolean _tmp108_;
	gboolean _tmp109_;
	GtkColorDialogButton* _tmp110_;
	ProtonPlusUtilsMangoHudManager* _tmp111_;
	ProtonPlusUtilsMangoHudManager* _tmp112_;
	const gchar* _tmp113_;
	const gchar* _tmp114_;
	GdkRGBA _tmp115_ = {0};
	GtkColorDialogButton* _tmp116_;
	ProtonPlusUtilsMangoHudManager* _tmp117_;
	ProtonPlusUtilsMangoHudManager* _tmp118_;
	const gchar* _tmp119_;
	const gchar* _tmp120_;
	GdkRGBA _tmp121_ = {0};
	GtkColorDialogButton* _tmp122_;
	ProtonPlusUtilsMangoHudManager* _tmp123_;
	ProtonPlusUtilsMangoHudManager* _tmp124_;
	const gchar* _tmp125_;
	const gchar* _tmp126_;
	GdkRGBA _tmp127_ = {0};
	GtkColorDialogButton* _tmp128_;
	ProtonPlusUtilsMangoHudManager* _tmp129_;
	ProtonPlusUtilsMangoHudManager* _tmp130_;
	const gchar* _tmp131_;
	const gchar* _tmp132_;
	GdkRGBA _tmp133_ = {0};
	AdwEntryRow* _tmp134_;
	ProtonPlusUtilsMangoHudManager* _tmp135_;
	ProtonPlusUtilsMangoHudManager* _tmp136_;
	const gchar* _tmp137_;
	const gchar* _tmp138_;
	AdwSwitchRow* _tmp139_;
	ProtonPlusUtilsMangoHudManager* _tmp140_;
	ProtonPlusUtilsMangoHudManager* _tmp141_;
	gboolean _tmp142_;
	gboolean _tmp143_;
	AdwSwitchRow* _tmp144_;
	ProtonPlusUtilsMangoHudManager* _tmp145_;
	ProtonPlusUtilsMangoHudManager* _tmp146_;
	gboolean _tmp147_;
	gboolean _tmp148_;
	AdwEntryRow* _tmp149_;
	ProtonPlusUtilsMangoHudManager* _tmp150_;
	ProtonPlusUtilsMangoHudManager* _tmp151_;
	const gchar* _tmp152_;
	const gchar* _tmp153_;
	gdouble _tmp154_ = 0.0;
	ProtonPlusUtilsMangoHudManager* _tmp155_;
	ProtonPlusUtilsMangoHudManager* _tmp156_;
	const gchar* _tmp157_;
	const gchar* _tmp158_;
	GtkScale* _tmp163_;
	gdouble _tmp164_ = 0.0;
	ProtonPlusUtilsMangoHudManager* _tmp165_;
	ProtonPlusUtilsMangoHudManager* _tmp166_;
	const gchar* _tmp167_;
	const gchar* _tmp168_;
	GtkScale* _tmp173_;
	gdouble _tmp174_ = 0.0;
	ProtonPlusUtilsMangoHudManager* _tmp175_;
	ProtonPlusUtilsMangoHudManager* _tmp176_;
	const gchar* _tmp177_;
	const gchar* _tmp178_;
	GtkScale* _tmp183_;
	AdwEntryRow* _tmp184_;
	ProtonPlusUtilsMangoHudManager* _tmp185_;
	ProtonPlusUtilsMangoHudManager* _tmp186_;
	const gchar* _tmp187_;
	const gchar* _tmp188_;
	AdwSwitchRow* _tmp189_;
	ProtonPlusUtilsMangoHudManager* _tmp190_;
	ProtonPlusUtilsMangoHudManager* _tmp191_;
	gboolean _tmp192_;
	gboolean _tmp193_;
	AdwSwitchRow* _tmp194_;
	ProtonPlusUtilsMangoHudManager* _tmp195_;
	ProtonPlusUtilsMangoHudManager* _tmp196_;
	gboolean _tmp197_;
	gboolean _tmp198_;
	self = (ProtonPlusWidgetsMangoHudExtrasPage*) base;
	proton_plus_widgets_mango_hud_page_set_is_updating ((ProtonPlusWidgetsMangoHudPage*) self, TRUE);
	_tmp0_ = self->priv->distro_row;
	_tmp1_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp2_ = _tmp1_;
	_tmp3_ = proton_plus_utils_mango_hud_manager_get_distro (_tmp2_);
	_tmp4_ = _tmp3_;
	adw_switch_row_set_active (_tmp0_, _tmp4_);
	_tmp5_ = self->priv->refresh_rate_row;
	_tmp6_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp7_ = _tmp6_;
	_tmp8_ = proton_plus_utils_mango_hud_manager_get_refresh_rate (_tmp7_);
	_tmp9_ = _tmp8_;
	adw_switch_row_set_active (_tmp5_, _tmp9_);
	_tmp10_ = self->priv->resolution_row;
	_tmp11_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp12_ = _tmp11_;
	_tmp13_ = proton_plus_utils_mango_hud_manager_get_resolution (_tmp12_);
	_tmp14_ = _tmp13_;
	adw_switch_row_set_active (_tmp10_, _tmp14_);
	_tmp15_ = self->priv->display_server_row;
	_tmp16_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp17_ = _tmp16_;
	_tmp18_ = proton_plus_utils_mango_hud_manager_get_display_server (_tmp17_);
	_tmp19_ = _tmp18_;
	adw_switch_row_set_active (_tmp15_, _tmp19_);
	_tmp20_ = self->priv->arch_row;
	_tmp21_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp22_ = _tmp21_;
	_tmp23_ = proton_plus_utils_mango_hud_manager_get_arch (_tmp22_);
	_tmp24_ = _tmp23_;
	adw_switch_row_set_active (_tmp20_, _tmp24_);
	_tmp25_ = self->priv->wine_row;
	_tmp26_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp27_ = _tmp26_;
	_tmp28_ = proton_plus_utils_mango_hud_manager_get_wine (_tmp27_);
	_tmp29_ = _tmp28_;
	adw_switch_row_set_active (_tmp25_, _tmp29_);
	_tmp30_ = self->priv->engine_version_row;
	_tmp31_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp32_ = _tmp31_;
	_tmp33_ = proton_plus_utils_mango_hud_manager_get_engine_version (_tmp32_);
	_tmp34_ = _tmp33_;
	adw_switch_row_set_active (_tmp30_, _tmp34_);
	_tmp35_ = self->priv->engine_short_names_row;
	_tmp36_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp37_ = _tmp36_;
	_tmp38_ = proton_plus_utils_mango_hud_manager_get_engine_short_names (_tmp37_);
	_tmp39_ = _tmp38_;
	adw_switch_row_set_active (_tmp35_, _tmp39_);
	_tmp40_ = self->priv->wine_sync_row;
	_tmp41_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp42_ = _tmp41_;
	_tmp43_ = proton_plus_utils_mango_hud_manager_get_wine_sync (_tmp42_);
	_tmp44_ = _tmp43_;
	adw_switch_row_set_active (_tmp40_, _tmp44_);
	_tmp45_ = self->priv->dx_api_row;
	_tmp46_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp47_ = _tmp46_;
	_tmp48_ = proton_plus_utils_mango_hud_manager_get_dx_api (_tmp47_);
	_tmp49_ = _tmp48_;
	adw_switch_row_set_active (_tmp45_, _tmp49_);
	_tmp50_ = self->priv->fex_stats_row;
	_tmp51_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp52_ = _tmp51_;
	_tmp53_ = proton_plus_utils_mango_hud_manager_get_fex_stats (_tmp52_);
	_tmp54_ = _tmp53_;
	adw_switch_row_set_active (_tmp50_, _tmp54_);
	_tmp55_ = self->priv->hud_version_row;
	_tmp56_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp57_ = _tmp56_;
	_tmp58_ = proton_plus_utils_mango_hud_manager_get_hud_version (_tmp57_);
	_tmp59_ = _tmp58_;
	adw_switch_row_set_active (_tmp55_, _tmp59_);
	_tmp60_ = self->priv->gamemode_row;
	_tmp61_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp62_ = _tmp61_;
	_tmp63_ = proton_plus_utils_mango_hud_manager_get_gamemode (_tmp62_);
	_tmp64_ = _tmp63_;
	adw_switch_row_set_active (_tmp60_, _tmp64_);
	_tmp65_ = self->priv->vkbasalt_row;
	_tmp66_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp67_ = _tmp66_;
	_tmp68_ = proton_plus_utils_mango_hud_manager_get_vkbasalt (_tmp67_);
	_tmp69_ = _tmp68_;
	adw_switch_row_set_active (_tmp65_, _tmp69_);
	_tmp70_ = self->priv->fcat_row;
	_tmp71_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp72_ = _tmp71_;
	_tmp73_ = proton_plus_utils_mango_hud_manager_get_fcat (_tmp72_);
	_tmp74_ = _tmp73_;
	adw_switch_row_set_active (_tmp70_, _tmp74_);
	_tmp75_ = self->priv->fsr_row;
	_tmp76_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp77_ = _tmp76_;
	_tmp78_ = proton_plus_utils_mango_hud_manager_get_fsr (_tmp77_);
	_tmp79_ = _tmp78_;
	adw_switch_row_set_active (_tmp75_, _tmp79_);
	_tmp80_ = self->priv->hdr_row;
	_tmp81_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp82_ = _tmp81_;
	_tmp83_ = proton_plus_utils_mango_hud_manager_get_hdr (_tmp82_);
	_tmp84_ = _tmp83_;
	adw_switch_row_set_active (_tmp80_, _tmp84_);
	_tmp85_ = self->priv->battery_row;
	_tmp86_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp87_ = _tmp86_;
	_tmp88_ = proton_plus_utils_mango_hud_manager_get_battery (_tmp87_);
	_tmp89_ = _tmp88_;
	adw_switch_row_set_active (_tmp85_, _tmp89_);
	_tmp90_ = self->priv->battery_wattage_row;
	_tmp91_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp92_ = _tmp91_;
	_tmp93_ = proton_plus_utils_mango_hud_manager_get_battery_wattage (_tmp92_);
	_tmp94_ = _tmp93_;
	adw_switch_row_set_active (_tmp90_, _tmp94_);
	_tmp95_ = self->priv->battery_time_row;
	_tmp96_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp97_ = _tmp96_;
	_tmp98_ = proton_plus_utils_mango_hud_manager_get_battery_time (_tmp97_);
	_tmp99_ = _tmp98_;
	adw_switch_row_set_active (_tmp95_, _tmp99_);
	_tmp100_ = self->priv->device_battery_row;
	_tmp101_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp102_ = _tmp101_;
	_tmp103_ = proton_plus_utils_mango_hud_manager_get_device_battery (_tmp102_);
	_tmp104_ = _tmp103_;
	adw_switch_row_set_active (_tmp100_, _tmp104_);
	_tmp105_ = self->priv->media_player_row;
	_tmp106_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp107_ = _tmp106_;
	_tmp108_ = proton_plus_utils_mango_hud_manager_get_media_player (_tmp107_);
	_tmp109_ = _tmp108_;
	adw_switch_row_set_active (_tmp105_, _tmp109_);
	_tmp110_ = self->priv->wine_color_btn;
	_tmp111_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp112_ = _tmp111_;
	_tmp113_ = proton_plus_utils_mango_hud_manager_get_wine_color (_tmp112_);
	_tmp114_ = _tmp113_;
	proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp114_, "#ffffff", &_tmp115_);
	gtk_color_dialog_button_set_rgba (_tmp110_, &_tmp115_);
	_tmp116_ = self->priv->engine_color_btn;
	_tmp117_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp118_ = _tmp117_;
	_tmp119_ = proton_plus_utils_mango_hud_manager_get_engine_color (_tmp118_);
	_tmp120_ = _tmp119_;
	proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp120_, "#ffffff", &_tmp121_);
	gtk_color_dialog_button_set_rgba (_tmp116_, &_tmp121_);
	_tmp122_ = self->priv->battery_color_btn;
	_tmp123_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp124_ = _tmp123_;
	_tmp125_ = proton_plus_utils_mango_hud_manager_get_battery_color (_tmp124_);
	_tmp126_ = _tmp125_;
	proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp126_, "#ffffff", &_tmp127_);
	gtk_color_dialog_button_set_rgba (_tmp122_, &_tmp127_);
	_tmp128_ = self->priv->media_player_color_btn;
	_tmp129_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp130_ = _tmp129_;
	_tmp131_ = proton_plus_utils_mango_hud_manager_get_media_player_color (_tmp130_);
	_tmp132_ = _tmp131_;
	proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp132_, "#ffffff", &_tmp133_);
	gtk_color_dialog_button_set_rgba (_tmp128_, &_tmp133_);
	_tmp134_ = self->priv->network_row;
	_tmp135_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp136_ = _tmp135_;
	_tmp137_ = proton_plus_utils_mango_hud_manager_get_network (_tmp136_);
	_tmp138_ = _tmp137_;
	gtk_editable_set_text ((GtkEditable*) _tmp134_, _tmp138_);
	_tmp139_ = self->priv->fahrenheit_row;
	_tmp140_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp141_ = _tmp140_;
	_tmp142_ = proton_plus_utils_mango_hud_manager_get_fahrenheit (_tmp141_);
	_tmp143_ = _tmp142_;
	adw_switch_row_set_active (_tmp139_, _tmp143_);
	_tmp144_ = self->priv->time_row;
	_tmp145_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp146_ = _tmp145_;
	_tmp147_ = proton_plus_utils_mango_hud_manager_get_time (_tmp146_);
	_tmp148_ = _tmp147_;
	adw_switch_row_set_active (_tmp144_, _tmp148_);
	_tmp149_ = self->priv->custom_text_row;
	_tmp150_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp151_ = _tmp150_;
	_tmp152_ = proton_plus_utils_mango_hud_manager_get_custom_text (_tmp151_);
	_tmp153_ = _tmp152_;
	gtk_editable_set_text ((GtkEditable*) _tmp149_, _tmp153_);
	_tmp155_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp156_ = _tmp155_;
	_tmp157_ = proton_plus_utils_mango_hud_manager_get_autostart_log (_tmp156_);
	_tmp158_ = _tmp157_;
	if (g_strcmp0 (_tmp158_, "") != 0) {
		ProtonPlusUtilsMangoHudManager* _tmp159_;
		ProtonPlusUtilsMangoHudManager* _tmp160_;
		const gchar* _tmp161_;
		const gchar* _tmp162_;
		_tmp159_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
		_tmp160_ = _tmp159_;
		_tmp161_ = proton_plus_utils_mango_hud_manager_get_autostart_log (_tmp160_);
		_tmp162_ = _tmp161_;
		_tmp154_ = double_parse (_tmp162_);
	} else {
		_tmp154_ = (gdouble) 0;
	}
	_tmp163_ = self->priv->autostart_log_scale;
	gtk_range_set_value ((GtkRange*) _tmp163_, _tmp154_);
	_tmp165_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp166_ = _tmp165_;
	_tmp167_ = proton_plus_utils_mango_hud_manager_get_log_duration (_tmp166_);
	_tmp168_ = _tmp167_;
	if (g_strcmp0 (_tmp168_, "") != 0) {
		ProtonPlusUtilsMangoHudManager* _tmp169_;
		ProtonPlusUtilsMangoHudManager* _tmp170_;
		const gchar* _tmp171_;
		const gchar* _tmp172_;
		_tmp169_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
		_tmp170_ = _tmp169_;
		_tmp171_ = proton_plus_utils_mango_hud_manager_get_log_duration (_tmp170_);
		_tmp172_ = _tmp171_;
		_tmp164_ = double_parse (_tmp172_);
	} else {
		_tmp164_ = (gdouble) 0;
	}
	_tmp173_ = self->priv->log_duration_scale;
	gtk_range_set_value ((GtkRange*) _tmp173_, _tmp164_);
	_tmp175_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp176_ = _tmp175_;
	_tmp177_ = proton_plus_utils_mango_hud_manager_get_log_interval (_tmp176_);
	_tmp178_ = _tmp177_;
	if (g_strcmp0 (_tmp178_, "") != 0) {
		ProtonPlusUtilsMangoHudManager* _tmp179_;
		ProtonPlusUtilsMangoHudManager* _tmp180_;
		const gchar* _tmp181_;
		const gchar* _tmp182_;
		_tmp179_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
		_tmp180_ = _tmp179_;
		_tmp181_ = proton_plus_utils_mango_hud_manager_get_log_interval (_tmp180_);
		_tmp182_ = _tmp181_;
		_tmp174_ = double_parse (_tmp182_);
	} else {
		_tmp174_ = (gdouble) 0;
	}
	_tmp183_ = self->priv->log_interval_scale;
	gtk_range_set_value ((GtkRange*) _tmp183_, _tmp174_);
	proton_plus_widgets_mango_hud_extras_page_refresh_toggle_logging_row (self);
	_tmp184_ = self->priv->output_folder_row;
	_tmp185_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp186_ = _tmp185_;
	_tmp187_ = proton_plus_utils_mango_hud_manager_get_output_folder (_tmp186_);
	_tmp188_ = _tmp187_;
	gtk_editable_set_text ((GtkEditable*) _tmp184_, _tmp188_);
	_tmp189_ = self->priv->upload_log_row;
	_tmp190_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp191_ = _tmp190_;
	_tmp192_ = proton_plus_utils_mango_hud_manager_get_upload_log (_tmp191_);
	_tmp193_ = _tmp192_;
	adw_switch_row_set_active (_tmp189_, _tmp193_);
	_tmp194_ = self->priv->log_versioning_row;
	_tmp195_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp196_ = _tmp195_;
	_tmp197_ = proton_plus_utils_mango_hud_manager_get_log_versioning (_tmp196_);
	_tmp198_ = _tmp197_;
	adw_switch_row_set_active (_tmp194_, _tmp198_);
	proton_plus_widgets_mango_hud_page_set_is_updating ((ProtonPlusWidgetsMangoHudPage*) self, FALSE);
}

static void
proton_plus_widgets_mango_hud_extras_page_class_init (ProtonPlusWidgetsMangoHudExtrasPageClass * klass,
                                                      gpointer klass_data)
{
	proton_plus_widgets_mango_hud_extras_page_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsMangoHudExtrasPage_private_offset);
	((ProtonPlusWidgetsMangoHudPageClass *) klass)->refresh = (void (*) (ProtonPlusWidgetsMangoHudPage*)) proton_plus_widgets_mango_hud_extras_page_real_refresh;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_mango_hud_extras_page_finalize;
}

static void
proton_plus_widgets_mango_hud_extras_page_instance_init (ProtonPlusWidgetsMangoHudExtrasPage * self,
                                                         gpointer klass)
{
	self->priv = proton_plus_widgets_mango_hud_extras_page_get_instance_private (self);
}

static void
proton_plus_widgets_mango_hud_extras_page_finalize (GObject * obj)
{
	ProtonPlusWidgetsMangoHudExtrasPage * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_MANGO_HUD_TYPE_EXTRAS_PAGE, ProtonPlusWidgetsMangoHudExtrasPage);
	_g_object_unref0 (self->priv->distro_row);
	_g_object_unref0 (self->priv->refresh_rate_row);
	_g_object_unref0 (self->priv->resolution_row);
	_g_object_unref0 (self->priv->display_server_row);
	_g_object_unref0 (self->priv->arch_row);
	_g_object_unref0 (self->priv->wine_row);
	_g_object_unref0 (self->priv->engine_version_row);
	_g_object_unref0 (self->priv->engine_short_names_row);
	_g_object_unref0 (self->priv->wine_sync_row);
	_g_object_unref0 (self->priv->dx_api_row);
	_g_object_unref0 (self->priv->fex_stats_row);
	_g_object_unref0 (self->priv->hud_version_row);
	_g_object_unref0 (self->priv->gamemode_row);
	_g_object_unref0 (self->priv->vkbasalt_row);
	_g_object_unref0 (self->priv->fcat_row);
	_g_object_unref0 (self->priv->fsr_row);
	_g_object_unref0 (self->priv->hdr_row);
	_g_object_unref0 (self->priv->battery_row);
	_g_object_unref0 (self->priv->battery_wattage_row);
	_g_object_unref0 (self->priv->battery_time_row);
	_g_object_unref0 (self->priv->device_battery_row);
	_g_object_unref0 (self->priv->media_player_row);
	_g_object_unref0 (self->priv->wine_color_btn);
	_g_object_unref0 (self->priv->engine_color_btn);
	_g_object_unref0 (self->priv->battery_color_btn);
	_g_object_unref0 (self->priv->media_player_color_btn);
	_g_object_unref0 (self->priv->network_row);
	_g_object_unref0 (self->priv->fahrenheit_row);
	_g_object_unref0 (self->priv->time_row);
	_g_object_unref0 (self->priv->custom_text_row);
	_g_object_unref0 (self->priv->autostart_log_row);
	_g_object_unref0 (self->priv->autostart_log_scale);
	_g_object_unref0 (self->priv->log_duration_row);
	_g_object_unref0 (self->priv->log_duration_scale);
	_g_object_unref0 (self->priv->log_interval_row);
	_g_object_unref0 (self->priv->log_interval_scale);
	_g_object_unref0 (self->priv->toggle_logging_row);
	_g_object_unref0 (self->priv->output_folder_row);
	_g_object_unref0 (self->priv->upload_log_row);
	_g_object_unref0 (self->priv->log_versioning_row);
	G_OBJECT_CLASS (proton_plus_widgets_mango_hud_extras_page_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_mango_hud_extras_page_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsMangoHudExtrasPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_mango_hud_extras_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsMangoHudExtrasPage), 0, (GInstanceInitFunc) proton_plus_widgets_mango_hud_extras_page_instance_init, NULL };
	GType proton_plus_widgets_mango_hud_extras_page_type_id;
	proton_plus_widgets_mango_hud_extras_page_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_MANGO_HUD_TYPE_PAGE, "ProtonPlusWidgetsMangoHudExtrasPage", &g_define_type_info, 0);
	ProtonPlusWidgetsMangoHudExtrasPage_private_offset = g_type_add_instance_private (proton_plus_widgets_mango_hud_extras_page_type_id, sizeof (ProtonPlusWidgetsMangoHudExtrasPagePrivate));
	return proton_plus_widgets_mango_hud_extras_page_type_id;
}

GType
proton_plus_widgets_mango_hud_extras_page_get_type (void)
{
	static volatile gsize proton_plus_widgets_mango_hud_extras_page_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_mango_hud_extras_page_type_id__once)) {
		GType proton_plus_widgets_mango_hud_extras_page_type_id;
		proton_plus_widgets_mango_hud_extras_page_type_id = proton_plus_widgets_mango_hud_extras_page_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_mango_hud_extras_page_type_id__once, proton_plus_widgets_mango_hud_extras_page_type_id);
	}
	return proton_plus_widgets_mango_hud_extras_page_type_id__once;
}

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

