/* gitg-dirs.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-dirs.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2012 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <libgitg/gitg-platform-support.h>
#include <gobject/gvaluecollector.h>


#define GITG_TYPE_DIRS (gitg_dirs_get_type ())
#define GITG_DIRS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIRS, GitgDirs))
#define GITG_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIRS, GitgDirsClass))
#define GITG_IS_DIRS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIRS))
#define GITG_IS_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIRS))
#define GITG_DIRS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIRS, GitgDirsClass))

typedef struct _GitgDirs GitgDirs;
typedef struct _GitgDirsClass GitgDirsClass;
typedef struct _GitgDirsPrivate GitgDirsPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _GitgParamSpecDirs GitgParamSpecDirs;

struct _GitgDirs {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgDirsPrivate * priv;
};

struct _GitgDirsClass {
	GTypeClass parent_class;
	void (*finalize) (GitgDirs *self);
};

struct _GitgParamSpecDirs {
	GParamSpec parent_instance;
};


static gpointer gitg_dirs_parent_class = NULL;

gpointer gitg_dirs_ref (gpointer instance);
void gitg_dirs_unref (gpointer instance);
GParamSpec* gitg_param_spec_dirs (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_value_set_dirs (GValue* value, gpointer v_object);
void gitg_value_take_dirs (GValue* value, gpointer v_object);
gpointer gitg_value_get_dirs (const GValue* value);
GType gitg_dirs_get_type (void) G_GNUC_CONST;
enum  {
	GITG_DIRS_DUMMY_PROPERTY
};
gchar* gitg_dirs_build_data_file (const gchar* part, ...);
gchar* gitg_dirs_get_data_dir (void);
GitgDirs* gitg_dirs_new (void);
GitgDirs* gitg_dirs_construct (GType object_type);
gchar* gitg_dirs_get_locale_dir (void);
gchar* gitg_dirs_get_lib_dir (void);
gchar* gitg_dirs_get_plugins_dir (void);
gchar* gitg_dirs_get_plugins_data_dir (void);
gchar* gitg_dirs_get_user_plugins_dir (void);
gchar* gitg_dirs_get_user_data_dir (void);
gchar* gitg_dirs_get_user_plugins_data_dir (void);
static void gitg_dirs_finalize (GitgDirs* obj);


gchar* gitg_dirs_build_data_file (const gchar* part, ...) {
	gchar* result = NULL;
	va_list l = {0};
	gchar* ret = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	g_return_val_if_fail (part != NULL, NULL);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	va_start (l, part);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_data_dir ();
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp2_ = _tmp1_;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp3_ = part;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp4_ = g_build_filename (_tmp2_, _tmp3_, NULL, NULL);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp5_ = _tmp4_;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_g_free0 (_tmp2_);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	ret = _tmp5_;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	while (TRUE) {
#line 120 "gitg-dirs.c"
		gchar* s = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_tmp6_ = va_arg (l, gchar*);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_tmp7_ = g_strdup (_tmp6_);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		s = _tmp7_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_tmp8_ = s;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		if (_tmp8_ == NULL) {
#line 76 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
			_g_free0 (s);
#line 76 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
			break;
#line 142 "gitg-dirs.c"
		}
#line 79 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_tmp9_ = ret;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_tmp10_ = s;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_tmp11_ = g_build_filename (_tmp9_, _tmp10_, NULL);
#line 79 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_g_free0 (ret);
#line 79 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		ret = _tmp11_;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		_g_free0 (s);
#line 156 "gitg-dirs.c"
	}
#line 82 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = ret;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	va_end (l);
#line 82 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 164 "gitg-dirs.c"
}


GitgDirs* gitg_dirs_construct (GType object_type) {
	GitgDirs* self = NULL;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	self = (GitgDirs*) g_type_create_instance (object_type);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return self;
#line 174 "gitg-dirs.c"
}


GitgDirs* gitg_dirs_new (void) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return gitg_dirs_construct (GITG_TYPE_DIRS);
#line 181 "gitg-dirs.c"
}


gchar* gitg_dirs_get_data_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
#line 27 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_platform_support_get_data_dir ();
#line 27 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp0_;
#line 27 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 194 "gitg-dirs.c"
}


gchar* gitg_dirs_get_locale_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
#line 32 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_platform_support_get_locale_dir ();
#line 32 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp0_;
#line 32 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 207 "gitg-dirs.c"
}


gchar* gitg_dirs_get_lib_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
#line 37 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_platform_support_get_lib_dir ();
#line 37 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp0_;
#line 37 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 220 "gitg-dirs.c"
}


gchar* gitg_dirs_get_plugins_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_lib_dir ();
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp2_ = _tmp1_;
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp3_ = g_build_filename (_tmp2_, "plugins", NULL);
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp4_ = _tmp3_;
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_g_free0 (_tmp2_);
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp4_;
#line 42 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 247 "gitg-dirs.c"
}


gchar* gitg_dirs_get_plugins_data_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_data_dir ();
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp2_ = _tmp1_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp3_ = g_build_filename (_tmp2_, "plugins", NULL);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp4_ = _tmp3_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_g_free0 (_tmp2_);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp4_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 274 "gitg-dirs.c"
}


gchar* gitg_dirs_get_user_plugins_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_user_data_dir ();
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp2_ = _tmp1_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp3_ = g_build_filename (_tmp2_, "plugins", NULL);
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp4_ = _tmp3_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_g_free0 (_tmp2_);
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp4_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 301 "gitg-dirs.c"
}


gchar* gitg_dirs_get_user_plugins_data_dir (void) {
	gchar* result;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = gitg_dirs_get_user_plugins_dir ();
#line 57 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = _tmp0_;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp1_;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 317 "gitg-dirs.c"
}


gchar* gitg_dirs_get_user_data_dir (void) {
	gchar* result;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 62 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp0_ = g_get_user_data_dir ();
#line 62 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	_tmp1_ = g_build_filename (_tmp0_, "gitg", NULL);
#line 62 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	result = _tmp1_;
#line 62 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return result;
#line 333 "gitg-dirs.c"
}


static void gitg_value_dirs_init (GValue* value) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	value->data[0].v_pointer = NULL;
#line 340 "gitg-dirs.c"
}


static void gitg_value_dirs_free_value (GValue* value) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (value->data[0].v_pointer) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_unref (value->data[0].v_pointer);
#line 349 "gitg-dirs.c"
	}
}


static void gitg_value_dirs_copy_value (const GValue* src_value, GValue* dest_value) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (src_value->data[0].v_pointer) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		dest_value->data[0].v_pointer = gitg_dirs_ref (src_value->data[0].v_pointer);
#line 359 "gitg-dirs.c"
	} else {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		dest_value->data[0].v_pointer = NULL;
#line 363 "gitg-dirs.c"
	}
}


static gpointer gitg_value_dirs_peek_pointer (const GValue* value) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return value->data[0].v_pointer;
#line 371 "gitg-dirs.c"
}


static gchar* gitg_value_dirs_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (collect_values[0].v_pointer) {
#line 378 "gitg-dirs.c"
		GitgDirs* object;
		object = collect_values[0].v_pointer;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		if (object->parent_instance.g_class == NULL) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 385 "gitg-dirs.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.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 389 "gitg-dirs.c"
		}
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = gitg_dirs_ref (object);
#line 393 "gitg-dirs.c"
	} else {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = NULL;
#line 397 "gitg-dirs.c"
	}
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return NULL;
#line 401 "gitg-dirs.c"
}


static gchar* gitg_value_dirs_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	GitgDirs** object_p;
	object_p = collect_values[0].v_pointer;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (!object_p) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 412 "gitg-dirs.c"
	}
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (!value->data[0].v_pointer) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		*object_p = NULL;
#line 418 "gitg-dirs.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		*object_p = value->data[0].v_pointer;
#line 422 "gitg-dirs.c"
	} else {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		*object_p = gitg_dirs_ref (value->data[0].v_pointer);
#line 426 "gitg-dirs.c"
	}
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return NULL;
#line 430 "gitg-dirs.c"
}


GParamSpec* gitg_param_spec_dirs (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	GitgParamSpecDirs* spec;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	g_return_val_if_fail (g_type_is_a (object_type, GITG_TYPE_DIRS), NULL);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return G_PARAM_SPEC (spec);
#line 444 "gitg-dirs.c"
}


gpointer gitg_value_get_dirs (const GValue* value) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIRS), NULL);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return value->data[0].v_pointer;
#line 453 "gitg-dirs.c"
}


void gitg_value_set_dirs (GValue* value, gpointer v_object) {
	GitgDirs* old;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIRS));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	old = value->data[0].v_pointer;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (v_object) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TYPE_DIRS));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = v_object;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_ref (value->data[0].v_pointer);
#line 473 "gitg-dirs.c"
	} else {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = NULL;
#line 477 "gitg-dirs.c"
	}
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (old) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_unref (old);
#line 483 "gitg-dirs.c"
	}
}


void gitg_value_take_dirs (GValue* value, gpointer v_object) {
	GitgDirs* old;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIRS));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	old = value->data[0].v_pointer;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (v_object) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TYPE_DIRS));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = v_object;
#line 502 "gitg-dirs.c"
	} else {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		value->data[0].v_pointer = NULL;
#line 506 "gitg-dirs.c"
	}
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (old) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		gitg_dirs_unref (old);
#line 512 "gitg-dirs.c"
	}
}


static void gitg_dirs_class_init (GitgDirsClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	gitg_dirs_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	((GitgDirsClass *) klass)->finalize = gitg_dirs_finalize;
#line 522 "gitg-dirs.c"
}


static void gitg_dirs_instance_init (GitgDirs * self) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	self->ref_count = 1;
#line 529 "gitg-dirs.c"
}


static void gitg_dirs_finalize (GitgDirs* obj) {
	GitgDirs * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIRS, GitgDirs);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	g_signal_handlers_destroy (self);
#line 539 "gitg-dirs.c"
}


GType gitg_dirs_get_type (void) {
	static volatile gsize gitg_dirs_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_dirs_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { gitg_value_dirs_init, gitg_value_dirs_free_value, gitg_value_dirs_copy_value, gitg_value_dirs_peek_pointer, "p", gitg_value_dirs_collect_value, "p", gitg_value_dirs_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (GitgDirsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_dirs_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDirs), 0, (GInstanceInitFunc) gitg_dirs_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 gitg_dirs_type_id;
		gitg_dirs_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GitgDirs", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&gitg_dirs_type_id__volatile, gitg_dirs_type_id);
	}
	return gitg_dirs_type_id__volatile;
}


gpointer gitg_dirs_ref (gpointer instance) {
	GitgDirs* self;
	self = instance;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	g_atomic_int_inc (&self->ref_count);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	return instance;
#line 564 "gitg-dirs.c"
}


void gitg_dirs_unref (gpointer instance) {
	GitgDirs* self;
	self = instance;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		GITG_DIRS_GET_CLASS (self)->finalize (self);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-dirs.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 577 "gitg-dirs.c"
	}
}



