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

/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2023 elementary, Inc. (https://elementary.io)
 */

#include <adwaita.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <granite-7.h>
#include <stdlib.h>
#include <string.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_GUEST_VIEW (onboarding_guest_view_get_type ())
#define ONBOARDING_GUEST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_TYPE_GUEST_VIEW, OnboardingGuestView))
#define ONBOARDING_GUEST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_TYPE_GUEST_VIEW, OnboardingGuestViewClass))
#define ONBOARDING_IS_GUEST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_TYPE_GUEST_VIEW))
#define ONBOARDING_IS_GUEST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_TYPE_GUEST_VIEW))
#define ONBOARDING_GUEST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_TYPE_GUEST_VIEW, OnboardingGuestViewClass))

typedef struct _OnboardingGuestView OnboardingGuestView;
typedef struct _OnboardingGuestViewClass OnboardingGuestViewClass;
typedef struct _OnboardingGuestViewPrivate OnboardingGuestViewPrivate;
enum  {
	ONBOARDING_GUEST_VIEW_0_PROPERTY,
	ONBOARDING_GUEST_VIEW_NUM_PROPERTIES
};
static GParamSpec* onboarding_guest_view_properties[ONBOARDING_GUEST_VIEW_NUM_PROPERTIES];

#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 _OnboardingGuestView {
	OnboardingAbstractOnboardingView parent_instance;
	OnboardingGuestViewPrivate * priv;
};

struct _OnboardingGuestViewClass {
	OnboardingAbstractOnboardingViewClass parent_class;
};

static gpointer onboarding_guest_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_guest_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingGuestView, g_object_unref)
VALA_EXTERN OnboardingGuestView* onboarding_guest_view_new (void);
VALA_EXTERN OnboardingGuestView* onboarding_guest_view_construct (GType object_type);
static GObject * onboarding_guest_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_guest_view_get_type_once (void);

OnboardingGuestView*
onboarding_guest_view_construct (GType object_type)
{
	OnboardingGuestView * self = NULL;
	self = (OnboardingGuestView*) g_object_new (object_type, "view-name", "guest", "description", _ ("This temporary session will be reset when you log out."), "icon-name", "avatar-default", "title", _ ("Guest Session"), NULL);
	return self;
}

OnboardingGuestView*
onboarding_guest_view_new (void)
{
	return onboarding_guest_view_construct (ONBOARDING_TYPE_GUEST_VIEW);
}

static GObject *
onboarding_guest_view_constructor (GType type,
                                   guint n_construct_properties,
                                   GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	OnboardingGuestView * 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_guest_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_TYPE_GUEST_VIEW, OnboardingGuestView);
	_tmp0_ = onboarding_abstract_onboarding_view_list_item_new ("user-trash-symbolic", _ ("All data created during this session will be deleted"), "orange");
	g_object_ref_sink (_tmp0_);
	upgrades_item = _tmp0_;
	_tmp1_ = onboarding_abstract_onboarding_view_list_item_new ("preferences-system-symbolic", _ ("Settings will be reset to defaults"), "yellow");
	g_object_ref_sink (_tmp1_);
	features_item = _tmp1_;
	_tmp2_ = onboarding_abstract_onboarding_view_list_item_new ("drive-removable-media-symbolic", _ ("Save files on an external device to access them later"), "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_guest_view_class_init (OnboardingGuestViewClass * klass,
                                  gpointer klass_data)
{
	onboarding_guest_view_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = onboarding_guest_view_constructor;
}

static void
onboarding_guest_view_instance_init (OnboardingGuestView * self,
                                     gpointer klass)
{
}

 G_GNUC_NO_INLINE static GType
onboarding_guest_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (OnboardingGuestViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) onboarding_guest_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OnboardingGuestView), 0, (GInstanceInitFunc) onboarding_guest_view_instance_init, NULL };
	GType onboarding_guest_view_type_id;
	onboarding_guest_view_type_id = g_type_register_static (ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW, "OnboardingGuestView", &g_define_type_info, 0);
	return onboarding_guest_view_type_id;
}

GType
onboarding_guest_view_get_type (void)
{
	static volatile gsize onboarding_guest_view_type_id__once = 0;
	if (g_once_init_enter (&onboarding_guest_view_type_id__once)) {
		GType onboarding_guest_view_type_id;
		onboarding_guest_view_type_id = onboarding_guest_view_get_type_once ();
		g_once_init_leave (&onboarding_guest_view_type_id__once, onboarding_guest_view_type_id);
	}
	return onboarding_guest_view_type_id__once;
}

