/* welcome-tutorial.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from welcome-tutorial.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

#include <gtk/gtk.h>
#include <glib-object.h>
#include <handy.h>
#include <glib.h>
#include <gdk/gdk.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <math.h>

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

#define BOXES_TYPE_WELCOME_TUTORIAL (boxes_welcome_tutorial_get_type ())
#define BOXES_WELCOME_TUTORIAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorial))
#define BOXES_WELCOME_TUTORIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorialClass))
#define BOXES_IS_WELCOME_TUTORIAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WELCOME_TUTORIAL))
#define BOXES_IS_WELCOME_TUTORIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WELCOME_TUTORIAL))
#define BOXES_WELCOME_TUTORIAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorialClass))

typedef struct _BoxesWelcomeTutorial BoxesWelcomeTutorial;
typedef struct _BoxesWelcomeTutorialClass BoxesWelcomeTutorialClass;
typedef struct _BoxesWelcomeTutorialPrivate BoxesWelcomeTutorialPrivate;

#define BOXES_TYPE_WELCOME_TUTORIAL_PAGE (boxes_welcome_tutorial_page_get_type ())
#define BOXES_WELCOME_TUTORIAL_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WELCOME_TUTORIAL_PAGE, BoxesWelcomeTutorialPage))
#define BOXES_WELCOME_TUTORIAL_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WELCOME_TUTORIAL_PAGE, BoxesWelcomeTutorialPageClass))
#define BOXES_IS_WELCOME_TUTORIAL_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WELCOME_TUTORIAL_PAGE))
#define BOXES_IS_WELCOME_TUTORIAL_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WELCOME_TUTORIAL_PAGE))
#define BOXES_WELCOME_TUTORIAL_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WELCOME_TUTORIAL_PAGE, BoxesWelcomeTutorialPageClass))

typedef struct _BoxesWelcomeTutorialPage BoxesWelcomeTutorialPage;
typedef struct _BoxesWelcomeTutorialPageClass BoxesWelcomeTutorialPageClass;
enum  {
	BOXES_WELCOME_TUTORIAL_0_PROPERTY,
	BOXES_WELCOME_TUTORIAL_NUM_PROPERTIES
};
static GParamSpec* boxes_welcome_tutorial_properties[BOXES_WELCOME_TUTORIAL_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define BOXES_TYPE_APP_WINDOW (boxes_app_window_get_type ())
#define BOXES_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindow))
#define BOXES_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))
#define BOXES_IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP_WINDOW))
#define BOXES_IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP_WINDOW))
#define BOXES_APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _BoxesWelcomeTutorial {
	GtkDialog parent_instance;
	BoxesWelcomeTutorialPrivate * priv;
};

struct _BoxesWelcomeTutorialClass {
	GtkDialogClass parent_class;
};

struct _BoxesWelcomeTutorialPrivate {
	GtkBox* inner_box;
	HdyCarousel* paginator;
	GtkButton* go_back_button;
	GtkButton* go_next_button;
	GList* pages;
	GtkCssProvider* provider;
};

static gint BoxesWelcomeTutorial_private_offset;
static gpointer boxes_welcome_tutorial_parent_class = NULL;

VALA_EXTERN GType boxes_welcome_tutorial_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BoxesWelcomeTutorial, g_object_unref)
VALA_EXTERN GType boxes_welcome_tutorial_page_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BoxesWelcomeTutorialPage, g_object_unref)
VALA_EXTERN GType boxes_app_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BoxesAppWindow, g_object_unref)
VALA_EXTERN BoxesWelcomeTutorial* boxes_welcome_tutorial_new (BoxesAppWindow* app_window);
VALA_EXTERN BoxesWelcomeTutorial* boxes_welcome_tutorial_construct (GType object_type,
                                                        BoxesAppWindow* app_window);
static void boxes_welcome_tutorial_set_background_color (BoxesWelcomeTutorial* self,
                                                  GdkRGBA* color);
static void boxes_welcome_tutorial_on_position_changed (BoxesWelcomeTutorial* self);
VALA_EXTERN void boxes_welcome_tutorial_page_get_color (BoxesWelcomeTutorialPage* self,
                                            GdkRGBA * result);
static void _boxes_welcome_tutorial_on_position_changed_g_object_notify (GObject* _sender,
                                                                  GParamSpec* pspec,
                                                                  gpointer self);
static void boxes_welcome_tutorial_on_next_button_clicked (BoxesWelcomeTutorial* self);
static void _boxes_welcome_tutorial_on_next_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                        gpointer self);
static void boxes_welcome_tutorial_on_back_button_clicked (BoxesWelcomeTutorial* self);
static void _boxes_welcome_tutorial_on_back_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                        gpointer self);
static GObject * boxes_welcome_tutorial_constructor (GType type,
                                              guint n_construct_properties,
                                              GObjectConstructParam * construct_properties);
static void boxes_welcome_tutorial_finalize (GObject * obj);
static GType boxes_welcome_tutorial_get_type_once (void);

static inline gpointer
boxes_welcome_tutorial_get_instance_private (BoxesWelcomeTutorial* self)
{
	return G_STRUCT_MEMBER_P (self, BoxesWelcomeTutorial_private_offset);
}

BoxesWelcomeTutorial*
boxes_welcome_tutorial_construct (GType object_type,
                                  BoxesAppWindow* app_window)
{
	BoxesWelcomeTutorial * self = NULL;
	g_return_val_if_fail (app_window != NULL, NULL);
	self = (BoxesWelcomeTutorial*) g_object_new (object_type, NULL);
	gtk_window_set_transient_for ((GtkWindow*) self, (GtkWindow*) app_window);
	return self;
}

BoxesWelcomeTutorial*
boxes_welcome_tutorial_new (BoxesAppWindow* app_window)
{
	return boxes_welcome_tutorial_construct (BOXES_TYPE_WELCOME_TUTORIAL, app_window);
}

static void
boxes_welcome_tutorial_set_background_color (BoxesWelcomeTutorial* self,
                                             GdkRGBA* color)
{
	gchar* css = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (color != NULL);
	_tmp0_ = gdk_rgba_to_string (color);
	_tmp1_ = _tmp0_;
	_tmp2_ = g_strdup_printf ("\n" \
"          .welcome-tutorial {\n" \
"            background-color: %s;\n" \
"          }\n" \
"        ", _tmp1_);
	_tmp3_ = _tmp2_;
	_g_free0 (_tmp1_);
	css = _tmp3_;
	{
		GtkCssProvider* _tmp4_;
		_tmp4_ = self->priv->provider;
		gtk_css_provider_load_from_data (_tmp4_, css, (gssize) -1, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp5_;
		const gchar* _tmp6_;
		_error_ = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp5_ = _error_;
		_tmp6_ = _tmp5_->message;
		g_warning ("welcome-tutorial.vala:49: Failed to load css for setting background co" \
"lor: %s", _tmp6_);
		_g_error_free0 (_error_);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		_g_free0 (css);
		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_);
		return;
	}
	_g_free0 (css);
}

static void
boxes_welcome_tutorial_on_position_changed (BoxesWelcomeTutorial* self)
{
	guint n_pages = 0U;
	GList* _tmp0_;
	gdouble position = 0.0;
	HdyCarousel* _tmp1_;
	gdouble _tmp2_;
	gdouble _tmp3_;
	GtkButton* _tmp4_;
	GtkButton* _tmp5_;
	GdkRGBA color1 = {0};
	GList* _tmp6_;
	gconstpointer _tmp7_;
	GdkRGBA _tmp8_ = {0};
	GdkRGBA _tmp9_;
	GdkRGBA color2 = {0};
	GList* _tmp10_;
	gconstpointer _tmp11_;
	GdkRGBA _tmp12_ = {0};
	GdkRGBA _tmp13_;
	gdouble progress = 0.0;
	GdkRGBA rgba = {0};
	GdkRGBA _tmp14_;
	GdkRGBA _tmp15_;
	GdkRGBA _tmp16_;
	GdkRGBA _tmp17_;
	GdkRGBA _tmp18_;
	GdkRGBA _tmp19_;
	GdkRGBA _tmp20_ = {0};
	GdkRGBA _tmp21_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->pages;
	n_pages = g_list_length (_tmp0_);
	_tmp1_ = self->priv->paginator;
	_tmp2_ = hdy_carousel_get_position (_tmp1_);
	_tmp3_ = _tmp2_;
	position = _tmp3_;
	_tmp4_ = self->priv->go_back_button;
	gtk_widget_set_opacity ((GtkWidget*) _tmp4_, MIN (position, (gdouble) 1));
	_tmp5_ = self->priv->go_next_button;
	gtk_widget_set_opacity ((GtkWidget*) _tmp5_, MAX ((gdouble) 0, (n_pages - 1) - position));
	_tmp6_ = self->priv->pages;
	_tmp7_ = g_list_nth_data (_tmp6_, (guint) floor (position));
	boxes_welcome_tutorial_page_get_color ((BoxesWelcomeTutorialPage*) _tmp7_, &_tmp8_);
	_tmp9_ = _tmp8_;
	color1 = _tmp9_;
	_tmp10_ = self->priv->pages;
	_tmp11_ = g_list_nth_data (_tmp10_, (guint) ceil (position));
	boxes_welcome_tutorial_page_get_color ((BoxesWelcomeTutorialPage*) _tmp11_, &_tmp12_);
	_tmp13_ = _tmp12_;
	color2 = _tmp13_;
	progress = fmod (position, 1);
	_tmp14_ = color1;
	_tmp15_ = color2;
	_tmp16_ = color1;
	_tmp17_ = color2;
	_tmp18_ = color1;
	_tmp19_ = color2;
	_tmp20_.red = (_tmp14_.red * (1 - progress)) + (_tmp15_.red * progress);
	_tmp20_.green = (_tmp16_.green * (1 - progress)) + (_tmp17_.green * progress);
	_tmp20_.blue = (_tmp18_.blue * (1 - progress)) + (_tmp19_.blue * progress);
	_tmp20_.alpha = (gdouble) 1;
	rgba = _tmp20_;
	_tmp21_ = rgba;
	boxes_welcome_tutorial_set_background_color (self, &_tmp21_);
}

static void
_boxes_welcome_tutorial_on_position_changed_g_object_notify (GObject* _sender,
                                                             GParamSpec* pspec,
                                                             gpointer self)
{
	boxes_welcome_tutorial_on_position_changed ((BoxesWelcomeTutorial*) self);
}

static void
boxes_welcome_tutorial_on_next_button_clicked (BoxesWelcomeTutorial* self)
{
	gint index = 0;
	HdyCarousel* _tmp0_;
	gdouble _tmp1_;
	gdouble _tmp2_;
	GList* _tmp3_;
	HdyCarousel* _tmp4_;
	GList* _tmp5_;
	gconstpointer _tmp6_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->paginator;
	_tmp1_ = hdy_carousel_get_position (_tmp0_);
	_tmp2_ = _tmp1_;
	index = ((gint) round (_tmp2_)) + 1;
	_tmp3_ = self->priv->pages;
	if (((guint) index) >= g_list_length (_tmp3_)) {
		return;
	}
	_tmp4_ = self->priv->paginator;
	_tmp5_ = self->priv->pages;
	_tmp6_ = g_list_nth_data (_tmp5_, (guint) index);
	hdy_carousel_scroll_to (_tmp4_, (GtkWidget*) ((BoxesWelcomeTutorialPage*) _tmp6_));
}

static void
_boxes_welcome_tutorial_on_next_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                   gpointer self)
{
	boxes_welcome_tutorial_on_next_button_clicked ((BoxesWelcomeTutorial*) self);
}

static void
boxes_welcome_tutorial_on_back_button_clicked (BoxesWelcomeTutorial* self)
{
	gint index = 0;
	HdyCarousel* _tmp0_;
	gdouble _tmp1_;
	gdouble _tmp2_;
	HdyCarousel* _tmp3_;
	GList* _tmp4_;
	gconstpointer _tmp5_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->paginator;
	_tmp1_ = hdy_carousel_get_position (_tmp0_);
	_tmp2_ = _tmp1_;
	index = ((gint) round (_tmp2_)) - 1;
	if (index < 0) {
		return;
	}
	_tmp3_ = self->priv->paginator;
	_tmp4_ = self->priv->pages;
	_tmp5_ = g_list_nth_data (_tmp4_, (guint) index);
	hdy_carousel_scroll_to (_tmp3_, (GtkWidget*) ((BoxesWelcomeTutorialPage*) _tmp5_));
}

static void
_boxes_welcome_tutorial_on_back_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                   gpointer self)
{
	boxes_welcome_tutorial_on_back_button_clicked ((BoxesWelcomeTutorial*) self);
}

static GObject *
boxes_welcome_tutorial_constructor (GType type,
                                    guint n_construct_properties,
                                    GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	BoxesWelcomeTutorial * self;
	HdyCarousel* _tmp0_;
	GList* _tmp1_;
	GtkCssProvider* _tmp4_;
	GtkBox* _tmp5_;
	GtkStyleContext* _tmp6_;
	GtkCssProvider* _tmp7_;
	parent_class = G_OBJECT_CLASS (boxes_welcome_tutorial_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorial);
	g_object_set ((GtkDialog*) self, "use-header-bar", 1, NULL);
	(self->priv->pages == NULL) ? NULL : (self->priv->pages = (g_list_free (self->priv->pages), NULL));
	self->priv->pages = NULL;
	_tmp0_ = self->priv->paginator;
	_tmp1_ = gtk_container_get_children ((GtkContainer*) _tmp0_);
	{
		GList* page_collection = NULL;
		GList* page_it = NULL;
		page_collection = _tmp1_;
		for (page_it = page_collection; page_it != NULL; page_it = page_it->next) {
			GtkWidget* page = NULL;
			page = (GtkWidget*) page_it->data;
			{
				GtkWidget* _tmp2_;
				GtkWidget* _tmp3_;
				_tmp2_ = page;
				_vala_assert (BOXES_IS_WELCOME_TUTORIAL_PAGE (_tmp2_), "page is WelcomeTutorialPage");
				_tmp3_ = page;
				self->priv->pages = g_list_append (self->priv->pages, BOXES_IS_WELCOME_TUTORIAL_PAGE (_tmp3_) ? ((BoxesWelcomeTutorialPage*) _tmp3_) : NULL);
			}
		}
		(page_collection == NULL) ? NULL : (page_collection = (g_list_free (page_collection), NULL));
	}
	_tmp4_ = gtk_css_provider_new ();
	_g_object_unref0 (self->priv->provider);
	self->priv->provider = _tmp4_;
	_tmp5_ = self->priv->inner_box;
	_tmp6_ = gtk_widget_get_style_context ((GtkWidget*) _tmp5_);
	_tmp7_ = self->priv->provider;
	gtk_style_context_add_provider (_tmp6_, (GtkStyleProvider*) _tmp7_, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
	boxes_welcome_tutorial_on_position_changed (self);
	return obj;
}

static void
boxes_welcome_tutorial_class_init (BoxesWelcomeTutorialClass * klass,
                                   gpointer klass_data)
{
	boxes_welcome_tutorial_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &BoxesWelcomeTutorial_private_offset);
	G_OBJECT_CLASS (klass)->constructor = boxes_welcome_tutorial_constructor;
	G_OBJECT_CLASS (klass)->finalize = boxes_welcome_tutorial_finalize;
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/welcome-tutorial.ui");
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "inner_box", FALSE, BoxesWelcomeTutorial_private_offset + G_STRUCT_OFFSET (BoxesWelcomeTutorialPrivate, inner_box));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "paginator", FALSE, BoxesWelcomeTutorial_private_offset + G_STRUCT_OFFSET (BoxesWelcomeTutorialPrivate, paginator));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "go_back_button", FALSE, BoxesWelcomeTutorial_private_offset + G_STRUCT_OFFSET (BoxesWelcomeTutorialPrivate, go_back_button));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "go_next_button", FALSE, BoxesWelcomeTutorial_private_offset + G_STRUCT_OFFSET (BoxesWelcomeTutorialPrivate, go_next_button));
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_position_changed", G_CALLBACK(_boxes_welcome_tutorial_on_position_changed_g_object_notify));
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_next_button_clicked", G_CALLBACK(_boxes_welcome_tutorial_on_next_button_clicked_gtk_button_clicked));
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_back_button_clicked", G_CALLBACK(_boxes_welcome_tutorial_on_back_button_clicked_gtk_button_clicked));
}

static void
boxes_welcome_tutorial_instance_init (BoxesWelcomeTutorial * self,
                                      gpointer klass)
{
	self->priv = boxes_welcome_tutorial_get_instance_private (self);
	gtk_widget_init_template (GTK_WIDGET (self));
}

static void
boxes_welcome_tutorial_finalize (GObject * obj)
{
	BoxesWelcomeTutorial * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorial);
	(self->priv->pages == NULL) ? NULL : (self->priv->pages = (g_list_free (self->priv->pages), NULL));
	_g_object_unref0 (self->priv->provider);
	G_OBJECT_CLASS (boxes_welcome_tutorial_parent_class)->finalize (obj);
}

static GType
boxes_welcome_tutorial_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (BoxesWelcomeTutorialClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_welcome_tutorial_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesWelcomeTutorial), 0, (GInstanceInitFunc) boxes_welcome_tutorial_instance_init, NULL };
	GType boxes_welcome_tutorial_type_id;
	boxes_welcome_tutorial_type_id = g_type_register_static (gtk_dialog_get_type (), "BoxesWelcomeTutorial", &g_define_type_info, 0);
	BoxesWelcomeTutorial_private_offset = g_type_add_instance_private (boxes_welcome_tutorial_type_id, sizeof (BoxesWelcomeTutorialPrivate));
	return boxes_welcome_tutorial_type_id;
}

GType
boxes_welcome_tutorial_get_type (void)
{
	static volatile gsize boxes_welcome_tutorial_type_id__once = 0;
	if (g_once_init_enter (&boxes_welcome_tutorial_type_id__once)) {
		GType boxes_welcome_tutorial_type_id;
		boxes_welcome_tutorial_type_id = boxes_welcome_tutorial_get_type_once ();
		g_once_init_leave (&boxes_welcome_tutorial_type_id__once, boxes_welcome_tutorial_type_id);
	}
	return boxes_welcome_tutorial_type_id__once;
}

