/* gitg-ref-base.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-ref-base.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 <libgit2-glib/ggit.h>


#define GITG_TYPE_REF (gitg_ref_get_type ())
#define GITG_REF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF, GitgRef))
#define GITG_IS_REF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF))
#define GITG_REF_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_REF, GitgRefIface))

typedef struct _GitgRef GitgRef;
typedef struct _GitgRefIface GitgRefIface;

#define GITG_TYPE_REPOSITORY (gitg_repository_get_type ())
#define GITG_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REPOSITORY, GitgRepository))
#define GITG_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REPOSITORY, GitgRepositoryClass))
#define GITG_IS_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REPOSITORY))
#define GITG_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REPOSITORY))
#define GITG_REPOSITORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REPOSITORY, GitgRepositoryClass))

typedef struct _GitgRepository GitgRepository;
typedef struct _GitgRepositoryClass GitgRepositoryClass;

#define GITG_TYPE_PARSED_REF_NAME (gitg_parsed_ref_name_get_type ())
#define GITG_PARSED_REF_NAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PARSED_REF_NAME, GitgParsedRefName))
#define GITG_PARSED_REF_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PARSED_REF_NAME, GitgParsedRefNameClass))
#define GITG_IS_PARSED_REF_NAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PARSED_REF_NAME))
#define GITG_IS_PARSED_REF_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PARSED_REF_NAME))
#define GITG_PARSED_REF_NAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PARSED_REF_NAME, GitgParsedRefNameClass))

typedef struct _GitgParsedRefName GitgParsedRefName;
typedef struct _GitgParsedRefNameClass GitgParsedRefNameClass;

#define GITG_TYPE_REF_STATE (gitg_ref_state_get_type ())

#define GITG_TYPE_REF_BASE (gitg_ref_base_get_type ())
#define GITG_REF_BASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_BASE, GitgRefBase))
#define GITG_REF_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_BASE, GitgRefBaseClass))
#define GITG_IS_REF_BASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_BASE))
#define GITG_IS_REF_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_BASE))
#define GITG_REF_BASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_BASE, GitgRefBaseClass))

typedef struct _GitgRefBase GitgRefBase;
typedef struct _GitgRefBaseClass GitgRefBaseClass;
typedef struct _GitgRefBasePrivate GitgRefBasePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

typedef enum  {
	GITG_REF_STATE_NONE,
	GITG_REF_STATE_SELECTED,
	GITG_REF_STATE_PRELIGHT
} GitgRefState;

struct _GitgRefIface {
	GTypeInterface parent_iface;
	GitgRepository* (*get_owner) (GitgRef* self);
	GitgParsedRefName* (*get_d_parsed_name) (GitgRef* self);
	void (*set_d_parsed_name) (GitgRef* self, GitgParsedRefName* value);
	GList* (*get_d_pushes) (GitgRef* self);
	void (*set_d_pushes) (GitgRef* self, GList* value);
	GitgRefState (*get_state) (GitgRef* self);
	void (*set_state) (GitgRef* self, GitgRefState value);
	gboolean (*get_working) (GitgRef* self);
	void (*set_working) (GitgRef* self, gboolean value);
};

struct _GitgRefBase {
	GgitRef parent_instance;
	GitgRefBasePrivate * priv;
};

struct _GitgRefBaseClass {
	GgitRefClass parent_class;
};

struct _GitgRefBasePrivate {
	GitgParsedRefName* _d_parsed_name;
	GList* _d_pushes;
	GitgRefState _state;
	gboolean _working;
};


static gpointer gitg_ref_base_parent_class = NULL;
static GitgRefIface* gitg_ref_base_gitg_ref_parent_iface = NULL;

GType gitg_repository_get_type (void) G_GNUC_CONST;
GType gitg_parsed_ref_name_get_type (void) G_GNUC_CONST;
GType gitg_ref_state_get_type (void) G_GNUC_CONST;
GType gitg_ref_get_type (void) G_GNUC_CONST;
GType gitg_ref_base_get_type (void) G_GNUC_CONST;
#define GITG_REF_BASE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_REF_BASE, GitgRefBasePrivate))
enum  {
	GITG_REF_BASE_DUMMY_PROPERTY,
	GITG_REF_BASE_D_PARSED_NAME,
	GITG_REF_BASE_D_PUSHES,
	GITG_REF_BASE_STATE,
	GITG_REF_BASE_WORKING
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static GitgRepository* gitg_ref_base_real_get_owner (GitgRef* base);
GitgRefBase* gitg_ref_base_new (void);
GitgRefBase* gitg_ref_base_construct (GType object_type);
static void gitg_ref_base_finalize (GObject* obj);
GitgParsedRefName* gitg_ref_get_d_parsed_name (GitgRef* self);
GList* gitg_ref_get_d_pushes (GitgRef* self);
GitgRefState gitg_ref_get_state (GitgRef* self);
gboolean gitg_ref_get_working (GitgRef* self);
static void _vala_gitg_ref_base_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void gitg_ref_set_d_parsed_name (GitgRef* self, GitgParsedRefName* value);
void gitg_ref_set_d_pushes (GitgRef* self, GList* value);
void gitg_ref_set_state (GitgRef* self, GitgRefState value);
void gitg_ref_set_working (GitgRef* self, gboolean value);
static void _vala_gitg_ref_base_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void _g_object_unref0_ (gpointer var) {
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 145 "gitg-ref-base.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_list_free (self);
#line 154 "gitg-ref-base.c"
}


static GitgRepository* gitg_ref_base_real_get_owner (GitgRef* base) {
	GitgRefBase * self;
	GitgRepository* result = NULL;
	GgitRepository* _tmp0_ = NULL;
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = ggit_ref_get_owner (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_ref_get_type (), GgitRef));
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_TYPE_REPOSITORY, GitgRepository);
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return result;
#line 170 "gitg-ref-base.c"
}


GitgRefBase* gitg_ref_base_construct (GType object_type) {
	GitgRefBase * self = NULL;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) g_object_new (object_type, NULL);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return self;
#line 180 "gitg-ref-base.c"
}


GitgRefBase* gitg_ref_base_new (void) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return gitg_ref_base_construct (GITG_TYPE_REF_BASE);
#line 187 "gitg-ref-base.c"
}


static GitgParsedRefName* gitg_ref_base_real_get_d_parsed_name (GitgRef* base) {
	GitgParsedRefName* result;
	GitgRefBase* self;
	GitgParsedRefName* _tmp0_ = NULL;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = self->priv->_d_parsed_name;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	result = _tmp0_;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return result;
#line 203 "gitg-ref-base.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return self ? g_object_ref (self) : NULL;
#line 210 "gitg-ref-base.c"
}


static void gitg_ref_base_real_set_d_parsed_name (GitgRef* base, GitgParsedRefName* value) {
	GitgRefBase* self;
	GitgParsedRefName* _tmp0_ = NULL;
	GitgParsedRefName* _tmp1_ = NULL;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = value;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_g_object_unref0 (self->priv->_d_parsed_name);
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self->priv->_d_parsed_name = _tmp1_;
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_notify ((GObject *) self, "d-parsed-name");
#line 230 "gitg-ref-base.c"
}


static GList* gitg_ref_base_real_get_d_pushes (GitgRef* base) {
	GList* result;
	GitgRefBase* self;
	GList* _tmp0_ = NULL;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = self->priv->_d_pushes;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	result = _tmp0_;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return result;
#line 246 "gitg-ref-base.c"
}


static void gitg_ref_base_real_set_d_pushes (GitgRef* base, GList* value) {
	GitgRefBase* self;
	GList* _tmp0_ = NULL;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = value;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	value = NULL;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	__g_list_free__g_object_unref0_0 (self->priv->_d_pushes);
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self->priv->_d_pushes = _tmp0_;
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	__g_list_free__g_object_unref0_0 (value);
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_notify ((GObject *) self, "d-pushes");
#line 267 "gitg-ref-base.c"
}


static GitgRefState gitg_ref_base_real_get_state (GitgRef* base) {
	GitgRefState result;
	GitgRefBase* self;
	GitgRefState _tmp0_ = 0;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = self->priv->_state;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	result = _tmp0_;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return result;
#line 283 "gitg-ref-base.c"
}


static void gitg_ref_base_real_set_state (GitgRef* base, GitgRefState value) {
	GitgRefBase* self;
	GitgRefState _tmp0_ = 0;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self->priv->_state = _tmp0_;
#line 28 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_notify ((GObject *) self, "state");
#line 298 "gitg-ref-base.c"
}


static gboolean gitg_ref_base_real_get_working (GitgRef* base) {
	gboolean result;
	GitgRefBase* self;
	gboolean _tmp0_ = FALSE;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = self->priv->_working;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	result = _tmp0_;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	return result;
#line 314 "gitg-ref-base.c"
}


static void gitg_ref_base_real_set_working (GitgRef* base, gboolean value) {
	GitgRefBase* self;
	gboolean _tmp0_ = FALSE;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = (GitgRefBase*) base;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_tmp0_ = value;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self->priv->_working = _tmp0_;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_notify ((GObject *) self, "working");
#line 329 "gitg-ref-base.c"
}


static void gitg_ref_base_class_init (GitgRefBaseClass * klass) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	gitg_ref_base_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_type_class_add_private (klass, sizeof (GitgRefBasePrivate));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ref_base_get_property;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ref_base_set_property;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ref_base_finalize;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_BASE_D_PARSED_NAME, g_param_spec_object ("d-parsed-name", "d-parsed-name", "d-parsed-name", GITG_TYPE_PARSED_REF_NAME, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_BASE_D_PUSHES, g_param_spec_pointer ("d-pushes", "d-pushes", "d-pushes", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_BASE_STATE, g_param_spec_enum ("state", "state", "state", GITG_TYPE_REF_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_BASE_WORKING, g_param_spec_boolean ("working", "working", "working", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 352 "gitg-ref-base.c"
}


static void gitg_ref_base_gitg_ref_interface_init (GitgRefIface * iface) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	gitg_ref_base_gitg_ref_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->get_owner = (GitgRepository* (*)(GitgRef*)) gitg_ref_base_real_get_owner;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->get_d_parsed_name = gitg_ref_base_real_get_d_parsed_name;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->set_d_parsed_name = gitg_ref_base_real_set_d_parsed_name;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->get_d_pushes = gitg_ref_base_real_get_d_pushes;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->set_d_pushes = gitg_ref_base_real_set_d_pushes;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->get_state = gitg_ref_base_real_get_state;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->set_state = gitg_ref_base_real_set_state;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->get_working = gitg_ref_base_real_get_working;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	iface->set_working = gitg_ref_base_real_set_working;
#line 377 "gitg-ref-base.c"
}


static void gitg_ref_base_instance_init (GitgRefBase * self) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self->priv = GITG_REF_BASE_GET_PRIVATE (self);
#line 384 "gitg-ref-base.c"
}


static void gitg_ref_base_finalize (GObject* obj) {
	GitgRefBase * self;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_BASE, GitgRefBase);
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	_g_object_unref0 (self->priv->_d_parsed_name);
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	__g_list_free__g_object_unref0_0 (self->priv->_d_pushes);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	G_OBJECT_CLASS (gitg_ref_base_parent_class)->finalize (obj);
#line 398 "gitg-ref-base.c"
}


GType gitg_ref_base_get_type (void) {
	static volatile gsize gitg_ref_base_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_base_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRefBaseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ref_base_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgRefBase), 0, (GInstanceInitFunc) gitg_ref_base_instance_init, NULL };
		static const GInterfaceInfo gitg_ref_info = { (GInterfaceInitFunc) gitg_ref_base_gitg_ref_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_ref_base_type_id;
		gitg_ref_base_type_id = g_type_register_static (ggit_ref_get_type (), "GitgRefBase", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_ref_base_type_id, GITG_TYPE_REF, &gitg_ref_info);
		g_once_init_leave (&gitg_ref_base_type_id__volatile, gitg_ref_base_type_id);
	}
	return gitg_ref_base_type_id__volatile;
}


static void _vala_gitg_ref_base_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgRefBase * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_BASE, GitgRefBase);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_D_PARSED_NAME:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		g_value_set_object (value, gitg_ref_get_d_parsed_name ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_D_PUSHES:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		g_value_set_pointer (value, gitg_ref_get_d_pushes ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_STATE:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		g_value_set_enum (value, gitg_ref_get_state ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_WORKING:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		g_value_set_boolean (value, gitg_ref_get_working ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 445 "gitg-ref-base.c"
		default:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 451 "gitg-ref-base.c"
	}
}


static void _vala_gitg_ref_base_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgRefBase * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_BASE, GitgRefBase);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_D_PARSED_NAME:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		gitg_ref_set_d_parsed_name ((GitgRef*) self, g_value_get_object (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_D_PUSHES:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		gitg_ref_set_d_pushes ((GitgRef*) self, g_value_get_pointer (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_STATE:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		gitg_ref_set_state ((GitgRef*) self, g_value_get_enum (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		case GITG_REF_BASE_WORKING:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		gitg_ref_set_working ((GitgRef*) self, g_value_get_boolean (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 485 "gitg-ref-base.c"
		default:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-ref-base.vala"
		break;
#line 491 "gitg-ref-base.c"
	}
}



