/* gitg-diff.c generated by valac 0.35.5.2-9e6c0, 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 <gtk/gtk.h>
#include <gio/gio.h>
#include <libgit2-glib/ggit.h>
#include <glib/gi18n-lib.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;
#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_constructed (GObject* base);
static void gitg_diff_panel_on_selection_changed (GitgDiffPanel* self, GitgExtHistory* history);
static void _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed (GitgExtHistory* _sender, gpointer self);
static void gitg_diff_panel_real_dispose (GObject* base);
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 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);
GType gitg_diff_panel_register_type (GTypeModule * module);


static void _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed (GitgExtHistory* _sender, gpointer self) {
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_on_selection_changed ((GitgDiffPanel*) self, _sender);
#line 129 "gitg-diff.c"
}


static void gitg_diff_panel_real_constructed (GObject* base) {
	GitgDiffPanel * self;
	GitgDiffView* _tmp0_;
	GitgDiffView* _tmp1_;
	GitgExtApplication* _tmp2_;
	GitgExtApplication* _tmp3_;
	GitgExtApplication* _tmp4_;
	GitgDiffView* _tmp5_;
	GitgDiffView* _tmp6_;
	GSettings* settings;
	GSettings* _tmp7_;
	GSettings* _tmp8_;
	GitgDiffView* _tmp9_;
	GSettings* _tmp10_;
	GitgDiffView* _tmp11_;
	GSettings* _tmp12_;
	GitgDiffView* _tmp13_;
	GSettings* _tmp14_;
	GitgDiffView* _tmp15_;
	GSettings* _tmp16_;
	GitgDiffView* _tmp17_;
	GSettings* _tmp18_;
	GSettings* _tmp19_;
	GitgDiffView* _tmp20_;
	GSettings* _tmp21_;
	GitgDiffView* _tmp22_;
	GitgDiffView* _tmp23_;
	GitgWhenMapped* _tmp24_;
	GitgExtHistory* _tmp25_;
	GitgExtHistory* _tmp26_;
	GitgExtHistory* _tmp27_;
	gulong _tmp28_;
	GitgExtHistory* _tmp29_;
	GitgExtHistory* _tmp30_;
	GitgExtHistory* _tmp31_;
#line 35 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (gitg_diff_panel_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject));
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = gitg_diff_view_new ();
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_object_ref_sink (_tmp0_);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (self->priv->d_diff);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_diff = _tmp0_;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = self->priv->d_diff;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_view_set_show_parents (_tmp1_, TRUE);
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = _tmp2_;
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = _tmp3_;
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp5_ = self->priv->d_diff;
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp4_, "repository", (GObject*) _tmp5_, "repository", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp4_);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp6_ = self->priv->d_diff;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gtk_widget_show ((GtkWidget*) _tmp6_);
#line 47 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp7_ = g_settings_new ("org.gnome.gitg.preferences.diff");
#line 47 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	settings = _tmp7_;
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp8_ = settings;
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp9_ = self->priv->d_diff;
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp8_, "ignore-whitespace", (GObject*) _tmp9_, "ignore-whitespace", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp10_ = settings;
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp11_ = self->priv->d_diff;
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp10_, "changes-inline", (GObject*) _tmp11_, "changes-inline", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp12_ = settings;
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp13_ = self->priv->d_diff;
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp12_, "context-lines", (GObject*) _tmp13_, "context-lines", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp14_ = settings;
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp15_ = self->priv->d_diff;
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp14_, "tab-width", (GObject*) _tmp15_, "tab-width", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp16_ = settings;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp17_ = self->priv->d_diff;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp16_, "wrap", (GObject*) _tmp17_, "wrap-lines", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 74 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp18_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 74 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (settings);
#line 74 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	settings = _tmp18_;
#line 76 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp19_ = settings;
#line 76 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp20_ = self->priv->d_diff;
#line 76 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp19_, "use-gravatar", (GObject*) _tmp20_, "use-gravatar", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 81 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp21_ = settings;
#line 81 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp22_ = self->priv->d_diff;
#line 81 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_settings_bind (_tmp21_, "enable-diff-highlighting", (GObject*) _tmp22_, "highlight", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp23_ = self->priv->d_diff;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp24_ = gitg_when_mapped_new ((GtkWidget*) _tmp23_);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_gitg_when_mapped_unref0 (self->priv->d_whenMapped);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_whenMapped = _tmp24_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp25_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp26_ = _tmp25_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp27_ = _tmp26_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp28_ = g_signal_connect_object (_tmp27_, "selection-changed", (GCallback) _gitg_diff_panel_on_selection_changed_gitg_ext_history_selection_changed, self, 0);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self->priv->d_selection_changed_id = _tmp28_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp27_);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp29_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp30_ = _tmp29_;
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp31_ = _tmp30_;
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_on_selection_changed (self, _tmp31_);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp31_);
#line 35 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (settings);
#line 284 "gitg-diff.c"
}


static void gitg_diff_panel_real_dispose (GObject* base) {
	GitgDiffPanel * self;
	gboolean _tmp0_ = FALSE;
	GitgExtHistory* _tmp1_;
	GitgExtHistory* _tmp2_;
	GitgExtHistory* _tmp3_;
	gboolean _tmp4_;
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _tmp1_;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = _tmp2_;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = _tmp3_ != NULL;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (_tmp3_);
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp4_) {
#line 309 "gitg-diff.c"
		gulong _tmp5_;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp5_ = self->priv->d_selection_changed_id;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = _tmp5_ != ((gulong) 0);
#line 315 "gitg-diff.c"
	} else {
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = FALSE;
#line 319 "gitg-diff.c"
	}
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp0_) {
#line 323 "gitg-diff.c"
		GitgExtHistory* _tmp6_;
		GitgExtHistory* _tmp7_;
		GitgExtHistory* _tmp8_;
		gulong _tmp9_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp6_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp7_ = _tmp6_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp8_ = _tmp7_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp9_ = self->priv->d_selection_changed_id;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		g_signal_handler_disconnect ((GObject*) _tmp8_, _tmp9_);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_tmp8_);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		self->priv->d_selection_changed_id = (gulong) 0;
#line 342 "gitg-diff.c"
	}
#line 100 "/home/mcatanzaro/Projects/GNOME/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 346 "gitg-diff.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return _data1_;
#line 355 "gitg-diff.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 364 "gitg-diff.c"
		GitgDiffPanel* self;
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		self = _data1_->self;
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (self);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		g_slice_free (Block1Data, _data1_);
#line 372 "gitg-diff.c"
	}
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return _data2_;
#line 382 "gitg-diff.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 391 "gitg-diff.c"
		GitgDiffPanel* self;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		self = _data2_->_data1_->self;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (_data2_->c);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		block1_data_unref (_data2_->_data1_);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_data2_->_data1_ = NULL;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		g_slice_free (Block2Data, _data2_);
#line 403 "gitg-diff.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return self ? g_object_ref (self) : NULL;
#line 411 "gitg-diff.c"
}


static void ___lambda5_ (Block2Data* _data2_) {
	Block1Data* _data1_;
	GitgDiffPanel* self;
	GitgDiffView* _tmp0_;
	GitgCommit* _tmp1_;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = _data2_->_data1_;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = _data1_->self;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->d_diff;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _data2_->c;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_view_set_commit (_tmp0_, _tmp1_);
#line 139 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data1_->hasset = TRUE;
#line 432 "gitg-diff.c"
}


static void ____lambda5__gitg_when_mapped_on_mapped (gpointer self) {
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	___lambda5_ (self);
#line 439 "gitg-diff.c"
}


static gboolean __lambda4_ (Block1Data* _data1_, GgitCommit* commit) {
	GitgDiffPanel* self;
	gboolean result = FALSE;
	Block2Data* _data2_;
	GgitCommit* _tmp0_;
	GitgCommit* _tmp1_;
	GitgCommit* _tmp2_;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = _data1_->self;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_return_val_if_fail (commit != NULL, FALSE);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data2_->_ref_count_ = 1;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data2_->_data1_ = block1_data_ref (_data1_);
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = commit;
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp0_) : NULL);
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data2_->c = _tmp1_;
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _data2_->c;
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp2_ != NULL) {
#line 470 "gitg-diff.c"
		GitgWhenMapped* _tmp3_;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp3_ = self->priv->d_whenMapped;
#line 137 "/home/mcatanzaro/Projects/GNOME/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 142 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		result = FALSE;
#line 142 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		block2_data_unref (_data2_);
#line 142 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_data2_ = NULL;
#line 142 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 484 "gitg-diff.c"
	}
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	block2_data_unref (_data2_);
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data2_ = NULL;
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 494 "gitg-diff.c"
}


static gboolean ___lambda4__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self) {
	gboolean result;
	result = __lambda4_ (self, object);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 503 "gitg-diff.c"
}


static void gitg_diff_panel_on_selection_changed (GitgDiffPanel* self, GitgExtHistory* history) {
	Block1Data* _data1_;
	GitgExtHistory* _tmp0_;
	gboolean _tmp1_;
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (self != NULL);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (history != NULL);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data1_->_ref_count_ = 1;
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data1_->self = g_object_ref (self);
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data1_->hasset = FALSE;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = history;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gitg_ext_history_foreach_selected (_tmp0_, ___lambda4__gitg_ext_foreach_commit_selection_func, _data1_);
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _data1_->hasset;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (!_tmp1_) {
#line 531 "gitg-diff.c"
		GitgDiffView* _tmp2_;
#line 150 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp2_ = self->priv->d_diff;
#line 150 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		gitg_diff_view_set_commit (_tmp2_, NULL);
#line 537 "gitg-diff.c"
	}
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	block1_data_unref (_data1_);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_data1_ = NULL;
#line 543 "gitg-diff.c"
}


static gint gitg_diff_panel_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other) {
	GitgDiffPanel * self;
	gint result = 0;
	GitgExtUIElement* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gboolean _tmp4_;
#line 164 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 164 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = other;
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = gitg_ext_ui_element_get_id (_tmp0_);
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp2_ = _tmp1_;
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp3_ = _tmp2_;
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp4_ = g_strcmp0 (_tmp3_, "/org/gnome/gitg/Panels/Files") == 0;
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_free0 (_tmp3_);
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (_tmp4_) {
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		result = -1;
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 577 "gitg-diff.c"
	} else {
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		result = 0;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		return result;
#line 583 "gitg-diff.c"
	}
}


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


GitgDiffPanel* gitg_diff_panel_new (void) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return gitg_diff_panel_construct (GITG_DIFF_TYPE_PANEL);
#line 601 "gitg-diff.c"
}


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


static void gitg_diff_panel_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgDiffPanel* self;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (gitg_diff_panel_real_get_application (self) != value) {
#line 630 "gitg-diff.c"
		GitgExtApplication* _tmp0_;
		GitgExtApplication* _tmp1_;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = value;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (self->priv->_application);
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		self->priv->_application = _tmp1_;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		g_object_notify ((GObject *) self, "application");
#line 643 "gitg-diff.c"
	}
}


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


static void gitg_diff_panel_real_set_history (GitgExtHistoryPanel* base, GitgExtHistory* value) {
	GitgDiffPanel* self;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	if (gitg_diff_panel_real_get_history (self) != value) {
#line 673 "gitg-diff.c"
		GitgExtHistory* _tmp0_;
		GitgExtHistory* _tmp1_;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp0_ = value;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		_g_object_unref0 (self->priv->_history);
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		self->priv->_history = _tmp1_;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
		g_object_notify ((GObject *) self, "history");
#line 686 "gitg-diff.c"
	}
}


static gchar* gitg_diff_panel_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	gchar* _tmp0_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/Panels/Diff");
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp0_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 703 "gitg-diff.c"
}


static gboolean gitg_diff_panel_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgDiffPanel* self;
#line 110 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 110 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 110 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 716 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	gchar* _tmp0_;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = g_strdup (_ ("Diff"));
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp0_;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 732 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	gchar* _tmp0_;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = g_strdup (_ ("Show the changes introduced by the selected commit"));
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp0_;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 748 "gitg-diff.c"
}


static gchar* gitg_diff_panel_real_get_icon (GitgExtUIElement* base) {
	gchar* result;
	GitgDiffPanel* self;
	gchar* _tmp0_;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = g_strdup ("diff-symbolic");
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp0_;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 764 "gitg-diff.c"
}


static GtkWidget* gitg_diff_panel_real_get_widget (GitgExtUIElement* base) {
	GtkWidget* result;
	GitgDiffPanel* self;
	GitgDiffView* _tmp0_;
	GtkWidget* _tmp1_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = self->priv->d_diff;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp1_ = _g_object_ref0 ((GtkWidget*) _tmp0_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = _tmp1_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 783 "gitg-diff.c"
}


static gboolean gitg_diff_panel_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgDiffPanel* self;
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	self = (GitgDiffPanel*) base;
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	result = TRUE;
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	return result;
#line 796 "gitg-diff.c"
}


static void gitg_diff_panel_class_init (GitgDiffPanelClass * klass) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffPanelPrivate));
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	((GObjectClass *) klass)->constructed = gitg_diff_panel_real_constructed;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	((GObjectClass *) klass)->dispose = gitg_diff_panel_real_dispose;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_panel_get_property;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_panel_set_property;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_panel_finalize;
#line 22 "/home/mcatanzaro/Projects/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/mcatanzaro/Projects/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/mcatanzaro/Projects/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/mcatanzaro/Projects/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/mcatanzaro/Projects/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/mcatanzaro/Projects/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/mcatanzaro/Projects/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/mcatanzaro/Projects/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/mcatanzaro/Projects/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 833 "gitg-diff.c"
}


static void gitg_diff_panel_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 22 "/home/mcatanzaro/Projects/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/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->negotiate_order = (gint (*) (GitgExtUIElement *, GitgExtUIElement*)) gitg_diff_panel_real_negotiate_order;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_application = gitg_diff_panel_real_get_application;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->set_application = gitg_diff_panel_real_set_application;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_id = gitg_diff_panel_real_get_id;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_available = gitg_diff_panel_real_get_available;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_display_name = gitg_diff_panel_real_get_display_name;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_description = gitg_diff_panel_real_get_description;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_icon = gitg_diff_panel_real_get_icon;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_widget = gitg_diff_panel_real_get_widget;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_enabled = gitg_diff_panel_real_get_enabled;
#line 860 "gitg-diff.c"
}


static void gitg_diff_panel_gitg_ext_history_panel_interface_init (GitgExtHistoryPanelIface * iface) {
#line 22 "/home/mcatanzaro/Projects/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/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->get_history = gitg_diff_panel_real_get_history;
#line 22 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	iface->set_history = gitg_diff_panel_real_set_history;
#line 871 "gitg-diff.c"
}


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


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


void peas_register_types (GTypeModule* module) {
	PeasObjectModule* mod;
	GTypeModule* _tmp0_;
	PeasObjectModule* _tmp1_;
#line 180 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	g_return_if_fail (module != NULL);
#line 180 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	gitg_diff_panel_register_type (module);
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_tmp0_ = module;
#line 182 "/home/mcatanzaro/Projects/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 182 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	mod = _tmp1_;
#line 184 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	peas_object_module_register_extension_type (mod, GITG_EXT_TYPE_HISTORY_PANEL, GITG_DIFF_TYPE_PANEL);
#line 180 "/home/mcatanzaro/Projects/GNOME/gitg/plugins/diff/gitg-diff.vala"
	_g_object_unref0 (mod);
#line 1032 "gitg-diff.c"
}



