/* gitg-history-paned.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-history-paned.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2012 - 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 "libgitg/libgitg.h"
#include <cairo.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gdk/gdk.h>
#include <float.h>
#include <math.h>


#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 GITG_HISTORY_TYPE_PANED (gitg_history_paned_get_type ())
#define GITG_HISTORY_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_PANED, GitgHistoryPaned))
#define GITG_HISTORY_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_PANED, GitgHistoryPanedClass))
#define GITG_HISTORY_IS_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_PANED))
#define GITG_HISTORY_IS_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_PANED))
#define GITG_HISTORY_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_PANED, GitgHistoryPanedClass))

typedef struct _GitgHistoryPaned GitgHistoryPaned;
typedef struct _GitgHistoryPanedClass GitgHistoryPanedClass;
typedef struct _GitgHistoryPanedPrivate GitgHistoryPanedPrivate;

#define GITG_HISTORY_TYPE_REFS_LIST (gitg_history_refs_list_get_type ())
#define GITG_HISTORY_REFS_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList))
#define GITG_HISTORY_REFS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsListClass))
#define GITG_HISTORY_IS_REFS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_REFS_LIST))
#define GITG_HISTORY_IS_REFS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_REFS_LIST))
#define GITG_HISTORY_REFS_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsListClass))

typedef struct _GitgHistoryRefsList GitgHistoryRefsList;
typedef struct _GitgHistoryRefsListClass GitgHistoryRefsListClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block72Data Block72Data;

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

struct _GitgAnimatedPanedClass {
	GtkPanedClass parent_class;
};

struct _GitgHistoryPaned {
	GitgAnimatedPaned parent_instance;
	GitgHistoryPanedPrivate * priv;
};

struct _GitgHistoryPanedClass {
	GitgAnimatedPanedClass parent_class;
};

struct _GitgHistoryPanedPrivate {
	GtkBox* d_box_sidebar;
	GitgAnimatedPaned* d_paned_panels;
	GtkStackSwitcher* d_stack_switcher_panels;
	GitgHistoryRefsList* d_refs_list;
	GitgCommitListView* d_commit_list_view;
	GtkStack* d_stack_panel;
	GtkScrolledWindow* d_scrolled_window_commit_list;
};

struct _Block72Data {
	int _ref_count_;
	GitgHistoryPaned* self;
	GSettings* state_settings;
};


static gpointer gitg_history_paned_parent_class = NULL;

GType gitg_animated_paned_get_type (void) G_GNUC_CONST;
GType gitg_history_paned_get_type (void) G_GNUC_CONST;
GType gitg_history_refs_list_get_type (void) G_GNUC_CONST;
#define GITG_HISTORY_PANED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_HISTORY_TYPE_PANED, GitgHistoryPanedPrivate))
enum  {
	GITG_HISTORY_PANED_DUMMY_PROPERTY,
	GITG_HISTORY_PANED_INNER_ORIENTATION,
	GITG_HISTORY_PANED_REFS_LIST,
	GITG_HISTORY_PANED_COMMIT_LIST_VIEW,
	GITG_HISTORY_PANED_PANED_PANELS,
	GITG_HISTORY_PANED_STACK_PANEL
};
static void gitg_history_paned_store_paned_position (GitgHistoryPaned* self, GitgAnimatedPaned* paned, GSettings* settings, const gchar* key);
gboolean gitg_animated_paned_get_is_animating (GitgAnimatedPaned* self);
GitgHistoryPaned* gitg_history_paned_new (void);
GitgHistoryPaned* gitg_history_paned_construct (GType object_type);
static gboolean gitg_history_paned_real_draw (GtkWidget* base, cairo_t* context);
GtkOrientation gitg_history_paned_get_inner_orientation (GitgHistoryPaned* self);
void gitg_history_paned_set_inner_orientation (GitgHistoryPaned* self, GtkOrientation value);
GitgHistoryRefsList* gitg_history_paned_get_refs_list (GitgHistoryPaned* self);
GitgCommitListView* gitg_history_paned_get_commit_list_view (GitgHistoryPaned* self);
GtkPaned* gitg_history_paned_get_paned_panels (GitgHistoryPaned* self);
GtkStack* gitg_history_paned_get_stack_panel (GitgHistoryPaned* self);
static GObject * gitg_history_paned_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static Block72Data* block72_data_ref (Block72Data* _data72_);
static void block72_data_unref (void * _userdata_);
static void _gitg_history_paned___lambda123_ (Block72Data* _data72_);
static void __gitg_history_paned___lambda123__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _gitg_history_paned___lambda124_ (Block72Data* _data72_);
static void __gitg_history_paned___lambda124__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_history_paned_finalize (GObject* obj);
static void _vala_gitg_history_paned_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_history_paned_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void gitg_history_paned_store_paned_position (GitgHistoryPaned* self, GitgAnimatedPaned* paned, GSettings* settings, const gchar* key) {
	GitgAnimatedPaned* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	GitgAnimatedPaned* _tmp4_ = NULL;
	GtkWidget* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	gboolean _tmp7_ = FALSE;
	GSettings* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	GitgAnimatedPaned* _tmp14_ = NULL;
	gint _tmp15_ = 0;
#line 117 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_if_fail (self != NULL);
#line 117 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_if_fail (paned != NULL);
#line 117 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_if_fail (settings != NULL);
#line 117 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_if_fail (key != NULL);
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = paned;
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp1_ = gitg_animated_paned_get_is_animating (_tmp0_);
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp2_ = _tmp1_;
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (_tmp2_) {
#line 121 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		return;
#line 174 "gitg-history-paned.c"
	}
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp4_ = paned;
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp5_ = gtk_paned_get_child1 ((GtkPaned*) _tmp4_);
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp6_ = gtk_widget_get_visible (_tmp5_);
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp7_ = _tmp6_;
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (!_tmp7_) {
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp3_ = TRUE;
#line 188 "gitg-history-paned.c"
	} else {
		GitgAnimatedPaned* _tmp8_ = NULL;
		GtkWidget* _tmp9_ = NULL;
		gboolean _tmp10_ = FALSE;
		gboolean _tmp11_ = FALSE;
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp8_ = paned;
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp9_ = gtk_paned_get_child2 ((GtkPaned*) _tmp8_);
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp10_ = gtk_widget_get_visible (_tmp9_);
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp11_ = _tmp10_;
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp3_ = !_tmp11_;
#line 204 "gitg-history-paned.c"
	}
#line 124 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (_tmp3_) {
#line 126 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		return;
#line 210 "gitg-history-paned.c"
	}
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp12_ = settings;
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp13_ = key;
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp14_ = paned;
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp15_ = gtk_paned_get_position ((GtkPaned*) _tmp14_);
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_settings_set_int (_tmp12_, _tmp13_, _tmp15_);
#line 222 "gitg-history-paned.c"
}


GitgHistoryPaned* gitg_history_paned_construct (GType object_type) {
	GitgHistoryPaned * self = NULL;
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	self = (GitgHistoryPaned*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, NULL);
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return self;
#line 232 "gitg-history-paned.c"
}


GitgHistoryPaned* gitg_history_paned_new (void) {
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return gitg_history_paned_construct (GITG_HISTORY_TYPE_PANED);
#line 239 "gitg-history-paned.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 191 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return self ? g_object_ref (self) : NULL;
#line 246 "gitg-history-paned.c"
}


static gboolean gitg_history_paned_real_draw (GtkWidget* base, cairo_t* context) {
	GitgHistoryPaned * self;
	gboolean result = FALSE;
	gboolean ret = FALSE;
	cairo_t* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	GtkWidget* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	GdkWindow* window = NULL;
	GtkBox* _tmp9_ = NULL;
	GdkWindow* _tmp10_ = NULL;
	GdkWindow* _tmp11_ = NULL;
	GdkWindow* handlewin = NULL;
	GdkWindow* _tmp12_ = NULL;
	GdkWindow* _tmp13_ = NULL;
	GtkStyleContext* c = NULL;
	GtkStyleContext* _tmp14_ = NULL;
	GtkStyleContext* _tmp15_ = NULL;
	GtkStyleContext* _tmp16_ = NULL;
	GtkStyleContext* _tmp17_ = NULL;
	GtkAllocation alloc = {0};
	GtkStackSwitcher* _tmp18_ = NULL;
	GtkAllocation _tmp19_ = {0};
	gint y = 0;
	GtkAllocation _tmp20_ = {0};
	gint _tmp21_ = 0;
	GtkBox* _tmp22_ = NULL;
	gint _tmp23_ = 0;
	gint _tmp24_ = 0;
	gint hw = 0;
	gint w = 0;
	gint _tmp25_ = 0;
	gint _tmp26_ = 0;
	gint _tmp27_ = 0;
	gint h = 0;
	GtkAllocation _tmp28_ = {0};
	gint _tmp29_ = 0;
	GtkBox* _tmp30_ = NULL;
	gint _tmp31_ = 0;
	gint _tmp32_ = 0;
	GtkStackSwitcher* _tmp33_ = NULL;
	gint _tmp34_ = 0;
	gint _tmp35_ = 0;
	GdkWindow* _tmp36_ = NULL;
	GdkWindow* _tmp45_ = NULL;
	GtkStyleContext* _tmp54_ = NULL;
#line 182 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	self = (GitgHistoryPaned*) base;
#line 182 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_val_if_fail (context != NULL, FALSE);
#line 184 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = context;
#line 184 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp1_ = GTK_WIDGET_CLASS (gitg_history_paned_parent_class)->draw ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, GITG_TYPE_ANIMATED_PANED, GitgAnimatedPaned), _tmp0_);
#line 184 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	ret = _tmp1_;
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp3_ = gtk_paned_get_child1 ((GtkPaned*) self);
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp4_ = gtk_widget_get_visible (_tmp3_);
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp5_ = _tmp4_;
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (!_tmp5_) {
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp2_ = TRUE;
#line 318 "gitg-history-paned.c"
	} else {
		GtkWidget* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp6_ = gtk_paned_get_child2 ((GtkPaned*) self);
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp7_ = gtk_widget_get_visible (_tmp6_);
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp8_ = _tmp7_;
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp2_ = !_tmp8_;
#line 331 "gitg-history-paned.c"
	}
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (_tmp2_) {
#line 188 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		result = ret;
#line 188 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		return result;
#line 339 "gitg-history-paned.c"
	}
#line 191 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp9_ = self->priv->d_box_sidebar;
#line 191 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp10_ = gtk_widget_get_window ((GtkWidget*) _tmp9_);
#line 191 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp11_ = _g_object_ref0 (_tmp10_);
#line 191 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	window = _tmp11_;
#line 192 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp12_ = gtk_paned_get_handle_window ((GtkPaned*) self);
#line 192 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp13_ = _g_object_ref0 (_tmp12_);
#line 192 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	handlewin = _tmp13_;
#line 194 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp14_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 194 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp15_ = _g_object_ref0 (_tmp14_);
#line 194 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	c = _tmp15_;
#line 195 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp16_ = c;
#line 195 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_style_context_save (_tmp16_);
#line 197 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp17_ = c;
#line 197 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_style_context_add_region (_tmp17_, "panel-switcher", 0);
#line 200 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp18_ = self->priv->d_stack_switcher_panels;
#line 200 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_get_allocation ((GtkWidget*) _tmp18_, &_tmp19_);
#line 200 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	alloc = _tmp19_;
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp20_ = alloc;
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp21_ = _tmp20_.y;
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp22_ = self->priv->d_box_sidebar;
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp23_ = gtk_box_get_spacing (_tmp22_);
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp24_ = _tmp23_;
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	y = _tmp21_ - _tmp24_;
#line 203 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	hw = 1;
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp25_ = gtk_paned_get_position ((GtkPaned*) self);
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp26_ = _tmp25_;
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp27_ = hw;
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	w = _tmp26_ + _tmp27_;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp28_ = alloc;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp29_ = _tmp28_.height;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp30_ = self->priv->d_box_sidebar;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp31_ = gtk_box_get_spacing (_tmp30_);
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp32_ = _tmp31_;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp33_ = self->priv->d_stack_switcher_panels;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp34_ = gtk_widget_get_margin_bottom ((GtkWidget*) _tmp33_);
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp35_ = _tmp34_;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	h = (_tmp29_ + _tmp32_) + _tmp35_;
#line 207 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp36_ = window;
#line 207 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (_tmp36_ != NULL) {
#line 419 "gitg-history-paned.c"
		gint wx = 0;
		GdkWindow* _tmp37_ = NULL;
		gint _tmp38_ = 0;
		GtkStyleContext* _tmp39_ = NULL;
		cairo_t* _tmp40_ = NULL;
		gint _tmp41_ = 0;
		gint _tmp42_ = 0;
		gint _tmp43_ = 0;
		gint _tmp44_ = 0;
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp37_ = window;
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gdk_window_get_position (_tmp37_, &_tmp38_, NULL);
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		wx = _tmp38_;
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp39_ = c;
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp40_ = context;
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp41_ = wx;
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp42_ = y;
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp43_ = w;
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp44_ = h;
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gtk_render_frame (_tmp39_, _tmp40_, (gdouble) _tmp41_, (gdouble) _tmp42_, (gdouble) _tmp43_, (gdouble) _tmp44_);
#line 449 "gitg-history-paned.c"
	}
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp45_ = handlewin;
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (_tmp45_ != NULL) {
#line 455 "gitg-history-paned.c"
		gint hx = 0;
		GdkWindow* _tmp46_ = NULL;
		gint _tmp47_ = 0;
		GtkStyleContext* _tmp48_ = NULL;
		cairo_t* _tmp49_ = NULL;
		gint _tmp50_ = 0;
		gint _tmp51_ = 0;
		gint _tmp52_ = 0;
		gint _tmp53_ = 0;
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp46_ = handlewin;
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gdk_window_get_position (_tmp46_, &_tmp47_, NULL);
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		hx = _tmp47_;
#line 219 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp48_ = c;
#line 219 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp49_ = context;
#line 219 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp50_ = hx;
#line 219 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp51_ = y;
#line 219 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp52_ = hw;
#line 219 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp53_ = h;
#line 219 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gtk_render_background (_tmp48_, _tmp49_, (gdouble) _tmp50_, (gdouble) _tmp51_, (gdouble) _tmp52_, (gdouble) _tmp53_);
#line 485 "gitg-history-paned.c"
	}
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp54_ = c;
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_style_context_restore (_tmp54_);
#line 224 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	result = ret;
#line 224 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (c);
#line 224 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (handlewin);
#line 224 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (window);
#line 224 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return result;
#line 501 "gitg-history-paned.c"
}


GtkOrientation gitg_history_paned_get_inner_orientation (GitgHistoryPaned* self) {
	GtkOrientation result;
	GitgAnimatedPaned* _tmp0_ = NULL;
	GtkOrientation _tmp1_ = 0;
	GtkOrientation _tmp2_ = 0;
#line 49 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 49 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = self->priv->d_paned_panels;
#line 49 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp1_ = gtk_orientable_get_orientation ((GtkOrientable*) _tmp0_);
#line 49 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp2_ = _tmp1_;
#line 49 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	result = _tmp2_;
#line 49 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return result;
#line 522 "gitg-history-paned.c"
}


void gitg_history_paned_set_inner_orientation (GitgHistoryPaned* self, GtkOrientation value) {
	GitgAnimatedPaned* _tmp0_ = NULL;
	GtkOrientation _tmp1_ = 0;
	GtkOrientation _tmp2_ = 0;
	GtkOrientation _tmp3_ = 0;
#line 51 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_if_fail (self != NULL);
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = self->priv->d_paned_panels;
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp1_ = gtk_orientable_get_orientation ((GtkOrientable*) _tmp0_);
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp2_ = _tmp1_;
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp3_ = value;
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (_tmp2_ != _tmp3_) {
#line 543 "gitg-history-paned.c"
		GitgAnimatedPaned* _tmp4_ = NULL;
		GtkOrientation _tmp5_ = 0;
		GitgAnimatedPaned* _tmp6_ = NULL;
		GtkScrolledWindow* _tmp7_ = NULL;
		GitgAnimatedPaned* _tmp8_ = NULL;
		GtkStack* _tmp9_ = NULL;
		GtkWidget* p1 = NULL;
		GtkWidget* p2 = NULL;
		GtkOrientation _tmp10_ = 0;
		GitgAnimatedPaned* _tmp19_ = NULL;
		GtkWidget* _tmp20_ = NULL;
		GitgAnimatedPaned* _tmp21_ = NULL;
		GtkWidget* _tmp22_ = NULL;
#line 55 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp4_ = self->priv->d_paned_panels;
#line 55 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp5_ = value;
#line 55 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gtk_orientable_set_orientation ((GtkOrientable*) _tmp4_, _tmp5_);
#line 58 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp6_ = self->priv->d_paned_panels;
#line 58 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp7_ = self->priv->d_scrolled_window_commit_list;
#line 58 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gtk_container_remove ((GtkContainer*) _tmp6_, (GtkWidget*) _tmp7_);
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp8_ = self->priv->d_paned_panels;
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp9_ = self->priv->d_stack_panel;
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gtk_container_remove ((GtkContainer*) _tmp8_, (GtkWidget*) _tmp9_);
#line 64 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp10_ = value;
#line 64 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		if (_tmp10_ == GTK_ORIENTATION_HORIZONTAL) {
#line 579 "gitg-history-paned.c"
			GtkStack* _tmp11_ = NULL;
			GtkWidget* _tmp12_ = NULL;
			GtkScrolledWindow* _tmp13_ = NULL;
			GtkWidget* _tmp14_ = NULL;
#line 66 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp11_ = self->priv->d_stack_panel;
#line 66 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp12_ = _g_object_ref0 ((GtkWidget*) _tmp11_);
#line 66 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_g_object_unref0 (p1);
#line 66 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			p1 = _tmp12_;
#line 67 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp13_ = self->priv->d_scrolled_window_commit_list;
#line 67 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp14_ = _g_object_ref0 ((GtkWidget*) _tmp13_);
#line 67 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_g_object_unref0 (p2);
#line 67 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			p2 = _tmp14_;
#line 600 "gitg-history-paned.c"
		} else {
			GtkScrolledWindow* _tmp15_ = NULL;
			GtkWidget* _tmp16_ = NULL;
			GtkStack* _tmp17_ = NULL;
			GtkWidget* _tmp18_ = NULL;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp15_ = self->priv->d_scrolled_window_commit_list;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp16_ = _g_object_ref0 ((GtkWidget*) _tmp15_);
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_g_object_unref0 (p1);
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			p1 = _tmp16_;
#line 72 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp17_ = self->priv->d_stack_panel;
#line 72 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_tmp18_ = _g_object_ref0 ((GtkWidget*) _tmp17_);
#line 72 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			_g_object_unref0 (p2);
#line 72 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
			p2 = _tmp18_;
#line 622 "gitg-history-paned.c"
		}
#line 75 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp19_ = self->priv->d_paned_panels;
#line 75 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp20_ = p1;
#line 75 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gtk_paned_pack1 ((GtkPaned*) _tmp19_, _tmp20_, TRUE, TRUE);
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp21_ = self->priv->d_paned_panels;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_tmp22_ = p2;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gtk_paned_pack2 ((GtkPaned*) _tmp21_, _tmp22_, FALSE, FALSE);
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_g_object_unref0 (p2);
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_g_object_unref0 (p1);
#line 640 "gitg-history-paned.c"
	}
#line 51 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_object_notify ((GObject *) self, "inner-orientation");
#line 644 "gitg-history-paned.c"
}


GitgHistoryRefsList* gitg_history_paned_get_refs_list (GitgHistoryPaned* self) {
	GitgHistoryRefsList* result;
	GitgHistoryRefsList* _tmp0_ = NULL;
#line 164 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 164 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = self->priv->d_refs_list;
#line 164 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	result = _tmp0_;
#line 164 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return result;
#line 659 "gitg-history-paned.c"
}


GitgCommitListView* gitg_history_paned_get_commit_list_view (GitgHistoryPaned* self) {
	GitgCommitListView* result;
	GitgCommitListView* _tmp0_ = NULL;
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = self->priv->d_commit_list_view;
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	result = _tmp0_;
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return result;
#line 674 "gitg-history-paned.c"
}


GtkPaned* gitg_history_paned_get_paned_panels (GitgHistoryPaned* self) {
	GtkPaned* result;
	GitgAnimatedPaned* _tmp0_ = NULL;
#line 174 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 174 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = self->priv->d_paned_panels;
#line 174 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	result = (GtkPaned*) _tmp0_;
#line 174 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return result;
#line 689 "gitg-history-paned.c"
}


GtkStack* gitg_history_paned_get_stack_panel (GitgHistoryPaned* self) {
	GtkStack* result;
	GtkStack* _tmp0_ = NULL;
#line 179 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 179 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = self->priv->d_stack_panel;
#line 179 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	result = _tmp0_;
#line 179 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return result;
#line 704 "gitg-history-paned.c"
}


static Block72Data* block72_data_ref (Block72Data* _data72_) {
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_atomic_int_inc (&_data72_->_ref_count_);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return _data72_;
#line 713 "gitg-history-paned.c"
}


static void block72_data_unref (void * _userdata_) {
	Block72Data* _data72_;
	_data72_ = (Block72Data*) _userdata_;
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	if (g_atomic_int_dec_and_test (&_data72_->_ref_count_)) {
#line 722 "gitg-history-paned.c"
		GitgHistoryPaned* self;
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		self = _data72_->self;
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_g_object_unref0 (_data72_->state_settings);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		_g_object_unref0 (self);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		g_slice_free (Block72Data, _data72_);
#line 732 "gitg-history-paned.c"
	}
}


static void _gitg_history_paned___lambda123_ (Block72Data* _data72_) {
	GitgHistoryPaned* self;
	GSettings* _tmp0_ = NULL;
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	self = _data72_->self;
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = _data72_->state_settings;
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gitg_history_paned_store_paned_position (self, (GitgAnimatedPaned*) self, _tmp0_, "paned-sidebar-position");
#line 746 "gitg-history-paned.c"
}


static void __gitg_history_paned___lambda123__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_gitg_history_paned___lambda123_ (self);
#line 753 "gitg-history-paned.c"
}


static void _gitg_history_paned___lambda124_ (Block72Data* _data72_) {
	GitgHistoryPaned* self;
	GitgAnimatedPaned* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	self = _data72_->self;
#line 144 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = self->priv->d_paned_panels;
#line 144 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp1_ = _data72_->state_settings;
#line 144 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gitg_history_paned_store_paned_position (self, _tmp0_, _tmp1_, "paned-panels-position");
#line 769 "gitg-history-paned.c"
}


static void __gitg_history_paned___lambda124__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_gitg_history_paned___lambda124_ (self);
#line 776 "gitg-history-paned.c"
}


static GObject * gitg_history_paned_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgHistoryPaned * self;
	Block72Data* _data72_;
	GSettings* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	GitgAnimatedPaned* _tmp3_ = NULL;
	GSettings* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	GitgAnimatedPaned* _tmp6_ = NULL;
	GSettings* interface_settings = NULL;
	GSettings* _tmp7_ = NULL;
	GSettings* _tmp8_ = NULL;
	GtkStackSwitcher* _tmp9_ = NULL;
	GtkStack* _tmp10_ = NULL;
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	parent_class = G_OBJECT_CLASS (gitg_history_paned_parent_class);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_PANED, GitgHistoryPaned);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_data72_ = g_slice_new0 (Block72Data);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_data72_->_ref_count_ = 1;
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_data72_->self = g_object_ref (self);
#line 134 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp0_ = g_settings_new ("org.gnome.gitg.state.history");
#line 134 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_data72_->state_settings = _tmp0_;
#line 136 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp1_ = _data72_->state_settings;
#line 136 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp2_ = g_settings_get_int (_tmp1_, "paned-sidebar-position");
#line 136 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_paned_set_position ((GtkPaned*) self, _tmp2_);
#line 137 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp3_ = self->priv->d_paned_panels;
#line 137 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp4_ = _data72_->state_settings;
#line 137 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp5_ = g_settings_get_int (_tmp4_, "paned-panels-position");
#line 137 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_paned_set_position ((GtkPaned*) _tmp3_, _tmp5_);
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_signal_connect_data ((GObject*) self, "notify::position", (GCallback) __gitg_history_paned___lambda123__g_object_notify, block72_data_ref (_data72_), (GClosureNotify) block72_data_unref, 0);
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp6_ = self->priv->d_paned_panels;
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_signal_connect_data ((GObject*) _tmp6_, "notify::position", (GCallback) __gitg_history_paned___lambda124__g_object_notify, block72_data_ref (_data72_), (GClosureNotify) block72_data_unref, 0);
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp7_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	interface_settings = _tmp7_;
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp8_ = interface_settings;
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_settings_bind (_tmp8_, "orientation", (GObject*) self, "inner_orientation", G_SETTINGS_BIND_GET);
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp9_ = self->priv->d_stack_switcher_panels;
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_tmp10_ = self->priv->d_stack_panel;
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_stack_switcher_set_stack (_tmp9_, _tmp10_);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (interface_settings);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	block72_data_unref (_data72_);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_data72_ = NULL;
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	return obj;
#line 855 "gitg-history-paned.c"
}


static void gitg_history_paned_class_init (GitgHistoryPanedClass * klass) {
	gint GitgHistoryPaned_private_offset;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gitg_history_paned_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryPanedPrivate));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	((GtkWidgetClass *) klass)->draw = (gboolean (*)(GtkWidget*, cairo_t*)) gitg_history_paned_real_draw;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_paned_get_property;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_paned_set_property;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_history_paned_constructor;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_paned_finalize;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_PANED_INNER_ORIENTATION, g_param_spec_enum ("inner-orientation", "inner-orientation", "inner-orientation", GTK_TYPE_ORIENTATION, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_PANED_REFS_LIST, g_param_spec_object ("refs-list", "refs-list", "refs-list", GITG_HISTORY_TYPE_REFS_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_PANED_COMMIT_LIST_VIEW, g_param_spec_object ("commit-list-view", "commit-list-view", "commit-list-view", GITG_TYPE_COMMIT_LIST_VIEW, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_PANED_PANED_PANELS, g_param_spec_object ("paned-panels", "paned-panels", "paned-panels", gtk_paned_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_PANED_STACK_PANEL, g_param_spec_object ("stack-panel", "stack-panel", "stack-panel", gtk_stack_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	GitgHistoryPaned_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-history-paned.ui");
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_box_sidebar", FALSE, GitgHistoryPaned_private_offset + G_STRUCT_OFFSET (GitgHistoryPanedPrivate, d_box_sidebar));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_paned_panels", FALSE, GitgHistoryPaned_private_offset + G_STRUCT_OFFSET (GitgHistoryPanedPrivate, d_paned_panels));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_stack_switcher_panels", FALSE, GitgHistoryPaned_private_offset + G_STRUCT_OFFSET (GitgHistoryPanedPrivate, d_stack_switcher_panels));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_refs_list", FALSE, GitgHistoryPaned_private_offset + G_STRUCT_OFFSET (GitgHistoryPanedPrivate, d_refs_list));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_commit_list_view", FALSE, GitgHistoryPaned_private_offset + G_STRUCT_OFFSET (GitgHistoryPanedPrivate, d_commit_list_view));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_stack_panel", FALSE, GitgHistoryPaned_private_offset + G_STRUCT_OFFSET (GitgHistoryPanedPrivate, d_stack_panel));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_scrolled_window_commit_list", FALSE, GitgHistoryPaned_private_offset + G_STRUCT_OFFSET (GitgHistoryPanedPrivate, d_scrolled_window_commit_list));
#line 903 "gitg-history-paned.c"
}


static void gitg_history_paned_instance_init (GitgHistoryPaned * self) {
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	self->priv = GITG_HISTORY_PANED_GET_PRIVATE (self);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_type_ensure (GITG_TYPE_ANIMATED_PANED);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	g_type_ensure (GITG_HISTORY_TYPE_REFS_LIST);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 916 "gitg-history-paned.c"
}


static void gitg_history_paned_finalize (GObject* obj) {
	GitgHistoryPaned * self;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_PANED, GitgHistoryPaned);
#line 27 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (self->priv->d_box_sidebar);
#line 30 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (self->priv->d_paned_panels);
#line 33 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (self->priv->d_stack_switcher_panels);
#line 36 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (self->priv->d_refs_list);
#line 39 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (self->priv->d_commit_list_view);
#line 42 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (self->priv->d_stack_panel);
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	_g_object_unref0 (self->priv->d_scrolled_window_commit_list);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	G_OBJECT_CLASS (gitg_history_paned_parent_class)->finalize (obj);
#line 940 "gitg-history-paned.c"
}


GType gitg_history_paned_get_type (void) {
	static volatile gsize gitg_history_paned_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_paned_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryPanedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_history_paned_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgHistoryPaned), 0, (GInstanceInitFunc) gitg_history_paned_instance_init, NULL };
		GType gitg_history_paned_type_id;
		gitg_history_paned_type_id = g_type_register_static (GITG_TYPE_ANIMATED_PANED, "GitgHistoryPaned", &g_define_type_info, 0);
		g_once_init_leave (&gitg_history_paned_type_id__volatile, gitg_history_paned_type_id);
	}
	return gitg_history_paned_type_id__volatile;
}


static void _vala_gitg_history_paned_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgHistoryPaned * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_PANED, GitgHistoryPaned);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	switch (property_id) {
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		case GITG_HISTORY_PANED_INNER_ORIENTATION:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		g_value_set_enum (value, gitg_history_paned_get_inner_orientation (self));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		case GITG_HISTORY_PANED_REFS_LIST:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		g_value_set_object (value, gitg_history_paned_get_refs_list (self));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		case GITG_HISTORY_PANED_COMMIT_LIST_VIEW:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		g_value_set_object (value, gitg_history_paned_get_commit_list_view (self));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		case GITG_HISTORY_PANED_PANED_PANELS:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		g_value_set_object (value, gitg_history_paned_get_paned_panels (self));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		case GITG_HISTORY_PANED_STACK_PANEL:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		g_value_set_object (value, gitg_history_paned_get_stack_panel (self));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 991 "gitg-history-paned.c"
		default:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 997 "gitg-history-paned.c"
	}
}


static void _vala_gitg_history_paned_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgHistoryPaned * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_PANED, GitgHistoryPaned);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
	switch (property_id) {
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		case GITG_HISTORY_PANED_INNER_ORIENTATION:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		gitg_history_paned_set_inner_orientation (self, g_value_get_enum (value));
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 1013 "gitg-history-paned.c"
		default:
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/dev/gitg/gitg/history/gitg-history-paned.vala"
		break;
#line 1019 "gitg-history-paned.c"
	}
}



