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

#include "protonplus_core.h"
#include <glib.h>
#include <adwaita.h>
#include <gtk/gtk.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>
#include "config.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_LOADING_BOX_0_PROPERTY,
	PROTON_PLUS_WIDGETS_LOADING_BOX_LOADING_PROPERTY,
	PROTON_PLUS_WIDGETS_LOADING_BOX_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_loading_box_properties[PROTON_PLUS_WIDGETS_LOADING_BOX_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))
typedef struct _ProtonPlusWidgetsLoadingBoxLoadData ProtonPlusWidgetsLoadingBoxLoadData;
enum  {
	PROTON_PLUS_WIDGETS_LOADING_BOX_LOADED_SIGNAL,
	PROTON_PLUS_WIDGETS_LOADING_BOX_NUM_SIGNALS
};
static guint proton_plus_widgets_loading_box_signals[PROTON_PLUS_WIDGETS_LOADING_BOX_NUM_SIGNALS] = {0};

struct _ProtonPlusWidgetsLoadingBoxPrivate {
	gboolean _loading;
	AdwStatusPage* _status_page;
	AdwSpinner* _spinner;
	GtkFlowBox* _bug_box;
	GtkBox* _welcome_box;
	GtkButton* _retry_button;
	GtkButton* _report_button;
	guint slow_warning_timeout_id;
};

struct _ProtonPlusWidgetsLoadingBoxLoadData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusWidgetsLoadingBox* self;
	gboolean _tmp0_;
	AdwStatusPage* _tmp1_;
	GtkFlowBox* _tmp2_;
	GtkBox* _tmp3_;
	AdwStatusPage* _tmp4_;
	AdwStatusPage* _tmp5_;
	AdwStatusPage* _tmp6_;
	GeeLinkedList* launchers;
	gboolean success;
	GeeLinkedList* _tmp7_;
	gboolean _tmp8_;
	AdwStatusPage* _tmp9_;
	AdwStatusPage* _tmp10_;
	AdwStatusPage* _tmp11_;
	AdwStatusPage* _tmp12_;
	GtkButton* _tmp13_;
	GtkButton* _tmp14_;
	GtkFlowBox* _tmp15_;
	GtkFlowBox* _tmp16_;
	GeeLinkedList* _tmp17_;
	gint _tmp18_;
	gint _tmp19_;
	GeeLinkedList* _tmp20_;
	AdwStatusPage* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	AdwStatusPage* _tmp24_;
	GtkBox* _tmp25_;
};

static gint ProtonPlusWidgetsLoadingBox_private_offset;
static gpointer proton_plus_widgets_loading_box_parent_class = NULL;

static void proton_plus_widgets_loading_box_set_spinner (ProtonPlusWidgetsLoadingBox* self,
                                                  AdwSpinner* value);
static AdwSpinner* proton_plus_widgets_loading_box_get_spinner (ProtonPlusWidgetsLoadingBox* self);
static GtkFlowBox* proton_plus_widgets_loading_box_create_bug_box (ProtonPlusWidgetsLoadingBox* self);
static void proton_plus_widgets_loading_box_set_bug_box (ProtonPlusWidgetsLoadingBox* self,
                                                  GtkFlowBox* value);
static GtkBox* proton_plus_widgets_loading_box_create_welcome_box (ProtonPlusWidgetsLoadingBox* self);
static void proton_plus_widgets_loading_box_set_welcome_box (ProtonPlusWidgetsLoadingBox* self,
                                                      GtkBox* value);
static GtkFlowBox* proton_plus_widgets_loading_box_get_bug_box (ProtonPlusWidgetsLoadingBox* self);
static GtkBox* proton_plus_widgets_loading_box_get_welcome_box (ProtonPlusWidgetsLoadingBox* self);
static void proton_plus_widgets_loading_box_set_status_page (ProtonPlusWidgetsLoadingBox* self,
                                                      AdwStatusPage* value);
static AdwStatusPage* proton_plus_widgets_loading_box_get_status_page (ProtonPlusWidgetsLoadingBox* self);
static void proton_plus_widgets_loading_box_load_data_free (gpointer _data);
static gboolean proton_plus_widgets_loading_box_load_co (ProtonPlusWidgetsLoadingBoxLoadData* _data_);
static gboolean __lambda378_ (ProtonPlusWidgetsLoadingBox* self);
static GtkButton* proton_plus_widgets_loading_box_get_retry_button (ProtonPlusWidgetsLoadingBox* self);
static GtkButton* proton_plus_widgets_loading_box_get_report_button (ProtonPlusWidgetsLoadingBox* self);
static gboolean ___lambda378__gsource_func (gpointer self);
static void proton_plus_widgets_loading_box_load_ready (GObject* source_object,
                                                 GAsyncResult* _res_,
                                                 gpointer _user_data_);
static GtkButton* proton_plus_widgets_loading_box_create_icon_button (ProtonPlusWidgetsLoadingBox* self,
                                                               const gchar* label,
                                                               const gchar* icon_name,
                                                               gboolean suggested);
static GtkButton* proton_plus_widgets_loading_box_create_button (ProtonPlusWidgetsLoadingBox* self,
                                                          GtkWidget* child,
                                                          gboolean suggested);
static GtkButton* proton_plus_widgets_loading_box_create_image_button (ProtonPlusWidgetsLoadingBox* self,
                                                                const gchar* label,
                                                                const gchar* filename,
                                                                gboolean suggested);
static void proton_plus_widgets_loading_box_set_retry_button (ProtonPlusWidgetsLoadingBox* self,
                                                       GtkButton* value);
static void __lambda377_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda377__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void proton_plus_widgets_loading_box_set_report_button (ProtonPlusWidgetsLoadingBox* self,
                                                        GtkButton* value);
static void __lambda379_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda379__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static GtkLabel* proton_plus_widgets_loading_box_create_wrapping_label (ProtonPlusWidgetsLoadingBox* self,
                                                                 const gchar* text);
static void __lambda380_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda380__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda381_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda381__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda382_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda382__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda383_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda383__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda384_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda384__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda385_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda385__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void __lambda386_ (ProtonPlusWidgetsLoadingBox* self);
static void ___lambda386__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static void proton_plus_widgets_loading_box_real_dispose (GObject* base);
static void proton_plus_widgets_loading_box_finalize (GObject * obj);
static GType proton_plus_widgets_loading_box_get_type_once (void);
static void _vala_proton_plus_widgets_loading_box_get_property (GObject * object,
                                                         guint property_id,
                                                         GValue * value,
                                                         GParamSpec * pspec);
static void _vala_proton_plus_widgets_loading_box_set_property (GObject * object,
                                                         guint property_id,
                                                         const GValue * value,
                                                         GParamSpec * pspec);

static inline gpointer
proton_plus_widgets_loading_box_get_instance_private (ProtonPlusWidgetsLoadingBox* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsLoadingBox_private_offset);
}

ProtonPlusWidgetsLoadingBox*
proton_plus_widgets_loading_box_construct (GType object_type)
{
	ProtonPlusWidgetsLoadingBox * self = NULL;
	AdwSpinner* _tmp0_;
	AdwSpinner* _tmp1_;
	AdwSpinner* _tmp2_;
	AdwSpinner* _tmp3_;
	AdwSpinner* _tmp4_;
	AdwSpinner* _tmp5_;
	GtkFlowBox* _tmp6_;
	GtkFlowBox* _tmp7_;
	GtkBox* _tmp8_;
	GtkBox* _tmp9_;
	GtkBox* content_box = NULL;
	GtkBox* _tmp10_;
	AdwSpinner* _tmp11_;
	GtkFlowBox* _tmp12_;
	GtkBox* _tmp13_;
	AdwStatusPage* _tmp14_;
	AdwStatusPage* _tmp15_;
	AdwStatusPage* _tmp16_;
	AdwStatusPage* _tmp17_;
	AdwStatusPage* _tmp18_;
	AdwStatusPage* _tmp19_;
	self = (ProtonPlusWidgetsLoadingBox*) g_object_new (object_type, "orientation", GTK_ORIENTATION_VERTICAL, "spacing", 0, NULL);
	_tmp0_ = (AdwSpinner*) adw_spinner_new ();
	g_object_ref_sink (_tmp0_);
	_tmp1_ = _tmp0_;
	proton_plus_widgets_loading_box_set_spinner (self, _tmp1_);
	_g_object_unref0 (_tmp1_);
	_tmp2_ = self->priv->_spinner;
	gtk_widget_set_size_request ((GtkWidget*) _tmp2_, 32, 32);
	_tmp3_ = self->priv->_spinner;
	gtk_widget_set_halign ((GtkWidget*) _tmp3_, GTK_ALIGN_CENTER);
	_tmp4_ = self->priv->_spinner;
	gtk_widget_set_valign ((GtkWidget*) _tmp4_, GTK_ALIGN_CENTER);
	_tmp5_ = self->priv->_spinner;
	g_object_bind_property_with_closures ((GObject*) self, "loading", (GObject*) _tmp5_, "visible", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp6_ = proton_plus_widgets_loading_box_create_bug_box (self);
	_tmp7_ = _tmp6_;
	proton_plus_widgets_loading_box_set_bug_box (self, _tmp7_);
	_g_object_unref0 (_tmp7_);
	_tmp8_ = proton_plus_widgets_loading_box_create_welcome_box (self);
	_tmp9_ = _tmp8_;
	proton_plus_widgets_loading_box_set_welcome_box (self, _tmp9_);
	_g_object_unref0 (_tmp9_);
	_tmp10_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 30);
	g_object_ref_sink (_tmp10_);
	content_box = _tmp10_;
	gtk_widget_set_halign ((GtkWidget*) content_box, GTK_ALIGN_CENTER);
	_tmp11_ = self->priv->_spinner;
	gtk_box_append (content_box, (GtkWidget*) _tmp11_);
	_tmp12_ = self->priv->_bug_box;
	gtk_box_append (content_box, (GtkWidget*) _tmp12_);
	_tmp13_ = self->priv->_welcome_box;
	gtk_box_append (content_box, (GtkWidget*) _tmp13_);
	_tmp14_ = (AdwStatusPage*) adw_status_page_new ();
	g_object_ref_sink (_tmp14_);
	_tmp15_ = _tmp14_;
	proton_plus_widgets_loading_box_set_status_page (self, _tmp15_);
	_g_object_unref0 (_tmp15_);
	_tmp16_ = self->priv->_status_page;
	gtk_widget_set_vexpand ((GtkWidget*) _tmp16_, TRUE);
	_tmp17_ = self->priv->_status_page;
	gtk_widget_set_hexpand ((GtkWidget*) _tmp17_, TRUE);
	_tmp18_ = self->priv->_status_page;
	adw_status_page_set_child (_tmp18_, (GtkWidget*) content_box);
	_tmp19_ = self->priv->_status_page;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp19_);
	_g_object_unref0 (content_box);
	return self;
}

ProtonPlusWidgetsLoadingBox*
proton_plus_widgets_loading_box_new (void)
{
	return proton_plus_widgets_loading_box_construct (PROTON_PLUS_WIDGETS_LOADING_TYPE_BOX);
}

static void
proton_plus_widgets_loading_box_load_data_free (gpointer _data)
{
	ProtonPlusWidgetsLoadingBoxLoadData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusWidgetsLoadingBoxLoadData, _data_);
}

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

void
proton_plus_widgets_loading_box_load (ProtonPlusWidgetsLoadingBox* self,
                                      GAsyncReadyCallback _callback_,
                                      gpointer _user_data_)
{
	ProtonPlusWidgetsLoadingBoxLoadData* _data_;
	ProtonPlusWidgetsLoadingBox* _tmp0_;
	g_return_if_fail (self != NULL);
	_data_ = g_slice_new0 (ProtonPlusWidgetsLoadingBoxLoadData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_widgets_loading_box_load_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_widgets_loading_box_load_co (_data_);
}

void
proton_plus_widgets_loading_box_load_finish (ProtonPlusWidgetsLoadingBox* self,
                                             GAsyncResult* _res_)
{
	ProtonPlusWidgetsLoadingBoxLoadData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
}

static gboolean
__lambda378_ (ProtonPlusWidgetsLoadingBox* self)
{
	gboolean _tmp0_;
	gboolean result;
	self->priv->slow_warning_timeout_id = (guint) 0;
	_tmp0_ = self->priv->_loading;
	if (_tmp0_) {
		AdwStatusPage* _tmp1_;
		GtkButton* _tmp2_;
		GtkButton* _tmp3_;
		GtkFlowBox* _tmp4_;
		_tmp1_ = self->priv->_status_page;
		adw_status_page_set_description (_tmp1_, _ ("Taking longer than normal?"));
		_tmp2_ = self->priv->_retry_button;
		gtk_widget_set_visible ((GtkWidget*) _tmp2_, FALSE);
		_tmp3_ = self->priv->_report_button;
		gtk_widget_set_visible ((GtkWidget*) _tmp3_, TRUE);
		_tmp4_ = self->priv->_bug_box;
		gtk_widget_set_visible ((GtkWidget*) _tmp4_, TRUE);
	}
	result = FALSE;
	return result;
}

static gboolean
___lambda378__gsource_func (gpointer self)
{
	gboolean result;
	result = __lambda378_ ((ProtonPlusWidgetsLoadingBox*) self);
	return result;
}

static void
proton_plus_widgets_loading_box_load_ready (GObject* source_object,
                                            GAsyncResult* _res_,
                                            gpointer _user_data_)
{
	ProtonPlusWidgetsLoadingBoxLoadData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_widgets_loading_box_load_co (_data_);
}

static gboolean
proton_plus_widgets_loading_box_load_co (ProtonPlusWidgetsLoadingBoxLoadData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = _data_->self->priv->_loading;
	if (_data_->_tmp0_) {
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	proton_plus_widgets_loading_box_set_loading (_data_->self, TRUE);
	_data_->_tmp1_ = _data_->self->priv->_status_page;
	gtk_widget_add_css_class ((GtkWidget*) _data_->_tmp1_, "loading-status-page");
	_data_->_tmp2_ = _data_->self->priv->_bug_box;
	gtk_widget_set_visible ((GtkWidget*) _data_->_tmp2_, FALSE);
	_data_->_tmp3_ = _data_->self->priv->_welcome_box;
	gtk_widget_set_visible ((GtkWidget*) _data_->_tmp3_, FALSE);
	_data_->_tmp4_ = _data_->self->priv->_status_page;
	adw_status_page_set_icon_name (_data_->_tmp4_, "com.vysp3r.ProtonPlus");
	_data_->_tmp5_ = _data_->self->priv->_status_page;
	adw_status_page_set_title (_data_->_tmp5_, _ ("Loading"));
	_data_->_tmp6_ = _data_->self->priv->_status_page;
	adw_status_page_set_description (_data_->_tmp6_, _ ("Please wait while we're loading your launchers."));
	if (_data_->self->priv->slow_warning_timeout_id != ((guint) 0)) {
		g_source_remove (_data_->self->priv->slow_warning_timeout_id);
	}
	_data_->self->priv->slow_warning_timeout_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 15, ___lambda378__gsource_func, g_object_ref (_data_->self), g_object_unref);
	_data_->_tmp7_ = NULL;
	_data_->_state_ = 1;
	proton_plus_models_launcher_get_all (proton_plus_widgets_loading_box_load_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp8_ = proton_plus_models_launcher_get_all_finish (_data_->_res_, &_data_->_tmp7_);
	_g_object_unref0 (_data_->launchers);
	_data_->launchers = _data_->_tmp7_;
	_data_->success = _data_->_tmp8_;
	proton_plus_widgets_loading_box_set_loading (_data_->self, FALSE);
	_data_->_tmp9_ = _data_->self->priv->_status_page;
	gtk_widget_remove_css_class ((GtkWidget*) _data_->_tmp9_, "loading-status-page");
	if (_data_->self->priv->slow_warning_timeout_id != ((guint) 0)) {
		g_source_remove (_data_->self->priv->slow_warning_timeout_id);
		_data_->self->priv->slow_warning_timeout_id = (guint) 0;
	}
	if (!_data_->success) {
		_data_->_tmp10_ = _data_->self->priv->_status_page;
		adw_status_page_set_icon_name (_data_->_tmp10_, "bug-symbolic");
		_data_->_tmp11_ = _data_->self->priv->_status_page;
		adw_status_page_set_title (_data_->_tmp11_, _ ("An unexpected error occurred"));
		_data_->_tmp12_ = _data_->self->priv->_status_page;
		adw_status_page_set_description (_data_->_tmp12_, _ ("We encountered a problem while loading your application.\n" \
"Please try again or report the problem."));
		_data_->_tmp13_ = _data_->self->priv->_retry_button;
		gtk_widget_set_visible ((GtkWidget*) _data_->_tmp13_, TRUE);
		_data_->_tmp14_ = _data_->self->priv->_report_button;
		gtk_widget_set_visible ((GtkWidget*) _data_->_tmp14_, TRUE);
		_data_->_tmp15_ = _data_->self->priv->_bug_box;
		gtk_widget_set_visible ((GtkWidget*) _data_->_tmp15_, TRUE);
		_g_object_unref0 (_data_->launchers);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp16_ = _data_->self->priv->_bug_box;
	gtk_widget_set_visible ((GtkWidget*) _data_->_tmp16_, FALSE);
	_data_->_tmp17_ = _data_->launchers;
	_data_->_tmp18_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _data_->_tmp17_);
	_data_->_tmp19_ = _data_->_tmp18_;
	if (_data_->_tmp19_ > 0) {
		_data_->_tmp20_ = _data_->launchers;
		g_signal_emit (_data_->self, proton_plus_widgets_loading_box_signals[PROTON_PLUS_WIDGETS_LOADING_BOX_LOADED_SIGNAL], 0, _data_->_tmp20_);
	} else {
		_data_->_tmp21_ = _data_->self->priv->_status_page;
		_data_->_tmp22_ = g_strdup_printf (_ ("Welcome to %s"), APP_NAME);
		_data_->_tmp23_ = _data_->_tmp22_;
		adw_status_page_set_title (_data_->_tmp21_, _data_->_tmp23_);
		_g_free0 (_data_->_tmp23_);
		_data_->_tmp24_ = _data_->self->priv->_status_page;
		adw_status_page_set_description (_data_->_tmp24_, NULL);
		_data_->_tmp25_ = _data_->self->priv->_welcome_box;
		gtk_widget_set_visible ((GtkWidget*) _data_->_tmp25_, TRUE);
	}
	_g_object_unref0 (_data_->launchers);
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static GtkButton*
proton_plus_widgets_loading_box_create_icon_button (ProtonPlusWidgetsLoadingBox* self,
                                                    const gchar* label,
                                                    const gchar* icon_name,
                                                    gboolean suggested)
{
	AdwButtonContent* button_content = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	AdwButtonContent* _tmp2_ = NULL;
	GtkButton* _tmp3_;
	GtkButton* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (label != NULL, NULL);
	g_return_val_if_fail (icon_name != NULL, NULL);
	_tmp0_ = g_strdup (icon_name);
	_tmp1_ = g_strdup (label);
	_tmp2_ = (AdwButtonContent*) adw_button_content_new ();
	adw_button_content_set_icon_name (_tmp2_, _tmp0_);
	_g_free0 (_tmp0_);
	adw_button_content_set_label (_tmp2_, _tmp1_);
	_g_free0 (_tmp1_);
	g_object_ref_sink (_tmp2_);
	button_content = _tmp2_;
	_tmp3_ = proton_plus_widgets_loading_box_create_button (self, (GtkWidget*) button_content, suggested);
	result = _tmp3_;
	_g_object_unref0 (button_content);
	return result;
}

static GtkButton*
proton_plus_widgets_loading_box_create_image_button (ProtonPlusWidgetsLoadingBox* self,
                                                     const gchar* label,
                                                     const gchar* filename,
                                                     gboolean suggested)
{
	GtkImage* button_image = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	GtkImage* _tmp2_;
	GtkImage* _tmp3_;
	GtkLabel* button_label = NULL;
	GtkLabel* _tmp4_;
	GtkBox* button_box = NULL;
	GtkBox* _tmp5_;
	GtkButton* _tmp6_;
	GtkButton* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (label != NULL, NULL);
	g_return_val_if_fail (filename != NULL, NULL);
	_tmp0_ = g_strdup_printf ("%s/%s", RESOURCE_BASE, filename);
	_tmp1_ = _tmp0_;
	_tmp2_ = (GtkImage*) gtk_image_new_from_resource (_tmp1_);
	g_object_ref_sink (_tmp2_);
	_tmp3_ = _tmp2_;
	_g_free0 (_tmp1_);
	button_image = _tmp3_;
	_tmp4_ = (GtkLabel*) gtk_label_new (label);
	g_object_ref_sink (_tmp4_);
	button_label = _tmp4_;
	_tmp5_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
	g_object_ref_sink (_tmp5_);
	button_box = _tmp5_;
	gtk_box_append (button_box, (GtkWidget*) button_image);
	gtk_box_append (button_box, (GtkWidget*) button_label);
	_tmp6_ = proton_plus_widgets_loading_box_create_button (self, (GtkWidget*) button_box, suggested);
	result = _tmp6_;
	_g_object_unref0 (button_box);
	_g_object_unref0 (button_label);
	_g_object_unref0 (button_image);
	return result;
}

static GtkButton*
proton_plus_widgets_loading_box_create_button (ProtonPlusWidgetsLoadingBox* self,
                                               GtkWidget* child,
                                               gboolean suggested)
{
	GtkButton* button = NULL;
	GtkButton* _tmp0_;
	GtkButton* _tmp1_;
	GtkButton* _tmp2_;
	GtkButton* _tmp3_;
	GtkButton* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (child != NULL, NULL);
	_tmp0_ = (GtkButton*) gtk_button_new ();
	g_object_ref_sink (_tmp0_);
	button = _tmp0_;
	_tmp1_ = button;
	gtk_button_set_child (_tmp1_, child);
	_tmp2_ = button;
	gtk_widget_set_halign ((GtkWidget*) _tmp2_, GTK_ALIGN_CENTER);
	_tmp3_ = button;
	gtk_widget_add_css_class ((GtkWidget*) _tmp3_, "pill");
	if (suggested) {
		GtkButton* _tmp4_;
		_tmp4_ = button;
		gtk_widget_add_css_class ((GtkWidget*) _tmp4_, "suggested-action");
	}
	result = button;
	return result;
}

static void
__lambda377_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_widgets_loading_box_load (self, NULL, NULL);
}

static void
___lambda377__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda377_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static void
__lambda379_ (ProtonPlusWidgetsLoadingBox* self)
{
	gtk_widget_activate_action ((GtkWidget*) self, "app.report", NULL, NULL);
}

static void
___lambda379__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda379_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static GtkFlowBox*
proton_plus_widgets_loading_box_create_bug_box (ProtonPlusWidgetsLoadingBox* self)
{
	GtkButton* _tmp0_;
	GtkButton* _tmp1_;
	GtkButton* _tmp2_;
	GtkButton* _tmp3_;
	GtkButton* _tmp4_;
	GtkButton* _tmp5_;
	GtkFlowBox* bug_box = NULL;
	GtkFlowBox* _tmp6_ = NULL;
	GtkButton* _tmp7_;
	GtkButton* _tmp8_;
	GtkFlowBox* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = proton_plus_widgets_loading_box_create_icon_button (self, _ ("Retry loading"), "view-refresh-symbolic", TRUE);
	_tmp1_ = _tmp0_;
	proton_plus_widgets_loading_box_set_retry_button (self, _tmp1_);
	_g_object_unref0 (_tmp1_);
	_tmp2_ = self->priv->_retry_button;
	g_signal_connect_object (_tmp2_, "clicked", (GCallback) ___lambda377__gtk_button_clicked, self, 0);
	_tmp3_ = proton_plus_widgets_loading_box_create_icon_button (self, _ ("Report issue"), "github-symbolic", FALSE);
	_tmp4_ = _tmp3_;
	proton_plus_widgets_loading_box_set_report_button (self, _tmp4_);
	_g_object_unref0 (_tmp4_);
	_tmp5_ = self->priv->_report_button;
	g_signal_connect_object (_tmp5_, "clicked", (GCallback) ___lambda379__gtk_button_clicked, self, 0);
	_tmp6_ = (GtkFlowBox*) gtk_flow_box_new ();
	gtk_flow_box_set_column_spacing (_tmp6_, (guint) 12);
	gtk_flow_box_set_row_spacing (_tmp6_, (guint) 12);
	gtk_flow_box_set_max_children_per_line (_tmp6_, (guint) 2);
	gtk_flow_box_set_min_children_per_line (_tmp6_, (guint) 1);
	gtk_flow_box_set_selection_mode (_tmp6_, GTK_SELECTION_NONE);
	gtk_widget_set_halign ((GtkWidget*) _tmp6_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp6_);
	bug_box = _tmp6_;
	_tmp7_ = self->priv->_retry_button;
	gtk_flow_box_append (bug_box, (GtkWidget*) _tmp7_);
	_tmp8_ = self->priv->_report_button;
	gtk_flow_box_append (bug_box, (GtkWidget*) _tmp8_);
	result = bug_box;
	return result;
}

static void
__lambda380_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_utils_system_open_uri ("https://store.steampowered.com/about/");
}

static void
___lambda380__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda380_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static void
__lambda381_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_utils_system_open_uri ("https://github.com/Faugus/faugus-launcher");
}

static void
___lambda381__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda381_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static void
__lambda382_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_utils_system_open_uri ("https://lutris.net/");
}

static void
___lambda382__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda382_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static void
__lambda383_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_utils_system_open_uri ("https://heroicgameslauncher.com/");
}

static void
___lambda383__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda383_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static void
__lambda384_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_utils_system_open_uri ("https://usebottles.com/");
}

static void
___lambda384__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda384_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static void
__lambda385_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_utils_system_open_uri ("https://github.com/fastrizwaan/WineZGUI");
}

static void
___lambda385__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda385_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static void
__lambda386_ (ProtonPlusWidgetsLoadingBox* self)
{
	proton_plus_widgets_loading_box_load (self, NULL, NULL);
}

static void
___lambda386__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda386_ ((ProtonPlusWidgetsLoadingBox*) self);
}

static GtkBox*
proton_plus_widgets_loading_box_create_welcome_box (ProtonPlusWidgetsLoadingBox* self)
{
	GtkLabel* first_label = NULL;
	GtkLabel* _tmp0_;
	GtkLabel* second_label = NULL;
	GtkLabel* _tmp1_;
	GtkButton* steam_button = NULL;
	GtkButton* _tmp2_;
	GtkButton* faugus_button = NULL;
	GtkButton* _tmp3_;
	GtkButton* lutris_button = NULL;
	GtkButton* _tmp4_;
	GtkButton* hgl_button = NULL;
	GtkButton* _tmp5_;
	GtkButton* bottles_button = NULL;
	GtkButton* _tmp6_;
	GtkButton* winezgui_button = NULL;
	GtkButton* _tmp7_;
	GtkFlowBox* launchers_box = NULL;
	GtkFlowBox* _tmp8_;
	GtkLabel* third_label = NULL;
	GtkLabel* _tmp9_;
	GtkButton* check_button = NULL;
	GtkButton* _tmp10_;
	GtkBox* welcome_box = NULL;
	GtkBox* _tmp11_;
	GtkBox* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = proton_plus_widgets_loading_box_create_wrapping_label (self, _ ("You need a game launcher to use ProtonPlus."));
	first_label = _tmp0_;
	_tmp1_ = proton_plus_widgets_loading_box_create_wrapping_label (self, _ ("Install one of these to get started:"));
	second_label = _tmp1_;
	_tmp2_ = proton_plus_widgets_loading_box_create_image_button (self, "Steam", "steam.svg", FALSE);
	steam_button = _tmp2_;
	g_signal_connect_object (steam_button, "clicked", (GCallback) ___lambda380__gtk_button_clicked, self, 0);
	_tmp3_ = proton_plus_widgets_loading_box_create_image_button (self, "Faugus Launcher", "faugus-launcher.svg", FALSE);
	faugus_button = _tmp3_;
	g_signal_connect_object (faugus_button, "clicked", (GCallback) ___lambda381__gtk_button_clicked, self, 0);
	_tmp4_ = proton_plus_widgets_loading_box_create_image_button (self, "Lutris", "lutris.svg", FALSE);
	lutris_button = _tmp4_;
	g_signal_connect_object (lutris_button, "clicked", (GCallback) ___lambda382__gtk_button_clicked, self, 0);
	_tmp5_ = proton_plus_widgets_loading_box_create_image_button (self, "Heroic Games Launcher", "hgl.svg", FALSE);
	hgl_button = _tmp5_;
	g_signal_connect_object (hgl_button, "clicked", (GCallback) ___lambda383__gtk_button_clicked, self, 0);
	_tmp6_ = proton_plus_widgets_loading_box_create_image_button (self, "Bottles", "bottles.svg", FALSE);
	bottles_button = _tmp6_;
	g_signal_connect_object (bottles_button, "clicked", (GCallback) ___lambda384__gtk_button_clicked, self, 0);
	_tmp7_ = proton_plus_widgets_loading_box_create_image_button (self, "WineZGUI", "winezgui.svg", FALSE);
	winezgui_button = _tmp7_;
	g_signal_connect_object (winezgui_button, "clicked", (GCallback) ___lambda385__gtk_button_clicked, self, 0);
	_tmp8_ = (GtkFlowBox*) gtk_flow_box_new ();
	g_object_ref_sink (_tmp8_);
	launchers_box = _tmp8_;
	gtk_flow_box_set_selection_mode (launchers_box, GTK_SELECTION_NONE);
	gtk_flow_box_append (launchers_box, (GtkWidget*) steam_button);
	gtk_flow_box_append (launchers_box, (GtkWidget*) faugus_button);
	gtk_flow_box_append (launchers_box, (GtkWidget*) lutris_button);
	gtk_flow_box_append (launchers_box, (GtkWidget*) hgl_button);
	gtk_flow_box_append (launchers_box, (GtkWidget*) bottles_button);
	gtk_flow_box_append (launchers_box, (GtkWidget*) winezgui_button);
	_tmp9_ = proton_plus_widgets_loading_box_create_wrapping_label (self, _ ("Important: Run the launcher once to initialize it properly."));
	third_label = _tmp9_;
	_tmp10_ = proton_plus_widgets_loading_box_create_icon_button (self, _ ("Check again"), "view-refresh-symbolic", TRUE);
	check_button = _tmp10_;
	g_signal_connect_object (check_button, "clicked", (GCallback) ___lambda386__gtk_button_clicked, self, 0);
	_tmp11_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
	g_object_ref_sink (_tmp11_);
	welcome_box = _tmp11_;
	gtk_box_append (welcome_box, (GtkWidget*) first_label);
	gtk_box_append (welcome_box, (GtkWidget*) second_label);
	gtk_box_append (welcome_box, (GtkWidget*) launchers_box);
	gtk_box_append (welcome_box, (GtkWidget*) third_label);
	gtk_box_append (welcome_box, (GtkWidget*) check_button);
	result = welcome_box;
	_g_object_unref0 (check_button);
	_g_object_unref0 (third_label);
	_g_object_unref0 (launchers_box);
	_g_object_unref0 (winezgui_button);
	_g_object_unref0 (bottles_button);
	_g_object_unref0 (hgl_button);
	_g_object_unref0 (lutris_button);
	_g_object_unref0 (faugus_button);
	_g_object_unref0 (steam_button);
	_g_object_unref0 (second_label);
	_g_object_unref0 (first_label);
	return result;
}

static GtkLabel*
proton_plus_widgets_loading_box_create_wrapping_label (ProtonPlusWidgetsLoadingBox* self,
                                                       const gchar* text)
{
	GtkLabel* _tmp0_ = NULL;
	GtkLabel* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (text != NULL, NULL);
	_tmp0_ = (GtkLabel*) gtk_label_new (text);
	gtk_label_set_wrap (_tmp0_, TRUE);
	gtk_label_set_justify (_tmp0_, GTK_JUSTIFY_CENTER);
	gtk_label_set_max_width_chars (_tmp0_, 48);
	g_object_ref_sink (_tmp0_);
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_loading_box_real_dispose (GObject* base)
{
	ProtonPlusWidgetsLoadingBox * self;
	self = (ProtonPlusWidgetsLoadingBox*) base;
	if (self->priv->slow_warning_timeout_id != ((guint) 0)) {
		g_source_remove (self->priv->slow_warning_timeout_id);
		self->priv->slow_warning_timeout_id = (guint) 0;
	}
	G_OBJECT_CLASS (proton_plus_widgets_loading_box_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_box_get_type (), GtkBox));
}

gboolean
proton_plus_widgets_loading_box_get_loading (ProtonPlusWidgetsLoadingBox* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_loading;
	return result;
}

void
proton_plus_widgets_loading_box_set_loading (ProtonPlusWidgetsLoadingBox* self,
                                             gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_loading_box_get_loading (self);
	if (old_value != value) {
		self->priv->_loading = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_loading_box_properties[PROTON_PLUS_WIDGETS_LOADING_BOX_LOADING_PROPERTY]);
	}
}

static AdwStatusPage*
proton_plus_widgets_loading_box_get_status_page (ProtonPlusWidgetsLoadingBox* self)
{
	AdwStatusPage* result;
	AdwStatusPage* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status_page;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_loading_box_set_status_page (ProtonPlusWidgetsLoadingBox* self,
                                                 AdwStatusPage* value)
{
	AdwStatusPage* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_status_page);
	self->priv->_status_page = _tmp0_;
}

static AdwSpinner*
proton_plus_widgets_loading_box_get_spinner (ProtonPlusWidgetsLoadingBox* self)
{
	AdwSpinner* result;
	AdwSpinner* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_spinner;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_loading_box_set_spinner (ProtonPlusWidgetsLoadingBox* self,
                                             AdwSpinner* value)
{
	AdwSpinner* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_spinner);
	self->priv->_spinner = _tmp0_;
}

static GtkFlowBox*
proton_plus_widgets_loading_box_get_bug_box (ProtonPlusWidgetsLoadingBox* self)
{
	GtkFlowBox* result;
	GtkFlowBox* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_bug_box;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_loading_box_set_bug_box (ProtonPlusWidgetsLoadingBox* self,
                                             GtkFlowBox* value)
{
	GtkFlowBox* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_bug_box);
	self->priv->_bug_box = _tmp0_;
}

static GtkBox*
proton_plus_widgets_loading_box_get_welcome_box (ProtonPlusWidgetsLoadingBox* self)
{
	GtkBox* result;
	GtkBox* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_welcome_box;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_loading_box_set_welcome_box (ProtonPlusWidgetsLoadingBox* self,
                                                 GtkBox* value)
{
	GtkBox* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_welcome_box);
	self->priv->_welcome_box = _tmp0_;
}

static GtkButton*
proton_plus_widgets_loading_box_get_retry_button (ProtonPlusWidgetsLoadingBox* self)
{
	GtkButton* result;
	GtkButton* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_retry_button;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_loading_box_set_retry_button (ProtonPlusWidgetsLoadingBox* self,
                                                  GtkButton* value)
{
	GtkButton* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_retry_button);
	self->priv->_retry_button = _tmp0_;
}

static GtkButton*
proton_plus_widgets_loading_box_get_report_button (ProtonPlusWidgetsLoadingBox* self)
{
	GtkButton* result;
	GtkButton* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_report_button;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_loading_box_set_report_button (ProtonPlusWidgetsLoadingBox* self,
                                                   GtkButton* value)
{
	GtkButton* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_report_button);
	self->priv->_report_button = _tmp0_;
}

static void
proton_plus_widgets_loading_box_class_init (ProtonPlusWidgetsLoadingBoxClass * klass,
                                            gpointer klass_data)
{
	proton_plus_widgets_loading_box_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsLoadingBox_private_offset);
	((GObjectClass *) klass)->dispose = (void (*) (GObject*)) proton_plus_widgets_loading_box_real_dispose;
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_loading_box_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_loading_box_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_loading_box_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_LOADING_BOX_LOADING_PROPERTY, proton_plus_widgets_loading_box_properties[PROTON_PLUS_WIDGETS_LOADING_BOX_LOADING_PROPERTY] = g_param_spec_boolean ("loading", "loading", "loading", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	proton_plus_widgets_loading_box_signals[PROTON_PLUS_WIDGETS_LOADING_BOX_LOADED_SIGNAL] = g_signal_new ("loaded", PROTON_PLUS_WIDGETS_LOADING_TYPE_BOX, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_LINKED_LIST);
}

static void
proton_plus_widgets_loading_box_instance_init (ProtonPlusWidgetsLoadingBox * self,
                                               gpointer klass)
{
	self->priv = proton_plus_widgets_loading_box_get_instance_private (self);
	self->priv->slow_warning_timeout_id = (guint) 0;
}

static void
proton_plus_widgets_loading_box_finalize (GObject * obj)
{
	ProtonPlusWidgetsLoadingBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_LOADING_TYPE_BOX, ProtonPlusWidgetsLoadingBox);
	_g_object_unref0 (self->priv->_status_page);
	_g_object_unref0 (self->priv->_spinner);
	_g_object_unref0 (self->priv->_bug_box);
	_g_object_unref0 (self->priv->_welcome_box);
	_g_object_unref0 (self->priv->_retry_button);
	_g_object_unref0 (self->priv->_report_button);
	G_OBJECT_CLASS (proton_plus_widgets_loading_box_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_loading_box_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsLoadingBoxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_loading_box_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsLoadingBox), 0, (GInstanceInitFunc) proton_plus_widgets_loading_box_instance_init, NULL };
	GType proton_plus_widgets_loading_box_type_id;
	proton_plus_widgets_loading_box_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsLoadingBox", &g_define_type_info, 0);
	ProtonPlusWidgetsLoadingBox_private_offset = g_type_add_instance_private (proton_plus_widgets_loading_box_type_id, sizeof (ProtonPlusWidgetsLoadingBoxPrivate));
	return proton_plus_widgets_loading_box_type_id;
}

GType
proton_plus_widgets_loading_box_get_type (void)
{
	static volatile gsize proton_plus_widgets_loading_box_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_loading_box_type_id__once)) {
		GType proton_plus_widgets_loading_box_type_id;
		proton_plus_widgets_loading_box_type_id = proton_plus_widgets_loading_box_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_loading_box_type_id__once, proton_plus_widgets_loading_box_type_id);
	}
	return proton_plus_widgets_loading_box_type_id__once;
}

static void
_vala_proton_plus_widgets_loading_box_get_property (GObject * object,
                                                    guint property_id,
                                                    GValue * value,
                                                    GParamSpec * pspec)
{
	ProtonPlusWidgetsLoadingBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_LOADING_TYPE_BOX, ProtonPlusWidgetsLoadingBox);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_LOADING_BOX_LOADING_PROPERTY:
		g_value_set_boolean (value, proton_plus_widgets_loading_box_get_loading (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_loading_box_set_property (GObject * object,
                                                    guint property_id,
                                                    const GValue * value,
                                                    GParamSpec * pspec)
{
	ProtonPlusWidgetsLoadingBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_LOADING_TYPE_BOX, ProtonPlusWidgetsLoadingBox);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_LOADING_BOX_LOADING_PROPERTY:
		proton_plus_widgets_loading_box_set_loading (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

