/* preferences-steam-shortcut-row.c generated by valac 0.56.19, the Vala compiler
 * generated from preferences-steam-shortcut-row.vala, do not modify */

#include "protonplus_core.h"
#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <adwaita.h>
#include <gio/gio.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_PREFERENCES_STEAM_SHORTCUT_ROW_0_PROPERTY,
	PROTON_PLUS_WIDGETS_PREFERENCES_STEAM_SHORTCUT_ROW_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_preferences_steam_shortcut_row_properties[PROTON_PLUS_WIDGETS_PREFERENCES_STEAM_SHORTCUT_ROW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block6Data Block6Data;

struct _ProtonPlusWidgetsPreferencesSteamShortcutRowPrivate {
	ProtonPlusModelsSteamProfile* _profile;
	GtkButton* shortcut_button;
};

struct _Block6Data {
	int _ref_count_;
	ProtonPlusWidgetsPreferencesSteamShortcutRow* self;
	ProtonPlusServicesSteamConfigurationService* configuration;
};

static gint ProtonPlusWidgetsPreferencesSteamShortcutRow_private_offset;
static gpointer proton_plus_widgets_preferences_steam_shortcut_row_parent_class = NULL;

static void proton_plus_widgets_preferences_steam_shortcut_row_set_profile (ProtonPlusWidgetsPreferencesSteamShortcutRow* self,
                                                                     ProtonPlusModelsSteamProfile* value);
static void proton_plus_widgets_preferences_steam_shortcut_row_refresh (ProtonPlusWidgetsPreferencesSteamShortcutRow* self);
static ProtonPlusModelsSteamProfile* proton_plus_widgets_preferences_steam_shortcut_row_get_profile (ProtonPlusWidgetsPreferencesSteamShortcutRow* self);
static void proton_plus_widgets_preferences_steam_shortcut_row_shortcut_button_clicked (ProtonPlusWidgetsPreferencesSteamShortcutRow* self);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (void * _userdata_);
static void ___lambda349_ (Block6Data* _data6_,
                    GObject* obj,
                    GAsyncResult* res);
static void proton_plus_widgets_preferences_steam_shortcut_row_present_shortcut_result (ProtonPlusWidgetsPreferencesSteamShortcutRow* self,
                                                                                 ProtonPlusServicesSteamConfigurationMutation* _result_,
                                                                                 gboolean creating);
static void ____lambda349__gasync_ready_callback (GObject* source_object,
                                           GAsyncResult* res,
                                           gpointer self);
static void ___lambda350_ (Block6Data* _data6_,
                    GObject* obj,
                    GAsyncResult* res);
static void ____lambda350__gasync_ready_callback (GObject* source_object,
                                           GAsyncResult* res,
                                           gpointer self);
static GObject * proton_plus_widgets_preferences_steam_shortcut_row_constructor (GType type,
                                                                          guint n_construct_properties,
                                                                          GObjectConstructParam * construct_properties);
static void _proton_plus_widgets_preferences_steam_shortcut_row_shortcut_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                                                     gpointer self);
static void proton_plus_widgets_preferences_steam_shortcut_row_finalize (GObject * obj);
static GType proton_plus_widgets_preferences_steam_shortcut_row_get_type_once (void);
static void _vala_proton_plus_widgets_preferences_steam_shortcut_row_get_property (GObject * object,
                                                                            guint property_id,
                                                                            GValue * value,
                                                                            GParamSpec * pspec);
static void _vala_proton_plus_widgets_preferences_steam_shortcut_row_set_property (GObject * object,
                                                                            guint property_id,
                                                                            const GValue * value,
                                                                            GParamSpec * pspec);

static inline gpointer
proton_plus_widgets_preferences_steam_shortcut_row_get_instance_private (ProtonPlusWidgetsPreferencesSteamShortcutRow* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsPreferencesSteamShortcutRow_private_offset);
}

ProtonPlusWidgetsPreferencesSteamShortcutRow*
proton_plus_widgets_preferences_steam_shortcut_row_construct (GType object_type,
                                                              ProtonPlusModelsSteamProfile* profile)
{
	ProtonPlusWidgetsPreferencesSteamShortcutRow * self = NULL;
	g_return_val_if_fail (profile != NULL, NULL);
	self = (ProtonPlusWidgetsPreferencesSteamShortcutRow*) g_object_new (object_type, NULL);
	proton_plus_widgets_preferences_steam_shortcut_row_load (self, profile);
	return self;
}

ProtonPlusWidgetsPreferencesSteamShortcutRow*
proton_plus_widgets_preferences_steam_shortcut_row_new (ProtonPlusModelsSteamProfile* profile)
{
	return proton_plus_widgets_preferences_steam_shortcut_row_construct (PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_STEAM_SHORTCUT_ROW, profile);
}

void
proton_plus_widgets_preferences_steam_shortcut_row_load (ProtonPlusWidgetsPreferencesSteamShortcutRow* self,
                                                         ProtonPlusModelsSteamProfile* profile)
{
	g_return_if_fail (self != NULL);
	g_return_if_fail (profile != NULL);
	proton_plus_widgets_preferences_steam_shortcut_row_set_profile (self, profile);
	proton_plus_widgets_preferences_steam_shortcut_row_refresh (self);
}

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

static void
proton_plus_widgets_preferences_steam_shortcut_row_refresh (ProtonPlusWidgetsPreferencesSteamShortcutRow* self)
{
	ProtonPlusServicesSteamConfigurationService* configuration = NULL;
	ProtonPlusServicesSteamConfigurationService* _tmp0_;
	ProtonPlusServicesSteamConfigurationService* _tmp1_;
	ProtonPlusServicesSteamConfigurationService* _tmp2_;
	gboolean _tmp3_ = FALSE;
	ProtonPlusServicesSteamConfigurationService* _tmp4_;
	gboolean shortcut_installed = FALSE;
	const gchar* _tmp10_ = NULL;
	GtkButton* _tmp11_;
	const gchar* _tmp12_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = proton_plus_services_steam_configuration_service_get_instance ();
	_tmp1_ = _tmp0_;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	configuration = _tmp2_;
	_tmp4_ = configuration;
	if (_tmp4_ != NULL) {
		ProtonPlusServicesSteamConfigurationService* _tmp5_;
		ProtonPlusModelsSteamProfile* _tmp6_;
		_tmp5_ = configuration;
		_tmp6_ = self->priv->_profile;
		_tmp3_ = proton_plus_services_steam_configuration_service_protonplus_shortcut_is_effectively_installed (_tmp5_, _tmp6_);
	} else {
		ProtonPlusModelsSteamProfile* _tmp7_;
		ProtonPlusUtilsVDFShortcuts* _tmp8_;
		ProtonPlusUtilsVDFShortcuts* _tmp9_;
		_tmp7_ = self->priv->_profile;
		_tmp8_ = proton_plus_models_steam_profile_get_shortcuts (_tmp7_);
		_tmp9_ = _tmp8_;
		_tmp3_ = proton_plus_utils_vdf_shortcuts_get_installed_status (_tmp9_);
	}
	shortcut_installed = _tmp3_;
	if (!shortcut_installed) {
		_tmp10_ = _ ("Create shortcut");
	} else {
		_tmp10_ = _ ("Delete shortcut");
	}
	_tmp11_ = self->priv->shortcut_button;
	gtk_button_set_label (_tmp11_, _tmp10_);
	if (!shortcut_installed) {
		_tmp12_ = _ ("Create a shortcut of ProtonPlus in Steam");
	} else {
		_tmp12_ = _ ("Delete the shortcut of ProtonPlus in Steam");
	}
	adw_action_row_set_subtitle ((AdwActionRow*) self, _tmp12_);
	_g_object_unref0 (configuration);
}

static Block6Data*
block6_data_ref (Block6Data* _data6_)
{
	g_atomic_int_inc (&_data6_->_ref_count_);
	return _data6_;
}

static void
block6_data_unref (void * _userdata_)
{
	Block6Data* _data6_;
	_data6_ = (Block6Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
		ProtonPlusWidgetsPreferencesSteamShortcutRow* self;
		self = _data6_->self;
		_g_object_unref0 (_data6_->configuration);
		_g_object_unref0 (self);
		g_slice_free (Block6Data, _data6_);
	}
}

static void
___lambda349_ (Block6Data* _data6_,
               GObject* obj,
               GAsyncResult* res)
{
	ProtonPlusWidgetsPreferencesSteamShortcutRow* self;
	ProtonPlusServicesSteamConfigurationService* _tmp0_;
	ProtonPlusServicesSteamConfigurationMutation* _tmp1_;
	ProtonPlusServicesSteamConfigurationMutation* _tmp2_;
	self = _data6_->self;
	g_return_if_fail (res != NULL);
	_tmp0_ = _data6_->configuration;
	_tmp1_ = proton_plus_services_steam_configuration_service_remove_protonplus_shortcut_finish (_tmp0_, res);
	_tmp2_ = _tmp1_;
	proton_plus_widgets_preferences_steam_shortcut_row_present_shortcut_result (self, _tmp2_, FALSE);
	_g_object_unref0 (_tmp2_);
}

static void
____lambda349__gasync_ready_callback (GObject* source_object,
                                      GAsyncResult* res,
                                      gpointer self)
{
	___lambda349_ (self, source_object, res);
	block6_data_unref (self);
}

static void
___lambda350_ (Block6Data* _data6_,
               GObject* obj,
               GAsyncResult* res)
{
	ProtonPlusWidgetsPreferencesSteamShortcutRow* self;
	ProtonPlusServicesSteamConfigurationService* _tmp0_;
	ProtonPlusServicesSteamConfigurationMutation* _tmp1_;
	ProtonPlusServicesSteamConfigurationMutation* _tmp2_;
	self = _data6_->self;
	g_return_if_fail (res != NULL);
	_tmp0_ = _data6_->configuration;
	_tmp1_ = proton_plus_services_steam_configuration_service_install_protonplus_shortcut_finish (_tmp0_, res);
	_tmp2_ = _tmp1_;
	proton_plus_widgets_preferences_steam_shortcut_row_present_shortcut_result (self, _tmp2_, TRUE);
	_g_object_unref0 (_tmp2_);
}

static void
____lambda350__gasync_ready_callback (GObject* source_object,
                                      GAsyncResult* res,
                                      gpointer self)
{
	___lambda350_ (self, source_object, res);
	block6_data_unref (self);
}

static void
proton_plus_widgets_preferences_steam_shortcut_row_shortcut_button_clicked (ProtonPlusWidgetsPreferencesSteamShortcutRow* self)
{
	Block6Data* _data6_;
	ProtonPlusServicesSteamConfigurationService* _tmp0_;
	ProtonPlusServicesSteamConfigurationService* _tmp1_;
	ProtonPlusServicesSteamConfigurationService* _tmp2_;
	ProtonPlusServicesSteamConfigurationService* _tmp3_;
	gboolean installed = FALSE;
	ProtonPlusServicesSteamConfigurationService* _tmp4_;
	ProtonPlusModelsSteamProfile* _tmp5_;
	GtkButton* _tmp6_;
	ProtonPlusModelsSteamProfile* current_profile = NULL;
	ProtonPlusModelsSteamProfile* _tmp7_;
	ProtonPlusModelsSteamProfile* _tmp8_;
	g_return_if_fail (self != NULL);
	_data6_ = g_slice_new0 (Block6Data);
	_data6_->_ref_count_ = 1;
	_data6_->self = g_object_ref (self);
	_tmp0_ = proton_plus_services_steam_configuration_service_get_instance ();
	_tmp1_ = _tmp0_;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_data6_->configuration = _tmp2_;
	_tmp3_ = _data6_->configuration;
	if (_tmp3_ == NULL) {
		block6_data_unref (_data6_);
		_data6_ = NULL;
		return;
	}
	_tmp4_ = _data6_->configuration;
	_tmp5_ = self->priv->_profile;
	installed = proton_plus_services_steam_configuration_service_protonplus_shortcut_is_effectively_installed (_tmp4_, _tmp5_);
	_tmp6_ = self->priv->shortcut_button;
	gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, FALSE);
	_tmp7_ = self->priv->_profile;
	_tmp8_ = _g_object_ref0 (_tmp7_);
	current_profile = _tmp8_;
	if (installed) {
		ProtonPlusServicesSteamConfigurationService* _tmp9_;
		ProtonPlusModelsSteamProfile* _tmp10_;
		_tmp9_ = _data6_->configuration;
		_tmp10_ = current_profile;
		proton_plus_services_steam_configuration_service_remove_protonplus_shortcut (_tmp9_, _tmp10_, ____lambda349__gasync_ready_callback, block6_data_ref (_data6_));
	} else {
		ProtonPlusServicesSteamConfigurationService* _tmp11_;
		ProtonPlusModelsSteamProfile* _tmp12_;
		_tmp11_ = _data6_->configuration;
		_tmp12_ = current_profile;
		proton_plus_services_steam_configuration_service_install_protonplus_shortcut (_tmp11_, _tmp12_, ____lambda350__gasync_ready_callback, block6_data_ref (_data6_));
	}
	_g_object_unref0 (current_profile);
	block6_data_unref (_data6_);
	_data6_ = NULL;
}

static void
proton_plus_widgets_preferences_steam_shortcut_row_present_shortcut_result (ProtonPlusWidgetsPreferencesSteamShortcutRow* self,
                                                                            ProtonPlusServicesSteamConfigurationMutation* _result_,
                                                                            gboolean creating)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	GtkButton* _tmp7_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (_result_ != NULL);
	_tmp0_ = proton_plus_services_steam_configuration_mutation_get_accepted (_result_);
	_tmp1_ = _tmp0_;
	if (!_tmp1_) {
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		ProtonPlusWidgetsMainErrorDialog* dialog = NULL;
		ProtonPlusWidgetsMainErrorDialog* _tmp4_;
		ProtonPlusWidgetsMainErrorDialog* _tmp5_;
		GtkRoot* _tmp6_;
		if (creating) {
			_tmp2_ = _ ("Failed to create shortcut");
		} else {
			_tmp2_ = _ ("Failed to delete shortcut");
		}
		if (creating) {
			_tmp3_ = _ ("ProtonPlus was unable to add the shortcut to Steam. Please ensure Stea" \
"m is closed and try again.");
		} else {
			_tmp3_ = _ ("ProtonPlus was unable to remove the shortcut from Steam. This might ha" \
"ppen if Steam is currently running or if the shortcuts file is inacces" \
"sible.");
		}
		_tmp4_ = proton_plus_widgets_main_error_dialog_new (_tmp2_, _tmp3_, "");
		g_object_ref_sink (_tmp4_);
		dialog = _tmp4_;
		_tmp5_ = dialog;
		_tmp6_ = gtk_widget_get_root ((GtkWidget*) self);
		proton_plus_widgets_window_present_dialog_for_controller ((AdwDialog*) _tmp5_, (GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow));
		_g_object_unref0 (dialog);
	}
	_tmp7_ = self->priv->shortcut_button;
	gtk_widget_set_sensitive ((GtkWidget*) _tmp7_, TRUE);
	proton_plus_widgets_preferences_steam_shortcut_row_refresh (self);
}

static ProtonPlusModelsSteamProfile*
proton_plus_widgets_preferences_steam_shortcut_row_get_profile (ProtonPlusWidgetsPreferencesSteamShortcutRow* self)
{
	ProtonPlusModelsSteamProfile* result;
	ProtonPlusModelsSteamProfile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_profile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_preferences_steam_shortcut_row_set_profile (ProtonPlusWidgetsPreferencesSteamShortcutRow* self,
                                                                ProtonPlusModelsSteamProfile* value)
{
	ProtonPlusModelsSteamProfile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_profile);
	self->priv->_profile = _tmp0_;
}

static void
_proton_plus_widgets_preferences_steam_shortcut_row_shortcut_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                                                gpointer self)
{
	proton_plus_widgets_preferences_steam_shortcut_row_shortcut_button_clicked ((ProtonPlusWidgetsPreferencesSteamShortcutRow*) self);
}

static GObject *
proton_plus_widgets_preferences_steam_shortcut_row_constructor (GType type,
                                                                guint n_construct_properties,
                                                                GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ProtonPlusWidgetsPreferencesSteamShortcutRow * self;
	GtkButton* _tmp0_;
	GtkButton* _tmp1_;
	GtkButton* _tmp2_;
	GtkButton* _tmp3_;
	GtkImage* _tmp4_;
	GtkImage* _tmp5_;
	GtkButton* _tmp6_;
	parent_class = G_OBJECT_CLASS (proton_plus_widgets_preferences_steam_shortcut_row_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_STEAM_SHORTCUT_ROW, ProtonPlusWidgetsPreferencesSteamShortcutRow);
	_tmp0_ = (GtkButton*) gtk_button_new ();
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->shortcut_button);
	self->priv->shortcut_button = _tmp0_;
	_tmp1_ = self->priv->shortcut_button;
	gtk_widget_add_css_class ((GtkWidget*) _tmp1_, "flat");
	_tmp2_ = self->priv->shortcut_button;
	gtk_widget_set_valign ((GtkWidget*) _tmp2_, GTK_ALIGN_CENTER);
	_tmp3_ = self->priv->shortcut_button;
	g_signal_connect_object (_tmp3_, "clicked", (GCallback) _proton_plus_widgets_preferences_steam_shortcut_row_shortcut_button_clicked_gtk_button_clicked, self, 0);
	adw_preferences_row_set_title ((AdwPreferencesRow*) self, _ ("Manage shortcut"));
	_tmp4_ = (GtkImage*) gtk_image_new_from_icon_name ("bookmark-symbolic");
	g_object_ref_sink (_tmp4_);
	_tmp5_ = _tmp4_;
	adw_action_row_add_prefix ((AdwActionRow*) self, (GtkWidget*) _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = self->priv->shortcut_button;
	adw_action_row_add_suffix ((AdwActionRow*) self, (GtkWidget*) _tmp6_);
	return obj;
}

static void
proton_plus_widgets_preferences_steam_shortcut_row_class_init (ProtonPlusWidgetsPreferencesSteamShortcutRowClass * klass,
                                                               gpointer klass_data)
{
	proton_plus_widgets_preferences_steam_shortcut_row_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsPreferencesSteamShortcutRow_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_preferences_steam_shortcut_row_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_preferences_steam_shortcut_row_set_property;
	G_OBJECT_CLASS (klass)->constructor = proton_plus_widgets_preferences_steam_shortcut_row_constructor;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_preferences_steam_shortcut_row_finalize;
}

static void
proton_plus_widgets_preferences_steam_shortcut_row_instance_init (ProtonPlusWidgetsPreferencesSteamShortcutRow * self,
                                                                  gpointer klass)
{
	self->priv = proton_plus_widgets_preferences_steam_shortcut_row_get_instance_private (self);
}

static void
proton_plus_widgets_preferences_steam_shortcut_row_finalize (GObject * obj)
{
	ProtonPlusWidgetsPreferencesSteamShortcutRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_PREFERENCES_TYPE_STEAM_SHORTCUT_ROW, ProtonPlusWidgetsPreferencesSteamShortcutRow);
	_g_object_unref0 (self->priv->_profile);
	_g_object_unref0 (self->priv->shortcut_button);
	G_OBJECT_CLASS (proton_plus_widgets_preferences_steam_shortcut_row_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_preferences_steam_shortcut_row_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsPreferencesSteamShortcutRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_preferences_steam_shortcut_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsPreferencesSteamShortcutRow), 0, (GInstanceInitFunc) proton_plus_widgets_preferences_steam_shortcut_row_instance_init, NULL };
	GType proton_plus_widgets_preferences_steam_shortcut_row_type_id;
	proton_plus_widgets_preferences_steam_shortcut_row_type_id = g_type_register_static (adw_action_row_get_type (), "ProtonPlusWidgetsPreferencesSteamShortcutRow", &g_define_type_info, 0);
	ProtonPlusWidgetsPreferencesSteamShortcutRow_private_offset = g_type_add_instance_private (proton_plus_widgets_preferences_steam_shortcut_row_type_id, sizeof (ProtonPlusWidgetsPreferencesSteamShortcutRowPrivate));
	return proton_plus_widgets_preferences_steam_shortcut_row_type_id;
}

GType
proton_plus_widgets_preferences_steam_shortcut_row_get_type (void)
{
	static volatile gsize proton_plus_widgets_preferences_steam_shortcut_row_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_preferences_steam_shortcut_row_type_id__once)) {
		GType proton_plus_widgets_preferences_steam_shortcut_row_type_id;
		proton_plus_widgets_preferences_steam_shortcut_row_type_id = proton_plus_widgets_preferences_steam_shortcut_row_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_preferences_steam_shortcut_row_type_id__once, proton_plus_widgets_preferences_steam_shortcut_row_type_id);
	}
	return proton_plus_widgets_preferences_steam_shortcut_row_type_id__once;
}

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

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

