/* gitg-history-action-interface.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-history-action-interface.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - 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 "libgitg-ext/libgitg-ext.h"
#include <gtk/gtk.h>
#include "libgitg/libgitg.h"
#include <gee.h>


#define GITG_HISTORY_TYPE_ACTION_INTERFACE (gitg_history_action_interface_get_type ())
#define GITG_HISTORY_ACTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterface))
#define GITG_HISTORY_ACTION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterfaceClass))
#define GITG_HISTORY_IS_ACTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_ACTION_INTERFACE))
#define GITG_HISTORY_IS_ACTION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_ACTION_INTERFACE))
#define GITG_HISTORY_ACTION_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterfaceClass))

typedef struct _GitgHistoryActionInterface GitgHistoryActionInterface;
typedef struct _GitgHistoryActionInterfaceClass GitgHistoryActionInterfaceClass;
typedef struct _GitgHistoryActionInterfacePrivate GitgHistoryActionInterfacePrivate;

#define GITG_HISTORY_TYPE_REFS_LIST (gitg_history_refs_list_get_type ())
#define GITG_HISTORY_REFS_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList))
#define GITG_HISTORY_REFS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsListClass))
#define GITG_HISTORY_IS_REFS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_REFS_LIST))
#define GITG_HISTORY_IS_REFS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_REFS_LIST))
#define GITG_HISTORY_REFS_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsListClass))

typedef struct _GitgHistoryRefsList GitgHistoryRefsList;
typedef struct _GitgHistoryRefsListClass GitgHistoryRefsListClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _GitgHistoryActionInterface {
	GObject parent_instance;
	GitgHistoryActionInterfacePrivate * priv;
};

struct _GitgHistoryActionInterfaceClass {
	GObjectClass parent_class;
};

struct _GitgHistoryActionInterfacePrivate {
	GitgExtApplication* _application;
	GitgHistoryRefsList* d_refs_list;
};


static gpointer gitg_history_action_interface_parent_class = NULL;
static GitgExtRefActionInterfaceIface* gitg_history_action_interface_gitg_ext_ref_action_interface_parent_iface = NULL;

GType gitg_history_action_interface_get_type (void) G_GNUC_CONST;
GType gitg_history_refs_list_get_type (void) G_GNUC_CONST;
#define GITG_HISTORY_ACTION_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterfacePrivate))
enum  {
	GITG_HISTORY_ACTION_INTERFACE_DUMMY_PROPERTY,
	GITG_HISTORY_ACTION_INTERFACE_APPLICATION,
	GITG_HISTORY_ACTION_INTERFACE_REFERENCES
};
GitgHistoryActionInterface* gitg_history_action_interface_new (GitgExtApplication* application, GitgHistoryRefsList* refs_list);
GitgHistoryActionInterface* gitg_history_action_interface_construct (GType object_type, GitgExtApplication* application, GitgHistoryRefsList* refs_list);
static void gitg_history_action_interface_real_add_ref (GitgExtRefActionInterface* base, GitgRef* reference);
gboolean gitg_history_refs_list_add_ref (GitgHistoryRefsList* self, GitgRef* reference);
static void gitg_history_action_interface_real_remove_ref (GitgExtRefActionInterface* base, GitgRef* reference);
gboolean gitg_history_refs_list_remove_ref (GitgHistoryRefsList* self, GitgRef* reference);
static void gitg_history_action_interface_real_replace_ref (GitgExtRefActionInterface* base, GitgRef* old_ref, GitgRef* new_ref);
void gitg_history_refs_list_replace_ref (GitgHistoryRefsList* self, GitgRef* old_ref, GitgRef* new_ref);
static void gitg_history_action_interface_real_set_busy (GitgExtRefActionInterface* base, GitgRef* reference, gboolean busy);
static void gitg_history_action_interface_real_edit_ref_name (GitgExtRefActionInterface* base, GitgRef* reference, GitgExtRefNameEditingDone done, void* done_target, GDestroyNotify done_target_destroy_notify);
void gitg_history_refs_list_edit (GitgHistoryRefsList* self, GitgRef* reference, GitgExtRefNameEditingDone done, void* done_target, GDestroyNotify done_target_destroy_notify);
static void gitg_history_action_interface_real_refresh (GitgExtRefActionInterface* base);
void gitg_history_refs_list_set_repository (GitgHistoryRefsList* self, GitgRepository* value);
GeeList* gitg_history_refs_list_get_references (GitgHistoryRefsList* self);
static void gitg_history_action_interface_finalize (GObject* obj);
static void _vala_gitg_history_action_interface_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_history_action_interface_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static gpointer _g_object_ref0 (gpointer self) {
#line 35 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	return self ? g_object_ref (self) : NULL;
#line 102 "gitg-history-action-interface.c"
}


GitgHistoryActionInterface* gitg_history_action_interface_construct (GType object_type, GitgExtApplication* application, GitgHistoryRefsList* refs_list) {
	GitgHistoryActionInterface * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgHistoryRefsList* _tmp1_ = NULL;
	GitgHistoryRefsList* _tmp2_ = NULL;
#line 31 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 31 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_val_if_fail (refs_list != NULL, NULL);
#line 33 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = application;
#line 33 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) g_object_new (object_type, "application", _tmp0_, NULL);
#line 35 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = refs_list;
#line 35 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 35 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (self->priv->d_refs_list);
#line 35 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self->priv->d_refs_list = _tmp2_;
#line 31 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	return self;
#line 129 "gitg-history-action-interface.c"
}


GitgHistoryActionInterface* gitg_history_action_interface_new (GitgExtApplication* application, GitgHistoryRefsList* refs_list) {
#line 31 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	return gitg_history_action_interface_construct (GITG_HISTORY_TYPE_ACTION_INTERFACE, application, refs_list);
#line 136 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_real_add_ref (GitgExtRefActionInterface* base, GitgRef* reference) {
	GitgHistoryActionInterface * self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgRepository* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GitgHistoryRefsList* _tmp6_ = NULL;
	GitgRef* _tmp7_ = NULL;
#line 43 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 43 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_if_fail (reference != NULL);
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = gitg_ext_ref_action_interface_get_application ((GitgExtRefActionInterface*) self);
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = _tmp0_;
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2_ = _tmp1_;
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp3_ = gitg_ext_application_get_repository (_tmp2_);
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp4_ = _tmp3_;
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp5_ = _tmp4_;
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_repository_clear_refs_cache (_tmp5_);
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp5_);
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp2_);
#line 46 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp6_ = self->priv->d_refs_list;
#line 46 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp7_ = reference;
#line 46 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_history_refs_list_add_ref (_tmp6_, _tmp7_);
#line 47 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_signal_emit_by_name (self, "updated");
#line 180 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_real_remove_ref (GitgExtRefActionInterface* base, GitgRef* reference) {
	GitgHistoryActionInterface * self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgRepository* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GitgHistoryRefsList* _tmp6_ = NULL;
	GitgRef* _tmp7_ = NULL;
#line 50 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 50 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_if_fail (reference != NULL);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = gitg_ext_ref_action_interface_get_application ((GitgExtRefActionInterface*) self);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = _tmp0_;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2_ = _tmp1_;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp3_ = gitg_ext_application_get_repository (_tmp2_);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp4_ = _tmp3_;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp5_ = _tmp4_;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_repository_clear_refs_cache (_tmp5_);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp5_);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp2_);
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp6_ = self->priv->d_refs_list;
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp7_ = reference;
#line 53 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_history_refs_list_remove_ref (_tmp6_, _tmp7_);
#line 54 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_signal_emit_by_name (self, "updated");
#line 224 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_real_replace_ref (GitgExtRefActionInterface* base, GitgRef* old_ref, GitgRef* new_ref) {
	GitgHistoryActionInterface * self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgRepository* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GitgHistoryRefsList* _tmp6_ = NULL;
	GitgRef* _tmp7_ = NULL;
	GitgRef* _tmp8_ = NULL;
#line 57 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 57 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_if_fail (old_ref != NULL);
#line 57 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_if_fail (new_ref != NULL);
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = gitg_ext_ref_action_interface_get_application ((GitgExtRefActionInterface*) self);
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = _tmp0_;
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2_ = _tmp1_;
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp3_ = gitg_ext_application_get_repository (_tmp2_);
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp4_ = _tmp3_;
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp5_ = _tmp4_;
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_repository_clear_refs_cache (_tmp5_);
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp5_);
#line 59 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp2_);
#line 60 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp6_ = self->priv->d_refs_list;
#line 60 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp7_ = old_ref;
#line 60 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp8_ = new_ref;
#line 60 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_history_refs_list_replace_ref (_tmp6_, _tmp7_, _tmp8_);
#line 61 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_signal_emit_by_name (self, "updated");
#line 273 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_real_set_busy (GitgExtRefActionInterface* base, GitgRef* reference, gboolean busy) {
	GitgHistoryActionInterface * self;
#line 64 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 64 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_if_fail (reference != NULL);
#line 283 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_real_edit_ref_name (GitgExtRefActionInterface* base, GitgRef* reference, GitgExtRefNameEditingDone done, void* done_target, GDestroyNotify done_target_destroy_notify) {
	GitgHistoryActionInterface * self;
	GitgHistoryRefsList* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgExtRefNameEditingDone _tmp2_ = NULL;
	void* _tmp2__target = NULL;
	GDestroyNotify _tmp2__target_destroy_notify = NULL;
#line 69 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 69 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_return_if_fail (reference != NULL);
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = self->priv->d_refs_list;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = reference;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2_ = done;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2__target = done_target;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2__target_destroy_notify = done_target_destroy_notify;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	done = NULL;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	done_target = NULL;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	done_target_destroy_notify = NULL;
#line 71 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_history_refs_list_edit (_tmp0_, _tmp1_, _tmp2_, _tmp2__target, _tmp2__target_destroy_notify);
#line 69 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 69 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	done = NULL;
#line 69 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	done_target = NULL;
#line 69 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	done_target_destroy_notify = NULL;
#line 324 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_real_refresh (GitgExtRefActionInterface* base) {
	GitgHistoryActionInterface * self;
	GitgHistoryRefsList* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgExtApplication* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GitgRepository* _tmp6_ = NULL;
#line 74 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = self->priv->d_refs_list;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = gitg_ext_ref_action_interface_get_application ((GitgExtRefActionInterface*) self);
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2_ = _tmp1_;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp3_ = _tmp2_;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp4_ = gitg_ext_application_get_repository (_tmp3_);
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp5_ = _tmp4_;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp6_ = _tmp5_;
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_history_refs_list_set_repository (_tmp0_, _tmp6_);
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp6_);
#line 76 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (_tmp3_);
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_signal_emit_by_name (self, "updated");
#line 361 "gitg-history-action-interface.c"
}


static GitgExtApplication* gitg_history_action_interface_real_get_application (GitgExtRefActionInterface* base) {
	GitgExtApplication* result;
	GitgHistoryActionInterface* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = self->priv->_application;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	result = _tmp1_;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	return result;
#line 380 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_real_set_application (GitgExtRefActionInterface* base, GitgExtApplication* value) {
	GitgHistoryActionInterface* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = value;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (self->priv->_application);
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self->priv->_application = _tmp1_;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_object_notify ((GObject *) self, "application");
#line 400 "gitg-history-action-interface.c"
}


static GeeList* gitg_history_action_interface_real_get_references (GitgExtRefActionInterface* base) {
	GeeList* result;
	GitgHistoryActionInterface* self;
	GitgHistoryRefsList* _tmp0_ = NULL;
	GeeList* _tmp1_ = NULL;
	GeeList* _tmp2_ = NULL;
#line 40 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = (GitgHistoryActionInterface*) base;
#line 40 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp0_ = self->priv->d_refs_list;
#line 40 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp1_ = gitg_history_refs_list_get_references (_tmp0_);
#line 40 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_tmp2_ = _tmp1_;
#line 40 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	result = _tmp2_;
#line 40 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	return result;
#line 422 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_class_init (GitgHistoryActionInterfaceClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_history_action_interface_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryActionInterfacePrivate));
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_action_interface_get_property;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_action_interface_set_property;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_action_interface_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTION_INTERFACE_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTION_INTERFACE_REFERENCES, g_param_spec_object ("references", "references", "references", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	g_signal_new ("updated", GITG_HISTORY_TYPE_ACTION_INTERFACE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 443 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_gitg_ext_ref_action_interface_interface_init (GitgExtRefActionInterfaceIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	gitg_history_action_interface_gitg_ext_ref_action_interface_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->add_ref = (void (*)(GitgExtRefActionInterface*, GitgRef*)) gitg_history_action_interface_real_add_ref;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->remove_ref = (void (*)(GitgExtRefActionInterface*, GitgRef*)) gitg_history_action_interface_real_remove_ref;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->replace_ref = (void (*)(GitgExtRefActionInterface*, GitgRef*, GitgRef*)) gitg_history_action_interface_real_replace_ref;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->set_busy = (void (*)(GitgExtRefActionInterface*, GitgRef*, gboolean)) gitg_history_action_interface_real_set_busy;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->edit_ref_name = (void (*)(GitgExtRefActionInterface*, GitgRef*, GitgExtRefNameEditingDone, void*, GDestroyNotify)) gitg_history_action_interface_real_edit_ref_name;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->refresh = (void (*)(GitgExtRefActionInterface*)) gitg_history_action_interface_real_refresh;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->get_application = gitg_history_action_interface_real_get_application;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->set_application = gitg_history_action_interface_real_set_application;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	iface->get_references = gitg_history_action_interface_real_get_references;
#line 468 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_instance_init (GitgHistoryActionInterface * self) {
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self->priv = GITG_HISTORY_ACTION_INTERFACE_GET_PRIVATE (self);
#line 475 "gitg-history-action-interface.c"
}


static void gitg_history_action_interface_finalize (GObject* obj) {
	GitgHistoryActionInterface * self;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterface);
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (self->priv->_application);
#line 27 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	_g_object_unref0 (self->priv->d_refs_list);
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	G_OBJECT_CLASS (gitg_history_action_interface_parent_class)->finalize (obj);
#line 489 "gitg-history-action-interface.c"
}


GType gitg_history_action_interface_get_type (void) {
	static volatile gsize gitg_history_action_interface_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_action_interface_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryActionInterfaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_history_action_interface_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgHistoryActionInterface), 0, (GInstanceInitFunc) gitg_history_action_interface_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ref_action_interface_info = { (GInterfaceInitFunc) gitg_history_action_interface_gitg_ext_ref_action_interface_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_history_action_interface_type_id;
		gitg_history_action_interface_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgHistoryActionInterface", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_history_action_interface_type_id, GITG_EXT_TYPE_REF_ACTION_INTERFACE, &gitg_ext_ref_action_interface_info);
		g_once_init_leave (&gitg_history_action_interface_type_id__volatile, gitg_history_action_interface_type_id);
	}
	return gitg_history_action_interface_type_id__volatile;
}


static void _vala_gitg_history_action_interface_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgHistoryActionInterface * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterface);
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		case GITG_HISTORY_ACTION_INTERFACE_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		g_value_take_object (value, gitg_ext_ref_action_interface_get_application ((GitgExtRefActionInterface*) self));
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		case GITG_HISTORY_ACTION_INTERFACE_REFERENCES:
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		g_value_take_object (value, gitg_ext_ref_action_interface_get_references ((GitgExtRefActionInterface*) self));
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		break;
#line 524 "gitg-history-action-interface.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		break;
#line 530 "gitg-history-action-interface.c"
	}
}


static void _vala_gitg_history_action_interface_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgHistoryActionInterface * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterface);
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		case GITG_HISTORY_ACTION_INTERFACE_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		gitg_ext_ref_action_interface_set_application ((GitgExtRefActionInterface*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		break;
#line 546 "gitg-history-action-interface.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/history/gitg-history-action-interface.vala"
		break;
#line 552 "gitg-history-action-interface.c"
	}
}



