/* gitg-branch-base.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-branch-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_BRANCH (gitg_branch_get_type ())
#define GITG_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_BRANCH, GitgBranch))
#define GITG_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_BRANCH))
#define GITG_BRANCH_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_BRANCH, GitgBranchIface))

typedef struct _GitgBranch GitgBranch;
typedef struct _GitgBranchIface GitgBranchIface;

#define GITG_TYPE_BRANCH_BASE (gitg_branch_base_get_type ())
#define GITG_BRANCH_BASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_BRANCH_BASE, GitgBranchBase))
#define GITG_BRANCH_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_BRANCH_BASE, GitgBranchBaseClass))
#define GITG_IS_BRANCH_BASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_BRANCH_BASE))
#define GITG_IS_BRANCH_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_BRANCH_BASE))
#define GITG_BRANCH_BASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_BRANCH_BASE, GitgBranchBaseClass))

typedef struct _GitgBranchBase GitgBranchBase;
typedef struct _GitgBranchBaseClass GitgBranchBaseClass;
typedef struct _GitgBranchBasePrivate GitgBranchBasePrivate;
#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 _GitgBranchIface {
	GTypeInterface parent_iface;
	GitgRef* (*get_upstream) (GitgBranch* self, GError** error);
};

struct _GitgBranchBase {
	GgitBranch parent_instance;
	GitgBranchBasePrivate * priv;
};

struct _GitgBranchBaseClass {
	GgitBranchClass parent_class;
};

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


static gpointer gitg_branch_base_parent_class = NULL;
static GitgRefIface* gitg_branch_base_gitg_ref_parent_iface = NULL;
static GitgBranchIface* gitg_branch_base_gitg_branch_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_branch_get_type (void) G_GNUC_CONST;
GType gitg_branch_base_get_type (void) G_GNUC_CONST;
#define GITG_BRANCH_BASE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_BRANCH_BASE, GitgBranchBasePrivate))
enum  {
	GITG_BRANCH_BASE_DUMMY_PROPERTY,
	GITG_BRANCH_BASE_D_PARSED_NAME,
	GITG_BRANCH_BASE_D_PUSHES,
	GITG_BRANCH_BASE_STATE,
	GITG_BRANCH_BASE_WORKING
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static GitgRepository* gitg_branch_base_real_get_owner (GitgRef* base);
static GitgRef* gitg_branch_base_real_get_upstream (GitgBranch* base, GError** error);
GitgBranchBase* gitg_branch_base_new (void);
GitgBranchBase* gitg_branch_base_construct (GType object_type);
static void gitg_branch_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_branch_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_branch_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-branch-base.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 161 "gitg-branch-base.c"
}


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


static GitgRepository* gitg_branch_base_real_get_owner (GitgRef* base) {
	GitgBranchBase * self;
	GitgRepository* result = NULL;
	GgitRepository* _tmp0_ = NULL;
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	self = (GitgBranchBase*) base;
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	_tmp0_ = ggit_ref_get_owner ((GgitRef*) G_TYPE_CHECK_INSTANCE_CAST (self, ggit_branch_get_type (), GgitBranch));
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_TYPE_REPOSITORY, GitgRepository);
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	return result;
#line 186 "gitg-branch-base.c"
}


static GitgRef* gitg_branch_base_real_get_upstream (GitgBranch* base, GError** error) {
	GitgBranchBase * self;
	GitgRef* result = NULL;
	GgitRef* _tmp0_ = NULL;
	GgitRef* _tmp1_ = NULL;
	GgitRef* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 36 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	self = (GitgBranchBase*) base;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	_tmp1_ = ggit_branch_get_upstream (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_branch_get_type (), GgitBranch), &_inner_error_);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	_tmp0_ = _tmp1_;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		g_propagate_error (error, _inner_error_);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		return NULL;
#line 209 "gitg-branch-base.c"
	}
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	_tmp2_ = _tmp0_;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	_tmp0_ = NULL;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GITG_TYPE_REF, GitgRef);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	_g_object_unref0 (_tmp0_);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	return result;
#line 221 "gitg-branch-base.c"
}


GitgBranchBase* gitg_branch_base_construct (GType object_type) {
	GitgBranchBase * self = NULL;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	self = (GitgBranchBase*) g_object_new (object_type, NULL);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	return self;
#line 231 "gitg-branch-base.c"
}


GitgBranchBase* gitg_branch_base_new (void) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	return gitg_branch_base_construct (GITG_TYPE_BRANCH_BASE);
#line 238 "gitg-branch-base.c"
}


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


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


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


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


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


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


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


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


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


static void gitg_branch_base_class_init (GitgBranchBaseClass * klass) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	gitg_branch_base_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	g_type_class_add_private (klass, sizeof (GitgBranchBasePrivate));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_branch_base_get_property;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_branch_base_set_property;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_branch_base_finalize;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_BRANCH_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-branch-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_BRANCH_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-branch-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_BRANCH_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-branch-base.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_BRANCH_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 403 "gitg-branch-base.c"
}


static void gitg_branch_base_gitg_ref_interface_init (GitgRefIface * iface) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	gitg_branch_base_gitg_ref_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->get_owner = (GitgRepository* (*)(GitgRef*)) gitg_branch_base_real_get_owner;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->get_d_parsed_name = gitg_branch_base_real_get_d_parsed_name;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->set_d_parsed_name = gitg_branch_base_real_set_d_parsed_name;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->get_d_pushes = gitg_branch_base_real_get_d_pushes;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->set_d_pushes = gitg_branch_base_real_set_d_pushes;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->get_state = gitg_branch_base_real_get_state;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->set_state = gitg_branch_base_real_set_state;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->get_working = gitg_branch_base_real_get_working;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->set_working = gitg_branch_base_real_set_working;
#line 428 "gitg-branch-base.c"
}


static void gitg_branch_base_gitg_branch_interface_init (GitgBranchIface * iface) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	gitg_branch_base_gitg_branch_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	iface->get_upstream = (GitgRef* (*)(GitgBranch*, GError**)) gitg_branch_base_real_get_upstream;
#line 437 "gitg-branch-base.c"
}


static void gitg_branch_base_instance_init (GitgBranchBase * self) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	self->priv = GITG_BRANCH_BASE_GET_PRIVATE (self);
#line 444 "gitg-branch-base.c"
}


static void gitg_branch_base_finalize (GObject* obj) {
	GitgBranchBase * self;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_BRANCH_BASE, GitgBranchBase);
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	_g_object_unref0 (self->priv->_d_parsed_name);
#line 26 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	__g_list_free__g_object_unref0_0 (self->priv->_d_pushes);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	G_OBJECT_CLASS (gitg_branch_base_parent_class)->finalize (obj);
#line 458 "gitg-branch-base.c"
}


GType gitg_branch_base_get_type (void) {
	static volatile gsize gitg_branch_base_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_branch_base_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgBranchBaseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_branch_base_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgBranchBase), 0, (GInstanceInitFunc) gitg_branch_base_instance_init, NULL };
		static const GInterfaceInfo gitg_ref_info = { (GInterfaceInitFunc) gitg_branch_base_gitg_ref_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_branch_info = { (GInterfaceInitFunc) gitg_branch_base_gitg_branch_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_branch_base_type_id;
		gitg_branch_base_type_id = g_type_register_static (ggit_branch_get_type (), "GitgBranchBase", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_branch_base_type_id, GITG_TYPE_REF, &gitg_ref_info);
		g_type_add_interface_static (gitg_branch_base_type_id, GITG_TYPE_BRANCH, &gitg_branch_info);
		g_once_init_leave (&gitg_branch_base_type_id__volatile, gitg_branch_base_type_id);
	}
	return gitg_branch_base_type_id__volatile;
}


static void _vala_gitg_branch_base_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgBranchBase * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_BRANCH_BASE, GitgBranchBase);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_D_PARSED_NAME:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		g_value_set_object (value, gitg_ref_get_d_parsed_name ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_D_PUSHES:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		g_value_set_pointer (value, gitg_ref_get_d_pushes ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_STATE:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		g_value_set_enum (value, gitg_ref_get_state ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_WORKING:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		g_value_set_boolean (value, gitg_ref_get_working ((GitgRef*) self));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 507 "gitg-branch-base.c"
		default:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 513 "gitg-branch-base.c"
	}
}


static void _vala_gitg_branch_base_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgBranchBase * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_BRANCH_BASE, GitgBranchBase);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_D_PARSED_NAME:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		gitg_ref_set_d_parsed_name ((GitgRef*) self, g_value_get_object (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_D_PUSHES:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		gitg_ref_set_d_pushes ((GitgRef*) self, g_value_get_pointer (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_STATE:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		gitg_ref_set_state ((GitgRef*) self, g_value_get_enum (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		case GITG_BRANCH_BASE_WORKING:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		gitg_ref_set_working ((GitgRef*) self, g_value_get_boolean (value));
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 547 "gitg-branch-base.c"
		default:
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-branch-base.vala"
		break;
#line 553 "gitg-branch-base.c"
	}
}



