/* gitg-diff.c generated by valac 0.27.1.26-9b1a5-dirty, 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 <gtk/gtk.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 <gio/gio.h>
#include <stdio.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;
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

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

struct _GitgDiffPanelClass {
	GObjectClass parent_class;
};

struct _GitgDiffPanelPrivate {
	GitgExtApplication* _application;
	GitgExtHistory* _history;
	GtkScrolledWindow* d_sw;
	GitgDiffView* d_diff;
	GitgWhenMapped* d_whenMapped;
};

struct _Block1Data {
	int _ref_count_;
	GitgDiffPanel* self;
	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_on_selection_changed (GitgDiffPanel* self, GitgExtHistory* history);
static gboolean __lambda4_ (GitgDiffPanel* self, GgitCommit* commit);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static void ___lambda5_ (Block1Data* _data1_);
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___lambda6_ (GitgDiffPanel* self, const gchar* id);
static void _vala_GgitOId_free (GgitOId* self);
static void __gitg_diff_panel___lambda6__gitg_diff_view_request_select_commit (GitgDiffView* _sender, const gchar* id, 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 Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return _data1_;
#line 127 "gitg-diff.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 136 "gitg-diff.c"
		GitgDiffPanel* self;
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		self = _data1_->self;
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_data1_->c);
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (self);
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_slice_free (Block1Data, _data1_);
#line 146 "gitg-diff.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 122 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return self ? g_object_ref (self) : NULL;
#line 154 "gitg-diff.c"
}


static void ___lambda5_ (Block1Data* _data1_) {
	GitgDiffPanel* self;
	GitgDiffView* _tmp0_ = NULL;
	GitgCommit* _tmp1_ = NULL;
#line 126 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = _data1_->self;
#line 127 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->d_diff;
#line 127 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _data1_->c;
#line 127 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_view_set_commit (_tmp0_, _tmp1_);
#line 170 "gitg-diff.c"
}


static void ____lambda5__gitg_when_mapped_on_mapped (gpointer self) {
#line 126 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	___lambda5_ (self);
#line 177 "gitg-diff.c"
}


static gboolean __lambda4_ (GitgDiffPanel* self, GgitCommit* commit) {
	gboolean result = FALSE;
	Block1Data* _data1_;
	GgitCommit* _tmp0_ = NULL;
	GitgCommit* _tmp1_ = NULL;
	GitgCommit* _tmp2_ = NULL;
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_return_val_if_fail (commit != NULL, FALSE);
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_data1_->_ref_count_ = 1;
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_data1_->self = g_object_ref (self);
#line 122 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = commit;
#line 122 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp0_) : NULL);
#line 122 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_data1_->c = _tmp1_;
#line 124 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _data1_->c;
#line 124 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp2_ != NULL) {
#line 205 "gitg-diff.c"
		GitgWhenMapped* _tmp3_ = NULL;
#line 126 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp3_ = self->priv->d_whenMapped;
#line 126 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		gitg_when_mapped_update (_tmp3_, ____lambda5__gitg_when_mapped_on_mapped, block1_data_ref (_data1_), block1_data_unref, (GObject*) self);
#line 130 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		result = FALSE;
#line 130 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		block1_data_unref (_data1_);
#line 130 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_data1_ = NULL;
#line 130 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 219 "gitg-diff.c"
	}
#line 133 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 133 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	block1_data_unref (_data1_);
#line 133 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = NULL;
#line 133 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 229 "gitg-diff.c"
}


static gboolean ___lambda4__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self) {
	gboolean result;
	result = __lambda4_ ((GitgDiffPanel*) self, object);
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 238 "gitg-diff.c"
}


static void gitg_diff_panel_on_selection_changed (GitgDiffPanel* self, GitgExtHistory* history) {
	GitgExtHistory* _tmp0_ = NULL;
#line 119 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (self != NULL);
#line 119 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (history != NULL);
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = history;
#line 121 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_ext_history_foreach_selected (_tmp0_, ___lambda4__gitg_ext_foreach_commit_selection_func, self);
#line 252 "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 147 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 147 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 150 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = other;
#line 150 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = gitg_ext_ui_element_get_id (_tmp0_);
#line 150 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _tmp1_;
#line 150 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = _tmp2_;
#line 150 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = g_strcmp0 (_tmp3_, "/org/gnome/gitg/Panels/Files") == 0;
#line 150 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_free0 (_tmp3_);
#line 150 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp4_) {
#line 152 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		result = -1;
#line 152 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 286 "gitg-diff.c"
	} else {
#line 156 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		result = 0;
#line 156 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 292 "gitg-diff.c"
	}
}


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


GitgDiffPanel* gitg_diff_panel_new (void) {
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return gitg_diff_panel_construct (GITG_DIFF_TYPE_PANEL);
#line 310 "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/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->_application;
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 329 "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/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = value;
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_application);
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self->priv->_application = _tmp1_;
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_object_notify ((GObject *) self, "application");
#line 349 "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/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->_history;
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 368 "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/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = value;
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_history);
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self->priv->_history = _tmp1_;
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_object_notify ((GObject *) self, "history");
#line 388 "gitg-diff.c"
}


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


static gboolean gitg_diff_panel_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgDiffPanel* self;
#line 101 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 101 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 101 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 417 "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 106 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 106 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = _ ("Diff");
#line 106 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 106 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 106 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 436 "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 111 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 111 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = _ ("Show the changes introduced by the selected commit");
#line 111 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 111 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 111 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 455 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_icon (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	gchar* _tmp0_ = NULL;
#line 116 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 116 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = g_strdup ("diff-symbolic");
#line 116 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp0_;
#line 116 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 471 "gitg-diff.c"
}


static GtkWidget* gitg_diff_panel_real_get_widget (GitgExtUIElement* base) {
	GtkWidget* result;
	GitgDiffPanel* self;
	GtkScrolledWindow* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
#line 139 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 139 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->d_sw;
#line 139 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 ((GtkWidget*) _tmp0_);
#line 139 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 139 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 490 "gitg-diff.c"
}


static gboolean gitg_diff_panel_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgDiffPanel* self;
#line 144 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 144 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 144 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 503 "gitg-diff.c"
}


static void _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed (GitgExtHistory* _sender, gpointer self) {
#line 74 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_on_selection_changed ((GitgDiffPanel*) self, _sender);
#line 510 "gitg-diff.c"
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 517 "gitg-diff.c"
}


static void _gitg_diff_panel___lambda6_ (GitgDiffPanel* self, const gchar* id) {
	GitgCommit* commit = NULL;
	GitgExtHistory* _tmp17_ = NULL;
	GitgExtHistory* _tmp18_ = NULL;
	GitgExtHistory* _tmp19_ = NULL;
	GitgCommit* _tmp20_ = NULL;
	GError * _inner_error_ = NULL;
#line 77 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (id != NULL);
#line 530 "gitg-diff.c"
	{
		GitgCommit* _tmp0_ = NULL;
		GitgExtApplication* _tmp1_ = NULL;
		GitgExtApplication* _tmp2_ = NULL;
		GitgExtApplication* _tmp3_ = NULL;
		GitgRepository* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		GgitOId* _tmp8_ = NULL;
		GgitOId* _tmp9_ = NULL;
		gpointer _tmp10_ = NULL;
		GitgCommit* _tmp11_ = NULL;
		GitgCommit* _tmp12_ = NULL;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp1_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp2_ = _tmp1_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp3_ = _tmp2_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp4_ = gitg_ext_application_get_repository (_tmp3_);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp5_ = _tmp4_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp6_ = _tmp5_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp7_ = id;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp8_ = ggit_oid_new_from_string (_tmp7_);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp9_ = _tmp8_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp10_ = gitg_repository_lookup (_tmp6_, GITG_TYPE_COMMIT, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp9_, &_inner_error_);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp11_ = (GitgCommit*) _tmp10_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		__vala_GgitOId_free0 (_tmp9_);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_tmp6_);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_tmp3_);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = _tmp11_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 577 "gitg-diff.c"
			goto __catch0_g_error;
		}
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp12_ = _tmp0_;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = NULL;
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (commit);
#line 82 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		commit = _tmp12_;
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_tmp0_);
#line 590 "gitg-diff.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		FILE* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		GError* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		e = _inner_error_;
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_inner_error_ = NULL;
#line 86 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp13_ = stderr;
#line 86 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp14_ = id;
#line 86 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp15_ = e;
#line 86 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_tmp16_ = _tmp15_->message;
#line 86 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		fprintf (_tmp13_, "Failed to lookup commit '%s': %s\n", _tmp14_, _tmp16_);
#line 87 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_error_free0 (e);
#line 87 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (commit);
#line 87 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		return;
#line 620 "gitg-diff.c"
	}
	__finally0:
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (commit);
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_clear_error (&_inner_error_);
#line 80 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		return;
#line 633 "gitg-diff.c"
	}
#line 90 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp17_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 90 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp18_ = _tmp17_;
#line 90 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp19_ = _tmp18_;
#line 90 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp20_ = commit;
#line 90 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_ext_history_select (_tmp19_, _tmp20_);
#line 90 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp19_);
#line 77 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (commit);
#line 649 "gitg-diff.c"
}


static void __gitg_diff_panel___lambda6__gitg_diff_view_request_select_commit (GitgDiffView* _sender, const gchar* id, gpointer self) {
#line 77 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_gitg_diff_panel___lambda6_ ((GitgDiffPanel*) self, id);
#line 656 "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;
	GtkScrolledWindow* _tmp0_ = NULL;
	GtkScrolledWindow* _tmp1_ = NULL;
	GitgDiffView* _tmp2_ = NULL;
	GitgDiffView* _tmp3_ = NULL;
	GSettings* settings = NULL;
	GSettings* _tmp4_ = NULL;
	GSettings* _tmp5_ = NULL;
	GitgDiffView* _tmp6_ = NULL;
	GSettings* _tmp7_ = NULL;
	GitgDiffView* _tmp8_ = NULL;
	GSettings* _tmp9_ = NULL;
	GitgDiffView* _tmp10_ = NULL;
	GSettings* _tmp11_ = NULL;
	GitgDiffView* _tmp12_ = NULL;
	GitgDiffView* _tmp13_ = NULL;
	GtkScrolledWindow* _tmp14_ = NULL;
	GitgDiffView* _tmp15_ = NULL;
	GtkScrolledWindow* _tmp16_ = NULL;
	GitgWhenMapped* _tmp17_ = NULL;
	GitgExtHistory* _tmp18_ = NULL;
	GitgExtHistory* _tmp19_ = NULL;
	GitgExtHistory* _tmp20_ = NULL;
	GitgExtHistory* _tmp21_ = NULL;
	GitgExtHistory* _tmp22_ = NULL;
	GitgExtHistory* _tmp23_ = NULL;
	GitgDiffView* _tmp24_ = NULL;
#line 34 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	parent_class = G_OBJECT_CLASS (gitg_diff_panel_parent_class);
#line 34 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 34 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_DIFF_TYPE_PANEL, GitgDiffPanel);
#line 36 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 36 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_object_ref_sink (_tmp0_);
#line 36 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->d_sw);
#line 36 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_sw = _tmp0_;
#line 37 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = self->priv->d_sw;
#line 37 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gtk_widget_show ((GtkWidget*) _tmp1_);
#line 39 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = gitg_diff_view_new ();
#line 39 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_object_ref_sink (_tmp2_);
#line 39 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->d_diff);
#line 39 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_diff = _tmp2_;
#line 40 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = self->priv->d_diff;
#line 40 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_view_set_show_parents (_tmp3_, TRUE);
#line 42 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = g_settings_new ("org.gnome.gitg.preferences.diff");
#line 42 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	settings = _tmp4_;
#line 44 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp5_ = settings;
#line 44 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp6_ = self->priv->d_diff;
#line 44 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp5_, "ignore-whitespace", (GObject*) _tmp6_, "ignore-whitespace", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 50 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp7_ = settings;
#line 50 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp8_ = self->priv->d_diff;
#line 50 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp7_, "changes-inline", (GObject*) _tmp8_, "changes-inline", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 56 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp9_ = settings;
#line 56 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp10_ = self->priv->d_diff;
#line 56 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp9_, "context-lines", (GObject*) _tmp10_, "context-lines", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 62 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp11_ = settings;
#line 62 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp12_ = self->priv->d_diff;
#line 62 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp11_, "tab-width", (GObject*) _tmp12_, "tab-width", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 68 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp13_ = self->priv->d_diff;
#line 68 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gtk_widget_show ((GtkWidget*) _tmp13_);
#line 70 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp14_ = self->priv->d_sw;
#line 70 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp15_ = self->priv->d_diff;
#line 70 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gtk_container_add ((GtkContainer*) _tmp14_, (GtkWidget*) _tmp15_);
#line 72 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp16_ = self->priv->d_sw;
#line 72 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp17_ = gitg_when_mapped_new ((GtkWidget*) _tmp16_);
#line 72 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_gitg_when_mapped_unref0 (self->priv->d_whenMapped);
#line 72 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_whenMapped = _tmp17_;
#line 74 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp18_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 74 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp19_ = _tmp18_;
#line 74 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp20_ = _tmp19_;
#line 74 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_signal_connect_object (_tmp20_, "selection-changed", (GCallback) _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed, self, 0);
#line 74 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp20_);
#line 75 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp21_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 75 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp22_ = _tmp21_;
#line 75 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp23_ = _tmp22_;
#line 75 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_on_selection_changed (self, _tmp23_);
#line 75 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp23_);
#line 77 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp24_ = self->priv->d_diff;
#line 77 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_signal_connect_object (_tmp24_, "request-select-commit", (GCallback) __gitg_diff_panel___lambda6__gitg_diff_view_request_select_commit, self, 0);
#line 34 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (settings);
#line 34 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	return obj;
#line 794 "gitg-diff.c"
}


static void gitg_diff_panel_class_init (GitgDiffPanelClass * klass) {
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffPanelPrivate));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_panel_get_property;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_panel_set_property;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_diff_panel_constructor;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_panel_finalize;
#line 22 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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 829 "gitg-diff.c"
}


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


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


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


static void gitg_diff_panel_finalize (GObject* obj) {
	GitgDiffPanel * self;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_DIFF_TYPE_PANEL, GitgDiffPanel);
#line 27 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->_history);
#line 30 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->d_sw);
#line 31 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->d_diff);
#line 32 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_gitg_when_mapped_unref0 (self->priv->d_whenMapped);
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (gitg_diff_panel_parent_class)->finalize (obj);
#line 894 "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/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	switch (property_id) {
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_APPLICATION:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_HISTORY:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_object (value, gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_ID:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_AVAILABLE:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_DISPLAY_NAME:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_DESCRIPTION:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_ICON:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_icon ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_WIDGET:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_widget ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_ENABLED:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 973 "gitg-diff.c"
		default:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 979 "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/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	switch (property_id) {
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_APPLICATION:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		case GITG_DIFF_PANEL_HISTORY:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		gitg_ext_history_panel_set_history ((GitgExtHistoryPanel*) self, g_value_get_object (value));
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 1001 "gitg-diff.c"
		default:
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
		break;
#line 1007 "gitg-diff.c"
	}
}


void peas_register_types (GTypeModule* module) {
	PeasObjectModule* mod = NULL;
	GTypeModule* _tmp0_ = NULL;
	PeasObjectModule* _tmp1_ = NULL;
#line 163 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (module != NULL);
#line 163 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_register_type (module);
#line 165 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = module;
#line 165 "/home/garrett/hacking/gnome/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 165 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	mod = _tmp1_;
#line 167 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	peas_object_module_register_extension_type (mod, GITG_EXT_TYPE_HISTORY_PANEL, GITG_DIFF_TYPE_PANEL);
#line 163 "/home/garrett/hacking/gnome/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (mod);
#line 1030 "gitg-diff.c"
}



