/* gitg-animated-paned.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-animated-paned.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

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


#define GITG_TYPE_SLIDE_DIRECTION (gitg_slide_direction_get_type ())

#define GITG_TYPE_SLIDE_PANED_CHILD (gitg_slide_paned_child_get_type ())

#define GITG_TYPE_ANIMATED_PANED (gitg_animated_paned_get_type ())
#define GITG_ANIMATED_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_ANIMATED_PANED, GitgAnimatedPaned))
#define GITG_ANIMATED_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_ANIMATED_PANED, GitgAnimatedPanedClass))
#define GITG_IS_ANIMATED_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_ANIMATED_PANED))
#define GITG_IS_ANIMATED_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_ANIMATED_PANED))
#define GITG_ANIMATED_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_ANIMATED_PANED, GitgAnimatedPanedClass))

typedef struct _GitgAnimatedPaned GitgAnimatedPaned;
typedef struct _GitgAnimatedPanedClass GitgAnimatedPanedClass;
typedef struct _GitgAnimatedPanedPrivate GitgAnimatedPanedPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _GitgAnimatedPanedSlideAsyncData GitgAnimatedPanedSlideAsyncData;

typedef enum  {
	GITG_SLIDE_DIRECTION_IN,
	GITG_SLIDE_DIRECTION_OUT
} GitgSlideDirection;

typedef enum  {
	GITG_SLIDE_PANED_CHILD_FIRST,
	GITG_SLIDE_PANED_CHILD_SECOND
} GitgSlidePanedChild;

struct _GitgAnimatedPaned {
	GtkPaned parent_instance;
	GitgAnimatedPanedPrivate * priv;
};

struct _GitgAnimatedPanedClass {
	GtkPanedClass parent_class;
};

struct _GitgAnimatedPanedPrivate {
	gint d_target_pos;
	gint d_original_pos;
	gint d_start_pos;
	gint64 d_slide_start;
	gint64 d_slide_duration;
	guint d_tick_id;
	GSourceFunc d_async_callback;
	gpointer d_async_callback_target;
	GDestroyNotify d_async_callback_target_destroy_notify;
	GitgSlideDirection d_direction;
	GitgSlidePanedChild d_child;
	guint _transition_duration;
};

struct _GitgAnimatedPanedSlideAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgAnimatedPaned* self;
	GitgSlidePanedChild child;
	GitgSlideDirection direction;
	guint _tmp0_;
	GitgSlideDirection _tmp1_;
	gint _tmp2_;
	guint _tmp3_;
	GdkFrameClock* _tmp4_;
	gint64 _tmp5_;
	gint _tmp6_;
	GitgSlideDirection _tmp7_;
	GitgSlidePanedChild _tmp8_;
	gdouble factor;
	gint w;
	GtkOrientation _tmp9_;
	GtkOrientation _tmp10_;
	gint _tmp11_;
	gint _tmp12_;
	GitgSlideDirection _tmp13_;
	GitgSlidePanedChild _tmp14_;
	gint _tmp15_;
	gint _tmp16_;
	gint _tmp17_;
	gint _tmp18_;
	gint _tmp19_;
	gint _tmp20_;
	gdouble div;
	GitgSlidePanedChild _tmp21_;
	gint _tmp22_;
	GtkWidget* _tmp23_;
	gint _tmp24_;
	gint _tmp25_;
	GtkWidget* _tmp26_;
	gint _tmp27_;
	gint _tmp28_;
	gdouble _tmp29_;
	gdouble _tmp30_;
	guint _tmp31_;
};


static gpointer gitg_animated_paned_parent_class = NULL;

GType gitg_slide_direction_get_type (void) G_GNUC_CONST;
GType gitg_slide_paned_child_get_type (void) G_GNUC_CONST;
GType gitg_animated_paned_get_type (void) G_GNUC_CONST;
#define GITG_ANIMATED_PANED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_ANIMATED_PANED, GitgAnimatedPanedPrivate))
enum  {
	GITG_ANIMATED_PANED_DUMMY_PROPERTY,
	GITG_ANIMATED_PANED_TRANSITION_DURATION,
	GITG_ANIMATED_PANED_IS_ANIMATING
};
static gboolean gitg_animated_paned_on_animate_step (GitgAnimatedPaned* self, GtkWidget* widget, GdkFrameClock* clock);
static void gitg_animated_paned_real_dispose (GObject* base);
void gitg_animated_paned_slide (GitgAnimatedPaned* self, GitgSlidePanedChild child, GitgSlideDirection direction);
static void gitg_animated_paned_slide_async (GitgAnimatedPaned* self, GitgSlidePanedChild child, GitgSlideDirection direction, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void gitg_animated_paned_slide_finish (GitgAnimatedPaned* self, GAsyncResult* _res_);
static void __lambda62_ (GitgAnimatedPaned* self, GObject* obj, GAsyncResult* res);
static void ___lambda62__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void gitg_animated_paned_slide_async_data_free (gpointer _data);
static gboolean gitg_animated_paned_slide_async_co (GitgAnimatedPanedSlideAsyncData* _data_);
static gboolean _gitg_animated_paned_on_animate_step_gtk_tick_callback (GtkWidget* widget, GdkFrameClock* frame_clock, gpointer self);
static gboolean _gitg_animated_paned_slide_async_co_gsource_func (gpointer self);
guint gitg_animated_paned_get_transition_duration (GitgAnimatedPaned* self);
GitgAnimatedPaned* gitg_animated_paned_new (void);
GitgAnimatedPaned* gitg_animated_paned_construct (GType object_type);
void gitg_animated_paned_set_transition_duration (GitgAnimatedPaned* self, guint value);
gboolean gitg_animated_paned_get_is_animating (GitgAnimatedPaned* self);
static void gitg_animated_paned_finalize (GObject* obj);
static void _vala_gitg_animated_paned_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_animated_paned_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GType gitg_slide_direction_get_type (void) {
	static volatile gsize gitg_slide_direction_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_slide_direction_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_SLIDE_DIRECTION_IN, "GITG_SLIDE_DIRECTION_IN", "in"}, {GITG_SLIDE_DIRECTION_OUT, "GITG_SLIDE_DIRECTION_OUT", "out"}, {0, NULL, NULL}};
		GType gitg_slide_direction_type_id;
		gitg_slide_direction_type_id = g_enum_register_static ("GitgSlideDirection", values);
		g_once_init_leave (&gitg_slide_direction_type_id__volatile, gitg_slide_direction_type_id);
	}
	return gitg_slide_direction_type_id__volatile;
}


GType gitg_slide_paned_child_get_type (void) {
	static volatile gsize gitg_slide_paned_child_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_slide_paned_child_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_SLIDE_PANED_CHILD_FIRST, "GITG_SLIDE_PANED_CHILD_FIRST", "first"}, {GITG_SLIDE_PANED_CHILD_SECOND, "GITG_SLIDE_PANED_CHILD_SECOND", "second"}, {0, NULL, NULL}};
		GType gitg_slide_paned_child_type_id;
		gitg_slide_paned_child_type_id = g_enum_register_static ("GitgSlidePanedChild", values);
		g_once_init_leave (&gitg_slide_paned_child_type_id__volatile, gitg_slide_paned_child_type_id);
	}
	return gitg_slide_paned_child_type_id__volatile;
}


static gboolean gitg_animated_paned_on_animate_step (GitgAnimatedPaned* self, GtkWidget* widget, GdkFrameClock* clock) {
	gboolean result = FALSE;
	gint64 elapsed = 0LL;
	GdkFrameClock* _tmp0_ = NULL;
	gint64 _tmp1_ = 0LL;
	gint64 _tmp2_ = 0LL;
	gdouble factor = 0.0;
	gint64 _tmp3_ = 0LL;
	gint64 _tmp4_ = 0LL;
	gdouble _tmp5_ = 0.0;
	gint pos = 0;
	gint _tmp6_ = 0;
	gint _tmp7_ = 0;
	gdouble _tmp8_ = 0.0;
	gdouble _tmp9_ = 0.0;
	gint _tmp10_ = 0;
	gint _tmp11_ = 0;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_val_if_fail (clock != NULL, FALSE);
#line 56 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = clock;
#line 56 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp1_ = gdk_frame_clock_get_frame_time (_tmp0_);
#line 56 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp2_ = self->priv->d_slide_start;
#line 56 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	elapsed = _tmp1_ - _tmp2_;
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp3_ = elapsed;
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp4_ = self->priv->d_slide_duration;
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	factor = ((gdouble) _tmp3_) / ((gdouble) _tmp4_);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp5_ = factor;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	if (_tmp5_ > ((gdouble) 1)) {
#line 61 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		factor = (gdouble) 1;
#line 231 "gitg-animated-paned.c"
	}
#line 64 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp6_ = self->priv->d_target_pos;
#line 64 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp7_ = self->priv->d_start_pos;
#line 64 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp8_ = factor;
#line 64 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp9_ = round ((_tmp6_ - _tmp7_) * _tmp8_);
#line 64 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp10_ = self->priv->d_start_pos;
#line 64 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	pos = ((gint) _tmp9_) + _tmp10_;
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp11_ = pos;
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	gtk_paned_set_position ((GtkPaned*) self, _tmp11_);
#line 66 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	gtk_widget_queue_draw ((GtkWidget*) self);
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp12_ = pos;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp13_ = self->priv->d_target_pos;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	if (_tmp12_ == _tmp13_) {
#line 257 "gitg-animated-paned.c"
		GSourceFunc _tmp14_ = NULL;
		void* _tmp14__target = NULL;
		GitgSlideDirection _tmp16_ = 0;
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		self->priv->d_tick_id = (guint) 0;
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_tmp14_ = self->priv->d_async_callback;
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_tmp14__target = self->priv->d_async_callback_target;
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		if (_tmp14_ != NULL) {
#line 269 "gitg-animated-paned.c"
			GSourceFunc _tmp15_ = NULL;
			void* _tmp15__target = NULL;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_tmp15_ = self->priv->d_async_callback;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_tmp15__target = self->priv->d_async_callback_target;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_tmp15_ (_tmp15__target);
#line 278 "gitg-animated-paned.c"
		}
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_tmp16_ = self->priv->d_direction;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		if (_tmp16_ == GITG_SLIDE_DIRECTION_OUT) {
#line 284 "gitg-animated-paned.c"
			GitgSlidePanedChild _tmp17_ = 0;
#line 79 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_tmp17_ = self->priv->d_child;
#line 79 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			if (_tmp17_ == GITG_SLIDE_PANED_CHILD_FIRST) {
#line 290 "gitg-animated-paned.c"
				GtkWidget* _tmp18_ = NULL;
#line 81 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
				_tmp18_ = gtk_paned_get_child1 ((GtkPaned*) self);
#line 81 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
				gtk_widget_hide (_tmp18_);
#line 296 "gitg-animated-paned.c"
			} else {
				GtkWidget* _tmp19_ = NULL;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
				_tmp19_ = gtk_paned_get_child2 ((GtkPaned*) self);
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
				gtk_widget_hide (_tmp19_);
#line 303 "gitg-animated-paned.c"
			}
		}
#line 89 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		result = FALSE;
#line 89 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		return result;
#line 310 "gitg-animated-paned.c"
	}
#line 92 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	result = TRUE;
#line 92 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return result;
#line 316 "gitg-animated-paned.c"
}


static void gitg_animated_paned_real_dispose (GObject* base) {
	GitgAnimatedPaned * self;
	guint _tmp0_ = 0U;
#line 95 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self = (GitgAnimatedPaned*) base;
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = self->priv->d_tick_id;
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 329 "gitg-animated-paned.c"
		guint _tmp1_ = 0U;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_tmp1_ = self->priv->d_tick_id;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		gtk_widget_remove_tick_callback ((GtkWidget*) self, _tmp1_);
#line 100 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		self->priv->d_tick_id = (guint) 0;
#line 337 "gitg-animated-paned.c"
	}
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	G_OBJECT_CLASS (gitg_animated_paned_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_paned_get_type (), GtkPaned));
#line 341 "gitg-animated-paned.c"
}


static void __lambda62_ (GitgAnimatedPaned* self, GObject* obj, GAsyncResult* res) {
	GAsyncResult* _tmp0_ = NULL;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_if_fail (res != NULL);
#line 115 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = res;
#line 115 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	gitg_animated_paned_slide_finish (self, _tmp0_);
#line 353 "gitg-animated-paned.c"
}


static void ___lambda62__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	__lambda62_ ((GitgAnimatedPaned*) self, source_object, res);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_object_unref (self);
#line 362 "gitg-animated-paned.c"
}


void gitg_animated_paned_slide (GitgAnimatedPaned* self, GitgSlidePanedChild child, GitgSlideDirection direction) {
	GitgSlidePanedChild _tmp0_ = 0;
	GitgSlideDirection _tmp1_ = 0;
#line 111 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_if_fail (self != NULL);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = child;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp1_ = direction;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	gitg_animated_paned_slide_async (self, _tmp0_, _tmp1_, ___lambda62__gasync_ready_callback, g_object_ref (self));
#line 377 "gitg-animated-paned.c"
}


static void gitg_animated_paned_slide_async_data_free (gpointer _data) {
	GitgAnimatedPanedSlideAsyncData* _data_;
	_data_ = _data;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_g_object_unref0 (_data_->self);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_slice_free (GitgAnimatedPanedSlideAsyncData, _data_);
#line 388 "gitg-animated-paned.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return self ? g_object_ref (self) : NULL;
#line 395 "gitg-animated-paned.c"
}


static void gitg_animated_paned_slide_async (GitgAnimatedPaned* self, GitgSlidePanedChild child, GitgSlideDirection direction, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgAnimatedPanedSlideAsyncData* _data_;
	GitgAnimatedPaned* _tmp0_ = NULL;
	GitgSlidePanedChild _tmp1_ = 0;
	GitgSlideDirection _tmp2_ = 0;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_ = g_slice_new0 (GitgAnimatedPanedSlideAsyncData);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_animated_paned_slide_async);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_animated_paned_slide_async_data_free);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self = _tmp0_;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp1_ = child;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->child = _tmp1_;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp2_ = direction;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->direction = _tmp2_;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	gitg_animated_paned_slide_async_co (_data_);
#line 424 "gitg-animated-paned.c"
}


static void gitg_animated_paned_slide_finish (GitgAnimatedPaned* self, GAsyncResult* _res_) {
	GitgAnimatedPanedSlideAsyncData* _data_;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 432 "gitg-animated-paned.c"
}


static gboolean _gitg_animated_paned_on_animate_step_gtk_tick_callback (GtkWidget* widget, GdkFrameClock* frame_clock, gpointer self) {
	gboolean result;
	result = gitg_animated_paned_on_animate_step ((GitgAnimatedPaned*) self, widget, frame_clock);
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return result;
#line 441 "gitg-animated-paned.c"
}


static gboolean _gitg_animated_paned_slide_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gitg_animated_paned_slide_async_co (self);
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return result;
#line 450 "gitg-animated-paned.c"
}


static gboolean gitg_animated_paned_slide_async_co (GitgAnimatedPanedSlideAsyncData* _data_) {
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	switch (_data_->_state_) {
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		case 0:
#line 459 "gitg-animated-paned.c"
		goto _state_0;
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		case 1:
#line 463 "gitg-animated-paned.c"
		goto _state_1;
		default:
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		g_assert_not_reached ();
#line 468 "gitg-animated-paned.c"
	}
	_state_0:
#line 122 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp0_ = 0U;
#line 122 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp0_ = _data_->self->priv->d_tick_id;
#line 122 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	if (_data_->_tmp0_ == ((guint) 0)) {
#line 124 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp1_ = 0;
#line 124 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp1_ = _data_->direction;
#line 124 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		if (_data_->_tmp1_ == GITG_SLIDE_DIRECTION_OUT) {
#line 126 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp2_ = 0;
#line 126 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp2_ = gtk_paned_get_position ((GtkPaned*) _data_->self);
#line 126 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->self->priv->d_original_pos = _data_->_tmp2_;
#line 489 "gitg-animated-paned.c"
		}
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp3_ = 0U;
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp3_ = gtk_widget_add_tick_callback ((GtkWidget*) _data_->self, _gitg_animated_paned_on_animate_step_gtk_tick_callback, g_object_ref (_data_->self), g_object_unref);
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->self->priv->d_tick_id = _data_->_tmp3_;
#line 497 "gitg-animated-paned.c"
	}
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp4_ = NULL;
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp4_ = gtk_widget_get_frame_clock ((GtkWidget*) _data_->self);
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp5_ = 0LL;
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp5_ = gdk_frame_clock_get_frame_time (_data_->_tmp4_);
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_slide_start = _data_->_tmp5_;
#line 133 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp6_ = 0;
#line 133 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp6_ = gtk_paned_get_position ((GtkPaned*) _data_->self);
#line 133 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_start_pos = _data_->_tmp6_;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp7_ = 0;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp7_ = _data_->direction;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_direction = _data_->_tmp7_;
#line 135 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp8_ = 0;
#line 135 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp8_ = _data_->child;
#line 135 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_child = _data_->_tmp8_;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp9_ = 0;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp9_ = gtk_orientable_get_orientation ((GtkOrientable*) _data_->self);
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp10_ = 0;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	if (_data_->_tmp10_ == GTK_ORIENTATION_VERTICAL) {
#line 142 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp11_ = 0;
#line 142 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp11_ = gtk_widget_get_allocated_height ((GtkWidget*) _data_->self);
#line 142 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->w = _data_->_tmp11_;
#line 543 "gitg-animated-paned.c"
	} else {
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp12_ = 0;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp12_ = gtk_widget_get_allocated_width ((GtkWidget*) _data_->self);
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->w = _data_->_tmp12_;
#line 551 "gitg-animated-paned.c"
	}
#line 149 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp13_ = 0;
#line 149 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp13_ = _data_->direction;
#line 149 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	if (_data_->_tmp13_ == GITG_SLIDE_DIRECTION_OUT) {
#line 151 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp14_ = 0;
#line 151 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp14_ = _data_->child;
#line 151 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		if (_data_->_tmp14_ == GITG_SLIDE_PANED_CHILD_FIRST) {
#line 153 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->self->priv->d_target_pos = 0;
#line 567 "gitg-animated-paned.c"
		} else {
#line 157 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp15_ = 0;
#line 157 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp15_ = _data_->w;
#line 157 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->self->priv->d_target_pos = _data_->_tmp15_;
#line 575 "gitg-animated-paned.c"
		}
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp16_ = 0;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp16_ = _data_->self->priv->d_target_pos;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp17_ = 0;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp17_ = _data_->self->priv->d_start_pos;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp18_ = 0;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp18_ = _data_->self->priv->d_target_pos;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp19_ = 0;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp19_ = _data_->self->priv->d_original_pos;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->factor = (((gdouble) _data_->_tmp16_) - ((gdouble) _data_->_tmp17_)) / (((gdouble) _data_->_tmp18_) - ((gdouble) _data_->_tmp19_));
#line 595 "gitg-animated-paned.c"
	} else {
#line 165 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp20_ = 0;
#line 165 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp20_ = _data_->self->priv->d_original_pos;
#line 165 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->self->priv->d_target_pos = _data_->_tmp20_;
#line 169 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp21_ = 0;
#line 169 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp21_ = _data_->child;
#line 169 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		if (_data_->_tmp21_ == GITG_SLIDE_PANED_CHILD_FIRST) {
#line 171 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp22_ = 0;
#line 171 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp22_ = _data_->self->priv->d_original_pos;
#line 171 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->div = (gdouble) _data_->_tmp22_;
#line 172 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp23_ = NULL;
#line 172 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp23_ = gtk_paned_get_child1 ((GtkPaned*) _data_->self);
#line 172 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			gtk_widget_show (_data_->_tmp23_);
#line 621 "gitg-animated-paned.c"
		} else {
#line 176 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp24_ = 0;
#line 176 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp24_ = _data_->self->priv->d_original_pos;
#line 176 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp25_ = 0;
#line 176 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp25_ = _data_->w;
#line 176 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->div = (gdouble) (_data_->_tmp24_ - _data_->_tmp25_);
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp26_ = NULL;
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			_data_->_tmp26_ = gtk_paned_get_child2 ((GtkPaned*) _data_->self);
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
			gtk_widget_show (_data_->_tmp26_);
#line 639 "gitg-animated-paned.c"
		}
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp27_ = 0;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp27_ = _data_->self->priv->d_target_pos;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp28_ = 0;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp28_ = _data_->self->priv->d_start_pos;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp29_ = 0.0;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->_tmp29_ = _data_->div;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		_data_->factor = (((gdouble) _data_->_tmp27_) - ((gdouble) _data_->_tmp28_)) / _data_->_tmp29_;
#line 655 "gitg-animated-paned.c"
	}
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	(_data_->self->priv->d_async_callback_target_destroy_notify == NULL) ? NULL : (_data_->self->priv->d_async_callback_target_destroy_notify (_data_->self->priv->d_async_callback_target), NULL);
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_async_callback = NULL;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_async_callback_target = NULL;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_async_callback_target_destroy_notify = NULL;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_async_callback = _gitg_animated_paned_slide_async_co_gsource_func;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_async_callback_target = _data_;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_async_callback_target_destroy_notify = NULL;
#line 184 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp30_ = 0.0;
#line 184 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp30_ = _data_->factor;
#line 184 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp31_ = 0U;
#line 184 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_tmp31_ = _data_->self->priv->_transition_duration;
#line 184 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->self->priv->d_slide_duration = ((gint64) (_data_->_tmp30_ * _data_->_tmp31_)) * 1000;
#line 186 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_data_->_state_ = 1;
#line 186 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return FALSE;
#line 685 "gitg-animated-paned.c"
	_state_1:
	;
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	if (_data_->_state_ == 0) {
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 692 "gitg-animated-paned.c"
	} else {
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 696 "gitg-animated-paned.c"
	}
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_object_unref (_data_->_async_result);
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return FALSE;
#line 702 "gitg-animated-paned.c"
}


GitgAnimatedPaned* gitg_animated_paned_construct (GType object_type) {
	GitgAnimatedPaned * self = NULL;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self = (GitgAnimatedPaned*) g_object_new (object_type, NULL);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return self;
#line 712 "gitg-animated-paned.c"
}


GitgAnimatedPaned* gitg_animated_paned_new (void) {
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return gitg_animated_paned_construct (GITG_TYPE_ANIMATED_PANED);
#line 719 "gitg-animated-paned.c"
}


guint gitg_animated_paned_get_transition_duration (GitgAnimatedPaned* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = self->priv->_transition_duration;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	result = _tmp0_;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return result;
#line 734 "gitg-animated-paned.c"
}


void gitg_animated_paned_set_transition_duration (GitgAnimatedPaned* self, guint value) {
	guint _tmp0_ = 0U;
#line 50 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_if_fail (self != NULL);
#line 50 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = value;
#line 50 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self->priv->_transition_duration = _tmp0_;
#line 50 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_object_notify ((GObject *) self, "transition-duration");
#line 748 "gitg-animated-paned.c"
}


gboolean gitg_animated_paned_get_is_animating (GitgAnimatedPaned* self) {
	gboolean result;
	guint _tmp0_ = 0U;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	_tmp0_ = self->priv->d_tick_id;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	result = _tmp0_ != ((guint) 0);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	return result;
#line 763 "gitg-animated-paned.c"
}


static void gitg_animated_paned_class_init (GitgAnimatedPanedClass * klass) {
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	gitg_animated_paned_parent_class = g_type_class_peek_parent (klass);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_type_class_add_private (klass, sizeof (GitgAnimatedPanedPrivate));
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	((GObjectClass *) klass)->dispose = gitg_animated_paned_real_dispose;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_animated_paned_get_property;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_animated_paned_set_property;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_animated_paned_finalize;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_ANIMATED_PANED_TRANSITION_DURATION, g_param_spec_uint ("transition-duration", "transition-duration", "transition-duration", 0, G_MAXUINT, (guint) 250, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_ANIMATED_PANED_IS_ANIMATING, g_param_spec_boolean ("is-animating", "is-animating", "is-animating", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 784 "gitg-animated-paned.c"
}


static void gitg_animated_paned_instance_init (GitgAnimatedPaned * self) {
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self->priv = GITG_ANIMATED_PANED_GET_PRIVATE (self);
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self->priv->_transition_duration = (guint) 250;
#line 793 "gitg-animated-paned.c"
}


static void gitg_animated_paned_finalize (GObject* obj) {
	GitgAnimatedPaned * self;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_ANIMATED_PANED, GitgAnimatedPaned);
#line 43 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	(self->priv->d_async_callback_target_destroy_notify == NULL) ? NULL : (self->priv->d_async_callback_target_destroy_notify (self->priv->d_async_callback_target), NULL);
#line 43 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self->priv->d_async_callback = NULL;
#line 43 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self->priv->d_async_callback_target = NULL;
#line 43 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	self->priv->d_async_callback_target_destroy_notify = NULL;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	G_OBJECT_CLASS (gitg_animated_paned_parent_class)->finalize (obj);
#line 811 "gitg-animated-paned.c"
}


GType gitg_animated_paned_get_type (void) {
	static volatile gsize gitg_animated_paned_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_animated_paned_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgAnimatedPanedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_animated_paned_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgAnimatedPaned), 0, (GInstanceInitFunc) gitg_animated_paned_instance_init, NULL };
		GType gitg_animated_paned_type_id;
		gitg_animated_paned_type_id = g_type_register_static (gtk_paned_get_type (), "GitgAnimatedPaned", &g_define_type_info, 0);
		g_once_init_leave (&gitg_animated_paned_type_id__volatile, gitg_animated_paned_type_id);
	}
	return gitg_animated_paned_type_id__volatile;
}


static void _vala_gitg_animated_paned_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgAnimatedPaned * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_ANIMATED_PANED, GitgAnimatedPaned);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	switch (property_id) {
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		case GITG_ANIMATED_PANED_TRANSITION_DURATION:
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		g_value_set_uint (value, gitg_animated_paned_get_transition_duration (self));
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		break;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		case GITG_ANIMATED_PANED_IS_ANIMATING:
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		g_value_set_boolean (value, gitg_animated_paned_get_is_animating (self));
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		break;
#line 844 "gitg-animated-paned.c"
		default:
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		break;
#line 850 "gitg-animated-paned.c"
	}
}


static void _vala_gitg_animated_paned_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgAnimatedPaned * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_ANIMATED_PANED, GitgAnimatedPaned);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
	switch (property_id) {
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		case GITG_ANIMATED_PANED_TRANSITION_DURATION:
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		gitg_animated_paned_set_transition_duration (self, g_value_get_uint (value));
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		break;
#line 866 "gitg-animated-paned.c"
		default:
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-animated-paned.vala"
		break;
#line 872 "gitg-animated-paned.c"
	}
}



