/* gitg-preferences-history.c generated by valac 0.28.0, the Vala compiler
 * generated from gitg-preferences-history.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-ext/libgitg-ext.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <float.h>
#include <math.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>


#define GITG_TYPE_PREFERENCES_HISTORY (gitg_preferences_history_get_type ())
#define GITG_PREFERENCES_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistory))
#define GITG_PREFERENCES_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistoryClass))
#define GITG_IS_PREFERENCES_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PREFERENCES_HISTORY))
#define GITG_IS_PREFERENCES_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PREFERENCES_HISTORY))
#define GITG_PREFERENCES_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistoryClass))

typedef struct _GitgPreferencesHistory GitgPreferencesHistory;
typedef struct _GitgPreferencesHistoryClass GitgPreferencesHistoryClass;
typedef struct _GitgPreferencesHistoryPrivate GitgPreferencesHistoryPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block57Data Block57Data;

struct _GitgPreferencesHistory {
	GtkGrid parent_instance;
	GitgPreferencesHistoryPrivate * priv;
};

struct _GitgPreferencesHistoryClass {
	GtkGridClass parent_class;
};

struct _GitgPreferencesHistoryPrivate {
	gboolean d_block;
	GtkCheckButton* d_collapse_inactive_lanes_enabled;
	GtkAdjustment* d_adjustment_collapse;
	GtkScale* d_collapse_inactive_lanes;
	GtkCheckButton* d_topological_order;
	GtkCheckButton* d_mainline_head;
	GtkRadioButton* d_select_current_branch;
	GtkRadioButton* d_select_all_branches;
	GtkRadioButton* d_select_all_commits;
	GtkRadioButton** d_select_buttons;
	gint d_select_buttons_length1;
	gint _d_select_buttons_size_;
	gchar** d_select_names;
	gint d_select_names_length1;
	gint _d_select_names_size_;
};

struct _Block57Data {
	int _ref_count_;
	GitgPreferencesHistory* self;
	GSettings* settings;
	gulong monsig;
};


static gpointer gitg_preferences_history_parent_class = NULL;
static GitgExtPreferencesIface* gitg_preferences_history_gitg_ext_preferences_parent_iface = NULL;

GType gitg_preferences_history_get_type (void) G_GNUC_CONST;
#define GITG_PREFERENCES_HISTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistoryPrivate))
enum  {
	GITG_PREFERENCES_HISTORY_DUMMY_PROPERTY,
	GITG_PREFERENCES_HISTORY_DEFAULT_SELECTION,
	GITG_PREFERENCES_HISTORY_WIDGET,
	GITG_PREFERENCES_HISTORY_ID,
	GITG_PREFERENCES_HISTORY_DISPLAY_NAME
};
#define GITG_PREFERENCES_HISTORY_version VERSION
static gint gitg_preferences_history_round_val (gdouble val);
static void gitg_preferences_history_update_collapse_inactive_lanes (GitgPreferencesHistory* self, GSettings* settings);
GitgPreferencesHistory* gitg_preferences_history_new (void);
GitgPreferencesHistory* gitg_preferences_history_construct (GType object_type);
const gchar* gitg_preferences_history_get_default_selection (GitgPreferencesHistory* self);
void gitg_preferences_history_set_default_selection (GitgPreferencesHistory* self, const gchar* value);
static GObject * gitg_preferences_history_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static Block57Data* block57_data_ref (Block57Data* _data57_);
static void block57_data_unref (void * _userdata_);
static void _gitg_preferences_history___lambda69_ (Block57Data* _data57_, GtkAdjustment* adj);
static void __gitg_preferences_history___lambda69__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self);
static void _gitg_preferences_history___lambda70_ (Block57Data* _data57_, GSettings* s, const gchar* k);
static void __gitg_preferences_history___lambda70__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
static void _gitg_preferences_history___lambda71_ (Block57Data* _data57_, GtkWidget* w);
static void __gitg_preferences_history___lambda71__gtk_widget_destroy (GtkWidget* _sender, gpointer self);
static void _gitg_preferences_history______lambda72_ (GitgPreferencesHistory* self);
static void __gitg_preferences_history______lambda72__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_preferences_history_finalize (GObject* obj);
static void _vala_gitg_preferences_history_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_preferences_history_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static gint gitg_preferences_history_round_val (gdouble val) {
	gint result = 0;
	gint ival = 0;
	gdouble _tmp0_ = 0.0;
	gdouble _tmp1_ = 0.0;
#line 58 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = val;
#line 58 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	ival = (gint) _tmp0_;
#line 60 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp1_ = val;
#line 60 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	result = ival + ((gint) ((_tmp1_ - ival) > 0.5));
#line 60 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return result;
#line 137 "gitg-preferences-history.c"
}


static void gitg_preferences_history_update_collapse_inactive_lanes (GitgPreferencesHistory* self, GSettings* settings) {
	gint val = 0;
	GtkScale* _tmp0_ = NULL;
	gdouble _tmp1_ = 0.0;
	gint _tmp2_ = 0;
	gint nval = 0;
	GSettings* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
#line 165 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_if_fail (self != NULL);
#line 165 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_if_fail (settings != NULL);
#line 167 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = self->priv->d_collapse_inactive_lanes;
#line 167 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp1_ = gtk_range_get_value ((GtkRange*) _tmp0_);
#line 167 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp2_ = gitg_preferences_history_round_val (_tmp1_);
#line 167 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	val = _tmp2_;
#line 168 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp3_ = settings;
#line 168 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp4_ = g_settings_get_int (_tmp3_, "collapse-inactive-lanes");
#line 168 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	nval = _tmp4_;
#line 170 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp5_ = val;
#line 170 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp6_ = nval;
#line 170 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	if (_tmp5_ != _tmp6_) {
#line 175 "gitg-preferences-history.c"
		GtkScale* _tmp7_ = NULL;
		gint _tmp8_ = 0;
#line 172 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		_tmp7_ = self->priv->d_collapse_inactive_lanes;
#line 172 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		_tmp8_ = nval;
#line 172 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		gtk_range_set_value ((GtkRange*) _tmp7_, (gdouble) _tmp8_);
#line 184 "gitg-preferences-history.c"
	}
}


GitgPreferencesHistory* gitg_preferences_history_construct (GType object_type) {
	GitgPreferencesHistory * self = NULL;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = (GitgPreferencesHistory*) g_object_new (object_type, NULL);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return self;
#line 195 "gitg-preferences-history.c"
}


GitgPreferencesHistory* gitg_preferences_history_new (void) {
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return gitg_preferences_history_construct (GITG_TYPE_PREFERENCES_HISTORY);
#line 202 "gitg-preferences-history.c"
}


const gchar* gitg_preferences_history_get_default_selection (GitgPreferencesHistory* self) {
	const gchar* result;
	gchar** _tmp12_ = NULL;
	gint _tmp12__length1 = 0;
	const gchar* _tmp13_ = NULL;
#line 139 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 213 "gitg-preferences-history.c"
	{
		gint i = 0;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		i = 0;
#line 218 "gitg-preferences-history.c"
		{
			gboolean _tmp0_ = FALSE;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
			_tmp0_ = TRUE;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
			while (TRUE) {
#line 225 "gitg-preferences-history.c"
				gint _tmp2_ = 0;
				GtkRadioButton** _tmp3_ = NULL;
				gint _tmp3__length1 = 0;
				GtkRadioButton** _tmp4_ = NULL;
				gint _tmp4__length1 = 0;
				gint _tmp5_ = 0;
				GtkRadioButton* _tmp6_ = NULL;
				gboolean _tmp7_ = FALSE;
				gboolean _tmp8_ = FALSE;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (!_tmp0_) {
#line 237 "gitg-preferences-history.c"
					gint _tmp1_ = 0;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp1_ = i;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					i = _tmp1_ + 1;
#line 243 "gitg-preferences-history.c"
				}
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp0_ = FALSE;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp2_ = i;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp3_ = self->priv->d_select_buttons;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp3__length1 = self->priv->d_select_buttons_length1;
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (!(_tmp2_ < _tmp3__length1)) {
#line 141 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					break;
#line 257 "gitg-preferences-history.c"
				}
#line 143 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp4_ = self->priv->d_select_buttons;
#line 143 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp4__length1 = self->priv->d_select_buttons_length1;
#line 143 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp5_ = i;
#line 143 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp6_ = _tmp4_[_tmp5_];
#line 143 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp7_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp6_);
#line 143 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp8_ = _tmp7_;
#line 143 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (_tmp8_) {
#line 273 "gitg-preferences-history.c"
					gchar** _tmp9_ = NULL;
					gint _tmp9__length1 = 0;
					gint _tmp10_ = 0;
					const gchar* _tmp11_ = NULL;
#line 145 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp9_ = self->priv->d_select_names;
#line 145 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp9__length1 = self->priv->d_select_names_length1;
#line 145 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp10_ = i;
#line 145 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp11_ = _tmp9_[_tmp10_];
#line 145 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					result = _tmp11_;
#line 145 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					return result;
#line 290 "gitg-preferences-history.c"
				}
			}
		}
	}
#line 149 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp12_ = self->priv->d_select_names;
#line 149 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp12__length1 = self->priv->d_select_names_length1;
#line 149 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp13_ = _tmp12_[0];
#line 149 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	result = _tmp13_;
#line 149 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return result;
#line 305 "gitg-preferences-history.c"
}


void gitg_preferences_history_set_default_selection (GitgPreferencesHistory* self, const gchar* value) {
#line 152 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_if_fail (self != NULL);
#line 312 "gitg-preferences-history.c"
	{
		gint i = 0;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		i = 0;
#line 317 "gitg-preferences-history.c"
		{
			gboolean _tmp0_ = FALSE;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
			_tmp0_ = TRUE;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
			while (TRUE) {
#line 324 "gitg-preferences-history.c"
				gint _tmp2_ = 0;
				GtkRadioButton** _tmp3_ = NULL;
				gint _tmp3__length1 = 0;
				gchar** _tmp4_ = NULL;
				gint _tmp4__length1 = 0;
				gint _tmp5_ = 0;
				const gchar* _tmp6_ = NULL;
				const gchar* _tmp7_ = NULL;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (!_tmp0_) {
#line 335 "gitg-preferences-history.c"
					gint _tmp1_ = 0;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp1_ = i;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					i = _tmp1_ + 1;
#line 341 "gitg-preferences-history.c"
				}
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp0_ = FALSE;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp2_ = i;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp3_ = self->priv->d_select_buttons;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp3__length1 = self->priv->d_select_buttons_length1;
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (!(_tmp2_ < _tmp3__length1)) {
#line 154 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					break;
#line 355 "gitg-preferences-history.c"
				}
#line 156 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp4_ = self->priv->d_select_names;
#line 156 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp4__length1 = self->priv->d_select_names_length1;
#line 156 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp5_ = i;
#line 156 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp6_ = _tmp4_[_tmp5_];
#line 156 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp7_ = value;
#line 156 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (g_strcmp0 (_tmp6_, _tmp7_) == 0) {
#line 369 "gitg-preferences-history.c"
					GtkRadioButton** _tmp8_ = NULL;
					gint _tmp8__length1 = 0;
					gint _tmp9_ = 0;
					GtkRadioButton* _tmp10_ = NULL;
#line 158 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp8_ = self->priv->d_select_buttons;
#line 158 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp8__length1 = self->priv->d_select_buttons_length1;
#line 158 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp9_ = i;
#line 158 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp10_ = _tmp8_[_tmp9_];
#line 158 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					gtk_toggle_button_set_active ((GtkToggleButton*) _tmp10_, TRUE);
#line 159 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					return;
#line 386 "gitg-preferences-history.c"
				}
			}
		}
	}
#line 152 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_object_notify ((GObject *) self, "default-selection");
#line 393 "gitg-preferences-history.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 180 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return self ? g_object_ref (self) : NULL;
#line 400 "gitg-preferences-history.c"
}


static GtkWidget* gitg_preferences_history_real_get_widget (GitgExtPreferences* base) {
	GtkWidget* result;
	GitgPreferencesHistory* self;
	GtkWidget* _tmp0_ = NULL;
#line 178 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = (GitgPreferencesHistory*) base;
#line 180 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = _g_object_ref0 ((GtkWidget*) self);
#line 180 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	result = _tmp0_;
#line 180 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return result;
#line 416 "gitg-preferences-history.c"
}


static gchar* gitg_preferences_history_real_get_id (GitgExtPreferences* base) {
	gchar* result;
	GitgPreferencesHistory* self;
	gchar* _tmp0_ = NULL;
#line 186 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = (GitgPreferencesHistory*) base;
#line 186 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/Preferences/History");
#line 186 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	result = _tmp0_;
#line 186 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return result;
#line 432 "gitg-preferences-history.c"
}


static gchar* gitg_preferences_history_real_get_display_name (GitgExtPreferences* base) {
	gchar* result;
	GitgPreferencesHistory* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 191 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = (GitgPreferencesHistory*) base;
#line 191 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = _ ("History");
#line 191 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 191 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	result = _tmp1_;
#line 191 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return result;
#line 451 "gitg-preferences-history.c"
}


static Block57Data* block57_data_ref (Block57Data* _data57_) {
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_atomic_int_inc (&_data57_->_ref_count_);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return _data57_;
#line 460 "gitg-preferences-history.c"
}


static void block57_data_unref (void * _userdata_) {
	Block57Data* _data57_;
	_data57_ = (Block57Data*) _userdata_;
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	if (g_atomic_int_dec_and_test (&_data57_->_ref_count_)) {
#line 469 "gitg-preferences-history.c"
		GitgPreferencesHistory* self;
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		self = _data57_->self;
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		_g_object_unref0 (_data57_->settings);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		_g_object_unref0 (self);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		g_slice_free (Block57Data, _data57_);
#line 479 "gitg-preferences-history.c"
	}
}


static void _gitg_preferences_history___lambda69_ (Block57Data* _data57_, GtkAdjustment* adj) {
	GitgPreferencesHistory* self;
	gboolean _tmp0_ = FALSE;
	gint nval = 0;
	GtkAdjustment* _tmp1_ = NULL;
	gdouble _tmp2_ = 0.0;
	gint _tmp3_ = 0;
	gint val = 0;
	GSettings* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
	gint _tmp7_ = 0;
	GtkAdjustment* _tmp10_ = NULL;
	gint _tmp11_ = 0;
#line 82 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = _data57_->self;
#line 82 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_if_fail (adj != NULL);
#line 83 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = self->priv->d_block;
#line 83 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	if (_tmp0_) {
#line 85 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		return;
#line 508 "gitg-preferences-history.c"
	}
#line 88 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp1_ = adj;
#line 88 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp2_ = gtk_adjustment_get_value (_tmp1_);
#line 88 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp3_ = gitg_preferences_history_round_val (_tmp2_);
#line 88 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	nval = _tmp3_;
#line 89 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp4_ = _data57_->settings;
#line 89 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp5_ = g_settings_get_int (_tmp4_, "collapse-inactive-lanes");
#line 89 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	val = _tmp5_;
#line 91 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp6_ = val;
#line 91 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp7_ = nval;
#line 91 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	if (_tmp6_ != _tmp7_) {
#line 530 "gitg-preferences-history.c"
		GSettings* _tmp8_ = NULL;
		gint _tmp9_ = 0;
#line 93 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		_tmp8_ = _data57_->settings;
#line 93 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		_tmp9_ = nval;
#line 93 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		g_settings_set_int (_tmp8_, "collapse-inactive-lanes", _tmp9_);
#line 539 "gitg-preferences-history.c"
	}
#line 96 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_block = TRUE;
#line 97 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp10_ = adj;
#line 97 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp11_ = nval;
#line 97 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_adjustment_set_value (_tmp10_, (gdouble) _tmp11_);
#line 98 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_block = FALSE;
#line 551 "gitg-preferences-history.c"
}


static void __gitg_preferences_history___lambda69__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 82 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_gitg_preferences_history___lambda69_ (self, _sender);
#line 558 "gitg-preferences-history.c"
}


static void _gitg_preferences_history___lambda70_ (Block57Data* _data57_, GSettings* s, const gchar* k) {
	GitgPreferencesHistory* self;
	GSettings* _tmp0_ = NULL;
#line 101 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = _data57_->self;
#line 101 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_if_fail (s != NULL);
#line 101 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_if_fail (k != NULL);
#line 102 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_block = TRUE;
#line 103 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = _data57_->settings;
#line 103 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gitg_preferences_history_update_collapse_inactive_lanes (self, _tmp0_);
#line 104 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_block = FALSE;
#line 579 "gitg-preferences-history.c"
}


static void __gitg_preferences_history___lambda70__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 101 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_gitg_preferences_history___lambda70_ (self, _sender, key);
#line 586 "gitg-preferences-history.c"
}


static void _gitg_preferences_history___lambda71_ (Block57Data* _data57_, GtkWidget* w) {
	GitgPreferencesHistory* self;
	GSettings* _tmp0_ = NULL;
	gulong _tmp1_ = 0UL;
#line 107 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = _data57_->self;
#line 107 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_return_if_fail (w != NULL);
#line 108 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = _data57_->settings;
#line 108 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp1_ = _data57_->monsig;
#line 108 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp1_);
#line 604 "gitg-preferences-history.c"
}


static void __gitg_preferences_history___lambda71__gtk_widget_destroy (GtkWidget* _sender, gpointer self) {
#line 107 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_gitg_preferences_history___lambda71_ (self, _sender);
#line 611 "gitg-preferences-history.c"
}


static void _gitg_preferences_history______lambda72_ (GitgPreferencesHistory* self) {
#line 132 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_object_notify ((GObject*) self, "default-selection");
#line 618 "gitg-preferences-history.c"
}


static void __gitg_preferences_history______lambda72__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 131 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_gitg_preferences_history______lambda72_ ((GitgPreferencesHistory*) self);
#line 625 "gitg-preferences-history.c"
}


static GObject * gitg_preferences_history_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgPreferencesHistory * self;
	Block57Data* _data57_;
	GSettings* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
	GtkCheckButton* _tmp2_ = NULL;
	GSettings* _tmp3_ = NULL;
	GtkCheckButton* _tmp4_ = NULL;
	GSettings* _tmp5_ = NULL;
	GtkCheckButton* _tmp6_ = NULL;
	GtkAdjustment* _tmp7_ = NULL;
	GSettings* _tmp8_ = NULL;
	gulong _tmp9_ = 0UL;
	GSettings* _tmp10_ = NULL;
	GtkRadioButton* _tmp11_ = NULL;
	GtkRadioButton* _tmp12_ = NULL;
	GtkRadioButton* _tmp13_ = NULL;
	GtkRadioButton* _tmp14_ = NULL;
	GtkRadioButton* _tmp15_ = NULL;
	GtkRadioButton* _tmp16_ = NULL;
	GtkRadioButton** _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	gchar** _tmp21_ = NULL;
	GSettings* _tmp22_ = NULL;
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	parent_class = G_OBJECT_CLASS (gitg_preferences_history_parent_class);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistory);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_data57_ = g_slice_new0 (Block57Data);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_data57_->_ref_count_ = 1;
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_data57_->self = g_object_ref (self);
#line 65 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp0_ = g_settings_new ("org.gnome.gitg.preferences.history");
#line 65 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_data57_->settings = _tmp0_;
#line 67 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp1_ = _data57_->settings;
#line 67 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp2_ = self->priv->d_collapse_inactive_lanes_enabled;
#line 67 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_settings_bind (_tmp1_, "collapse-inactive-lanes-enabled", (GObject*) _tmp2_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 72 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp3_ = _data57_->settings;
#line 72 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp4_ = self->priv->d_topological_order;
#line 72 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_settings_bind (_tmp3_, "topological-order", (GObject*) _tmp4_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 77 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp5_ = _data57_->settings;
#line 77 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp6_ = self->priv->d_mainline_head;
#line 77 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_settings_bind (_tmp5_, "mainline-head", (GObject*) _tmp6_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 82 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp7_ = self->priv->d_adjustment_collapse;
#line 82 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_signal_connect_data (_tmp7_, "value-changed", (GCallback) __gitg_preferences_history___lambda69__gtk_adjustment_value_changed, block57_data_ref (_data57_), (GClosureNotify) block57_data_unref, 0);
#line 101 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp8_ = _data57_->settings;
#line 101 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp9_ = g_signal_connect_data (_tmp8_, "changed::collapse-inactive-lanes", (GCallback) __gitg_preferences_history___lambda70__g_settings_changed, block57_data_ref (_data57_), (GClosureNotify) block57_data_unref, 0);
#line 101 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_data57_->monsig = _tmp9_;
#line 107 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_signal_connect_data ((GtkWidget*) self, "destroy", (GCallback) __gitg_preferences_history___lambda71__gtk_widget_destroy, block57_data_ref (_data57_), (GClosureNotify) block57_data_unref, 0);
#line 111 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp10_ = _data57_->settings;
#line 111 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gitg_preferences_history_update_collapse_inactive_lanes (self, _tmp10_);
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp11_ = self->priv->d_select_current_branch;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp13_ = self->priv->d_select_all_branches;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp14_ = _g_object_ref0 (_tmp13_);
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp15_ = self->priv->d_select_all_commits;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp16_ = _g_object_ref0 (_tmp15_);
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp17_ = g_new0 (GtkRadioButton*, 3 + 1);
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp17_[0] = _tmp12_;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp17_[1] = _tmp14_;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp17_[2] = _tmp16_;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_buttons = (_vala_array_free (self->priv->d_select_buttons, self->priv->d_select_buttons_length1, (GDestroyNotify) g_object_unref), NULL);
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_buttons = _tmp17_;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_buttons_length1 = 3;
#line 113 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->_d_select_buttons_size_ = self->priv->d_select_buttons_length1;
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp18_ = g_strdup ("current-branch");
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp19_ = g_strdup ("all-branches");
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp20_ = g_strdup ("all-commits");
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp21_ = g_new0 (gchar*, 3 + 1);
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp21_[0] = _tmp18_;
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp21_[1] = _tmp19_;
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp21_[2] = _tmp20_;
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_names = (_vala_array_free (self->priv->d_select_names, self->priv->d_select_names_length1, (GDestroyNotify) g_free), NULL);
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_names = _tmp21_;
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_names_length1 = 3;
#line 119 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->_d_select_names_size_ = self->priv->d_select_names_length1;
#line 125 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_tmp22_ = _data57_->settings;
#line 125 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_settings_bind (_tmp22_, "default-selection", (GObject*) self, "default-selection", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 761 "gitg-preferences-history.c"
	{
		gint i = 0;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		i = 0;
#line 766 "gitg-preferences-history.c"
		{
			gboolean _tmp23_ = FALSE;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
			_tmp23_ = TRUE;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
			while (TRUE) {
#line 773 "gitg-preferences-history.c"
				gint _tmp25_ = 0;
				GtkRadioButton** _tmp26_ = NULL;
				gint _tmp26__length1 = 0;
				GtkRadioButton** _tmp27_ = NULL;
				gint _tmp27__length1 = 0;
				gint _tmp28_ = 0;
				GtkRadioButton* _tmp29_ = NULL;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (!_tmp23_) {
#line 783 "gitg-preferences-history.c"
					gint _tmp24_ = 0;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					_tmp24_ = i;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					i = _tmp24_ + 1;
#line 789 "gitg-preferences-history.c"
				}
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp23_ = FALSE;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp25_ = i;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp26_ = self->priv->d_select_buttons;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp26__length1 = self->priv->d_select_buttons_length1;
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				if (!(_tmp25_ < _tmp26__length1)) {
#line 130 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
					break;
#line 803 "gitg-preferences-history.c"
				}
#line 131 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp27_ = self->priv->d_select_buttons;
#line 131 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp27__length1 = self->priv->d_select_buttons_length1;
#line 131 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp28_ = i;
#line 131 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				_tmp29_ = _tmp27_[_tmp28_];
#line 131 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
				g_signal_connect_object ((GObject*) _tmp29_, "notify::active", (GCallback) __gitg_preferences_history______lambda72__g_object_notify, self, 0);
#line 815 "gitg-preferences-history.c"
			}
		}
	}
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	block57_data_unref (_data57_);
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_data57_ = NULL;
#line 63 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	return obj;
#line 825 "gitg-preferences-history.c"
}


static void gitg_preferences_history_class_init (GitgPreferencesHistoryClass * klass) {
	gint GitgPreferencesHistory_private_offset;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gitg_preferences_history_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_type_class_add_private (klass, sizeof (GitgPreferencesHistoryPrivate));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_preferences_history_get_property;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_preferences_history_set_property;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_preferences_history_constructor;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_preferences_history_finalize;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_HISTORY_DEFAULT_SELECTION, g_param_spec_string ("default-selection", "default-selection", "default-selection", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_HISTORY_WIDGET, g_param_spec_object ("widget", "widget", "widget", gtk_widget_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_HISTORY_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_HISTORY_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	GitgPreferencesHistory_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-preferences-history.ui");
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "collapse_inactive_lanes_enabled", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_collapse_inactive_lanes_enabled));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "adjustment_collapse", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_adjustment_collapse));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "collapse_inactive_lanes", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_collapse_inactive_lanes));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "topological_order", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_topological_order));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "mainline_head", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_mainline_head));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "select_current_branch", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_select_current_branch));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "select_all_branches", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_select_all_branches));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "select_all_commits", FALSE, GitgPreferencesHistory_private_offset + G_STRUCT_OFFSET (GitgPreferencesHistoryPrivate, d_select_all_commits));
#line 871 "gitg-preferences-history.c"
}


static void gitg_preferences_history_gitg_ext_preferences_interface_init (GitgExtPreferencesIface * iface) {
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gitg_preferences_history_gitg_ext_preferences_parent_iface = g_type_interface_peek_parent (iface);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	iface->get_widget = gitg_preferences_history_real_get_widget;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	iface->get_id = gitg_preferences_history_real_get_id;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	iface->get_display_name = gitg_preferences_history_real_get_display_name;
#line 884 "gitg-preferences-history.c"
}


static void gitg_preferences_history_instance_init (GitgPreferencesHistory * self) {
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv = GITG_PREFERENCES_HISTORY_GET_PRIVATE (self);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 893 "gitg-preferences-history.c"
}


static void gitg_preferences_history_finalize (GObject* obj) {
	GitgPreferencesHistory * self;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistory);
#line 31 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_collapse_inactive_lanes_enabled);
#line 34 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_adjustment_collapse);
#line 36 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_collapse_inactive_lanes);
#line 39 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_topological_order);
#line 42 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_mainline_head);
#line 45 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_select_current_branch);
#line 48 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_select_all_branches);
#line 51 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	_g_object_unref0 (self->priv->d_select_all_commits);
#line 53 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_buttons = (_vala_array_free (self->priv->d_select_buttons, self->priv->d_select_buttons_length1, (GDestroyNotify) g_object_unref), NULL);
#line 54 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	self->priv->d_select_names = (_vala_array_free (self->priv->d_select_names, self->priv->d_select_names_length1, (GDestroyNotify) g_free), NULL);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	G_OBJECT_CLASS (gitg_preferences_history_parent_class)->finalize (obj);
#line 923 "gitg-preferences-history.c"
}


GType gitg_preferences_history_get_type (void) {
	static volatile gsize gitg_preferences_history_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_preferences_history_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgPreferencesHistoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_preferences_history_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgPreferencesHistory), 0, (GInstanceInitFunc) gitg_preferences_history_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_preferences_info = { (GInterfaceInitFunc) gitg_preferences_history_gitg_ext_preferences_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_preferences_history_type_id;
		gitg_preferences_history_type_id = g_type_register_static (gtk_grid_get_type (), "GitgPreferencesHistory", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_preferences_history_type_id, GITG_EXT_TYPE_PREFERENCES, &gitg_ext_preferences_info);
		g_once_init_leave (&gitg_preferences_history_type_id__volatile, gitg_preferences_history_type_id);
	}
	return gitg_preferences_history_type_id__volatile;
}


static void _vala_gitg_preferences_history_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgPreferencesHistory * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistory);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	switch (property_id) {
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		case GITG_PREFERENCES_HISTORY_DEFAULT_SELECTION:
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		g_value_set_string (value, gitg_preferences_history_get_default_selection (self));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		case GITG_PREFERENCES_HISTORY_WIDGET:
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		g_value_take_object (value, gitg_ext_preferences_get_widget ((GitgExtPreferences*) self));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		case GITG_PREFERENCES_HISTORY_ID:
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		g_value_take_string (value, gitg_ext_preferences_get_id ((GitgExtPreferences*) self));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		case GITG_PREFERENCES_HISTORY_DISPLAY_NAME:
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		g_value_take_string (value, gitg_ext_preferences_get_display_name ((GitgExtPreferences*) self));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		break;
#line 970 "gitg-preferences-history.c"
		default:
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		break;
#line 976 "gitg-preferences-history.c"
	}
}


static void _vala_gitg_preferences_history_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgPreferencesHistory * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistory);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
	switch (property_id) {
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		case GITG_PREFERENCES_HISTORY_DEFAULT_SELECTION:
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		gitg_preferences_history_set_default_selection (self, g_value_get_string (value));
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		break;
#line 992 "gitg-preferences-history.c"
		default:
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/devel/gitg/gitg/preferences/gitg-preferences-history.vala"
		break;
#line 998 "gitg-preferences-history.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



