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

/*-
 * Copyright 2020 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 <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <granite-7.h>

#define ONBOARDING_STYLE_VIEW_INTERFACE_SCHEMA "org.gnome.desktop.interface"
#define ONBOARDING_STYLE_VIEW_STYLESHEET_KEY "gtk-theme"
#define ONBOARDING_STYLE_VIEW_STYLESHEET_PREFIX "io.elementary.stylesheet."
#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_STYLE_VIEW (onboarding_style_view_get_type ())
#define ONBOARDING_STYLE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_TYPE_STYLE_VIEW, OnboardingStyleView))
#define ONBOARDING_STYLE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_TYPE_STYLE_VIEW, OnboardingStyleViewClass))
#define ONBOARDING_IS_STYLE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_TYPE_STYLE_VIEW))
#define ONBOARDING_IS_STYLE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_TYPE_STYLE_VIEW))
#define ONBOARDING_STYLE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_TYPE_STYLE_VIEW, OnboardingStyleViewClass))

typedef struct _OnboardingStyleView OnboardingStyleView;
typedef struct _OnboardingStyleViewClass OnboardingStyleViewClass;
typedef struct _OnboardingStyleViewPrivate OnboardingStyleViewPrivate;

#define ONBOARDING_PANTHEON_TYPE_ACCOUNTS_SERVICE (onboarding_pantheon_accounts_service_get_type ())
#define ONBOARDING_PANTHEON_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_PANTHEON_TYPE_ACCOUNTS_SERVICE, OnboardingPantheonAccountsService))
#define ONBOARDING_PANTHEON_IS_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_PANTHEON_TYPE_ACCOUNTS_SERVICE))
#define ONBOARDING_PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ONBOARDING_PANTHEON_TYPE_ACCOUNTS_SERVICE, OnboardingPantheonAccountsServiceIface))

typedef struct _OnboardingPantheonAccountsService OnboardingPantheonAccountsService;
typedef struct _OnboardingPantheonAccountsServiceIface OnboardingPantheonAccountsServiceIface;

#define ONBOARDING_PANTHEON_TYPE_ACCOUNTS_SERVICE_PROXY (onboarding_pantheon_accounts_service_proxy_get_type ())
enum  {
	ONBOARDING_STYLE_VIEW_0_PROPERTY,
	ONBOARDING_STYLE_VIEW_NUM_PROPERTIES
};
static GParamSpec* onboarding_style_view_properties[ONBOARDING_STYLE_VIEW_NUM_PROPERTIES];
typedef enum  {
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_NO_PREFERENCE,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_RED,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_ORANGE,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_YELLOW,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GREEN,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_MINT,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BLUE,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PURPLE,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PINK,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BROWN,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GRAY,
	ONBOARDING_STYLE_VIEW_ACCENT_COLOR_LATTE
} OnboardingStyleViewAccentColor;

#define ONBOARDING_STYLE_VIEW_TYPE_ACCENT_COLOR (onboarding_style_view_accent_color_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW (onboarding_style_view_desktop_preview_get_type ())
#define ONBOARDING_STYLE_VIEW_DESKTOP_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW, OnboardingStyleViewDesktopPreview))
#define ONBOARDING_STYLE_VIEW_DESKTOP_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW, OnboardingStyleViewDesktopPreviewClass))
#define ONBOARDING_STYLE_VIEW_IS_DESKTOP_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW))
#define ONBOARDING_STYLE_VIEW_IS_DESKTOP_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW))
#define ONBOARDING_STYLE_VIEW_DESKTOP_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW, OnboardingStyleViewDesktopPreviewClass))

typedef struct _OnboardingStyleViewDesktopPreview OnboardingStyleViewDesktopPreview;
typedef struct _OnboardingStyleViewDesktopPreviewClass OnboardingStyleViewDesktopPreviewClass;
typedef struct _OnboardingStyleViewDesktopPreviewPrivate OnboardingStyleViewDesktopPreviewPrivate;
enum  {
	ONBOARDING_STYLE_VIEW_DESKTOP_PREVIEW_0_PROPERTY,
	ONBOARDING_STYLE_VIEW_DESKTOP_PREVIEW_NUM_PROPERTIES
};
static GParamSpec* onboarding_style_view_desktop_preview_properties[ONBOARDING_STYLE_VIEW_DESKTOP_PREVIEW_NUM_PROPERTIES];

#define ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON (onboarding_style_view_prefers_accent_color_button_get_type ())
#define ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, OnboardingStyleViewPrefersAccentColorButton))
#define ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, OnboardingStyleViewPrefersAccentColorButtonClass))
#define ONBOARDING_STYLE_VIEW_IS_PREFERS_ACCENT_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON))
#define ONBOARDING_STYLE_VIEW_IS_PREFERS_ACCENT_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON))
#define ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, OnboardingStyleViewPrefersAccentColorButtonClass))

typedef struct _OnboardingStyleViewPrefersAccentColorButton OnboardingStyleViewPrefersAccentColorButton;
typedef struct _OnboardingStyleViewPrefersAccentColorButtonClass OnboardingStyleViewPrefersAccentColorButtonClass;
typedef struct _OnboardingStyleViewPrefersAccentColorButtonPrivate OnboardingStyleViewPrefersAccentColorButtonPrivate;
enum  {
	ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_0_PROPERTY,
	ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY,
	ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY,
	ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_NUM_PROPERTIES
};
static GParamSpec* onboarding_style_view_prefers_accent_color_button_properties[ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
typedef struct _Block2Data Block2Data;

#define ONBOARDING_FDO_TYPE_ACCOUNTS (onboarding_fdo_accounts_get_type ())
#define ONBOARDING_FDO_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ONBOARDING_FDO_TYPE_ACCOUNTS, OnboardingFDOAccounts))
#define ONBOARDING_FDO_IS_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ONBOARDING_FDO_TYPE_ACCOUNTS))
#define ONBOARDING_FDO_ACCOUNTS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ONBOARDING_FDO_TYPE_ACCOUNTS, OnboardingFDOAccountsIface))

typedef struct _OnboardingFDOAccounts OnboardingFDOAccounts;
typedef struct _OnboardingFDOAccountsIface OnboardingFDOAccountsIface;

#define ONBOARDING_FDO_TYPE_ACCOUNTS_PROXY (onboarding_fdo_accounts_proxy_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

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

struct _OnboardingAbstractOnboardingViewClass {
	AdwNavigationPageClass parent_class;
};

struct _OnboardingStyleView {
	OnboardingAbstractOnboardingView parent_instance;
	OnboardingStyleViewPrivate * priv;
};

struct _OnboardingStyleViewClass {
	OnboardingAbstractOnboardingViewClass parent_class;
};

struct _OnboardingPantheonAccountsServiceIface {
	GTypeInterface parent_iface;
	gint (*get_prefers_accent_color) (OnboardingPantheonAccountsService* self);
	void (*set_prefers_accent_color) (OnboardingPantheonAccountsService* self, gint value);
	gint (*get_prefers_color_scheme) (OnboardingPantheonAccountsService* self);
	void (*set_prefers_color_scheme) (OnboardingPantheonAccountsService* self, gint value);
};

struct _OnboardingStyleViewPrivate {
	OnboardingPantheonAccountsService* pantheon_act;
};

struct _OnboardingStyleViewDesktopPreview {
	GtkWidget parent_instance;
	OnboardingStyleViewDesktopPreviewPrivate * priv;
};

struct _OnboardingStyleViewDesktopPreviewClass {
	GtkWidgetClass parent_class;
};

struct _OnboardingStyleViewPrefersAccentColorButton {
	GtkCheckButton parent_instance;
	OnboardingStyleViewPrefersAccentColorButtonPrivate * priv;
};

struct _OnboardingStyleViewPrefersAccentColorButtonClass {
	GtkCheckButtonClass parent_class;
};

struct _OnboardingStyleViewPrefersAccentColorButtonPrivate {
	OnboardingStyleViewAccentColor _color;
	OnboardingPantheonAccountsService* _pantheon_act;
};

struct _Block2Data {
	int _ref_count_;
	OnboardingStyleView* self;
	GSettings* settings;
};

struct _OnboardingFDOAccountsIface {
	GTypeInterface parent_iface;
	gchar* (*find_user_by_name) (OnboardingFDOAccounts* self, const gchar* username, GError** error);
};

static gint OnboardingStyleView_private_offset;
static gpointer onboarding_style_view_parent_class = NULL;
static gpointer onboarding_style_view_desktop_preview_parent_class = NULL;
static gint OnboardingStyleViewPrefersAccentColorButton_private_offset;
static gpointer onboarding_style_view_prefers_accent_color_button_parent_class = NULL;
static GSettings* onboarding_style_view_prefers_accent_color_button_interface_settings;
static GSettings* onboarding_style_view_prefers_accent_color_button_interface_settings = 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_style_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingStyleView, g_object_unref)
VALA_EXTERN GType onboarding_pantheon_accounts_service_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingPantheonAccountsService, g_object_unref)
VALA_EXTERN GType onboarding_pantheon_accounts_service_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint onboarding_pantheon_accounts_service_register_object (void* object,
                                                            GDBusConnection* connection,
                                                            const gchar* path,
                                                            GError** error);
static GType onboarding_style_view_accent_color_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static gchar* onboarding_style_view_accent_color_to_string (OnboardingStyleViewAccentColor self);
VALA_EXTERN OnboardingStyleView* onboarding_style_view_new (void);
VALA_EXTERN OnboardingStyleView* onboarding_style_view_construct (GType object_type);
static GType onboarding_style_view_desktop_preview_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingStyleViewDesktopPreview, g_object_unref)
static OnboardingStyleViewDesktopPreview* onboarding_style_view_desktop_preview_new (void);
static OnboardingStyleViewDesktopPreview* onboarding_style_view_desktop_preview_construct (GType object_type);
static GObject * onboarding_style_view_desktop_preview_constructor (GType type,
                                                             guint n_construct_properties,
                                                             GObjectConstructParam * construct_properties);
static GType onboarding_style_view_desktop_preview_get_type_once (void);
static GType onboarding_style_view_prefers_accent_color_button_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingStyleViewPrefersAccentColorButton, g_object_unref)
static OnboardingStyleViewPrefersAccentColorButton* onboarding_style_view_prefers_accent_color_button_new (OnboardingPantheonAccountsService* pantheon_act,
                                                                                                    OnboardingStyleViewAccentColor color);
static OnboardingStyleViewPrefersAccentColorButton* onboarding_style_view_prefers_accent_color_button_construct (GType object_type,
                                                                                                          OnboardingPantheonAccountsService* pantheon_act,
                                                                                                          OnboardingStyleViewAccentColor color);
static OnboardingStyleViewAccentColor onboarding_style_view_prefers_accent_color_button_get_color (OnboardingStyleViewPrefersAccentColorButton* self);
static void onboarding_style_view_prefers_accent_color_button_set_color (OnboardingStyleViewPrefersAccentColorButton* self,
                                                                  OnboardingStyleViewAccentColor value);
static OnboardingPantheonAccountsService* onboarding_style_view_prefers_accent_color_button_get_pantheon_act (OnboardingStyleViewPrefersAccentColorButton* self);
static void onboarding_style_view_prefers_accent_color_button_set_pantheon_act (OnboardingStyleViewPrefersAccentColorButton* self,
                                                                         OnboardingPantheonAccountsService* value);
static GObject * onboarding_style_view_prefers_accent_color_button_constructor (GType type,
                                                                         guint n_construct_properties,
                                                                         GObjectConstructParam * construct_properties);
static void _vala_GValue_array_free (GValue * array,
                              gssize array_length);
static void _onboarding_style_view_prefers_accent_color_button___lambda7_ (OnboardingStyleViewPrefersAccentColorButton* self);
VALA_EXTERN gint onboarding_pantheon_accounts_service_get_prefers_accent_color (OnboardingPantheonAccountsService* self);
static void __lambda8_ (OnboardingStyleViewPrefersAccentColorButton* self);
VALA_EXTERN void onboarding_pantheon_accounts_service_set_prefers_accent_color (OnboardingPantheonAccountsService* self,
                                                                    gint value);
static void ___lambda8__gtk_check_button_toggled (GtkCheckButton* _sender,
                                           gpointer self);
static void __onboarding_style_view_prefers_accent_color_button___lambda7__gtk_widget_realize (GtkWidget* _sender,
                                                                                        gpointer self);
static void onboarding_style_view_prefers_accent_color_button_finalize (GObject * obj);
static GType onboarding_style_view_prefers_accent_color_button_get_type_once (void);
static void _vala_onboarding_style_view_prefers_accent_color_button_get_property (GObject * object,
                                                                           guint property_id,
                                                                           GValue * value,
                                                                           GParamSpec * pspec);
static void _vala_onboarding_style_view_prefers_accent_color_button_set_property (GObject * object,
                                                                           guint property_id,
                                                                           const GValue * value,
                                                                           GParamSpec * pspec);
static GObject * onboarding_style_view_constructor (GType type,
                                             guint n_construct_properties,
                                             GObjectConstructParam * construct_properties);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
VALA_EXTERN GType onboarding_fdo_accounts_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint onboarding_fdo_accounts_register_object (void* object,
                                               GDBusConnection* connection,
                                               const gchar* path,
                                               GError** error);
VALA_EXTERN GType onboarding_fdo_accounts_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OnboardingFDOAccounts, g_object_unref)
VALA_EXTERN gchar* onboarding_fdo_accounts_find_user_by_name (OnboardingFDOAccounts* self,
                                                  const gchar* username,
                                                  GError** error);
VALA_EXTERN GraniteBox* onboarding_abstract_onboarding_view_get_custom_bin (OnboardingAbstractOnboardingView* self);
VALA_EXTERN gint onboarding_pantheon_accounts_service_get_prefers_color_scheme (OnboardingPantheonAccountsService* self);
static void _onboarding_style_view___lambda9_ (Block2Data* _data2_);
VALA_EXTERN void onboarding_pantheon_accounts_service_set_prefers_color_scheme (OnboardingPantheonAccountsService* self,
                                                                    gint value);
static void __onboarding_style_view___lambda9__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                                  gpointer self);
static void _onboarding_style_view___lambda10_ (Block2Data* _data2_);
static void __onboarding_style_view___lambda10__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                                   gpointer self);
static void _onboarding_style_view___lambda11_ (Block2Data* _data2_);
static void __onboarding_style_view___lambda11__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                                   gpointer self);
static void onboarding_style_view_finalize (GObject * obj);
static GType onboarding_style_view_get_type_once (void);

static inline gpointer
onboarding_style_view_get_instance_private (OnboardingStyleView* self)
{
	return G_STRUCT_MEMBER_P (self, OnboardingStyleView_private_offset);
}

static gchar*
onboarding_style_view_accent_color_to_string (OnboardingStyleViewAccentColor self)
{
	gchar* result;
	switch (self) {
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_RED:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("strawberry");
			result = _tmp0_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_ORANGE:
		{
			gchar* _tmp1_;
			_tmp1_ = g_strdup ("orange");
			result = _tmp1_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_YELLOW:
		{
			gchar* _tmp2_;
			_tmp2_ = g_strdup ("banana");
			result = _tmp2_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GREEN:
		{
			gchar* _tmp3_;
			_tmp3_ = g_strdup ("lime");
			result = _tmp3_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_MINT:
		{
			gchar* _tmp4_;
			_tmp4_ = g_strdup ("mint");
			result = _tmp4_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BLUE:
		{
			gchar* _tmp5_;
			_tmp5_ = g_strdup ("blueberry");
			result = _tmp5_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PURPLE:
		{
			gchar* _tmp6_;
			_tmp6_ = g_strdup ("grape");
			result = _tmp6_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PINK:
		{
			gchar* _tmp7_;
			_tmp7_ = g_strdup ("bubblegum");
			result = _tmp7_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BROWN:
		{
			gchar* _tmp8_;
			_tmp8_ = g_strdup ("cocoa");
			result = _tmp8_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GRAY:
		{
			gchar* _tmp9_;
			_tmp9_ = g_strdup ("slate");
			result = _tmp9_;
			return result;
		}
		case ONBOARDING_STYLE_VIEW_ACCENT_COLOR_LATTE:
		{
			gchar* _tmp10_;
			_tmp10_ = g_strdup ("latte");
			result = _tmp10_;
			return result;
		}
		default:
		{
			gchar* _tmp11_;
			_tmp11_ = g_strdup ("auto");
			result = _tmp11_;
			return result;
		}
	}
}

 G_GNUC_NO_INLINE static GType
onboarding_style_view_accent_color_get_type_once (void)
{
	static const GEnumValue values[] = {{ONBOARDING_STYLE_VIEW_ACCENT_COLOR_NO_PREFERENCE, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_NO_PREFERENCE", "no-preference"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_RED, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_RED", "red"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_ORANGE, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_ORANGE", "orange"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_YELLOW, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_YELLOW", "yellow"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GREEN, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GREEN", "green"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_MINT, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_MINT", "mint"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BLUE, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BLUE", "blue"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PURPLE, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PURPLE", "purple"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PINK, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PINK", "pink"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BROWN, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BROWN", "brown"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GRAY, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GRAY", "gray"}, {ONBOARDING_STYLE_VIEW_ACCENT_COLOR_LATTE, "ONBOARDING_STYLE_VIEW_ACCENT_COLOR_LATTE", "latte"}, {0, NULL, NULL}};
	GType onboarding_style_view_accent_color_type_id;
	onboarding_style_view_accent_color_type_id = g_enum_register_static ("OnboardingStyleViewAccentColor", values);
	return onboarding_style_view_accent_color_type_id;
}

static GType
onboarding_style_view_accent_color_get_type (void)
{
	static volatile gsize onboarding_style_view_accent_color_type_id__once = 0;
	if (g_once_init_enter (&onboarding_style_view_accent_color_type_id__once)) {
		GType onboarding_style_view_accent_color_type_id;
		onboarding_style_view_accent_color_type_id = onboarding_style_view_accent_color_get_type_once ();
		g_once_init_leave (&onboarding_style_view_accent_color_type_id__once, onboarding_style_view_accent_color_type_id);
	}
	return onboarding_style_view_accent_color_type_id__once;
}

OnboardingStyleView*
onboarding_style_view_construct (GType object_type)
{
	OnboardingStyleView * self = NULL;
	self = (OnboardingStyleView*) g_object_new (object_type, "view-name", "style", "description", _ ("Make it your own by choosing a visual style and accent color. Apps may" \
" override these with their own look."), "icon-name", "preferences-desktop-theme", "title", _ ("Choose Your Look"), NULL);
	return self;
}

OnboardingStyleView*
onboarding_style_view_new (void)
{
	return onboarding_style_view_construct (ONBOARDING_TYPE_STYLE_VIEW);
}

static OnboardingStyleViewDesktopPreview*
onboarding_style_view_desktop_preview_construct (GType object_type)
{
	OnboardingStyleViewDesktopPreview * self = NULL;
	self = (OnboardingStyleViewDesktopPreview*) g_object_new (object_type, NULL);
	return self;
}

static OnboardingStyleViewDesktopPreview*
onboarding_style_view_desktop_preview_new (void)
{
	return onboarding_style_view_desktop_preview_construct (ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW);
}

static GObject *
onboarding_style_view_desktop_preview_constructor (GType type,
                                                   guint n_construct_properties,
                                                   GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	OnboardingStyleViewDesktopPreview * self;
	parent_class = G_OBJECT_CLASS (onboarding_style_view_desktop_preview_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_STYLE_VIEW_TYPE_DESKTOP_PREVIEW, OnboardingStyleViewDesktopPreview);
	gtk_widget_add_css_class ((GtkWidget*) self, GRANITE_CSS_CLASS_CARD);
	return obj;
}

static void
onboarding_style_view_desktop_preview_base_init (OnboardingStyleViewDesktopPreviewClass * klass)
{
	gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (klass), "desktop-preview");
}

static void
onboarding_style_view_desktop_preview_class_init (OnboardingStyleViewDesktopPreviewClass * klass,
                                                  gpointer klass_data)
{
	onboarding_style_view_desktop_preview_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = onboarding_style_view_desktop_preview_constructor;
}

static void
onboarding_style_view_desktop_preview_instance_init (OnboardingStyleViewDesktopPreview * self,
                                                     gpointer klass)
{
}

 G_GNUC_NO_INLINE static GType
onboarding_style_view_desktop_preview_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (OnboardingStyleViewDesktopPreviewClass), (GBaseInitFunc) onboarding_style_view_desktop_preview_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) onboarding_style_view_desktop_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OnboardingStyleViewDesktopPreview), 0, (GInstanceInitFunc) onboarding_style_view_desktop_preview_instance_init, NULL };
	GType onboarding_style_view_desktop_preview_type_id;
	onboarding_style_view_desktop_preview_type_id = g_type_register_static (gtk_widget_get_type (), "OnboardingStyleViewDesktopPreview", &g_define_type_info, 0);
	return onboarding_style_view_desktop_preview_type_id;
}

static GType
onboarding_style_view_desktop_preview_get_type (void)
{
	static volatile gsize onboarding_style_view_desktop_preview_type_id__once = 0;
	if (g_once_init_enter (&onboarding_style_view_desktop_preview_type_id__once)) {
		GType onboarding_style_view_desktop_preview_type_id;
		onboarding_style_view_desktop_preview_type_id = onboarding_style_view_desktop_preview_get_type_once ();
		g_once_init_leave (&onboarding_style_view_desktop_preview_type_id__once, onboarding_style_view_desktop_preview_type_id);
	}
	return onboarding_style_view_desktop_preview_type_id__once;
}

static inline gpointer
onboarding_style_view_prefers_accent_color_button_get_instance_private (OnboardingStyleViewPrefersAccentColorButton* self)
{
	return G_STRUCT_MEMBER_P (self, OnboardingStyleViewPrefersAccentColorButton_private_offset);
}

static OnboardingStyleViewPrefersAccentColorButton*
onboarding_style_view_prefers_accent_color_button_construct (GType object_type,
                                                             OnboardingPantheonAccountsService* pantheon_act,
                                                             OnboardingStyleViewAccentColor color)
{
	OnboardingStyleViewPrefersAccentColorButton * self = NULL;
	self = (OnboardingStyleViewPrefersAccentColorButton*) g_object_new (object_type, "pantheon-act", pantheon_act, "color", color, NULL);
	return self;
}

static OnboardingStyleViewPrefersAccentColorButton*
onboarding_style_view_prefers_accent_color_button_new (OnboardingPantheonAccountsService* pantheon_act,
                                                       OnboardingStyleViewAccentColor color)
{
	return onboarding_style_view_prefers_accent_color_button_construct (ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, pantheon_act, color);
}

static OnboardingStyleViewAccentColor
onboarding_style_view_prefers_accent_color_button_get_color (OnboardingStyleViewPrefersAccentColorButton* self)
{
	OnboardingStyleViewAccentColor result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_color;
	return result;
}

static void
onboarding_style_view_prefers_accent_color_button_set_color (OnboardingStyleViewPrefersAccentColorButton* self,
                                                             OnboardingStyleViewAccentColor value)
{
	OnboardingStyleViewAccentColor old_value;
	g_return_if_fail (self != NULL);
	old_value = onboarding_style_view_prefers_accent_color_button_get_color (self);
	if (old_value != value) {
		self->priv->_color = value;
		g_object_notify_by_pspec ((GObject *) self, onboarding_style_view_prefers_accent_color_button_properties[ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY]);
	}
}

static OnboardingPantheonAccountsService*
onboarding_style_view_prefers_accent_color_button_get_pantheon_act (OnboardingStyleViewPrefersAccentColorButton* self)
{
	OnboardingPantheonAccountsService* result;
	OnboardingPantheonAccountsService* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_pantheon_act;
	result = _tmp0_;
	return result;
}

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

static void
onboarding_style_view_prefers_accent_color_button_set_pantheon_act (OnboardingStyleViewPrefersAccentColorButton* self,
                                                                    OnboardingPantheonAccountsService* value)
{
	OnboardingPantheonAccountsService* old_value;
	g_return_if_fail (self != NULL);
	old_value = onboarding_style_view_prefers_accent_color_button_get_pantheon_act (self);
	if (old_value != value) {
		OnboardingPantheonAccountsService* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_pantheon_act);
		self->priv->_pantheon_act = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, onboarding_style_view_prefers_accent_color_button_properties[ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY]);
	}
}

static void
_vala_GValue_array_free (GValue * array,
                         gssize array_length)
{
	if (array != NULL) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			g_value_unset (&array[i]);
		}
	}
	g_free (array);
}

static void
__lambda8_ (OnboardingStyleViewPrefersAccentColorButton* self)
{
	OnboardingStyleViewAccentColor _tmp0_;
	OnboardingPantheonAccountsService* _tmp7_;
	GVariant* _tmp8_;
	GVariant* _tmp9_;
	gboolean _tmp10_;
	_tmp0_ = self->priv->_color;
	if (_tmp0_ != ONBOARDING_STYLE_VIEW_ACCENT_COLOR_NO_PREFERENCE) {
		GSettings* _tmp1_;
		OnboardingStyleViewAccentColor _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		gchar* _tmp5_;
		gchar* _tmp6_;
		_tmp1_ = onboarding_style_view_prefers_accent_color_button_interface_settings;
		_tmp2_ = self->priv->_color;
		_tmp3_ = onboarding_style_view_accent_color_to_string (_tmp2_);
		_tmp4_ = _tmp3_;
		_tmp5_ = g_strconcat (ONBOARDING_STYLE_VIEW_STYLESHEET_PREFIX, _tmp4_, NULL);
		_tmp6_ = _tmp5_;
		g_settings_set_string (_tmp1_, ONBOARDING_STYLE_VIEW_STYLESHEET_KEY, _tmp6_);
		_g_free0 (_tmp6_);
		_g_free0 (_tmp4_);
	}
	_tmp7_ = self->priv->_pantheon_act;
	_tmp8_ = g_dbus_proxy_get_cached_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, g_dbus_proxy_get_type (), GDBusProxy), "PrefersAccentColor");
	_tmp9_ = _tmp8_;
	_tmp10_ = _tmp9_ != NULL;
	_g_variant_unref0 (_tmp9_);
	if (_tmp10_) {
		OnboardingPantheonAccountsService* _tmp11_;
		OnboardingStyleViewAccentColor _tmp12_;
		_tmp11_ = self->priv->_pantheon_act;
		_tmp12_ = self->priv->_color;
		onboarding_pantheon_accounts_service_set_prefers_accent_color (_tmp11_, (gint) _tmp12_);
	}
}

static void
___lambda8__gtk_check_button_toggled (GtkCheckButton* _sender,
                                      gpointer self)
{
	__lambda8_ ((OnboardingStyleViewPrefersAccentColorButton*) self);
}

static void
_onboarding_style_view_prefers_accent_color_button___lambda7_ (OnboardingStyleViewPrefersAccentColorButton* self)
{
	OnboardingStyleViewAccentColor _tmp0_;
	OnboardingPantheonAccountsService* _tmp1_;
	gint _tmp2_;
	gint _tmp3_;
	_tmp0_ = self->priv->_color;
	_tmp1_ = self->priv->_pantheon_act;
	_tmp2_ = onboarding_pantheon_accounts_service_get_prefers_accent_color (_tmp1_);
	_tmp3_ = _tmp2_;
	gtk_check_button_set_active ((GtkCheckButton*) self, _tmp0_ == _tmp3_);
	g_signal_connect_object ((GtkCheckButton*) self, "toggled", (GCallback) ___lambda8__gtk_check_button_toggled, self, 0);
}

static void
__onboarding_style_view_prefers_accent_color_button___lambda7__gtk_widget_realize (GtkWidget* _sender,
                                                                                   gpointer self)
{
	_onboarding_style_view_prefers_accent_color_button___lambda7_ ((OnboardingStyleViewPrefersAccentColorButton*) self);
}

static GObject *
onboarding_style_view_prefers_accent_color_button_constructor (GType type,
                                                               guint n_construct_properties,
                                                               GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	OnboardingStyleViewPrefersAccentColorButton * self;
	OnboardingStyleViewAccentColor _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GtkAccessibleProperty* _tmp3_;
	GtkAccessibleProperty* _tmp4_;
	gint _tmp4__length1;
	GValue _tmp5_ = {0};
	GValue* _tmp6_;
	GValue* _tmp7_;
	gint _tmp7__length1;
	parent_class = G_OBJECT_CLASS (onboarding_style_view_prefers_accent_color_button_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, OnboardingStyleViewPrefersAccentColorButton);
	g_object_set ((GtkAccessible*) self, "accessible-role", GTK_ACCESSIBLE_ROLE_RADIO, NULL);
	gtk_widget_add_css_class ((GtkWidget*) self, GRANITE_STYLE_CLASS_COLOR_BUTTON);
	_tmp0_ = self->priv->_color;
	_tmp1_ = onboarding_style_view_accent_color_to_string (_tmp0_);
	_tmp2_ = _tmp1_;
	gtk_widget_add_css_class ((GtkWidget*) self, _tmp2_);
	_g_free0 (_tmp2_);
	_tmp3_ = g_new0 (GtkAccessibleProperty, 1);
	_tmp3_[0] = GTK_ACCESSIBLE_PROPERTY_LABEL;
	_tmp4_ = _tmp3_;
	_tmp4__length1 = 1;
	g_value_init (&_tmp5_, G_TYPE_STRING);
	g_value_set_string (&_tmp5_, _ ("accent color"));
	_tmp6_ = g_new0 (GValue, 1);
	_tmp6_[0] = _tmp5_;
	_tmp7_ = _tmp6_;
	_tmp7__length1 = 1;
	gtk_accessible_update_property_value ((GtkAccessible*) self, (gint) 1, _tmp4_, _tmp7_);
	_tmp7_ = (_vala_GValue_array_free (_tmp7_, _tmp7__length1), NULL);
	_tmp4_ = (g_free (_tmp4_), NULL);
	g_signal_connect_object ((GtkWidget*) self, "realize", (GCallback) __onboarding_style_view_prefers_accent_color_button___lambda7__gtk_widget_realize, self, 0);
	return obj;
}

static void
onboarding_style_view_prefers_accent_color_button_class_init (OnboardingStyleViewPrefersAccentColorButtonClass * klass,
                                                              gpointer klass_data)
{
	GSettings* _tmp0_;
	onboarding_style_view_prefers_accent_color_button_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &OnboardingStyleViewPrefersAccentColorButton_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_onboarding_style_view_prefers_accent_color_button_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_onboarding_style_view_prefers_accent_color_button_set_property;
	G_OBJECT_CLASS (klass)->constructor = onboarding_style_view_prefers_accent_color_button_constructor;
	G_OBJECT_CLASS (klass)->finalize = onboarding_style_view_prefers_accent_color_button_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY, onboarding_style_view_prefers_accent_color_button_properties[ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY] = g_param_spec_enum ("color", "color", "color", ONBOARDING_STYLE_VIEW_TYPE_ACCENT_COLOR, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY, onboarding_style_view_prefers_accent_color_button_properties[ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY] = g_param_spec_object ("pantheon-act", "pantheon-act", "pantheon-act", ONBOARDING_PANTHEON_TYPE_ACCOUNTS_SERVICE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	_tmp0_ = g_settings_new (ONBOARDING_STYLE_VIEW_INTERFACE_SCHEMA);
	_g_object_unref0 (onboarding_style_view_prefers_accent_color_button_interface_settings);
	onboarding_style_view_prefers_accent_color_button_interface_settings = _tmp0_;
}

static void
onboarding_style_view_prefers_accent_color_button_instance_init (OnboardingStyleViewPrefersAccentColorButton * self,
                                                                 gpointer klass)
{
	self->priv = onboarding_style_view_prefers_accent_color_button_get_instance_private (self);
	self->priv->_pantheon_act = NULL;
}

static void
onboarding_style_view_prefers_accent_color_button_finalize (GObject * obj)
{
	OnboardingStyleViewPrefersAccentColorButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, OnboardingStyleViewPrefersAccentColorButton);
	_g_object_unref0 (self->priv->_pantheon_act);
	G_OBJECT_CLASS (onboarding_style_view_prefers_accent_color_button_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
onboarding_style_view_prefers_accent_color_button_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (OnboardingStyleViewPrefersAccentColorButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) onboarding_style_view_prefers_accent_color_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OnboardingStyleViewPrefersAccentColorButton), 0, (GInstanceInitFunc) onboarding_style_view_prefers_accent_color_button_instance_init, NULL };
	GType onboarding_style_view_prefers_accent_color_button_type_id;
	onboarding_style_view_prefers_accent_color_button_type_id = g_type_register_static (gtk_check_button_get_type (), "OnboardingStyleViewPrefersAccentColorButton", &g_define_type_info, 0);
	OnboardingStyleViewPrefersAccentColorButton_private_offset = g_type_add_instance_private (onboarding_style_view_prefers_accent_color_button_type_id, sizeof (OnboardingStyleViewPrefersAccentColorButtonPrivate));
	return onboarding_style_view_prefers_accent_color_button_type_id;
}

static GType
onboarding_style_view_prefers_accent_color_button_get_type (void)
{
	static volatile gsize onboarding_style_view_prefers_accent_color_button_type_id__once = 0;
	if (g_once_init_enter (&onboarding_style_view_prefers_accent_color_button_type_id__once)) {
		GType onboarding_style_view_prefers_accent_color_button_type_id;
		onboarding_style_view_prefers_accent_color_button_type_id = onboarding_style_view_prefers_accent_color_button_get_type_once ();
		g_once_init_leave (&onboarding_style_view_prefers_accent_color_button_type_id__once, onboarding_style_view_prefers_accent_color_button_type_id);
	}
	return onboarding_style_view_prefers_accent_color_button_type_id__once;
}

static void
_vala_onboarding_style_view_prefers_accent_color_button_get_property (GObject * object,
                                                                      guint property_id,
                                                                      GValue * value,
                                                                      GParamSpec * pspec)
{
	OnboardingStyleViewPrefersAccentColorButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, OnboardingStyleViewPrefersAccentColorButton);
	switch (property_id) {
		case ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY:
		g_value_set_enum (value, onboarding_style_view_prefers_accent_color_button_get_color (self));
		break;
		case ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY:
		g_value_set_object (value, onboarding_style_view_prefers_accent_color_button_get_pantheon_act (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_onboarding_style_view_prefers_accent_color_button_set_property (GObject * object,
                                                                      guint property_id,
                                                                      const GValue * value,
                                                                      GParamSpec * pspec)
{
	OnboardingStyleViewPrefersAccentColorButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, ONBOARDING_STYLE_VIEW_TYPE_PREFERS_ACCENT_COLOR_BUTTON, OnboardingStyleViewPrefersAccentColorButton);
	switch (property_id) {
		case ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY:
		onboarding_style_view_prefers_accent_color_button_set_color (self, g_value_get_enum (value));
		break;
		case ONBOARDING_STYLE_VIEW_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY:
		onboarding_style_view_prefers_accent_color_button_set_pantheon_act (self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static Block2Data*
block2_data_ref (Block2Data* _data2_)
{
	g_atomic_int_inc (&_data2_->_ref_count_);
	return _data2_;
}

static void
block2_data_unref (void * _userdata_)
{
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
		OnboardingStyleView* self;
		self = _data2_->self;
		_g_object_unref0 (_data2_->settings);
		_g_object_unref0 (self);
		g_slice_free (Block2Data, _data2_);
	}
}

static guint8*
string_get_data (const gchar* self,
                 gint* result_length1)
{
	guint8* result;
	guint8* res = NULL;
	gint res_length1;
	gint _res_size_;
	gint _tmp0_;
	gint _tmp1_;
	guint8* _tmp2_;
	gint _tmp2__length1;
	g_return_val_if_fail (self != NULL, NULL);
	res = (guint8*) self;
	res_length1 = -1;
	_res_size_ = res_length1;
	_tmp0_ = strlen (self);
	_tmp1_ = _tmp0_;
	res_length1 = (gint) _tmp1_;
	_tmp2_ = res;
	_tmp2__length1 = res_length1;
	if (result_length1) {
		*result_length1 = _tmp2__length1;
	}
	result = _tmp2_;
	return result;
}

static void
_onboarding_style_view___lambda9_ (Block2Data* _data2_)
{
	OnboardingStyleView* self;
	OnboardingPantheonAccountsService* _tmp0_;
	GSettings* _tmp1_;
	self = _data2_->self;
	_tmp0_ = self->priv->pantheon_act;
	onboarding_pantheon_accounts_service_set_prefers_color_scheme (_tmp0_, (gint) GRANITE_SETTINGS_COLOR_SCHEME_NO_PREFERENCE);
	_tmp1_ = _data2_->settings;
	g_settings_set_string (_tmp1_, "prefer-dark-schedule", "disabled");
}

static void
__onboarding_style_view___lambda9__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                             gpointer self)
{
	_onboarding_style_view___lambda9_ (self);
}

static void
_onboarding_style_view___lambda10_ (Block2Data* _data2_)
{
	OnboardingStyleView* self;
	OnboardingPantheonAccountsService* _tmp0_;
	GSettings* _tmp1_;
	self = _data2_->self;
	_tmp0_ = self->priv->pantheon_act;
	onboarding_pantheon_accounts_service_set_prefers_color_scheme (_tmp0_, (gint) GRANITE_SETTINGS_COLOR_SCHEME_DARK);
	_tmp1_ = _data2_->settings;
	g_settings_set_string (_tmp1_, "prefer-dark-schedule", "disabled");
}

static void
__onboarding_style_view___lambda10__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                              gpointer self)
{
	_onboarding_style_view___lambda10_ (self);
}

static void
_onboarding_style_view___lambda11_ (Block2Data* _data2_)
{
	OnboardingStyleView* self;
	GSettings* _tmp0_;
	self = _data2_->self;
	_tmp0_ = _data2_->settings;
	g_settings_set_string (_tmp0_, "prefer-dark-schedule", "sunset-to-sunrise");
}

static void
__onboarding_style_view___lambda11__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                              gpointer self)
{
	_onboarding_style_view___lambda11_ (self);
}

static GObject *
onboarding_style_view_constructor (GType type,
                                   guint n_construct_properties,
                                   GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	OnboardingStyleView * self;
	Block2Data* _data2_;
	gchar* user_path = NULL;
	const gchar* _tmp8_;
	OnboardingStyleViewDesktopPreview* prefer_default_card = NULL;
	OnboardingStyleViewDesktopPreview* _tmp13_;
	OnboardingStyleViewDesktopPreview* _tmp14_;
	GtkCheckButton* prefer_default_radio = NULL;
	GtkCheckButton* _tmp15_ = NULL;
	GtkCheckButton* _tmp16_;
	GtkLabel* default_label = NULL;
	GtkLabel* _tmp17_;
	GtkGrid* prefer_default_grid = NULL;
	GtkGrid* _tmp18_;
	GtkGrid* _tmp19_;
	OnboardingStyleViewDesktopPreview* _tmp20_;
	GtkGrid* _tmp21_;
	GtkLabel* _tmp22_;
	GtkGrid* _tmp23_;
	GtkCheckButton* _tmp24_;
	GtkCheckButton* _tmp25_;
	GtkAccessibleProperty* _tmp26_;
	GtkAccessibleProperty* _tmp27_;
	gint _tmp27__length1;
	GValue _tmp28_ = {0};
	GtkLabel* _tmp29_;
	const gchar* _tmp30_;
	const gchar* _tmp31_;
	GValue _tmp32_ = {0};
	GValue* _tmp33_;
	GValue* _tmp34_;
	gint _tmp34__length1;
	OnboardingStyleViewDesktopPreview* prefer_dark_card = NULL;
	OnboardingStyleViewDesktopPreview* _tmp35_;
	OnboardingStyleViewDesktopPreview* _tmp36_;
	GtkCheckButton* prefer_dark_radio = NULL;
	GtkCheckButton* _tmp37_;
	GtkCheckButton* _tmp38_;
	GtkCheckButton* _tmp39_ = NULL;
	GtkCheckButton* _tmp40_;
	GtkLabel* dark_label = NULL;
	GtkLabel* _tmp41_;
	GtkGrid* prefer_dark_grid = NULL;
	GtkGrid* _tmp42_;
	GtkGrid* _tmp43_;
	OnboardingStyleViewDesktopPreview* _tmp44_;
	GtkGrid* _tmp45_;
	GtkLabel* _tmp46_;
	GtkGrid* _tmp47_;
	GtkCheckButton* _tmp48_;
	GtkCheckButton* _tmp49_;
	GtkAccessibleProperty* _tmp50_;
	GtkAccessibleProperty* _tmp51_;
	gint _tmp51__length1;
	GValue _tmp52_ = {0};
	GtkLabel* _tmp53_;
	const gchar* _tmp54_;
	const gchar* _tmp55_;
	GValue _tmp56_ = {0};
	GValue* _tmp57_;
	GValue* _tmp58_;
	gint _tmp58__length1;
	OnboardingStyleViewDesktopPreview* prefer_scheduled_card = NULL;
	OnboardingStyleViewDesktopPreview* _tmp59_;
	OnboardingStyleViewDesktopPreview* _tmp60_;
	GtkCheckButton* prefer_scheduled_radio = NULL;
	GtkCheckButton* _tmp61_;
	GtkCheckButton* _tmp62_;
	GtkCheckButton* _tmp63_ = NULL;
	GtkCheckButton* _tmp64_;
	GtkLabel* prefer_scheduled_label = NULL;
	GtkLabel* _tmp65_ = NULL;
	GtkGrid* prefer_scheduled_grid = NULL;
	GtkGrid* _tmp66_;
	GtkGrid* _tmp67_;
	OnboardingStyleViewDesktopPreview* _tmp68_;
	GtkGrid* _tmp69_;
	GtkLabel* _tmp70_;
	GtkGrid* _tmp71_;
	GtkCheckButton* _tmp72_;
	GtkCheckButton* _tmp73_;
	GtkAccessibleProperty* _tmp74_;
	GtkAccessibleProperty* _tmp75_;
	gint _tmp75__length1;
	GValue _tmp76_ = {0};
	GtkLabel* _tmp77_;
	const gchar* _tmp78_;
	const gchar* _tmp79_;
	GValue _tmp80_ = {0};
	GValue* _tmp81_;
	GValue* _tmp82_;
	gint _tmp82__length1;
	GraniteBox* color_scheme_box = NULL;
	GraniteBox* _tmp83_;
	GraniteBox* _tmp84_;
	GtkCheckButton* _tmp85_;
	GraniteBox* _tmp86_;
	GtkCheckButton* _tmp87_;
	GraniteBox* _tmp88_;
	GtkCheckButton* _tmp89_;
	OnboardingStyleViewPrefersAccentColorButton* blueberry_button = NULL;
	OnboardingPantheonAccountsService* _tmp90_;
	gchar* _tmp91_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp92_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* mint_button = NULL;
	OnboardingPantheonAccountsService* _tmp93_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp94_;
	GtkCheckButton* _tmp95_;
	gchar* _tmp96_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp97_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* lime_button = NULL;
	OnboardingPantheonAccountsService* _tmp98_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp99_;
	GtkCheckButton* _tmp100_;
	gchar* _tmp101_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp102_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* banana_button = NULL;
	OnboardingPantheonAccountsService* _tmp103_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp104_;
	GtkCheckButton* _tmp105_;
	gchar* _tmp106_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp107_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* orange_button = NULL;
	OnboardingPantheonAccountsService* _tmp108_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp109_;
	GtkCheckButton* _tmp110_;
	gchar* _tmp111_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp112_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* strawberry_button = NULL;
	OnboardingPantheonAccountsService* _tmp113_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp114_;
	GtkCheckButton* _tmp115_;
	gchar* _tmp116_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp117_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* bubblegum_button = NULL;
	OnboardingPantheonAccountsService* _tmp118_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp119_;
	GtkCheckButton* _tmp120_;
	gchar* _tmp121_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp122_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* grape_button = NULL;
	OnboardingPantheonAccountsService* _tmp123_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp124_;
	GtkCheckButton* _tmp125_;
	gchar* _tmp126_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp127_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* cocoa_button = NULL;
	OnboardingPantheonAccountsService* _tmp128_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp129_;
	GtkCheckButton* _tmp130_;
	gchar* _tmp131_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp132_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* slate_button = NULL;
	OnboardingPantheonAccountsService* _tmp133_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp134_;
	GtkCheckButton* _tmp135_;
	gchar* _tmp136_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp137_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* latte_button = NULL;
	OnboardingPantheonAccountsService* _tmp138_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp139_;
	GtkCheckButton* _tmp140_;
	gchar* _tmp141_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp142_ = NULL;
	OnboardingStyleViewPrefersAccentColorButton* auto_button = NULL;
	OnboardingPantheonAccountsService* _tmp143_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp144_;
	GtkCheckButton* _tmp145_;
	gchar* _tmp146_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp147_ = NULL;
	GraniteBox* accent_box = NULL;
	GraniteBox* _tmp148_ = NULL;
	GraniteBox* _tmp149_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp150_;
	GraniteBox* _tmp151_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp152_;
	GraniteBox* _tmp153_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp154_;
	GraniteBox* _tmp155_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp156_;
	GraniteBox* _tmp157_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp158_;
	GraniteBox* _tmp159_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp160_;
	GraniteBox* _tmp161_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp162_;
	GraniteBox* _tmp163_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp164_;
	GraniteBox* _tmp165_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp166_;
	GraniteBox* _tmp167_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp168_;
	GraniteBox* _tmp169_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp170_;
	GraniteBox* _tmp171_;
	OnboardingStyleViewPrefersAccentColorButton* _tmp172_;
	GraniteBox* _tmp173_;
	GraniteBox* _tmp174_;
	GraniteBox* _tmp175_;
	GraniteBox* _tmp176_;
	GraniteBox* _tmp177_;
	GraniteBox* _tmp178_;
	GSettings* background_settings = NULL;
	GSettings* _tmp179_;
	gchar* background_uri = NULL;
	GSettings* _tmp180_;
	gchar* _tmp181_;
	GFile* file = NULL;
	const gchar* _tmp182_;
	GFile* _tmp183_;
	GFile* _tmp184_;
	GSettings* _tmp204_;
	GSettings* _tmp205_;
	gchar* _tmp206_;
	gchar* _tmp207_;
	gboolean _tmp208_;
	GtkCheckButton* _tmp215_;
	GtkCheckButton* _tmp216_;
	GtkCheckButton* _tmp217_;
	GError* _inner_error0_ = NULL;
	parent_class = G_OBJECT_CLASS (onboarding_style_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_TYPE_STYLE_VIEW, OnboardingStyleView);
	_data2_ = g_slice_new0 (Block2Data);
	_data2_->_ref_count_ = 1;
	_data2_->self = g_object_ref (self);
	user_path = NULL;
	{
		OnboardingFDOAccounts* accounts_service = NULL;
		OnboardingFDOAccounts* _tmp0_;
		gchar* _tmp1_ = NULL;
		OnboardingFDOAccounts* _tmp2_;
		const gchar* _tmp3_;
		gchar* _tmp4_;
		gchar* _tmp5_;
		_tmp0_ = (OnboardingFDOAccounts*) g_initable_new (ONBOARDING_FDO_TYPE_ACCOUNTS_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", "org.freedesktop.Accounts", "g-bus-type", G_BUS_TYPE_SYSTEM, "g-object-path", "/org/freedesktop/Accounts", "g-interface-name", "org.freedesktop.Accounts", NULL);
		accounts_service = (OnboardingFDOAccounts*) _tmp0_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_tmp2_ = accounts_service;
		_tmp3_ = g_get_user_name ();
		_tmp4_ = onboarding_fdo_accounts_find_user_by_name (_tmp2_, _tmp3_, &_inner_error0_);
		_tmp1_ = _tmp4_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_object_unref0 (accounts_service);
			goto __catch0_g_error;
		}
		_tmp5_ = _tmp1_;
		_tmp1_ = NULL;
		_g_free0 (user_path);
		user_path = _tmp5_;
		_g_free0 (_tmp1_);
		_g_object_unref0 (accounts_service);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp6_;
		const gchar* _tmp7_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp6_ = e;
		_tmp7_ = _tmp6_->message;
		g_critical ("StyleView.vala:89: %s", _tmp7_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		_g_free0 (user_path);
		block2_data_unref (_data2_);
		_data2_ = NULL;
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
	}
	_tmp8_ = user_path;
	if (_tmp8_ != NULL) {
		{
			OnboardingPantheonAccountsService* _tmp9_ = NULL;
			const gchar* _tmp10_;
			OnboardingPantheonAccountsService* _tmp11_;
			OnboardingPantheonAccountsService* _tmp12_;
			_tmp10_ = user_path;
			_tmp11_ = (OnboardingPantheonAccountsService*) g_initable_new (ONBOARDING_PANTHEON_TYPE_ACCOUNTS_SERVICE_PROXY, NULL, &_inner_error0_, "g-flags", G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES, "g-name", "org.freedesktop.Accounts", "g-bus-type", G_BUS_TYPE_SYSTEM, "g-object-path", _tmp10_, "g-interface-name", "io.elementary.pantheon.AccountsService", NULL);
			_tmp9_ = (OnboardingPantheonAccountsService*) _tmp11_;
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				goto __catch1_g_error;
			}
			_tmp12_ = _tmp9_;
			_tmp9_ = NULL;
			_g_object_unref0 (self->priv->pantheon_act);
			self->priv->pantheon_act = _tmp12_;
			_g_object_unref0 (_tmp9_);
		}
		goto __finally1;
		__catch1_g_error:
		{
			g_clear_error (&_inner_error0_);
			g_warning ("StyleView.vala:101: Unable to get AccountsService proxy, color scheme " \
"preference may be incorrect");
		}
		__finally1:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_free0 (user_path);
			block2_data_unref (_data2_);
			_data2_ = NULL;
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
		}
	}
	_tmp13_ = onboarding_style_view_desktop_preview_new ();
	g_object_ref_sink (_tmp13_);
	prefer_default_card = _tmp13_;
	_tmp14_ = prefer_default_card;
	gtk_widget_add_css_class ((GtkWidget*) _tmp14_, "prefer-default");
	_tmp15_ = (GtkCheckButton*) gtk_check_button_new ();
	g_object_set ((GtkAccessible*) _tmp15_, "accessible-role", GTK_ACCESSIBLE_ROLE_RADIO, NULL);
	g_object_ref_sink (_tmp15_);
	prefer_default_radio = _tmp15_;
	_tmp16_ = prefer_default_radio;
	gtk_widget_add_css_class ((GtkWidget*) _tmp16_, "image-button");
	_tmp17_ = (GtkLabel*) gtk_label_new (_ ("Default"));
	g_object_ref_sink (_tmp17_);
	default_label = _tmp17_;
	_tmp18_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp18_);
	prefer_default_grid = _tmp18_;
	_tmp19_ = prefer_default_grid;
	_tmp20_ = prefer_default_card;
	gtk_grid_attach (_tmp19_, (GtkWidget*) _tmp20_, 0, 0, 1, 1);
	_tmp21_ = prefer_default_grid;
	_tmp22_ = default_label;
	gtk_grid_attach (_tmp21_, (GtkWidget*) _tmp22_, 0, 1, 1, 1);
	_tmp23_ = prefer_default_grid;
	_tmp24_ = prefer_default_radio;
	gtk_widget_set_parent ((GtkWidget*) _tmp23_, (GtkWidget*) _tmp24_);
	_tmp25_ = prefer_default_radio;
	_tmp26_ = g_new0 (GtkAccessibleProperty, 2);
	_tmp26_[0] = GTK_ACCESSIBLE_PROPERTY_LABEL;
	_tmp26_[1] = GTK_ACCESSIBLE_PROPERTY_DESCRIPTION;
	_tmp27_ = _tmp26_;
	_tmp27__length1 = 2;
	g_value_init (&_tmp28_, G_TYPE_STRING);
	g_value_set_string (&_tmp28_, _ ("Style"));
	_tmp29_ = default_label;
	_tmp30_ = gtk_label_get_label (_tmp29_);
	_tmp31_ = _tmp30_;
	g_value_init (&_tmp32_, G_TYPE_STRING);
	g_value_set_string (&_tmp32_, _tmp31_);
	_tmp33_ = g_new0 (GValue, 2);
	_tmp33_[0] = _tmp28_;
	_tmp33_[1] = _tmp32_;
	_tmp34_ = _tmp33_;
	_tmp34__length1 = 2;
	gtk_accessible_update_property_value ((GtkAccessible*) _tmp25_, (gint) 2, _tmp27_, _tmp34_);
	_tmp34_ = (_vala_GValue_array_free (_tmp34_, _tmp34__length1), NULL);
	_tmp27_ = (g_free (_tmp27_), NULL);
	_tmp35_ = onboarding_style_view_desktop_preview_new ();
	g_object_ref_sink (_tmp35_);
	prefer_dark_card = _tmp35_;
	_tmp36_ = prefer_dark_card;
	gtk_widget_add_css_class ((GtkWidget*) _tmp36_, "prefer-dark");
	_tmp37_ = prefer_default_radio;
	_tmp38_ = _g_object_ref0 (_tmp37_);
	_tmp39_ = (GtkCheckButton*) gtk_check_button_new ();
	g_object_set ((GtkAccessible*) _tmp39_, "accessible-role", GTK_ACCESSIBLE_ROLE_RADIO, NULL);
	gtk_check_button_set_group (_tmp39_, _tmp38_);
	_g_object_unref0 (_tmp38_);
	g_object_ref_sink (_tmp39_);
	prefer_dark_radio = _tmp39_;
	_tmp40_ = prefer_dark_radio;
	gtk_widget_add_css_class ((GtkWidget*) _tmp40_, "image-button");
	_tmp41_ = (GtkLabel*) gtk_label_new (_ ("Dark"));
	g_object_ref_sink (_tmp41_);
	dark_label = _tmp41_;
	_tmp42_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp42_);
	prefer_dark_grid = _tmp42_;
	_tmp43_ = prefer_dark_grid;
	_tmp44_ = prefer_dark_card;
	gtk_grid_attach (_tmp43_, (GtkWidget*) _tmp44_, 0, 0, 1, 1);
	_tmp45_ = prefer_dark_grid;
	_tmp46_ = dark_label;
	gtk_grid_attach (_tmp45_, (GtkWidget*) _tmp46_, 0, 1, 1, 1);
	_tmp47_ = prefer_dark_grid;
	_tmp48_ = prefer_dark_radio;
	gtk_widget_set_parent ((GtkWidget*) _tmp47_, (GtkWidget*) _tmp48_);
	_tmp49_ = prefer_dark_radio;
	_tmp50_ = g_new0 (GtkAccessibleProperty, 2);
	_tmp50_[0] = GTK_ACCESSIBLE_PROPERTY_LABEL;
	_tmp50_[1] = GTK_ACCESSIBLE_PROPERTY_DESCRIPTION;
	_tmp51_ = _tmp50_;
	_tmp51__length1 = 2;
	g_value_init (&_tmp52_, G_TYPE_STRING);
	g_value_set_string (&_tmp52_, _ ("Style"));
	_tmp53_ = dark_label;
	_tmp54_ = gtk_label_get_label (_tmp53_);
	_tmp55_ = _tmp54_;
	g_value_init (&_tmp56_, G_TYPE_STRING);
	g_value_set_string (&_tmp56_, _tmp55_);
	_tmp57_ = g_new0 (GValue, 2);
	_tmp57_[0] = _tmp52_;
	_tmp57_[1] = _tmp56_;
	_tmp58_ = _tmp57_;
	_tmp58__length1 = 2;
	gtk_accessible_update_property_value ((GtkAccessible*) _tmp49_, (gint) 2, _tmp51_, _tmp58_);
	_tmp58_ = (_vala_GValue_array_free (_tmp58_, _tmp58__length1), NULL);
	_tmp51_ = (g_free (_tmp51_), NULL);
	_tmp59_ = onboarding_style_view_desktop_preview_new ();
	g_object_ref_sink (_tmp59_);
	prefer_scheduled_card = _tmp59_;
	_tmp60_ = prefer_scheduled_card;
	gtk_widget_add_css_class ((GtkWidget*) _tmp60_, "prefer-scheduled");
	_tmp61_ = prefer_default_radio;
	_tmp62_ = _g_object_ref0 (_tmp61_);
	_tmp63_ = (GtkCheckButton*) gtk_check_button_new ();
	g_object_set ((GtkAccessible*) _tmp63_, "accessible-role", GTK_ACCESSIBLE_ROLE_RADIO, NULL);
	gtk_check_button_set_group (_tmp63_, _tmp62_);
	_g_object_unref0 (_tmp62_);
	g_object_ref_sink (_tmp63_);
	prefer_scheduled_radio = _tmp63_;
	_tmp64_ = prefer_scheduled_radio;
	gtk_widget_add_css_class ((GtkWidget*) _tmp64_, "image-button");
	_tmp65_ = (GtkLabel*) gtk_label_new (_ ("Sunset to Sunrise"));
	gtk_label_set_justify (_tmp65_, GTK_JUSTIFY_CENTER);
	gtk_label_set_wrap (_tmp65_, TRUE);
	g_object_ref_sink (_tmp65_);
	prefer_scheduled_label = _tmp65_;
	_tmp66_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp66_);
	prefer_scheduled_grid = _tmp66_;
	_tmp67_ = prefer_scheduled_grid;
	_tmp68_ = prefer_scheduled_card;
	gtk_grid_attach (_tmp67_, (GtkWidget*) _tmp68_, 0, 0, 1, 1);
	_tmp69_ = prefer_scheduled_grid;
	_tmp70_ = prefer_scheduled_label;
	gtk_grid_attach (_tmp69_, (GtkWidget*) _tmp70_, 0, 1, 1, 1);
	_tmp71_ = prefer_scheduled_grid;
	_tmp72_ = prefer_scheduled_radio;
	gtk_widget_set_parent ((GtkWidget*) _tmp71_, (GtkWidget*) _tmp72_);
	_tmp73_ = prefer_scheduled_radio;
	_tmp74_ = g_new0 (GtkAccessibleProperty, 2);
	_tmp74_[0] = GTK_ACCESSIBLE_PROPERTY_LABEL;
	_tmp74_[1] = GTK_ACCESSIBLE_PROPERTY_DESCRIPTION;
	_tmp75_ = _tmp74_;
	_tmp75__length1 = 2;
	g_value_init (&_tmp76_, G_TYPE_STRING);
	g_value_set_string (&_tmp76_, _ ("Style"));
	_tmp77_ = prefer_scheduled_label;
	_tmp78_ = gtk_label_get_label (_tmp77_);
	_tmp79_ = _tmp78_;
	g_value_init (&_tmp80_, G_TYPE_STRING);
	g_value_set_string (&_tmp80_, _tmp79_);
	_tmp81_ = g_new0 (GValue, 2);
	_tmp81_[0] = _tmp76_;
	_tmp81_[1] = _tmp80_;
	_tmp82_ = _tmp81_;
	_tmp82__length1 = 2;
	gtk_accessible_update_property_value ((GtkAccessible*) _tmp73_, (gint) 2, _tmp75_, _tmp82_);
	_tmp82_ = (_vala_GValue_array_free (_tmp82_, _tmp82__length1), NULL);
	_tmp75_ = (g_free (_tmp75_), NULL);
	_tmp83_ = granite_box_new (GTK_ORIENTATION_HORIZONTAL, GRANITE_BOX_SPACING_HALF);
	g_object_ref_sink (_tmp83_);
	color_scheme_box = _tmp83_;
	_tmp84_ = color_scheme_box;
	_tmp85_ = prefer_default_radio;
	gtk_box_append ((GtkBox*) _tmp84_, (GtkWidget*) _tmp85_);
	_tmp86_ = color_scheme_box;
	_tmp87_ = prefer_dark_radio;
	gtk_box_append ((GtkBox*) _tmp86_, (GtkWidget*) _tmp87_);
	_tmp88_ = color_scheme_box;
	_tmp89_ = prefer_scheduled_radio;
	gtk_box_append ((GtkBox*) _tmp88_, (GtkWidget*) _tmp89_);
	_tmp90_ = self->priv->pantheon_act;
	_tmp91_ = g_strdup (_ ("Blueberry"));
	_tmp92_ = onboarding_style_view_prefers_accent_color_button_new (_tmp90_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BLUE);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp92_, _tmp91_);
	_g_free0 (_tmp91_);
	g_object_ref_sink (_tmp92_);
	blueberry_button = _tmp92_;
	_tmp93_ = self->priv->pantheon_act;
	_tmp94_ = blueberry_button;
	_tmp95_ = _g_object_ref0 ((GtkCheckButton*) _tmp94_);
	_tmp96_ = g_strdup (_ ("Mint"));
	_tmp97_ = onboarding_style_view_prefers_accent_color_button_new (_tmp93_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_MINT);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp97_, _tmp95_);
	_g_object_unref0 (_tmp95_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp97_, _tmp96_);
	_g_free0 (_tmp96_);
	g_object_ref_sink (_tmp97_);
	mint_button = _tmp97_;
	_tmp98_ = self->priv->pantheon_act;
	_tmp99_ = blueberry_button;
	_tmp100_ = _g_object_ref0 ((GtkCheckButton*) _tmp99_);
	_tmp101_ = g_strdup (_ ("Lime"));
	_tmp102_ = onboarding_style_view_prefers_accent_color_button_new (_tmp98_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GREEN);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp102_, _tmp100_);
	_g_object_unref0 (_tmp100_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp102_, _tmp101_);
	_g_free0 (_tmp101_);
	g_object_ref_sink (_tmp102_);
	lime_button = _tmp102_;
	_tmp103_ = self->priv->pantheon_act;
	_tmp104_ = blueberry_button;
	_tmp105_ = _g_object_ref0 ((GtkCheckButton*) _tmp104_);
	_tmp106_ = g_strdup (_ ("Banana"));
	_tmp107_ = onboarding_style_view_prefers_accent_color_button_new (_tmp103_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_YELLOW);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp107_, _tmp105_);
	_g_object_unref0 (_tmp105_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp107_, _tmp106_);
	_g_free0 (_tmp106_);
	g_object_ref_sink (_tmp107_);
	banana_button = _tmp107_;
	_tmp108_ = self->priv->pantheon_act;
	_tmp109_ = blueberry_button;
	_tmp110_ = _g_object_ref0 ((GtkCheckButton*) _tmp109_);
	_tmp111_ = g_strdup (_ ("Orange"));
	_tmp112_ = onboarding_style_view_prefers_accent_color_button_new (_tmp108_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_ORANGE);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp112_, _tmp110_);
	_g_object_unref0 (_tmp110_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp112_, _tmp111_);
	_g_free0 (_tmp111_);
	g_object_ref_sink (_tmp112_);
	orange_button = _tmp112_;
	_tmp113_ = self->priv->pantheon_act;
	_tmp114_ = blueberry_button;
	_tmp115_ = _g_object_ref0 ((GtkCheckButton*) _tmp114_);
	_tmp116_ = g_strdup (_ ("Strawberry"));
	_tmp117_ = onboarding_style_view_prefers_accent_color_button_new (_tmp113_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_RED);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp117_, _tmp115_);
	_g_object_unref0 (_tmp115_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp117_, _tmp116_);
	_g_free0 (_tmp116_);
	g_object_ref_sink (_tmp117_);
	strawberry_button = _tmp117_;
	_tmp118_ = self->priv->pantheon_act;
	_tmp119_ = blueberry_button;
	_tmp120_ = _g_object_ref0 ((GtkCheckButton*) _tmp119_);
	_tmp121_ = g_strdup (_ ("Bubblegum"));
	_tmp122_ = onboarding_style_view_prefers_accent_color_button_new (_tmp118_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PINK);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp122_, _tmp120_);
	_g_object_unref0 (_tmp120_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp122_, _tmp121_);
	_g_free0 (_tmp121_);
	g_object_ref_sink (_tmp122_);
	bubblegum_button = _tmp122_;
	_tmp123_ = self->priv->pantheon_act;
	_tmp124_ = blueberry_button;
	_tmp125_ = _g_object_ref0 ((GtkCheckButton*) _tmp124_);
	_tmp126_ = g_strdup (_ ("Grape"));
	_tmp127_ = onboarding_style_view_prefers_accent_color_button_new (_tmp123_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_PURPLE);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp127_, _tmp125_);
	_g_object_unref0 (_tmp125_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp127_, _tmp126_);
	_g_free0 (_tmp126_);
	g_object_ref_sink (_tmp127_);
	grape_button = _tmp127_;
	_tmp128_ = self->priv->pantheon_act;
	_tmp129_ = blueberry_button;
	_tmp130_ = _g_object_ref0 ((GtkCheckButton*) _tmp129_);
	_tmp131_ = g_strdup (_ ("Cocoa"));
	_tmp132_ = onboarding_style_view_prefers_accent_color_button_new (_tmp128_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_BROWN);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp132_, _tmp130_);
	_g_object_unref0 (_tmp130_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp132_, _tmp131_);
	_g_free0 (_tmp131_);
	g_object_ref_sink (_tmp132_);
	cocoa_button = _tmp132_;
	_tmp133_ = self->priv->pantheon_act;
	_tmp134_ = blueberry_button;
	_tmp135_ = _g_object_ref0 ((GtkCheckButton*) _tmp134_);
	_tmp136_ = g_strdup (_ ("Slate"));
	_tmp137_ = onboarding_style_view_prefers_accent_color_button_new (_tmp133_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_GRAY);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp137_, _tmp135_);
	_g_object_unref0 (_tmp135_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp137_, _tmp136_);
	_g_free0 (_tmp136_);
	g_object_ref_sink (_tmp137_);
	slate_button = _tmp137_;
	_tmp138_ = self->priv->pantheon_act;
	_tmp139_ = blueberry_button;
	_tmp140_ = _g_object_ref0 ((GtkCheckButton*) _tmp139_);
	_tmp141_ = g_strdup (_ ("Latte"));
	_tmp142_ = onboarding_style_view_prefers_accent_color_button_new (_tmp138_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_LATTE);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp142_, _tmp140_);
	_g_object_unref0 (_tmp140_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp142_, _tmp141_);
	_g_free0 (_tmp141_);
	g_object_ref_sink (_tmp142_);
	latte_button = _tmp142_;
	_tmp143_ = self->priv->pantheon_act;
	_tmp144_ = blueberry_button;
	_tmp145_ = _g_object_ref0 ((GtkCheckButton*) _tmp144_);
	_tmp146_ = g_strdup (_ ("Automatic based on wallpaper"));
	_tmp147_ = onboarding_style_view_prefers_accent_color_button_new (_tmp143_, ONBOARDING_STYLE_VIEW_ACCENT_COLOR_NO_PREFERENCE);
	gtk_check_button_set_group ((GtkCheckButton*) _tmp147_, _tmp145_);
	_g_object_unref0 (_tmp145_);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp147_, _tmp146_);
	_g_free0 (_tmp146_);
	g_object_ref_sink (_tmp147_);
	auto_button = _tmp147_;
	_tmp148_ = granite_box_new (GTK_ORIENTATION_HORIZONTAL, GRANITE_BOX_SPACING_HALF);
	gtk_widget_set_halign ((GtkWidget*) _tmp148_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp148_);
	accent_box = _tmp148_;
	_tmp149_ = accent_box;
	_tmp150_ = blueberry_button;
	gtk_box_append ((GtkBox*) _tmp149_, (GtkWidget*) _tmp150_);
	_tmp151_ = accent_box;
	_tmp152_ = mint_button;
	gtk_box_append ((GtkBox*) _tmp151_, (GtkWidget*) _tmp152_);
	_tmp153_ = accent_box;
	_tmp154_ = lime_button;
	gtk_box_append ((GtkBox*) _tmp153_, (GtkWidget*) _tmp154_);
	_tmp155_ = accent_box;
	_tmp156_ = banana_button;
	gtk_box_append ((GtkBox*) _tmp155_, (GtkWidget*) _tmp156_);
	_tmp157_ = accent_box;
	_tmp158_ = orange_button;
	gtk_box_append ((GtkBox*) _tmp157_, (GtkWidget*) _tmp158_);
	_tmp159_ = accent_box;
	_tmp160_ = strawberry_button;
	gtk_box_append ((GtkBox*) _tmp159_, (GtkWidget*) _tmp160_);
	_tmp161_ = accent_box;
	_tmp162_ = bubblegum_button;
	gtk_box_append ((GtkBox*) _tmp161_, (GtkWidget*) _tmp162_);
	_tmp163_ = accent_box;
	_tmp164_ = grape_button;
	gtk_box_append ((GtkBox*) _tmp163_, (GtkWidget*) _tmp164_);
	_tmp165_ = accent_box;
	_tmp166_ = cocoa_button;
	gtk_box_append ((GtkBox*) _tmp165_, (GtkWidget*) _tmp166_);
	_tmp167_ = accent_box;
	_tmp168_ = slate_button;
	gtk_box_append ((GtkBox*) _tmp167_, (GtkWidget*) _tmp168_);
	_tmp169_ = accent_box;
	_tmp170_ = latte_button;
	gtk_box_append ((GtkBox*) _tmp169_, (GtkWidget*) _tmp170_);
	_tmp171_ = accent_box;
	_tmp172_ = auto_button;
	gtk_box_append ((GtkBox*) _tmp171_, (GtkWidget*) _tmp172_);
	_tmp173_ = onboarding_abstract_onboarding_view_get_custom_bin ((OnboardingAbstractOnboardingView*) self);
	_tmp174_ = _tmp173_;
	_tmp175_ = color_scheme_box;
	gtk_box_append ((GtkBox*) _tmp174_, (GtkWidget*) _tmp175_);
	_tmp176_ = onboarding_abstract_onboarding_view_get_custom_bin ((OnboardingAbstractOnboardingView*) self);
	_tmp177_ = _tmp176_;
	_tmp178_ = accent_box;
	gtk_box_append ((GtkBox*) _tmp177_, (GtkWidget*) _tmp178_);
	_tmp179_ = g_settings_new ("org.gnome.desktop.background");
	background_settings = _tmp179_;
	_tmp180_ = background_settings;
	_tmp181_ = g_settings_get_string (_tmp180_, "picture-uri");
	background_uri = _tmp181_;
	_tmp182_ = background_uri;
	_tmp183_ = g_file_new_for_uri (_tmp182_);
	file = _tmp183_;
	_tmp184_ = file;
	if (g_file_query_exists (_tmp184_, NULL)) {
		GtkCssProvider* background_provider = NULL;
		GtkCssProvider* _tmp185_;
		GtkCssProvider* _tmp186_;
		const gchar* _tmp187_;
		const gchar* _tmp188_;
		const gchar* _tmp189_;
		gchar* _tmp190_;
		gchar* _tmp191_;
		guint8* _tmp192_;
		gint _tmp192__length1;
		gint _tmp193_ = 0;
		guint8* _tmp194_;
		gint _tmp194__length1;
		OnboardingStyleViewDesktopPreview* _tmp195_;
		GtkStyleContext* _tmp196_;
		GtkCssProvider* _tmp197_;
		OnboardingStyleViewDesktopPreview* _tmp198_;
		GtkStyleContext* _tmp199_;
		GtkCssProvider* _tmp200_;
		OnboardingStyleViewDesktopPreview* _tmp201_;
		GtkStyleContext* _tmp202_;
		GtkCssProvider* _tmp203_;
		_tmp185_ = gtk_css_provider_new ();
		background_provider = _tmp185_;
		_tmp186_ = background_provider;
		_tmp187_ = background_uri;
		_tmp188_ = background_uri;
		_tmp189_ = background_uri;
		_tmp190_ = g_strdup_printf ("\n" \
"                .prefer-default {\n" \
"                    background-image:\n" \
"                        url(\"resource:///io/elementary/onboarding/app" \
"earance-default.svg\"),\n" \
"                        url(\"%s\");\n" \
"                }\n" \
"\n" \
"                .prefer-dark {\n" \
"                    background-size: 86px 64px, cover, cover;\n" \
"                    background-image:\n" \
"                        url(\"resource:///io/elementary/onboarding/app" \
"earance-dark.svg\"),\n" \
"                        linear-gradient(\n" \
"                            to bottom,\n" \
"                            alpha(black, 0.45),\n" \
"                            alpha(black, 0.45)\n" \
"                        ),\n" \
"                        url(\"%s\");\n" \
"                }\n" \
"\n" \
"                .prefer-scheduled {\n" \
"                    background-image:\n" \
"                        url(\"resource:///io/elementary/onboarding/app" \
"earance-scheduled.svg\"),\n" \
"                        linear-gradient(\n" \
"                            120deg,\n" \
"                            transparent 50%,\n" \
"                            alpha(black, 0.45) 51%\n" \
"                        ),\n" \
"                        url(\"%s\");\n" \
"                }\n" \
"                ", _tmp187_, _tmp188_, _tmp189_);
		_tmp191_ = _tmp190_;
		_tmp192_ = string_get_data (_tmp191_, &_tmp193_);
		_tmp192__length1 = _tmp193_;
		_tmp194_ = _tmp192_;
		_tmp194__length1 = _tmp192__length1;
		gtk_css_provider_load_from_data (_tmp186_, (const char*) _tmp194_, (gssize) _tmp194__length1);
		_g_free0 (_tmp191_);
		_tmp195_ = prefer_default_card;
		_tmp196_ = gtk_widget_get_style_context ((GtkWidget*) _tmp195_);
		_tmp197_ = background_provider;
		gtk_style_context_add_provider (_tmp196_, (GtkStyleProvider*) _tmp197_, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
		_tmp198_ = prefer_dark_card;
		_tmp199_ = gtk_widget_get_style_context ((GtkWidget*) _tmp198_);
		_tmp200_ = background_provider;
		gtk_style_context_add_provider (_tmp199_, (GtkStyleProvider*) _tmp200_, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
		_tmp201_ = prefer_scheduled_card;
		_tmp202_ = gtk_widget_get_style_context ((GtkWidget*) _tmp201_);
		_tmp203_ = background_provider;
		gtk_style_context_add_provider (_tmp202_, (GtkStyleProvider*) _tmp203_, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
		_g_object_unref0 (background_provider);
	}
	_tmp204_ = g_settings_new ("io.elementary.settings-daemon.prefers-color-scheme");
	_data2_->settings = _tmp204_;
	_tmp205_ = _data2_->settings;
	_tmp206_ = g_settings_get_string (_tmp205_, "prefer-dark-schedule");
	_tmp207_ = _tmp206_;
	_tmp208_ = g_strcmp0 (_tmp207_, "sunset-to-sunrise") == 0;
	_g_free0 (_tmp207_);
	if (_tmp208_) {
		GtkCheckButton* _tmp209_;
		_tmp209_ = prefer_scheduled_radio;
		gtk_check_button_set_active (_tmp209_, TRUE);
	} else {
		OnboardingPantheonAccountsService* _tmp210_;
		gint _tmp211_;
		gint _tmp212_;
		_tmp210_ = self->priv->pantheon_act;
		_tmp211_ = onboarding_pantheon_accounts_service_get_prefers_color_scheme (_tmp210_);
		_tmp212_ = _tmp211_;
		if (_tmp212_ == ((gint) GRANITE_SETTINGS_COLOR_SCHEME_DARK)) {
			GtkCheckButton* _tmp213_;
			_tmp213_ = prefer_dark_radio;
			gtk_check_button_set_active (_tmp213_, TRUE);
		} else {
			GtkCheckButton* _tmp214_;
			_tmp214_ = prefer_default_radio;
			gtk_check_button_set_active (_tmp214_, TRUE);
		}
	}
	_tmp215_ = prefer_default_radio;
	g_signal_connect_data (_tmp215_, "toggled", (GCallback) __onboarding_style_view___lambda9__gtk_check_button_toggled, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
	_tmp216_ = prefer_dark_radio;
	g_signal_connect_data (_tmp216_, "toggled", (GCallback) __onboarding_style_view___lambda10__gtk_check_button_toggled, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
	_tmp217_ = prefer_scheduled_radio;
	g_signal_connect_data (_tmp217_, "toggled", (GCallback) __onboarding_style_view___lambda11__gtk_check_button_toggled, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
	_g_object_unref0 (file);
	_g_free0 (background_uri);
	_g_object_unref0 (background_settings);
	_g_object_unref0 (accent_box);
	_g_object_unref0 (auto_button);
	_g_object_unref0 (latte_button);
	_g_object_unref0 (slate_button);
	_g_object_unref0 (cocoa_button);
	_g_object_unref0 (grape_button);
	_g_object_unref0 (bubblegum_button);
	_g_object_unref0 (strawberry_button);
	_g_object_unref0 (orange_button);
	_g_object_unref0 (banana_button);
	_g_object_unref0 (lime_button);
	_g_object_unref0 (mint_button);
	_g_object_unref0 (blueberry_button);
	_g_object_unref0 (color_scheme_box);
	_g_object_unref0 (prefer_scheduled_grid);
	_g_object_unref0 (prefer_scheduled_label);
	_g_object_unref0 (prefer_scheduled_radio);
	_g_object_unref0 (prefer_scheduled_card);
	_g_object_unref0 (prefer_dark_grid);
	_g_object_unref0 (dark_label);
	_g_object_unref0 (prefer_dark_radio);
	_g_object_unref0 (prefer_dark_card);
	_g_object_unref0 (prefer_default_grid);
	_g_object_unref0 (default_label);
	_g_object_unref0 (prefer_default_radio);
	_g_object_unref0 (prefer_default_card);
	_g_free0 (user_path);
	block2_data_unref (_data2_);
	_data2_ = NULL;
	return obj;
}

static void
onboarding_style_view_class_init (OnboardingStyleViewClass * klass,
                                  gpointer klass_data)
{
	onboarding_style_view_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &OnboardingStyleView_private_offset);
	G_OBJECT_CLASS (klass)->constructor = onboarding_style_view_constructor;
	G_OBJECT_CLASS (klass)->finalize = onboarding_style_view_finalize;
}

static void
onboarding_style_view_instance_init (OnboardingStyleView * self,
                                     gpointer klass)
{
	self->priv = onboarding_style_view_get_instance_private (self);
	self->priv->pantheon_act = NULL;
}

static void
onboarding_style_view_finalize (GObject * obj)
{
	OnboardingStyleView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ONBOARDING_TYPE_STYLE_VIEW, OnboardingStyleView);
	_g_object_unref0 (self->priv->pantheon_act);
	G_OBJECT_CLASS (onboarding_style_view_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
onboarding_style_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (OnboardingStyleViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) onboarding_style_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OnboardingStyleView), 0, (GInstanceInitFunc) onboarding_style_view_instance_init, NULL };
	GType onboarding_style_view_type_id;
	onboarding_style_view_type_id = g_type_register_static (ONBOARDING_TYPE_ABSTRACT_ONBOARDING_VIEW, "OnboardingStyleView", &g_define_type_info, 0);
	OnboardingStyleView_private_offset = g_type_add_instance_private (onboarding_style_view_type_id, sizeof (OnboardingStyleViewPrivate));
	return onboarding_style_view_type_id;
}

GType
onboarding_style_view_get_type (void)
{
	static volatile gsize onboarding_style_view_type_id__once = 0;
	if (g_once_init_enter (&onboarding_style_view_type_id__once)) {
		GType onboarding_style_view_type_id;
		onboarding_style_view_type_id = onboarding_style_view_get_type_once ();
		g_once_init_leave (&onboarding_style_view_type_id__once, onboarding_style_view_type_id);
	}
	return onboarding_style_view_type_id__once;
}

