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

/*
 * Copyright 2017–2020 elementary, Inc. (https://elementary.io)
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include "granite.h"
#include <float.h>
#include <math.h>
#include <gdk/gdk.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define TYPE_CSS_VIEW (css_view_get_type ())
#define CSS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CSS_VIEW, CSSView))
#define CSS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CSS_VIEW, CSSViewClass))
#define IS_CSS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CSS_VIEW))
#define IS_CSS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CSS_VIEW))
#define CSS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CSS_VIEW, CSSViewClass))

typedef struct _CSSView CSSView;
typedef struct _CSSViewClass CSSViewClass;
typedef struct _CSSViewPrivate CSSViewPrivate;
enum  {
	CSS_VIEW_0_PROPERTY,
	CSS_VIEW_WINDOW_PROPERTY,
	CSS_VIEW_NUM_PROPERTIES
};
static GParamSpec* css_view_properties[CSS_VIEW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block5Data Block5Data;

struct _CSSView {
	GtkGrid parent_instance;
	CSSViewPrivate * priv;
};

struct _CSSViewClass {
	GtkGridClass parent_class;
};

struct _CSSViewPrivate {
	GtkWindow* _window;
};

struct _Block5Data {
	int _ref_count_;
	CSSView* self;
	GtkColorButton* primary_color_button;
};

static gint CSSView_private_offset;
static gpointer css_view_parent_class = NULL;

VALA_EXTERN GType css_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (CSSView, g_object_unref)
VALA_EXTERN GtkWindow* css_view_get_window (CSSView* self);
static void css_view_set_window (CSSView* self,
                          GtkWindow* value);
VALA_EXTERN CSSView* css_view_new (GtkWindow* window);
VALA_EXTERN CSSView* css_view_construct (GType object_type,
                             GtkWindow* window);
static GObject * css_view_constructor (GType type,
                                guint n_construct_properties,
                                GObjectConstructParam * construct_properties);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (void * _userdata_);
static void _css_view___lambda5_ (Block5Data* _data5_);
static void __css_view___lambda5__gtk_color_button_color_set (GtkColorButton* _sender,
                                                       gpointer self);
static void css_view_finalize (GObject * obj);
static GType css_view_get_type_once (void);
static void _vala_css_view_get_property (GObject * object,
                                  guint property_id,
                                  GValue * value,
                                  GParamSpec * pspec);
static void _vala_css_view_set_property (GObject * object,
                                  guint property_id,
                                  const GValue * value,
                                  GParamSpec * pspec);

static inline gpointer
css_view_get_instance_private (CSSView* self)
{
	return G_STRUCT_MEMBER_P (self, CSSView_private_offset);
}

GtkWindow*
css_view_get_window (CSSView* self)
{
	GtkWindow* result;
	GtkWindow* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_window;
	result = _tmp0_;
	return result;
}

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

static void
css_view_set_window (CSSView* self,
                     GtkWindow* value)
{
	GtkWindow* old_value;
	g_return_if_fail (self != NULL);
	old_value = css_view_get_window (self);
	if (old_value != value) {
		GtkWindow* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_window);
		self->priv->_window = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, css_view_properties[CSS_VIEW_WINDOW_PROPERTY]);
	}
}

CSSView*
css_view_construct (GType object_type,
                    GtkWindow* window)
{
	CSSView * self = NULL;
	g_return_val_if_fail (window != NULL, NULL);
	self = (CSSView*) g_object_new (object_type, "halign", GTK_ALIGN_CENTER, "margin", 24, "valign", GTK_ALIGN_CENTER, "window", window, NULL);
	return self;
}

CSSView*
css_view_new (GtkWindow* window)
{
	return css_view_construct (TYPE_CSS_VIEW, window);
}

static Block5Data*
block5_data_ref (Block5Data* _data5_)
{
	g_atomic_int_inc (&_data5_->_ref_count_);
	return _data5_;
}

static void
block5_data_unref (void * _userdata_)
{
	Block5Data* _data5_;
	_data5_ = (Block5Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
		CSSView* self;
		self = _data5_->self;
		_g_object_unref0 (_data5_->primary_color_button);
		_g_object_unref0 (self);
		g_slice_free (Block5Data, _data5_);
	}
}

static void
_css_view___lambda5_ (Block5Data* _data5_)
{
	CSSView* self;
	GtkWindow* _tmp0_;
	GtkColorButton* _tmp1_;
	GdkRGBA _tmp2_ = {0};
	GdkRGBA _tmp3_;
	GtkCssProvider* _tmp4_;
	GtkCssProvider* _tmp5_;
	self = _data5_->self;
	_tmp0_ = self->priv->_window;
	_tmp1_ = _data5_->primary_color_button;
	gtk_color_chooser_get_rgba ((GtkColorChooser*) _tmp1_, &_tmp2_);
	_tmp3_ = _tmp2_;
	_tmp4_ = granite_widgets_utils_set_color_primary ((GtkWidget*) _tmp0_, &_tmp3_, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
	_tmp5_ = _tmp4_;
	_g_object_unref0 (_tmp5_);
}

static void
__css_view___lambda5__gtk_color_button_color_set (GtkColorButton* _sender,
                                                  gpointer self)
{
	_css_view___lambda5_ (self);
}

static GObject *
css_view_constructor (GType type,
                      guint n_construct_properties,
                      GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	CSSView * self;
	Block5Data* _data5_;
	GtkLabel* header1 = NULL;
	GtkLabel* _tmp0_ = NULL;
	GtkLabel* _tmp1_;
	GtkStyleContext* _tmp2_;
	GtkLabel* header2 = NULL;
	GtkLabel* _tmp3_;
	GtkLabel* _tmp4_;
	GtkStyleContext* _tmp5_;
	GtkLabel* header3 = NULL;
	GtkLabel* _tmp6_;
	GtkLabel* _tmp7_;
	GtkStyleContext* _tmp8_;
	GtkLabel* header4 = NULL;
	GtkLabel* _tmp9_ = NULL;
	GtkLabel* _tmp10_;
	GtkStyleContext* _tmp11_;
	GtkLabel* card_label = NULL;
	GtkLabel* _tmp12_ = NULL;
	GtkGrid* card = NULL;
	GtkGrid* _tmp13_ = NULL;
	GtkStyleContext* card_context = NULL;
	GtkGrid* _tmp14_;
	GtkStyleContext* _tmp15_;
	GtkStyleContext* _tmp16_;
	GtkStyleContext* _tmp17_;
	GtkGrid* _tmp18_;
	GtkLabel* _tmp19_;
	GtkGrid* _tmp20_;
	GtkLabel* _tmp21_;
	GtkGrid* _tmp22_;
	GtkLabel* _tmp23_;
	GtkGrid* _tmp24_;
	GtkLabel* _tmp25_;
	GtkLabel* checker_label = NULL;
	GtkLabel* _tmp26_ = NULL;
	GtkImage* checker_image = NULL;
	GtkImage* _tmp27_ = NULL;
	GtkGrid* checker_grid = NULL;
	GtkGrid* _tmp28_;
	GtkGrid* _tmp29_;
	GtkStyleContext* _tmp30_;
	GtkGrid* _tmp31_;
	GtkImage* _tmp32_;
	GtkLabel* terminal_label = NULL;
	GtkLabel* _tmp33_ = NULL;
	GtkTextView* terminal = NULL;
	GtkTextView* _tmp34_ = NULL;
	GtkTextView* _tmp35_;
	GtkTextBuffer* _tmp36_;
	GtkTextBuffer* _tmp37_;
	GtkTextView* _tmp38_;
	GtkStyleContext* _tmp39_;
	GtkLabel* back_button_label = NULL;
	GtkLabel* _tmp40_ = NULL;
	GtkButton* back_button = NULL;
	GtkButton* _tmp41_ = NULL;
	GtkButton* _tmp42_;
	GtkStyleContext* _tmp43_;
	GtkLabel* warmth_label = NULL;
	GtkLabel* _tmp44_ = NULL;
	GtkScale* warmth_scale = NULL;
	GtkScale* _tmp45_ = NULL;
	GtkScale* _tmp46_;
	GtkScale* _tmp47_;
	GtkStyleContext* _tmp48_;
	GtkLabel* temperature_label = NULL;
	GtkLabel* _tmp49_ = NULL;
	GtkScale* temperature_scale = NULL;
	GtkScale* _tmp50_ = NULL;
	GtkScale* _tmp51_;
	GtkScale* _tmp52_;
	GtkStyleContext* _tmp53_;
	GtkLabel* primary_color_label = NULL;
	GtkLabel* _tmp54_ = NULL;
	GdkRGBA _tmp55_ = {0};
	GtkColorButton* _tmp56_;
	GtkLabel* accent_color_label = NULL;
	GtkLabel* _tmp57_ = NULL;
	GtkImage* accent_color_icon = NULL;
	GtkImage* _tmp58_;
	GtkImage* _tmp59_;
	GtkStyleContext* _tmp60_;
	GtkLabel* accent_color_string = NULL;
	GtkLabel* _tmp61_;
	GtkLabel* _tmp62_;
	GtkStyleContext* _tmp63_;
	GtkGrid* accent_color_grid = NULL;
	GtkGrid* _tmp64_ = NULL;
	GtkGrid* _tmp65_;
	GtkImage* _tmp66_;
	GtkGrid* _tmp67_;
	GtkLabel* _tmp68_;
	GtkLabel* _tmp69_;
	GtkGrid* _tmp70_;
	GtkLabel* _tmp71_;
	GtkGrid* _tmp72_;
	GtkLabel* _tmp73_;
	GtkTextView* _tmp74_;
	GtkLabel* _tmp75_;
	GtkButton* _tmp76_;
	GtkLabel* _tmp77_;
	GtkScale* _tmp78_;
	GtkLabel* _tmp79_;
	GtkScale* _tmp80_;
	GtkLabel* _tmp81_;
	GtkColorButton* _tmp82_;
	GtkLabel* _tmp83_;
	GtkGrid* _tmp84_;
	GtkColorButton* _tmp85_;
	parent_class = G_OBJECT_CLASS (css_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CSS_VIEW, CSSView);
	_data5_ = g_slice_new0 (Block5Data);
	_data5_->_ref_count_ = 1;
	_data5_->self = g_object_ref (self);
	_tmp0_ = (GtkLabel*) gtk_label_new ("\"h1\" Style Class");
	gtk_widget_set_margin_end ((GtkWidget*) _tmp0_, 24);
	gtk_widget_set_margin_start ((GtkWidget*) _tmp0_, 24);
	gtk_widget_set_margin_top ((GtkWidget*) _tmp0_, 12);
	g_object_ref_sink (_tmp0_);
	header1 = _tmp0_;
	_tmp1_ = header1;
	_tmp2_ = gtk_widget_get_style_context ((GtkWidget*) _tmp1_);
	gtk_style_context_add_class (_tmp2_, GRANITE_STYLE_CLASS_H1_LABEL);
	_tmp3_ = (GtkLabel*) gtk_label_new ("\"h2\" Style Class");
	g_object_ref_sink (_tmp3_);
	header2 = _tmp3_;
	_tmp4_ = header2;
	_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) _tmp4_);
	gtk_style_context_add_class (_tmp5_, GRANITE_STYLE_CLASS_H2_LABEL);
	_tmp6_ = (GtkLabel*) gtk_label_new ("\"h3\" Style Class");
	g_object_ref_sink (_tmp6_);
	header3 = _tmp6_;
	_tmp7_ = header3;
	_tmp8_ = gtk_widget_get_style_context ((GtkWidget*) _tmp7_);
	gtk_style_context_add_class (_tmp8_, GRANITE_STYLE_CLASS_H3_LABEL);
	_tmp9_ = (GtkLabel*) gtk_label_new ("\"h4\" Style Class");
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp9_, 12);
	g_object_ref_sink (_tmp9_);
	header4 = _tmp9_;
	_tmp10_ = header4;
	_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
	gtk_style_context_add_class (_tmp11_, GRANITE_STYLE_CLASS_H4_LABEL);
	_tmp12_ = (GtkLabel*) gtk_label_new ("\"card\" with \"rounded\" style class:");
	gtk_widget_set_halign ((GtkWidget*) _tmp12_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp12_);
	card_label = _tmp12_;
	_tmp13_ = (GtkGrid*) gtk_grid_new ();
	gtk_orientable_set_orientation ((GtkOrientable*) _tmp13_, GTK_ORIENTATION_VERTICAL);
	g_object_ref_sink (_tmp13_);
	card = _tmp13_;
	_tmp14_ = card;
	_tmp15_ = gtk_widget_get_style_context ((GtkWidget*) _tmp14_);
	card_context = _tmp15_;
	_tmp16_ = card_context;
	gtk_style_context_add_class (_tmp16_, GRANITE_STYLE_CLASS_CARD);
	_tmp17_ = card_context;
	gtk_style_context_add_class (_tmp17_, GRANITE_STYLE_CLASS_ROUNDED);
	_tmp18_ = card;
	_tmp19_ = header1;
	gtk_container_add ((GtkContainer*) _tmp18_, (GtkWidget*) _tmp19_);
	_tmp20_ = card;
	_tmp21_ = header2;
	gtk_container_add ((GtkContainer*) _tmp20_, (GtkWidget*) _tmp21_);
	_tmp22_ = card;
	_tmp23_ = header3;
	gtk_container_add ((GtkContainer*) _tmp22_, (GtkWidget*) _tmp23_);
	_tmp24_ = card;
	_tmp25_ = header4;
	gtk_container_add ((GtkContainer*) _tmp24_, (GtkWidget*) _tmp25_);
	_tmp26_ = (GtkLabel*) gtk_label_new ("\"checkerboard\" style class:");
	gtk_widget_set_halign ((GtkWidget*) _tmp26_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp26_);
	checker_label = _tmp26_;
	_tmp27_ = (GtkImage*) gtk_image_new_from_icon_name ("dialog-information", (GtkIconSize) GTK_ICON_SIZE_DND);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp27_, TRUE);
	g_object_set ((GtkWidget*) _tmp27_, "margin", 6, NULL);
	g_object_ref_sink (_tmp27_);
	checker_image = _tmp27_;
	_tmp28_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp28_);
	checker_grid = _tmp28_;
	_tmp29_ = checker_grid;
	_tmp30_ = gtk_widget_get_style_context ((GtkWidget*) _tmp29_);
	gtk_style_context_add_class (_tmp30_, GRANITE_STYLE_CLASS_CHECKERBOARD);
	_tmp31_ = checker_grid;
	_tmp32_ = checker_image;
	gtk_container_add ((GtkContainer*) _tmp31_, (GtkWidget*) _tmp32_);
	_tmp33_ = (GtkLabel*) gtk_label_new ("\"terminal\" style class:");
	gtk_widget_set_halign ((GtkWidget*) _tmp33_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp33_);
	terminal_label = _tmp33_;
	_tmp34_ = (GtkTextView*) gtk_text_view_new ();
	gtk_container_set_border_width ((GtkContainer*) _tmp34_, (guint) 12);
	gtk_text_view_set_pixels_below_lines (_tmp34_, 3);
	g_object_ref_sink (_tmp34_);
	terminal = _tmp34_;
	_tmp35_ = terminal;
	_tmp36_ = gtk_text_view_get_buffer (_tmp35_);
	_tmp37_ = _tmp36_;
	g_object_set (_tmp37_, "text", "[ 73%] Linking C executable granite-demo\n" \
"[100%] Built target granite-demo", NULL);
	_tmp38_ = terminal;
	_tmp39_ = gtk_widget_get_style_context ((GtkWidget*) _tmp38_);
	gtk_style_context_add_class (_tmp39_, GRANITE_STYLE_CLASS_TERMINAL);
	_tmp40_ = (GtkLabel*) gtk_label_new ("\"back-button\" style class:");
	gtk_widget_set_halign ((GtkWidget*) _tmp40_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp40_);
	back_button_label = _tmp40_;
	_tmp41_ = (GtkButton*) gtk_button_new_with_label ("Back Button");
	gtk_widget_set_halign ((GtkWidget*) _tmp41_, GTK_ALIGN_START);
	g_object_ref_sink (_tmp41_);
	back_button = _tmp41_;
	_tmp42_ = back_button;
	_tmp43_ = gtk_widget_get_style_context ((GtkWidget*) _tmp42_);
	gtk_style_context_add_class (_tmp43_, GRANITE_STYLE_CLASS_BACK_BUTTON);
	_tmp44_ = (GtkLabel*) gtk_label_new ("\"warmth\" style class:");
	gtk_widget_set_halign ((GtkWidget*) _tmp44_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp44_);
	warmth_label = _tmp44_;
	_tmp45_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) 3500, (gdouble) 6000, (gdouble) 10);
	gtk_scale_set_draw_value (_tmp45_, FALSE);
	gtk_scale_set_has_origin (_tmp45_, FALSE);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp45_, TRUE);
	gtk_range_set_inverted ((GtkRange*) _tmp45_, TRUE);
	g_object_ref_sink (_tmp45_);
	warmth_scale = _tmp45_;
	_tmp46_ = warmth_scale;
	gtk_range_set_value ((GtkRange*) _tmp46_, (gdouble) 6000);
	_tmp47_ = warmth_scale;
	_tmp48_ = gtk_widget_get_style_context ((GtkWidget*) _tmp47_);
	gtk_style_context_add_class (_tmp48_, GRANITE_STYLE_CLASS_WARMTH);
	_tmp49_ = (GtkLabel*) gtk_label_new ("\"temperature\" style class:");
	gtk_widget_set_halign ((GtkWidget*) _tmp49_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp49_);
	temperature_label = _tmp49_;
	_tmp50_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) (-16.0f), (gdouble) 16.0f, 1.0);
	gtk_scale_set_draw_value (_tmp50_, FALSE);
	gtk_scale_set_has_origin (_tmp50_, FALSE);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp50_, TRUE);
	g_object_ref_sink (_tmp50_);
	temperature_scale = _tmp50_;
	_tmp51_ = temperature_scale;
	gtk_range_set_value ((GtkRange*) _tmp51_, (gdouble) 0);
	_tmp52_ = temperature_scale;
	_tmp53_ = gtk_widget_get_style_context ((GtkWidget*) _tmp52_);
	gtk_style_context_add_class (_tmp53_, GRANITE_STYLE_CLASS_TEMPERATURE);
	_tmp54_ = (GtkLabel*) gtk_label_new ("Set HeaderBar color:");
	gtk_widget_set_halign ((GtkWidget*) _tmp54_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp54_);
	primary_color_label = _tmp54_;
	_tmp55_.red = (gdouble) 222;
	_tmp55_.green = (gdouble) 222;
	_tmp55_.blue = (gdouble) 222;
	_tmp55_.alpha = (gdouble) 255;
	_tmp56_ = (GtkColorButton*) gtk_color_button_new_with_rgba (&_tmp55_);
	g_object_ref_sink (_tmp56_);
	_data5_->primary_color_button = _tmp56_;
	_tmp57_ = (GtkLabel*) gtk_label_new ("Accent colored labels and icons:");
	gtk_widget_set_halign ((GtkWidget*) _tmp57_, GTK_ALIGN_END);
	g_object_ref_sink (_tmp57_);
	accent_color_label = _tmp57_;
	_tmp58_ = (GtkImage*) gtk_image_new_from_icon_name ("emoji-body-symbolic", (GtkIconSize) GTK_ICON_SIZE_MENU);
	g_object_ref_sink (_tmp58_);
	accent_color_icon = _tmp58_;
	_tmp59_ = accent_color_icon;
	_tmp60_ = gtk_widget_get_style_context ((GtkWidget*) _tmp59_);
	gtk_style_context_add_class (_tmp60_, GRANITE_STYLE_CLASS_ACCENT);
	_tmp61_ = (GtkLabel*) gtk_label_new ("Lorem ipsum dolor sit amet");
	g_object_ref_sink (_tmp61_);
	accent_color_string = _tmp61_;
	_tmp62_ = accent_color_string;
	_tmp63_ = gtk_widget_get_style_context ((GtkWidget*) _tmp62_);
	gtk_style_context_add_class (_tmp63_, GRANITE_STYLE_CLASS_ACCENT);
	_tmp64_ = (GtkGrid*) gtk_grid_new ();
	gtk_grid_set_column_spacing (_tmp64_, 6);
	g_object_ref_sink (_tmp64_);
	accent_color_grid = _tmp64_;
	_tmp65_ = accent_color_grid;
	_tmp66_ = accent_color_icon;
	gtk_container_add ((GtkContainer*) _tmp65_, (GtkWidget*) _tmp66_);
	_tmp67_ = accent_color_grid;
	_tmp68_ = accent_color_string;
	gtk_container_add ((GtkContainer*) _tmp67_, (GtkWidget*) _tmp68_);
	gtk_grid_set_column_spacing ((GtkGrid*) self, 12);
	gtk_grid_set_row_spacing ((GtkGrid*) self, 24);
	_tmp69_ = card_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp69_, 0, 0, 1, 1);
	_tmp70_ = card;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp70_, 1, 0, 2, 1);
	_tmp71_ = checker_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp71_, 0, 1, 1, 1);
	_tmp72_ = checker_grid;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp72_, 1, 1, 2, 1);
	_tmp73_ = terminal_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp73_, 0, 2, 1, 1);
	_tmp74_ = terminal;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp74_, 1, 2, 2, 1);
	_tmp75_ = back_button_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp75_, 0, 3, 1, 1);
	_tmp76_ = back_button;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp76_, 1, 3, 2, 1);
	_tmp77_ = warmth_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp77_, 0, 4, 1, 1);
	_tmp78_ = warmth_scale;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp78_, 1, 4, 1, 1);
	_tmp79_ = temperature_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp79_, 0, 5, 1, 1);
	_tmp80_ = temperature_scale;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp80_, 1, 5, 1, 1);
	_tmp81_ = primary_color_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp81_, 0, 6, 1, 1);
	_tmp82_ = _data5_->primary_color_button;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp82_, 1, 6, 2, 1);
	_tmp83_ = accent_color_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp83_, 0, 7, 1, 1);
	_tmp84_ = accent_color_grid;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp84_, 1, 7, 1, 1);
	_tmp85_ = _data5_->primary_color_button;
	g_signal_connect_data (_tmp85_, "color-set", (GCallback) __css_view___lambda5__gtk_color_button_color_set, block5_data_ref (_data5_), (GClosureNotify) block5_data_unref, 0);
	_g_object_unref0 (accent_color_grid);
	_g_object_unref0 (accent_color_string);
	_g_object_unref0 (accent_color_icon);
	_g_object_unref0 (accent_color_label);
	_g_object_unref0 (primary_color_label);
	_g_object_unref0 (temperature_scale);
	_g_object_unref0 (temperature_label);
	_g_object_unref0 (warmth_scale);
	_g_object_unref0 (warmth_label);
	_g_object_unref0 (back_button);
	_g_object_unref0 (back_button_label);
	_g_object_unref0 (terminal);
	_g_object_unref0 (terminal_label);
	_g_object_unref0 (checker_grid);
	_g_object_unref0 (checker_image);
	_g_object_unref0 (checker_label);
	_g_object_unref0 (card);
	_g_object_unref0 (card_label);
	_g_object_unref0 (header4);
	_g_object_unref0 (header3);
	_g_object_unref0 (header2);
	_g_object_unref0 (header1);
	block5_data_unref (_data5_);
	_data5_ = NULL;
	return obj;
}

static void
css_view_class_init (CSSViewClass * klass,
                     gpointer klass_data)
{
	css_view_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &CSSView_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_css_view_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_css_view_set_property;
	G_OBJECT_CLASS (klass)->constructor = css_view_constructor;
	G_OBJECT_CLASS (klass)->finalize = css_view_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), CSS_VIEW_WINDOW_PROPERTY, css_view_properties[CSS_VIEW_WINDOW_PROPERTY] = g_param_spec_object ("window", "window", "window", gtk_window_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}

static void
css_view_instance_init (CSSView * self,
                        gpointer klass)
{
	self->priv = css_view_get_instance_private (self);
}

static void
css_view_finalize (GObject * obj)
{
	CSSView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CSS_VIEW, CSSView);
	_g_object_unref0 (self->priv->_window);
	G_OBJECT_CLASS (css_view_parent_class)->finalize (obj);
}

static GType
css_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (CSSViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) css_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CSSView), 0, (GInstanceInitFunc) css_view_instance_init, NULL };
	GType css_view_type_id;
	css_view_type_id = g_type_register_static (gtk_grid_get_type (), "CSSView", &g_define_type_info, 0);
	CSSView_private_offset = g_type_add_instance_private (css_view_type_id, sizeof (CSSViewPrivate));
	return css_view_type_id;
}

GType
css_view_get_type (void)
{
	static volatile gsize css_view_type_id__once = 0;
	if (g_once_init_enter (&css_view_type_id__once)) {
		GType css_view_type_id;
		css_view_type_id = css_view_get_type_once ();
		g_once_init_leave (&css_view_type_id__once, css_view_type_id);
	}
	return css_view_type_id__once;
}

static void
_vala_css_view_get_property (GObject * object,
                             guint property_id,
                             GValue * value,
                             GParamSpec * pspec)
{
	CSSView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CSS_VIEW, CSSView);
	switch (property_id) {
		case CSS_VIEW_WINDOW_PROPERTY:
		g_value_set_object (value, css_view_get_window (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_css_view_set_property (GObject * object,
                             guint property_id,
                             const GValue * value,
                             GParamSpec * pspec)
{
	CSSView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CSS_VIEW, CSSView);
	switch (property_id) {
		case CSS_VIEW_WINDOW_PROPERTY:
		css_view_set_window (self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

