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

/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2020-2023 elementary, Inc. (https://elementary.io)
 *
 * Authored by: Marius Meisenzahl <mariusmeisenzahl@gmail.com>
 *              Cassidy James Blaede <cassidy@elementary.io>
 */

#include <adwaita.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>
#include <granite-7.h>
#include <gtk/gtk.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
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW (onboarding_abstract_onboarding_view_get_type ())
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW, OnboardingAbstractOnboardingView))
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW, OnboardingAbstractOnboardingViewClass))
#define ONBOARDING_IS_ABSTRACT_ONBOARDING_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW))
#define ONBOARDING_IS_ABSTRACT_ONBOARDING_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW))
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW, OnboardingAbstractOnboardingViewClass))

typedef struct _OnboardingAbstractOnboardingView OnboardingAbstractOnboardingView;
typedef struct _OnboardingAbstractOnboardingViewClass OnboardingAbstractOnboardingViewClass;
typedef struct _OnboardingAbstractOnboardingViewPrivate OnboardingAbstractOnboardingViewPrivate;

#define ONBOARDING_TYPE_EARLY_ACCESS_VIEW (onboarding_early_access_view_get_type ())
#define ONBOARDING_EARLY_ACCESS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_TYPE_EARLY_ACCESS_VIEW, OnboardingEarlyAccessView))
#define ONBOARDING_EARLY_ACCESS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_TYPE_EARLY_ACCESS_VIEW, OnboardingEarlyAccessViewClass))
#define ONBOARDING_IS_EARLY_ACCESS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_TYPE_EARLY_ACCESS_VIEW))
#define ONBOARDING_IS_EARLY_ACCESS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_TYPE_EARLY_ACCESS_VIEW))
#define ONBOARDING_EARLY_ACCESS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_TYPE_EARLY_ACCESS_VIEW, OnboardingEarlyAccessViewClass))

typedef struct _OnboardingEarlyAccessView OnboardingEarlyAccessView;
typedef struct _OnboardingEarlyAccessViewClass OnboardingEarlyAccessViewClass;
typedef struct _OnboardingEarlyAccessViewPrivate OnboardingEarlyAccessViewPrivate;
enum  {
	ONBOARDING_EARLY_ACCESS_VIEW_0_PROPERTY,
	ONBOARDING_EARLY_ACCESS_VIEW_NUM_PROPERTIES
};
static GParamSpec* onboarding_early_access_view_properties[ONBOARDING_EARLY_ACCESS_VIEW_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))

#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_TYPE_LIST_ITEM (onboarding_abstract_onboarding_view_list_item_get_type ())
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_LIST_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_ABSTRACT_ONBOARDING_VIEW_TYPE_LIST_ITEM, OnboardingAbstractOnboardingViewListItem))
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_LIST_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_ABSTRACT_ONBOARDING_VIEW_TYPE_LIST_ITEM, OnboardingAbstractOnboardingViewListItemClass))
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_IS_LIST_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_ABSTRACT_ONBOARDING_VIEW_TYPE_LIST_ITEM))
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_IS_LIST_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_ABSTRACT_ONBOARDING_VIEW_TYPE_LIST_ITEM))
#define ONBOARDING_ABSTRACT_ONBOARDING_VIEW_LIST_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_ABSTRACT_ONBOARDING_VIEW_TYPE_LIST_ITEM, OnboardingAbstractOnboardingViewListItemClass))

typedef struct _OnboardingAbstractOnboardingViewListItem OnboardingAbstractOnboardingViewListItem;
typedef struct _OnboardingAbstractOnboardingViewListItemClass OnboardingAbstractOnboardingViewListItemClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _OnboardingAbstractOnboardingView {
	AdwNavigationPage parent_instance;
	OnboardingAbstractOnboardingViewPrivate * priv;
};

struct _OnboardingAbstractOnboardingViewClass {
	AdwNavigationPageClass parent_class;
};

struct _OnboardingEarlyAccessView {
	OnboardingAbstractOnboardingView parent_instance;
	OnboardingEarlyAccessViewPrivate * priv;
};

struct _OnboardingEarlyAccessViewClass {
	OnboardingAbstractOnboardingViewClass parent_class;
};

static gpointer onboarding_early_access_view_parent_class = NULL;

VALA_EXTERN GType onboarding_abstract_onboarding_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingAbstractOnboardingView, g_object_unref)
VALA_EXTERN GType onboarding_early_access_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingEarlyAccessView, g_object_unref)
VALA_EXTERN OnboardingEarlyAccessView* onboarding_early_access_view_new (void);
VALA_EXTERN OnboardingEarlyAccessView* onboarding_early_access_view_construct (GType object_type);
VALA_EXTERN const gchar* utils_get_os_name (void);
static GObject * onboarding_early_access_view_constructor (GType type,
                                                    guint n_construct_properties,
                                                    GObjectConstructParam * construct_properties);
VALA_EXTERN GType onboarding_abstract_onboarding_view_list_item_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingAbstractOnboardingViewListItem, g_object_unref)
VALA_EXTERN OnboardingAbstractOnboardingViewListItem* onboarding_abstract_onboarding_view_list_item_new (const gchar* icon_name,
                                                                                             const gchar* label,
                                                                                             const gchar* color);
VALA_EXTERN OnboardingAbstractOnboardingViewListItem* onboarding_abstract_onboarding_view_list_item_construct (GType object_type,
                                                                                                   const gchar* icon_name,
                                                                                                   const gchar* label,
                                                                                                   const gchar* color);
VALA_EXTERN GraniteBox* onboarding_abstract_onboarding_view_get_custom_bin (OnboardingAbstractOnboardingView* self);
static GType onboarding_early_access_view_get_type_once (void);

OnboardingEarlyAccessView*
onboarding_early_access_view_construct (GType object_type)
{
	OnboardingEarlyAccessView * self = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	_tmp0_ = utils_get_os_name ();
	_tmp1_ = _tmp0_;
	_tmp2_ = g_strdup_printf (_ ("Only use this pre-release version of %s on devices dedicated for devel" \
"opment."), _tmp1_);
	_tmp3_ = _tmp2_;
	self = (OnboardingEarlyAccessView*) g_object_new (object_type, "view-name", "early-access", "description", _tmp3_, "icon-name", "applications-development", "title", _ ("Early Access Build"), NULL);
	_g_free0 (_tmp3_);
	return self;
}

OnboardingEarlyAccessView*
onboarding_early_access_view_new (void)
{
	return onboarding_early_access_view_construct (ONBOARDING_TYPE_EARLY_ACCESS_VIEW);
}

static GObject *
onboarding_early_access_view_constructor (GType type,
                                          guint n_construct_properties,
                                          GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	OnboardingEarlyAccessView * self;
	OnboardingAbstractOnboardingViewListItem* upgrades_item = NULL;
	OnboardingAbstractOnboardingViewListItem* _tmp0_;
	OnboardingAbstractOnboardingViewListItem* features_item = NULL;
	OnboardingAbstractOnboardingViewListItem* _tmp1_;
	OnboardingAbstractOnboardingViewListItem* bugs_item = NULL;
	OnboardingAbstractOnboardingViewListItem* _tmp2_;
	GraniteBox* _tmp3_;
	GraniteBox* _tmp4_;
	OnboardingAbstractOnboardingViewListItem* _tmp5_;
	GraniteBox* _tmp6_;
	GraniteBox* _tmp7_;
	OnboardingAbstractOnboardingViewListItem* _tmp8_;
	GraniteBox* _tmp9_;
	GraniteBox* _tmp10_;
	OnboardingAbstractOnboardingViewListItem* _tmp11_;
	parent_class = G_OBJECT_CLASS (onboarding_early_access_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_TYPE_EARLY_ACCESS_VIEW, OnboardingEarlyAccessView);
	_tmp0_ = onboarding_abstract_onboarding_view_list_item_new ("software-update-available-symbolic", _ ("You will not be able to upgrade to a stable release"), "orange");
	g_object_ref_sink (_tmp0_);
	upgrades_item = _tmp0_;
	_tmp1_ = onboarding_abstract_onboarding_view_list_item_new ("dialog-warning-symbolic", _ ("Some features may be missing or incomplete"), "yellow");
	g_object_ref_sink (_tmp1_);
	features_item = _tmp1_;
	_tmp2_ = onboarding_abstract_onboarding_view_list_item_new ("bug-symbolic", _ ("Report issues using the Feedback app"), "green");
	g_object_ref_sink (_tmp2_);
	bugs_item = _tmp2_;
	_tmp3_ = onboarding_abstract_onboarding_view_get_custom_bin ((OnboardingAbstractOnboardingView*) self);
	_tmp4_ = _tmp3_;
	_tmp5_ = upgrades_item;
	gtk_box_append ((GtkBox*) _tmp4_, (GtkWidget*) _tmp5_);
	_tmp6_ = onboarding_abstract_onboarding_view_get_custom_bin ((OnboardingAbstractOnboardingView*) self);
	_tmp7_ = _tmp6_;
	_tmp8_ = features_item;
	gtk_box_append ((GtkBox*) _tmp7_, (GtkWidget*) _tmp8_);
	_tmp9_ = onboarding_abstract_onboarding_view_get_custom_bin ((OnboardingAbstractOnboardingView*) self);
	_tmp10_ = _tmp9_;
	_tmp11_ = bugs_item;
	gtk_box_append ((GtkBox*) _tmp10_, (GtkWidget*) _tmp11_);
	_g_object_unref0 (bugs_item);
	_g_object_unref0 (features_item);
	_g_object_unref0 (upgrades_item);
	return obj;
}

static void
onboarding_early_access_view_class_init (OnboardingEarlyAccessViewClass * klass,
                                         gpointer klass_data)
{
	onboarding_early_access_view_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = onboarding_early_access_view_constructor;
}

static void
onboarding_early_access_view_instance_init (OnboardingEarlyAccessView * self,
                                            gpointer klass)
{
}

 G_GNUC_NO_INLINE static GType
onboarding_early_access_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (OnboardingEarlyAccessViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) onboarding_early_access_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OnboardingEarlyAccessView), 0, (GInstanceInitFunc) onboarding_early_access_view_instance_init, NULL };
	GType onboarding_early_access_view_type_id;
	onboarding_early_access_view_type_id = g_type_register_static (ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW, "OnboardingEarlyAccessView", &g_define_type_info, 0);
	return onboarding_early_access_view_type_id;
}

GType
onboarding_early_access_view_get_type (void)
{
	static volatile gsize onboarding_early_access_view_type_id__once = 0;
	if (g_once_init_enter (&onboarding_early_access_view_type_id__once)) {
		GType onboarding_early_access_view_type_id;
		onboarding_early_access_view_type_id = onboarding_early_access_view_get_type_once ();
		g_once_init_leave (&onboarding_early_access_view_type_id__once, onboarding_early_access_view_type_id);
	}
	return onboarding_early_access_view_type_id__once;
}

