/* gitg-diff.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-diff.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 "libgitg-ext/libgitg-ext.h"
#include "libgitg/libgitg.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <libgit2-glib/ggit.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <libpeas/peas.h>


#define GITG_DIFF_TYPE_PANEL (gitg_diff_panel_get_type ())
#define GITG_DIFF_PANEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_DIFF_TYPE_PANEL, GitgDiffPanel))
#define GITG_DIFF_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_DIFF_TYPE_PANEL, GitgDiffPanelClass))
#define GITG_DIFF_IS_PANEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_DIFF_TYPE_PANEL))
#define GITG_DIFF_IS_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_DIFF_TYPE_PANEL))
#define GITG_DIFF_PANEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_DIFF_TYPE_PANEL, GitgDiffPanelClass))

typedef struct _GitgDiffPanel GitgDiffPanel;
typedef struct _GitgDiffPanelClass GitgDiffPanelClass;
typedef struct _GitgDiffPanelPrivate GitgDiffPanelPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _gitg_when_mapped_unref0(var) ((var == NULL) ? NULL : (var = (gitg_when_mapped_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
typedef struct _Block2Data Block2Data;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _GitgDiffPanel {
	GObject parent_instance;
	GitgDiffPanelPrivate * priv;
};

struct _GitgDiffPanelClass {
	GObjectClass parent_class;
};

struct _GitgDiffPanelPrivate {
	GitgExtApplication* _application;
	GitgExtHistory* _history;
	GitgDiffView* d_diff;
	GitgWhenMapped* d_whenMapped;
	gulong d_selection_changed_id;
};

struct _Block1Data {
	int _ref_count_;
	GitgDiffPanel* self;
	gboolean hasset;
};

struct _Block2Data {
	int _ref_count_;
	Block1Data * _data1_;
	GitgCommit* c;
};


static gpointer gitg_diff_panel_parent_class = NULL;
static GitgExtUIElementIface* gitg_diff_panel_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtHistoryPanelIface* gitg_diff_panel_gitg_ext_history_panel_parent_iface = NULL;
static GType gitg_diff_panel_type_id = 0;

GType gitg_diff_panel_get_type (void) G_GNUC_CONST;
GType gitg_diff_panel_register_type (GTypeModule * module);
#define GITG_DIFF_PANEL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_DIFF_TYPE_PANEL, GitgDiffPanelPrivate))
enum  {
	GITG_DIFF_PANEL_DUMMY_PROPERTY,
	GITG_DIFF_PANEL_APPLICATION,
	GITG_DIFF_PANEL_HISTORY,
	GITG_DIFF_PANEL_ID,
	GITG_DIFF_PANEL_AVAILABLE,
	GITG_DIFF_PANEL_DISPLAY_NAME,
	GITG_DIFF_PANEL_DESCRIPTION,
	GITG_DIFF_PANEL_ICON,
	GITG_DIFF_PANEL_WIDGET,
	GITG_DIFF_PANEL_ENABLED
};
#define GITG_DIFF_PANEL_version VERSION
static void gitg_diff_panel_real_dispose (GObject* base);
static void gitg_diff_panel_on_selection_changed (GitgDiffPanel* self, GitgExtHistory* history);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static gboolean __lambda4_ (Block1Data* _data1_, GgitCommit* commit);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static void ___lambda5_ (Block2Data* _data2_);
static void ____lambda5__gitg_when_mapped_on_mapped (gpointer self);
static gboolean ___lambda4__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self);
static gint gitg_diff_panel_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other);
GitgDiffPanel* gitg_diff_panel_new (void);
GitgDiffPanel* gitg_diff_panel_construct (GType object_type);
static GObject * gitg_diff_panel_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed (GitgExtHistory* _sender, gpointer self);
static void gitg_diff_panel_finalize (GObject* obj);
static void _vala_gitg_diff_panel_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_diff_panel_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
void peas_register_types (GTypeModule* module);


static void gitg_diff_panel_real_dispose (GObject* base) {
	GitgDiffPanel * self;
	gboolean _tmp0_ = FALSE;
	GitgExtHistory* _tmp1_ = NULL;
	GitgExtHistory* _tmp2_ = NULL;
	GitgExtHistory* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 89 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _tmp1_;
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = _tmp2_;
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = _tmp3_ != NULL;
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp3_);
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp4_) {
#line 147 "gitg-diff.c"
		gulong _tmp5_ = 0UL;
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp5_ = self->priv->d_selection_changed_id;
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = _tmp5_ != ((gulong) 0);
#line 153 "gitg-diff.c"
	} else {
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = FALSE;
#line 157 "gitg-diff.c"
	}
#line 91 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp0_) {
#line 161 "gitg-diff.c"
		GitgExtHistory* _tmp6_ = NULL;
		GitgExtHistory* _tmp7_ = NULL;
		GitgExtHistory* _tmp8_ = NULL;
		gulong _tmp9_ = 0UL;
#line 93 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp6_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 93 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp7_ = _tmp6_;
#line 93 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp8_ = _tmp7_;
#line 93 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp9_ = self->priv->d_selection_changed_id;
#line 93 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_signal_handler_disconnect ((GObject*) _tmp8_, _tmp9_);
#line 93 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_tmp8_);
#line 94 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		self->priv->d_selection_changed_id = (gulong) 0;
#line 180 "gitg-diff.c"
	}
#line 97 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (gitg_diff_panel_parent_class)->dispose (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject));
#line 184 "gitg-diff.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return _data1_;
#line 193 "gitg-diff.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 202 "gitg-diff.c"
		GitgDiffPanel* self;
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		self = _data1_->self;
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (self);
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_slice_free (Block1Data, _data1_);
#line 210 "gitg-diff.c"
	}
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return _data2_;
#line 220 "gitg-diff.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 229 "gitg-diff.c"
		GitgDiffPanel* self;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		self = _data2_->_data1_->self;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_data2_->c);
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		block1_data_unref (_data2_->_data1_);
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_data2_->_data1_ = NULL;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_slice_free (Block2Data, _data2_);
#line 241 "gitg-diff.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 130 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return self ? g_object_ref (self) : NULL;
#line 249 "gitg-diff.c"
}


static void ___lambda5_ (Block2Data* _data2_) {
	Block1Data* _data1_;
	GitgDiffPanel* self;
	GitgDiffView* _tmp0_ = NULL;
	GitgCommit* _tmp1_ = NULL;
#line 134 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = _data2_->_data1_;
#line 134 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = _data1_->self;
#line 135 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->d_diff;
#line 135 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _data2_->c;
#line 135 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_view_set_commit (_tmp0_, _tmp1_);
#line 136 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data1_->hasset = TRUE;
#line 270 "gitg-diff.c"
}


static void ____lambda5__gitg_when_mapped_on_mapped (gpointer self) {
#line 134 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	___lambda5_ (self);
#line 277 "gitg-diff.c"
}


static gboolean __lambda4_ (Block1Data* _data1_, GgitCommit* commit) {
	GitgDiffPanel* self;
	gboolean result = FALSE;
	Block2Data* _data2_;
	GgitCommit* _tmp0_ = NULL;
	GitgCommit* _tmp1_ = NULL;
	GitgCommit* _tmp2_ = NULL;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = _data1_->self;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_return_val_if_fail (commit != NULL, FALSE);
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data2_->_ref_count_ = 1;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data2_->_data1_ = block1_data_ref (_data1_);
#line 130 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = commit;
#line 130 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp0_) : NULL);
#line 130 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data2_->c = _tmp1_;
#line 132 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _data2_->c;
#line 132 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp2_ != NULL) {
#line 308 "gitg-diff.c"
		GitgWhenMapped* _tmp3_ = NULL;
#line 134 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp3_ = self->priv->d_whenMapped;
#line 134 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		gitg_when_mapped_update (_tmp3_, ____lambda5__gitg_when_mapped_on_mapped, block2_data_ref (_data2_), block2_data_unref, (GObject*) self);
#line 139 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		result = FALSE;
#line 139 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		block2_data_unref (_data2_);
#line 139 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_data2_ = NULL;
#line 139 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 322 "gitg-diff.c"
	}
#line 142 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 142 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	block2_data_unref (_data2_);
#line 142 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data2_ = NULL;
#line 142 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 332 "gitg-diff.c"
}


static gboolean ___lambda4__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self) {
	gboolean result;
	result = __lambda4_ (self, object);
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 341 "gitg-diff.c"
}


static void gitg_diff_panel_on_selection_changed (GitgDiffPanel* self, GitgExtHistory* history) {
	Block1Data* _data1_;
	GitgExtHistory* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (self != NULL);
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (history != NULL);
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data1_->_ref_count_ = 1;
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data1_->self = g_object_ref (self);
#line 127 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data1_->hasset = FALSE;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = history;
#line 129 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_ext_history_foreach_selected (_tmp0_, ___lambda4__gitg_ext_foreach_commit_selection_func, _data1_);
#line 145 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _data1_->hasset;
#line 145 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	if (!_tmp1_) {
#line 369 "gitg-diff.c"
		GitgDiffView* _tmp2_ = NULL;
#line 147 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		_tmp2_ = self->priv->d_diff;
#line 147 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		gitg_diff_view_set_commit (_tmp2_, NULL);
#line 375 "gitg-diff.c"
	}
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	block1_data_unref (_data1_);
#line 125 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = NULL;
#line 381 "gitg-diff.c"
}


static gint gitg_diff_panel_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other) {
	GitgDiffPanel * self;
	gint result = 0;
	GitgExtUIElement* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 161 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 161 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 164 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = other;
#line 164 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = gitg_ext_ui_element_get_id (_tmp0_);
#line 164 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _tmp1_;
#line 164 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = _tmp2_;
#line 164 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = g_strcmp0 (_tmp3_, "/org/gnome/gitg/Panels/Files") == 0;
#line 164 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_free0 (_tmp3_);
#line 164 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp4_) {
#line 166 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		result = -1;
#line 166 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 415 "gitg-diff.c"
	} else {
#line 170 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		result = 0;
#line 170 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 421 "gitg-diff.c"
	}
}


GitgDiffPanel* gitg_diff_panel_construct (GType object_type) {
	GitgDiffPanel * self = NULL;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) g_object_new (object_type, NULL);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return self;
#line 432 "gitg-diff.c"
}


GitgDiffPanel* gitg_diff_panel_new (void) {
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return gitg_diff_panel_construct (GITG_DIFF_TYPE_PANEL);
#line 439 "gitg-diff.c"
}


static GitgExtApplication* gitg_diff_panel_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgDiffPanel* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->_application;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 458 "gitg-diff.c"
}


static void gitg_diff_panel_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgDiffPanel* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = value;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_application);
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self->priv->_application = _tmp1_;
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_notify ((GObject *) self, "application");
#line 478 "gitg-diff.c"
}


static GitgExtHistory* gitg_diff_panel_real_get_history (GitgExtHistoryPanel* base) {
	GitgExtHistory* result;
	GitgDiffPanel* self;
	GitgExtHistory* _tmp0_ = NULL;
	GitgExtHistory* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->_history;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 497 "gitg-diff.c"
}


static void gitg_diff_panel_real_set_history (GitgExtHistoryPanel* base, GitgExtHistory* value) {
	GitgDiffPanel* self;
	GitgExtHistory* _tmp0_ = NULL;
	GitgExtHistory* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_history);
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self->priv->_history = _tmp1_;
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_notify ((GObject *) self, "history");
#line 517 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	gchar* _tmp0_ = NULL;
#line 102 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 102 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/Panels/Diff");
#line 102 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp0_;
#line 102 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 533 "gitg-diff.c"
}


static gboolean gitg_diff_panel_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgDiffPanel* self;
#line 107 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 107 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 107 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 546 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 112 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 112 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = _ ("Diff");
#line 112 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 112 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 112 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 565 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 117 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 117 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = _ ("Show the changes introduced by the selected commit");
#line 117 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 117 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 117 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 584 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_icon (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	gchar* _tmp0_ = NULL;
#line 122 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 122 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = g_strdup ("diff-symbolic");
#line 122 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp0_;
#line 122 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 600 "gitg-diff.c"
}


static GtkWidget* gitg_diff_panel_real_get_widget (GitgExtUIElement* base) {
	GtkWidget* result;
	GitgDiffPanel* self;
	GitgDiffView* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
#line 153 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 153 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->d_diff;
#line 153 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 ((GtkWidget*) _tmp0_);
#line 153 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 153 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 619 "gitg-diff.c"
}


static gboolean gitg_diff_panel_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgDiffPanel* self;
#line 158 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 158 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 158 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 632 "gitg-diff.c"
}


static void _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed (GitgExtHistory* _sender, gpointer self) {
#line 85 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_on_selection_changed ((GitgDiffPanel*) self, _sender);
#line 639 "gitg-diff.c"
}


static GObject * gitg_diff_panel_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgDiffPanel * self;
	GitgDiffView* _tmp0_ = NULL;
	GitgDiffView* _tmp1_ = NULL;
	GitgDiffView* _tmp2_ = NULL;
	GitgExtApplication* _tmp3_ = NULL;
	GitgExtApplication* _tmp4_ = NULL;
	GitgExtApplication* _tmp5_ = NULL;
	GitgRepository* _tmp6_ = NULL;
	GitgRepository* _tmp7_ = NULL;
	GitgRepository* _tmp8_ = NULL;
	GitgDiffView* _tmp9_ = NULL;
	GSettings* settings = NULL;
	GSettings* _tmp10_ = NULL;
	GSettings* _tmp11_ = NULL;
	GitgDiffView* _tmp12_ = NULL;
	GSettings* _tmp13_ = NULL;
	GitgDiffView* _tmp14_ = NULL;
	GSettings* _tmp15_ = NULL;
	GitgDiffView* _tmp16_ = NULL;
	GSettings* _tmp17_ = NULL;
	GitgDiffView* _tmp18_ = NULL;
	GSettings* _tmp19_ = NULL;
	GitgDiffView* _tmp20_ = NULL;
	GSettings* _tmp21_ = NULL;
	GSettings* _tmp22_ = NULL;
	GitgDiffView* _tmp23_ = NULL;
	GSettings* _tmp24_ = NULL;
	GitgDiffView* _tmp25_ = NULL;
	GitgDiffView* _tmp26_ = NULL;
	GitgWhenMapped* _tmp27_ = NULL;
	GitgExtHistory* _tmp28_ = NULL;
	GitgExtHistory* _tmp29_ = NULL;
	GitgExtHistory* _tmp30_ = NULL;
	gulong _tmp31_ = 0UL;
	GitgExtHistory* _tmp32_ = NULL;
	GitgExtHistory* _tmp33_ = NULL;
	GitgExtHistory* _tmp34_ = NULL;
#line 35 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	parent_class = G_OBJECT_CLASS (gitg_diff_panel_parent_class);
#line 35 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 35 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_DIFF_TYPE_PANEL, GitgDiffPanel);
#line 37 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = gitg_diff_view_new ();
#line 37 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_ref_sink (_tmp0_);
#line 37 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->d_diff);
#line 37 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_diff = _tmp0_;
#line 39 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = self->priv->d_diff;
#line 39 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_view_set_show_parents (_tmp1_, TRUE);
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = self->priv->d_diff;
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = _tmp3_;
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp5_ = _tmp4_;
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp6_ = gitg_ext_application_get_repository (_tmp5_);
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp7_ = _tmp6_;
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp8_ = _tmp7_;
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_view_set_repository (_tmp2_, _tmp8_);
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp8_);
#line 40 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp5_);
#line 42 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp9_ = self->priv->d_diff;
#line 42 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gtk_widget_show ((GtkWidget*) _tmp9_);
#line 44 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp10_ = g_settings_new ("org.gnome.gitg.preferences.diff");
#line 44 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	settings = _tmp10_;
#line 46 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp11_ = settings;
#line 46 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp12_ = self->priv->d_diff;
#line 46 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp11_, "ignore-whitespace", (GObject*) _tmp12_, "ignore-whitespace", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 51 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp13_ = settings;
#line 51 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp14_ = self->priv->d_diff;
#line 51 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp13_, "changes-inline", (GObject*) _tmp14_, "changes-inline", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 56 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp15_ = settings;
#line 56 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp16_ = self->priv->d_diff;
#line 56 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp15_, "context-lines", (GObject*) _tmp16_, "context-lines", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 61 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp17_ = settings;
#line 61 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp18_ = self->priv->d_diff;
#line 61 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp17_, "tab-width", (GObject*) _tmp18_, "tab-width", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 66 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp19_ = settings;
#line 66 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp20_ = self->priv->d_diff;
#line 66 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp19_, "wrap", (GObject*) _tmp20_, "wrap-lines", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 71 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp21_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 71 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (settings);
#line 71 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	settings = _tmp21_;
#line 73 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp22_ = settings;
#line 73 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp23_ = self->priv->d_diff;
#line 73 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp22_, "use-gravatar", (GObject*) _tmp23_, "use-gravatar", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 78 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp24_ = settings;
#line 78 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp25_ = self->priv->d_diff;
#line 78 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp24_, "enable-diff-highlighting", (GObject*) _tmp25_, "highlight", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 83 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp26_ = self->priv->d_diff;
#line 83 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp27_ = gitg_when_mapped_new ((GtkWidget*) _tmp26_);
#line 83 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_gitg_when_mapped_unref0 (self->priv->d_whenMapped);
#line 83 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_whenMapped = _tmp27_;
#line 85 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp28_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 85 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp29_ = _tmp28_;
#line 85 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp30_ = _tmp29_;
#line 85 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp31_ = g_signal_connect_object (_tmp30_, "selection-changed", (GCallback) _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed, self, 0);
#line 85 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_selection_changed_id = _tmp31_;
#line 85 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp30_);
#line 86 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp32_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 86 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp33_ = _tmp32_;
#line 86 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp34_ = _tmp33_;
#line 86 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_on_selection_changed (self, _tmp34_);
#line 86 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp34_);
#line 35 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (settings);
#line 35 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	return obj;
#line 811 "gitg-diff.c"
}


static void gitg_diff_panel_class_init (GitgDiffPanelClass * klass) {
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffPanelPrivate));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	((GObjectClass *) klass)->dispose = gitg_diff_panel_real_dispose;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_panel_get_property;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_panel_set_property;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_diff_panel_constructor;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_panel_finalize;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_HISTORY, g_param_spec_object ("history", "history", "history", GITG_EXT_TYPE_HISTORY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_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 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_AVAILABLE, g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_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 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_ICON, g_param_spec_string ("icon", "icon", "icon", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_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 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_PANEL_ENABLED, g_param_spec_boolean ("enabled", "enabled", "enabled", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 848 "gitg-diff.c"
}


static void gitg_diff_panel_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->negotiate_order = (gint (*)(GitgExtUIElement*, GitgExtUIElement*)) gitg_diff_panel_real_negotiate_order;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_application = gitg_diff_panel_real_get_application;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->set_application = gitg_diff_panel_real_set_application;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_id = gitg_diff_panel_real_get_id;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_available = gitg_diff_panel_real_get_available;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_display_name = gitg_diff_panel_real_get_display_name;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_description = gitg_diff_panel_real_get_description;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_icon = gitg_diff_panel_real_get_icon;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_widget = gitg_diff_panel_real_get_widget;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_enabled = gitg_diff_panel_real_get_enabled;
#line 875 "gitg-diff.c"
}


static void gitg_diff_panel_gitg_ext_history_panel_interface_init (GitgExtHistoryPanelIface * iface) {
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_gitg_ext_history_panel_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->get_history = gitg_diff_panel_real_get_history;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	iface->set_history = gitg_diff_panel_real_set_history;
#line 886 "gitg-diff.c"
}


static void gitg_diff_panel_instance_init (GitgDiffPanel * self) {
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self->priv = GITG_DIFF_PANEL_GET_PRIVATE (self);
#line 893 "gitg-diff.c"
}


static void gitg_diff_panel_finalize (GObject* obj) {
	GitgDiffPanel * self;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_DIFF_TYPE_PANEL, GitgDiffPanel);
#line 27 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_history);
#line 30 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->d_diff);
#line 31 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_gitg_when_mapped_unref0 (self->priv->d_whenMapped);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (gitg_diff_panel_parent_class)->finalize (obj);
#line 911 "gitg-diff.c"
}


GType gitg_diff_panel_get_type (void) {
	return gitg_diff_panel_type_id;
}


GType gitg_diff_panel_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (GitgDiffPanelClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_panel_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffPanel), 0, (GInstanceInitFunc) gitg_diff_panel_instance_init, NULL };
	static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_diff_panel_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo gitg_ext_history_panel_info = { (GInterfaceInitFunc) gitg_diff_panel_gitg_ext_history_panel_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	gitg_diff_panel_type_id = g_type_module_register_type (module, G_TYPE_OBJECT, "GitgDiffPanel", &g_define_type_info, 0);
	g_type_module_add_interface (module, gitg_diff_panel_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
	g_type_module_add_interface (module, gitg_diff_panel_type_id, GITG_EXT_TYPE_HISTORY_PANEL, &gitg_ext_history_panel_info);
	return gitg_diff_panel_type_id;
}


static void _vala_gitg_diff_panel_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffPanel * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_DIFF_TYPE_PANEL, GitgDiffPanel);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_APPLICATION:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_HISTORY:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_object (value, gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_ID:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_AVAILABLE:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_DISPLAY_NAME:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_DESCRIPTION:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_ICON:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_icon ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_WIDGET:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_widget ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_ENABLED:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 990 "gitg-diff.c"
		default:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 996 "gitg-diff.c"
	}
}


static void _vala_gitg_diff_panel_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffPanel * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_DIFF_TYPE_PANEL, GitgDiffPanel);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_APPLICATION:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_HISTORY:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		gitg_ext_history_panel_set_history ((GitgExtHistoryPanel*) self, g_value_get_object (value));
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 1018 "gitg-diff.c"
		default:
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 1024 "gitg-diff.c"
	}
}


void peas_register_types (GTypeModule* module) {
	PeasObjectModule* mod = NULL;
	GTypeModule* _tmp0_ = NULL;
	PeasObjectModule* _tmp1_ = NULL;
#line 177 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (module != NULL);
#line 177 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_register_type (module);
#line 179 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = module;
#line 179 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, peas_object_module_get_type ()) ? ((PeasObjectModule*) _tmp0_) : NULL);
#line 179 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	mod = _tmp1_;
#line 181 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	peas_object_module_register_extension_type (mod, GITG_EXT_TYPE_HISTORY_PANEL, GITG_DIFF_TYPE_PANEL);
#line 177 "/home/jesse/dev/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (mod);
#line 1047 "gitg-diff.c"
}



