/* repository-list-box.c generated by valac 0.32.1, the Vala compiler
 * generated from repository-list-box.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 <gdk/gdk.h>
#include <gobject/gvaluecollector.h>


#define TYPE_TEST_REPOSITORY_LIST_BOX (test_repository_list_box_get_type ())
#define TEST_REPOSITORY_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEST_REPOSITORY_LIST_BOX, TestRepositoryListBox))
#define TEST_REPOSITORY_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEST_REPOSITORY_LIST_BOX, TestRepositoryListBoxClass))
#define IS_TEST_REPOSITORY_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEST_REPOSITORY_LIST_BOX))
#define IS_TEST_REPOSITORY_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEST_REPOSITORY_LIST_BOX))
#define TEST_REPOSITORY_LIST_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEST_REPOSITORY_LIST_BOX, TestRepositoryListBoxClass))

typedef struct _TestRepositoryListBox TestRepositoryListBox;
typedef struct _TestRepositoryListBoxClass TestRepositoryListBoxClass;
typedef struct _TestRepositoryListBoxPrivate TestRepositoryListBoxPrivate;
#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)))
typedef struct _ParamSpecTestRepositoryListBox ParamSpecTestRepositoryListBox;

struct _TestRepositoryListBox {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TestRepositoryListBoxPrivate * priv;
};

struct _TestRepositoryListBoxClass {
	GTypeClass parent_class;
	void (*finalize) (TestRepositoryListBox *self);
};

struct _ParamSpecTestRepositoryListBox {
	GParamSpec parent_instance;
};


static gpointer test_repository_list_box_parent_class = NULL;

gpointer test_repository_list_box_ref (gpointer instance);
void test_repository_list_box_unref (gpointer instance);
GParamSpec* param_spec_test_repository_list_box (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_test_repository_list_box (GValue* value, gpointer v_object);
void value_take_test_repository_list_box (GValue* value, gpointer v_object);
gpointer value_get_test_repository_list_box (const GValue* value);
GType test_repository_list_box_get_type (void) G_GNUC_CONST;
enum  {
	TEST_REPOSITORY_LIST_BOX_DUMMY_PROPERTY
};
gint test_repository_list_box_main (gchar** args, int args_length1);
static gboolean __lambda4_ (GtkWidget* w, GdkEventAny* ev);
static gboolean ___lambda4__gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
TestRepositoryListBox* test_repository_list_box_new (void);
TestRepositoryListBox* test_repository_list_box_construct (GType object_type);
static void test_repository_list_box_finalize (TestRepositoryListBox* obj);


static gboolean __lambda4_ (GtkWidget* w, GdkEventAny* ev) {
	gboolean result = FALSE;
#line 25 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_return_val_if_fail (w != NULL, FALSE);
#line 25 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_return_val_if_fail (ev != NULL, FALSE);
#line 26 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	gtk_main_quit ();
#line 27 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	result = TRUE;
#line 27 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return result;
#line 79 "repository-list-box.c"
}


static gboolean ___lambda4__gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
	gboolean result;
	result = __lambda4_ (_sender, event);
#line 25 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return result;
#line 88 "repository-list-box.c"
}


gint test_repository_list_box_main (gchar** args, int args_length1) {
	gint result = 0;
	GtkWindow* window = NULL;
	GtkWindow* _tmp3_ = NULL;
	GtkWindow* _tmp4_ = NULL;
	GtkWindow* _tmp5_ = NULL;
	GitgRepositoryListBox* _tmp6_ = NULL;
	GitgRepositoryListBox* _tmp7_ = NULL;
	GtkWindow* _tmp8_ = NULL;
	GtkWindow* _tmp9_ = NULL;
	GError * _inner_error_ = NULL;
#line 8 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	gtk_init (&args_length1, &args);
#line 105 "repository-list-box.c"
	{
#line 12 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		gitg_init (&_inner_error_);
#line 12 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 111 "repository-list-box.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		FILE* _tmp0_ = NULL;
		GError* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
#line 10 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		e = _inner_error_;
#line 10 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		_inner_error_ = NULL;
#line 16 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		_tmp0_ = stderr;
#line 16 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		_tmp1_ = e;
#line 16 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		_tmp2_ = _tmp1_->message;
#line 16 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		fprintf (_tmp0_, "Failed to initialize ggit: %s\n", _tmp2_);
#line 17 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		result = 1;
#line 17 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		_g_error_free0 (e);
#line 17 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		return result;
#line 140 "repository-list-box.c"
	}
	__finally0:
#line 10 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 10 "/home/jesse/dev/gitg/tests/repository-list-box.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 10 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		g_clear_error (&_inner_error_);
#line 10 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		return 0;
#line 151 "repository-list-box.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_tmp3_ = (GtkWindow*) gtk_window_new (GTK_WINDOW_TOPLEVEL);
#line 20 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_object_ref_sink (_tmp3_);
#line 20 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	window = _tmp3_;
#line 21 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_tmp4_ = window;
#line 21 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	gtk_window_set_default_size (_tmp4_, 300, 300);
#line 22 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_tmp5_ = window;
#line 22 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_tmp6_ = gitg_repository_list_box_new ();
#line 22 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_object_ref_sink (_tmp6_);
#line 22 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_tmp7_ = _tmp6_;
#line 22 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	gtk_container_add ((GtkContainer*) _tmp5_, (GtkWidget*) _tmp7_);
#line 22 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_g_object_unref0 (_tmp7_);
#line 23 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_tmp8_ = window;
#line 23 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	gtk_widget_show_all ((GtkWidget*) _tmp8_);
#line 25 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_tmp9_ = window;
#line 25 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_signal_connect ((GtkWidget*) _tmp9_, "delete-event", (GCallback) ___lambda4__gtk_widget_delete_event, NULL);
#line 30 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	gtk_main ();
#line 32 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	result = 0;
#line 32 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	_g_object_unref0 (window);
#line 32 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return result;
#line 191 "repository-list-box.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 6 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return test_repository_list_box_main (argv, argc);
#line 201 "repository-list-box.c"
}


TestRepositoryListBox* test_repository_list_box_construct (GType object_type) {
	TestRepositoryListBox* self = NULL;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	self = (TestRepositoryListBox*) g_type_create_instance (object_type);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return self;
#line 211 "repository-list-box.c"
}


TestRepositoryListBox* test_repository_list_box_new (void) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return test_repository_list_box_construct (TYPE_TEST_REPOSITORY_LIST_BOX);
#line 218 "repository-list-box.c"
}


static void value_test_repository_list_box_init (GValue* value) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	value->data[0].v_pointer = NULL;
#line 225 "repository-list-box.c"
}


static void value_test_repository_list_box_free_value (GValue* value) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (value->data[0].v_pointer) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		test_repository_list_box_unref (value->data[0].v_pointer);
#line 234 "repository-list-box.c"
	}
}


static void value_test_repository_list_box_copy_value (const GValue* src_value, GValue* dest_value) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (src_value->data[0].v_pointer) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		dest_value->data[0].v_pointer = test_repository_list_box_ref (src_value->data[0].v_pointer);
#line 244 "repository-list-box.c"
	} else {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		dest_value->data[0].v_pointer = NULL;
#line 248 "repository-list-box.c"
	}
}


static gpointer value_test_repository_list_box_peek_pointer (const GValue* value) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return value->data[0].v_pointer;
#line 256 "repository-list-box.c"
}


static gchar* value_test_repository_list_box_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (collect_values[0].v_pointer) {
#line 263 "repository-list-box.c"
		TestRepositoryListBox* object;
		object = collect_values[0].v_pointer;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		if (object->parent_instance.g_class == NULL) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 270 "repository-list-box.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.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 274 "repository-list-box.c"
		}
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		value->data[0].v_pointer = test_repository_list_box_ref (object);
#line 278 "repository-list-box.c"
	} else {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		value->data[0].v_pointer = NULL;
#line 282 "repository-list-box.c"
	}
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return NULL;
#line 286 "repository-list-box.c"
}


static gchar* value_test_repository_list_box_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TestRepositoryListBox** object_p;
	object_p = collect_values[0].v_pointer;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (!object_p) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 297 "repository-list-box.c"
	}
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (!value->data[0].v_pointer) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		*object_p = NULL;
#line 303 "repository-list-box.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		*object_p = value->data[0].v_pointer;
#line 307 "repository-list-box.c"
	} else {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		*object_p = test_repository_list_box_ref (value->data[0].v_pointer);
#line 311 "repository-list-box.c"
	}
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return NULL;
#line 315 "repository-list-box.c"
}


GParamSpec* param_spec_test_repository_list_box (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecTestRepositoryListBox* spec;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEST_REPOSITORY_LIST_BOX), NULL);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return G_PARAM_SPEC (spec);
#line 329 "repository-list-box.c"
}


gpointer value_get_test_repository_list_box (const GValue* value) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_REPOSITORY_LIST_BOX), NULL);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return value->data[0].v_pointer;
#line 338 "repository-list-box.c"
}


void value_set_test_repository_list_box (GValue* value, gpointer v_object) {
	TestRepositoryListBox* old;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_REPOSITORY_LIST_BOX));
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	old = value->data[0].v_pointer;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (v_object) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_REPOSITORY_LIST_BOX));
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		value->data[0].v_pointer = v_object;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		test_repository_list_box_ref (value->data[0].v_pointer);
#line 358 "repository-list-box.c"
	} else {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		value->data[0].v_pointer = NULL;
#line 362 "repository-list-box.c"
	}
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (old) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		test_repository_list_box_unref (old);
#line 368 "repository-list-box.c"
	}
}


void value_take_test_repository_list_box (GValue* value, gpointer v_object) {
	TestRepositoryListBox* old;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_REPOSITORY_LIST_BOX));
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	old = value->data[0].v_pointer;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (v_object) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_REPOSITORY_LIST_BOX));
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		value->data[0].v_pointer = v_object;
#line 387 "repository-list-box.c"
	} else {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		value->data[0].v_pointer = NULL;
#line 391 "repository-list-box.c"
	}
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (old) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		test_repository_list_box_unref (old);
#line 397 "repository-list-box.c"
	}
}


static void test_repository_list_box_class_init (TestRepositoryListBoxClass * klass) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	test_repository_list_box_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	((TestRepositoryListBoxClass *) klass)->finalize = test_repository_list_box_finalize;
#line 407 "repository-list-box.c"
}


static void test_repository_list_box_instance_init (TestRepositoryListBox * self) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	self->ref_count = 1;
#line 414 "repository-list-box.c"
}


static void test_repository_list_box_finalize (TestRepositoryListBox* obj) {
	TestRepositoryListBox * self;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEST_REPOSITORY_LIST_BOX, TestRepositoryListBox);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_signal_handlers_destroy (self);
#line 424 "repository-list-box.c"
}


GType test_repository_list_box_get_type (void) {
	static volatile gsize test_repository_list_box_type_id__volatile = 0;
	if (g_once_init_enter (&test_repository_list_box_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { value_test_repository_list_box_init, value_test_repository_list_box_free_value, value_test_repository_list_box_copy_value, value_test_repository_list_box_peek_pointer, "p", value_test_repository_list_box_collect_value, "p", value_test_repository_list_box_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TestRepositoryListBoxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) test_repository_list_box_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TestRepositoryListBox), 0, (GInstanceInitFunc) test_repository_list_box_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_repository_list_box_type_id;
		test_repository_list_box_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TestRepositoryListBox", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&test_repository_list_box_type_id__volatile, test_repository_list_box_type_id);
	}
	return test_repository_list_box_type_id__volatile;
}


gpointer test_repository_list_box_ref (gpointer instance) {
	TestRepositoryListBox* self;
	self = instance;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	g_atomic_int_inc (&self->ref_count);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	return instance;
#line 449 "repository-list-box.c"
}


void test_repository_list_box_unref (gpointer instance) {
	TestRepositoryListBox* self;
	self = instance;
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		TEST_REPOSITORY_LIST_BOX_GET_CLASS (self)->finalize (self);
#line 4 "/home/jesse/dev/gitg/tests/repository-list-box.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 462 "repository-list-box.c"
	}
}



