/* diff-view.c generated by valac 0.35.5.2-9e6c0, 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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	result = g_new0 (gchar*, length + 1);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	for (i = 0; i < length; i++) {
#line 83 "diff-view.c"
		gchar* _tmp0_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp0_ = g_strdup (self[i]);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		result[i] = _tmp0_;
#line 89 "diff-view.c"
	}
#line 23 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	result = g_new0 (gchar*, length + 1);
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	for (i = 0; i < length; i++) {
#line 104 "diff-view.c"
		gchar* _tmp0_;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp0_ = g_strdup (self[i]);
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		result[i] = _tmp0_;
#line 110 "diff-view.c"
	}
#line 34 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if ((*length) == (*size)) {
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 125 "diff-view.c"
	}
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	(*array)[(*length)++] = value;
#line 37 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_return_val_if_fail (w != NULL, FALSE);
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_return_val_if_fail (ev != NULL, FALSE);
#line 121 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_main_quit ();
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	result = TRUE;
#line 122 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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 _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	const gchar* _tmp6_;
	gchar* inipath;
	gchar* _tmp55_;
	gchar** _tmp56_;
	gint _tmp56__length1;
	GFile* repopath = NULL;
	GgitRepository* repo = NULL;
	GitgCommit* commit = NULL;
	gchar** _tmp74_;
	gint _tmp74__length1;
	GtkWindow* wnd;
	GtkWindow* _tmp95_;
	GtkWindow* _tmp96_;
	GtkScrolledWindow* sw;
	GtkScrolledWindow* _tmp97_;
	GtkScrolledWindow* _tmp98_;
	GitgDiffView* v;
	GitgDiffView* _tmp99_;
	GitgDiffView* _tmp100_;
	GtkScrolledWindow* _tmp101_;
	GitgDiffView* _tmp102_;
	GitgDiffView* _tmp103_;
	GitgCommit* _tmp104_;
	GtkWindow* _tmp105_;
	GtkWindow* _tmp106_;
	GtkScrolledWindow* _tmp107_;
	GtkWindow* _tmp108_;
	GError * _inner_error_ = NULL;
#line 5 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_init (&args_length1, &args);
#line 194 "diff-view.c"
	{
#line 9 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		gitg_init (&_inner_error_);
#line 9 "/home/mcatanzaro/Projects/GNOME/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_;
		GError* _tmp1_;
		const gchar* _tmp2_;
#line 7 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		e = _inner_error_;
#line 7 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_inner_error_ = NULL;
#line 13 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp0_ = stderr;
#line 13 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp1_ = e;
#line 13 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp2_ = _tmp1_->message;
#line 13 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		fprintf (_tmp0_, "Failed to initialize ggit: %s\n", _tmp2_);
#line 14 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		result = 1;
#line 14 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_error_free0 (e);
#line 14 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		return result;
#line 229 "diff-view.c"
	}
	__finally0:
#line 7 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 234 "diff-view.c"
		gint _tmp3_ = 0;
#line 7 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 7 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		return _tmp3_;
#line 242 "diff-view.c"
	}
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp6_ = g_getenv ("GITG_GTK_DIFF_VIEW_DEBUG");
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (g_strcmp0 (_tmp6_, "local") != 0) {
#line 248 "diff-view.c"
		gchar** _tmp7_;
		gint _tmp7__length1;
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp7_ = args;
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp7__length1 = args_length1;
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp5_ = _tmp7__length1 > 1;
#line 257 "diff-view.c"
	} else {
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp5_ = FALSE;
#line 261 "diff-view.c"
	}
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (_tmp5_) {
#line 265 "diff-view.c"
		gchar** _tmp8_;
		gint _tmp8__length1;
		const gchar* _tmp9_;
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp8_ = args;
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp8__length1 = args_length1;
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp9_ = _tmp8_[1];
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp4_ = g_strcmp0 (_tmp9_, "--local") == 0;
#line 277 "diff-view.c"
	} else {
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp4_ = FALSE;
#line 281 "diff-view.c"
	}
#line 17 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (_tmp4_) {
#line 285 "diff-view.c"
		GFile* path;
		gchar** _tmp10_;
		gint _tmp10__length1;
		const gchar* _tmp11_;
		GFile* _tmp12_;
		GFile* gtk;
		GFile* _tmp13_;
		GFile* _tmp14_;
		GFile* _tmp15_;
		GFile* _tmp16_;
		GFile* _tmp17_;
		GFile* _tmp18_;
		GFile* _tmp19_;
		GFile* _tmp20_;
		GFile* _tmp21_;
		gchar** rargs;
		gchar** _tmp22_;
		gint _tmp22__length1;
		gchar** _tmp23_;
		gint _tmp23__length1;
		gint rargs_length1;
		gint _rargs_size_;
		gchar** _tmp24_;
		gint _tmp24__length1;
		gchar* _tmp25_;
		gchar* _tmp26_;
		gint status = 0;
		gchar** sliced;
		gchar** _tmp38_;
		gint _tmp38__length1;
		gchar** _tmp39_;
		gint _tmp39__length1;
		gchar** _tmp40_;
		gint _tmp40__length1;
		gint sliced_length1;
		gint _sliced_size_;
		gchar** env;
		gchar** _tmp41_;
		gchar** _tmp42_;
		gint env_length1;
		gint _env_size_;
		gchar** _tmp43_;
		gint _tmp43__length1;
		gchar* _tmp44_;
#line 20 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp10_ = args;
#line 20 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp10__length1 = args_length1;
#line 20 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp11_ = _tmp10_[0];
#line 20 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp12_ = g_file_new_for_path (_tmp11_);
#line 20 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		path = _tmp12_;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp13_ = path;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp14_ = g_file_get_parent (_tmp13_);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp15_ = _tmp14_;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp16_ = g_file_get_parent (_tmp15_);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp17_ = _tmp16_;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp18_ = g_file_get_parent (_tmp17_);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp19_ = _tmp18_;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp20_ = g_file_get_child (_tmp19_, "libgitg");
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp21_ = _tmp20_;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp19_);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp17_);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp15_);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		gtk = _tmp21_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp22_ = args;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp22__length1 = args_length1;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp23_ = (_tmp22_ != NULL) ? _vala_array_dup1 (_tmp22_, _tmp22__length1) : ((gpointer) _tmp22_);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp23__length1 = _tmp22__length1;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		rargs = _tmp23_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		rargs_length1 = _tmp23__length1;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_rargs_size_ = rargs_length1;
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp24_ = rargs;
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp24__length1 = rargs_length1;
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp25_ = g_strdup ("../tests/diff-view");
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_free0 (_tmp24_[0]);
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp24_[0] = _tmp25_;
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp26_ = _tmp24_[0];
#line 392 "diff-view.c"
		{
			gint i;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			i = 1;
#line 397 "diff-view.c"
			{
				gboolean _tmp27_;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
				_tmp27_ = TRUE;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
				while (TRUE) {
#line 404 "diff-view.c"
					gint _tmp29_;
					gchar** _tmp30_;
					gint _tmp30__length1;
					gchar** _tmp31_;
					gint _tmp31__length1;
					gint _tmp32_;
					gchar** _tmp33_;
					gint _tmp33__length1;
					gint _tmp34_;
					const gchar* _tmp35_;
					gchar* _tmp36_;
					gchar* _tmp37_;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					if (!_tmp27_) {
#line 419 "diff-view.c"
						gint _tmp28_;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
						_tmp28_ = i;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
						i = _tmp28_ + 1;
#line 425 "diff-view.c"
					}
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp27_ = FALSE;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp29_ = i;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp30_ = rargs;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp30__length1 = rargs_length1;
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					if (!(_tmp29_ < (_tmp30__length1 - 1))) {
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
						break;
#line 439 "diff-view.c"
					}
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp31_ = rargs;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp31__length1 = rargs_length1;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp32_ = i;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp33_ = rargs;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp33__length1 = rargs_length1;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp34_ = i;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp35_ = _tmp33_[_tmp34_ + 1];
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp36_ = g_strdup (_tmp35_);
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_g_free0 (_tmp31_[_tmp32_]);
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp31_[_tmp32_] = _tmp36_;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
					_tmp37_ = _tmp31_[_tmp32_];
#line 463 "diff-view.c"
				}
			}
		}
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp38_ = rargs;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp38__length1 = rargs_length1;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp39_ = rargs;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp39__length1 = rargs_length1;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp40_ = ((_tmp38_ + 0) != NULL) ? _vala_array_dup2 (_tmp38_ + 0, (_tmp39__length1 - 1) - 0) : ((gpointer) (_tmp38_ + 0));
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp40__length1 = (_tmp39__length1 - 1) - 0;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		sliced = _tmp40_;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		sliced_length1 = _tmp40__length1;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_sliced_size_ = sliced_length1;
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp42_ = _tmp41_ = g_get_environ ();
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		env = _tmp42_;
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		env_length1 = _vala_array_length (_tmp41_);
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_env_size_ = env_length1;
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp43_ = env;
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp43__length1 = env_length1;
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp44_ = g_strdup ("GITG_GTK_DIFF_VIEW_DEBUG=local");
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_vala_array_add1 (&env, &env_length1, &_env_size_, _tmp44_);
#line 501 "diff-view.c"
		{
			GFile* _tmp45_;
			gchar* _tmp46_;
			gchar* _tmp47_;
			gchar** _tmp48_;
			gint _tmp48__length1;
			gchar** _tmp49_;
			gint _tmp49__length1;
			gint _tmp50_ = 0;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp45_ = gtk;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp46_ = g_file_get_path (_tmp45_);
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp47_ = _tmp46_;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp48_ = sliced;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp48__length1 = sliced_length1;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp49_ = env;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp49__length1 = env_length1;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			g_spawn_sync (_tmp47_, _tmp48_, _tmp49_, 0, NULL, NULL, NULL, NULL, &_tmp50_, &_inner_error_);
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			status = _tmp50_;
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_free0 (_tmp47_);
#line 41 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 533 "diff-view.c"
				goto __catch1_g_error;
			}
		}
		goto __finally1;
		__catch1_g_error:
		{
			GError* err = NULL;
			FILE* _tmp51_;
			GError* _tmp52_;
			const gchar* _tmp53_;
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			err = _inner_error_;
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 52 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp51_ = stderr;
#line 52 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp52_ = err;
#line 52 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp53_ = _tmp52_->message;
#line 52 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			fprintf (_tmp51_, "Error while spawning local version: %s\n", _tmp53_);
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			result = 1;
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_error_free0 (err);
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (gtk);
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (path);
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			return result;
#line 572 "diff-view.c"
		}
		__finally1:
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 577 "diff-view.c"
			gint _tmp54_ = 0;
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (gtk);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (path);
#line 39 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			return _tmp54_;
#line 595 "diff-view.c"
		}
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		result = status;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (gtk);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (path);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		return result;
#line 611 "diff-view.c"
	}
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp55_ = g_strdup (".");
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	inipath = _tmp55_;
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp56_ = args;
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp56__length1 = args_length1;
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (_tmp56__length1 > 1) {
#line 623 "diff-view.c"
		gchar** _tmp57_;
		gint _tmp57__length1;
		const gchar* _tmp58_;
		gchar* _tmp59_;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp57_ = args;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp57__length1 = args_length1;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp58_ = _tmp57_[1];
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp59_ = g_strdup (_tmp58_);
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		inipath = _tmp59_;
#line 640 "diff-view.c"
	}
	{
		GFile* _tmp60_;
		const gchar* _tmp61_;
		GFile* _tmp62_;
		GFile* _tmp63_;
		GFile* _tmp64_;
		GFile* _tmp65_;
		GFile* _tmp66_;
		GgitRepository* _tmp67_;
		GFile* _tmp68_;
		GgitRepository* _tmp69_;
		GgitRepository* _tmp70_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp61_ = inipath;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp62_ = g_file_new_for_commandline_arg (_tmp61_);
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp63_ = _tmp62_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp64_ = ggit_repository_discover (_tmp63_, &_inner_error_);
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp65_ = _tmp64_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp63_);
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp60_ = _tmp65_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 670 "diff-view.c"
			goto __catch2_g_error;
		}
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp66_ = _tmp60_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp60_ = NULL;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		repopath = _tmp66_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp68_ = repopath;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp69_ = ggit_repository_open (_tmp68_, &_inner_error_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp67_ = _tmp69_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp60_);
#line 691 "diff-view.c"
			goto __catch2_g_error;
		}
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp70_ = _tmp67_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp67_ = NULL;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		repo = _tmp70_;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp67_);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp60_);
#line 706 "diff-view.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		FILE* _tmp71_;
		const gchar* _tmp72_;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_inner_error_ = NULL;
#line 76 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp71_ = stderr;
#line 76 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_tmp72_ = inipath;
#line 76 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		fprintf (_tmp71_, "The specified path is not a git repository: %s\n", _tmp72_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		result = 1;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		return result;
#line 733 "diff-view.c"
	}
	__finally2:
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 738 "diff-view.c"
		gint _tmp73_ = 0;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 69 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		return _tmp73_;
#line 752 "diff-view.c"
	}
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp74_ = args;
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp74__length1 = args_length1;
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (_tmp74__length1 > 2) {
#line 760 "diff-view.c"
		{
			GgitObject* _tmp75_;
			GgitRepository* _tmp76_;
			gchar** _tmp77_;
			gint _tmp77__length1;
			const gchar* _tmp78_;
			GgitObject* _tmp79_;
			GgitObject* _tmp80_;
			GitgCommit* _tmp81_;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp76_ = repo;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp77_ = args;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp77__length1 = args_length1;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp78_ = _tmp77_[2];
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp79_ = ggit_repository_revparse (_tmp76_, _tmp78_, &_inner_error_);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp75_ = _tmp79_;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 784 "diff-view.c"
				goto __catch3_g_error;
			}
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp80_ = _tmp75_;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp75_ = NULL;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp81_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp80_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp80_) : NULL;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			if (_tmp81_ == NULL) {
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
				_g_object_unref0 (_tmp80_);
#line 797 "diff-view.c"
			}
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			commit = _tmp81_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp75_);
#line 805 "diff-view.c"
		}
		goto __finally3;
		__catch3_g_error:
		{
			FILE* _tmp82_;
			gchar** _tmp83_;
			gint _tmp83__length1;
			const gchar* _tmp84_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp82_ = stderr;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp83_ = args;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp83__length1 = args_length1;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp84_ = _tmp83_[2];
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			fprintf (_tmp82_, "Failed to parse `%s' as a commit.\n", _tmp84_);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			result = 1;
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			return result;
#line 840 "diff-view.c"
		}
		__finally3:
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 845 "diff-view.c"
			gint _tmp85_ = 0;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 84 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			return _tmp85_;
#line 861 "diff-view.c"
		}
	} else {
		{
			GgitRef* head;
			GgitRepository* _tmp86_;
			GgitRef* _tmp87_;
			GgitObject* _tmp88_;
			GgitRef* _tmp89_;
			GgitObject* _tmp90_;
			GgitObject* _tmp91_;
			GitgCommit* _tmp92_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp86_ = repo;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp87_ = ggit_repository_get_head (_tmp86_, &_inner_error_);
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			head = _tmp87_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 881 "diff-view.c"
				goto __catch4_g_error;
			}
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp89_ = head;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp90_ = ggit_ref_lookup (_tmp89_, &_inner_error_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp88_ = _tmp90_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
				_g_object_unref0 (head);
#line 894 "diff-view.c"
				goto __catch4_g_error;
			}
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp91_ = _tmp88_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp88_ = NULL;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp92_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp91_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp91_) : NULL;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			if (_tmp92_ == NULL) {
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
				_g_object_unref0 (_tmp91_);
#line 907 "diff-view.c"
			}
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			commit = _tmp92_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp88_);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (head);
#line 917 "diff-view.c"
		}
		goto __finally4;
		__catch4_g_error:
		{
			FILE* _tmp93_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_tmp93_ = stderr;
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			fprintf (_tmp93_, "The repository does not have a current HEAD\n");
#line 104 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			result = 1;
#line 104 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 104 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 104 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 104 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 104 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			return result;
#line 943 "diff-view.c"
		}
		__finally4:
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 948 "diff-view.c"
			gint _tmp94_ = 0;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 96 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			return _tmp94_;
#line 964 "diff-view.c"
		}
	}
#line 108 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp95_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
#line 108 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp95_);
#line 108 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	wnd = _tmp95_;
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp96_ = wnd;
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_window_set_default_size (_tmp96_, 800, 600);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp97_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp97_);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	sw = _tmp97_;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp98_ = sw;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_widget_show ((GtkWidget*) _tmp98_);
#line 114 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp99_ = gitg_diff_view_new ();
#line 114 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp99_);
#line 114 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	v = _tmp99_;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp100_ = v;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_widget_show ((GtkWidget*) _tmp100_);
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp101_ = sw;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp102_ = v;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_container_add ((GtkContainer*) _tmp101_, (GtkWidget*) _tmp102_);
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp103_ = v;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp104_ = commit;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gitg_diff_view_set_commit (_tmp103_, _tmp104_);
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp105_ = wnd;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_signal_connect ((GtkWidget*) _tmp105_, "delete-event", (GCallback) ___lambda4__gtk_widget_delete_event, NULL);
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp106_ = wnd;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp107_ = sw;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_container_add ((GtkContainer*) _tmp106_, (GtkWidget*) _tmp107_);
#line 126 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_tmp108_ = wnd;
#line 126 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_widget_show ((GtkWidget*) _tmp108_);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	gtk_main ();
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	result = 0;
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_g_object_unref0 (v);
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_g_object_unref0 (sw);
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_g_object_unref0 (wnd);
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_g_object_unref0 (commit);
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_g_object_unref0 (repo);
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_g_object_unref0 (repopath);
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	_g_free0 (inipath);
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	return result;
#line 1043 "diff-view.c"
}


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


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


TestDiffView* test_diff_view_new (void) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	return test_diff_view_construct (TYPE_TEST_DIFF_VIEW);
#line 1070 "diff-view.c"
}


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


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


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


static gpointer value_test_diff_view_peek_pointer (const GValue* value) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	return value->data[0].v_pointer;
#line 1108 "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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (collect_values[0].v_pointer) {
#line 1115 "diff-view.c"
		TestDiffView * object;
		object = collect_values[0].v_pointer;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		if (object->parent_instance.g_class == NULL) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1122 "diff-view.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 1 "/home/mcatanzaro/Projects/GNOME/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 1126 "diff-view.c"
		}
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = test_diff_view_ref (object);
#line 1130 "diff-view.c"
	} else {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = NULL;
#line 1134 "diff-view.c"
	}
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	return NULL;
#line 1138 "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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (!object_p) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1149 "diff-view.c"
	}
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (!value->data[0].v_pointer) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		*object_p = NULL;
#line 1155 "diff-view.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		*object_p = value->data[0].v_pointer;
#line 1159 "diff-view.c"
	} else {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		*object_p = test_diff_view_ref (value->data[0].v_pointer);
#line 1163 "diff-view.c"
	}
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	return NULL;
#line 1167 "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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEST_DIFF_VIEW), NULL);
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	return G_PARAM_SPEC (spec);
#line 1181 "diff-view.c"
}


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


void value_set_test_diff_view (GValue* value, gpointer v_object) {
	TestDiffView * old;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	old = value->data[0].v_pointer;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (v_object) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = v_object;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		test_diff_view_ref (value->data[0].v_pointer);
#line 1210 "diff-view.c"
	} else {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = NULL;
#line 1214 "diff-view.c"
	}
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (old) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		test_diff_view_unref (old);
#line 1220 "diff-view.c"
	}
}


void value_take_test_diff_view (GValue* value, gpointer v_object) {
	TestDiffView * old;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	old = value->data[0].v_pointer;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (v_object) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_DIFF_VIEW));
#line 1 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = v_object;
#line 1239 "diff-view.c"
	} else {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = NULL;
#line 1243 "diff-view.c"
	}
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (old) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		test_diff_view_unref (old);
#line 1249 "diff-view.c"
	}
}


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


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


static void test_diff_view_finalize (TestDiffView * obj) {
	TestDiffView * self;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEST_DIFF_VIEW, TestDiffView);
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_signal_handlers_destroy (self);
#line 1276 "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/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	g_atomic_int_inc (&self->ref_count);
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	return instance;
#line 1301 "diff-view.c"
}


void test_diff_view_unref (gpointer instance) {
	TestDiffView * self;
	self = instance;
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		TEST_DIFF_VIEW_GET_CLASS (self)->finalize (self);
#line 1 "/home/mcatanzaro/Projects/GNOME/gitg/tests/diff-view.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1314 "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;
}



