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

/*
* Copyright 2018–2021 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, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
*/

#include "pantheon-desktop.h"
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <float.h>
#include <math.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <granite.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <handy.h>

#define PANTHEON_SHELL_APPEARANCE_INTERFACE_SCHEMA "org.gnome.desktop.interface"
#define PANTHEON_SHELL_APPEARANCE_STYLESHEET_KEY "gtk-theme"
#define PANTHEON_SHELL_APPEARANCE_STYLESHEET_PREFIX "io.elementary.stylesheet."

enum  {
	PANTHEON_SHELL_APPEARANCE_0_PROPERTY,
	PANTHEON_SHELL_APPEARANCE_NUM_PROPERTIES
};
static GParamSpec* pantheon_shell_appearance_properties[PANTHEON_SHELL_APPEARANCE_NUM_PROPERTIES];
typedef enum  {
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_NO_PREFERENCE,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_RED,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_ORANGE,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_YELLOW,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GREEN,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_MINT,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BLUE,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PURPLE,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PINK,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BROWN,
	PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GRAY
} PantheonShellAppearanceAccentColor;

#define PANTHEON_SHELL_APPEARANCE_TYPE_ACCENT_COLOR (pantheon_shell_appearance_accent_color_get_type ())

#define PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON (pantheon_shell_appearance_prefers_accent_color_button_get_type ())
#define PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, PantheonShellAppearancePrefersAccentColorButton))
#define PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, PantheonShellAppearancePrefersAccentColorButtonClass))
#define PANTHEON_SHELL_APPEARANCE_IS_PREFERS_ACCENT_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON))
#define PANTHEON_SHELL_APPEARANCE_IS_PREFERS_ACCENT_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON))
#define PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, PantheonShellAppearancePrefersAccentColorButtonClass))

typedef struct _PantheonShellAppearancePrefersAccentColorButton PantheonShellAppearancePrefersAccentColorButton;
typedef struct _PantheonShellAppearancePrefersAccentColorButtonClass PantheonShellAppearancePrefersAccentColorButtonClass;
typedef struct _PantheonShellAppearancePrefersAccentColorButtonPrivate PantheonShellAppearancePrefersAccentColorButtonPrivate;

#define PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE (pantheon_shell_pantheon_accounts_service_get_type ())
#define PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE, PantheonShellPantheonAccountsService))
#define PANTHEON_SHELL_PANTHEON_IS_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE))
#define PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE, PantheonShellPantheonAccountsServiceIface))

typedef struct _PantheonShellPantheonAccountsService PantheonShellPantheonAccountsService;
typedef struct _PantheonShellPantheonAccountsServiceIface PantheonShellPantheonAccountsServiceIface;

#define PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE_PROXY (pantheon_shell_pantheon_accounts_service_proxy_get_type ())
enum  {
	PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_0_PROPERTY,
	PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY,
	PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY,
	PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_NUM_PROPERTIES
};
static GParamSpec* pantheon_shell_appearance_prefers_accent_color_button_properties[PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
typedef struct _Block1Data Block1Data;

#define PANTHEON_SHELL_FDO_TYPE_ACCOUNTS (pantheon_shell_fdo_accounts_get_type ())
#define PANTHEON_SHELL_FDO_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANTHEON_SHELL_FDO_TYPE_ACCOUNTS, PantheonShellFDOAccounts))
#define PANTHEON_SHELL_FDO_IS_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANTHEON_SHELL_FDO_TYPE_ACCOUNTS))
#define PANTHEON_SHELL_FDO_ACCOUNTS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), PANTHEON_SHELL_FDO_TYPE_ACCOUNTS, PantheonShellFDOAccountsIface))

typedef struct _PantheonShellFDOAccounts PantheonShellFDOAccounts;
typedef struct _PantheonShellFDOAccountsIface PantheonShellFDOAccountsIface;

#define PANTHEON_SHELL_FDO_TYPE_ACCOUNTS_PROXY (pantheon_shell_fdo_accounts_proxy_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block2Data Block2Data;
#define _g_variant_type_free0(var) ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))

struct _PantheonShellAppearancePrefersAccentColorButton {
	GtkRadioButton parent_instance;
	PantheonShellAppearancePrefersAccentColorButtonPrivate * priv;
};

struct _PantheonShellAppearancePrefersAccentColorButtonClass {
	GtkRadioButtonClass parent_class;
};

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

struct _PantheonShellAppearancePrefersAccentColorButtonPrivate {
	PantheonShellAppearanceAccentColor _color;
	PantheonShellPantheonAccountsService* _pantheon_act;
};

struct _Block1Data {
	int _ref_count_;
	PantheonShellAppearance* self;
	GtkRadioButton* prefer_default_radio;
	GtkRadioButton* prefer_dark_radio;
	GtkRadioButton* schedule_disabled_radio;
	GraniteWidgetsTimePicker* from_time;
	GraniteWidgetsTimePicker* to_time;
	PantheonShellPantheonAccountsService* pantheon_act;
};

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

struct _Block2Data {
	int _ref_count_;
	Block1Data * _data1_;
	GSettings* settings;
};

static gpointer pantheon_shell_appearance_parent_class = NULL;
static gint PantheonShellAppearancePrefersAccentColorButton_private_offset;
static gpointer pantheon_shell_appearance_prefers_accent_color_button_parent_class = NULL;
static GSettings* pantheon_shell_appearance_prefers_accent_color_button_interface_settings;
static GSettings* pantheon_shell_appearance_prefers_accent_color_button_interface_settings = NULL;

static GType pantheon_shell_appearance_accent_color_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static gchar* pantheon_shell_appearance_accent_color_to_string (PantheonShellAppearanceAccentColor self);
static GDateTime* pantheon_shell_appearance_double_date_time (gdouble dbl);
static gdouble pantheon_shell_appearance_date_time_double (GDateTime* date_time);
static GType pantheon_shell_appearance_prefers_accent_color_button_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
VALA_EXTERN GType pantheon_shell_pantheon_accounts_service_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType pantheon_shell_pantheon_accounts_service_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint pantheon_shell_pantheon_accounts_service_register_object (void* object,
                                                                GDBusConnection* connection,
                                                                const gchar* path,
                                                                GError** error);
static PantheonShellAppearancePrefersAccentColorButton* pantheon_shell_appearance_prefers_accent_color_button_new (PantheonShellPantheonAccountsService* pantheon_act,
                                                                                                            PantheonShellAppearanceAccentColor color,
                                                                                                            GtkRadioButton* group_member);
static PantheonShellAppearancePrefersAccentColorButton* pantheon_shell_appearance_prefers_accent_color_button_construct (GType object_type,
                                                                                                                  PantheonShellPantheonAccountsService* pantheon_act,
                                                                                                                  PantheonShellAppearanceAccentColor color,
                                                                                                                  GtkRadioButton* group_member);
static PantheonShellAppearanceAccentColor pantheon_shell_appearance_prefers_accent_color_button_get_color (PantheonShellAppearancePrefersAccentColorButton* self);
static void pantheon_shell_appearance_prefers_accent_color_button_set_color (PantheonShellAppearancePrefersAccentColorButton* self,
                                                                      PantheonShellAppearanceAccentColor value);
static PantheonShellPantheonAccountsService* pantheon_shell_appearance_prefers_accent_color_button_get_pantheon_act (PantheonShellAppearancePrefersAccentColorButton* self);
static void pantheon_shell_appearance_prefers_accent_color_button_set_pantheon_act (PantheonShellAppearancePrefersAccentColorButton* self,
                                                                             PantheonShellPantheonAccountsService* value);
static GObject * pantheon_shell_appearance_prefers_accent_color_button_constructor (GType type,
                                                                             guint n_construct_properties,
                                                                             GObjectConstructParam * construct_properties);
static void _pantheon_shell_appearance_prefers_accent_color_button___lambda30_ (PantheonShellAppearancePrefersAccentColorButton* self);
VALA_EXTERN gint pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (PantheonShellPantheonAccountsService* self);
static void __lambda31_ (PantheonShellAppearancePrefersAccentColorButton* self);
VALA_EXTERN void pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (PantheonShellPantheonAccountsService* self,
                                                                        gint value);
static void ___lambda31__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                             gpointer self);
static void __pantheon_shell_appearance_prefers_accent_color_button___lambda30__gtk_widget_realize (GtkWidget* _sender,
                                                                                             gpointer self);
static void pantheon_shell_appearance_prefers_accent_color_button_finalize (GObject * obj);
static GType pantheon_shell_appearance_prefers_accent_color_button_get_type_once (void);
static void _vala_pantheon_shell_appearance_prefers_accent_color_button_get_property (GObject * object,
                                                                               guint property_id,
                                                                               GValue * value,
                                                                               GParamSpec * pspec);
static void _vala_pantheon_shell_appearance_prefers_accent_color_button_set_property (GObject * object,
                                                                               guint property_id,
                                                                               const GValue * value,
                                                                               GParamSpec * pspec);
static GObject * pantheon_shell_appearance_constructor (GType type,
                                                 guint n_construct_properties,
                                                 GObjectConstructParam * construct_properties);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
VALA_EXTERN GType pantheon_shell_fdo_accounts_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint pantheon_shell_fdo_accounts_register_object (void* object,
                                                   GDBusConnection* connection,
                                                   const gchar* path,
                                                   GError** error);
VALA_EXTERN GType pantheon_shell_fdo_accounts_get_type (void) G_GNUC_CONST ;
VALA_EXTERN gchar* pantheon_shell_fdo_accounts_find_user_by_name (PantheonShellFDOAccounts* self,
                                                      const gchar* username,
                                                      GError** error);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
VALA_EXTERN gint pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (PantheonShellPantheonAccountsService* self);
static gboolean _pantheon_shell_appearance____lambda17_ (GValue* value,
                                                  GVariant* variant,
                                                  void* user_data);
static gboolean __pantheon_shell_appearance____lambda17__gsettings_bind_get_mapping (GValue* value,
                                                                              GVariant* variant,
                                                                              void* user_data);
static GVariant* _pantheon_shell_appearance____lambda18_ (GValue* value,
                                                   const GVariantType* expected_type,
                                                   void* user_data);
static GVariant* __pantheon_shell_appearance____lambda18__gsettings_bind_set_mapping (GValue* value,
                                                                               const GVariantType* expected_type,
                                                                               void* user_data);
static gboolean _pantheon_shell_appearance____lambda19_ (GValue* value,
                                                  GVariant* variant,
                                                  void* user_data);
static gboolean __pantheon_shell_appearance____lambda19__gsettings_bind_get_mapping (GValue* value,
                                                                              GVariant* variant,
                                                                              void* user_data);
static GVariant* _pantheon_shell_appearance____lambda20_ (GValue* value,
                                                   const GVariantType* expected_type,
                                                   void* user_data);
static GVariant* __pantheon_shell_appearance____lambda20__gsettings_bind_set_mapping (GValue* value,
                                                                               const GVariantType* expected_type,
                                                                               void* user_data);
static gboolean _pantheon_shell_appearance____lambda21_ (GValue* value,
                                                  GVariant* variant,
                                                  void* user_data);
static gboolean __pantheon_shell_appearance____lambda21__gsettings_bind_get_mapping (GValue* value,
                                                                              GVariant* variant,
                                                                              void* user_data);
static GVariant* _pantheon_shell_appearance____lambda22_ (GValue* value,
                                                   const GVariantType* expected_type,
                                                   void* user_data);
static GVariant* __pantheon_shell_appearance____lambda22__gsettings_bind_set_mapping (GValue* value,
                                                                               const GVariantType* expected_type,
                                                                               void* user_data);
static void _pantheon_shell_appearance____lambda23_ (Block2Data* _data2_);
VALA_EXTERN void pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (PantheonShellPantheonAccountsService* self,
                                                                        gint value);
static void __pantheon_shell_appearance____lambda23__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                                                         gpointer self);
static void _pantheon_shell_appearance____lambda24_ (Block2Data* _data2_);
static void __pantheon_shell_appearance____lambda24__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                                                         gpointer self);
static gboolean _pantheon_shell_appearance____lambda25_ (Block2Data* _data2_);
static gboolean __pantheon_shell_appearance____lambda25__gtk_widget_focus_in_event (GtkWidget* _sender,
                                                                             GdkEventFocus* event,
                                                                             gpointer self);
static gboolean _pantheon_shell_appearance____lambda26_ (Block2Data* _data2_);
static gboolean __pantheon_shell_appearance____lambda26__gtk_widget_focus_in_event (GtkWidget* _sender,
                                                                             GdkEventFocus* event,
                                                                             gpointer self);
static void _pantheon_shell_appearance____lambda27_ (Block2Data* _data2_,
                                              GVariant* changed,
                                              gchar** invalid);
static void __pantheon_shell_appearance____lambda27__g_dbus_proxy_g_properties_changed (GDBusProxy* _sender,
                                                                                 GVariant* changed_properties,
                                                                                 gchar** invalidated_properties,
                                                                                 gpointer self);
static void _pantheon_shell_appearance____lambda28_ (Block2Data* _data2_);
static void __pantheon_shell_appearance____lambda28__granite_widgets_time_picker_time_changed (GraniteWidgetsTimePicker* _sender,
                                                                                        gpointer self);
static void _pantheon_shell_appearance____lambda29_ (Block2Data* _data2_);
static void __pantheon_shell_appearance____lambda29__granite_widgets_time_picker_time_changed (GraniteWidgetsTimePicker* _sender,
                                                                                        gpointer self);
static GType pantheon_shell_appearance_get_type_once (void);

static gchar*
pantheon_shell_appearance_accent_color_to_string (PantheonShellAppearanceAccentColor self)
{
	gchar* _tmp10_;
	gchar* result;
	switch (self) {
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_RED:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("strawberry");
			result = _tmp0_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_ORANGE:
		{
			gchar* _tmp1_;
			_tmp1_ = g_strdup ("orange");
			result = _tmp1_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_YELLOW:
		{
			gchar* _tmp2_;
			_tmp2_ = g_strdup ("banana");
			result = _tmp2_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GREEN:
		{
			gchar* _tmp3_;
			_tmp3_ = g_strdup ("lime");
			result = _tmp3_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_MINT:
		{
			gchar* _tmp4_;
			_tmp4_ = g_strdup ("mint");
			result = _tmp4_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BLUE:
		{
			gchar* _tmp5_;
			_tmp5_ = g_strdup ("blueberry");
			result = _tmp5_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PURPLE:
		{
			gchar* _tmp6_;
			_tmp6_ = g_strdup ("grape");
			result = _tmp6_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PINK:
		{
			gchar* _tmp7_;
			_tmp7_ = g_strdup ("bubblegum");
			result = _tmp7_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BROWN:
		{
			gchar* _tmp8_;
			_tmp8_ = g_strdup ("cocoa");
			result = _tmp8_;
			return result;
		}
		case PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GRAY:
		{
			gchar* _tmp9_;
			_tmp9_ = g_strdup ("slate");
			result = _tmp9_;
			return result;
		}
		default:
		break;
	}
	_tmp10_ = g_strdup ("auto");
	result = _tmp10_;
	return result;
}

static GType
pantheon_shell_appearance_accent_color_get_type_once (void)
{
	static const GEnumValue values[] = {{PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_NO_PREFERENCE, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_NO_PREFERENCE", "no-preference"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_RED, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_RED", "red"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_ORANGE, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_ORANGE", "orange"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_YELLOW, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_YELLOW", "yellow"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GREEN, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GREEN", "green"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_MINT, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_MINT", "mint"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BLUE, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BLUE", "blue"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PURPLE, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PURPLE", "purple"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PINK, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PINK", "pink"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BROWN, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BROWN", "brown"}, {PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GRAY, "PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GRAY", "gray"}, {0, NULL, NULL}};
	GType pantheon_shell_appearance_accent_color_type_id;
	pantheon_shell_appearance_accent_color_type_id = g_enum_register_static ("PantheonShellAppearanceAccentColor", values);
	return pantheon_shell_appearance_accent_color_type_id;
}

static GType
pantheon_shell_appearance_accent_color_get_type (void)
{
	static volatile gsize pantheon_shell_appearance_accent_color_type_id__once = 0;
	if (g_once_init_enter (&pantheon_shell_appearance_accent_color_type_id__once)) {
		GType pantheon_shell_appearance_accent_color_type_id;
		pantheon_shell_appearance_accent_color_type_id = pantheon_shell_appearance_accent_color_get_type_once ();
		g_once_init_leave (&pantheon_shell_appearance_accent_color_type_id__once, pantheon_shell_appearance_accent_color_type_id);
	}
	return pantheon_shell_appearance_accent_color_type_id__once;
}

static GDateTime*
pantheon_shell_appearance_double_date_time (gdouble dbl)
{
	gint hours = 0;
	gint minutes = 0;
	GDateTime* date_time = NULL;
	GDateTime* _tmp0_;
	GDateTime* result;
	hours = (gint) dbl;
	minutes = (gint) round ((dbl - hours) * 60);
	_tmp0_ = g_date_time_new_local (1, 1, 1, hours, minutes, 0.0);
	date_time = _tmp0_;
	result = date_time;
	return result;
}

static gdouble
pantheon_shell_appearance_date_time_double (GDateTime* date_time)
{
	gdouble time_double = 0.0;
	gdouble result;
	g_return_val_if_fail (date_time != NULL, 0.0);
	time_double = (gdouble) 0;
	time_double += (gdouble) g_date_time_get_hour (date_time);
	time_double += ((gdouble) g_date_time_get_minute (date_time)) / 60;
	result = time_double;
	return result;
}

PantheonShellAppearance*
pantheon_shell_appearance_construct (GType object_type)
{
	PantheonShellAppearance * self = NULL;
	self = (PantheonShellAppearance*) g_object_new (object_type, NULL);
	return self;
}

PantheonShellAppearance*
pantheon_shell_appearance_new (void)
{
	return pantheon_shell_appearance_construct (PANTHEON_SHELL_TYPE_APPEARANCE);
}

static inline gpointer
pantheon_shell_appearance_prefers_accent_color_button_get_instance_private (PantheonShellAppearancePrefersAccentColorButton* self)
{
	return G_STRUCT_MEMBER_P (self, PantheonShellAppearancePrefersAccentColorButton_private_offset);
}

static PantheonShellAppearancePrefersAccentColorButton*
pantheon_shell_appearance_prefers_accent_color_button_construct (GType object_type,
                                                                 PantheonShellPantheonAccountsService* pantheon_act,
                                                                 PantheonShellAppearanceAccentColor color,
                                                                 GtkRadioButton* group_member)
{
	PantheonShellAppearancePrefersAccentColorButton * self = NULL;
	self = (PantheonShellAppearancePrefersAccentColorButton*) g_object_new (object_type, "pantheon-act", pantheon_act, "color", color, "group", group_member, NULL);
	return self;
}

static PantheonShellAppearancePrefersAccentColorButton*
pantheon_shell_appearance_prefers_accent_color_button_new (PantheonShellPantheonAccountsService* pantheon_act,
                                                           PantheonShellAppearanceAccentColor color,
                                                           GtkRadioButton* group_member)
{
	return pantheon_shell_appearance_prefers_accent_color_button_construct (PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, pantheon_act, color, group_member);
}

static PantheonShellAppearanceAccentColor
pantheon_shell_appearance_prefers_accent_color_button_get_color (PantheonShellAppearancePrefersAccentColorButton* self)
{
	PantheonShellAppearanceAccentColor result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_color;
	return result;
}

static void
pantheon_shell_appearance_prefers_accent_color_button_set_color (PantheonShellAppearancePrefersAccentColorButton* self,
                                                                 PantheonShellAppearanceAccentColor value)
{
	PantheonShellAppearanceAccentColor old_value;
	g_return_if_fail (self != NULL);
	old_value = pantheon_shell_appearance_prefers_accent_color_button_get_color (self);
	if (old_value != value) {
		self->priv->_color = value;
		g_object_notify_by_pspec ((GObject *) self, pantheon_shell_appearance_prefers_accent_color_button_properties[PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY]);
	}
}

static PantheonShellPantheonAccountsService*
pantheon_shell_appearance_prefers_accent_color_button_get_pantheon_act (PantheonShellAppearancePrefersAccentColorButton* self)
{
	PantheonShellPantheonAccountsService* result;
	PantheonShellPantheonAccountsService* _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
pantheon_shell_appearance_prefers_accent_color_button_set_pantheon_act (PantheonShellAppearancePrefersAccentColorButton* self,
                                                                        PantheonShellPantheonAccountsService* value)
{
	PantheonShellPantheonAccountsService* old_value;
	g_return_if_fail (self != NULL);
	old_value = pantheon_shell_appearance_prefers_accent_color_button_get_pantheon_act (self);
	if (old_value != value) {
		PantheonShellPantheonAccountsService* _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, pantheon_shell_appearance_prefers_accent_color_button_properties[PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY]);
	}
}

static void
__lambda31_ (PantheonShellAppearancePrefersAccentColorButton* self)
{
	PantheonShellAppearanceAccentColor _tmp0_;
	PantheonShellPantheonAccountsService* _tmp7_;
	GVariant* _tmp8_;
	GVariant* _tmp9_;
	gboolean _tmp10_;
	_tmp0_ = self->priv->_color;
	if (_tmp0_ != PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_NO_PREFERENCE) {
		GSettings* _tmp1_;
		PantheonShellAppearanceAccentColor _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		gchar* _tmp5_;
		gchar* _tmp6_;
		_tmp1_ = pantheon_shell_appearance_prefers_accent_color_button_interface_settings;
		_tmp2_ = self->priv->_color;
		_tmp3_ = pantheon_shell_appearance_accent_color_to_string (_tmp2_);
		_tmp4_ = _tmp3_;
		_tmp5_ = g_strconcat (PANTHEON_SHELL_APPEARANCE_STYLESHEET_PREFIX, _tmp4_, NULL);
		_tmp6_ = _tmp5_;
		g_settings_set_string (_tmp1_, PANTHEON_SHELL_APPEARANCE_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_) {
		PantheonShellPantheonAccountsService* _tmp11_;
		PantheonShellAppearanceAccentColor _tmp12_;
		_tmp11_ = self->priv->_pantheon_act;
		_tmp12_ = self->priv->_color;
		pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (_tmp11_, (gint) _tmp12_);
	}
}

static void
___lambda31__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                        gpointer self)
{
	__lambda31_ ((PantheonShellAppearancePrefersAccentColorButton*) self);
}

static void
_pantheon_shell_appearance_prefers_accent_color_button___lambda30_ (PantheonShellAppearancePrefersAccentColorButton* self)
{
	PantheonShellAppearanceAccentColor _tmp0_;
	PantheonShellPantheonAccountsService* _tmp1_;
	gint _tmp2_;
	gint _tmp3_;
	_tmp0_ = self->priv->_color;
	_tmp1_ = self->priv->_pantheon_act;
	_tmp2_ = pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (_tmp1_);
	_tmp3_ = _tmp2_;
	gtk_toggle_button_set_active ((GtkToggleButton*) self, _tmp0_ == _tmp3_);
	g_signal_connect_object ((GtkToggleButton*) self, "toggled", (GCallback) ___lambda31__gtk_toggle_button_toggled, self, 0);
}

static void
__pantheon_shell_appearance_prefers_accent_color_button___lambda30__gtk_widget_realize (GtkWidget* _sender,
                                                                                        gpointer self)
{
	_pantheon_shell_appearance_prefers_accent_color_button___lambda30_ ((PantheonShellAppearancePrefersAccentColorButton*) self);
}

static GObject *
pantheon_shell_appearance_prefers_accent_color_button_constructor (GType type,
                                                                   guint n_construct_properties,
                                                                   GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	PantheonShellAppearancePrefersAccentColorButton * self;
	GtkStyleContext* context = NULL;
	GtkStyleContext* _tmp0_;
	GtkStyleContext* _tmp1_;
	GtkStyleContext* _tmp2_;
	PantheonShellAppearanceAccentColor _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	parent_class = G_OBJECT_CLASS (pantheon_shell_appearance_prefers_accent_color_button_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, PantheonShellAppearancePrefersAccentColorButton);
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
	context = _tmp0_;
	_tmp1_ = context;
	gtk_style_context_add_class (_tmp1_, GRANITE_STYLE_CLASS_COLOR_BUTTON);
	_tmp2_ = context;
	_tmp3_ = self->priv->_color;
	_tmp4_ = pantheon_shell_appearance_accent_color_to_string (_tmp3_);
	_tmp5_ = _tmp4_;
	gtk_style_context_add_class (_tmp2_, _tmp5_);
	_g_free0 (_tmp5_);
	g_signal_connect_object ((GtkWidget*) self, "realize", (GCallback) __pantheon_shell_appearance_prefers_accent_color_button___lambda30__gtk_widget_realize, self, 0);
	return obj;
}

static void
pantheon_shell_appearance_prefers_accent_color_button_class_init (PantheonShellAppearancePrefersAccentColorButtonClass * klass,
                                                                  gpointer klass_data)
{
	GSettings* _tmp0_;
	gchar* current_stylesheet = NULL;
	GSettings* _tmp1_;
	gchar* _tmp2_;
	pantheon_shell_appearance_prefers_accent_color_button_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &PantheonShellAppearancePrefersAccentColorButton_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_pantheon_shell_appearance_prefers_accent_color_button_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_pantheon_shell_appearance_prefers_accent_color_button_set_property;
	G_OBJECT_CLASS (klass)->constructor = pantheon_shell_appearance_prefers_accent_color_button_constructor;
	G_OBJECT_CLASS (klass)->finalize = pantheon_shell_appearance_prefers_accent_color_button_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY, pantheon_shell_appearance_prefers_accent_color_button_properties[PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY] = g_param_spec_enum ("color", "color", "color", PANTHEON_SHELL_APPEARANCE_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), PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY, pantheon_shell_appearance_prefers_accent_color_button_properties[PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY] = g_param_spec_object ("pantheon-act", "pantheon-act", "pantheon-act", PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	_tmp0_ = g_settings_new (PANTHEON_SHELL_APPEARANCE_INTERFACE_SCHEMA);
	_g_object_unref0 (pantheon_shell_appearance_prefers_accent_color_button_interface_settings);
	pantheon_shell_appearance_prefers_accent_color_button_interface_settings = _tmp0_;
	_tmp1_ = pantheon_shell_appearance_prefers_accent_color_button_interface_settings;
	_tmp2_ = g_settings_get_string (_tmp1_, PANTHEON_SHELL_APPEARANCE_STYLESHEET_KEY);
	current_stylesheet = _tmp2_;
	_g_free0 (current_stylesheet);
}

static void
pantheon_shell_appearance_prefers_accent_color_button_instance_init (PantheonShellAppearancePrefersAccentColorButton * self,
                                                                     gpointer klass)
{
	self->priv = pantheon_shell_appearance_prefers_accent_color_button_get_instance_private (self);
	self->priv->_pantheon_act = NULL;
}

static void
pantheon_shell_appearance_prefers_accent_color_button_finalize (GObject * obj)
{
	PantheonShellAppearancePrefersAccentColorButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, PantheonShellAppearancePrefersAccentColorButton);
	_g_object_unref0 (self->priv->_pantheon_act);
	G_OBJECT_CLASS (pantheon_shell_appearance_prefers_accent_color_button_parent_class)->finalize (obj);
}

static GType
pantheon_shell_appearance_prefers_accent_color_button_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PantheonShellAppearancePrefersAccentColorButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pantheon_shell_appearance_prefers_accent_color_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PantheonShellAppearancePrefersAccentColorButton), 0, (GInstanceInitFunc) pantheon_shell_appearance_prefers_accent_color_button_instance_init, NULL };
	GType pantheon_shell_appearance_prefers_accent_color_button_type_id;
	pantheon_shell_appearance_prefers_accent_color_button_type_id = g_type_register_static (gtk_radio_button_get_type (), "PantheonShellAppearancePrefersAccentColorButton", &g_define_type_info, 0);
	PantheonShellAppearancePrefersAccentColorButton_private_offset = g_type_add_instance_private (pantheon_shell_appearance_prefers_accent_color_button_type_id, sizeof (PantheonShellAppearancePrefersAccentColorButtonPrivate));
	return pantheon_shell_appearance_prefers_accent_color_button_type_id;
}

static GType
pantheon_shell_appearance_prefers_accent_color_button_get_type (void)
{
	static volatile gsize pantheon_shell_appearance_prefers_accent_color_button_type_id__once = 0;
	if (g_once_init_enter (&pantheon_shell_appearance_prefers_accent_color_button_type_id__once)) {
		GType pantheon_shell_appearance_prefers_accent_color_button_type_id;
		pantheon_shell_appearance_prefers_accent_color_button_type_id = pantheon_shell_appearance_prefers_accent_color_button_get_type_once ();
		g_once_init_leave (&pantheon_shell_appearance_prefers_accent_color_button_type_id__once, pantheon_shell_appearance_prefers_accent_color_button_type_id);
	}
	return pantheon_shell_appearance_prefers_accent_color_button_type_id__once;
}

static void
_vala_pantheon_shell_appearance_prefers_accent_color_button_get_property (GObject * object,
                                                                          guint property_id,
                                                                          GValue * value,
                                                                          GParamSpec * pspec)
{
	PantheonShellAppearancePrefersAccentColorButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, PantheonShellAppearancePrefersAccentColorButton);
	switch (property_id) {
		case PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY:
		g_value_set_enum (value, pantheon_shell_appearance_prefers_accent_color_button_get_color (self));
		break;
		case PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY:
		g_value_set_object (value, pantheon_shell_appearance_prefers_accent_color_button_get_pantheon_act (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_pantheon_shell_appearance_prefers_accent_color_button_set_property (GObject * object,
                                                                          guint property_id,
                                                                          const GValue * value,
                                                                          GParamSpec * pspec)
{
	PantheonShellAppearancePrefersAccentColorButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PANTHEON_SHELL_APPEARANCE_TYPE_PREFERS_ACCENT_COLOR_BUTTON, PantheonShellAppearancePrefersAccentColorButton);
	switch (property_id) {
		case PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_COLOR_PROPERTY:
		pantheon_shell_appearance_prefers_accent_color_button_set_color (self, g_value_get_enum (value));
		break;
		case PANTHEON_SHELL_APPEARANCE_PREFERS_ACCENT_COLOR_BUTTON_PANTHEON_ACT_PROPERTY:
		pantheon_shell_appearance_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 Block1Data*
block1_data_ref (Block1Data* _data1_)
{
	g_atomic_int_inc (&_data1_->_ref_count_);
	return _data1_;
}

static void
block1_data_unref (void * _userdata_)
{
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
		PantheonShellAppearance* self;
		self = _data1_->self;
		_g_object_unref0 (_data1_->pantheon_act);
		_g_object_unref0 (_data1_->to_time);
		_g_object_unref0 (_data1_->from_time);
		_g_object_unref0 (_data1_->schedule_disabled_radio);
		_g_object_unref0 (_data1_->prefer_dark_radio);
		_g_object_unref0 (_data1_->prefer_default_radio);
		_g_object_unref0 (self);
		g_slice_free (Block1Data, _data1_);
	}
}

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_)) {
		PantheonShellAppearance* self;
		self = _data2_->_data1_->self;
		_g_object_unref0 (_data2_->settings);
		block1_data_unref (_data2_->_data1_);
		_data2_->_data1_ = NULL;
		g_slice_free (Block2Data, _data2_);
	}
}

static gboolean
_pantheon_shell_appearance____lambda17_ (GValue* value,
                                         GVariant* variant,
                                         void* user_data)
{
	const gchar* _tmp0_;
	gboolean result;
	g_return_val_if_fail (value != NULL, FALSE);
	g_return_val_if_fail (variant != NULL, FALSE);
	_tmp0_ = g_variant_get_string (variant, NULL);
	g_value_set_boolean (value, g_strcmp0 (_tmp0_, "disabled") == 0);
	result = TRUE;
	return result;
}

static gboolean
__pantheon_shell_appearance____lambda17__gsettings_bind_get_mapping (GValue* value,
                                                                     GVariant* variant,
                                                                     void* user_data)
{
	gboolean result;
	result = _pantheon_shell_appearance____lambda17_ (value, variant, user_data);
	return result;
}

static GVariant*
_pantheon_shell_appearance____lambda18_ (GValue* value,
                                         const GVariantType* expected_type,
                                         void* user_data)
{
	GVariant* result;
	g_return_val_if_fail (value != NULL, NULL);
	g_return_val_if_fail (expected_type != NULL, NULL);
	if (g_value_get_boolean (value)) {
		GVariant* _tmp0_;
		_tmp0_ = g_variant_new ("s", "disabled", NULL);
		g_variant_ref_sink (_tmp0_);
		result = _tmp0_;
		return result;
	}
	result = NULL;
	return result;
}

static GVariant*
__pantheon_shell_appearance____lambda18__gsettings_bind_set_mapping (GValue* value,
                                                                     const GVariantType* expected_type,
                                                                     void* user_data)
{
	GVariant* result;
	result = _pantheon_shell_appearance____lambda18_ (value, expected_type, user_data);
	return result;
}

static gboolean
_pantheon_shell_appearance____lambda19_ (GValue* value,
                                         GVariant* variant,
                                         void* user_data)
{
	const gchar* _tmp0_;
	gboolean result;
	g_return_val_if_fail (value != NULL, FALSE);
	g_return_val_if_fail (variant != NULL, FALSE);
	_tmp0_ = g_variant_get_string (variant, NULL);
	g_value_set_boolean (value, g_strcmp0 (_tmp0_, "manual") == 0);
	result = TRUE;
	return result;
}

static gboolean
__pantheon_shell_appearance____lambda19__gsettings_bind_get_mapping (GValue* value,
                                                                     GVariant* variant,
                                                                     void* user_data)
{
	gboolean result;
	result = _pantheon_shell_appearance____lambda19_ (value, variant, user_data);
	return result;
}

static GVariant*
_pantheon_shell_appearance____lambda20_ (GValue* value,
                                         const GVariantType* expected_type,
                                         void* user_data)
{
	GVariant* result;
	g_return_val_if_fail (value != NULL, NULL);
	g_return_val_if_fail (expected_type != NULL, NULL);
	if (g_value_get_boolean (value)) {
		GVariant* _tmp0_;
		_tmp0_ = g_variant_new ("s", "manual", NULL);
		g_variant_ref_sink (_tmp0_);
		result = _tmp0_;
		return result;
	}
	result = NULL;
	return result;
}

static GVariant*
__pantheon_shell_appearance____lambda20__gsettings_bind_set_mapping (GValue* value,
                                                                     const GVariantType* expected_type,
                                                                     void* user_data)
{
	GVariant* result;
	result = _pantheon_shell_appearance____lambda20_ (value, expected_type, user_data);
	return result;
}

static gboolean
_pantheon_shell_appearance____lambda21_ (GValue* value,
                                         GVariant* variant,
                                         void* user_data)
{
	const gchar* _tmp0_;
	gboolean result;
	g_return_val_if_fail (value != NULL, FALSE);
	g_return_val_if_fail (variant != NULL, FALSE);
	_tmp0_ = g_variant_get_string (variant, NULL);
	g_value_set_boolean (value, g_strcmp0 (_tmp0_, "sunset-to-sunrise") == 0);
	result = TRUE;
	return result;
}

static gboolean
__pantheon_shell_appearance____lambda21__gsettings_bind_get_mapping (GValue* value,
                                                                     GVariant* variant,
                                                                     void* user_data)
{
	gboolean result;
	result = _pantheon_shell_appearance____lambda21_ (value, variant, user_data);
	return result;
}

static GVariant*
_pantheon_shell_appearance____lambda22_ (GValue* value,
                                         const GVariantType* expected_type,
                                         void* user_data)
{
	GVariant* result;
	g_return_val_if_fail (value != NULL, NULL);
	g_return_val_if_fail (expected_type != NULL, NULL);
	if (g_value_get_boolean (value)) {
		GVariant* _tmp0_;
		_tmp0_ = g_variant_new ("s", "sunset-to-sunrise", NULL);
		g_variant_ref_sink (_tmp0_);
		result = _tmp0_;
		return result;
	}
	result = NULL;
	return result;
}

static GVariant*
__pantheon_shell_appearance____lambda22__gsettings_bind_set_mapping (GValue* value,
                                                                     const GVariantType* expected_type,
                                                                     void* user_data)
{
	GVariant* result;
	result = _pantheon_shell_appearance____lambda22_ (value, expected_type, user_data);
	return result;
}

static void
_pantheon_shell_appearance____lambda23_ (Block2Data* _data2_)
{
	Block1Data* _data1_;
	PantheonShellAppearance* self;
	PantheonShellPantheonAccountsService* _tmp0_;
	_data1_ = _data2_->_data1_;
	self = _data1_->self;
	_tmp0_ = _data1_->pantheon_act;
	pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (_tmp0_, (gint) GRANITE_SETTINGS_COLOR_SCHEME_NO_PREFERENCE);
}

static void
__pantheon_shell_appearance____lambda23__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                                                    gpointer self)
{
	_pantheon_shell_appearance____lambda23_ (self);
}

static void
_pantheon_shell_appearance____lambda24_ (Block2Data* _data2_)
{
	Block1Data* _data1_;
	PantheonShellAppearance* self;
	PantheonShellPantheonAccountsService* _tmp0_;
	_data1_ = _data2_->_data1_;
	self = _data1_->self;
	_tmp0_ = _data1_->pantheon_act;
	pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (_tmp0_, (gint) GRANITE_SETTINGS_COLOR_SCHEME_DARK);
}

static void
__pantheon_shell_appearance____lambda24__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                                                    gpointer self)
{
	_pantheon_shell_appearance____lambda24_ (self);
}

static gboolean
_pantheon_shell_appearance____lambda25_ (Block2Data* _data2_)
{
	Block1Data* _data1_;
	PantheonShellAppearance* self;
	PantheonShellPantheonAccountsService* _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	gboolean result;
	_data1_ = _data2_->_data1_;
	self = _data1_->self;
	_tmp0_ = _data1_->pantheon_act;
	_tmp1_ = pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_ != ((gint) GRANITE_SETTINGS_COLOR_SCHEME_NO_PREFERENCE)) {
		GtkRadioButton* _tmp3_;
		_tmp3_ = _data1_->schedule_disabled_radio;
		gtk_toggle_button_set_active ((GtkToggleButton*) _tmp3_, TRUE);
	}
	result = GDK_EVENT_PROPAGATE;
	return result;
}

static gboolean
__pantheon_shell_appearance____lambda25__gtk_widget_focus_in_event (GtkWidget* _sender,
                                                                    GdkEventFocus* event,
                                                                    gpointer self)
{
	gboolean result;
	result = _pantheon_shell_appearance____lambda25_ (self);
	return result;
}

static gboolean
_pantheon_shell_appearance____lambda26_ (Block2Data* _data2_)
{
	Block1Data* _data1_;
	PantheonShellAppearance* self;
	PantheonShellPantheonAccountsService* _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	gboolean result;
	_data1_ = _data2_->_data1_;
	self = _data1_->self;
	_tmp0_ = _data1_->pantheon_act;
	_tmp1_ = pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_ != ((gint) GRANITE_SETTINGS_COLOR_SCHEME_DARK)) {
		GtkRadioButton* _tmp3_;
		_tmp3_ = _data1_->schedule_disabled_radio;
		gtk_toggle_button_set_active ((GtkToggleButton*) _tmp3_, TRUE);
	}
	result = GDK_EVENT_PROPAGATE;
	return result;
}

static gboolean
__pantheon_shell_appearance____lambda26__gtk_widget_focus_in_event (GtkWidget* _sender,
                                                                    GdkEventFocus* event,
                                                                    gpointer self)
{
	gboolean result;
	result = _pantheon_shell_appearance____lambda26_ (self);
	return result;
}

static void
_pantheon_shell_appearance____lambda27_ (Block2Data* _data2_,
                                         GVariant* changed,
                                         gchar** invalid)
{
	Block1Data* _data1_;
	PantheonShellAppearance* self;
	GVariant* color_scheme = NULL;
	GVariantType* _tmp0_;
	GVariantType* _tmp1_;
	GVariant* _tmp2_;
	GVariant* _tmp3_;
	GVariant* _tmp4_;
	_data1_ = _data2_->_data1_;
	self = _data1_->self;
	g_return_if_fail (changed != NULL);
	_tmp0_ = g_variant_type_new ("i");
	_tmp1_ = _tmp0_;
	_tmp2_ = g_variant_lookup_value (changed, "PrefersColorScheme", _tmp1_);
	_tmp3_ = _tmp2_;
	_g_variant_type_free0 (_tmp1_);
	color_scheme = _tmp3_;
	_tmp4_ = color_scheme;
	if (_tmp4_ != NULL) {
		GVariant* _tmp5_;
		_tmp5_ = color_scheme;
		switch ((GraniteSettingsColorScheme) g_variant_get_int32 (_tmp5_)) {
			case GRANITE_SETTINGS_COLOR_SCHEME_DARK:
			{
				GtkRadioButton* _tmp6_;
				_tmp6_ = _data1_->prefer_dark_radio;
				gtk_toggle_button_set_active ((GtkToggleButton*) _tmp6_, TRUE);
				break;
			}
			default:
			{
				GtkRadioButton* _tmp7_;
				_tmp7_ = _data1_->prefer_default_radio;
				gtk_toggle_button_set_active ((GtkToggleButton*) _tmp7_, TRUE);
				break;
			}
		}
	}
	_g_variant_unref0 (color_scheme);
}

static void
__pantheon_shell_appearance____lambda27__g_dbus_proxy_g_properties_changed (GDBusProxy* _sender,
                                                                            GVariant* changed_properties,
                                                                            gchar** invalidated_properties,
                                                                            gpointer self)
{
	_pantheon_shell_appearance____lambda27_ (self, changed_properties, invalidated_properties);
}

static void
_pantheon_shell_appearance____lambda28_ (Block2Data* _data2_)
{
	Block1Data* _data1_;
	PantheonShellAppearance* self;
	GSettings* _tmp0_;
	GraniteWidgetsTimePicker* _tmp1_;
	GDateTime* _tmp2_;
	GDateTime* _tmp3_;
	_data1_ = _data2_->_data1_;
	self = _data1_->self;
	_tmp0_ = _data2_->settings;
	_tmp1_ = _data1_->from_time;
	_tmp2_ = granite_widgets_time_picker_get_time (_tmp1_);
	_tmp3_ = _tmp2_;
	g_settings_set_double (_tmp0_, "prefer-dark-schedule-from", pantheon_shell_appearance_date_time_double (_tmp3_));
}

static void
__pantheon_shell_appearance____lambda28__granite_widgets_time_picker_time_changed (GraniteWidgetsTimePicker* _sender,
                                                                                   gpointer self)
{
	_pantheon_shell_appearance____lambda28_ (self);
}

static void
_pantheon_shell_appearance____lambda29_ (Block2Data* _data2_)
{
	Block1Data* _data1_;
	PantheonShellAppearance* self;
	GSettings* _tmp0_;
	GraniteWidgetsTimePicker* _tmp1_;
	GDateTime* _tmp2_;
	GDateTime* _tmp3_;
	_data1_ = _data2_->_data1_;
	self = _data1_->self;
	_tmp0_ = _data2_->settings;
	_tmp1_ = _data1_->to_time;
	_tmp2_ = granite_widgets_time_picker_get_time (_tmp1_);
	_tmp3_ = _tmp2_;
	g_settings_set_double (_tmp0_, "prefer-dark-schedule-to", pantheon_shell_appearance_date_time_double (_tmp3_));
}

static void
__pantheon_shell_appearance____lambda29__granite_widgets_time_picker_time_changed (GraniteWidgetsTimePicker* _sender,
                                                                                   gpointer self)
{
	_pantheon_shell_appearance____lambda29_ (self);
}

static GObject *
pantheon_shell_appearance_constructor (GType type,
                                       guint n_construct_properties,
                                       GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	PantheonShellAppearance * self;
	Block1Data* _data1_;
	GraniteHeaderLabel* dark_label = NULL;
	GraniteHeaderLabel* _tmp0_;
	GtkImage* prefer_default_image = NULL;
	GtkImage* _tmp1_;
	GtkGrid* prefer_default_card = NULL;
	GtkGrid* _tmp2_ = NULL;
	GtkGrid* _tmp3_;
	GtkImage* _tmp4_;
	GtkStyleContext* prefer_default_card_context = NULL;
	GtkGrid* _tmp5_;
	GtkStyleContext* _tmp6_;
	GtkStyleContext* _tmp7_;
	GtkStyleContext* _tmp8_;
	GtkGrid* prefer_default_grid = NULL;
	GtkGrid* _tmp9_ = NULL;
	GtkGrid* _tmp10_;
	GtkGrid* _tmp11_;
	GtkGrid* _tmp12_;
	GtkLabel* _tmp13_;
	GtkLabel* _tmp14_;
	GtkRadioButton* _tmp15_ = NULL;
	GtkRadioButton* _tmp16_;
	GtkStyleContext* _tmp17_;
	GtkRadioButton* _tmp18_;
	GtkGrid* _tmp19_;
	GtkImage* prefer_dark_image = NULL;
	GtkImage* _tmp20_;
	GtkGrid* prefer_dark_card = NULL;
	GtkGrid* _tmp21_ = NULL;
	GtkGrid* _tmp22_;
	GtkImage* _tmp23_;
	GtkStyleContext* prefer_dark_card_context = NULL;
	GtkGrid* _tmp24_;
	GtkStyleContext* _tmp25_;
	GtkStyleContext* _tmp26_;
	GtkStyleContext* _tmp27_;
	GtkGrid* prefer_dark_grid = NULL;
	GtkGrid* _tmp28_ = NULL;
	GtkGrid* _tmp29_;
	GtkGrid* _tmp30_;
	GtkGrid* _tmp31_;
	GtkLabel* _tmp32_;
	GtkLabel* _tmp33_;
	GtkRadioButton* _tmp34_;
	GtkRadioButton* _tmp35_ = NULL;
	GtkRadioButton* _tmp36_;
	GtkStyleContext* _tmp37_;
	GtkRadioButton* _tmp38_;
	GtkGrid* _tmp39_;
	GtkBox* prefer_style_box = NULL;
	GtkBox* _tmp40_;
	GtkBox* _tmp41_;
	GtkRadioButton* _tmp42_;
	GtkBox* _tmp43_;
	GtkRadioButton* _tmp44_;
	GtkLabel* dark_info = NULL;
	GtkLabel* _tmp45_ = NULL;
	GtkLabel* _tmp46_;
	GtkStyleContext* _tmp47_;
	GraniteHeaderLabel* schedule_label = NULL;
	GraniteHeaderLabel* _tmp48_;
	GtkRadioButton* _tmp49_ = NULL;
	GtkRadioButton* schedule_sunset_radio = NULL;
	GtkRadioButton* _tmp50_;
	GtkRadioButton* _tmp51_;
	GtkLabel* from_label = NULL;
	GtkLabel* _tmp52_;
	GraniteWidgetsTimePicker* _tmp53_ = NULL;
	GtkLabel* to_label = NULL;
	GtkLabel* _tmp54_;
	GraniteWidgetsTimePicker* _tmp55_ = NULL;
	GtkBox* schedule_manual_box = NULL;
	GtkBox* _tmp56_;
	GtkBox* _tmp57_;
	GtkLabel* _tmp58_;
	GtkBox* _tmp59_;
	GraniteWidgetsTimePicker* _tmp60_;
	GtkBox* _tmp61_;
	GtkLabel* _tmp62_;
	GtkBox* _tmp63_;
	GraniteWidgetsTimePicker* _tmp64_;
	GtkRadioButton* schedule_manual_radio = NULL;
	GtkRadioButton* _tmp65_;
	GtkRadioButton* _tmp66_;
	gchar* user_path = NULL;
	const gchar* _tmp75_;
	GtkGrid* grid = NULL;
	GtkGrid* _tmp80_ = NULL;
	PantheonShellPantheonAccountsService* _tmp81_;
	GVariant* _tmp82_;
	GVariant* _tmp83_;
	gboolean _tmp84_;
	GSettings* interface_settings = NULL;
	GSettings* _tmp130_;
	gchar* current_stylesheet = NULL;
	GSettings* _tmp131_;
	gchar* _tmp132_;
	const gchar* _tmp133_;
	const gchar* _tmp134_;
	HdyClamp* clamp = NULL;
	HdyClamp* _tmp212_;
	HdyClamp* _tmp213_;
	GtkGrid* _tmp214_;
	HdyClamp* _tmp215_;
	GError* _inner_error0_ = NULL;
	parent_class = G_OBJECT_CLASS (pantheon_shell_appearance_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PANTHEON_SHELL_TYPE_APPEARANCE, PantheonShellAppearance);
	_data1_ = g_slice_new0 (Block1Data);
	_data1_->_ref_count_ = 1;
	_data1_->self = g_object_ref (self);
	_tmp0_ = granite_header_label_new (_ ("Style"));
	g_object_ref_sink (_tmp0_);
	dark_label = _tmp0_;
	_tmp1_ = (GtkImage*) gtk_image_new_from_resource ("/io/elementary/switchboard/plug/pantheon-shell/appearance-default.svg");
	g_object_ref_sink (_tmp1_);
	prefer_default_image = _tmp1_;
	_tmp2_ = (GtkGrid*) gtk_grid_new ();
	g_object_set ((GtkWidget*) _tmp2_, "margin", 6, NULL);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp2_, 12);
	g_object_ref_sink (_tmp2_);
	prefer_default_card = _tmp2_;
	_tmp3_ = prefer_default_card;
	_tmp4_ = prefer_default_image;
	gtk_container_add ((GtkContainer*) _tmp3_, (GtkWidget*) _tmp4_);
	_tmp5_ = prefer_default_card;
	_tmp6_ = gtk_widget_get_style_context ((GtkWidget*) _tmp5_);
	prefer_default_card_context = _tmp6_;
	_tmp7_ = prefer_default_card_context;
	gtk_style_context_add_class (_tmp7_, GRANITE_STYLE_CLASS_CARD);
	_tmp8_ = prefer_default_card_context;
	gtk_style_context_add_class (_tmp8_, GRANITE_STYLE_CLASS_ROUNDED);
	_tmp9_ = (GtkGrid*) gtk_grid_new ();
	gtk_grid_set_row_spacing (_tmp9_, 6);
	g_object_ref_sink (_tmp9_);
	prefer_default_grid = _tmp9_;
	_tmp10_ = prefer_default_grid;
	_tmp11_ = prefer_default_card;
	gtk_grid_attach (_tmp10_, (GtkWidget*) _tmp11_, 0, 0, 1, 1);
	_tmp12_ = prefer_default_grid;
	_tmp13_ = (GtkLabel*) gtk_label_new (_ ("Default"));
	g_object_ref_sink (_tmp13_);
	_tmp14_ = _tmp13_;
	gtk_grid_attach (_tmp12_, (GtkWidget*) _tmp14_, 0, 1, 1, 1);
	_g_object_unref0 (_tmp14_);
	_tmp15_ = (GtkRadioButton*) gtk_radio_button_new (NULL);
	gtk_widget_set_halign ((GtkWidget*) _tmp15_, GTK_ALIGN_START);
	g_object_ref_sink (_tmp15_);
	_data1_->prefer_default_radio = _tmp15_;
	_tmp16_ = _data1_->prefer_default_radio;
	_tmp17_ = gtk_widget_get_style_context ((GtkWidget*) _tmp16_);
	gtk_style_context_add_class (_tmp17_, "image-button");
	_tmp18_ = _data1_->prefer_default_radio;
	_tmp19_ = prefer_default_grid;
	gtk_container_add ((GtkContainer*) _tmp18_, (GtkWidget*) _tmp19_);
	_tmp20_ = (GtkImage*) gtk_image_new_from_resource ("/io/elementary/switchboard/plug/pantheon-shell/appearance-dark.svg");
	g_object_ref_sink (_tmp20_);
	prefer_dark_image = _tmp20_;
	_tmp21_ = (GtkGrid*) gtk_grid_new ();
	g_object_set ((GtkWidget*) _tmp21_, "margin", 6, NULL);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp21_, 12);
	g_object_ref_sink (_tmp21_);
	prefer_dark_card = _tmp21_;
	_tmp22_ = prefer_dark_card;
	_tmp23_ = prefer_dark_image;
	gtk_container_add ((GtkContainer*) _tmp22_, (GtkWidget*) _tmp23_);
	_tmp24_ = prefer_dark_card;
	_tmp25_ = gtk_widget_get_style_context ((GtkWidget*) _tmp24_);
	prefer_dark_card_context = _tmp25_;
	_tmp26_ = prefer_dark_card_context;
	gtk_style_context_add_class (_tmp26_, GRANITE_STYLE_CLASS_CARD);
	_tmp27_ = prefer_dark_card_context;
	gtk_style_context_add_class (_tmp27_, GRANITE_STYLE_CLASS_ROUNDED);
	_tmp28_ = (GtkGrid*) gtk_grid_new ();
	gtk_grid_set_row_spacing (_tmp28_, 6);
	g_object_ref_sink (_tmp28_);
	prefer_dark_grid = _tmp28_;
	_tmp29_ = prefer_dark_grid;
	_tmp30_ = prefer_dark_card;
	gtk_grid_attach (_tmp29_, (GtkWidget*) _tmp30_, 0, 0, 1, 1);
	_tmp31_ = prefer_dark_grid;
	_tmp32_ = (GtkLabel*) gtk_label_new (_ ("Dark"));
	g_object_ref_sink (_tmp32_);
	_tmp33_ = _tmp32_;
	gtk_grid_attach (_tmp31_, (GtkWidget*) _tmp33_, 0, 1, 1, 1);
	_g_object_unref0 (_tmp33_);
	_tmp34_ = _data1_->prefer_default_radio;
	_tmp35_ = (GtkRadioButton*) gtk_radio_button_new_from_widget (_tmp34_);
	gtk_widget_set_halign ((GtkWidget*) _tmp35_, GTK_ALIGN_START);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp35_, TRUE);
	g_object_ref_sink (_tmp35_);
	_data1_->prefer_dark_radio = _tmp35_;
	_tmp36_ = _data1_->prefer_dark_radio;
	_tmp37_ = gtk_widget_get_style_context ((GtkWidget*) _tmp36_);
	gtk_style_context_add_class (_tmp37_, "image-button");
	_tmp38_ = _data1_->prefer_dark_radio;
	_tmp39_ = prefer_dark_grid;
	gtk_container_add ((GtkContainer*) _tmp38_, (GtkWidget*) _tmp39_);
	_tmp40_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
	g_object_ref_sink (_tmp40_);
	prefer_style_box = _tmp40_;
	_tmp41_ = prefer_style_box;
	_tmp42_ = _data1_->prefer_default_radio;
	gtk_container_add ((GtkContainer*) _tmp41_, (GtkWidget*) _tmp42_);
	_tmp43_ = prefer_style_box;
	_tmp44_ = _data1_->prefer_dark_radio;
	gtk_container_add ((GtkContainer*) _tmp43_, (GtkWidget*) _tmp44_);
	_tmp45_ = (GtkLabel*) gtk_label_new (_ ("Preferred visual style for system components. Apps may also choose to " \
"follow this preference."));
	g_object_set (_tmp45_, "wrap", TRUE, NULL);
	gtk_label_set_xalign (_tmp45_, (gfloat) 0);
	g_object_ref_sink (_tmp45_);
	dark_info = _tmp45_;
	_tmp46_ = dark_info;
	_tmp47_ = gtk_widget_get_style_context ((GtkWidget*) _tmp46_);
	gtk_style_context_add_class (_tmp47_, GTK_STYLE_CLASS_DIM_LABEL);
	_tmp48_ = granite_header_label_new (_ ("Schedule"));
	g_object_ref_sink (_tmp48_);
	schedule_label = _tmp48_;
	_tmp49_ = (GtkRadioButton*) gtk_radio_button_new_with_label (NULL, _ ("Disabled"));
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp49_, 3);
	g_object_ref_sink (_tmp49_);
	_data1_->schedule_disabled_radio = _tmp49_;
	_tmp50_ = _data1_->schedule_disabled_radio;
	_tmp51_ = (GtkRadioButton*) gtk_radio_button_new_with_label_from_widget (_tmp50_, _ ("Sunset to Sunrise"));
	g_object_ref_sink (_tmp51_);
	schedule_sunset_radio = _tmp51_;
	_tmp52_ = (GtkLabel*) gtk_label_new (_ ("From:"));
	g_object_ref_sink (_tmp52_);
	from_label = _tmp52_;
	_tmp53_ = granite_widgets_time_picker_new ();
	gtk_widget_set_hexpand ((GtkWidget*) _tmp53_, TRUE);
	gtk_widget_set_margin_end ((GtkWidget*) _tmp53_, 6);
	g_object_ref_sink (_tmp53_);
	_data1_->from_time = _tmp53_;
	_tmp54_ = (GtkLabel*) gtk_label_new (_ ("To:"));
	g_object_ref_sink (_tmp54_);
	to_label = _tmp54_;
	_tmp55_ = granite_widgets_time_picker_new ();
	gtk_widget_set_hexpand ((GtkWidget*) _tmp55_, TRUE);
	g_object_ref_sink (_tmp55_);
	_data1_->to_time = _tmp55_;
	_tmp56_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
	g_object_ref_sink (_tmp56_);
	schedule_manual_box = _tmp56_;
	_tmp57_ = schedule_manual_box;
	_tmp58_ = from_label;
	gtk_container_add ((GtkContainer*) _tmp57_, (GtkWidget*) _tmp58_);
	_tmp59_ = schedule_manual_box;
	_tmp60_ = _data1_->from_time;
	gtk_container_add ((GtkContainer*) _tmp59_, (GtkWidget*) _tmp60_);
	_tmp61_ = schedule_manual_box;
	_tmp62_ = to_label;
	gtk_container_add ((GtkContainer*) _tmp61_, (GtkWidget*) _tmp62_);
	_tmp63_ = schedule_manual_box;
	_tmp64_ = _data1_->to_time;
	gtk_container_add ((GtkContainer*) _tmp63_, (GtkWidget*) _tmp64_);
	_tmp65_ = _data1_->schedule_disabled_radio;
	_tmp66_ = (GtkRadioButton*) gtk_radio_button_new_from_widget (_tmp65_);
	g_object_ref_sink (_tmp66_);
	schedule_manual_radio = _tmp66_;
	_data1_->pantheon_act = NULL;
	user_path = NULL;
	{
		PantheonShellFDOAccounts* accounts_service = NULL;
		PantheonShellFDOAccounts* _tmp67_;
		gchar* _tmp68_ = NULL;
		PantheonShellFDOAccounts* _tmp69_;
		const gchar* _tmp70_;
		gchar* _tmp71_;
		gchar* _tmp72_;
		_tmp67_ = (PantheonShellFDOAccounts*) g_initable_new (PANTHEON_SHELL_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 = (PantheonShellFDOAccounts*) _tmp67_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_tmp69_ = accounts_service;
		_tmp70_ = g_get_user_name ();
		_tmp71_ = pantheon_shell_fdo_accounts_find_user_by_name (_tmp69_, _tmp70_, &_inner_error0_);
		_tmp68_ = _tmp71_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_object_unref0 (accounts_service);
			goto __catch0_g_error;
		}
		_tmp72_ = _tmp68_;
		_tmp68_ = NULL;
		_g_free0 (user_path);
		user_path = _tmp72_;
		_g_free0 (_tmp68_);
		_g_object_unref0 (accounts_service);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp73_;
		const gchar* _tmp74_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp73_ = e;
		_tmp74_ = _tmp73_->message;
		g_critical ("Appearance.vala:173: %s", _tmp74_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		_g_free0 (user_path);
		_g_object_unref0 (schedule_manual_radio);
		_g_object_unref0 (schedule_manual_box);
		_g_object_unref0 (to_label);
		_g_object_unref0 (from_label);
		_g_object_unref0 (schedule_sunset_radio);
		_g_object_unref0 (schedule_label);
		_g_object_unref0 (dark_info);
		_g_object_unref0 (prefer_style_box);
		_g_object_unref0 (prefer_dark_grid);
		_g_object_unref0 (prefer_dark_card);
		_g_object_unref0 (prefer_dark_image);
		_g_object_unref0 (prefer_default_grid);
		_g_object_unref0 (prefer_default_card);
		_g_object_unref0 (prefer_default_image);
		_g_object_unref0 (dark_label);
		block1_data_unref (_data1_);
		_data1_ = 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_);
	}
	_tmp75_ = user_path;
	if (_tmp75_ != NULL) {
		{
			PantheonShellPantheonAccountsService* _tmp76_ = NULL;
			const gchar* _tmp77_;
			PantheonShellPantheonAccountsService* _tmp78_;
			PantheonShellPantheonAccountsService* _tmp79_;
			_tmp77_ = user_path;
			_tmp78_ = (PantheonShellPantheonAccountsService*) g_initable_new (PANTHEON_SHELL_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", _tmp77_, "g-interface-name", "io.elementary.pantheon.AccountsService", NULL);
			_tmp76_ = (PantheonShellPantheonAccountsService*) _tmp78_;
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				goto __catch1_g_error;
			}
			_tmp79_ = _tmp76_;
			_tmp76_ = NULL;
			_g_object_unref0 (_data1_->pantheon_act);
			_data1_->pantheon_act = _tmp79_;
			_g_object_unref0 (_tmp76_);
		}
		goto __finally1;
		__catch1_g_error:
		{
			g_clear_error (&_inner_error0_);
			g_warning ("Appearance.vala:185: Unable to get AccountsService proxy, color scheme" \
" preference may be incorrect");
		}
		__finally1:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_free0 (user_path);
			_g_object_unref0 (schedule_manual_radio);
			_g_object_unref0 (schedule_manual_box);
			_g_object_unref0 (to_label);
			_g_object_unref0 (from_label);
			_g_object_unref0 (schedule_sunset_radio);
			_g_object_unref0 (schedule_label);
			_g_object_unref0 (dark_info);
			_g_object_unref0 (prefer_style_box);
			_g_object_unref0 (prefer_dark_grid);
			_g_object_unref0 (prefer_dark_card);
			_g_object_unref0 (prefer_dark_image);
			_g_object_unref0 (prefer_default_grid);
			_g_object_unref0 (prefer_default_card);
			_g_object_unref0 (prefer_default_image);
			_g_object_unref0 (dark_label);
			block1_data_unref (_data1_);
			_data1_ = 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_);
		}
	}
	_tmp80_ = (GtkGrid*) gtk_grid_new ();
	gtk_grid_set_column_spacing (_tmp80_, 7);
	gtk_grid_set_row_spacing (_tmp80_, 6);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp80_, 12);
	gtk_widget_set_margin_end ((GtkWidget*) _tmp80_, 12);
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp80_, 24);
	g_object_ref_sink (_tmp80_);
	grid = _tmp80_;
	_tmp81_ = _data1_->pantheon_act;
	_tmp82_ = g_dbus_proxy_get_cached_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, g_dbus_proxy_get_type (), GDBusProxy), "PrefersColorScheme");
	_tmp83_ = _tmp82_;
	_tmp84_ = _tmp83_ != NULL;
	_g_variant_unref0 (_tmp83_);
	if (_tmp84_) {
		Block2Data* _data2_;
		GtkGrid* _tmp85_;
		GraniteHeaderLabel* _tmp86_;
		GtkGrid* _tmp87_;
		GtkLabel* _tmp88_;
		GtkGrid* _tmp89_;
		GtkBox* _tmp90_;
		GtkGrid* _tmp91_;
		GraniteHeaderLabel* _tmp92_;
		GtkGrid* _tmp93_;
		GtkRadioButton* _tmp94_;
		GtkGrid* _tmp95_;
		GtkRadioButton* _tmp96_;
		GtkGrid* _tmp97_;
		GtkRadioButton* _tmp98_;
		GtkGrid* _tmp99_;
		GtkBox* _tmp100_;
		PantheonShellPantheonAccountsService* _tmp101_;
		gint _tmp102_;
		gint _tmp103_;
		GSettings* _tmp106_;
		GSettings* _tmp107_;
		GtkRadioButton* _tmp108_;
		GSettings* _tmp109_;
		GtkRadioButton* _tmp110_;
		GSettings* _tmp111_;
		GtkRadioButton* _tmp112_;
		GtkRadioButton* _tmp113_;
		GtkRadioButton* _tmp114_;
		GtkRadioButton* _tmp115_;
		GtkRadioButton* _tmp116_;
		PantheonShellPantheonAccountsService* _tmp117_;
		GraniteWidgetsTimePicker* _tmp118_;
		GSettings* _tmp119_;
		GDateTime* _tmp120_;
		GDateTime* _tmp121_;
		GraniteWidgetsTimePicker* _tmp122_;
		GraniteWidgetsTimePicker* _tmp123_;
		GSettings* _tmp124_;
		GDateTime* _tmp125_;
		GDateTime* _tmp126_;
		GraniteWidgetsTimePicker* _tmp127_;
		GtkRadioButton* _tmp128_;
		GtkBox* _tmp129_;
		_data2_ = g_slice_new0 (Block2Data);
		_data2_->_ref_count_ = 1;
		_data2_->_data1_ = block1_data_ref (_data1_);
		_tmp85_ = grid;
		_tmp86_ = dark_label;
		gtk_grid_attach (_tmp85_, (GtkWidget*) _tmp86_, 0, 0, 2, 1);
		_tmp87_ = grid;
		_tmp88_ = dark_info;
		gtk_grid_attach (_tmp87_, (GtkWidget*) _tmp88_, 0, 1, 2, 1);
		_tmp89_ = grid;
		_tmp90_ = prefer_style_box;
		gtk_grid_attach (_tmp89_, (GtkWidget*) _tmp90_, 0, 2, 2, 1);
		_tmp91_ = grid;
		_tmp92_ = schedule_label;
		gtk_grid_attach (_tmp91_, (GtkWidget*) _tmp92_, 0, 3, 2, 1);
		_tmp93_ = grid;
		_tmp94_ = _data1_->schedule_disabled_radio;
		gtk_grid_attach (_tmp93_, (GtkWidget*) _tmp94_, 0, 4, 2, 1);
		_tmp95_ = grid;
		_tmp96_ = schedule_sunset_radio;
		gtk_grid_attach (_tmp95_, (GtkWidget*) _tmp96_, 0, 5, 2, 1);
		_tmp97_ = grid;
		_tmp98_ = schedule_manual_radio;
		gtk_grid_attach (_tmp97_, (GtkWidget*) _tmp98_, 0, 6, 1, 1);
		_tmp99_ = grid;
		_tmp100_ = schedule_manual_box;
		gtk_grid_attach (_tmp99_, (GtkWidget*) _tmp100_, 1, 6, 1, 1);
		_tmp101_ = _data1_->pantheon_act;
		_tmp102_ = pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (_tmp101_);
		_tmp103_ = _tmp102_;
		switch (_tmp103_) {
			case GRANITE_SETTINGS_COLOR_SCHEME_DARK:
			{
				GtkRadioButton* _tmp104_;
				_tmp104_ = _data1_->prefer_dark_radio;
				gtk_toggle_button_set_active ((GtkToggleButton*) _tmp104_, TRUE);
				break;
			}
			default:
			{
				GtkRadioButton* _tmp105_;
				_tmp105_ = _data1_->prefer_default_radio;
				gtk_toggle_button_set_active ((GtkToggleButton*) _tmp105_, TRUE);
				break;
			}
		}
		_tmp106_ = g_settings_new ("io.elementary.settings-daemon.prefers-color-scheme");
		_data2_->settings = _tmp106_;
		_tmp107_ = _data2_->settings;
		_tmp108_ = _data1_->schedule_disabled_radio;
		g_settings_bind_with_mapping (_tmp107_, "prefer-dark-schedule", (GObject*) _tmp108_, "active", G_SETTINGS_BIND_DEFAULT, __pantheon_shell_appearance____lambda17__gsettings_bind_get_mapping, __pantheon_shell_appearance____lambda18__gsettings_bind_set_mapping, NULL, NULL);
		_tmp109_ = _data2_->settings;
		_tmp110_ = schedule_manual_radio;
		g_settings_bind_with_mapping (_tmp109_, "prefer-dark-schedule", (GObject*) _tmp110_, "active", G_SETTINGS_BIND_DEFAULT, __pantheon_shell_appearance____lambda19__gsettings_bind_get_mapping, __pantheon_shell_appearance____lambda20__gsettings_bind_set_mapping, NULL, NULL);
		_tmp111_ = _data2_->settings;
		_tmp112_ = schedule_sunset_radio;
		g_settings_bind_with_mapping (_tmp111_, "prefer-dark-schedule", (GObject*) _tmp112_, "active", G_SETTINGS_BIND_DEFAULT, __pantheon_shell_appearance____lambda21__gsettings_bind_get_mapping, __pantheon_shell_appearance____lambda22__gsettings_bind_set_mapping, NULL, NULL);
		_tmp113_ = _data1_->prefer_default_radio;
		g_signal_connect_data ((GtkToggleButton*) _tmp113_, "toggled", (GCallback) __pantheon_shell_appearance____lambda23__gtk_toggle_button_toggled, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
		_tmp114_ = _data1_->prefer_dark_radio;
		g_signal_connect_data ((GtkToggleButton*) _tmp114_, "toggled", (GCallback) __pantheon_shell_appearance____lambda24__gtk_toggle_button_toggled, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
		_tmp115_ = _data1_->prefer_default_radio;
		g_signal_connect_data ((GtkWidget*) _tmp115_, "focus-in-event", (GCallback) __pantheon_shell_appearance____lambda25__gtk_widget_focus_in_event, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
		_tmp116_ = _data1_->prefer_dark_radio;
		g_signal_connect_data ((GtkWidget*) _tmp116_, "focus-in-event", (GCallback) __pantheon_shell_appearance____lambda26__gtk_widget_focus_in_event, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
		_tmp117_ = _data1_->pantheon_act;
		g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, g_dbus_proxy_get_type (), GDBusProxy), "g-properties-changed", (GCallback) __pantheon_shell_appearance____lambda27__g_dbus_proxy_g_properties_changed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
		_tmp118_ = _data1_->from_time;
		_tmp119_ = _data2_->settings;
		_tmp120_ = pantheon_shell_appearance_double_date_time (g_settings_get_double (_tmp119_, "prefer-dark-schedule-from"));
		_tmp121_ = _tmp120_;
		granite_widgets_time_picker_set_time (_tmp118_, _tmp121_);
		_g_date_time_unref0 (_tmp121_);
		_tmp122_ = _data1_->from_time;
		g_signal_connect_data (_tmp122_, "time-changed", (GCallback) __pantheon_shell_appearance____lambda28__granite_widgets_time_picker_time_changed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
		_tmp123_ = _data1_->to_time;
		_tmp124_ = _data2_->settings;
		_tmp125_ = pantheon_shell_appearance_double_date_time (g_settings_get_double (_tmp124_, "prefer-dark-schedule-to"));
		_tmp126_ = _tmp125_;
		granite_widgets_time_picker_set_time (_tmp123_, _tmp126_);
		_g_date_time_unref0 (_tmp126_);
		_tmp127_ = _data1_->to_time;
		g_signal_connect_data (_tmp127_, "time-changed", (GCallback) __pantheon_shell_appearance____lambda29__granite_widgets_time_picker_time_changed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
		_tmp128_ = schedule_manual_radio;
		_tmp129_ = schedule_manual_box;
		g_object_bind_property_with_closures ((GObject*) _tmp128_, "active", (GObject*) _tmp129_, "sensitive", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
		block2_data_unref (_data2_);
		_data2_ = NULL;
	}
	_tmp130_ = g_settings_new (PANTHEON_SHELL_APPEARANCE_INTERFACE_SCHEMA);
	interface_settings = _tmp130_;
	_tmp131_ = interface_settings;
	_tmp132_ = g_settings_get_string (_tmp131_, PANTHEON_SHELL_APPEARANCE_STYLESHEET_KEY);
	current_stylesheet = _tmp132_;
	_tmp133_ = current_stylesheet;
	g_debug ("Appearance.vala:322: Current stylesheet: %s", _tmp133_);
	_tmp134_ = current_stylesheet;
	if (g_str_has_prefix (_tmp134_, PANTHEON_SHELL_APPEARANCE_STYLESHEET_PREFIX)) {
		GraniteHeaderLabel* accent_label = NULL;
		GraniteHeaderLabel* _tmp135_ = NULL;
		PantheonShellAppearancePrefersAccentColorButton* blueberry_button = NULL;
		PantheonShellPantheonAccountsService* _tmp136_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp137_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp138_;
		PantheonShellAppearancePrefersAccentColorButton* mint_button = NULL;
		PantheonShellPantheonAccountsService* _tmp139_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp140_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp141_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp142_;
		PantheonShellAppearancePrefersAccentColorButton* lime_button = NULL;
		PantheonShellPantheonAccountsService* _tmp143_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp144_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp145_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp146_;
		PantheonShellAppearancePrefersAccentColorButton* banana_button = NULL;
		PantheonShellPantheonAccountsService* _tmp147_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp148_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp149_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp150_;
		PantheonShellAppearancePrefersAccentColorButton* orange_button = NULL;
		PantheonShellPantheonAccountsService* _tmp151_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp152_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp153_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp154_;
		PantheonShellAppearancePrefersAccentColorButton* strawberry_button = NULL;
		PantheonShellPantheonAccountsService* _tmp155_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp156_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp157_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp158_;
		PantheonShellAppearancePrefersAccentColorButton* bubblegum_button = NULL;
		PantheonShellPantheonAccountsService* _tmp159_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp160_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp161_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp162_;
		PantheonShellAppearancePrefersAccentColorButton* grape_button = NULL;
		PantheonShellPantheonAccountsService* _tmp163_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp164_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp165_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp166_;
		PantheonShellAppearancePrefersAccentColorButton* cocoa_button = NULL;
		PantheonShellPantheonAccountsService* _tmp167_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp168_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp169_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp170_;
		PantheonShellAppearancePrefersAccentColorButton* slate_button = NULL;
		PantheonShellPantheonAccountsService* _tmp171_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp172_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp173_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp174_;
		PantheonShellAppearancePrefersAccentColorButton* auto_button = NULL;
		PantheonShellPantheonAccountsService* _tmp175_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp176_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp177_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp178_;
		GtkGrid* accent_grid = NULL;
		GtkGrid* _tmp179_;
		GtkGrid* _tmp180_;
		GtkGrid* _tmp181_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp182_;
		GtkGrid* _tmp183_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp184_;
		GtkGrid* _tmp185_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp186_;
		GtkGrid* _tmp187_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp188_;
		GtkGrid* _tmp189_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp190_;
		GtkGrid* _tmp191_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp192_;
		GtkGrid* _tmp193_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp194_;
		GtkGrid* _tmp195_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp196_;
		GtkGrid* _tmp197_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp198_;
		GtkGrid* _tmp199_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp200_;
		GtkGrid* _tmp201_;
		PantheonShellAppearancePrefersAccentColorButton* _tmp202_;
		GtkLabel* accent_info = NULL;
		GtkLabel* _tmp203_ = NULL;
		GtkLabel* _tmp204_;
		GtkStyleContext* _tmp205_;
		GtkGrid* _tmp206_;
		GraniteHeaderLabel* _tmp207_;
		GtkGrid* _tmp208_;
		GtkLabel* _tmp209_;
		GtkGrid* _tmp210_;
		GtkGrid* _tmp211_;
		_tmp135_ = granite_header_label_new (_ ("Accent Color"));
		gtk_widget_set_margin_top ((GtkWidget*) _tmp135_, 18);
		g_object_ref_sink (_tmp135_);
		accent_label = _tmp135_;
		_tmp136_ = _data1_->pantheon_act;
		_tmp137_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp136_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BLUE, NULL);
		g_object_ref_sink (_tmp137_);
		blueberry_button = _tmp137_;
		_tmp138_ = blueberry_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp138_, _ ("Blueberry"));
		_tmp139_ = _data1_->pantheon_act;
		_tmp140_ = blueberry_button;
		_tmp141_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp139_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_MINT, (GtkRadioButton*) _tmp140_);
		g_object_ref_sink (_tmp141_);
		mint_button = _tmp141_;
		_tmp142_ = mint_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp142_, _ ("Mint"));
		_tmp143_ = _data1_->pantheon_act;
		_tmp144_ = blueberry_button;
		_tmp145_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp143_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GREEN, (GtkRadioButton*) _tmp144_);
		g_object_ref_sink (_tmp145_);
		lime_button = _tmp145_;
		_tmp146_ = lime_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp146_, _ ("Lime"));
		_tmp147_ = _data1_->pantheon_act;
		_tmp148_ = blueberry_button;
		_tmp149_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp147_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_YELLOW, (GtkRadioButton*) _tmp148_);
		g_object_ref_sink (_tmp149_);
		banana_button = _tmp149_;
		_tmp150_ = banana_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp150_, _ ("Banana"));
		_tmp151_ = _data1_->pantheon_act;
		_tmp152_ = blueberry_button;
		_tmp153_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp151_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_ORANGE, (GtkRadioButton*) _tmp152_);
		g_object_ref_sink (_tmp153_);
		orange_button = _tmp153_;
		_tmp154_ = orange_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp154_, _ ("Orange"));
		_tmp155_ = _data1_->pantheon_act;
		_tmp156_ = blueberry_button;
		_tmp157_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp155_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_RED, (GtkRadioButton*) _tmp156_);
		g_object_ref_sink (_tmp157_);
		strawberry_button = _tmp157_;
		_tmp158_ = strawberry_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp158_, _ ("Strawberry"));
		_tmp159_ = _data1_->pantheon_act;
		_tmp160_ = blueberry_button;
		_tmp161_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp159_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PINK, (GtkRadioButton*) _tmp160_);
		g_object_ref_sink (_tmp161_);
		bubblegum_button = _tmp161_;
		_tmp162_ = bubblegum_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp162_, _ ("Bubblegum"));
		_tmp163_ = _data1_->pantheon_act;
		_tmp164_ = blueberry_button;
		_tmp165_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp163_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_PURPLE, (GtkRadioButton*) _tmp164_);
		g_object_ref_sink (_tmp165_);
		grape_button = _tmp165_;
		_tmp166_ = grape_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp166_, _ ("Grape"));
		_tmp167_ = _data1_->pantheon_act;
		_tmp168_ = blueberry_button;
		_tmp169_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp167_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_BROWN, (GtkRadioButton*) _tmp168_);
		g_object_ref_sink (_tmp169_);
		cocoa_button = _tmp169_;
		_tmp170_ = cocoa_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp170_, _ ("Cocoa"));
		_tmp171_ = _data1_->pantheon_act;
		_tmp172_ = blueberry_button;
		_tmp173_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp171_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_GRAY, (GtkRadioButton*) _tmp172_);
		g_object_ref_sink (_tmp173_);
		slate_button = _tmp173_;
		_tmp174_ = slate_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp174_, _ ("Slate"));
		_tmp175_ = _data1_->pantheon_act;
		_tmp176_ = blueberry_button;
		_tmp177_ = pantheon_shell_appearance_prefers_accent_color_button_new (_tmp175_, PANTHEON_SHELL_APPEARANCE_ACCENT_COLOR_NO_PREFERENCE, (GtkRadioButton*) _tmp176_);
		g_object_ref_sink (_tmp177_);
		auto_button = _tmp177_;
		_tmp178_ = auto_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp178_, _ ("Automatic based on wallpaper"));
		_tmp179_ = (GtkGrid*) gtk_grid_new ();
		g_object_ref_sink (_tmp179_);
		accent_grid = _tmp179_;
		_tmp180_ = accent_grid;
		gtk_grid_set_column_spacing (_tmp180_, 6);
		_tmp181_ = accent_grid;
		_tmp182_ = blueberry_button;
		gtk_container_add ((GtkContainer*) _tmp181_, (GtkWidget*) _tmp182_);
		_tmp183_ = accent_grid;
		_tmp184_ = mint_button;
		gtk_container_add ((GtkContainer*) _tmp183_, (GtkWidget*) _tmp184_);
		_tmp185_ = accent_grid;
		_tmp186_ = lime_button;
		gtk_container_add ((GtkContainer*) _tmp185_, (GtkWidget*) _tmp186_);
		_tmp187_ = accent_grid;
		_tmp188_ = banana_button;
		gtk_container_add ((GtkContainer*) _tmp187_, (GtkWidget*) _tmp188_);
		_tmp189_ = accent_grid;
		_tmp190_ = orange_button;
		gtk_container_add ((GtkContainer*) _tmp189_, (GtkWidget*) _tmp190_);
		_tmp191_ = accent_grid;
		_tmp192_ = strawberry_button;
		gtk_container_add ((GtkContainer*) _tmp191_, (GtkWidget*) _tmp192_);
		_tmp193_ = accent_grid;
		_tmp194_ = bubblegum_button;
		gtk_container_add ((GtkContainer*) _tmp193_, (GtkWidget*) _tmp194_);
		_tmp195_ = accent_grid;
		_tmp196_ = grape_button;
		gtk_container_add ((GtkContainer*) _tmp195_, (GtkWidget*) _tmp196_);
		_tmp197_ = accent_grid;
		_tmp198_ = cocoa_button;
		gtk_container_add ((GtkContainer*) _tmp197_, (GtkWidget*) _tmp198_);
		_tmp199_ = accent_grid;
		_tmp200_ = slate_button;
		gtk_container_add ((GtkContainer*) _tmp199_, (GtkWidget*) _tmp200_);
		_tmp201_ = accent_grid;
		_tmp202_ = auto_button;
		gtk_container_add ((GtkContainer*) _tmp201_, (GtkWidget*) _tmp202_);
		_tmp203_ = (GtkLabel*) gtk_label_new (_ ("Used across the system by default. Apps can always use their own accen" \
"t color."));
		gtk_label_set_xalign (_tmp203_, (gfloat) 0);
		g_object_set (_tmp203_, "wrap", TRUE, NULL);
		g_object_ref_sink (_tmp203_);
		accent_info = _tmp203_;
		_tmp204_ = accent_info;
		_tmp205_ = gtk_widget_get_style_context ((GtkWidget*) _tmp204_);
		gtk_style_context_add_class (_tmp205_, GTK_STYLE_CLASS_DIM_LABEL);
		_tmp206_ = grid;
		_tmp207_ = accent_label;
		gtk_grid_attach (_tmp206_, (GtkWidget*) _tmp207_, 0, 7, 2, 1);
		_tmp208_ = grid;
		_tmp209_ = accent_info;
		gtk_grid_attach (_tmp208_, (GtkWidget*) _tmp209_, 0, 8, 2, 1);
		_tmp210_ = grid;
		_tmp211_ = accent_grid;
		gtk_grid_attach (_tmp210_, (GtkWidget*) _tmp211_, 0, 9, 2, 1);
		_g_object_unref0 (accent_info);
		_g_object_unref0 (accent_grid);
		_g_object_unref0 (auto_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 (accent_label);
	}
	_tmp212_ = (HdyClamp*) hdy_clamp_new ();
	g_object_ref_sink (_tmp212_);
	clamp = _tmp212_;
	_tmp213_ = clamp;
	_tmp214_ = grid;
	gtk_container_add ((GtkContainer*) _tmp213_, (GtkWidget*) _tmp214_);
	_tmp215_ = clamp;
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp215_);
	_g_object_unref0 (clamp);
	_g_free0 (current_stylesheet);
	_g_object_unref0 (interface_settings);
	_g_object_unref0 (grid);
	_g_free0 (user_path);
	_g_object_unref0 (schedule_manual_radio);
	_g_object_unref0 (schedule_manual_box);
	_g_object_unref0 (to_label);
	_g_object_unref0 (from_label);
	_g_object_unref0 (schedule_sunset_radio);
	_g_object_unref0 (schedule_label);
	_g_object_unref0 (dark_info);
	_g_object_unref0 (prefer_style_box);
	_g_object_unref0 (prefer_dark_grid);
	_g_object_unref0 (prefer_dark_card);
	_g_object_unref0 (prefer_dark_image);
	_g_object_unref0 (prefer_default_grid);
	_g_object_unref0 (prefer_default_card);
	_g_object_unref0 (prefer_default_image);
	_g_object_unref0 (dark_label);
	block1_data_unref (_data1_);
	_data1_ = NULL;
	return obj;
}

static void
pantheon_shell_appearance_class_init (PantheonShellAppearanceClass * klass,
                                      gpointer klass_data)
{
	pantheon_shell_appearance_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = pantheon_shell_appearance_constructor;
}

static void
pantheon_shell_appearance_instance_init (PantheonShellAppearance * self,
                                         gpointer klass)
{
}

static GType
pantheon_shell_appearance_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PantheonShellAppearanceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pantheon_shell_appearance_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PantheonShellAppearance), 0, (GInstanceInitFunc) pantheon_shell_appearance_instance_init, NULL };
	GType pantheon_shell_appearance_type_id;
	pantheon_shell_appearance_type_id = g_type_register_static (gtk_box_get_type (), "PantheonShellAppearance", &g_define_type_info, 0);
	return pantheon_shell_appearance_type_id;
}

GType
pantheon_shell_appearance_get_type (void)
{
	static volatile gsize pantheon_shell_appearance_type_id__once = 0;
	if (g_once_init_enter (&pantheon_shell_appearance_type_id__once)) {
		GType pantheon_shell_appearance_type_id;
		pantheon_shell_appearance_type_id = pantheon_shell_appearance_get_type_once ();
		g_once_init_leave (&pantheon_shell_appearance_type_id__once, pantheon_shell_appearance_type_id);
	}
	return pantheon_shell_appearance_type_id__once;
}

