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

/*-
 * Copyright (c) 2019 elementary, Inc. (https://elementary.io)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#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>
#include <float.h>
#include <math.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_FINISH_VIEW (onboarding_finish_view_get_type ())
#define ONBOARDING_FINISH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_TYPE_FINISH_VIEW, OnboardingFinishView))
#define ONBOARDING_FINISH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_TYPE_FINISH_VIEW, OnboardingFinishViewClass))
#define ONBOARDING_IS_FINISH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_TYPE_FINISH_VIEW))
#define ONBOARDING_IS_FINISH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_TYPE_FINISH_VIEW))
#define ONBOARDING_FINISH_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_TYPE_FINISH_VIEW, OnboardingFinishViewClass))

typedef struct _OnboardingFinishView OnboardingFinishView;
typedef struct _OnboardingFinishViewClass OnboardingFinishViewClass;
typedef struct _OnboardingFinishViewPrivate OnboardingFinishViewPrivate;
enum  {
	ONBOARDING_FINISH_VIEW_0_PROPERTY,
	ONBOARDING_FINISH_VIEW_NUM_PROPERTIES
};
static GParamSpec* onboarding_finish_view_properties[ONBOARDING_FINISH_VIEW_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))

#define ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW (onboarding_finish_view_finish_row_get_type ())
#define ONBOARDING_FINISH_VIEW_FINISH_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, OnboardingFinishViewFinishRow))
#define ONBOARDING_FINISH_VIEW_FINISH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, OnboardingFinishViewFinishRowClass))
#define ONBOARDING_FINISH_VIEW_IS_FINISH_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW))
#define ONBOARDING_FINISH_VIEW_IS_FINISH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW))
#define ONBOARDING_FINISH_VIEW_FINISH_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, OnboardingFinishViewFinishRowClass))

typedef struct _OnboardingFinishViewFinishRow OnboardingFinishViewFinishRow;
typedef struct _OnboardingFinishViewFinishRowClass OnboardingFinishViewFinishRowClass;
typedef struct _OnboardingFinishViewFinishRowPrivate OnboardingFinishViewFinishRowPrivate;
enum  {
	ONBOARDING_FINISH_VIEW_FINISH_ROW_0_PROPERTY,
	ONBOARDING_FINISH_VIEW_FINISH_ROW_ICON_NAME_PROPERTY,
	ONBOARDING_FINISH_VIEW_FINISH_ROW_LABEL_STRING_PROPERTY,
	ONBOARDING_FINISH_VIEW_FINISH_ROW_NUM_PROPERTIES
};
static GParamSpec* onboarding_finish_view_finish_row_properties[ONBOARDING_FINISH_VIEW_FINISH_ROW_NUM_PROPERTIES];
#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 _OnboardingFinishView {
	OnboardingAbstractOnboardingView parent_instance;
	OnboardingFinishViewPrivate * priv;
};

struct _OnboardingFinishViewClass {
	OnboardingAbstractOnboardingViewClass parent_class;
};

struct _OnboardingFinishViewFinishRow {
	GraniteListItem parent_instance;
	OnboardingFinishViewFinishRowPrivate * priv;
};

struct _OnboardingFinishViewFinishRowClass {
	GraniteListItemClass parent_class;
};

struct _OnboardingFinishViewFinishRowPrivate {
	gchar* _icon_name;
	gchar* _label_string;
};

static gpointer onboarding_finish_view_parent_class = NULL;
static gint OnboardingFinishViewFinishRow_private_offset;
static gpointer onboarding_finish_view_finish_row_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_finish_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingFinishView, g_object_unref)
VALA_EXTERN OnboardingFinishView* onboarding_finish_view_new (void);
VALA_EXTERN OnboardingFinishView* onboarding_finish_view_construct (GType object_type);
VALA_EXTERN const gchar* utils_get_os_name (void);
static GType onboarding_finish_view_finish_row_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingFinishViewFinishRow, g_object_unref)
static OnboardingFinishViewFinishRow* onboarding_finish_view_finish_row_new (const gchar* label_string,
                                                                      const gchar* icon_name);
static OnboardingFinishViewFinishRow* onboarding_finish_view_finish_row_construct (GType object_type,
                                                                            const gchar* label_string,
                                                                            const gchar* icon_name);
static const gchar* onboarding_finish_view_finish_row_get_icon_name (OnboardingFinishViewFinishRow* self);
static void onboarding_finish_view_finish_row_set_icon_name (OnboardingFinishViewFinishRow* self,
                                                      const gchar* value);
static const gchar* onboarding_finish_view_finish_row_get_label_string (OnboardingFinishViewFinishRow* self);
static void onboarding_finish_view_finish_row_set_label_string (OnboardingFinishViewFinishRow* self,
                                                         const gchar* value);
static GObject * onboarding_finish_view_finish_row_constructor (GType type,
                                                         guint n_construct_properties,
                                                         GObjectConstructParam * construct_properties);
static void onboarding_finish_view_finish_row_finalize (GObject * obj);
static GType onboarding_finish_view_finish_row_get_type_once (void);
static void _vala_onboarding_finish_view_finish_row_get_property (GObject * object,
                                                           guint property_id,
                                                           GValue * value,
                                                           GParamSpec * pspec);
static void _vala_onboarding_finish_view_finish_row_set_property (GObject * object,
                                                           guint property_id,
                                                           const GValue * value,
                                                           GParamSpec * pspec);
static GObject * onboarding_finish_view_constructor (GType type,
                                              guint n_construct_properties,
                                              GObjectConstructParam * construct_properties);
VALA_EXTERN GraniteBox* onboarding_abstract_onboarding_view_get_custom_bin (OnboardingAbstractOnboardingView* self);
static GType onboarding_finish_view_get_type_once (void);

OnboardingFinishView*
onboarding_finish_view_construct (GType object_type)
{
	OnboardingFinishView * self = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	_tmp0_ = utils_get_os_name ();
	_tmp1_ = _tmp0_;
	_tmp2_ = g_strdup_printf (_ ("Enjoy using %s! You can always visit System Settings to set up hardwar" \
"e or change your preferences."), _tmp1_);
	_tmp3_ = _tmp2_;
	self = (OnboardingFinishView*) g_object_new (object_type, "view-name", "finish", "description", _tmp3_, "icon-name", "process-completed", "title", _ ("Ready to Go"), NULL);
	_g_free0 (_tmp3_);
	return self;
}

OnboardingFinishView*
onboarding_finish_view_new (void)
{
	return onboarding_finish_view_construct (ONBOARDING_TYPE_FINISH_VIEW);
}

static inline gpointer
onboarding_finish_view_finish_row_get_instance_private (OnboardingFinishViewFinishRow* self)
{
	return G_STRUCT_MEMBER_P (self, OnboardingFinishViewFinishRow_private_offset);
}

static OnboardingFinishViewFinishRow*
onboarding_finish_view_finish_row_construct (GType object_type,
                                             const gchar* label_string,
                                             const gchar* icon_name)
{
	OnboardingFinishViewFinishRow * self = NULL;
	g_return_val_if_fail (label_string != NULL, NULL);
	g_return_val_if_fail (icon_name != NULL, NULL);
	self = (OnboardingFinishViewFinishRow*) g_object_new (object_type, "label-string", label_string, "icon-name", icon_name, NULL);
	return self;
}

static OnboardingFinishViewFinishRow*
onboarding_finish_view_finish_row_new (const gchar* label_string,
                                       const gchar* icon_name)
{
	return onboarding_finish_view_finish_row_construct (ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, label_string, icon_name);
}

static const gchar*
onboarding_finish_view_finish_row_get_icon_name (OnboardingFinishViewFinishRow* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_icon_name;
	result = _tmp0_;
	return result;
}

static void
onboarding_finish_view_finish_row_set_icon_name (OnboardingFinishViewFinishRow* self,
                                                 const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = onboarding_finish_view_finish_row_get_icon_name (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_icon_name);
		self->priv->_icon_name = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, onboarding_finish_view_finish_row_properties[ONBOARDING_FINISH_VIEW_FINISH_ROW_ICON_NAME_PROPERTY]);
	}
}

static const gchar*
onboarding_finish_view_finish_row_get_label_string (OnboardingFinishViewFinishRow* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_label_string;
	result = _tmp0_;
	return result;
}

static void
onboarding_finish_view_finish_row_set_label_string (OnboardingFinishViewFinishRow* self,
                                                    const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = onboarding_finish_view_finish_row_get_label_string (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_label_string);
		self->priv->_label_string = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, onboarding_finish_view_finish_row_properties[ONBOARDING_FINISH_VIEW_FINISH_ROW_LABEL_STRING_PROPERTY]);
	}
}

static GObject *
onboarding_finish_view_finish_row_constructor (GType type,
                                               guint n_construct_properties,
                                               GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	OnboardingFinishViewFinishRow * self;
	GtkImage* image = NULL;
	const gchar* _tmp0_;
	GtkImage* _tmp1_ = NULL;
	GtkLabel* left_label = NULL;
	const gchar* _tmp2_;
	GtkLabel* _tmp3_ = NULL;
	GraniteBox* box = NULL;
	GraniteBox* _tmp4_;
	GraniteBox* _tmp5_;
	GtkImage* _tmp6_;
	GraniteBox* _tmp7_;
	GtkLabel* _tmp8_;
	GraniteBox* _tmp9_;
	parent_class = G_OBJECT_CLASS (onboarding_finish_view_finish_row_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, OnboardingFinishViewFinishRow);
	_tmp0_ = self->priv->_icon_name;
	_tmp1_ = (GtkImage*) gtk_image_new_from_icon_name (_tmp0_);
	gtk_image_set_pixel_size (_tmp1_, 16);
	g_object_ref_sink (_tmp1_);
	image = _tmp1_;
	_tmp2_ = self->priv->_label_string;
	_tmp3_ = (GtkLabel*) gtk_label_new (_tmp2_);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp3_, TRUE);
	gtk_label_set_max_width_chars (_tmp3_, 35);
	gtk_label_set_wrap (_tmp3_, TRUE);
	gtk_label_set_xalign (_tmp3_, (gfloat) 0);
	g_object_ref_sink (_tmp3_);
	left_label = _tmp3_;
	_tmp4_ = granite_box_new (GTK_ORIENTATION_HORIZONTAL, GRANITE_BOX_SPACING_SINGLE);
	g_object_ref_sink (_tmp4_);
	box = _tmp4_;
	_tmp5_ = box;
	_tmp6_ = image;
	gtk_box_append ((GtkBox*) _tmp5_, (GtkWidget*) _tmp6_);
	_tmp7_ = box;
	_tmp8_ = left_label;
	gtk_box_append ((GtkBox*) _tmp7_, (GtkWidget*) _tmp8_);
	_tmp9_ = box;
	granite_list_item_set_child ((GraniteListItem*) self, (GtkWidget*) _tmp9_);
	gtk_widget_add_css_class ((GtkWidget*) self, "link");
	_g_object_unref0 (box);
	_g_object_unref0 (left_label);
	_g_object_unref0 (image);
	return obj;
}

static void
onboarding_finish_view_finish_row_class_init (OnboardingFinishViewFinishRowClass * klass,
                                              gpointer klass_data)
{
	onboarding_finish_view_finish_row_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &OnboardingFinishViewFinishRow_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_onboarding_finish_view_finish_row_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_onboarding_finish_view_finish_row_set_property;
	G_OBJECT_CLASS (klass)->constructor = onboarding_finish_view_finish_row_constructor;
	G_OBJECT_CLASS (klass)->finalize = onboarding_finish_view_finish_row_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), ONBOARDING_FINISH_VIEW_FINISH_ROW_ICON_NAME_PROPERTY, onboarding_finish_view_finish_row_properties[ONBOARDING_FINISH_VIEW_FINISH_ROW_ICON_NAME_PROPERTY] = g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), ONBOARDING_FINISH_VIEW_FINISH_ROW_LABEL_STRING_PROPERTY, onboarding_finish_view_finish_row_properties[ONBOARDING_FINISH_VIEW_FINISH_ROW_LABEL_STRING_PROPERTY] = g_param_spec_string ("label-string", "label-string", "label-string", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}

static void
onboarding_finish_view_finish_row_instance_init (OnboardingFinishViewFinishRow * self,
                                                 gpointer klass)
{
	self->priv = onboarding_finish_view_finish_row_get_instance_private (self);
}

static void
onboarding_finish_view_finish_row_finalize (GObject * obj)
{
	OnboardingFinishViewFinishRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, OnboardingFinishViewFinishRow);
	_g_free0 (self->priv->_icon_name);
	_g_free0 (self->priv->_label_string);
	G_OBJECT_CLASS (onboarding_finish_view_finish_row_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
onboarding_finish_view_finish_row_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (OnboardingFinishViewFinishRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) onboarding_finish_view_finish_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OnboardingFinishViewFinishRow), 0, (GInstanceInitFunc) onboarding_finish_view_finish_row_instance_init, NULL };
	GType onboarding_finish_view_finish_row_type_id;
	onboarding_finish_view_finish_row_type_id = g_type_register_static (GRANITE_TYPE_LIST_ITEM, "OnboardingFinishViewFinishRow", &g_define_type_info, 0);
	OnboardingFinishViewFinishRow_private_offset = g_type_add_instance_private (onboarding_finish_view_finish_row_type_id, sizeof (OnboardingFinishViewFinishRowPrivate));
	return onboarding_finish_view_finish_row_type_id;
}

static GType
onboarding_finish_view_finish_row_get_type (void)
{
	static volatile gsize onboarding_finish_view_finish_row_type_id__once = 0;
	if (g_once_init_enter (&onboarding_finish_view_finish_row_type_id__once)) {
		GType onboarding_finish_view_finish_row_type_id;
		onboarding_finish_view_finish_row_type_id = onboarding_finish_view_finish_row_get_type_once ();
		g_once_init_leave (&onboarding_finish_view_finish_row_type_id__once, onboarding_finish_view_finish_row_type_id);
	}
	return onboarding_finish_view_finish_row_type_id__once;
}

static void
_vala_onboarding_finish_view_finish_row_get_property (GObject * object,
                                                      guint property_id,
                                                      GValue * value,
                                                      GParamSpec * pspec)
{
	OnboardingFinishViewFinishRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, OnboardingFinishViewFinishRow);
	switch (property_id) {
		case ONBOARDING_FINISH_VIEW_FINISH_ROW_ICON_NAME_PROPERTY:
		g_value_set_string (value, onboarding_finish_view_finish_row_get_icon_name (self));
		break;
		case ONBOARDING_FINISH_VIEW_FINISH_ROW_LABEL_STRING_PROPERTY:
		g_value_set_string (value, onboarding_finish_view_finish_row_get_label_string (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_onboarding_finish_view_finish_row_set_property (GObject * object,
                                                      guint property_id,
                                                      const GValue * value,
                                                      GParamSpec * pspec)
{
	OnboardingFinishViewFinishRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, ONBOARDING_FINISH_VIEW_TYPE_FINISH_ROW, OnboardingFinishViewFinishRow);
	switch (property_id) {
		case ONBOARDING_FINISH_VIEW_FINISH_ROW_ICON_NAME_PROPERTY:
		onboarding_finish_view_finish_row_set_icon_name (self, g_value_get_string (value));
		break;
		case ONBOARDING_FINISH_VIEW_FINISH_ROW_LABEL_STRING_PROPERTY:
		onboarding_finish_view_finish_row_set_label_string (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static GObject *
onboarding_finish_view_constructor (GType type,
                                    guint n_construct_properties,
                                    GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	OnboardingFinishView * self;
	OnboardingFinishViewFinishRow* launcher_row = NULL;
	OnboardingFinishViewFinishRow* _tmp0_;
	OnboardingFinishViewFinishRow* quicksettings_row = NULL;
	OnboardingFinishViewFinishRow* _tmp1_;
	OnboardingFinishViewFinishRow* wallpaper_row = NULL;
	OnboardingFinishViewFinishRow* _tmp2_;
	GtkListBox* listbox = NULL;
	GtkListBox* _tmp3_ = NULL;
	GtkListBox* _tmp4_;
	GtkListBox* _tmp5_;
	OnboardingFinishViewFinishRow* _tmp6_;
	GtkListBox* _tmp7_;
	OnboardingFinishViewFinishRow* _tmp8_;
	GtkListBox* _tmp9_;
	OnboardingFinishViewFinishRow* _tmp10_;
	GraniteBox* _tmp11_;
	GraniteBox* _tmp12_;
	GtkListBox* _tmp13_;
	parent_class = G_OBJECT_CLASS (onboarding_finish_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_TYPE_FINISH_VIEW, OnboardingFinishView);
	_tmp0_ = onboarding_finish_view_finish_row_new (_ ("From the Applications menu or by searching for specific settings"), "start-here-symbolic");
	g_object_ref_sink (_tmp0_);
	launcher_row = _tmp0_;
	_tmp1_ = onboarding_finish_view_finish_row_new (_ ("From the Quick Settings menu or by middle-clicking toggle buttons"), "quick-settings-symbolic");
	g_object_ref_sink (_tmp1_);
	quicksettings_row = _tmp1_;
	_tmp2_ = onboarding_finish_view_finish_row_new (_ ("By secondary-clicking on the wallpaper"), "clicking-symbolic");
	g_object_ref_sink (_tmp2_);
	wallpaper_row = _tmp2_;
	_tmp3_ = (GtkListBox*) gtk_list_box_new ();
	gtk_list_box_set_show_separators (_tmp3_, TRUE);
	gtk_list_box_set_selection_mode (_tmp3_, GTK_SELECTION_NONE);
	g_object_ref_sink (_tmp3_);
	listbox = _tmp3_;
	_tmp4_ = listbox;
	gtk_widget_add_css_class ((GtkWidget*) _tmp4_, GRANITE_CSS_CLASS_CARD);
	_tmp5_ = listbox;
	_tmp6_ = launcher_row;
	gtk_list_box_append (_tmp5_, (GtkWidget*) _tmp6_);
	_tmp7_ = listbox;
	_tmp8_ = quicksettings_row;
	gtk_list_box_append (_tmp7_, (GtkWidget*) _tmp8_);
	_tmp9_ = listbox;
	_tmp10_ = wallpaper_row;
	gtk_list_box_append (_tmp9_, (GtkWidget*) _tmp10_);
	_tmp11_ = onboarding_abstract_onboarding_view_get_custom_bin ((OnboardingAbstractOnboardingView*) self);
	_tmp12_ = _tmp11_;
	_tmp13_ = listbox;
	gtk_box_append ((GtkBox*) _tmp12_, (GtkWidget*) _tmp13_);
	_g_object_unref0 (listbox);
	_g_object_unref0 (wallpaper_row);
	_g_object_unref0 (quicksettings_row);
	_g_object_unref0 (launcher_row);
	return obj;
}

static void
onboarding_finish_view_class_init (OnboardingFinishViewClass * klass,
                                   gpointer klass_data)
{
	onboarding_finish_view_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = onboarding_finish_view_constructor;
}

static void
onboarding_finish_view_instance_init (OnboardingFinishView * self,
                                      gpointer klass)
{
}

 G_GNUC_NO_INLINE static GType
onboarding_finish_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (OnboardingFinishViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) onboarding_finish_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OnboardingFinishView), 0, (GInstanceInitFunc) onboarding_finish_view_instance_init, NULL };
	GType onboarding_finish_view_type_id;
	onboarding_finish_view_type_id = g_type_register_static (ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW, "OnboardingFinishView", &g_define_type_info, 0);
	return onboarding_finish_view_type_id;
}

GType
onboarding_finish_view_get_type (void)
{
	static volatile gsize onboarding_finish_view_type_id__once = 0;
	if (g_once_init_enter (&onboarding_finish_view_type_id__once)) {
		GType onboarding_finish_view_type_id;
		onboarding_finish_view_type_id = onboarding_finish_view_get_type_once ();
		g_once_init_leave (&onboarding_finish_view_type_id__once, onboarding_finish_view_type_id);
	}
	return onboarding_finish_view_type_id__once;
}

