/* diff-view.c generated by valac 0.27.1.26-9b1a5-dirty, 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 "libgitg/libgitg.h"
#include <gtk/gtk.h>
#include <stdio.h>
#include <gio/gio.h>
#include <libgit2-glib/ggit.h>
#include <gdk/gdk.h>
#include <webkit2/webkit2.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;
typedef struct _Block1Data Block1Data;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (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 _Block1Data {
	int _ref_count_;
	GitgDiffView* v;
};

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 Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
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_ (Block1Data* _data1_, GtkWidget* vv, GdkEventKey* ev);
static gboolean ___lambda4__gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self);
static gboolean __lambda5_ (GtkWidget* w, GdkEventAny* ev);
static gboolean ___lambda5__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 Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 3 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 3 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return _data1_;
#line 92 "diff-view.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 3 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 3 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (_data1_->v);
#line 3 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		g_slice_free (Block1Data, _data1_);
#line 105 "diff-view.c"
	}
}


static gchar** _vala_array_dup1 (gchar** self, int length) {
	gchar** result;
	int i;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	result = g_new0 (gchar*, length + 1);
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	for (i = 0; i < length; i++) {
#line 117 "diff-view.c"
		gchar* _tmp0_ = NULL;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp0_ = g_strdup (self[i]);
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		result[i] = _tmp0_;
#line 123 "diff-view.c"
	}
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return result;
#line 127 "diff-view.c"
}


static gchar** _vala_array_dup2 (gchar** self, int length) {
	gchar** result;
	int i;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	result = g_new0 (gchar*, length + 1);
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	for (i = 0; i < length; i++) {
#line 138 "diff-view.c"
		gchar* _tmp0_ = NULL;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp0_ = g_strdup (self[i]);
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		result[i] = _tmp0_;
#line 144 "diff-view.c"
	}
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return result;
#line 148 "diff-view.c"
}


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


static gboolean __lambda4_ (Block1Data* _data1_, GtkWidget* vv, GdkEventKey* ev) {
	gboolean result = FALSE;
	GdkModifierType state = 0;
	GdkEventKey* _tmp0_ = NULL;
	GdkModifierType _tmp1_ = 0;
	GdkModifierType _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	GdkEventKey* _tmp4_ = NULL;
	guint _tmp5_ = 0U;
#line 117 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_return_val_if_fail (vv != NULL, FALSE);
#line 117 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_return_val_if_fail (ev != NULL, FALSE);
#line 118 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp0_ = ev;
#line 118 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp1_ = _tmp0_->state;
#line 118 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp2_ = gtk_accelerator_get_default_mod_mask ();
#line 118 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	state = _tmp1_ & _tmp2_;
#line 120 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp4_ = ev;
#line 120 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp5_ = _tmp4_->keyval;
#line 120 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (_tmp5_ == ((guint) GDK_KEY_r)) {
#line 196 "diff-view.c"
		GdkModifierType _tmp6_ = 0;
#line 120 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp6_ = state;
#line 120 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp3_ = _tmp6_ == GDK_CONTROL_MASK;
#line 202 "diff-view.c"
	} else {
#line 120 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp3_ = FALSE;
#line 206 "diff-view.c"
	}
#line 120 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (_tmp3_) {
#line 210 "diff-view.c"
		GitgDiffView* _tmp7_ = NULL;
#line 122 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp7_ = _data1_->v;
#line 122 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		webkit_web_view_reload_bypass_cache ((WebKitWebView*) _tmp7_);
#line 123 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		result = TRUE;
#line 123 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return result;
#line 220 "diff-view.c"
	} else {
#line 127 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		result = FALSE;
#line 127 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return result;
#line 226 "diff-view.c"
	}
}


static gboolean ___lambda4__gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
	gboolean result;
	result = __lambda4_ (self, _sender, event);
#line 117 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return result;
#line 236 "diff-view.c"
}


static gboolean __lambda5_ (GtkWidget* w, GdkEventAny* ev) {
	gboolean result = FALSE;
#line 131 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_return_val_if_fail (w != NULL, FALSE);
#line 131 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_return_val_if_fail (ev != NULL, FALSE);
#line 132 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gtk_main_quit ();
#line 133 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	result = TRUE;
#line 133 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return result;
#line 252 "diff-view.c"
}


static gboolean ___lambda5__gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
	gboolean result;
	result = __lambda5_ (_sender, event);
#line 131 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return result;
#line 261 "diff-view.c"
}


gint test_diff_view_main (gchar** args, int args_length1) {
	gint result = 0;
	Block1Data* _data1_;
	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;
	GitgDiffView* _tmp93_ = NULL;
	GtkScrolledWindow* _tmp94_ = NULL;
	GitgDiffView* _tmp95_ = NULL;
	GitgDiffView* _tmp96_ = NULL;
	GitgCommit* _tmp97_ = NULL;
	GitgDiffView* _tmp98_ = NULL;
	GtkWindow* _tmp99_ = NULL;
	GtkWindow* _tmp100_ = NULL;
	GtkScrolledWindow* _tmp101_ = NULL;
	GtkWindow* _tmp102_ = NULL;
	const gchar* _tmp103_ = NULL;
	FILE* _tmp105_ = NULL;
	GError * _inner_error_ = NULL;
#line 3 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 3 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_data1_->_ref_count_ = 1;
#line 5 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gtk_init (&args_length1, &args);
#line 304 "diff-view.c"
	{
#line 9 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		gitg_init (&_inner_error_);
#line 9 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 310 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		e = _inner_error_;
#line 7 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_inner_error_ = NULL;
#line 13 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp0_ = stderr;
#line 13 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp1_ = e;
#line 13 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp2_ = _tmp1_->message;
#line 13 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		fprintf (_tmp0_, "Failed to initialize ggit: %s\n", _tmp2_);
#line 14 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		result = 1;
#line 14 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_error_free0 (e);
#line 14 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		block1_data_unref (_data1_);
#line 14 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_data1_ = NULL;
#line 14 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return result;
#line 343 "diff-view.c"
	}
	__finally0:
#line 7 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		block1_data_unref (_data1_);
#line 7 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_data1_ = NULL;
#line 7 "/home/garrett/hacking/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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 7 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return 0;
#line 358 "diff-view.c"
	}
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp5_ = g_getenv ("GITG_GTK_DIFF_VIEW_DEBUG");
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (g_strcmp0 (_tmp5_, "local") != 0) {
#line 364 "diff-view.c"
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp6_ = args;
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp6__length1 = args_length1;
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp4_ = _tmp6__length1 > 1;
#line 373 "diff-view.c"
	} else {
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp4_ = FALSE;
#line 377 "diff-view.c"
	}
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (_tmp4_) {
#line 381 "diff-view.c"
		gchar** _tmp7_ = NULL;
		gint _tmp7__length1 = 0;
		const gchar* _tmp8_ = NULL;
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp7_ = args;
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp7__length1 = args_length1;
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp8_ = _tmp7_[1];
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp3_ = g_strcmp0 (_tmp8_, "--local") == 0;
#line 393 "diff-view.c"
	} else {
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp3_ = FALSE;
#line 397 "diff-view.c"
	}
#line 17 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (_tmp3_) {
#line 401 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp9_ = args;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp9__length1 = args_length1;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp10_ = _tmp9_[0];
#line 20 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp11_ = g_file_new_for_path (_tmp10_);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		path = _tmp11_;
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp12_ = path;
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp13_ = g_file_get_parent (_tmp12_);
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp14_ = _tmp13_;
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp15_ = g_file_get_parent (_tmp14_);
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp16_ = _tmp15_;
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp17_ = g_file_get_parent (_tmp16_);
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp18_ = _tmp17_;
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp19_ = g_file_get_child (_tmp18_, "libgitg");
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp20_ = _tmp19_;
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp18_);
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp16_);
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp14_);
#line 21 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		gtk = _tmp20_;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp21_ = args;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp21__length1 = args_length1;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp22_ = (_tmp21_ != NULL) ? _vala_array_dup1 (_tmp21_, _tmp21__length1) : ((gpointer) _tmp21_);
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp22__length1 = _tmp21__length1;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		rargs = _tmp22_;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		rargs_length1 = _tmp22__length1;
#line 23 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_rargs_size_ = rargs_length1;
#line 25 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp23_ = rargs;
#line 25 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp23__length1 = rargs_length1;
#line 25 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp24_ = g_strdup ("../tests/diff-view");
#line 25 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_free0 (_tmp23_[0]);
#line 25 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp23_[0] = _tmp24_;
#line 25 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp25_ = _tmp23_[0];
#line 508 "diff-view.c"
		{
			gint i = 0;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			i = 1;
#line 513 "diff-view.c"
			{
				gboolean _tmp26_ = FALSE;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
				_tmp26_ = TRUE;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
				while (TRUE) {
#line 520 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					if (!_tmp26_) {
#line 535 "diff-view.c"
						gint _tmp27_ = 0;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
						_tmp27_ = i;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
						i = _tmp27_ + 1;
#line 541 "diff-view.c"
					}
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp26_ = FALSE;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp28_ = i;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp29_ = rargs;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp29__length1 = rargs_length1;
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					if (!(_tmp28_ < (_tmp29__length1 - 1))) {
#line 27 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
						break;
#line 555 "diff-view.c"
					}
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp30_ = rargs;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp30__length1 = rargs_length1;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp31_ = i;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp32_ = rargs;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp32__length1 = rargs_length1;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp33_ = i;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp34_ = _tmp32_[_tmp33_ + 1];
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp35_ = g_strdup (_tmp34_);
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_g_free0 (_tmp30_[_tmp31_]);
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp30_[_tmp31_] = _tmp35_;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
					_tmp36_ = _tmp30_[_tmp31_];
#line 579 "diff-view.c"
				}
			}
		}
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp37_ = rargs;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp37__length1 = rargs_length1;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp38_ = rargs;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp38__length1 = rargs_length1;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp39_ = ((_tmp37_ + 0) != NULL) ? _vala_array_dup2 (_tmp37_ + 0, (_tmp38__length1 - 1) - 0) : ((gpointer) (_tmp37_ + 0));
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp39__length1 = (_tmp38__length1 - 1) - 0;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		sliced = _tmp39_;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		sliced_length1 = _tmp39__length1;
#line 34 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_sliced_size_ = sliced_length1;
#line 36 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp41_ = _tmp40_ = g_get_environ ();
#line 36 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		env = _tmp41_;
#line 36 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		env_length1 = _vala_array_length (_tmp40_);
#line 36 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_env_size_ = env_length1;
#line 37 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp42_ = env;
#line 37 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp42__length1 = env_length1;
#line 37 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp43_ = g_strdup ("GITG_GTK_DIFF_VIEW_DEBUG=local");
#line 37 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_vala_array_add1 (&env, &env_length1, &_env_size_, _tmp43_);
#line 617 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp44_ = gtk;
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp45_ = g_file_get_path (_tmp44_);
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp46_ = _tmp45_;
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp47_ = sliced;
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp47__length1 = sliced_length1;
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp48_ = env;
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp48__length1 = env_length1;
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			g_spawn_sync (_tmp46_, _tmp47_, _tmp48_, 0, NULL, NULL, NULL, NULL, &_tmp49_, &_inner_error_);
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			status = _tmp49_;
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_free0 (_tmp46_);
#line 41 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 649 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			err = _inner_error_;
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 52 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp50_ = stderr;
#line 52 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp51_ = err;
#line 52 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp52_ = _tmp51_->message;
#line 52 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			fprintf (_tmp50_, "Error while spawning local version: %s\n", _tmp52_);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			result = 1;
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_error_free0 (err);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (gtk);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (path);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			block1_data_unref (_data1_);
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_data1_ = NULL;
#line 53 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			return result;
#line 692 "diff-view.c"
		}
		__finally1:
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (gtk);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (path);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			block1_data_unref (_data1_);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_data1_ = NULL;
#line 39 "/home/garrett/hacking/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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			return 0;
#line 717 "diff-view.c"
		}
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		result = status;
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		env = (_vala_array_free (env, env_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		sliced = (_vala_array_free (sliced, sliced_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		rargs = (_vala_array_free (rargs, rargs_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (gtk);
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (path);
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		block1_data_unref (_data1_);
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_data1_ = NULL;
#line 56 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return result;
#line 737 "diff-view.c"
	}
#line 59 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp53_ = g_strdup (".");
#line 59 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	inipath = _tmp53_;
#line 61 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp54_ = args;
#line 61 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp54__length1 = args_length1;
#line 61 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (_tmp54__length1 > 1) {
#line 749 "diff-view.c"
		gchar** _tmp55_ = NULL;
		gint _tmp55__length1 = 0;
		const gchar* _tmp56_ = NULL;
		gchar* _tmp57_ = NULL;
#line 63 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp55_ = args;
#line 63 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp55__length1 = args_length1;
#line 63 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp56_ = _tmp55_[1];
#line 63 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp57_ = g_strdup (_tmp56_);
#line 63 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 63 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		inipath = _tmp57_;
#line 766 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp59_ = inipath;
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp60_ = g_file_new_for_commandline_arg (_tmp59_);
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp61_ = _tmp60_;
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp62_ = ggit_repository_discover (_tmp61_, &_inner_error_);
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp63_ = _tmp62_;
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp61_);
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp58_ = _tmp63_;
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 796 "diff-view.c"
			goto __catch2_g_error;
		}
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp64_ = _tmp58_;
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp58_ = NULL;
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 71 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		repopath = _tmp64_;
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp66_ = repopath;
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp67_ = ggit_repository_open (_tmp66_, &_inner_error_);
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp65_ = _tmp67_;
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp58_);
#line 817 "diff-view.c"
			goto __catch2_g_error;
		}
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp68_ = _tmp65_;
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp65_ = NULL;
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 72 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		repo = _tmp68_;
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp65_);
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (_tmp58_);
#line 832 "diff-view.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		FILE* _tmp69_ = NULL;
		const gchar* _tmp70_ = NULL;
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_inner_error_ = NULL;
#line 76 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp69_ = stderr;
#line 76 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp70_ = inipath;
#line 76 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		fprintf (_tmp69_, "The specified path is not a git repository: %s\n", _tmp70_);
#line 77 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		result = 1;
#line 77 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 77 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 77 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 77 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		block1_data_unref (_data1_);
#line 77 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_data1_ = NULL;
#line 77 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return result;
#line 863 "diff-view.c"
	}
	__finally2:
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (repo);
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_object_unref0 (repopath);
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_g_free0 (inipath);
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		block1_data_unref (_data1_);
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_data1_ = NULL;
#line 69 "/home/garrett/hacking/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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		g_clear_error (&_inner_error_);
#line 69 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return 0;
#line 884 "diff-view.c"
	}
#line 82 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp71_ = args;
#line 82 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp71__length1 = args_length1;
#line 82 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (_tmp71__length1 > 2) {
#line 892 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp73_ = repo;
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp74_ = args;
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp74__length1 = args_length1;
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp75_ = _tmp74_[2];
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp76_ = ggit_repository_revparse (_tmp73_, _tmp75_, &_inner_error_);
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp72_ = _tmp76_;
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 916 "diff-view.c"
				goto __catch3_g_error;
			}
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp77_ = _tmp72_;
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp72_ = NULL;
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp78_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp77_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp77_) : NULL;
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			if (_tmp78_ == NULL) {
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
				_g_object_unref0 (_tmp77_);
#line 929 "diff-view.c"
			}
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 86 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			commit = _tmp78_;
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp72_);
#line 937 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp79_ = stderr;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp80_ = args;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp80__length1 = args_length1;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp81_ = _tmp80_[2];
#line 90 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			fprintf (_tmp79_, "Failed to parse `%s' as a commit.\n", _tmp81_);
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			result = 1;
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			block1_data_unref (_data1_);
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_data1_ = NULL;
#line 91 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			return result;
#line 976 "diff-view.c"
		}
		__finally3:
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			block1_data_unref (_data1_);
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_data1_ = NULL;
#line 84 "/home/garrett/hacking/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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			return 0;
#line 999 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp82_ = repo;
#line 98 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp83_ = ggit_repository_get_head (_tmp82_, &_inner_error_);
#line 98 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			head = _tmp83_;
#line 98 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1019 "diff-view.c"
				goto __catch4_g_error;
			}
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp85_ = head;
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp86_ = ggit_ref_lookup (_tmp85_, &_inner_error_);
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp84_ = _tmp86_;
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
				_g_object_unref0 (head);
#line 1032 "diff-view.c"
				goto __catch4_g_error;
			}
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp87_ = _tmp84_;
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp84_ = NULL;
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp88_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp87_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp87_) : NULL;
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			if (_tmp88_ == NULL) {
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
				_g_object_unref0 (_tmp87_);
#line 1045 "diff-view.c"
			}
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 99 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			commit = _tmp88_;
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (_tmp84_);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (head);
#line 1055 "diff-view.c"
		}
		goto __finally4;
		__catch4_g_error:
		{
			FILE* _tmp89_ = NULL;
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_inner_error_ = NULL;
#line 103 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_tmp89_ = stderr;
#line 103 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			fprintf (_tmp89_, "The repository does not have a current HEAD\n");
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			result = 1;
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			block1_data_unref (_data1_);
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_data1_ = NULL;
#line 104 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			return result;
#line 1085 "diff-view.c"
		}
		__finally4:
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (commit);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repo);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_object_unref0 (repopath);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_g_free0 (inipath);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			block1_data_unref (_data1_);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			_data1_ = NULL;
#line 96 "/home/garrett/hacking/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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			g_clear_error (&_inner_error_);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			return 0;
#line 1108 "diff-view.c"
		}
	}
#line 108 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp90_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
#line 108 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp90_);
#line 108 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	wnd = _tmp90_;
#line 109 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp91_ = wnd;
#line 109 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gtk_window_set_default_size (_tmp91_, 800, 600);
#line 110 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp92_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 110 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp92_);
#line 110 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	sw = _tmp92_;
#line 112 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp93_ = gitg_diff_view_new ();
#line 112 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_object_ref_sink (_tmp93_);
#line 112 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_data1_->v = _tmp93_;
#line 113 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp94_ = sw;
#line 113 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp95_ = _data1_->v;
#line 113 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gtk_container_add ((GtkContainer*) _tmp94_, (GtkWidget*) _tmp95_);
#line 115 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp96_ = _data1_->v;
#line 115 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp97_ = commit;
#line 115 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gitg_diff_view_set_commit (_tmp96_, _tmp97_);
#line 117 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp98_ = _data1_->v;
#line 117 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_signal_connect_data ((GtkWidget*) _tmp98_, "key-press-event", (GCallback) ___lambda4__gtk_widget_key_press_event, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 131 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp99_ = wnd;
#line 131 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	g_signal_connect ((GtkWidget*) _tmp99_, "delete-event", (GCallback) ___lambda5__gtk_widget_delete_event, NULL);
#line 136 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp100_ = wnd;
#line 136 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp101_ = sw;
#line 136 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gtk_container_add ((GtkContainer*) _tmp100_, (GtkWidget*) _tmp101_);
#line 137 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp102_ = wnd;
#line 137 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gtk_widget_show_all ((GtkWidget*) _tmp102_);
#line 139 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp103_ = g_getenv ("GITG_GTK_DIFF_VIEW_DEBUG");
#line 139 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (g_strcmp0 (_tmp103_, "local") != 0) {
#line 1167 "diff-view.c"
		FILE* _tmp104_ = NULL;
#line 141 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		_tmp104_ = stdout;
#line 141 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		fprintf (_tmp104_, "Use `diff-view --local' to use local resources.\n");
#line 1173 "diff-view.c"
	}
#line 144 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_tmp105_ = stdout;
#line 144 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	fprintf (_tmp105_, "Press Ctrl+R to refresh...\n");
#line 146 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	gtk_main ();
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	result = 0;
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_g_object_unref0 (sw);
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_g_object_unref0 (wnd);
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_g_object_unref0 (commit);
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_g_object_unref0 (repo);
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_g_object_unref0 (repopath);
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_g_free0 (inipath);
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	block1_data_unref (_data1_);
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	_data1_ = NULL;
#line 147 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return result;
#line 1201 "diff-view.c"
}


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


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


TestDiffView* test_diff_view_new (void) {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return test_diff_view_construct (TYPE_TEST_DIFF_VIEW);
#line 1228 "diff-view.c"
}


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


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


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


static gpointer value_test_diff_view_peek_pointer (const GValue* value) {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return value->data[0].v_pointer;
#line 1266 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (collect_values[0].v_pointer) {
#line 1273 "diff-view.c"
		TestDiffView* object;
		object = collect_values[0].v_pointer;
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		if (object->parent_instance.g_class == NULL) {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1280 "diff-view.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 1 "/home/garrett/hacking/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 1284 "diff-view.c"
		}
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = test_diff_view_ref (object);
#line 1288 "diff-view.c"
	} else {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		value->data[0].v_pointer = NULL;
#line 1292 "diff-view.c"
	}
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return NULL;
#line 1296 "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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (!object_p) {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1307 "diff-view.c"
	}
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	if (!value->data[0].v_pointer) {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		*object_p = NULL;
#line 1313 "diff-view.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		*object_p = value->data[0].v_pointer;
#line 1317 "diff-view.c"
	} else {
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
		*object_p = test_diff_view_ref (value->data[0].v_pointer);
#line 1321 "diff-view.c"
	}
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return NULL;
#line 1325 "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/garrett/hacking/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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 1 "/home/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return G_PARAM_SPEC (spec);
#line 1339 "diff-view.c"
}


gpointer value_get_test_diff_view (const GValue* value) {
#line 1 "/home/garrett/hacking/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/garrett/hacking/gnome/gitg/tests/diff-view.vala"
	return value->data[0].v_pointer;
#line 1348 "diff-view.c"
}


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


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


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


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


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


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



