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

/*
 * Copyright 2026 elementary, Inc. (https://elementary.io)
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 * Authored by: Leonhard Kargl <leo.kargl@proton.me>
 */

#include <glib-object.h>
#include <clutter/clutter.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <meta/prefs.h>
#include <gio/gio.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 GALA_TYPE_TRANSITION_BUILDER (gala_transition_builder_get_type ())
#define GALA_TRANSITION_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GALA_TYPE_TRANSITION_BUILDER, GalaTransitionBuilder))
#define GALA_TRANSITION_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GALA_TYPE_TRANSITION_BUILDER, GalaTransitionBuilderClass))
#define GALA_IS_TRANSITION_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GALA_TYPE_TRANSITION_BUILDER))
#define GALA_IS_TRANSITION_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GALA_TYPE_TRANSITION_BUILDER))
#define GALA_TRANSITION_BUILDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GALA_TYPE_TRANSITION_BUILDER, GalaTransitionBuilderClass))

typedef struct _GalaTransitionBuilder GalaTransitionBuilder;
typedef struct _GalaTransitionBuilderClass GalaTransitionBuilderClass;
typedef struct _GalaTransitionBuilderPrivate GalaTransitionBuilderPrivate;
enum  {
	GALA_TRANSITION_BUILDER_0_PROPERTY,
	GALA_TRANSITION_BUILDER_ACTOR_PROPERTY,
	GALA_TRANSITION_BUILDER_DURATION_PROPERTY,
	GALA_TRANSITION_BUILDER_ANIMATION_MODE_PROPERTY,
	GALA_TRANSITION_BUILDER_NUM_PROPERTIES
};
static GParamSpec* gala_transition_builder_properties[GALA_TRANSITION_BUILDER_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block12Data Block12Data;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _GalaTransitionBuilderRunData GalaTransitionBuilderRunData;
#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 _GalaTransitionBuilder {
	GObject parent_instance;
	GalaTransitionBuilderPrivate * priv;
};

struct _GalaTransitionBuilderClass {
	GObjectClass parent_class;
};

struct _GalaTransitionBuilderPrivate {
	ClutterActor* _actor;
	guint _duration;
	ClutterAnimationMode _animation_mode;
	ClutterTransitionGroup* group;
};

struct _Block12Data {
	int _ref_count_;
	GalaTransitionBuilder* self;
	gpointer _async_data_;
};

struct _GalaTransitionBuilderRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GalaTransitionBuilder* self;
	Block12Data* _data12_;
	gulong stopped_handler_id;
	ClutterTransitionGroup* _tmp0_;
	gulong _tmp1_;
	ClutterActor* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	ClutterTransitionGroup* _tmp5_;
	ClutterTransitionGroup* _tmp6_;
};

static gint GalaTransitionBuilder_private_offset;
static gpointer gala_transition_builder_parent_class = NULL;

VALA_EXTERN GType gala_transition_builder_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GalaTransitionBuilder, g_object_unref)
VALA_EXTERN GalaTransitionBuilder* gala_transition_builder_new (ClutterActor* actor,
                                                    guint duration,
                                                    ClutterAnimationMode animation_mode);
VALA_EXTERN GalaTransitionBuilder* gala_transition_builder_construct (GType object_type,
                                                          ClutterActor* actor,
                                                          guint duration,
                                                          ClutterAnimationMode animation_mode);
VALA_EXTERN void gala_transition_builder_add_property (GalaTransitionBuilder* self,
                                           const gchar* name,
                                           GValue* to);
static ClutterActor* gala_transition_builder_get_actor (GalaTransitionBuilder* self);
VALA_EXTERN void gala_transition_builder_add_property_with_from (GalaTransitionBuilder* self,
                                                     const gchar* name,
                                                     GValue* from,
                                                     GValue* to);
static guint gala_transition_builder_get_duration (GalaTransitionBuilder* self);
static ClutterAnimationMode gala_transition_builder_get_animation_mode (GalaTransitionBuilder* self);
static void gala_transition_builder_run_data_free (gpointer _data);
VALA_EXTERN void gala_transition_builder_run (GalaTransitionBuilder* self,
                                  GAsyncReadyCallback _callback_,
                                  gpointer _user_data_);
VALA_EXTERN void gala_transition_builder_run_finish (GalaTransitionBuilder* self,
                                         GAsyncResult* _res_);
static gboolean gala_transition_builder_run_co (GalaTransitionBuilderRunData* _data_);
static Block12Data* block12_data_ref (Block12Data* _data12_);
static void block12_data_unref (void * _userdata_);
static void __lambda161_ (Block12Data* _data12_);
static void ___lambda161__clutter_timeline_stopped (ClutterTimeline* _sender,
                                             gboolean is_finished,
                                             gpointer self);
static void gala_transition_builder_set_actor (GalaTransitionBuilder* self,
                                        ClutterActor* value);
static void gala_transition_builder_set_duration (GalaTransitionBuilder* self,
                                           guint value);
static void gala_transition_builder_set_animation_mode (GalaTransitionBuilder* self,
                                                 ClutterAnimationMode value);
static GObject * gala_transition_builder_constructor (GType type,
                                               guint n_construct_properties,
                                               GObjectConstructParam * construct_properties);
static void gala_transition_builder_finalize (GObject * obj);
static GType gala_transition_builder_get_type_once (void);
static void _vala_gala_transition_builder_get_property (GObject * object,
                                                 guint property_id,
                                                 GValue * value,
                                                 GParamSpec * pspec);
static void _vala_gala_transition_builder_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec);

static inline gpointer
gala_transition_builder_get_instance_private (GalaTransitionBuilder* self)
{
	return G_STRUCT_MEMBER_P (self, GalaTransitionBuilder_private_offset);
}

GalaTransitionBuilder*
gala_transition_builder_construct (GType object_type,
                                   ClutterActor* actor,
                                   guint duration,
                                   ClutterAnimationMode animation_mode)
{
	GalaTransitionBuilder * self = NULL;
	g_return_val_if_fail (actor != NULL, NULL);
	self = (GalaTransitionBuilder*) g_object_new (object_type, "actor", actor, "duration", duration, "animation-mode", animation_mode, NULL);
	return self;
}

GalaTransitionBuilder*
gala_transition_builder_new (ClutterActor* actor,
                             guint duration,
                             ClutterAnimationMode animation_mode)
{
	return gala_transition_builder_construct (GALA_TYPE_TRANSITION_BUILDER, actor, duration, animation_mode);
}

void
gala_transition_builder_add_property (GalaTransitionBuilder* self,
                                      const gchar* name,
                                      GValue* to)
{
	GValue from = {0};
	GValue _tmp0_ = {0};
	ClutterActor* _tmp1_;
	GValue _tmp2_;
	GValue _tmp3_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (name != NULL);
	g_return_if_fail (to != NULL);
	from = _tmp0_;
	_tmp1_ = self->priv->_actor;
	g_object_get_property ((GObject*) _tmp1_, name, &from);
	_tmp2_ = from;
	_tmp3_ = *to;
	gala_transition_builder_add_property_with_from (self, name, &_tmp2_, &_tmp3_);
	G_IS_VALUE (&from) ? (g_value_unset (&from), NULL) : NULL;
}

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

void
gala_transition_builder_add_property_with_from (GalaTransitionBuilder* self,
                                                const gchar* name,
                                                GValue* from,
                                                GValue* to)
{
	ClutterActor* _tmp2_;
	GValue _tmp3_;
	ClutterInterval* interval = NULL;
	GValue _tmp4_;
	GValue _tmp5_;
	ClutterInterval* _tmp6_;
	ClutterPropertyTransition* property_transition = NULL;
	ClutterInterval* _tmp7_;
	ClutterInterval* _tmp8_;
	guint _tmp9_;
	ClutterAnimationMode _tmp10_;
	ClutterPropertyTransition* _tmp11_ = NULL;
	ClutterTransitionGroup* _tmp12_;
	ClutterPropertyTransition* _tmp13_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (name != NULL);
	g_return_if_fail (from != NULL);
	g_return_if_fail (to != NULL);
	_vala_return_if_fail (G_VALUE_TYPE (from) == G_VALUE_TYPE (to), "from.type () == to.type ()");
	if (!meta_prefs_get_gnome_animations ()) {
		ClutterActor* _tmp0_;
		GValue _tmp1_;
		_tmp0_ = self->priv->_actor;
		_tmp1_ = *to;
		g_object_set_property ((GObject*) _tmp0_, name, &_tmp1_);
		return;
	}
	_tmp2_ = self->priv->_actor;
	_tmp3_ = *from;
	g_object_set_property ((GObject*) _tmp2_, name, &_tmp3_);
	_tmp4_ = *from;
	_tmp5_ = *to;
	_tmp6_ = clutter_interval_new_with_values (G_VALUE_TYPE (from), &_tmp4_, &_tmp5_);
	g_object_ref_sink (_tmp6_);
	interval = _tmp6_;
	_tmp7_ = interval;
	_tmp8_ = _g_object_ref0 (_tmp7_);
	_tmp9_ = self->priv->_duration;
	_tmp10_ = self->priv->_animation_mode;
	_tmp11_ = (ClutterPropertyTransition*) clutter_property_transition_new (name);
	clutter_transition_set_interval ((ClutterTransition*) _tmp11_, _tmp8_);
	_g_object_unref0 (_tmp8_);
	clutter_timeline_set_duration ((ClutterTimeline*) _tmp11_, _tmp9_);
	clutter_timeline_set_progress_mode ((ClutterTimeline*) _tmp11_, _tmp10_);
	property_transition = _tmp11_;
	_tmp12_ = self->priv->group;
	_tmp13_ = property_transition;
	clutter_transition_group_add_transition (_tmp12_, (ClutterTransition*) _tmp13_);
	_g_object_unref0 (property_transition);
	_g_object_unref0 (interval);
}

static void
gala_transition_builder_run_data_free (gpointer _data)
{
	GalaTransitionBuilderRunData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (GalaTransitionBuilderRunData, _data_);
}

void
gala_transition_builder_run (GalaTransitionBuilder* self,
                             GAsyncReadyCallback _callback_,
                             gpointer _user_data_)
{
	GalaTransitionBuilderRunData* _data_;
	GalaTransitionBuilder* _tmp0_;
	g_return_if_fail (self != NULL);
	_data_ = g_slice_new0 (GalaTransitionBuilderRunData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, gala_transition_builder_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	gala_transition_builder_run_co (_data_);
}

void
gala_transition_builder_run_finish (GalaTransitionBuilder* self,
                                    GAsyncResult* _res_)
{
	GalaTransitionBuilderRunData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
}

static Block12Data*
block12_data_ref (Block12Data* _data12_)
{
	g_atomic_int_inc (&_data12_->_ref_count_);
	return _data12_;
}

static void
block12_data_unref (void * _userdata_)
{
	Block12Data* _data12_;
	_data12_ = (Block12Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
		GalaTransitionBuilder* self;
		self = _data12_->self;
		_g_object_unref0 (self);
		g_slice_free (Block12Data, _data12_);
	}
}

static void
__lambda161_ (Block12Data* _data12_)
{
	GalaTransitionBuilder* self;
	self = _data12_->self;
	gala_transition_builder_run_co (_data12_->_async_data_);
}

static void
___lambda161__clutter_timeline_stopped (ClutterTimeline* _sender,
                                        gboolean is_finished,
                                        gpointer self)
{
	__lambda161_ (self);
}

static gboolean
gala_transition_builder_run_co (GalaTransitionBuilderRunData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data12_ = g_slice_new0 (Block12Data);
	_data_->_data12_->_ref_count_ = 1;
	_data_->_data12_->self = g_object_ref (_data_->self);
	_data_->_data12_->_async_data_ = _data_;
	if (!meta_prefs_get_gnome_animations ()) {
		block12_data_unref (_data_->_data12_);
		_data_->_data12_ = NULL;
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp0_ = _data_->self->priv->group;
	_data_->_tmp1_ = g_signal_connect_data ((ClutterTimeline*) _data_->_tmp0_, "stopped", (GCallback) ___lambda161__clutter_timeline_stopped, block12_data_ref (_data_->_data12_), (GClosureNotify) block12_data_unref, 0);
	_data_->stopped_handler_id = _data_->_tmp1_;
	_data_->_tmp2_ = _data_->self->priv->_actor;
	_data_->_tmp3_ = g_uuid_string_random ();
	_data_->_tmp4_ = _data_->_tmp3_;
	_data_->_tmp5_ = _data_->self->priv->group;
	clutter_actor_add_transition (_data_->_tmp2_, _data_->_tmp4_, (ClutterTransition*) _data_->_tmp5_);
	_g_free0 (_data_->_tmp4_);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp6_ = _data_->self->priv->group;
	g_signal_handler_disconnect ((GObject*) _data_->_tmp6_, _data_->stopped_handler_id);
	block12_data_unref (_data_->_data12_);
	_data_->_data12_ = NULL;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static ClutterActor*
gala_transition_builder_get_actor (GalaTransitionBuilder* self)
{
	ClutterActor* result;
	ClutterActor* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_actor;
	result = _tmp0_;
	return result;
}

static void
gala_transition_builder_set_actor (GalaTransitionBuilder* self,
                                   ClutterActor* value)
{
	ClutterActor* old_value;
	g_return_if_fail (self != NULL);
	old_value = gala_transition_builder_get_actor (self);
	if (old_value != value) {
		ClutterActor* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_actor);
		self->priv->_actor = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, gala_transition_builder_properties[GALA_TRANSITION_BUILDER_ACTOR_PROPERTY]);
	}
}

static guint
gala_transition_builder_get_duration (GalaTransitionBuilder* self)
{
	guint result;
	g_return_val_if_fail (self != NULL, 0U);
	result = self->priv->_duration;
	return result;
}

static void
gala_transition_builder_set_duration (GalaTransitionBuilder* self,
                                      guint value)
{
	guint old_value;
	g_return_if_fail (self != NULL);
	old_value = gala_transition_builder_get_duration (self);
	if (old_value != value) {
		self->priv->_duration = value;
		g_object_notify_by_pspec ((GObject *) self, gala_transition_builder_properties[GALA_TRANSITION_BUILDER_DURATION_PROPERTY]);
	}
}

static ClutterAnimationMode
gala_transition_builder_get_animation_mode (GalaTransitionBuilder* self)
{
	ClutterAnimationMode result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_animation_mode;
	return result;
}

static void
gala_transition_builder_set_animation_mode (GalaTransitionBuilder* self,
                                            ClutterAnimationMode value)
{
	ClutterAnimationMode old_value;
	g_return_if_fail (self != NULL);
	old_value = gala_transition_builder_get_animation_mode (self);
	if (old_value != value) {
		self->priv->_animation_mode = value;
		g_object_notify_by_pspec ((GObject *) self, gala_transition_builder_properties[GALA_TRANSITION_BUILDER_ANIMATION_MODE_PROPERTY]);
	}
}

static GObject *
gala_transition_builder_constructor (GType type,
                                     guint n_construct_properties,
                                     GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	GalaTransitionBuilder * self;
	guint _tmp0_;
	ClutterTransitionGroup* _tmp1_ = NULL;
	parent_class = G_OBJECT_CLASS (gala_transition_builder_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GALA_TYPE_TRANSITION_BUILDER, GalaTransitionBuilder);
	_tmp0_ = self->priv->_duration;
	_tmp1_ = (ClutterTransitionGroup*) clutter_transition_group_new ();
	clutter_transition_set_remove_on_complete ((ClutterTransition*) _tmp1_, TRUE);
	clutter_timeline_set_duration ((ClutterTimeline*) _tmp1_, _tmp0_);
	_g_object_unref0 (self->priv->group);
	self->priv->group = _tmp1_;
	return obj;
}

static void
gala_transition_builder_class_init (GalaTransitionBuilderClass * klass,
                                    gpointer klass_data)
{
	gala_transition_builder_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &GalaTransitionBuilder_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_gala_transition_builder_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gala_transition_builder_set_property;
	G_OBJECT_CLASS (klass)->constructor = gala_transition_builder_constructor;
	G_OBJECT_CLASS (klass)->finalize = gala_transition_builder_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GALA_TRANSITION_BUILDER_ACTOR_PROPERTY, gala_transition_builder_properties[GALA_TRANSITION_BUILDER_ACTOR_PROPERTY] = g_param_spec_object ("actor", "actor", "actor", clutter_actor_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GALA_TRANSITION_BUILDER_DURATION_PROPERTY, gala_transition_builder_properties[GALA_TRANSITION_BUILDER_DURATION_PROPERTY] = g_param_spec_uint ("duration", "duration", "duration", 0, G_MAXUINT, 0U, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GALA_TRANSITION_BUILDER_ANIMATION_MODE_PROPERTY, gala_transition_builder_properties[GALA_TRANSITION_BUILDER_ANIMATION_MODE_PROPERTY] = g_param_spec_enum ("animation-mode", "animation-mode", "animation-mode", clutter_animation_mode_get_type (), 0, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}

static void
gala_transition_builder_instance_init (GalaTransitionBuilder * self,
                                       gpointer klass)
{
	self->priv = gala_transition_builder_get_instance_private (self);
}

static void
gala_transition_builder_finalize (GObject * obj)
{
	GalaTransitionBuilder * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GALA_TYPE_TRANSITION_BUILDER, GalaTransitionBuilder);
	_g_object_unref0 (self->priv->_actor);
	_g_object_unref0 (self->priv->group);
	G_OBJECT_CLASS (gala_transition_builder_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
gala_transition_builder_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GalaTransitionBuilderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gala_transition_builder_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GalaTransitionBuilder), 0, (GInstanceInitFunc) gala_transition_builder_instance_init, NULL };
	GType gala_transition_builder_type_id;
	gala_transition_builder_type_id = g_type_register_static (G_TYPE_OBJECT, "GalaTransitionBuilder", &g_define_type_info, G_TYPE_FLAG_NONE);
	GalaTransitionBuilder_private_offset = g_type_add_instance_private (gala_transition_builder_type_id, sizeof (GalaTransitionBuilderPrivate));
	return gala_transition_builder_type_id;
}

GType
gala_transition_builder_get_type (void)
{
	static gsize gala_transition_builder_type_id__once = 0;
	if (g_once_init_enter (&gala_transition_builder_type_id__once)) {
		GType gala_transition_builder_type_id;
		gala_transition_builder_type_id = gala_transition_builder_get_type_once ();
		g_once_init_leave (&gala_transition_builder_type_id__once, gala_transition_builder_type_id);
	}
	return gala_transition_builder_type_id__once;
}

static void
_vala_gala_transition_builder_get_property (GObject * object,
                                            guint property_id,
                                            GValue * value,
                                            GParamSpec * pspec)
{
	GalaTransitionBuilder * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GALA_TYPE_TRANSITION_BUILDER, GalaTransitionBuilder);
	switch (property_id) {
		case GALA_TRANSITION_BUILDER_ACTOR_PROPERTY:
		g_value_set_object (value, gala_transition_builder_get_actor (self));
		break;
		case GALA_TRANSITION_BUILDER_DURATION_PROPERTY:
		g_value_set_uint (value, gala_transition_builder_get_duration (self));
		break;
		case GALA_TRANSITION_BUILDER_ANIMATION_MODE_PROPERTY:
		g_value_set_enum (value, gala_transition_builder_get_animation_mode (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_gala_transition_builder_set_property (GObject * object,
                                            guint property_id,
                                            const GValue * value,
                                            GParamSpec * pspec)
{
	GalaTransitionBuilder * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GALA_TYPE_TRANSITION_BUILDER, GalaTransitionBuilder);
	switch (property_id) {
		case GALA_TRANSITION_BUILDER_ACTOR_PROPERTY:
		gala_transition_builder_set_actor (self, g_value_get_object (value));
		break;
		case GALA_TRANSITION_BUILDER_DURATION_PROPERTY:
		gala_transition_builder_set_duration (self, g_value_get_uint (value));
		break;
		case GALA_TRANSITION_BUILDER_ANIMATION_MODE_PROPERTY:
		gala_transition_builder_set_animation_mode (self, g_value_get_enum (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

