/* mangohud-metrics-page.c generated by valac 0.56.19, the Vala compiler
 * generated from mangohud-metrics-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 <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_METRICS_PAGE_0_PROPERTY,
	PROTON_PLUS_WIDGETS_MANGO_HUD_METRICS_PAGE_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_mango_hud_metrics_page_properties[PROTON_PLUS_WIDGETS_MANGO_HUD_METRICS_PAGE_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _ProtonPlusWidgetsMangoHudMetricsPagePrivate {
	AdwEntryRow* gpu_custom_name_row;
	GtkColorDialogButton* gpu_color_btn;
	AdwSwitchRow* gpu_stats_row;
	AdwSwitchRow* gpu_load_color_row;
	GtkColorDialogButton* gpu_load_color_1_btn;
	GtkColorDialogButton* gpu_load_color_2_btn;
	GtkColorDialogButton* gpu_load_color_3_btn;
	AdwSwitchRow* vram_row;
	AdwSwitchRow* gpu_core_clock_row;
	AdwSwitchRow* gpu_mem_clock_row;
	AdwSwitchRow* gpu_temp_row;
	AdwSwitchRow* gpu_mem_temp_row;
	AdwSwitchRow* gpu_junction_temp_row;
	AdwSwitchRow* gpu_fan_row;
	AdwSwitchRow* gpu_power_row;
	AdwSwitchRow* gpu_voltage_row;
	AdwSwitchRow* throttling_status_row;
	AdwSwitchRow* throttling_graph_row;
	AdwSwitchRow* gpu_efficiency_row;
	AdwSwitchRow* gpu_power_limit_row;
	AdwSwitchRow* gpu_name_row;
	AdwSwitchRow* vulkan_driver_row;
	AdwSwitchRow* gpu_procs_row;
	AdwEntryRow* cpu_custom_name_row;
	GtkColorDialogButton* cpu_color_btn;
	AdwSwitchRow* cpu_stats_row;
	AdwSwitchRow* cpu_load_color_row;
	GtkColorDialogButton* cpu_load_color_1_btn;
	GtkColorDialogButton* cpu_load_color_2_btn;
	GtkColorDialogButton* cpu_load_color_3_btn;
	AdwSwitchRow* core_load_row;
	AdwSwitchRow* cpu_mhz_row;
	AdwSwitchRow* core_pipeline_row;
	AdwSwitchRow* cpu_temp_row;
	AdwSwitchRow* cpu_power_row;
	AdwSwitchRow* cpu_efficiency_row;
	AdwSwitchRow* ram_temp_row;
	AdwSwitchRow* ram_row;
	AdwSwitchRow* disks_row;
	AdwSwitchRow* cpu_procs_row;
	AdwSwitchRow* swap_row;
};

static gint ProtonPlusWidgetsMangoHudMetricsPage_private_offset;
static gpointer proton_plus_widgets_mango_hud_metrics_page_parent_class = NULL;

static void __lambda214_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   const gchar* val);
static void ___lambda214__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda215_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   const gchar* val);
static void ___lambda215__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda216_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda216__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda217_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda217__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void proton_plus_widgets_mango_hud_metrics_page_refresh_gpu_load_color_btns (ProtonPlusWidgetsMangoHudMetricsPage* self);
static void proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors (ProtonPlusWidgetsMangoHudMetricsPage* self);
static void _proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors_g_object_notify (GObject* _sender,
                                                                                         GParamSpec* pspec,
                                                                                         gpointer self);
static void __lambda218_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda218__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda219_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda219__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda220_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda220__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda221_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda221__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda222_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda222__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda223_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda223__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda224_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda224__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda225_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda225__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda226_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda226__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda227_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda227__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda228_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda228__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda229_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda229__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda230_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda230__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda231_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda231__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda232_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda232__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda233_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda233__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda234_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   const gchar* val);
static void ___lambda234__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda235_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   const gchar* val);
static void ___lambda235__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                          gpointer self);
static void __lambda236_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda236__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda237_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda237__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void proton_plus_widgets_mango_hud_metrics_page_refresh_cpu_load_color_btns (ProtonPlusWidgetsMangoHudMetricsPage* self);
static void proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors (ProtonPlusWidgetsMangoHudMetricsPage* self);
static void _proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors_g_object_notify (GObject* _sender,
                                                                                         GParamSpec* pspec,
                                                                                         gpointer self);
static void __lambda238_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda238__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda239_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda239__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda240_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda240__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda241_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda241__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda242_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda242__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda243_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda243__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda244_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda244__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda245_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda245__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda246_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda246__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda247_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda247__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void __lambda248_ (ProtonPlusWidgetsMangoHudMetricsPage* self,
                   gboolean val);
static void ___lambda248__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                      gpointer self);
static void proton_plus_widgets_mango_hud_metrics_page_refresh_gpu_color_btn (ProtonPlusWidgetsMangoHudMetricsPage* self);
static void proton_plus_widgets_mango_hud_metrics_page_refresh_cpu_color_btn (ProtonPlusWidgetsMangoHudMetricsPage* self);
static void proton_plus_widgets_mango_hud_metrics_page_real_refresh (ProtonPlusWidgetsMangoHudPage* base);
static void proton_plus_widgets_mango_hud_metrics_page_finalize (GObject * obj);
static GType proton_plus_widgets_mango_hud_metrics_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 gssize _vala_array_length (gpointer array);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static inline gpointer
proton_plus_widgets_mango_hud_metrics_page_get_instance_private (ProtonPlusWidgetsMangoHudMetricsPage* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsMangoHudMetricsPage_private_offset);
}

static void
__lambda214_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_color (_tmp1_, val);
}

static void
___lambda214__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda214_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda215_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_text (_tmp1_, val);
}

static void
___lambda215__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda215_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

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

static void
__lambda216_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_stats (_tmp1_, val);
}

static void
___lambda216__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda216_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda217_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_load_color (_tmp1_, val);
}

static void
___lambda217__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda217_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
_proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors_g_object_notify (GObject* _sender,
                                                                                    GParamSpec* pspec,
                                                                                    gpointer self)
{
	proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors ((ProtonPlusWidgetsMangoHudMetricsPage*) self);
}

static void
__lambda218_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_vram (_tmp1_, val);
}

static void
___lambda218__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda218_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda219_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_core_clock (_tmp1_, val);
}

static void
___lambda219__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda219_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda220_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_mem_clock (_tmp1_, val);
}

static void
___lambda220__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda220_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda221_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_temp (_tmp1_, val);
}

static void
___lambda221__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda221_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda222_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_mem_temp (_tmp1_, val);
}

static void
___lambda222__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda222_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda223_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_junction_temp (_tmp1_, val);
}

static void
___lambda223__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda223_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda224_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_fan (_tmp1_, val);
}

static void
___lambda224__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda224_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda225_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_power (_tmp1_, val);
}

static void
___lambda225__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda225_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda226_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_voltage (_tmp1_, val);
}

static void
___lambda226__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda226_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda227_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_throttling_status (_tmp1_, val);
}

static void
___lambda227__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda227_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda228_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_throttling_graph (_tmp1_, val);
}

static void
___lambda228__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda228_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda229_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_efficiency (_tmp1_, val);
}

static void
___lambda229__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda229_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda230_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_power_limit (_tmp1_, val);
}

static void
___lambda230__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda230_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda231_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_gpu_name (_tmp1_, val);
}

static void
___lambda231__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda231_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda232_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_vulkan_driver (_tmp1_, val);
}

static void
___lambda232__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda232_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda233_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_procs (_tmp1_, val);
}

static void
___lambda233__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda233_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda234_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_color (_tmp1_, val);
}

static void
___lambda234__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda234_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda235_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_text (_tmp1_, val);
}

static void
___lambda235__proton_plus_widgets_mango_hud_page_set_value_func_str (const gchar* val,
                                                                     gpointer self)
{
	__lambda235_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda236_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_stats (_tmp1_, val);
}

static void
___lambda236__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda236_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda237_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_load_color (_tmp1_, val);
}

static void
___lambda237__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda237_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
_proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors_g_object_notify (GObject* _sender,
                                                                                    GParamSpec* pspec,
                                                                                    gpointer self)
{
	proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors ((ProtonPlusWidgetsMangoHudMetricsPage*) self);
}

static void
__lambda238_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_core_load (_tmp1_, val);
}

static void
___lambda238__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda238_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda239_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_mhz (_tmp1_, val);
}

static void
___lambda239__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda239_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda240_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_core_pipeline (_tmp1_, val);
}

static void
___lambda240__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda240_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda241_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_temp (_tmp1_, val);
}

static void
___lambda241__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda241_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda242_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_power (_tmp1_, val);
}

static void
___lambda242__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda242_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda243_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_cpu_efficiency (_tmp1_, val);
}

static void
___lambda243__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda243_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda244_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_ram_temp (_tmp1_, val);
}

static void
___lambda244__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda244_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda245_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_ram (_tmp1_, val);
}

static void
___lambda245__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda245_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda246_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_disks (_tmp1_, val);
}

static void
___lambda246__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda246_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda247_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_procs (_tmp1_, val);
}

static void
___lambda247__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda247_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

static void
__lambda248_ (ProtonPlusWidgetsMangoHudMetricsPage* 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_swap (_tmp1_, val);
}

static void
___lambda248__proton_plus_widgets_mango_hud_page_set_value_func (gboolean val,
                                                                 gpointer self)
{
	__lambda248_ ((ProtonPlusWidgetsMangoHudMetricsPage*) self, val);
}

ProtonPlusWidgetsMangoHudMetricsPage*
proton_plus_widgets_mango_hud_metrics_page_construct (GType object_type,
                                                      ProtonPlusUtilsMangoHudManager* config)
{
	ProtonPlusWidgetsMangoHudMetricsPage * self = NULL;
	GtkBox* gpu_metrics_box = NULL;
	GtkBox* _tmp0_;
	GtkLabel* gpu_label = NULL;
	GtkLabel* _tmp1_ = NULL;
	GtkColorDialog* color_dialog = NULL;
	GtkColorDialog* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	GtkColorDialogButton* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	AdwEntryRow* _tmp8_;
	AdwEntryRow* _tmp9_;
	GtkColorDialogButton* _tmp10_;
	AdwEntryRow* _tmp11_;
	GtkWidget* _tmp12_;
	GtkWidget** _tmp13_;
	GtkWidget** _tmp14_;
	gint _tmp14__length1;
	GtkFlowBox* _tmp15_;
	GtkFlowBox* _tmp16_;
	gboolean _tmp17_;
	gboolean _tmp18_;
	AdwSwitchRow* _tmp19_;
	gboolean _tmp20_;
	gboolean _tmp21_;
	AdwSwitchRow* _tmp22_;
	GtkColorDialog* _tmp23_;
	GtkColorDialogButton* _tmp24_ = NULL;
	GtkColorDialog* _tmp25_;
	GtkColorDialogButton* _tmp26_ = NULL;
	GtkColorDialog* _tmp27_;
	GtkColorDialogButton* _tmp28_ = NULL;
	GtkBox* gpu_load_color_box = NULL;
	GtkBox* _tmp29_;
	GtkColorDialogButton* _tmp30_;
	GtkColorDialogButton* _tmp31_;
	GtkColorDialogButton* _tmp32_;
	AdwSwitchRow* _tmp33_;
	AdwSwitchRow* _tmp34_;
	GtkColorDialogButton* _tmp35_;
	GtkColorDialogButton* _tmp36_;
	GtkColorDialogButton* _tmp37_;
	gboolean _tmp38_;
	gboolean _tmp39_;
	AdwSwitchRow* _tmp40_;
	gboolean _tmp41_;
	gboolean _tmp42_;
	AdwSwitchRow* _tmp43_;
	gboolean _tmp44_;
	gboolean _tmp45_;
	AdwSwitchRow* _tmp46_;
	AdwSwitchRow* _tmp47_;
	GtkWidget* _tmp48_;
	AdwSwitchRow* _tmp49_;
	GtkWidget* _tmp50_;
	AdwSwitchRow* _tmp51_;
	GtkWidget* _tmp52_;
	AdwSwitchRow* _tmp53_;
	GtkWidget* _tmp54_;
	AdwSwitchRow* _tmp55_;
	GtkWidget* _tmp56_;
	GtkWidget** _tmp57_;
	GtkWidget** _tmp58_;
	gint _tmp58__length1;
	GtkFlowBox* _tmp59_;
	GtkFlowBox* _tmp60_;
	gboolean _tmp61_;
	gboolean _tmp62_;
	AdwSwitchRow* _tmp63_;
	gboolean _tmp64_;
	gboolean _tmp65_;
	AdwSwitchRow* _tmp66_;
	gboolean _tmp67_;
	gboolean _tmp68_;
	AdwSwitchRow* _tmp69_;
	gboolean _tmp70_;
	gboolean _tmp71_;
	AdwSwitchRow* _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_;
	gboolean _tmp122_;
	gboolean _tmp123_;
	AdwSwitchRow* _tmp124_;
	gboolean _tmp125_;
	gboolean _tmp126_;
	AdwSwitchRow* _tmp127_;
	AdwSwitchRow* _tmp128_;
	GtkWidget* _tmp129_;
	AdwSwitchRow* _tmp130_;
	GtkWidget* _tmp131_;
	AdwSwitchRow* _tmp132_;
	GtkWidget* _tmp133_;
	GtkWidget** _tmp134_;
	GtkWidget** _tmp135_;
	gint _tmp135__length1;
	GtkFlowBox* _tmp136_;
	GtkFlowBox* _tmp137_;
	GtkBox* cpu_metrics_box = NULL;
	GtkBox* _tmp138_;
	GtkLabel* cpu_label = NULL;
	GtkLabel* _tmp139_ = NULL;
	const gchar* _tmp140_;
	const gchar* _tmp141_;
	GtkColorDialogButton* _tmp142_;
	const gchar* _tmp143_;
	const gchar* _tmp144_;
	AdwEntryRow* _tmp145_;
	AdwEntryRow* _tmp146_;
	GtkColorDialogButton* _tmp147_;
	AdwEntryRow* _tmp148_;
	GtkWidget* _tmp149_;
	GtkWidget** _tmp150_;
	GtkWidget** _tmp151_;
	gint _tmp151__length1;
	GtkFlowBox* _tmp152_;
	GtkFlowBox* _tmp153_;
	gboolean _tmp154_;
	gboolean _tmp155_;
	AdwSwitchRow* _tmp156_;
	gboolean _tmp157_;
	gboolean _tmp158_;
	AdwSwitchRow* _tmp159_;
	GtkColorDialog* _tmp160_;
	GtkColorDialogButton* _tmp161_ = NULL;
	GtkColorDialog* _tmp162_;
	GtkColorDialogButton* _tmp163_ = NULL;
	GtkColorDialog* _tmp164_;
	GtkColorDialogButton* _tmp165_ = NULL;
	GtkBox* cpu_load_color_box = NULL;
	GtkBox* _tmp166_;
	GtkColorDialogButton* _tmp167_;
	GtkColorDialogButton* _tmp168_;
	GtkColorDialogButton* _tmp169_;
	AdwSwitchRow* _tmp170_;
	AdwSwitchRow* _tmp171_;
	GtkColorDialogButton* _tmp172_;
	GtkColorDialogButton* _tmp173_;
	GtkColorDialogButton* _tmp174_;
	gboolean _tmp175_;
	gboolean _tmp176_;
	AdwSwitchRow* _tmp177_;
	gboolean _tmp178_;
	gboolean _tmp179_;
	AdwSwitchRow* _tmp180_;
	gboolean _tmp181_;
	gboolean _tmp182_;
	AdwSwitchRow* _tmp183_;
	AdwSwitchRow* _tmp184_;
	GtkWidget* _tmp185_;
	AdwSwitchRow* _tmp186_;
	GtkWidget* _tmp187_;
	AdwSwitchRow* _tmp188_;
	GtkWidget* _tmp189_;
	AdwSwitchRow* _tmp190_;
	GtkWidget* _tmp191_;
	AdwSwitchRow* _tmp192_;
	GtkWidget* _tmp193_;
	GtkWidget** _tmp194_;
	GtkWidget** _tmp195_;
	gint _tmp195__length1;
	GtkFlowBox* _tmp196_;
	GtkFlowBox* _tmp197_;
	gboolean _tmp198_;
	gboolean _tmp199_;
	AdwSwitchRow* _tmp200_;
	gboolean _tmp201_;
	gboolean _tmp202_;
	AdwSwitchRow* _tmp203_;
	gboolean _tmp204_;
	gboolean _tmp205_;
	AdwSwitchRow* _tmp206_;
	gboolean _tmp207_;
	gboolean _tmp208_;
	AdwSwitchRow* _tmp209_;
	AdwSwitchRow* _tmp210_;
	GtkWidget* _tmp211_;
	AdwSwitchRow* _tmp212_;
	GtkWidget* _tmp213_;
	AdwSwitchRow* _tmp214_;
	GtkWidget* _tmp215_;
	AdwSwitchRow* _tmp216_;
	GtkWidget* _tmp217_;
	GtkWidget** _tmp218_;
	GtkWidget** _tmp219_;
	gint _tmp219__length1;
	GtkFlowBox* _tmp220_;
	GtkFlowBox* _tmp221_;
	gboolean _tmp222_;
	gboolean _tmp223_;
	AdwSwitchRow* _tmp224_;
	gboolean _tmp225_;
	gboolean _tmp226_;
	AdwSwitchRow* _tmp227_;
	gboolean _tmp228_;
	gboolean _tmp229_;
	AdwSwitchRow* _tmp230_;
	gboolean _tmp231_;
	gboolean _tmp232_;
	AdwSwitchRow* _tmp233_;
	AdwSwitchRow* _tmp234_;
	GtkWidget* _tmp235_;
	AdwSwitchRow* _tmp236_;
	GtkWidget* _tmp237_;
	AdwSwitchRow* _tmp238_;
	GtkWidget* _tmp239_;
	AdwSwitchRow* _tmp240_;
	GtkWidget* _tmp241_;
	GtkWidget** _tmp242_;
	GtkWidget** _tmp243_;
	gint _tmp243__length1;
	GtkFlowBox* _tmp244_;
	GtkFlowBox* _tmp245_;
	g_return_val_if_fail (config != NULL, NULL);
	self = (ProtonPlusWidgetsMangoHudMetricsPage*) proton_plus_widgets_mango_hud_page_construct (object_type, config);
	_tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
	g_object_ref_sink (_tmp0_);
	gpu_metrics_box = _tmp0_;
	_tmp1_ = (GtkLabel*) gtk_label_new (_ ("GPU"));
	gtk_widget_set_halign ((GtkWidget*) _tmp1_, GTK_ALIGN_START);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp1_, 12);
	g_object_ref_sink (_tmp1_);
	gpu_label = _tmp1_;
	gtk_widget_add_css_class ((GtkWidget*) gpu_label, "heading");
	gtk_box_append (gpu_metrics_box, (GtkWidget*) gpu_label);
	_tmp2_ = gtk_color_dialog_new ();
	color_dialog = _tmp2_;
	_tmp3_ = proton_plus_utils_mango_hud_manager_get_gpu_color (config);
	_tmp4_ = _tmp3_;
	_tmp5_ = proton_plus_widgets_mango_hud_page_create_color_button ((ProtonPlusWidgetsMangoHudPage*) self, color_dialog, _tmp4_, ___lambda214__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->gpu_color_btn);
	self->priv->gpu_color_btn = _tmp5_;
	_tmp6_ = proton_plus_utils_mango_hud_manager_get_gpu_text (config);
	_tmp7_ = _tmp6_;
	_tmp8_ = proton_plus_widgets_mango_hud_page_create_entry ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Custom GPU name"), _tmp7_, ___lambda215__proton_plus_widgets_mango_hud_page_set_value_func_str, self, PROTON_PLUS_UTILS_TEXT_INPUT_FIELD_KIND_FREE_FORM);
	_g_object_unref0 (self->priv->gpu_custom_name_row);
	self->priv->gpu_custom_name_row = _tmp8_;
	_tmp9_ = self->priv->gpu_custom_name_row;
	_tmp10_ = self->priv->gpu_color_btn;
	adw_entry_row_add_suffix (_tmp9_, (GtkWidget*) _tmp10_);
	_tmp11_ = self->priv->gpu_custom_name_row;
	_tmp12_ = _g_object_ref0 ((GtkWidget*) _tmp11_);
	_tmp13_ = g_new0 (GtkWidget*, 1 + 1);
	_tmp13_[0] = _tmp12_;
	_tmp14_ = _tmp13_;
	_tmp14__length1 = 1;
	_tmp15_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, gpu_metrics_box, NULL, _tmp14_, (gint) 1, "caption");
	_tmp16_ = _tmp15_;
	_g_object_unref0 (_tmp16_);
	_tmp14_ = (_vala_array_free (_tmp14_, _tmp14__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp17_ = proton_plus_utils_mango_hud_manager_get_gpu_stats (config);
	_tmp18_ = _tmp17_;
	_tmp19_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Load"), _tmp18_, ___lambda216__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_stats_row);
	self->priv->gpu_stats_row = _tmp19_;
	_tmp20_ = proton_plus_utils_mango_hud_manager_get_gpu_load_color (config);
	_tmp21_ = _tmp20_;
	_tmp22_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Load Color"), _tmp21_, ___lambda217__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_load_color_row);
	self->priv->gpu_load_color_row = _tmp22_;
	_tmp23_ = _g_object_ref0 (color_dialog);
	_tmp24_ = (GtkColorDialogButton*) gtk_color_dialog_button_new (_tmp23_);
	gtk_widget_set_valign ((GtkWidget*) _tmp24_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp24_);
	_g_object_unref0 (self->priv->gpu_load_color_1_btn);
	self->priv->gpu_load_color_1_btn = _tmp24_;
	_tmp25_ = _g_object_ref0 (color_dialog);
	_tmp26_ = (GtkColorDialogButton*) gtk_color_dialog_button_new (_tmp25_);
	gtk_widget_set_valign ((GtkWidget*) _tmp26_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp26_);
	_g_object_unref0 (self->priv->gpu_load_color_2_btn);
	self->priv->gpu_load_color_2_btn = _tmp26_;
	_tmp27_ = _g_object_ref0 (color_dialog);
	_tmp28_ = (GtkColorDialogButton*) gtk_color_dialog_button_new (_tmp27_);
	gtk_widget_set_valign ((GtkWidget*) _tmp28_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp28_);
	_g_object_unref0 (self->priv->gpu_load_color_3_btn);
	self->priv->gpu_load_color_3_btn = _tmp28_;
	_tmp29_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
	g_object_ref_sink (_tmp29_);
	gpu_load_color_box = _tmp29_;
	_tmp30_ = self->priv->gpu_load_color_1_btn;
	gtk_box_append (gpu_load_color_box, (GtkWidget*) _tmp30_);
	_tmp31_ = self->priv->gpu_load_color_2_btn;
	gtk_box_append (gpu_load_color_box, (GtkWidget*) _tmp31_);
	_tmp32_ = self->priv->gpu_load_color_3_btn;
	gtk_box_append (gpu_load_color_box, (GtkWidget*) _tmp32_);
	_tmp33_ = self->priv->gpu_load_color_row;
	adw_action_row_add_suffix ((AdwActionRow*) _tmp33_, (GtkWidget*) gpu_load_color_box);
	_tmp34_ = self->priv->gpu_load_color_row;
	g_object_bind_property_with_closures ((GObject*) _tmp34_, "active", (GObject*) gpu_load_color_box, "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)));
	proton_plus_widgets_mango_hud_metrics_page_refresh_gpu_load_color_btns (self);
	_tmp35_ = self->priv->gpu_load_color_1_btn;
	g_signal_connect_object ((GObject*) _tmp35_, "notify::rgba", (GCallback) _proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors_g_object_notify, self, 0);
	_tmp36_ = self->priv->gpu_load_color_2_btn;
	g_signal_connect_object ((GObject*) _tmp36_, "notify::rgba", (GCallback) _proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors_g_object_notify, self, 0);
	_tmp37_ = self->priv->gpu_load_color_3_btn;
	g_signal_connect_object ((GObject*) _tmp37_, "notify::rgba", (GCallback) _proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors_g_object_notify, self, 0);
	_tmp38_ = proton_plus_utils_mango_hud_manager_get_vram (config);
	_tmp39_ = _tmp38_;
	_tmp40_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("VRAM"), _tmp39_, ___lambda218__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->vram_row);
	self->priv->vram_row = _tmp40_;
	_tmp41_ = proton_plus_utils_mango_hud_manager_get_gpu_core_clock (config);
	_tmp42_ = _tmp41_;
	_tmp43_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Core Freq"), _tmp42_, ___lambda219__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_core_clock_row);
	self->priv->gpu_core_clock_row = _tmp43_;
	_tmp44_ = proton_plus_utils_mango_hud_manager_get_gpu_mem_clock (config);
	_tmp45_ = _tmp44_;
	_tmp46_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Memory Freq"), _tmp45_, ___lambda220__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_mem_clock_row);
	self->priv->gpu_mem_clock_row = _tmp46_;
	_tmp47_ = self->priv->gpu_stats_row;
	_tmp48_ = _g_object_ref0 ((GtkWidget*) _tmp47_);
	_tmp49_ = self->priv->gpu_load_color_row;
	_tmp50_ = _g_object_ref0 ((GtkWidget*) _tmp49_);
	_tmp51_ = self->priv->vram_row;
	_tmp52_ = _g_object_ref0 ((GtkWidget*) _tmp51_);
	_tmp53_ = self->priv->gpu_core_clock_row;
	_tmp54_ = _g_object_ref0 ((GtkWidget*) _tmp53_);
	_tmp55_ = self->priv->gpu_mem_clock_row;
	_tmp56_ = _g_object_ref0 ((GtkWidget*) _tmp55_);
	_tmp57_ = g_new0 (GtkWidget*, 5 + 1);
	_tmp57_[0] = _tmp48_;
	_tmp57_[1] = _tmp50_;
	_tmp57_[2] = _tmp52_;
	_tmp57_[3] = _tmp54_;
	_tmp57_[4] = _tmp56_;
	_tmp58_ = _tmp57_;
	_tmp58__length1 = 5;
	_tmp59_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, gpu_metrics_box, _ ("Main metrics"), _tmp58_, (gint) 5, "caption");
	_tmp60_ = _tmp59_;
	_g_object_unref0 (_tmp60_);
	_tmp58_ = (_vala_array_free (_tmp58_, _tmp58__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp61_ = proton_plus_utils_mango_hud_manager_get_gpu_temp (config);
	_tmp62_ = _tmp61_;
	_tmp63_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("GPU"), _tmp62_, ___lambda221__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_temp_row);
	self->priv->gpu_temp_row = _tmp63_;
	_tmp64_ = proton_plus_utils_mango_hud_manager_get_gpu_mem_temp (config);
	_tmp65_ = _tmp64_;
	_tmp66_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Memory"), _tmp65_, ___lambda222__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_mem_temp_row);
	self->priv->gpu_mem_temp_row = _tmp66_;
	_tmp67_ = proton_plus_utils_mango_hud_manager_get_gpu_junction_temp (config);
	_tmp68_ = _tmp67_;
	_tmp69_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Junction"), _tmp68_, ___lambda223__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_junction_temp_row);
	self->priv->gpu_junction_temp_row = _tmp69_;
	_tmp70_ = proton_plus_utils_mango_hud_manager_get_gpu_fan (config);
	_tmp71_ = _tmp70_;
	_tmp72_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Fans"), _tmp71_, ___lambda224__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_fan_row);
	self->priv->gpu_fan_row = _tmp72_;
	_tmp73_ = self->priv->gpu_temp_row;
	_tmp74_ = _g_object_ref0 ((GtkWidget*) _tmp73_);
	_tmp75_ = self->priv->gpu_mem_temp_row;
	_tmp76_ = _g_object_ref0 ((GtkWidget*) _tmp75_);
	_tmp77_ = self->priv->gpu_junction_temp_row;
	_tmp78_ = _g_object_ref0 ((GtkWidget*) _tmp77_);
	_tmp79_ = self->priv->gpu_fan_row;
	_tmp80_ = _g_object_ref0 ((GtkWidget*) _tmp79_);
	_tmp81_ = g_new0 (GtkWidget*, 4 + 1);
	_tmp81_[0] = _tmp74_;
	_tmp81_[1] = _tmp76_;
	_tmp81_[2] = _tmp78_;
	_tmp81_[3] = _tmp80_;
	_tmp82_ = _tmp81_;
	_tmp82__length1 = 4;
	_tmp83_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, gpu_metrics_box, _ ("Temperature"), _tmp82_, (gint) 4, "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_gpu_power (config);
	_tmp86_ = _tmp85_;
	_tmp87_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Power"), _tmp86_, ___lambda225__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_power_row);
	self->priv->gpu_power_row = _tmp87_;
	_tmp88_ = proton_plus_utils_mango_hud_manager_get_gpu_voltage (config);
	_tmp89_ = _tmp88_;
	_tmp90_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Voltage"), _tmp89_, ___lambda226__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_voltage_row);
	self->priv->gpu_voltage_row = _tmp90_;
	_tmp91_ = proton_plus_utils_mango_hud_manager_get_throttling_status (config);
	_tmp92_ = _tmp91_;
	_tmp93_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Throttling"), _tmp92_, ___lambda227__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->throttling_status_row);
	self->priv->throttling_status_row = _tmp93_;
	_tmp94_ = proton_plus_utils_mango_hud_manager_get_throttling_graph (config);
	_tmp95_ = _tmp94_;
	_tmp96_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Throttling Graph"), _tmp95_, ___lambda228__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->throttling_graph_row);
	self->priv->throttling_graph_row = _tmp96_;
	_tmp97_ = proton_plus_utils_mango_hud_manager_get_gpu_efficiency (config);
	_tmp98_ = _tmp97_;
	_tmp99_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Efficiency"), _tmp98_, ___lambda229__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_efficiency_row);
	self->priv->gpu_efficiency_row = _tmp99_;
	_tmp100_ = proton_plus_utils_mango_hud_manager_get_gpu_power_limit (config);
	_tmp101_ = _tmp100_;
	_tmp102_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Power Limit"), _tmp101_, ___lambda230__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_power_limit_row);
	self->priv->gpu_power_limit_row = _tmp102_;
	_tmp103_ = self->priv->gpu_power_row;
	_tmp104_ = _g_object_ref0 ((GtkWidget*) _tmp103_);
	_tmp105_ = self->priv->gpu_voltage_row;
	_tmp106_ = _g_object_ref0 ((GtkWidget*) _tmp105_);
	_tmp107_ = self->priv->throttling_status_row;
	_tmp108_ = _g_object_ref0 ((GtkWidget*) _tmp107_);
	_tmp109_ = self->priv->throttling_graph_row;
	_tmp110_ = _g_object_ref0 ((GtkWidget*) _tmp109_);
	_tmp111_ = self->priv->gpu_efficiency_row;
	_tmp112_ = _g_object_ref0 ((GtkWidget*) _tmp111_);
	_tmp113_ = self->priv->gpu_power_limit_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, gpu_metrics_box, _ ("Power"), _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_gpu_name (config);
	_tmp120_ = _tmp119_;
	_tmp121_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Model"), _tmp120_, ___lambda231__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_name_row);
	self->priv->gpu_name_row = _tmp121_;
	_tmp122_ = proton_plus_utils_mango_hud_manager_get_vulkan_driver (config);
	_tmp123_ = _tmp122_;
	_tmp124_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Vulkan Driver"), _tmp123_, ___lambda232__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->vulkan_driver_row);
	self->priv->vulkan_driver_row = _tmp124_;
	_tmp125_ = proton_plus_utils_mango_hud_manager_get_procs (config);
	_tmp126_ = _tmp125_;
	_tmp127_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Process"), _tmp126_, ___lambda233__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->gpu_procs_row);
	self->priv->gpu_procs_row = _tmp127_;
	_tmp128_ = self->priv->gpu_name_row;
	_tmp129_ = _g_object_ref0 ((GtkWidget*) _tmp128_);
	_tmp130_ = self->priv->vulkan_driver_row;
	_tmp131_ = _g_object_ref0 ((GtkWidget*) _tmp130_);
	_tmp132_ = self->priv->gpu_procs_row;
	_tmp133_ = _g_object_ref0 ((GtkWidget*) _tmp132_);
	_tmp134_ = g_new0 (GtkWidget*, 3 + 1);
	_tmp134_[0] = _tmp129_;
	_tmp134_[1] = _tmp131_;
	_tmp134_[2] = _tmp133_;
	_tmp135_ = _tmp134_;
	_tmp135__length1 = 3;
	_tmp136_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, gpu_metrics_box, _ ("Information"), _tmp135_, (gint) 3, "caption");
	_tmp137_ = _tmp136_;
	_g_object_unref0 (_tmp137_);
	_tmp135_ = (_vala_array_free (_tmp135_, _tmp135__length1, (GDestroyNotify) g_object_unref), NULL);
	gtk_box_append ((GtkBox*) self, (GtkWidget*) gpu_metrics_box);
	_tmp138_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
	g_object_ref_sink (_tmp138_);
	cpu_metrics_box = _tmp138_;
	_tmp139_ = (GtkLabel*) gtk_label_new (_ ("CPU"));
	gtk_widget_set_halign ((GtkWidget*) _tmp139_, GTK_ALIGN_START);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp139_, 12);
	g_object_ref_sink (_tmp139_);
	cpu_label = _tmp139_;
	gtk_widget_add_css_class ((GtkWidget*) cpu_label, "heading");
	gtk_box_append (cpu_metrics_box, (GtkWidget*) cpu_label);
	_tmp140_ = proton_plus_utils_mango_hud_manager_get_cpu_color (config);
	_tmp141_ = _tmp140_;
	_tmp142_ = proton_plus_widgets_mango_hud_page_create_color_button ((ProtonPlusWidgetsMangoHudPage*) self, color_dialog, _tmp141_, ___lambda234__proton_plus_widgets_mango_hud_page_set_value_func_str, self);
	_g_object_unref0 (self->priv->cpu_color_btn);
	self->priv->cpu_color_btn = _tmp142_;
	_tmp143_ = proton_plus_utils_mango_hud_manager_get_cpu_text (config);
	_tmp144_ = _tmp143_;
	_tmp145_ = proton_plus_widgets_mango_hud_page_create_entry ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Custom CPU name"), _tmp144_, ___lambda235__proton_plus_widgets_mango_hud_page_set_value_func_str, self, PROTON_PLUS_UTILS_TEXT_INPUT_FIELD_KIND_FREE_FORM);
	_g_object_unref0 (self->priv->cpu_custom_name_row);
	self->priv->cpu_custom_name_row = _tmp145_;
	_tmp146_ = self->priv->cpu_custom_name_row;
	_tmp147_ = self->priv->cpu_color_btn;
	adw_entry_row_add_suffix (_tmp146_, (GtkWidget*) _tmp147_);
	_tmp148_ = self->priv->cpu_custom_name_row;
	_tmp149_ = _g_object_ref0 ((GtkWidget*) _tmp148_);
	_tmp150_ = g_new0 (GtkWidget*, 1 + 1);
	_tmp150_[0] = _tmp149_;
	_tmp151_ = _tmp150_;
	_tmp151__length1 = 1;
	_tmp152_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, cpu_metrics_box, NULL, _tmp151_, (gint) 1, "caption");
	_tmp153_ = _tmp152_;
	_g_object_unref0 (_tmp153_);
	_tmp151_ = (_vala_array_free (_tmp151_, _tmp151__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp154_ = proton_plus_utils_mango_hud_manager_get_cpu_stats (config);
	_tmp155_ = _tmp154_;
	_tmp156_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Load"), _tmp155_, ___lambda236__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->cpu_stats_row);
	self->priv->cpu_stats_row = _tmp156_;
	_tmp157_ = proton_plus_utils_mango_hud_manager_get_cpu_load_color (config);
	_tmp158_ = _tmp157_;
	_tmp159_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Load Color"), _tmp158_, ___lambda237__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->cpu_load_color_row);
	self->priv->cpu_load_color_row = _tmp159_;
	_tmp160_ = _g_object_ref0 (color_dialog);
	_tmp161_ = (GtkColorDialogButton*) gtk_color_dialog_button_new (_tmp160_);
	gtk_widget_set_valign ((GtkWidget*) _tmp161_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp161_);
	_g_object_unref0 (self->priv->cpu_load_color_1_btn);
	self->priv->cpu_load_color_1_btn = _tmp161_;
	_tmp162_ = _g_object_ref0 (color_dialog);
	_tmp163_ = (GtkColorDialogButton*) gtk_color_dialog_button_new (_tmp162_);
	gtk_widget_set_valign ((GtkWidget*) _tmp163_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp163_);
	_g_object_unref0 (self->priv->cpu_load_color_2_btn);
	self->priv->cpu_load_color_2_btn = _tmp163_;
	_tmp164_ = _g_object_ref0 (color_dialog);
	_tmp165_ = (GtkColorDialogButton*) gtk_color_dialog_button_new (_tmp164_);
	gtk_widget_set_valign ((GtkWidget*) _tmp165_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp165_);
	_g_object_unref0 (self->priv->cpu_load_color_3_btn);
	self->priv->cpu_load_color_3_btn = _tmp165_;
	_tmp166_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
	g_object_ref_sink (_tmp166_);
	cpu_load_color_box = _tmp166_;
	_tmp167_ = self->priv->cpu_load_color_1_btn;
	gtk_box_append (cpu_load_color_box, (GtkWidget*) _tmp167_);
	_tmp168_ = self->priv->cpu_load_color_2_btn;
	gtk_box_append (cpu_load_color_box, (GtkWidget*) _tmp168_);
	_tmp169_ = self->priv->cpu_load_color_3_btn;
	gtk_box_append (cpu_load_color_box, (GtkWidget*) _tmp169_);
	_tmp170_ = self->priv->cpu_load_color_row;
	adw_action_row_add_suffix ((AdwActionRow*) _tmp170_, (GtkWidget*) cpu_load_color_box);
	_tmp171_ = self->priv->cpu_load_color_row;
	g_object_bind_property_with_closures ((GObject*) _tmp171_, "active", (GObject*) cpu_load_color_box, "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)));
	proton_plus_widgets_mango_hud_metrics_page_refresh_cpu_load_color_btns (self);
	_tmp172_ = self->priv->cpu_load_color_1_btn;
	g_signal_connect_object ((GObject*) _tmp172_, "notify::rgba", (GCallback) _proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors_g_object_notify, self, 0);
	_tmp173_ = self->priv->cpu_load_color_2_btn;
	g_signal_connect_object ((GObject*) _tmp173_, "notify::rgba", (GCallback) _proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors_g_object_notify, self, 0);
	_tmp174_ = self->priv->cpu_load_color_3_btn;
	g_signal_connect_object ((GObject*) _tmp174_, "notify::rgba", (GCallback) _proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors_g_object_notify, self, 0);
	_tmp175_ = proton_plus_utils_mango_hud_manager_get_core_load (config);
	_tmp176_ = _tmp175_;
	_tmp177_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Core Load"), _tmp176_, ___lambda238__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->core_load_row);
	self->priv->core_load_row = _tmp177_;
	_tmp178_ = proton_plus_utils_mango_hud_manager_get_cpu_mhz (config);
	_tmp179_ = _tmp178_;
	_tmp180_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("CPU Freq"), _tmp179_, ___lambda239__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->cpu_mhz_row);
	self->priv->cpu_mhz_row = _tmp180_;
	_tmp181_ = proton_plus_utils_mango_hud_manager_get_core_pipeline (config);
	_tmp182_ = _tmp181_;
	_tmp183_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Core Type"), _tmp182_, ___lambda240__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->core_pipeline_row);
	self->priv->core_pipeline_row = _tmp183_;
	_tmp184_ = self->priv->cpu_stats_row;
	_tmp185_ = _g_object_ref0 ((GtkWidget*) _tmp184_);
	_tmp186_ = self->priv->cpu_load_color_row;
	_tmp187_ = _g_object_ref0 ((GtkWidget*) _tmp186_);
	_tmp188_ = self->priv->core_load_row;
	_tmp189_ = _g_object_ref0 ((GtkWidget*) _tmp188_);
	_tmp190_ = self->priv->cpu_mhz_row;
	_tmp191_ = _g_object_ref0 ((GtkWidget*) _tmp190_);
	_tmp192_ = self->priv->core_pipeline_row;
	_tmp193_ = _g_object_ref0 ((GtkWidget*) _tmp192_);
	_tmp194_ = g_new0 (GtkWidget*, 5 + 1);
	_tmp194_[0] = _tmp185_;
	_tmp194_[1] = _tmp187_;
	_tmp194_[2] = _tmp189_;
	_tmp194_[3] = _tmp191_;
	_tmp194_[4] = _tmp193_;
	_tmp195_ = _tmp194_;
	_tmp195__length1 = 5;
	_tmp196_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, cpu_metrics_box, _ ("Main metrics"), _tmp195_, (gint) 5, "caption");
	_tmp197_ = _tmp196_;
	_g_object_unref0 (_tmp197_);
	_tmp195_ = (_vala_array_free (_tmp195_, _tmp195__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp198_ = proton_plus_utils_mango_hud_manager_get_cpu_temp (config);
	_tmp199_ = _tmp198_;
	_tmp200_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("CPU Temperature"), _tmp199_, ___lambda241__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->cpu_temp_row);
	self->priv->cpu_temp_row = _tmp200_;
	_tmp201_ = proton_plus_utils_mango_hud_manager_get_cpu_power (config);
	_tmp202_ = _tmp201_;
	_tmp203_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("CPU Power"), _tmp202_, ___lambda242__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->cpu_power_row);
	self->priv->cpu_power_row = _tmp203_;
	_tmp204_ = proton_plus_utils_mango_hud_manager_get_cpu_efficiency (config);
	_tmp205_ = _tmp204_;
	_tmp206_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Efficiency"), _tmp205_, ___lambda243__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->cpu_efficiency_row);
	self->priv->cpu_efficiency_row = _tmp206_;
	_tmp207_ = proton_plus_utils_mango_hud_manager_get_ram_temp (config);
	_tmp208_ = _tmp207_;
	_tmp209_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("RAM Temperature"), _tmp208_, ___lambda244__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->ram_temp_row);
	self->priv->ram_temp_row = _tmp209_;
	_tmp210_ = self->priv->cpu_temp_row;
	_tmp211_ = _g_object_ref0 ((GtkWidget*) _tmp210_);
	_tmp212_ = self->priv->cpu_power_row;
	_tmp213_ = _g_object_ref0 ((GtkWidget*) _tmp212_);
	_tmp214_ = self->priv->cpu_efficiency_row;
	_tmp215_ = _g_object_ref0 ((GtkWidget*) _tmp214_);
	_tmp216_ = self->priv->ram_temp_row;
	_tmp217_ = _g_object_ref0 ((GtkWidget*) _tmp216_);
	_tmp218_ = g_new0 (GtkWidget*, 4 + 1);
	_tmp218_[0] = _tmp211_;
	_tmp218_[1] = _tmp213_;
	_tmp218_[2] = _tmp215_;
	_tmp218_[3] = _tmp217_;
	_tmp219_ = _tmp218_;
	_tmp219__length1 = 4;
	_tmp220_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, cpu_metrics_box, _ ("Temperature / Power"), _tmp219_, (gint) 4, "caption");
	_tmp221_ = _tmp220_;
	_g_object_unref0 (_tmp221_);
	_tmp219_ = (_vala_array_free (_tmp219_, _tmp219__length1, (GDestroyNotify) g_object_unref), NULL);
	_tmp222_ = proton_plus_utils_mango_hud_manager_get_ram (config);
	_tmp223_ = _tmp222_;
	_tmp224_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("RAM"), _tmp223_, ___lambda245__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->ram_row);
	self->priv->ram_row = _tmp224_;
	_tmp225_ = proton_plus_utils_mango_hud_manager_get_disks (config);
	_tmp226_ = _tmp225_;
	_tmp227_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("DISK IO"), _tmp226_, ___lambda246__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->disks_row);
	self->priv->disks_row = _tmp227_;
	_tmp228_ = proton_plus_utils_mango_hud_manager_get_procs (config);
	_tmp229_ = _tmp228_;
	_tmp230_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Process"), _tmp229_, ___lambda247__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->cpu_procs_row);
	self->priv->cpu_procs_row = _tmp230_;
	_tmp231_ = proton_plus_utils_mango_hud_manager_get_swap (config);
	_tmp232_ = _tmp231_;
	_tmp233_ = proton_plus_widgets_mango_hud_page_create_switch ((ProtonPlusWidgetsMangoHudPage*) self, _ ("Swap"), _tmp232_, ___lambda248__proton_plus_widgets_mango_hud_page_set_value_func, self, NULL);
	_g_object_unref0 (self->priv->swap_row);
	self->priv->swap_row = _tmp233_;
	_tmp234_ = self->priv->ram_row;
	_tmp235_ = _g_object_ref0 ((GtkWidget*) _tmp234_);
	_tmp236_ = self->priv->disks_row;
	_tmp237_ = _g_object_ref0 ((GtkWidget*) _tmp236_);
	_tmp238_ = self->priv->cpu_procs_row;
	_tmp239_ = _g_object_ref0 ((GtkWidget*) _tmp238_);
	_tmp240_ = self->priv->swap_row;
	_tmp241_ = _g_object_ref0 ((GtkWidget*) _tmp240_);
	_tmp242_ = g_new0 (GtkWidget*, 4 + 1);
	_tmp242_[0] = _tmp235_;
	_tmp242_[1] = _tmp237_;
	_tmp242_[2] = _tmp239_;
	_tmp242_[3] = _tmp241_;
	_tmp243_ = _tmp242_;
	_tmp243__length1 = 4;
	_tmp244_ = proton_plus_widgets_mango_hud_page_add_flow_group ((ProtonPlusWidgetsMangoHudPage*) self, cpu_metrics_box, _ ("Memory / IO"), _tmp243_, (gint) 4, "caption");
	_tmp245_ = _tmp244_;
	_g_object_unref0 (_tmp245_);
	_tmp243_ = (_vala_array_free (_tmp243_, _tmp243__length1, (GDestroyNotify) g_object_unref), NULL);
	gtk_box_append ((GtkBox*) self, (GtkWidget*) cpu_metrics_box);
	_g_object_unref0 (cpu_load_color_box);
	_g_object_unref0 (cpu_label);
	_g_object_unref0 (cpu_metrics_box);
	_g_object_unref0 (gpu_load_color_box);
	_g_object_unref0 (color_dialog);
	_g_object_unref0 (gpu_label);
	_g_object_unref0 (gpu_metrics_box);
	return self;
}

ProtonPlusWidgetsMangoHudMetricsPage*
proton_plus_widgets_mango_hud_metrics_page_new (ProtonPlusUtilsMangoHudManager* config)
{
	return proton_plus_widgets_mango_hud_metrics_page_construct (PROTON_PLUS_WIDGETS_MANGO_HUD_TYPE_METRICS_PAGE, config);
}

static void
proton_plus_widgets_mango_hud_metrics_page_update_gpu_load_colors (ProtonPlusWidgetsMangoHudMetricsPage* self)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	GdkRGBA c1 = {0};
	GdkRGBA c2 = {0};
	GdkRGBA c3 = {0};
	GtkColorDialogButton* _tmp2_;
	GdkRGBA _tmp3_ = {0};
	GtkColorDialogButton* _tmp4_;
	GdkRGBA _tmp5_ = {0};
	GtkColorDialogButton* _tmp6_;
	GdkRGBA _tmp7_ = {0};
	ProtonPlusUtilsMangoHudManager* _tmp8_;
	ProtonPlusUtilsMangoHudManager* _tmp9_;
	GdkRGBA _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	GdkRGBA _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	GdkRGBA _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	g_return_if_fail (self != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_is_updating ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	if (_tmp1_) {
		return;
	}
	_tmp2_ = self->priv->gpu_load_color_1_btn;
	g_object_get ((GObject*) _tmp2_, "rgba", &_tmp3_, NULL);
	c1 = _tmp3_;
	_tmp4_ = self->priv->gpu_load_color_2_btn;
	g_object_get ((GObject*) _tmp4_, "rgba", &_tmp5_, NULL);
	c2 = _tmp5_;
	_tmp6_ = self->priv->gpu_load_color_3_btn;
	g_object_get ((GObject*) _tmp6_, "rgba", &_tmp7_, NULL);
	c3 = _tmp7_;
	_tmp8_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp9_ = _tmp8_;
	_tmp10_ = c1;
	_tmp11_ = proton_plus_widgets_mango_hud_page_rgba_to_hex ((ProtonPlusWidgetsMangoHudPage*) self, &_tmp10_);
	_tmp12_ = _tmp11_;
	_tmp13_ = c2;
	_tmp14_ = proton_plus_widgets_mango_hud_page_rgba_to_hex ((ProtonPlusWidgetsMangoHudPage*) self, &_tmp13_);
	_tmp15_ = _tmp14_;
	_tmp16_ = c3;
	_tmp17_ = proton_plus_widgets_mango_hud_page_rgba_to_hex ((ProtonPlusWidgetsMangoHudPage*) self, &_tmp16_);
	_tmp18_ = _tmp17_;
	_tmp19_ = g_strdup_printf ("%s,%s,%s", _tmp12_, _tmp15_, _tmp18_);
	_tmp20_ = _tmp19_;
	proton_plus_utils_mango_hud_manager_set_gpu_load_colors (_tmp9_, _tmp20_);
	_g_free0 (_tmp20_);
	_g_free0 (_tmp18_);
	_g_free0 (_tmp15_);
	_g_free0 (_tmp12_);
	g_signal_emit_by_name ((ProtonPlusWidgetsMangoHudPage*) self, "changed");
}

static void
proton_plus_widgets_mango_hud_metrics_page_update_cpu_load_colors (ProtonPlusWidgetsMangoHudMetricsPage* self)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	GdkRGBA c1 = {0};
	GdkRGBA c2 = {0};
	GdkRGBA c3 = {0};
	GtkColorDialogButton* _tmp2_;
	GdkRGBA _tmp3_ = {0};
	GtkColorDialogButton* _tmp4_;
	GdkRGBA _tmp5_ = {0};
	GtkColorDialogButton* _tmp6_;
	GdkRGBA _tmp7_ = {0};
	ProtonPlusUtilsMangoHudManager* _tmp8_;
	ProtonPlusUtilsMangoHudManager* _tmp9_;
	GdkRGBA _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	GdkRGBA _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	GdkRGBA _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	g_return_if_fail (self != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_is_updating ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	if (_tmp1_) {
		return;
	}
	_tmp2_ = self->priv->cpu_load_color_1_btn;
	g_object_get ((GObject*) _tmp2_, "rgba", &_tmp3_, NULL);
	c1 = _tmp3_;
	_tmp4_ = self->priv->cpu_load_color_2_btn;
	g_object_get ((GObject*) _tmp4_, "rgba", &_tmp5_, NULL);
	c2 = _tmp5_;
	_tmp6_ = self->priv->cpu_load_color_3_btn;
	g_object_get ((GObject*) _tmp6_, "rgba", &_tmp7_, NULL);
	c3 = _tmp7_;
	_tmp8_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp9_ = _tmp8_;
	_tmp10_ = c1;
	_tmp11_ = proton_plus_widgets_mango_hud_page_rgba_to_hex ((ProtonPlusWidgetsMangoHudPage*) self, &_tmp10_);
	_tmp12_ = _tmp11_;
	_tmp13_ = c2;
	_tmp14_ = proton_plus_widgets_mango_hud_page_rgba_to_hex ((ProtonPlusWidgetsMangoHudPage*) self, &_tmp13_);
	_tmp15_ = _tmp14_;
	_tmp16_ = c3;
	_tmp17_ = proton_plus_widgets_mango_hud_page_rgba_to_hex ((ProtonPlusWidgetsMangoHudPage*) self, &_tmp16_);
	_tmp18_ = _tmp17_;
	_tmp19_ = g_strdup_printf ("%s,%s,%s", _tmp12_, _tmp15_, _tmp18_);
	_tmp20_ = _tmp19_;
	proton_plus_utils_mango_hud_manager_set_cpu_load_colors (_tmp9_, _tmp20_);
	_g_free0 (_tmp20_);
	_g_free0 (_tmp18_);
	_g_free0 (_tmp15_);
	_g_free0 (_tmp12_);
	g_signal_emit_by_name ((ProtonPlusWidgetsMangoHudPage*) self, "changed");
}

static void
proton_plus_widgets_mango_hud_metrics_page_refresh_gpu_color_btn (ProtonPlusWidgetsMangoHudMetricsPage* self)
{
	GtkColorDialogButton* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	ProtonPlusUtilsMangoHudManager* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	GdkRGBA _tmp5_ = {0};
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->gpu_color_btn;
	_tmp1_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp2_ = _tmp1_;
	_tmp3_ = proton_plus_utils_mango_hud_manager_get_gpu_color (_tmp2_);
	_tmp4_ = _tmp3_;
	proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp4_, "#ffffff", &_tmp5_);
	gtk_color_dialog_button_set_rgba (_tmp0_, &_tmp5_);
}

static void
proton_plus_widgets_mango_hud_metrics_page_refresh_cpu_color_btn (ProtonPlusWidgetsMangoHudMetricsPage* self)
{
	GtkColorDialogButton* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	ProtonPlusUtilsMangoHudManager* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	GdkRGBA _tmp5_ = {0};
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->cpu_color_btn;
	_tmp1_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp2_ = _tmp1_;
	_tmp3_ = proton_plus_utils_mango_hud_manager_get_cpu_color (_tmp2_);
	_tmp4_ = _tmp3_;
	proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp4_, "#ffffff", &_tmp5_);
	gtk_color_dialog_button_set_rgba (_tmp0_, &_tmp5_);
}

static void
proton_plus_widgets_mango_hud_metrics_page_refresh_gpu_load_color_btns (ProtonPlusWidgetsMangoHudMetricsPage* self)
{
	gchar** gpu_load_colors = NULL;
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar** _tmp4_;
	gchar** _tmp5_;
	gint gpu_load_colors_length1;
	gint _gpu_load_colors_size_;
	gchar** _tmp6_;
	gint _tmp6__length1;
	g_return_if_fail (self != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_utils_mango_hud_manager_get_gpu_load_colors (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, ",", 0);
	gpu_load_colors = _tmp5_;
	gpu_load_colors_length1 = _vala_array_length (_tmp4_);
	_gpu_load_colors_size_ = gpu_load_colors_length1;
	_tmp6_ = gpu_load_colors;
	_tmp6__length1 = gpu_load_colors_length1;
	if (_tmp6__length1 == 3) {
		GtkColorDialogButton* _tmp7_;
		gchar** _tmp8_;
		gint _tmp8__length1;
		const gchar* _tmp9_;
		GdkRGBA _tmp10_ = {0};
		GtkColorDialogButton* _tmp11_;
		gchar** _tmp12_;
		gint _tmp12__length1;
		const gchar* _tmp13_;
		GdkRGBA _tmp14_ = {0};
		GtkColorDialogButton* _tmp15_;
		gchar** _tmp16_;
		gint _tmp16__length1;
		const gchar* _tmp17_;
		GdkRGBA _tmp18_ = {0};
		_tmp7_ = self->priv->gpu_load_color_1_btn;
		_tmp8_ = gpu_load_colors;
		_tmp8__length1 = gpu_load_colors_length1;
		_tmp9_ = _tmp8_[0];
		proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp9_, "#ffffff", &_tmp10_);
		gtk_color_dialog_button_set_rgba (_tmp7_, &_tmp10_);
		_tmp11_ = self->priv->gpu_load_color_2_btn;
		_tmp12_ = gpu_load_colors;
		_tmp12__length1 = gpu_load_colors_length1;
		_tmp13_ = _tmp12_[1];
		proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp13_, "#ffffff", &_tmp14_);
		gtk_color_dialog_button_set_rgba (_tmp11_, &_tmp14_);
		_tmp15_ = self->priv->gpu_load_color_3_btn;
		_tmp16_ = gpu_load_colors;
		_tmp16__length1 = gpu_load_colors_length1;
		_tmp17_ = _tmp16_[2];
		proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp17_, "#ffffff", &_tmp18_);
		gtk_color_dialog_button_set_rgba (_tmp15_, &_tmp18_);
	}
	gpu_load_colors = (_vala_array_free (gpu_load_colors, gpu_load_colors_length1, (GDestroyNotify) g_free), NULL);
}

static void
proton_plus_widgets_mango_hud_metrics_page_refresh_cpu_load_color_btns (ProtonPlusWidgetsMangoHudMetricsPage* self)
{
	gchar** cpu_load_colors = NULL;
	ProtonPlusUtilsMangoHudManager* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar** _tmp4_;
	gchar** _tmp5_;
	gint cpu_load_colors_length1;
	gint _cpu_load_colors_size_;
	gchar** _tmp6_;
	gint _tmp6__length1;
	g_return_if_fail (self != NULL);
	_tmp0_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_utils_mango_hud_manager_get_cpu_load_colors (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, ",", 0);
	cpu_load_colors = _tmp5_;
	cpu_load_colors_length1 = _vala_array_length (_tmp4_);
	_cpu_load_colors_size_ = cpu_load_colors_length1;
	_tmp6_ = cpu_load_colors;
	_tmp6__length1 = cpu_load_colors_length1;
	if (_tmp6__length1 == 3) {
		GtkColorDialogButton* _tmp7_;
		gchar** _tmp8_;
		gint _tmp8__length1;
		const gchar* _tmp9_;
		GdkRGBA _tmp10_ = {0};
		GtkColorDialogButton* _tmp11_;
		gchar** _tmp12_;
		gint _tmp12__length1;
		const gchar* _tmp13_;
		GdkRGBA _tmp14_ = {0};
		GtkColorDialogButton* _tmp15_;
		gchar** _tmp16_;
		gint _tmp16__length1;
		const gchar* _tmp17_;
		GdkRGBA _tmp18_ = {0};
		_tmp7_ = self->priv->cpu_load_color_1_btn;
		_tmp8_ = cpu_load_colors;
		_tmp8__length1 = cpu_load_colors_length1;
		_tmp9_ = _tmp8_[0];
		proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp9_, "#ffffff", &_tmp10_);
		gtk_color_dialog_button_set_rgba (_tmp7_, &_tmp10_);
		_tmp11_ = self->priv->cpu_load_color_2_btn;
		_tmp12_ = cpu_load_colors;
		_tmp12__length1 = cpu_load_colors_length1;
		_tmp13_ = _tmp12_[1];
		proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp13_, "#ffffff", &_tmp14_);
		gtk_color_dialog_button_set_rgba (_tmp11_, &_tmp14_);
		_tmp15_ = self->priv->cpu_load_color_3_btn;
		_tmp16_ = cpu_load_colors;
		_tmp16__length1 = cpu_load_colors_length1;
		_tmp17_ = _tmp16_[2];
		proton_plus_widgets_mango_hud_page_hex_to_rgba ((ProtonPlusWidgetsMangoHudPage*) self, _tmp17_, "#ffffff", &_tmp18_);
		gtk_color_dialog_button_set_rgba (_tmp15_, &_tmp18_);
	}
	cpu_load_colors = (_vala_array_free (cpu_load_colors, cpu_load_colors_length1, (GDestroyNotify) g_free), NULL);
}

static void
proton_plus_widgets_mango_hud_metrics_page_real_refresh (ProtonPlusWidgetsMangoHudPage* base)
{
	ProtonPlusWidgetsMangoHudMetricsPage * self;
	AdwEntryRow* _tmp0_;
	ProtonPlusUtilsMangoHudManager* _tmp1_;
	ProtonPlusUtilsMangoHudManager* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _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_;
	AdwEntryRow* _tmp95_;
	ProtonPlusUtilsMangoHudManager* _tmp96_;
	ProtonPlusUtilsMangoHudManager* _tmp97_;
	const gchar* _tmp98_;
	const gchar* _tmp99_;
	AdwSwitchRow* _tmp100_;
	ProtonPlusUtilsMangoHudManager* _tmp101_;
	ProtonPlusUtilsMangoHudManager* _tmp102_;
	gboolean _tmp103_;
	gboolean _tmp104_;
	AdwSwitchRow* _tmp105_;
	ProtonPlusUtilsMangoHudManager* _tmp106_;
	ProtonPlusUtilsMangoHudManager* _tmp107_;
	gboolean _tmp108_;
	gboolean _tmp109_;
	AdwSwitchRow* _tmp110_;
	ProtonPlusUtilsMangoHudManager* _tmp111_;
	ProtonPlusUtilsMangoHudManager* _tmp112_;
	gboolean _tmp113_;
	gboolean _tmp114_;
	AdwSwitchRow* _tmp115_;
	ProtonPlusUtilsMangoHudManager* _tmp116_;
	ProtonPlusUtilsMangoHudManager* _tmp117_;
	gboolean _tmp118_;
	gboolean _tmp119_;
	AdwSwitchRow* _tmp120_;
	ProtonPlusUtilsMangoHudManager* _tmp121_;
	ProtonPlusUtilsMangoHudManager* _tmp122_;
	gboolean _tmp123_;
	gboolean _tmp124_;
	AdwSwitchRow* _tmp125_;
	ProtonPlusUtilsMangoHudManager* _tmp126_;
	ProtonPlusUtilsMangoHudManager* _tmp127_;
	gboolean _tmp128_;
	gboolean _tmp129_;
	AdwSwitchRow* _tmp130_;
	ProtonPlusUtilsMangoHudManager* _tmp131_;
	ProtonPlusUtilsMangoHudManager* _tmp132_;
	gboolean _tmp133_;
	gboolean _tmp134_;
	AdwSwitchRow* _tmp135_;
	ProtonPlusUtilsMangoHudManager* _tmp136_;
	ProtonPlusUtilsMangoHudManager* _tmp137_;
	gboolean _tmp138_;
	gboolean _tmp139_;
	AdwSwitchRow* _tmp140_;
	ProtonPlusUtilsMangoHudManager* _tmp141_;
	ProtonPlusUtilsMangoHudManager* _tmp142_;
	gboolean _tmp143_;
	gboolean _tmp144_;
	AdwSwitchRow* _tmp145_;
	ProtonPlusUtilsMangoHudManager* _tmp146_;
	ProtonPlusUtilsMangoHudManager* _tmp147_;
	gboolean _tmp148_;
	gboolean _tmp149_;
	AdwSwitchRow* _tmp150_;
	ProtonPlusUtilsMangoHudManager* _tmp151_;
	ProtonPlusUtilsMangoHudManager* _tmp152_;
	gboolean _tmp153_;
	gboolean _tmp154_;
	AdwSwitchRow* _tmp155_;
	ProtonPlusUtilsMangoHudManager* _tmp156_;
	ProtonPlusUtilsMangoHudManager* _tmp157_;
	gboolean _tmp158_;
	gboolean _tmp159_;
	AdwSwitchRow* _tmp160_;
	ProtonPlusUtilsMangoHudManager* _tmp161_;
	ProtonPlusUtilsMangoHudManager* _tmp162_;
	gboolean _tmp163_;
	gboolean _tmp164_;
	self = (ProtonPlusWidgetsMangoHudMetricsPage*) base;
	proton_plus_widgets_mango_hud_page_set_is_updating ((ProtonPlusWidgetsMangoHudPage*) self, TRUE);
	_tmp0_ = self->priv->gpu_custom_name_row;
	_tmp1_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp2_ = _tmp1_;
	_tmp3_ = proton_plus_utils_mango_hud_manager_get_gpu_text (_tmp2_);
	_tmp4_ = _tmp3_;
	gtk_editable_set_text ((GtkEditable*) _tmp0_, _tmp4_);
	proton_plus_widgets_mango_hud_metrics_page_refresh_gpu_color_btn (self);
	_tmp5_ = self->priv->gpu_stats_row;
	_tmp6_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp7_ = _tmp6_;
	_tmp8_ = proton_plus_utils_mango_hud_manager_get_gpu_stats (_tmp7_);
	_tmp9_ = _tmp8_;
	adw_switch_row_set_active (_tmp5_, _tmp9_);
	_tmp10_ = self->priv->gpu_load_color_row;
	_tmp11_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp12_ = _tmp11_;
	_tmp13_ = proton_plus_utils_mango_hud_manager_get_gpu_load_color (_tmp12_);
	_tmp14_ = _tmp13_;
	adw_switch_row_set_active (_tmp10_, _tmp14_);
	proton_plus_widgets_mango_hud_metrics_page_refresh_gpu_load_color_btns (self);
	_tmp15_ = self->priv->vram_row;
	_tmp16_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp17_ = _tmp16_;
	_tmp18_ = proton_plus_utils_mango_hud_manager_get_vram (_tmp17_);
	_tmp19_ = _tmp18_;
	adw_switch_row_set_active (_tmp15_, _tmp19_);
	_tmp20_ = self->priv->gpu_core_clock_row;
	_tmp21_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp22_ = _tmp21_;
	_tmp23_ = proton_plus_utils_mango_hud_manager_get_gpu_core_clock (_tmp22_);
	_tmp24_ = _tmp23_;
	adw_switch_row_set_active (_tmp20_, _tmp24_);
	_tmp25_ = self->priv->gpu_mem_clock_row;
	_tmp26_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp27_ = _tmp26_;
	_tmp28_ = proton_plus_utils_mango_hud_manager_get_gpu_mem_clock (_tmp27_);
	_tmp29_ = _tmp28_;
	adw_switch_row_set_active (_tmp25_, _tmp29_);
	_tmp30_ = self->priv->gpu_temp_row;
	_tmp31_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp32_ = _tmp31_;
	_tmp33_ = proton_plus_utils_mango_hud_manager_get_gpu_temp (_tmp32_);
	_tmp34_ = _tmp33_;
	adw_switch_row_set_active (_tmp30_, _tmp34_);
	_tmp35_ = self->priv->gpu_mem_temp_row;
	_tmp36_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp37_ = _tmp36_;
	_tmp38_ = proton_plus_utils_mango_hud_manager_get_gpu_mem_temp (_tmp37_);
	_tmp39_ = _tmp38_;
	adw_switch_row_set_active (_tmp35_, _tmp39_);
	_tmp40_ = self->priv->gpu_junction_temp_row;
	_tmp41_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp42_ = _tmp41_;
	_tmp43_ = proton_plus_utils_mango_hud_manager_get_gpu_junction_temp (_tmp42_);
	_tmp44_ = _tmp43_;
	adw_switch_row_set_active (_tmp40_, _tmp44_);
	_tmp45_ = self->priv->gpu_fan_row;
	_tmp46_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp47_ = _tmp46_;
	_tmp48_ = proton_plus_utils_mango_hud_manager_get_gpu_fan (_tmp47_);
	_tmp49_ = _tmp48_;
	adw_switch_row_set_active (_tmp45_, _tmp49_);
	_tmp50_ = self->priv->gpu_power_row;
	_tmp51_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp52_ = _tmp51_;
	_tmp53_ = proton_plus_utils_mango_hud_manager_get_gpu_power (_tmp52_);
	_tmp54_ = _tmp53_;
	adw_switch_row_set_active (_tmp50_, _tmp54_);
	_tmp55_ = self->priv->gpu_voltage_row;
	_tmp56_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp57_ = _tmp56_;
	_tmp58_ = proton_plus_utils_mango_hud_manager_get_gpu_voltage (_tmp57_);
	_tmp59_ = _tmp58_;
	adw_switch_row_set_active (_tmp55_, _tmp59_);
	_tmp60_ = self->priv->throttling_status_row;
	_tmp61_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp62_ = _tmp61_;
	_tmp63_ = proton_plus_utils_mango_hud_manager_get_throttling_status (_tmp62_);
	_tmp64_ = _tmp63_;
	adw_switch_row_set_active (_tmp60_, _tmp64_);
	_tmp65_ = self->priv->throttling_graph_row;
	_tmp66_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp67_ = _tmp66_;
	_tmp68_ = proton_plus_utils_mango_hud_manager_get_throttling_graph (_tmp67_);
	_tmp69_ = _tmp68_;
	adw_switch_row_set_active (_tmp65_, _tmp69_);
	_tmp70_ = self->priv->gpu_efficiency_row;
	_tmp71_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp72_ = _tmp71_;
	_tmp73_ = proton_plus_utils_mango_hud_manager_get_gpu_efficiency (_tmp72_);
	_tmp74_ = _tmp73_;
	adw_switch_row_set_active (_tmp70_, _tmp74_);
	_tmp75_ = self->priv->gpu_power_limit_row;
	_tmp76_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp77_ = _tmp76_;
	_tmp78_ = proton_plus_utils_mango_hud_manager_get_gpu_power_limit (_tmp77_);
	_tmp79_ = _tmp78_;
	adw_switch_row_set_active (_tmp75_, _tmp79_);
	_tmp80_ = self->priv->gpu_name_row;
	_tmp81_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp82_ = _tmp81_;
	_tmp83_ = proton_plus_utils_mango_hud_manager_get_gpu_name (_tmp82_);
	_tmp84_ = _tmp83_;
	adw_switch_row_set_active (_tmp80_, _tmp84_);
	_tmp85_ = self->priv->vulkan_driver_row;
	_tmp86_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp87_ = _tmp86_;
	_tmp88_ = proton_plus_utils_mango_hud_manager_get_vulkan_driver (_tmp87_);
	_tmp89_ = _tmp88_;
	adw_switch_row_set_active (_tmp85_, _tmp89_);
	_tmp90_ = self->priv->gpu_procs_row;
	_tmp91_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp92_ = _tmp91_;
	_tmp93_ = proton_plus_utils_mango_hud_manager_get_procs (_tmp92_);
	_tmp94_ = _tmp93_;
	adw_switch_row_set_active (_tmp90_, _tmp94_);
	_tmp95_ = self->priv->cpu_custom_name_row;
	_tmp96_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp97_ = _tmp96_;
	_tmp98_ = proton_plus_utils_mango_hud_manager_get_cpu_text (_tmp97_);
	_tmp99_ = _tmp98_;
	gtk_editable_set_text ((GtkEditable*) _tmp95_, _tmp99_);
	proton_plus_widgets_mango_hud_metrics_page_refresh_cpu_color_btn (self);
	_tmp100_ = self->priv->cpu_stats_row;
	_tmp101_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp102_ = _tmp101_;
	_tmp103_ = proton_plus_utils_mango_hud_manager_get_cpu_stats (_tmp102_);
	_tmp104_ = _tmp103_;
	adw_switch_row_set_active (_tmp100_, _tmp104_);
	_tmp105_ = self->priv->cpu_load_color_row;
	_tmp106_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp107_ = _tmp106_;
	_tmp108_ = proton_plus_utils_mango_hud_manager_get_cpu_load_color (_tmp107_);
	_tmp109_ = _tmp108_;
	adw_switch_row_set_active (_tmp105_, _tmp109_);
	proton_plus_widgets_mango_hud_metrics_page_refresh_cpu_load_color_btns (self);
	_tmp110_ = self->priv->core_load_row;
	_tmp111_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp112_ = _tmp111_;
	_tmp113_ = proton_plus_utils_mango_hud_manager_get_core_load (_tmp112_);
	_tmp114_ = _tmp113_;
	adw_switch_row_set_active (_tmp110_, _tmp114_);
	_tmp115_ = self->priv->cpu_mhz_row;
	_tmp116_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp117_ = _tmp116_;
	_tmp118_ = proton_plus_utils_mango_hud_manager_get_cpu_mhz (_tmp117_);
	_tmp119_ = _tmp118_;
	adw_switch_row_set_active (_tmp115_, _tmp119_);
	_tmp120_ = self->priv->core_pipeline_row;
	_tmp121_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp122_ = _tmp121_;
	_tmp123_ = proton_plus_utils_mango_hud_manager_get_core_pipeline (_tmp122_);
	_tmp124_ = _tmp123_;
	adw_switch_row_set_active (_tmp120_, _tmp124_);
	_tmp125_ = self->priv->cpu_temp_row;
	_tmp126_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp127_ = _tmp126_;
	_tmp128_ = proton_plus_utils_mango_hud_manager_get_cpu_temp (_tmp127_);
	_tmp129_ = _tmp128_;
	adw_switch_row_set_active (_tmp125_, _tmp129_);
	_tmp130_ = self->priv->cpu_power_row;
	_tmp131_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp132_ = _tmp131_;
	_tmp133_ = proton_plus_utils_mango_hud_manager_get_cpu_power (_tmp132_);
	_tmp134_ = _tmp133_;
	adw_switch_row_set_active (_tmp130_, _tmp134_);
	_tmp135_ = self->priv->cpu_efficiency_row;
	_tmp136_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp137_ = _tmp136_;
	_tmp138_ = proton_plus_utils_mango_hud_manager_get_cpu_efficiency (_tmp137_);
	_tmp139_ = _tmp138_;
	adw_switch_row_set_active (_tmp135_, _tmp139_);
	_tmp140_ = self->priv->ram_temp_row;
	_tmp141_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp142_ = _tmp141_;
	_tmp143_ = proton_plus_utils_mango_hud_manager_get_ram_temp (_tmp142_);
	_tmp144_ = _tmp143_;
	adw_switch_row_set_active (_tmp140_, _tmp144_);
	_tmp145_ = self->priv->ram_row;
	_tmp146_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp147_ = _tmp146_;
	_tmp148_ = proton_plus_utils_mango_hud_manager_get_ram (_tmp147_);
	_tmp149_ = _tmp148_;
	adw_switch_row_set_active (_tmp145_, _tmp149_);
	_tmp150_ = self->priv->disks_row;
	_tmp151_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp152_ = _tmp151_;
	_tmp153_ = proton_plus_utils_mango_hud_manager_get_disks (_tmp152_);
	_tmp154_ = _tmp153_;
	adw_switch_row_set_active (_tmp150_, _tmp154_);
	_tmp155_ = self->priv->cpu_procs_row;
	_tmp156_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp157_ = _tmp156_;
	_tmp158_ = proton_plus_utils_mango_hud_manager_get_procs (_tmp157_);
	_tmp159_ = _tmp158_;
	adw_switch_row_set_active (_tmp155_, _tmp159_);
	_tmp160_ = self->priv->swap_row;
	_tmp161_ = proton_plus_widgets_mango_hud_page_get_config ((ProtonPlusWidgetsMangoHudPage*) self);
	_tmp162_ = _tmp161_;
	_tmp163_ = proton_plus_utils_mango_hud_manager_get_swap (_tmp162_);
	_tmp164_ = _tmp163_;
	adw_switch_row_set_active (_tmp160_, _tmp164_);
	proton_plus_widgets_mango_hud_page_set_is_updating ((ProtonPlusWidgetsMangoHudPage*) self, FALSE);
}

static void
proton_plus_widgets_mango_hud_metrics_page_class_init (ProtonPlusWidgetsMangoHudMetricsPageClass * klass,
                                                       gpointer klass_data)
{
	proton_plus_widgets_mango_hud_metrics_page_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsMangoHudMetricsPage_private_offset);
	((ProtonPlusWidgetsMangoHudPageClass *) klass)->refresh = (void (*) (ProtonPlusWidgetsMangoHudPage*)) proton_plus_widgets_mango_hud_metrics_page_real_refresh;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_mango_hud_metrics_page_finalize;
}

static void
proton_plus_widgets_mango_hud_metrics_page_instance_init (ProtonPlusWidgetsMangoHudMetricsPage * self,
                                                          gpointer klass)
{
	self->priv = proton_plus_widgets_mango_hud_metrics_page_get_instance_private (self);
}

static void
proton_plus_widgets_mango_hud_metrics_page_finalize (GObject * obj)
{
	ProtonPlusWidgetsMangoHudMetricsPage * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_MANGO_HUD_TYPE_METRICS_PAGE, ProtonPlusWidgetsMangoHudMetricsPage);
	_g_object_unref0 (self->priv->gpu_custom_name_row);
	_g_object_unref0 (self->priv->gpu_color_btn);
	_g_object_unref0 (self->priv->gpu_stats_row);
	_g_object_unref0 (self->priv->gpu_load_color_row);
	_g_object_unref0 (self->priv->gpu_load_color_1_btn);
	_g_object_unref0 (self->priv->gpu_load_color_2_btn);
	_g_object_unref0 (self->priv->gpu_load_color_3_btn);
	_g_object_unref0 (self->priv->vram_row);
	_g_object_unref0 (self->priv->gpu_core_clock_row);
	_g_object_unref0 (self->priv->gpu_mem_clock_row);
	_g_object_unref0 (self->priv->gpu_temp_row);
	_g_object_unref0 (self->priv->gpu_mem_temp_row);
	_g_object_unref0 (self->priv->gpu_junction_temp_row);
	_g_object_unref0 (self->priv->gpu_fan_row);
	_g_object_unref0 (self->priv->gpu_power_row);
	_g_object_unref0 (self->priv->gpu_voltage_row);
	_g_object_unref0 (self->priv->throttling_status_row);
	_g_object_unref0 (self->priv->throttling_graph_row);
	_g_object_unref0 (self->priv->gpu_efficiency_row);
	_g_object_unref0 (self->priv->gpu_power_limit_row);
	_g_object_unref0 (self->priv->gpu_name_row);
	_g_object_unref0 (self->priv->vulkan_driver_row);
	_g_object_unref0 (self->priv->gpu_procs_row);
	_g_object_unref0 (self->priv->cpu_custom_name_row);
	_g_object_unref0 (self->priv->cpu_color_btn);
	_g_object_unref0 (self->priv->cpu_stats_row);
	_g_object_unref0 (self->priv->cpu_load_color_row);
	_g_object_unref0 (self->priv->cpu_load_color_1_btn);
	_g_object_unref0 (self->priv->cpu_load_color_2_btn);
	_g_object_unref0 (self->priv->cpu_load_color_3_btn);
	_g_object_unref0 (self->priv->core_load_row);
	_g_object_unref0 (self->priv->cpu_mhz_row);
	_g_object_unref0 (self->priv->core_pipeline_row);
	_g_object_unref0 (self->priv->cpu_temp_row);
	_g_object_unref0 (self->priv->cpu_power_row);
	_g_object_unref0 (self->priv->cpu_efficiency_row);
	_g_object_unref0 (self->priv->ram_temp_row);
	_g_object_unref0 (self->priv->ram_row);
	_g_object_unref0 (self->priv->disks_row);
	_g_object_unref0 (self->priv->cpu_procs_row);
	_g_object_unref0 (self->priv->swap_row);
	G_OBJECT_CLASS (proton_plus_widgets_mango_hud_metrics_page_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_mango_hud_metrics_page_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsMangoHudMetricsPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_mango_hud_metrics_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsMangoHudMetricsPage), 0, (GInstanceInitFunc) proton_plus_widgets_mango_hud_metrics_page_instance_init, NULL };
	GType proton_plus_widgets_mango_hud_metrics_page_type_id;
	proton_plus_widgets_mango_hud_metrics_page_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_MANGO_HUD_TYPE_PAGE, "ProtonPlusWidgetsMangoHudMetricsPage", &g_define_type_info, 0);
	ProtonPlusWidgetsMangoHudMetricsPage_private_offset = g_type_add_instance_private (proton_plus_widgets_mango_hud_metrics_page_type_id, sizeof (ProtonPlusWidgetsMangoHudMetricsPagePrivate));
	return proton_plus_widgets_mango_hud_metrics_page_type_id;
}

GType
proton_plus_widgets_mango_hud_metrics_page_get_type (void)
{
	static volatile gsize proton_plus_widgets_mango_hud_metrics_page_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_mango_hud_metrics_page_type_id__once)) {
		GType proton_plus_widgets_mango_hud_metrics_page_type_id;
		proton_plus_widgets_mango_hud_metrics_page_type_id = proton_plus_widgets_mango_hud_metrics_page_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_mango_hud_metrics_page_type_id__once, proton_plus_widgets_mango_hud_metrics_page_type_id);
	}
	return proton_plus_widgets_mango_hud_metrics_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 gssize
_vala_array_length (gpointer array)
{
	gssize length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}

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

