/* diff-view.c generated by valac 0.34.0.108-f56ac, the Vala compiler
 * generated from diff-view.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include "libgitg/libgitg.h"
#include <stdio.h>
#include <gio/gio.h>
#include <libgit2-glib/ggit.h>
#include <gdk/gdk.h>
#include <gobject/gvaluecollector.h>


#define TYPE_TEST_DIFF_VIEW (test_diff_view_get_type ())
#define TEST_DIFF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEST_DIFF_VIEW, TestDiffView))
#define TEST_DIFF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEST_DIFF_VIEW, TestDiffViewClass))
#define IS_TEST_DIFF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEST_DIFF_VIEW))
#define IS_TEST_DIFF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEST_DIFF_VIEW))
#define TEST_DIFF_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEST_DIFF_VIEW, TestDiffViewClass))

typedef struct _TestDiffView TestDiffView;
typedef struct _TestDiffViewClass TestDiffViewClass;
typedef struct _TestDiffViewPrivate TestDiffViewPrivate;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _ParamSpecTestDiffView ParamSpecTestDiffView;

struct _TestDiffView {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TestDiffViewPrivate * priv;
};

struct _TestDiffViewClass {
	GTypeClass parent_class;
	void (*finalize) (TestDiffView *self);
};

struct _ParamSpecTestDiffView {
	GParamSpec parent_instance;
};


static gpointer test_diff_view_parent_class = NULL;

gpointer test_diff_view_ref (gpointer instance);
void test_diff_view_unref (gpointer instance);
GParamSpec* param_spec_test_diff_view (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_test_diff_view (GValue* value, gpointer v_object);
void value_take_test_diff_view (GValue* value, gpointer v_object);
gpointer value_get_test_diff_view (const GValue* value);
GType test_diff_view_get_type (void) G_GNUC_CONST;
enum  {
	TEST_DIFF_VIEW_DUMMY_PROPERTY
};
gint test_diff_view_main (gchar** args, int args_length1);
static gchar** _vala_array_dup1 (gchar** self, int length);
static gchar** _vala_array_dup2 (gchar** self, int length);
static void _vala_array_add1 (gchar** * array, int* length, int* size, gchar* value);
static gboolean __lambda4_ (GtkWidget* w, GdkEventAny* ev);
static gboolean ___lambda4__gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
TestDiffView* test_diff_view_new (void);
TestDiffView* test_diff_view_construct (GType object_type);
static void test_diff_view_finalize (TestDiffView * obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


static gchar** _vala_array_dup1 (gchar** self, int length) {
	gchar** result;
	int i;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
	result = g_new0 (gchar*, length + 1);
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
	for (i = 0; i < length; i++) {
#line 83 "diff-view.c"
		gchar* _tmp0_ = NULL;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp0_ = g_strdup (self[i]);
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		result[i] = _tmp0_;
#line 89 "diff-view.c"
	}
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return result;
#line 93 "diff-view.c"
}


static gchar** _vala_array_dup2 (gchar** self, int length) {
	gchar** result;
	int i;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
	result = g_new0 (gchar*, length + 1);
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
	for (i = 0; i < length; i++) {
#line 104 "diff-view.c"
		gchar* _tmp0_ = NULL;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp0_ = g_strdup (self[i]);
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		result[i] = _tmp0_;
#line 110 "diff-view.c"
	}
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return result;
#line 114 "diff-view.c"
}


static void _vala_array_add1 (gchar** * array, int* length, int* size, gchar* value) {
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if ((*length) == (*size)) {
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 125 "diff-view.c"
	}
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
	(*array)[(*length)++] = value;
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
	(*array)[*length] = NULL;
#line 131 "diff-view.c"
}


static gboolean __lambda4_ (GtkWidget* w, GdkEventAny* ev) {
	gboolean result = FALSE;
#line 120 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_return_val_if_fail (w != NULL, FALSE);
#line 120 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_return_val_if_fail (ev != NULL, FALSE);
#line 121 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_main_quit ();
#line 122 "/home/jesse/dev/gitg/tests/diff-view.vala"
	result = TRUE;
#line 122 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return result;
#line 147 "diff-view.c"
}


static gboolean ___lambda4__gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
	gboolean result;
	result = __lambda4_ (_sender, event);
#line 120 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return result;
#line 156 "diff-view.c"
}


gint test_diff_view_main (gchar** args, int args_length1) {
	gint result = 0;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	const gchar* _tmp5_ = NULL;
	gchar* inipath = NULL;
	gchar* _tmp53_ = NULL;
	gchar** _tmp54_ = NULL;
	gint _tmp54__length1 = 0;
	GFile* repopath = NULL;
	GgitRepository* repo = NULL;
	GitgCommit* commit = NULL;
	gchar** _tmp71_ = NULL;
	gint _tmp71__length1 = 0;
	GtkWindow* wnd = NULL;
	GtkWindow* _tmp90_ = NULL;
	GtkWindow* _tmp91_ = NULL;
	GtkScrolledWindow* sw = NULL;
	GtkScrolledWindow* _tmp92_ = NULL;
	GtkScrolledWindow* _tmp93_ = NULL;
	GitgDiffView* v = NULL;
	GitgDiffView* _tmp94_ = NULL;
	GitgDiffView* _tmp95_ = NULL;
	GtkScrolledWindow* _tmp96_ = NULL;
	GitgDiffView* _tmp97_ = NULL;
	GitgDiffView* _tmp98_ = NULL;
	GitgCommit* _tmp99_ = NULL;
	GtkWindow* _tmp100_ = NULL;
	GtkWindow* _tmp101_ = NULL;
	GtkScrolledWindow* _tmp102_ = NULL;
	GtkWindow* _tmp103_ = NULL;
	GError * _inner_error_ = NULL;
#line 5 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_init (&args_length1, &args);
#line 194 "diff-view.c"
	{
#line 9 "/home/jesse/dev/gitg/tests/diff-view.vala"
		gitg_init (&_inner_error_);
#line 9 "/home/jesse/dev/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 200 "diff-view.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		FILE* _tmp0_ = NULL;
		GError* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
#line 7 "/home/jesse/dev/gitg/tests/diff-view.vala"
		e = _inner_error_;
#line 7 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_inner_error_ = NULL;
#line 13 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp0_ = stderr;
#line 13 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp1_ = e;
#line 13 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp2_ = _tmp1_->message;
#line 13 "/home/jesse/dev/gitg/tests/diff-view.vala"
		fprintf (_tmp0_, "Failed to initialize ggit: %s\n", _tmp2_);
#line 14 "/home/jesse/dev/gitg/tests/diff-view.vala"
		result = 1;
#line 14 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_error_free0 (e);
#line 14 "/home/jesse/dev/gitg/tests/diff-view.vala"
		return result;
#line 229 "diff-view.c"
	}
	__finally0:
#line 7 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7 "/home/jesse/dev/gitg/tests/diff-view.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 7 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 7 "/home/jesse/dev/gitg/tests/diff-view.vala"
		return 0;
#line 240 "diff-view.c"
	}
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp5_ = g_getenv ("GITG_GTK_DIFF_VIEW_DEBUG");
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (g_strcmp0 (_tmp5_, "local") != 0) {
#line 246 "diff-view.c"
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp6_ = args;
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp6__length1 = args_length1;
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp4_ = _tmp6__length1 > 1;
#line 255 "diff-view.c"
	} else {
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp4_ = FALSE;
#line 259 "diff-view.c"
	}
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (_tmp4_) {
#line 263 "diff-view.c"
		gchar** _tmp7_ = NULL;
		gint _tmp7__length1 = 0;
		const gchar* _tmp8_ = NULL;
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp7_ = args;
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp7__length1 = args_length1;
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp8_ = _tmp7_[1];
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp3_ = g_strcmp0 (_tmp8_, "--local") == 0;
#line 275 "diff-view.c"
	} else {
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp3_ = FALSE;
#line 279 "diff-view.c"
	}
#line 17 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (_tmp3_) {
#line 283 "diff-view.c"
		GFile* path = NULL;
		gchar** _tmp9_ = NULL;
		gint _tmp9__length1 = 0;
		const gchar* _tmp10_ = NULL;
		GFile* _tmp11_ = NULL;
		GFile* gtk = NULL;
		GFile* _tmp12_ = NULL;
		GFile* _tmp13_ = NULL;
		GFile* _tmp14_ = NULL;
		GFile* _tmp15_ = NULL;
		GFile* _tmp16_ = NULL;
		GFile* _tmp17_ = NULL;
		GFile* _tmp18_ = NULL;
		GFile* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		gchar** rargs = NULL;
		gchar** _tmp21_ = NULL;
		gint _tmp21__length1 = 0;
		gchar** _tmp22_ = NULL;
		gint _tmp22__length1 = 0;
		gint rargs_length1 = 0;
		gint _rargs_size_ = 0;
		gchar** _tmp23_ = NULL;
		gint _tmp23__length1 = 0;
		gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gint status = 0;
		gchar** sliced = NULL;
		gchar** _tmp37_ = NULL;
		gint _tmp37__length1 = 0;
		gchar** _tmp38_ = NULL;
		gint _tmp38__length1 = 0;
		gchar** _tmp39_ = NULL;
		gint _tmp39__length1 = 0;
		gint sliced_length1 = 0;
		gint _sliced_size_ = 0;
		gchar** env = NULL;
		gchar** _tmp40_ = NULL;
		gchar** _tmp41_ = NULL;
		gint env_length1 = 0;
		gint _env_size_ = 0;
		gchar** _tmp42_ = NULL;
		gint _tmp42__length1 = 0;
		gchar* _tmp43_ = NULL;
#line 20 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp9_ = args;
#line 20 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp9__length1 = args_length1;
#line 20 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp10_ = _tmp9_[0];
#line 20 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp11_ = g_file_new_for_path (_tmp10_);
#line 20 "/home/jesse/dev/gitg/tests/diff-view.vala"
		path = _tmp11_;
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp12_ = path;
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp13_ = g_file_get_parent (_tmp12_);
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp14_ = _tmp13_;
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp15_ = g_file_get_parent (_tmp14_);
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp16_ = _tmp15_;
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp17_ = g_file_get_parent (_tmp16_);
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp18_ = _tmp17_;
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp19_ = g_file_get_child (_tmp18_, "libgitg");
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp20_ = _tmp19_;
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp18_);
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp16_);
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp14_);
#line 21 "/home/jesse/dev/gitg/tests/diff-view.vala"
		gtk = _tmp20_;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp21_ = args;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp21__length1 = args_length1;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp22_ = (_tmp21_ != NULL) ? _vala_array_dup1 (_tmp21_, _tmp21__length1) : ((gpointer) _tmp21_);
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp22__length1 = _tmp21__length1;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		rargs = _tmp22_;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		rargs_length1 = _tmp22__length1;
#line 23 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_rargs_size_ = rargs_length1;
#line 25 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp23_ = rargs;
#line 25 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp23__length1 = rargs_length1;
#line 25 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp24_ = g_strdup ("../tests/diff-view");
#line 25 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_free0 (_tmp23_[0]);
#line 25 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp23_[0] = _tmp24_;
#line 25 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp25_ = _tmp23_[0];
#line 390 "diff-view.c"
		{
			gint i = 0;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
			i = 1;
#line 395 "diff-view.c"
			{
				gboolean _tmp26_ = FALSE;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
				_tmp26_ = TRUE;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
				while (TRUE) {
#line 402 "diff-view.c"
					gint _tmp28_ = 0;
					gchar** _tmp29_ = NULL;
					gint _tmp29__length1 = 0;
					gchar** _tmp30_ = NULL;
					gint _tmp30__length1 = 0;
					gint _tmp31_ = 0;
					gchar** _tmp32_ = NULL;
					gint _tmp32__length1 = 0;
					gint _tmp33_ = 0;
					const gchar* _tmp34_ = NULL;
					gchar* _tmp35_ = NULL;
					gchar* _tmp36_ = NULL;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
					if (!_tmp26_) {
#line 417 "diff-view.c"
						gint _tmp27_ = 0;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
						_tmp27_ = i;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
						i = _tmp27_ + 1;
#line 423 "diff-view.c"
					}
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp26_ = FALSE;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp28_ = i;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp29_ = rargs;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp29__length1 = rargs_length1;
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
					if (!(_tmp28_ < (_tmp29__length1 - 1))) {
#line 27 "/home/jesse/dev/gitg/tests/diff-view.vala"
						break;
#line 437 "diff-view.c"
					}
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp30_ = rargs;
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp30__length1 = rargs_length1;
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp31_ = i;
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp32_ = rargs;
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp32__length1 = rargs_length1;
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp33_ = i;
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp34_ = _tmp32_[_tmp33_ + 1];
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp35_ = g_strdup (_tmp34_);
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_g_free0 (_tmp30_[_tmp31_]);
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp30_[_tmp31_] = _tmp35_;
#line 29 "/home/jesse/dev/gitg/tests/diff-view.vala"
					_tmp36_ = _tmp30_[_tmp31_];
#line 461 "diff-view.c"
				}
			}
		}
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp37_ = rargs;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp37__length1 = rargs_length1;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp38_ = rargs;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp38__length1 = rargs_length1;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp39_ = ((_tmp37_ + 0) != NULL) ? _vala_array_dup2 (_tmp37_ + 0, (_tmp38__length1 - 1) - 0) : ((gpointer) (_tmp37_ + 0));
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp39__length1 = (_tmp38__length1 - 1) - 0;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		sliced = _tmp39_;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		sliced_length1 = _tmp39__length1;
#line 34 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_sliced_size_ = sliced_length1;
#line 36 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp41_ = _tmp40_ = g_get_environ ();
#line 36 "/home/jesse/dev/gitg/tests/diff-view.vala"
		env = _tmp41_;
#line 36 "/home/jesse/dev/gitg/tests/diff-view.vala"
		env_length1 = _vala_array_length (_tmp40_);
#line 36 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_env_size_ = env_length1;
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp42_ = env;
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp42__length1 = env_length1;
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp43_ = g_strdup ("GITG_GTK_DIFF_VIEW_DEBUG=local");
#line 37 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_vala_array_add1 (&env, &env_length1, &_env_size_, _tmp43_);
#line 499 "diff-view.c"
		{
			GFile* _tmp44_ = NULL;
			gchar* _tmp45_ = NULL;
			gchar* _tmp46_ = NULL;
			gchar** _tmp47_ = NULL;
			gint _tmp47__length1 = 0;
			gchar** _tmp48_ = NULL;
			gint _tmp48__length1 = 0;
			gint _tmp49_ = 0;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp44_ = gtk;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp45_ = g_file_get_path (_tmp44_);
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp46_ = _tmp45_;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp47_ = sliced;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp47__length1 = sliced_length1;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp48_ = env;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp48__length1 = env_length1;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			g_spawn_sync (_tmp46_, _tmp47_, _tmp48_, 0, NULL, NULL, NULL, NULL, &_tmp49_, &_inner_error_);
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			status = _tmp49_;
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_free0 (_tmp46_);
#line 41 "/home/jesse/dev/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 531 "diff-view.c"
				goto __catch1_g_error;
			}
		}
		goto __finally1;
		__catch1_g_error:
		{
			GError* err = NULL;
			FILE* _tmp50_ = NULL;
			GError* _tmp51_ = NULL;
			const gchar* _tmp52_ = NULL;
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			err = _inner_error_;
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 52 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp50_ = stderr;
#line 52 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp51_ = err;
#line 52 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp52_ = _tmp51_->message;
#line 52 "/home/jesse/dev/gitg/tests/diff-view.vala"
			fprintf (_tmp50_, "Error while spawning local version: %s\n", _tmp52_);
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			result = 1;
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_error_free0 (err);
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (gtk);
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (path);
#line 53 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return result;
#line 570 "diff-view.c"
		}
		__finally1:
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (gtk);
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (path);
#line 39 "/home/jesse/dev/gitg/tests/diff-view.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 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 39 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return 0;
#line 591 "diff-view.c"
		}
#line 56 "/home/jesse/dev/gitg/tests/diff-view.vala"
		result = status;
#line 56 "/home/jesse/dev/gitg/tests/diff-view.vala"
		env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/jesse/dev/gitg/tests/diff-view.vala"
		sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/jesse/dev/gitg/tests/diff-view.vala"
		rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (gtk);
#line 56 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (path);
#line 56 "/home/jesse/dev/gitg/tests/diff-view.vala"
		return result;
#line 607 "diff-view.c"
	}
#line 59 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp53_ = g_strdup (".");
#line 59 "/home/jesse/dev/gitg/tests/diff-view.vala"
	inipath = _tmp53_;
#line 61 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp54_ = args;
#line 61 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp54__length1 = args_length1;
#line 61 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (_tmp54__length1 > 1) {
#line 619 "diff-view.c"
		gchar** _tmp55_ = NULL;
		gint _tmp55__length1 = 0;
		const gchar* _tmp56_ = NULL;
		gchar* _tmp57_ = NULL;
#line 63 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp55_ = args;
#line 63 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp55__length1 = args_length1;
#line 63 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp56_ = _tmp55_[1];
#line 63 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp57_ = g_strdup (_tmp56_);
#line 63 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 63 "/home/jesse/dev/gitg/tests/diff-view.vala"
		inipath = _tmp57_;
#line 636 "diff-view.c"
	}
	{
		GFile* _tmp58_ = NULL;
		const gchar* _tmp59_ = NULL;
		GFile* _tmp60_ = NULL;
		GFile* _tmp61_ = NULL;
		GFile* _tmp62_ = NULL;
		GFile* _tmp63_ = NULL;
		GFile* _tmp64_ = NULL;
		GgitRepository* _tmp65_ = NULL;
		GFile* _tmp66_ = NULL;
		GgitRepository* _tmp67_ = NULL;
		GgitRepository* _tmp68_ = NULL;
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp59_ = inipath;
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp60_ = g_file_new_for_commandline_arg (_tmp59_);
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp61_ = _tmp60_;
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp62_ = ggit_repository_discover (_tmp61_, &_inner_error_);
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp63_ = _tmp62_;
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp61_);
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp58_ = _tmp63_;
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 666 "diff-view.c"
			goto __catch2_g_error;
		}
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp64_ = _tmp58_;
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp58_ = NULL;
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 71 "/home/jesse/dev/gitg/tests/diff-view.vala"
		repopath = _tmp64_;
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp66_ = repopath;
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp67_ = ggit_repository_open (_tmp66_, &_inner_error_);
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp65_ = _tmp67_;
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp58_);
#line 687 "diff-view.c"
			goto __catch2_g_error;
		}
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp68_ = _tmp65_;
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp65_ = NULL;
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 72 "/home/jesse/dev/gitg/tests/diff-view.vala"
		repo = _tmp68_;
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp65_);
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp58_);
#line 702 "diff-view.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		FILE* _tmp69_ = NULL;
		const gchar* _tmp70_ = NULL;
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_inner_error_ = NULL;
#line 76 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp69_ = stderr;
#line 76 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_tmp70_ = inipath;
#line 76 "/home/jesse/dev/gitg/tests/diff-view.vala"
		fprintf (_tmp69_, "The specified path is not a git repository: %s\n", _tmp70_);
#line 77 "/home/jesse/dev/gitg/tests/diff-view.vala"
		result = 1;
#line 77 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 77 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 77 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 77 "/home/jesse/dev/gitg/tests/diff-view.vala"
		return result;
#line 729 "diff-view.c"
	}
	__finally2:
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 69 "/home/jesse/dev/gitg/tests/diff-view.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 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 69 "/home/jesse/dev/gitg/tests/diff-view.vala"
		return 0;
#line 746 "diff-view.c"
	}
#line 82 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp71_ = args;
#line 82 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp71__length1 = args_length1;
#line 82 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (_tmp71__length1 > 2) {
#line 754 "diff-view.c"
		{
			GgitObject* _tmp72_ = NULL;
			GgitRepository* _tmp73_ = NULL;
			gchar** _tmp74_ = NULL;
			gint _tmp74__length1 = 0;
			const gchar* _tmp75_ = NULL;
			GgitObject* _tmp76_ = NULL;
			GgitObject* _tmp77_ = NULL;
			GitgCommit* _tmp78_ = NULL;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp73_ = repo;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp74_ = args;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp74__length1 = args_length1;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp75_ = _tmp74_[2];
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp76_ = ggit_repository_revparse (_tmp73_, _tmp75_, &_inner_error_);
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp72_ = _tmp76_;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 778 "diff-view.c"
				goto __catch3_g_error;
			}
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp77_ = _tmp72_;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp72_ = NULL;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp78_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp77_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp77_) : NULL;
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			if (_tmp78_ == NULL) {
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
				_g_object_unref0 (_tmp77_);
#line 791 "diff-view.c"
			}
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 86 "/home/jesse/dev/gitg/tests/diff-view.vala"
			commit = _tmp78_;
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp72_);
#line 799 "diff-view.c"
		}
		goto __finally3;
		__catch3_g_error:
		{
			FILE* _tmp79_ = NULL;
			gchar** _tmp80_ = NULL;
			gint _tmp80__length1 = 0;
			const gchar* _tmp81_ = NULL;
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 90 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp79_ = stderr;
#line 90 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp80_ = args;
#line 90 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp80__length1 = args_length1;
#line 90 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp81_ = _tmp80_[2];
#line 90 "/home/jesse/dev/gitg/tests/diff-view.vala"
			fprintf (_tmp79_, "Failed to parse `%s' as a commit.\n", _tmp81_);
#line 91 "/home/jesse/dev/gitg/tests/diff-view.vala"
			result = 1;
#line 91 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 91 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 91 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 91 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 91 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return result;
#line 834 "diff-view.c"
		}
		__finally3:
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 84 "/home/jesse/dev/gitg/tests/diff-view.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 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return 0;
#line 853 "diff-view.c"
		}
	} else {
		{
			GgitRef* head = NULL;
			GgitRepository* _tmp82_ = NULL;
			GgitRef* _tmp83_ = NULL;
			GgitObject* _tmp84_ = NULL;
			GgitRef* _tmp85_ = NULL;
			GgitObject* _tmp86_ = NULL;
			GgitObject* _tmp87_ = NULL;
			GitgCommit* _tmp88_ = NULL;
#line 98 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp82_ = repo;
#line 98 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp83_ = ggit_repository_get_head (_tmp82_, &_inner_error_);
#line 98 "/home/jesse/dev/gitg/tests/diff-view.vala"
			head = _tmp83_;
#line 98 "/home/jesse/dev/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 873 "diff-view.c"
				goto __catch4_g_error;
			}
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp85_ = head;
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp86_ = ggit_ref_lookup (_tmp85_, &_inner_error_);
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp84_ = _tmp86_;
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
				_g_object_unref0 (head);
#line 886 "diff-view.c"
				goto __catch4_g_error;
			}
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp87_ = _tmp84_;
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp84_ = NULL;
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp88_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp87_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp87_) : NULL;
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			if (_tmp88_ == NULL) {
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
				_g_object_unref0 (_tmp87_);
#line 899 "diff-view.c"
			}
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 99 "/home/jesse/dev/gitg/tests/diff-view.vala"
			commit = _tmp88_;
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp84_);
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (head);
#line 909 "diff-view.c"
		}
		goto __finally4;
		__catch4_g_error:
		{
			FILE* _tmp89_ = NULL;
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 103 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_tmp89_ = stderr;
#line 103 "/home/jesse/dev/gitg/tests/diff-view.vala"
			fprintf (_tmp89_, "The repository does not have a current HEAD\n");
#line 104 "/home/jesse/dev/gitg/tests/diff-view.vala"
			result = 1;
#line 104 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 104 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 104 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 104 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 104 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return result;
#line 935 "diff-view.c"
		}
		__finally4:
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 96 "/home/jesse/dev/gitg/tests/diff-view.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 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 96 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return 0;
#line 954 "diff-view.c"
		}
	}
#line 108 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp90_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
#line 108 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp90_);
#line 108 "/home/jesse/dev/gitg/tests/diff-view.vala"
	wnd = _tmp90_;
#line 109 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp91_ = wnd;
#line 109 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_window_set_default_size (_tmp91_, 800, 600);
#line 111 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp92_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 111 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp92_);
#line 111 "/home/jesse/dev/gitg/tests/diff-view.vala"
	sw = _tmp92_;
#line 112 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp93_ = sw;
#line 112 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_widget_show ((GtkWidget*) _tmp93_);
#line 114 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp94_ = gitg_diff_view_new ();
#line 114 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp94_);
#line 114 "/home/jesse/dev/gitg/tests/diff-view.vala"
	v = _tmp94_;
#line 115 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp95_ = v;
#line 115 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_widget_show ((GtkWidget*) _tmp95_);
#line 116 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp96_ = sw;
#line 116 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp97_ = v;
#line 116 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_container_add ((GtkContainer*) _tmp96_, (GtkWidget*) _tmp97_);
#line 118 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp98_ = v;
#line 118 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp99_ = commit;
#line 118 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gitg_diff_view_set_commit (_tmp98_, _tmp99_);
#line 120 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp100_ = wnd;
#line 120 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_signal_connect ((GtkWidget*) _tmp100_, "delete-event", (GCallback) ___lambda4__gtk_widget_delete_event, NULL);
#line 125 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp101_ = wnd;
#line 125 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp102_ = sw;
#line 125 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_container_add ((GtkContainer*) _tmp101_, (GtkWidget*) _tmp102_);
#line 126 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_tmp103_ = wnd;
#line 126 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_widget_show ((GtkWidget*) _tmp103_);
#line 128 "/home/jesse/dev/gitg/tests/diff-view.vala"
	gtk_main ();
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	result = 0;
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_g_object_unref0 (v);
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_g_object_unref0 (sw);
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_g_object_unref0 (wnd);
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_g_object_unref0 (commit);
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_g_object_unref0 (repo);
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_g_object_unref0 (repopath);
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	_g_free0 (inipath);
#line 129 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return result;
#line 1033 "diff-view.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 3 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return test_diff_view_main (argv, argc);
#line 1043 "diff-view.c"
}


TestDiffView* test_diff_view_construct (GType object_type) {
	TestDiffView* self = NULL;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	self = (TestDiffView*) g_type_create_instance (object_type);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return self;
#line 1053 "diff-view.c"
}


TestDiffView* test_diff_view_new (void) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return test_diff_view_construct (TYPE_TEST_DIFF_VIEW);
#line 1060 "diff-view.c"
}


static void value_test_diff_view_init (GValue* value) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	value->data[0].v_pointer = NULL;
#line 1067 "diff-view.c"
}


static void value_test_diff_view_free_value (GValue* value) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (value->data[0].v_pointer) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		test_diff_view_unref (value->data[0].v_pointer);
#line 1076 "diff-view.c"
	}
}


static void value_test_diff_view_copy_value (const GValue* src_value, GValue* dest_value) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (src_value->data[0].v_pointer) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		dest_value->data[0].v_pointer = test_diff_view_ref (src_value->data[0].v_pointer);
#line 1086 "diff-view.c"
	} else {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		dest_value->data[0].v_pointer = NULL;
#line 1090 "diff-view.c"
	}
}


static gpointer value_test_diff_view_peek_pointer (const GValue* value) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return value->data[0].v_pointer;
#line 1098 "diff-view.c"
}


static gchar* value_test_diff_view_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (collect_values[0].v_pointer) {
#line 1105 "diff-view.c"
		TestDiffView * object;
		object = collect_values[0].v_pointer;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		if (object->parent_instance.g_class == NULL) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1112 "diff-view.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1116 "diff-view.c"
		}
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = test_diff_view_ref (object);
#line 1120 "diff-view.c"
	} else {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = NULL;
#line 1124 "diff-view.c"
	}
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return NULL;
#line 1128 "diff-view.c"
}


static gchar* value_test_diff_view_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TestDiffView ** object_p;
	object_p = collect_values[0].v_pointer;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (!object_p) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1139 "diff-view.c"
	}
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (!value->data[0].v_pointer) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		*object_p = NULL;
#line 1145 "diff-view.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		*object_p = value->data[0].v_pointer;
#line 1149 "diff-view.c"
	} else {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		*object_p = test_diff_view_ref (value->data[0].v_pointer);
#line 1153 "diff-view.c"
	}
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return NULL;
#line 1157 "diff-view.c"
}


GParamSpec* param_spec_test_diff_view (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecTestDiffView* spec;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEST_DIFF_VIEW), NULL);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return G_PARAM_SPEC (spec);
#line 1171 "diff-view.c"
}


gpointer value_get_test_diff_view (const GValue* value) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_DIFF_VIEW), NULL);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return value->data[0].v_pointer;
#line 1180 "diff-view.c"
}


void value_set_test_diff_view (GValue* value, gpointer v_object) {
	TestDiffView * old;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	old = value->data[0].v_pointer;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (v_object) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = v_object;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		test_diff_view_ref (value->data[0].v_pointer);
#line 1200 "diff-view.c"
	} else {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = NULL;
#line 1204 "diff-view.c"
	}
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (old) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		test_diff_view_unref (old);
#line 1210 "diff-view.c"
	}
}


void value_take_test_diff_view (GValue* value, gpointer v_object) {
	TestDiffView * old;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	old = value->data[0].v_pointer;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (v_object) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = v_object;
#line 1229 "diff-view.c"
	} else {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = NULL;
#line 1233 "diff-view.c"
	}
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (old) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		test_diff_view_unref (old);
#line 1239 "diff-view.c"
	}
}


static void test_diff_view_class_init (TestDiffViewClass * klass) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	test_diff_view_parent_class = g_type_class_peek_parent (klass);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	((TestDiffViewClass *) klass)->finalize = test_diff_view_finalize;
#line 1249 "diff-view.c"
}


static void test_diff_view_instance_init (TestDiffView * self) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	self->ref_count = 1;
#line 1256 "diff-view.c"
}


static void test_diff_view_finalize (TestDiffView * obj) {
	TestDiffView * self;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEST_DIFF_VIEW, TestDiffView);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_signal_handlers_destroy (self);
#line 1266 "diff-view.c"
}


GType test_diff_view_get_type (void) {
	static volatile gsize test_diff_view_type_id__volatile = 0;
	if (g_once_init_enter (&test_diff_view_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { value_test_diff_view_init, value_test_diff_view_free_value, value_test_diff_view_copy_value, value_test_diff_view_peek_pointer, "p", value_test_diff_view_collect_value, "p", value_test_diff_view_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TestDiffViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) test_diff_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TestDiffView), 0, (GInstanceInitFunc) test_diff_view_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType test_diff_view_type_id;
		test_diff_view_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TestDiffView", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&test_diff_view_type_id__volatile, test_diff_view_type_id);
	}
	return test_diff_view_type_id__volatile;
}


gpointer test_diff_view_ref (gpointer instance) {
	TestDiffView * self;
	self = instance;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	g_atomic_int_inc (&self->ref_count);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	return instance;
#line 1291 "diff-view.c"
}


void test_diff_view_unref (gpointer instance) {
	TestDiffView * self;
	self = instance;
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		TEST_DIFF_VIEW_GET_CLASS (self)->finalize (self);
#line 1 "/home/jesse/dev/gitg/tests/diff-view.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1304 "diff-view.c"
	}
}


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


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


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



