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

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

#include <gtk/gtk.h>
#include <glib-object.h>
#include <gio/gio.h>
#include "granite.h"
#include <glib.h>
#include <stdlib.h>
#include <string.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 GRANITE_TYPE_DEMO (granite_demo_get_type ())
#define GRANITE_DEMO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRANITE_TYPE_DEMO, GraniteDemo))
#define GRANITE_DEMO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRANITE_TYPE_DEMO, GraniteDemoClass))
#define GRANITE_IS_DEMO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRANITE_TYPE_DEMO))
#define GRANITE_IS_DEMO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRANITE_TYPE_DEMO))
#define GRANITE_DEMO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRANITE_TYPE_DEMO, GraniteDemoClass))

typedef struct _GraniteDemo GraniteDemo;
typedef struct _GraniteDemoClass GraniteDemoClass;
typedef struct _GraniteDemoPrivate GraniteDemoPrivate;
enum  {
	GRANITE_DEMO_0_PROPERTY,
	GRANITE_DEMO_NUM_PROPERTIES
};
static GParamSpec* granite_demo_properties[GRANITE_DEMO_NUM_PROPERTIES];
typedef struct _Block1Data Block1Data;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TYPE_ACCEL_LABEL_VIEW (accel_label_view_get_type ())
#define ACCEL_LABEL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ACCEL_LABEL_VIEW, AccelLabelView))
#define ACCEL_LABEL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ACCEL_LABEL_VIEW, AccelLabelViewClass))
#define IS_ACCEL_LABEL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ACCEL_LABEL_VIEW))
#define IS_ACCEL_LABEL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ACCEL_LABEL_VIEW))
#define ACCEL_LABEL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ACCEL_LABEL_VIEW, AccelLabelViewClass))

typedef struct _AccelLabelView AccelLabelView;
typedef struct _AccelLabelViewClass AccelLabelViewClass;

#define TYPE_ALERT_VIEW_VIEW (alert_view_view_get_type ())
#define ALERT_VIEW_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALERT_VIEW_VIEW, AlertViewView))
#define ALERT_VIEW_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALERT_VIEW_VIEW, AlertViewViewClass))
#define IS_ALERT_VIEW_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALERT_VIEW_VIEW))
#define IS_ALERT_VIEW_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALERT_VIEW_VIEW))
#define ALERT_VIEW_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALERT_VIEW_VIEW, AlertViewViewClass))

typedef struct _AlertViewView AlertViewView;
typedef struct _AlertViewViewClass AlertViewViewClass;

#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;

#define TYPE_DATE_TIME_PICKER_VIEW (date_time_picker_view_get_type ())
#define DATE_TIME_PICKER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATE_TIME_PICKER_VIEW, DateTimePickerView))
#define DATE_TIME_PICKER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATE_TIME_PICKER_VIEW, DateTimePickerViewClass))
#define IS_DATE_TIME_PICKER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATE_TIME_PICKER_VIEW))
#define IS_DATE_TIME_PICKER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATE_TIME_PICKER_VIEW))
#define DATE_TIME_PICKER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATE_TIME_PICKER_VIEW, DateTimePickerViewClass))

typedef struct _DateTimePickerView DateTimePickerView;
typedef struct _DateTimePickerViewClass DateTimePickerViewClass;

#define TYPE_DYNAMIC_NOTEBOOK_VIEW (dynamic_notebook_view_get_type ())
#define DYNAMIC_NOTEBOOK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DYNAMIC_NOTEBOOK_VIEW, DynamicNotebookView))
#define DYNAMIC_NOTEBOOK_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DYNAMIC_NOTEBOOK_VIEW, DynamicNotebookViewClass))
#define IS_DYNAMIC_NOTEBOOK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DYNAMIC_NOTEBOOK_VIEW))
#define IS_DYNAMIC_NOTEBOOK_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DYNAMIC_NOTEBOOK_VIEW))
#define DYNAMIC_NOTEBOOK_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DYNAMIC_NOTEBOOK_VIEW, DynamicNotebookViewClass))

typedef struct _DynamicNotebookView DynamicNotebookView;
typedef struct _DynamicNotebookViewClass DynamicNotebookViewClass;

#define TYPE_FORM_VIEW (form_view_get_type ())
#define FORM_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FORM_VIEW, FormView))
#define FORM_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FORM_VIEW, FormViewClass))
#define IS_FORM_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FORM_VIEW))
#define IS_FORM_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FORM_VIEW))
#define FORM_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FORM_VIEW, FormViewClass))

typedef struct _FormView FormView;
typedef struct _FormViewClass FormViewClass;

#define TYPE_HYPER_TEXT_VIEW_GRID (hyper_text_view_grid_get_type ())
#define HYPER_TEXT_VIEW_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HYPER_TEXT_VIEW_GRID, HyperTextViewGrid))
#define HYPER_TEXT_VIEW_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HYPER_TEXT_VIEW_GRID, HyperTextViewGridClass))
#define IS_HYPER_TEXT_VIEW_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HYPER_TEXT_VIEW_GRID))
#define IS_HYPER_TEXT_VIEW_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HYPER_TEXT_VIEW_GRID))
#define HYPER_TEXT_VIEW_GRID_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HYPER_TEXT_VIEW_GRID, HyperTextViewGridClass))

typedef struct _HyperTextViewGrid HyperTextViewGrid;
typedef struct _HyperTextViewGridClass HyperTextViewGridClass;

#define TYPE_MODE_BUTTON_VIEW (mode_button_view_get_type ())
#define MODE_BUTTON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODE_BUTTON_VIEW, ModeButtonView))
#define MODE_BUTTON_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODE_BUTTON_VIEW, ModeButtonViewClass))
#define IS_MODE_BUTTON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODE_BUTTON_VIEW))
#define IS_MODE_BUTTON_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODE_BUTTON_VIEW))
#define MODE_BUTTON_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODE_BUTTON_VIEW, ModeButtonViewClass))

typedef struct _ModeButtonView ModeButtonView;
typedef struct _ModeButtonViewClass ModeButtonViewClass;

#define TYPE_OVERLAY_BAR_VIEW (overlay_bar_view_get_type ())
#define OVERLAY_BAR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OVERLAY_BAR_VIEW, OverlayBarView))
#define OVERLAY_BAR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OVERLAY_BAR_VIEW, OverlayBarViewClass))
#define IS_OVERLAY_BAR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OVERLAY_BAR_VIEW))
#define IS_OVERLAY_BAR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OVERLAY_BAR_VIEW))
#define OVERLAY_BAR_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OVERLAY_BAR_VIEW, OverlayBarViewClass))

typedef struct _OverlayBarView OverlayBarView;
typedef struct _OverlayBarViewClass OverlayBarViewClass;

#define TYPE_SEEK_BAR_VIEW (seek_bar_view_get_type ())
#define SEEK_BAR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEEK_BAR_VIEW, SeekBarView))
#define SEEK_BAR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEEK_BAR_VIEW, SeekBarViewClass))
#define IS_SEEK_BAR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEEK_BAR_VIEW))
#define IS_SEEK_BAR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEEK_BAR_VIEW))
#define SEEK_BAR_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEEK_BAR_VIEW, SeekBarViewClass))

typedef struct _SeekBarView SeekBarView;
typedef struct _SeekBarViewClass SeekBarViewClass;

#define TYPE_SETTINGS_VIEW (settings_view_get_type ())
#define SETTINGS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SETTINGS_VIEW, SettingsView))
#define SETTINGS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SETTINGS_VIEW, SettingsViewClass))
#define IS_SETTINGS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SETTINGS_VIEW))
#define IS_SETTINGS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SETTINGS_VIEW))
#define SETTINGS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SETTINGS_VIEW, SettingsViewClass))

typedef struct _SettingsView SettingsView;
typedef struct _SettingsViewClass SettingsViewClass;

#define TYPE_SOURCE_LIST_VIEW (source_list_view_get_type ())
#define SOURCE_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_LIST_VIEW, SourceListView))
#define SOURCE_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_LIST_VIEW, SourceListViewClass))
#define IS_SOURCE_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_LIST_VIEW))
#define IS_SOURCE_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_LIST_VIEW))
#define SOURCE_LIST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_LIST_VIEW, SourceListViewClass))

typedef struct _SourceListView SourceListView;
typedef struct _SourceListViewClass SourceListViewClass;

#define TYPE_STORAGE_VIEW (storage_view_get_type ())
#define STORAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STORAGE_VIEW, StorageView))
#define STORAGE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STORAGE_VIEW, StorageViewClass))
#define IS_STORAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STORAGE_VIEW))
#define IS_STORAGE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STORAGE_VIEW))
#define STORAGE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STORAGE_VIEW, StorageViewClass))

typedef struct _StorageView StorageView;
typedef struct _StorageViewClass StorageViewClass;

#define TYPE_TOAST_VIEW (toast_view_get_type ())
#define TOAST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOAST_VIEW, ToastView))
#define TOAST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOAST_VIEW, ToastViewClass))
#define IS_TOAST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOAST_VIEW))
#define IS_TOAST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOAST_VIEW))
#define TOAST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOAST_VIEW, ToastViewClass))

typedef struct _ToastView ToastView;
typedef struct _ToastViewClass ToastViewClass;

#define TYPE_UTILS_VIEW (utils_view_get_type ())
#define UTILS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UTILS_VIEW, UtilsView))
#define UTILS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UTILS_VIEW, UtilsViewClass))
#define IS_UTILS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UTILS_VIEW))
#define IS_UTILS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_UTILS_VIEW))
#define UTILS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_UTILS_VIEW, UtilsViewClass))

typedef struct _UtilsView UtilsView;
typedef struct _UtilsViewClass UtilsViewClass;

#define TYPE_WELCOME_VIEW (welcome_view_get_type ())
#define WELCOME_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_VIEW, WelcomeView))
#define WELCOME_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_VIEW, WelcomeViewClass))
#define IS_WELCOME_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_VIEW))
#define IS_WELCOME_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_VIEW))
#define WELCOME_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_VIEW, WelcomeViewClass))

typedef struct _WelcomeView WelcomeView;
typedef struct _WelcomeViewClass WelcomeViewClass;

#define TYPE_DIALOGS_VIEW (dialogs_view_get_type ())
#define DIALOGS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIALOGS_VIEW, DialogsView))
#define DIALOGS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIALOGS_VIEW, DialogsViewClass))
#define IS_DIALOGS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIALOGS_VIEW))
#define IS_DIALOGS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIALOGS_VIEW))
#define DIALOGS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIALOGS_VIEW, DialogsViewClass))

typedef struct _DialogsView DialogsView;
typedef struct _DialogsViewClass DialogsViewClass;

#define TYPE_ASYNC_IMAGE_VIEW (async_image_view_get_type ())
#define ASYNC_IMAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ASYNC_IMAGE_VIEW, AsyncImageView))
#define ASYNC_IMAGE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ASYNC_IMAGE_VIEW, AsyncImageViewClass))
#define IS_ASYNC_IMAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ASYNC_IMAGE_VIEW))
#define IS_ASYNC_IMAGE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ASYNC_IMAGE_VIEW))
#define ASYNC_IMAGE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ASYNC_IMAGE_VIEW, AsyncImageViewClass))

typedef struct _AsyncImageView AsyncImageView;
typedef struct _AsyncImageViewClass AsyncImageViewClass;

#define TYPE_APPLICATION_VIEW (application_view_get_type ())
#define APPLICATION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION_VIEW, ApplicationView))
#define APPLICATION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION_VIEW, ApplicationViewClass))
#define IS_APPLICATION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION_VIEW))
#define IS_APPLICATION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION_VIEW))
#define APPLICATION_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION_VIEW, ApplicationViewClass))

typedef struct _ApplicationView ApplicationView;
typedef struct _ApplicationViewClass ApplicationViewClass;

struct _GraniteDemo {
	GtkApplication parent_instance;
	GraniteDemoPrivate * priv;
};

struct _GraniteDemoClass {
	GtkApplicationClass parent_class;
};

struct _Block1Data {
	int _ref_count_;
	GraniteDemo* self;
	GtkSettings* gtk_settings;
	GraniteSettings* granite_settings;
};

static gpointer granite_demo_parent_class = NULL;

VALA_EXTERN GType granite_demo_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GraniteDemo, g_object_unref)
static void granite_demo_real_activate (GApplication* base);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
VALA_EXTERN GType accel_label_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AccelLabelView, g_object_unref)
VALA_EXTERN AccelLabelView* accel_label_view_new (void);
VALA_EXTERN AccelLabelView* accel_label_view_construct (GType object_type);
VALA_EXTERN GType alert_view_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AlertViewView, g_object_unref)
VALA_EXTERN AlertViewView* alert_view_view_new (void);
VALA_EXTERN AlertViewView* alert_view_view_construct (GType object_type);
VALA_EXTERN GType css_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (CSSView, g_object_unref)
VALA_EXTERN CSSView* css_view_new (GtkWindow* window);
VALA_EXTERN CSSView* css_view_construct (GType object_type,
                             GtkWindow* window);
VALA_EXTERN GType date_time_picker_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DateTimePickerView, g_object_unref)
VALA_EXTERN DateTimePickerView* date_time_picker_view_new (void);
VALA_EXTERN DateTimePickerView* date_time_picker_view_construct (GType object_type);
VALA_EXTERN GType dynamic_notebook_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DynamicNotebookView, g_object_unref)
VALA_EXTERN DynamicNotebookView* dynamic_notebook_view_new (void);
VALA_EXTERN DynamicNotebookView* dynamic_notebook_view_construct (GType object_type);
VALA_EXTERN GType form_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FormView, g_object_unref)
VALA_EXTERN FormView* form_view_new (void);
VALA_EXTERN FormView* form_view_construct (GType object_type);
VALA_EXTERN GType hyper_text_view_grid_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (HyperTextViewGrid, g_object_unref)
VALA_EXTERN HyperTextViewGrid* hyper_text_view_grid_new (void);
VALA_EXTERN HyperTextViewGrid* hyper_text_view_grid_construct (GType object_type);
VALA_EXTERN GType mode_button_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ModeButtonView, g_object_unref)
VALA_EXTERN ModeButtonView* mode_button_view_new (void);
VALA_EXTERN ModeButtonView* mode_button_view_construct (GType object_type);
VALA_EXTERN GType overlay_bar_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OverlayBarView, g_object_unref)
VALA_EXTERN OverlayBarView* overlay_bar_view_new (void);
VALA_EXTERN OverlayBarView* overlay_bar_view_construct (GType object_type);
VALA_EXTERN GType seek_bar_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SeekBarView, g_object_unref)
VALA_EXTERN SeekBarView* seek_bar_view_new (void);
VALA_EXTERN SeekBarView* seek_bar_view_construct (GType object_type);
VALA_EXTERN GType settings_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SettingsView, g_object_unref)
VALA_EXTERN SettingsView* settings_view_new (void);
VALA_EXTERN SettingsView* settings_view_construct (GType object_type);
VALA_EXTERN GType source_list_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SourceListView, g_object_unref)
VALA_EXTERN SourceListView* source_list_view_new (void);
VALA_EXTERN SourceListView* source_list_view_construct (GType object_type);
VALA_EXTERN GType storage_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (StorageView, g_object_unref)
VALA_EXTERN StorageView* storage_view_new (void);
VALA_EXTERN StorageView* storage_view_construct (GType object_type);
VALA_EXTERN GType toast_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ToastView, g_object_unref)
VALA_EXTERN ToastView* toast_view_new (void);
VALA_EXTERN ToastView* toast_view_construct (GType object_type);
VALA_EXTERN GType utils_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (UtilsView, g_object_unref)
VALA_EXTERN UtilsView* utils_view_new (void);
VALA_EXTERN UtilsView* utils_view_construct (GType object_type);
VALA_EXTERN GType welcome_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (WelcomeView, g_object_unref)
VALA_EXTERN WelcomeView* welcome_view_new (void);
VALA_EXTERN WelcomeView* welcome_view_construct (GType object_type);
VALA_EXTERN GType dialogs_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DialogsView, g_object_unref)
VALA_EXTERN DialogsView* dialogs_view_new (GtkWindow* window);
VALA_EXTERN DialogsView* dialogs_view_construct (GType object_type,
                                     GtkWindow* window);
VALA_EXTERN GType async_image_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AsyncImageView, g_object_unref)
VALA_EXTERN AsyncImageView* async_image_view_new (void);
VALA_EXTERN AsyncImageView* async_image_view_construct (GType object_type);
VALA_EXTERN GType application_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ApplicationView, g_object_unref)
VALA_EXTERN ApplicationView* application_view_new (void);
VALA_EXTERN ApplicationView* application_view_construct (GType object_type);
static void __lambda43_ (Block1Data* _data1_);
static void ___lambda43__g_object_notify (GObject* _sender,
                                   GParamSpec* pspec,
                                   gpointer self);
static gint granite_demo_main (gchar** args,
                        gint args_length1);
VALA_EXTERN GraniteDemo* granite_demo_new (void);
VALA_EXTERN GraniteDemo* granite_demo_construct (GType object_type);
static GObject * granite_demo_constructor (GType type,
                                    guint n_construct_properties,
                                    GObjectConstructParam * construct_properties);
static GType granite_demo_get_type_once (void);

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_)) {
		GraniteDemo* self;
		self = _data1_->self;
		_g_object_unref0 (_data1_->granite_settings);
		_g_object_unref0 (_data1_->gtk_settings);
		_g_object_unref0 (self);
		g_slice_free (Block1Data, _data1_);
	}
}

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

static void
__lambda43_ (Block1Data* _data1_)
{
	GraniteDemo* self;
	GraniteSettingsColorScheme _tmp0_;
	GraniteSettingsColorScheme _tmp1_;
	self = _data1_->self;
	_tmp0_ = granite_settings_get_prefers_color_scheme (_data1_->granite_settings);
	_tmp1_ = _tmp0_;
	g_object_set (_data1_->gtk_settings, "gtk-application-prefer-dark-theme", _tmp1_ == GRANITE_SETTINGS_COLOR_SCHEME_DARK, NULL);
}

static void
___lambda43__g_object_notify (GObject* _sender,
                              GParamSpec* pspec,
                              gpointer self)
{
	__lambda43_ (self);
}

static void
granite_demo_real_activate (GApplication* base)
{
	GraniteDemo * self;
	Block1Data* _data1_;
	GtkWindow* window = NULL;
	GtkWindow* _tmp0_;
	AccelLabelView* accel_label_view = NULL;
	AccelLabelView* _tmp1_;
	AlertViewView* alert_view = NULL;
	AlertViewView* _tmp2_;
	CSSView* css_view = NULL;
	CSSView* _tmp3_;
	DateTimePickerView* date_time_picker_view = NULL;
	DateTimePickerView* _tmp4_;
	DynamicNotebookView* dynamic_notebook_view = NULL;
	DynamicNotebookView* _tmp5_;
	FormView* form_view = NULL;
	FormView* _tmp6_;
	HyperTextViewGrid* hypertext_view = NULL;
	HyperTextViewGrid* _tmp7_;
	ModeButtonView* mode_button_view = NULL;
	ModeButtonView* _tmp8_;
	OverlayBarView* overlaybar_view = NULL;
	OverlayBarView* _tmp9_;
	SeekBarView* seekbar_view = NULL;
	SeekBarView* _tmp10_;
	SettingsView* settings_view = NULL;
	SettingsView* _tmp11_;
	SourceListView* source_list_view = NULL;
	SourceListView* _tmp12_;
	StorageView* storage_view = NULL;
	StorageView* _tmp13_;
	ToastView* toast_view = NULL;
	ToastView* _tmp14_;
	UtilsView* utils_view = NULL;
	UtilsView* _tmp15_;
	WelcomeView* welcome = NULL;
	WelcomeView* _tmp16_;
	DialogsView* dialogs_view = NULL;
	DialogsView* _tmp17_;
	AsyncImageView* async_image_view = NULL;
	AsyncImageView* _tmp18_;
	ApplicationView* application_view = NULL;
	ApplicationView* _tmp19_;
	GtkStack* main_stack = NULL;
	GtkStack* _tmp20_;
	GtkStackSidebar* stack_sidebar = NULL;
	GtkStackSidebar* _tmp21_;
	GtkPaned* paned = NULL;
	GtkPaned* _tmp22_;
	GtkSettings* _tmp23_;
	GtkSettings* _tmp24_;
	GraniteModeSwitch* mode_switch = NULL;
	GraniteModeSwitch* _tmp25_;
	GraniteSettings* _tmp26_;
	GraniteSettings* _tmp27_;
	GraniteSettingsColorScheme _tmp28_;
	GraniteSettingsColorScheme _tmp29_;
	GtkHeaderBar* headerbar = NULL;
	GtkHeaderBar* _tmp30_;
	GtkStyleContext* _tmp31_;
	self = (GraniteDemo*) base;
	_data1_ = g_slice_new0 (Block1Data);
	_data1_->_ref_count_ = 1;
	_data1_->self = g_object_ref (self);
	_tmp0_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
	g_object_ref_sink (_tmp0_);
	window = _tmp0_;
	_tmp1_ = accel_label_view_new ();
	g_object_ref_sink (_tmp1_);
	accel_label_view = _tmp1_;
	_tmp2_ = alert_view_view_new ();
	g_object_ref_sink (_tmp2_);
	alert_view = _tmp2_;
	_tmp3_ = css_view_new (window);
	g_object_ref_sink (_tmp3_);
	css_view = _tmp3_;
	_tmp4_ = date_time_picker_view_new ();
	g_object_ref_sink (_tmp4_);
	date_time_picker_view = _tmp4_;
	_tmp5_ = dynamic_notebook_view_new ();
	g_object_ref_sink (_tmp5_);
	dynamic_notebook_view = _tmp5_;
	_tmp6_ = form_view_new ();
	g_object_ref_sink (_tmp6_);
	form_view = _tmp6_;
	_tmp7_ = hyper_text_view_grid_new ();
	g_object_ref_sink (_tmp7_);
	hypertext_view = _tmp7_;
	_tmp8_ = mode_button_view_new ();
	g_object_ref_sink (_tmp8_);
	mode_button_view = _tmp8_;
	_tmp9_ = overlay_bar_view_new ();
	g_object_ref_sink (_tmp9_);
	overlaybar_view = _tmp9_;
	_tmp10_ = seek_bar_view_new ();
	g_object_ref_sink (_tmp10_);
	seekbar_view = _tmp10_;
	_tmp11_ = settings_view_new ();
	g_object_ref_sink (_tmp11_);
	settings_view = _tmp11_;
	_tmp12_ = source_list_view_new ();
	g_object_ref_sink (_tmp12_);
	source_list_view = _tmp12_;
	_tmp13_ = storage_view_new ();
	g_object_ref_sink (_tmp13_);
	storage_view = _tmp13_;
	_tmp14_ = toast_view_new ();
	g_object_ref_sink (_tmp14_);
	toast_view = _tmp14_;
	_tmp15_ = utils_view_new ();
	g_object_ref_sink (_tmp15_);
	utils_view = _tmp15_;
	_tmp16_ = welcome_view_new ();
	g_object_ref_sink (_tmp16_);
	welcome = _tmp16_;
	_tmp17_ = dialogs_view_new (window);
	g_object_ref_sink (_tmp17_);
	dialogs_view = _tmp17_;
	_tmp18_ = async_image_view_new ();
	g_object_ref_sink (_tmp18_);
	async_image_view = _tmp18_;
	_tmp19_ = application_view_new ();
	g_object_ref_sink (_tmp19_);
	application_view = _tmp19_;
	_tmp20_ = (GtkStack*) gtk_stack_new ();
	g_object_ref_sink (_tmp20_);
	main_stack = _tmp20_;
	gtk_stack_add_titled (main_stack, (GtkWidget*) welcome, "welcome", "Welcome");
	gtk_stack_add_titled (main_stack, (GtkWidget*) accel_label_view, "accel_label", "AccelLabel");
	gtk_stack_add_titled (main_stack, (GtkWidget*) alert_view, "alert", "AlertView");
	gtk_stack_add_titled (main_stack, (GtkWidget*) css_view, "css", "Style Classes");
	gtk_stack_add_titled (main_stack, (GtkWidget*) date_time_picker_view, "pickers", "Date & Time");
	gtk_stack_add_titled (main_stack, (GtkWidget*) dynamic_notebook_view, "dynamictab", "DynamicNotebook");
	gtk_stack_add_titled (main_stack, (GtkWidget*) form_view, "formview", "Forms");
	gtk_stack_add_titled (main_stack, (GtkWidget*) hypertext_view, "hypertextview", "HyperTextView");
	gtk_stack_add_titled (main_stack, (GtkWidget*) mode_button_view, "selection_controls", "Selection Controls");
	gtk_stack_add_titled (main_stack, (GtkWidget*) overlaybar_view, "overlaybar", "OverlayBar");
	gtk_stack_add_titled (main_stack, (GtkWidget*) seekbar_view, "seekbar", "SeekBar");
	gtk_stack_add_titled (main_stack, (GtkWidget*) settings_view, "settings", "SettingsSidebar");
	gtk_stack_add_titled (main_stack, (GtkWidget*) source_list_view, "sourcelist", "SourceList");
	gtk_stack_add_titled (main_stack, (GtkWidget*) storage_view, "storage", "StorageBar");
	gtk_stack_add_titled (main_stack, (GtkWidget*) toast_view, "toasts", "Toast");
	gtk_stack_add_titled (main_stack, (GtkWidget*) utils_view, "utils", "Utils");
	gtk_stack_add_titled (main_stack, (GtkWidget*) dialogs_view, "dialogs", "Dialogs");
	gtk_stack_add_titled (main_stack, (GtkWidget*) async_image_view, "asyncimage", "AsyncImage");
	gtk_stack_add_titled (main_stack, (GtkWidget*) application_view, "application", "Application");
	_tmp21_ = (GtkStackSidebar*) gtk_stack_sidebar_new ();
	g_object_ref_sink (_tmp21_);
	stack_sidebar = _tmp21_;
	gtk_stack_sidebar_set_stack (stack_sidebar, main_stack);
	_tmp22_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
	g_object_ref_sink (_tmp22_);
	paned = _tmp22_;
	gtk_paned_add1 (paned, (GtkWidget*) stack_sidebar);
	gtk_paned_add2 (paned, (GtkWidget*) main_stack);
	_tmp23_ = gtk_settings_get_default ();
	_tmp24_ = _g_object_ref0 (_tmp23_);
	_data1_->gtk_settings = _tmp24_;
	_tmp25_ = granite_mode_switch_new_from_icon_name ("display-brightness-symbolic", "weather-clear-night-symbolic");
	g_object_ref_sink (_tmp25_);
	mode_switch = _tmp25_;
	granite_mode_switch_set_primary_icon_tooltip_text (mode_switch, "Light background");
	granite_mode_switch_set_secondary_icon_tooltip_text (mode_switch, "Dark background");
	gtk_widget_set_valign ((GtkWidget*) mode_switch, GTK_ALIGN_CENTER);
	g_object_bind_property_with_closures ((GObject*) mode_switch, "active", (GObject*) _data1_->gtk_settings, "gtk-application-prefer-dark-theme", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp26_ = granite_settings_get_default ();
	_tmp27_ = _g_object_ref0 (_tmp26_);
	_data1_->granite_settings = _tmp27_;
	_tmp28_ = granite_settings_get_prefers_color_scheme (_data1_->granite_settings);
	_tmp29_ = _tmp28_;
	g_object_set (_data1_->gtk_settings, "gtk-application-prefer-dark-theme", _tmp29_ == GRANITE_SETTINGS_COLOR_SCHEME_DARK, NULL);
	_tmp30_ = (GtkHeaderBar*) gtk_header_bar_new ();
	g_object_ref_sink (_tmp30_);
	headerbar = _tmp30_;
	_tmp31_ = gtk_widget_get_style_context ((GtkWidget*) headerbar);
	gtk_style_context_add_class (_tmp31_, "default-decoration");
	gtk_header_bar_set_show_close_button (headerbar, TRUE);
	gtk_header_bar_pack_end (headerbar, (GtkWidget*) mode_switch);
	gtk_container_add ((GtkContainer*) window, (GtkWidget*) paned);
	gtk_window_set_default_size (window, 900, 600);
	gtk_widget_set_size_request ((GtkWidget*) window, 750, 500);
	gtk_window_set_titlebar (window, (GtkWidget*) headerbar);
	gtk_window_set_title (window, "Granite Demo");
	gtk_widget_show_all ((GtkWidget*) window);
	gtk_application_add_window ((GtkApplication*) self, window);
	g_signal_connect_data ((GObject*) _data1_->granite_settings, "notify::prefers-color-scheme", (GCallback) ___lambda43__g_object_notify, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
	_g_object_unref0 (headerbar);
	_g_object_unref0 (mode_switch);
	_g_object_unref0 (paned);
	_g_object_unref0 (stack_sidebar);
	_g_object_unref0 (main_stack);
	_g_object_unref0 (application_view);
	_g_object_unref0 (async_image_view);
	_g_object_unref0 (dialogs_view);
	_g_object_unref0 (welcome);
	_g_object_unref0 (utils_view);
	_g_object_unref0 (toast_view);
	_g_object_unref0 (storage_view);
	_g_object_unref0 (source_list_view);
	_g_object_unref0 (settings_view);
	_g_object_unref0 (seekbar_view);
	_g_object_unref0 (overlaybar_view);
	_g_object_unref0 (mode_button_view);
	_g_object_unref0 (hypertext_view);
	_g_object_unref0 (form_view);
	_g_object_unref0 (dynamic_notebook_view);
	_g_object_unref0 (date_time_picker_view);
	_g_object_unref0 (css_view);
	_g_object_unref0 (alert_view);
	_g_object_unref0 (accel_label_view);
	_g_object_unref0 (window);
	block1_data_unref (_data1_);
	_data1_ = NULL;
}

static gint
granite_demo_main (gchar** args,
                   gint args_length1)
{
	GraniteDemo* application = NULL;
	GraniteDemo* _tmp0_;
	gint result;
	_tmp0_ = granite_demo_new ();
	application = _tmp0_;
	result = g_application_run ((GApplication*) application, (gint) args_length1, args);
	_g_object_unref0 (application);
	return result;
}

int
main (int argc,
      char ** argv)
{
	return granite_demo_main (argv, argc);
}

GraniteDemo*
granite_demo_construct (GType object_type)
{
	GraniteDemo * self = NULL;
	self = (GraniteDemo*) g_object_new (object_type, NULL);
	return self;
}

GraniteDemo*
granite_demo_new (void)
{
	return granite_demo_construct (GRANITE_TYPE_DEMO);
}

static GObject *
granite_demo_constructor (GType type,
                          guint n_construct_properties,
                          GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	GraniteDemo * self;
	parent_class = G_OBJECT_CLASS (granite_demo_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRANITE_TYPE_DEMO, GraniteDemo);
	g_application_set_application_id ((GApplication*) self, "io.elementary.granite.demo");
	g_application_set_flags ((GApplication*) self, G_APPLICATION_FLAGS_NONE);
	return obj;
}

static void
granite_demo_class_init (GraniteDemoClass * klass,
                         gpointer klass_data)
{
	granite_demo_parent_class = g_type_class_peek_parent (klass);
	((GApplicationClass *) klass)->activate = (void (*) (GApplication*)) granite_demo_real_activate;
	G_OBJECT_CLASS (klass)->constructor = granite_demo_constructor;
}

static void
granite_demo_instance_init (GraniteDemo * self,
                            gpointer klass)
{
}

static GType
granite_demo_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GraniteDemoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) granite_demo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GraniteDemo), 0, (GInstanceInitFunc) granite_demo_instance_init, NULL };
	GType granite_demo_type_id;
	granite_demo_type_id = g_type_register_static (gtk_application_get_type (), "GraniteDemo", &g_define_type_info, 0);
	return granite_demo_type_id;
}

GType
granite_demo_get_type (void)
{
	static volatile gsize granite_demo_type_id__once = 0;
	if (g_once_init_enter (&granite_demo_type_id__once)) {
		GType granite_demo_type_id;
		granite_demo_type_id = granite_demo_get_type_once ();
		g_once_init_leave (&granite_demo_type_id__once, granite_demo_type_id);
	}
	return granite_demo_type_id__once;
}

