/* gitg-ref-action-delete.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-ref-action-delete.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 "libgitg/libgitg.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <libgit2-glib/ggit.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>


#define GITG_TYPE_REF_ACTION_DELETE (gitg_ref_action_delete_get_type ())
#define GITG_REF_ACTION_DELETE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDelete))
#define GITG_REF_ACTION_DELETE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDeleteClass))
#define GITG_IS_REF_ACTION_DELETE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_DELETE))
#define GITG_IS_REF_ACTION_DELETE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_DELETE))
#define GITG_REF_ACTION_DELETE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDeleteClass))

typedef struct _GitgRefActionDelete GitgRefActionDelete;
typedef struct _GitgRefActionDeleteClass GitgRefActionDeleteClass;
typedef struct _GitgRefActionDeletePrivate GitgRefActionDeletePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

struct _GitgRefActionDelete {
	GObject parent_instance;
	GitgRefActionDeletePrivate * priv;
};

struct _GitgRefActionDeleteClass {
	GObjectClass parent_class;
};

struct _GitgRefActionDeletePrivate {
	GitgExtApplication* _application;
	GitgExtRefActionInterface* _action_interface;
	GitgRef* _reference;
};


static gpointer gitg_ref_action_delete_parent_class = NULL;
static GitgExtUIElementIface* gitg_ref_action_delete_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtActionIface* gitg_ref_action_delete_gitg_ext_action_parent_iface = NULL;
static GitgExtRefActionIface* gitg_ref_action_delete_gitg_ext_ref_action_parent_iface = NULL;

GType gitg_ref_action_delete_get_type (void) G_GNUC_CONST;
#define GITG_REF_ACTION_DELETE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDeletePrivate))
enum  {
	GITG_REF_ACTION_DELETE_DUMMY_PROPERTY,
	GITG_REF_ACTION_DELETE_APPLICATION,
	GITG_REF_ACTION_DELETE_ACTION_INTERFACE,
	GITG_REF_ACTION_DELETE_REFERENCE,
	GITG_REF_ACTION_DELETE_ID,
	GITG_REF_ACTION_DELETE_DISPLAY_NAME,
	GITG_REF_ACTION_DELETE_DESCRIPTION,
	GITG_REF_ACTION_DELETE_ENABLED
};
#define GITG_REF_ACTION_DELETE_version VERSION
GitgRefActionDelete* gitg_ref_action_delete_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionDelete* gitg_ref_action_delete_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
static void gitg_ref_action_delete_real_activate (GitgExtUIElement* base);
static gboolean gitg_ref_action_delete_on_response (GitgRefActionDelete* self, GtkResponseType response);
static gboolean _gitg_ref_action_delete_on_response_gitg_ext_user_query_response (GitgExtUserQuery* _sender, GtkResponseType response_type, gpointer self);
static void gitg_ref_action_delete_finalize (GObject* obj);
static void _vala_gitg_ref_action_delete_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_ref_action_delete_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


GitgRefActionDelete* gitg_ref_action_delete_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
	GitgRefActionDelete * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = application;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = action_interface;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp2_ = reference;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) g_object_new (object_type, "application", _tmp0_, "action-interface", _tmp1_, "reference", _tmp2_, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return self;
#line 117 "gitg-ref-action-delete.c"
}


GitgRefActionDelete* gitg_ref_action_delete_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return gitg_ref_action_delete_construct (GITG_TYPE_REF_ACTION_DELETE, application, action_interface, reference);
#line 124 "gitg-ref-action-delete.c"
}


static gboolean _gitg_ref_action_delete_on_response_gitg_ext_user_query_response (GitgExtUserQuery* _sender, GtkResponseType response_type, gpointer self) {
	gboolean result;
	result = gitg_ref_action_delete_on_response ((GitgRefActionDelete*) self, response_type);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 133 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_real_activate (GitgExtUIElement* base) {
	GitgRefActionDelete * self;
	GitgExtUserQuery* query = NULL;
	GitgExtUserQuery* _tmp0_ = NULL;
	gchar* name = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GitgRef* _tmp5_ = NULL;
	GitgRef* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	GitgExtUserQuery* _tmp41_ = NULL;
	const gchar* _tmp42_ = NULL;
	GitgExtUserQueryResponse* _tmp43_ = NULL;
	const gchar* _tmp44_ = NULL;
	GitgExtUserQueryResponse* _tmp45_ = NULL;
	GitgExtUserQueryResponse** _tmp46_ = NULL;
	GitgExtUserQueryResponse** _tmp47_ = NULL;
	gint _tmp47__length1 = 0;
	GitgExtUserQuery* _tmp48_ = NULL;
	GitgExtUserQuery* _tmp49_ = NULL;
	GitgExtRefActionInterface* _tmp50_ = NULL;
	GitgExtRefActionInterface* _tmp51_ = NULL;
	GitgExtApplication* _tmp52_ = NULL;
	GitgExtApplication* _tmp53_ = NULL;
	GitgExtApplication* _tmp54_ = NULL;
	GitgExtUserQuery* _tmp55_ = NULL;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = gitg_ext_user_query_new ();
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	query = _tmp0_;
#line 69 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 69 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp2_ = _tmp1_;
#line 69 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp3_ = ggit_ref_get_shorthand ((GgitRef*) _tmp2_);
#line 69 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 69 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	name = _tmp4_;
#line 71 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp5_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 71 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp6_ = _tmp5_;
#line 71 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp7_ = ggit_ref_is_branch ((GgitRef*) _tmp6_);
#line 71 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	if (_tmp7_) {
#line 189 "gitg-ref-action-delete.c"
		GitgExtUserQuery* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		GitgExtUserQuery* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		gchar* _tmp17_ = NULL;
#line 73 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp8_ = query;
#line 73 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp9_ = _ ("Delete branch %s");
#line 73 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp10_ = name;
#line 73 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp11_ = g_strdup_printf (_tmp9_, _tmp10_);
#line 73 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp12_ = _tmp11_;
#line 73 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		gitg_ext_user_query_set_title (_tmp8_, _tmp12_);
#line 73 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_g_free0 (_tmp12_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp13_ = query;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp14_ = _ ("Are you sure that you want to permanently delete the branch %s?");
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp15_ = name;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp16_ = g_strdup_printf (_tmp14_, _tmp15_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp17_ = _tmp16_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		gitg_ext_user_query_set_message (_tmp13_, _tmp17_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_g_free0 (_tmp17_);
#line 228 "gitg-ref-action-delete.c"
	} else {
		GitgRef* _tmp18_ = NULL;
		GitgRef* _tmp19_ = NULL;
		gboolean _tmp20_ = FALSE;
#line 76 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp18_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 76 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp19_ = _tmp18_;
#line 76 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp20_ = ggit_ref_is_tag ((GgitRef*) _tmp19_);
#line 76 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		if (_tmp20_) {
#line 241 "gitg-ref-action-delete.c"
			GitgExtUserQuery* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			const gchar* _tmp23_ = NULL;
			gchar* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
			GitgExtUserQuery* _tmp26_ = NULL;
			const gchar* _tmp27_ = NULL;
			const gchar* _tmp28_ = NULL;
			gchar* _tmp29_ = NULL;
			gchar* _tmp30_ = NULL;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp21_ = query;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp22_ = _ ("Delete tag %s");
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp23_ = name;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp24_ = g_strdup_printf (_tmp22_, _tmp23_);
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp25_ = _tmp24_;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			gitg_ext_user_query_set_title (_tmp21_, _tmp25_);
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (_tmp25_);
#line 79 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp26_ = query;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp27_ = _ ("Are you sure that you want to permanently delete the tag %s?");
#line 79 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp28_ = name;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp29_ = g_strdup_printf (_tmp27_, _tmp28_);
#line 79 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp30_ = _tmp29_;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			gitg_ext_user_query_set_message (_tmp26_, _tmp30_);
#line 79 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (_tmp30_);
#line 280 "gitg-ref-action-delete.c"
		} else {
			GitgExtUserQuery* _tmp31_ = NULL;
			const gchar* _tmp32_ = NULL;
			const gchar* _tmp33_ = NULL;
			gchar* _tmp34_ = NULL;
			gchar* _tmp35_ = NULL;
			GitgExtUserQuery* _tmp36_ = NULL;
			const gchar* _tmp37_ = NULL;
			const gchar* _tmp38_ = NULL;
			gchar* _tmp39_ = NULL;
			gchar* _tmp40_ = NULL;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp31_ = query;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp32_ = _ ("Delete remote branch %s");
#line 83 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp33_ = name;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp34_ = g_strdup_printf (_tmp32_, _tmp33_);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp35_ = _tmp34_;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			gitg_ext_user_query_set_title (_tmp31_, _tmp35_);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (_tmp35_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp36_ = query;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp37_ = _ ("Are you sure that you want to permanently delete the remote branch %s?");
#line 84 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp38_ = name;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp39_ = g_strdup_printf (_tmp37_, _tmp38_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp40_ = _tmp39_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			gitg_ext_user_query_set_message (_tmp36_, _tmp40_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (_tmp40_);
#line 320 "gitg-ref-action-delete.c"
		}
	}
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp41_ = query;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp42_ = _ ("Cancel");
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp43_ = gitg_ext_user_query_response_new (_tmp42_, GTK_RESPONSE_CANCEL);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp44_ = _ ("Delete");
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp45_ = gitg_ext_user_query_response_new (_tmp44_, GTK_RESPONSE_OK);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp46_ = g_new0 (GitgExtUserQueryResponse*, 2 + 1);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp46_[0] = _tmp43_;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp46_[1] = _tmp45_;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp47_ = _tmp46_;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp47__length1 = 2;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ext_user_query_set_responses (_tmp41_, _tmp47_, 2);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp47_ = (_vala_array_free (_tmp47_, _tmp47__length1, (GDestroyNotify) g_object_unref), NULL);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp48_ = query;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ext_user_query_set_default_response (_tmp48_, GTK_RESPONSE_OK);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp49_ = query;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_signal_connect_object (_tmp49_, "response", (GCallback) _gitg_ref_action_delete_on_response_gitg_ext_user_query_response, self, 0);
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp50_ = gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self);
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp51_ = _tmp50_;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp52_ = gitg_ext_ref_action_interface_get_application (_tmp51_);
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp53_ = _tmp52_;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp54_ = _tmp53_;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp55_ = query;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ext_application_user_query (_tmp54_, _tmp55_);
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (_tmp54_);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_free0 (name);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (query);
#line 375 "gitg-ref-action-delete.c"
}


static gboolean gitg_ref_action_delete_on_response (GitgRefActionDelete* self, GtkResponseType response) {
	gboolean result = FALSE;
	GtkResponseType _tmp0_ = 0;
	GitgExtRefActionInterface* _tmp34_ = NULL;
	GitgExtRefActionInterface* _tmp35_ = NULL;
	GitgRef* _tmp36_ = NULL;
	GitgRef* _tmp37_ = NULL;
	GError * _inner_error_ = NULL;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 100 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = response;
#line 100 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	if (_tmp0_ != GTK_RESPONSE_OK) {
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		result = TRUE;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		return result;
#line 397 "gitg-ref-action-delete.c"
	}
	{
		GitgRef* _tmp1_ = NULL;
		GitgRef* _tmp2_ = NULL;
#line 107 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 107 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp2_ = _tmp1_;
#line 107 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		ggit_ref_delete ((GgitRef*) _tmp2_, &_inner_error_);
#line 107 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 410 "gitg-ref-action-delete.c"
			goto __catch89_g_error;
		}
	}
	goto __finally89;
	__catch89_g_error:
	{
		GError* e = NULL;
		gchar* title = NULL;
		gchar* message = NULL;
		gchar* name = NULL;
		GitgRef* _tmp3_ = NULL;
		GitgRef* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		GitgRef* _tmp7_ = NULL;
		GitgRef* _tmp8_ = NULL;
		gboolean _tmp9_ = FALSE;
		GitgExtRefActionInterface* _tmp26_ = NULL;
		GitgExtRefActionInterface* _tmp27_ = NULL;
		GitgExtApplication* _tmp28_ = NULL;
		GitgExtApplication* _tmp29_ = NULL;
		GitgExtApplication* _tmp30_ = NULL;
		const gchar* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		e = _inner_error_;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_inner_error_ = NULL;
#line 114 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp3_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 114 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp4_ = _tmp3_;
#line 114 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp5_ = ggit_ref_get_shorthand ((GgitRef*) _tmp4_);
#line 114 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 114 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		name = _tmp6_;
#line 116 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp7_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 116 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp8_ = _tmp7_;
#line 116 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp9_ = ggit_ref_is_tag ((GgitRef*) _tmp8_);
#line 116 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		if (_tmp9_) {
#line 457 "gitg-ref-action-delete.c"
			const gchar* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			GError* _tmp15_ = NULL;
			const gchar* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
#line 119 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp10_ = _ ("Failed to delete tag %s");
#line 119 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp11_ = name;
#line 119 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp12_ = g_strdup_printf (_tmp10_, _tmp11_);
#line 119 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (title);
#line 119 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			title = _tmp12_;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp13_ = _ ("The tag %s could not be deleted: %s");
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp14_ = name;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp15_ = e;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp16_ = _tmp15_->message;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp17_ = g_strdup_printf (_tmp13_, _tmp14_, _tmp16_);
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (message);
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			message = _tmp17_;
#line 490 "gitg-ref-action-delete.c"
		} else {
			const gchar* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
			const gchar* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			GError* _tmp23_ = NULL;
			const gchar* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
#line 127 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp18_ = _ ("Failed to delete branch %s");
#line 127 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp19_ = name;
#line 127 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp20_ = g_strdup_printf (_tmp18_, _tmp19_);
#line 127 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (title);
#line 127 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			title = _tmp20_;
#line 130 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp21_ = _ ("The branch %s could not be deleted: %s");
#line 130 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp22_ = name;
#line 130 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp23_ = e;
#line 130 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp24_ = _tmp23_->message;
#line 130 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_tmp25_ = g_strdup_printf (_tmp21_, _tmp22_, _tmp24_);
#line 130 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			_g_free0 (message);
#line 130 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
			message = _tmp25_;
#line 524 "gitg-ref-action-delete.c"
		}
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp26_ = gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self);
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp27_ = _tmp26_;
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp28_ = gitg_ext_ref_action_interface_get_application (_tmp27_);
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp29_ = _tmp28_;
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp30_ = _tmp29_;
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp31_ = title;
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp32_ = message;
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		gitg_ext_application_show_infobar (_tmp30_, _tmp31_, _tmp32_, GTK_MESSAGE_ERROR);
#line 133 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_g_object_unref0 (_tmp30_);
#line 137 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		result = TRUE;
#line 137 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_g_free0 (name);
#line 137 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_g_free0 (message);
#line 137 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_g_free0 (title);
#line 137 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_g_error_free0 (e);
#line 137 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		return result;
#line 556 "gitg-ref-action-delete.c"
	}
	__finally89:
#line 105 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 561 "gitg-ref-action-delete.c"
		gboolean _tmp33_ = FALSE;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 105 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_clear_error (&_inner_error_);
#line 105 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		return _tmp33_;
#line 569 "gitg-ref-action-delete.c"
	}
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp34_ = gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp35_ = _tmp34_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp36_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp37_ = _tmp36_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ext_ref_action_interface_remove_ref (_tmp35_, _tmp37_);
#line 141 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = TRUE;
#line 141 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 585 "gitg-ref-action-delete.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return self ? g_object_ref (self) : NULL;
#line 592 "gitg-ref-action-delete.c"
}


static GitgExtApplication* gitg_ref_action_delete_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgRefActionDelete* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = self->priv->_application;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = _tmp1_;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 611 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgRefActionDelete* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self->priv->_application = _tmp1_;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_object_notify ((GObject *) self, "application");
#line 631 "gitg-ref-action-delete.c"
}


static GitgExtRefActionInterface* gitg_ref_action_delete_real_get_action_interface (GitgExtRefAction* base) {
	GitgExtRefActionInterface* result;
	GitgRefActionDelete* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = _tmp0_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 647 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_real_set_action_interface (GitgExtRefAction* base, GitgExtRefActionInterface* value) {
	GitgRefActionDelete* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = value;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self->priv->_action_interface = _tmp1_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_object_notify ((GObject *) self, "action-interface");
#line 667 "gitg-ref-action-delete.c"
}


static GitgRef* gitg_ref_action_delete_real_get_reference (GitgExtRefAction* base) {
	GitgRef* result;
	GitgRefActionDelete* self;
	GitgRef* _tmp0_ = NULL;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = self->priv->_reference;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = _tmp0_;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 683 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_real_set_reference (GitgExtRefAction* base, GitgRef* value) {
	GitgRefActionDelete* self;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = value;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (self->priv->_reference);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self->priv->_reference = _tmp1_;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_object_notify ((GObject *) self, "reference");
#line 703 "gitg-ref-action-delete.c"
}


static gchar* gitg_ref_action_delete_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionDelete* self;
	gchar* _tmp0_ = NULL;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/ref-actions/delete");
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = _tmp0_;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 719 "gitg-ref-action-delete.c"
}


static gchar* gitg_ref_action_delete_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionDelete* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = _ ("Delete");
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = _tmp1_;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 738 "gitg-ref-action-delete.c"
}


static gchar* gitg_ref_action_delete_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionDelete* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp0_ = _ ("Delete the selected reference");
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = _tmp1_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 757 "gitg-ref-action-delete.c"
}


static gboolean gitg_ref_action_delete_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgRefActionDelete* self;
	gboolean _tmp0_ = FALSE;
	GitgRef* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = (GitgRefActionDelete*) base;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 60 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp2_ = _tmp1_;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_tmp3_ = ggit_ref_is_branch ((GgitRef*) _tmp2_);
#line 60 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	if (_tmp3_) {
#line 60 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp0_ = TRUE;
#line 780 "gitg-ref-action-delete.c"
	} else {
		GitgRef* _tmp4_ = NULL;
		GitgRef* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp4_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp5_ = _tmp4_;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp6_ = ggit_ref_is_tag ((GgitRef*) _tmp5_);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		_tmp0_ = _tmp6_;
#line 793 "gitg-ref-action-delete.c"
	}
#line 60 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	result = _tmp0_;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	return result;
#line 799 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_class_init (GitgRefActionDeleteClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ref_action_delete_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_type_class_add_private (klass, sizeof (GitgRefActionDeletePrivate));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ref_action_delete_get_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ref_action_delete_set_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ref_action_delete_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_DELETE_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/gitg-ref-action-delete.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_DELETE_ACTION_INTERFACE, g_param_spec_object ("action-interface", "action-interface", "action-interface", GITG_EXT_TYPE_REF_ACTION_INTERFACE, 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/gitg-ref-action-delete.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_DELETE_REFERENCE, g_param_spec_object ("reference", "reference", "reference", GITG_TYPE_REF, 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/gitg-ref-action-delete.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_DELETE_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_DELETE_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_DELETE_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_DELETE_ENABLED, g_param_spec_boolean ("enabled", "enabled", "enabled", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 828 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ref_action_delete_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->activate = (void (*)(GitgExtUIElement*)) gitg_ref_action_delete_real_activate;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->get_application = gitg_ref_action_delete_real_get_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->set_application = gitg_ref_action_delete_real_set_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->get_id = gitg_ref_action_delete_real_get_id;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->get_display_name = gitg_ref_action_delete_real_get_display_name;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->get_description = gitg_ref_action_delete_real_get_description;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->get_enabled = gitg_ref_action_delete_real_get_enabled;
#line 849 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_gitg_ext_action_interface_init (GitgExtActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ref_action_delete_gitg_ext_action_parent_iface = g_type_interface_peek_parent (iface);
#line 856 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_gitg_ext_ref_action_interface_init (GitgExtRefActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	gitg_ref_action_delete_gitg_ext_ref_action_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->get_action_interface = gitg_ref_action_delete_real_get_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->set_action_interface = gitg_ref_action_delete_real_set_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->get_reference = gitg_ref_action_delete_real_get_reference;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	iface->set_reference = gitg_ref_action_delete_real_set_reference;
#line 871 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_instance_init (GitgRefActionDelete * self) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self->priv = GITG_REF_ACTION_DELETE_GET_PRIVATE (self);
#line 878 "gitg-ref-action-delete.c"
}


static void gitg_ref_action_delete_finalize (GObject* obj) {
	GitgRefActionDelete * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDelete);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	_g_object_unref0 (self->priv->_reference);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	G_OBJECT_CLASS (gitg_ref_action_delete_parent_class)->finalize (obj);
#line 894 "gitg-ref-action-delete.c"
}


GType gitg_ref_action_delete_get_type (void) {
	static volatile gsize gitg_ref_action_delete_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_action_delete_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRefActionDeleteClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ref_action_delete_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgRefActionDelete), 0, (GInstanceInitFunc) gitg_ref_action_delete_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_ref_action_delete_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_action_info = { (GInterfaceInitFunc) gitg_ref_action_delete_gitg_ext_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_ref_action_info = { (GInterfaceInitFunc) gitg_ref_action_delete_gitg_ext_ref_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_ref_action_delete_type_id;
		gitg_ref_action_delete_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgRefActionDelete", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_ref_action_delete_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
		g_type_add_interface_static (gitg_ref_action_delete_type_id, GITG_EXT_TYPE_ACTION, &gitg_ext_action_info);
		g_type_add_interface_static (gitg_ref_action_delete_type_id, GITG_EXT_TYPE_REF_ACTION, &gitg_ext_ref_action_info);
		g_once_init_leave (&gitg_ref_action_delete_type_id__volatile, gitg_ref_action_delete_type_id);
	}
	return gitg_ref_action_delete_type_id__volatile;
}


static void _vala_gitg_ref_action_delete_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgRefActionDelete * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDelete);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_REFERENCE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_ID:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_DISPLAY_NAME:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_DESCRIPTION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_ENABLED:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 963 "gitg-ref-action-delete.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 969 "gitg-ref-action-delete.c"
	}
}


static void _vala_gitg_ref_action_delete_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgRefActionDelete * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDelete);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		gitg_ext_ref_action_set_action_interface ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		case GITG_REF_ACTION_DELETE_REFERENCE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		gitg_ext_ref_action_set_reference ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 997 "gitg-ref-action-delete.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-delete.vala"
		break;
#line 1003 "gitg-ref-action-delete.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



