/* gitg-commit-action-create-tag.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-commit-action-create-tag.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 <gtk/gtk.h>
#include <libgit2-glib/ggit.h>
#include <glib/gi18n-lib.h>


#define GITG_TYPE_COMMIT_ACTION_CREATE_TAG (gitg_commit_action_create_tag_get_type ())
#define GITG_COMMIT_ACTION_CREATE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTag))
#define GITG_COMMIT_ACTION_CREATE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTagClass))
#define GITG_IS_COMMIT_ACTION_CREATE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_TAG))
#define GITG_IS_COMMIT_ACTION_CREATE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_TAG))
#define GITG_COMMIT_ACTION_CREATE_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTagClass))

typedef struct _GitgCommitActionCreateTag GitgCommitActionCreateTag;
typedef struct _GitgCommitActionCreateTagClass GitgCommitActionCreateTagClass;
typedef struct _GitgCommitActionCreateTagPrivate GitgCommitActionCreateTagPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_TYPE_CREATE_TAG_DIALOG (gitg_create_tag_dialog_get_type ())
#define GITG_CREATE_TAG_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_CREATE_TAG_DIALOG, GitgCreateTagDialog))
#define GITG_CREATE_TAG_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_CREATE_TAG_DIALOG, GitgCreateTagDialogClass))
#define GITG_IS_CREATE_TAG_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_CREATE_TAG_DIALOG))
#define GITG_IS_CREATE_TAG_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_CREATE_TAG_DIALOG))
#define GITG_CREATE_TAG_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_CREATE_TAG_DIALOG, GitgCreateTagDialogClass))

typedef struct _GitgCreateTagDialog GitgCreateTagDialog;
typedef struct _GitgCreateTagDialogClass GitgCreateTagDialogClass;
typedef struct _Block38Data Block38Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

struct _GitgCommitActionCreateTag {
	GObject parent_instance;
	GitgCommitActionCreateTagPrivate * priv;
};

struct _GitgCommitActionCreateTagClass {
	GObjectClass parent_class;
};

struct _GitgCommitActionCreateTagPrivate {
	GitgExtApplication* _application;
	GitgExtRefActionInterface* _action_interface;
	GitgCommit* _commit;
};

struct _Block38Data {
	int _ref_count_;
	GitgCommitActionCreateTag* self;
	GitgCreateTagDialog* dlg;
};


static gpointer gitg_commit_action_create_tag_parent_class = NULL;
static GitgExtUIElementIface* gitg_commit_action_create_tag_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtActionIface* gitg_commit_action_create_tag_gitg_ext_action_parent_iface = NULL;
static GitgExtCommitActionIface* gitg_commit_action_create_tag_gitg_ext_commit_action_parent_iface = NULL;

GType gitg_commit_action_create_tag_get_type (void) G_GNUC_CONST;
#define GITG_COMMIT_ACTION_CREATE_TAG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTagPrivate))
enum  {
	GITG_COMMIT_ACTION_CREATE_TAG_DUMMY_PROPERTY,
	GITG_COMMIT_ACTION_CREATE_TAG_APPLICATION,
	GITG_COMMIT_ACTION_CREATE_TAG_ACTION_INTERFACE,
	GITG_COMMIT_ACTION_CREATE_TAG_COMMIT,
	GITG_COMMIT_ACTION_CREATE_TAG_ID,
	GITG_COMMIT_ACTION_CREATE_TAG_DISPLAY_NAME,
	GITG_COMMIT_ACTION_CREATE_TAG_DESCRIPTION
};
#define GITG_COMMIT_ACTION_CREATE_TAG_version VERSION
GitgCommitActionCreateTag* gitg_commit_action_create_tag_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GitgCommitActionCreateTag* gitg_commit_action_create_tag_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
static void gitg_commit_action_create_tag_real_activate (GitgExtUIElement* base);
GType gitg_create_tag_dialog_get_type (void) G_GNUC_CONST;
static Block38Data* block38_data_ref (Block38Data* _data38_);
static void block38_data_unref (void * _userdata_);
GitgCreateTagDialog* gitg_create_tag_dialog_new (GtkWindow* parent);
GitgCreateTagDialog* gitg_create_tag_dialog_construct (GType object_type, GtkWindow* parent);
static void __lambda153_ (Block38Data* _data38_, GtkDialog* d, gint resp);
gchar* gitg_create_tag_dialog_get_new_tag_message (GitgCreateTagDialog* self);
gchar* gitg_create_tag_dialog_get_new_tag_name (GitgCreateTagDialog* self);
static void _vala_GgitOId_free (GgitOId* self);
static void ___lambda153__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void gitg_commit_action_create_tag_finalize (GObject* obj);
static void _vala_gitg_commit_action_create_tag_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_commit_action_create_tag_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GitgCommitActionCreateTag* gitg_commit_action_create_tag_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit) {
	GitgCommitActionCreateTag * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
	GitgCommit* _tmp2_ = NULL;
#line 32 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_return_val_if_fail (commit != NULL, NULL);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = application;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = action_interface;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp2_ = commit;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) g_object_new (object_type, "application", _tmp0_, "action-interface", _tmp1_, "commit", _tmp2_, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return self;
#line 140 "gitg-commit-action-create-tag.c"
}


GitgCommitActionCreateTag* gitg_commit_action_create_tag_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit) {
#line 32 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return gitg_commit_action_create_tag_construct (GITG_TYPE_COMMIT_ACTION_CREATE_TAG, application, action_interface, commit);
#line 147 "gitg-commit-action-create-tag.c"
}


static Block38Data* block38_data_ref (Block38Data* _data38_) {
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_atomic_int_inc (&_data38_->_ref_count_);
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return _data38_;
#line 156 "gitg-commit-action-create-tag.c"
}


static void block38_data_unref (void * _userdata_) {
	Block38Data* _data38_;
	_data38_ = (Block38Data*) _userdata_;
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	if (g_atomic_int_dec_and_test (&_data38_->_ref_count_)) {
#line 165 "gitg-commit-action-create-tag.c"
		GitgCommitActionCreateTag* self;
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		self = _data38_->self;
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_object_unref0 (_data38_->dlg);
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_object_unref0 (self);
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		g_slice_free (Block38Data, _data38_);
#line 175 "gitg-commit-action-create-tag.c"
	}
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 183 "gitg-commit-action-create-tag.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1412 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = self;
#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 195 "gitg-commit-action-create-tag.c"
}


static void __lambda153_ (Block38Data* _data38_, GtkDialog* d, gint resp) {
	GitgCommitActionCreateTag* self;
	gint _tmp0_ = 0;
	GError * _inner_error_ = NULL;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = _data38_->self;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_return_if_fail (d != NULL);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = resp;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 211 "gitg-commit-action-create-tag.c"
		GgitOId* tagid = NULL;
		GitgRepository* repo = NULL;
		GitgExtApplication* _tmp1_ = NULL;
		GitgExtApplication* _tmp2_ = NULL;
		GitgExtApplication* _tmp3_ = NULL;
		GitgRepository* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		gchar* msg = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* name = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		GgitRef* tag = NULL;
		GgitOId* _tmp50_ = NULL;
		GgitRef* _tmp66_ = NULL;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		tagid = NULL;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp1_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp2_ = _tmp1_;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp3_ = _tmp2_;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp4_ = gitg_ext_application_get_repository (_tmp3_);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp5_ = _tmp4_;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp6_ = _tmp5_;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_object_unref0 (_tmp3_);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		repo = _tmp6_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp7_ = gitg_create_tag_dialog_get_new_tag_message (_data38_->dlg);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp8_ = _tmp7_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp9_ = _tmp8_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp10_ = ggit_message_prettify (_tmp9_, FALSE, '#');
#line 67 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp11_ = _tmp10_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_free0 (_tmp9_);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		msg = _tmp11_;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp12_ = gitg_create_tag_dialog_get_new_tag_name (_data38_->dlg);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp13_ = _tmp12_;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		name = _tmp13_;
#line 270 "gitg-commit-action-create-tag.c"
		{
			const gchar* _tmp14_ = NULL;
			gint _tmp15_ = 0;
			gint _tmp16_ = 0;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp14_ = msg;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp15_ = strlen (_tmp14_);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp16_ = _tmp15_;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			if (_tmp16_ == 0) {
#line 283 "gitg-commit-action-create-tag.c"
				GgitOId* _tmp17_ = NULL;
				GitgRepository* _tmp18_ = NULL;
				const gchar* _tmp19_ = NULL;
				GitgCommit* _tmp20_ = NULL;
				GitgCommit* _tmp21_ = NULL;
				GgitOId* _tmp22_ = NULL;
				GgitOId* _tmp23_ = NULL;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp18_ = repo;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp19_ = name;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp20_ = gitg_ext_commit_action_get_commit ((GitgExtCommitAction*) self);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp21_ = _tmp20_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp22_ = ggit_repository_create_tag_lightweight ((GgitRepository*) _tmp18_, _tmp19_, (GgitObject*) _tmp21_, GGIT_CREATE_NONE, &_inner_error_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp17_ = _tmp22_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 305 "gitg-commit-action-create-tag.c"
					goto __catch61_g_error;
				}
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp23_ = _tmp17_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp17_ = NULL;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				__vala_GgitOId_free0 (tagid);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				tagid = _tmp23_;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				__vala_GgitOId_free0 (_tmp17_);
#line 318 "gitg-commit-action-create-tag.c"
			} else {
				GgitSignature* author = NULL;
				GgitOId* _tmp35_ = NULL;
				GitgRepository* _tmp36_ = NULL;
				const gchar* _tmp37_ = NULL;
				GitgCommit* _tmp38_ = NULL;
				GitgCommit* _tmp39_ = NULL;
				GgitSignature* _tmp40_ = NULL;
				const gchar* _tmp41_ = NULL;
				GgitOId* _tmp42_ = NULL;
				GgitOId* _tmp43_ = NULL;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				author = NULL;
#line 332 "gitg-commit-action-create-tag.c"
				{
					GgitSignature* _tmp24_ = NULL;
					GitgRepository* _tmp25_ = NULL;
					GitgExtApplication* _tmp26_ = NULL;
					GitgExtApplication* _tmp27_ = NULL;
					GitgExtApplication* _tmp28_ = NULL;
					GeeMap* _tmp29_ = NULL;
					GeeMap* _tmp30_ = NULL;
					GeeMap* _tmp31_ = NULL;
					GgitSignature* _tmp32_ = NULL;
					GgitSignature* _tmp33_ = NULL;
					GgitSignature* _tmp34_ = NULL;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp25_ = repo;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp26_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp27_ = _tmp26_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp28_ = _tmp27_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp29_ = gitg_ext_application_get_environment (_tmp28_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp30_ = _tmp29_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp31_ = _tmp30_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp32_ = gitg_repository_get_signature_with_environment (_tmp25_, _tmp31_, "COMMITER", &_inner_error_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp33_ = _tmp32_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_g_object_unref0 (_tmp31_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_g_object_unref0 (_tmp28_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp24_ = _tmp33_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 371 "gitg-commit-action-create-tag.c"
						goto __catch62_g_error;
					}
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp34_ = _tmp24_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_tmp24_ = NULL;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_g_object_unref0 (author);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					author = _tmp34_;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_g_object_unref0 (_tmp24_);
#line 384 "gitg-commit-action-create-tag.c"
				}
				goto __finally62;
				__catch62_g_error:
				{
#line 82 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					g_clear_error (&_inner_error_);
#line 82 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_inner_error_ = NULL;
#line 393 "gitg-commit-action-create-tag.c"
				}
				__finally62:
#line 82 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 82 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_g_object_unref0 (author);
#line 400 "gitg-commit-action-create-tag.c"
					goto __catch61_g_error;
				}
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp36_ = repo;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp37_ = name;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp38_ = gitg_ext_commit_action_get_commit ((GitgExtCommitAction*) self);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp39_ = _tmp38_;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp40_ = author;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp41_ = msg;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp42_ = ggit_repository_create_tag ((GgitRepository*) _tmp36_, _tmp37_, (GgitObject*) _tmp39_, _tmp40_, _tmp41_, GGIT_CREATE_NONE, &_inner_error_);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp35_ = _tmp42_;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
					_g_object_unref0 (author);
#line 423 "gitg-commit-action-create-tag.c"
					goto __catch61_g_error;
				}
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp43_ = _tmp35_;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp35_ = NULL;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				__vala_GgitOId_free0 (tagid);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				tagid = _tmp43_;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				__vala_GgitOId_free0 (_tmp35_);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_object_unref0 (author);
#line 438 "gitg-commit-action-create-tag.c"
			}
		}
		goto __finally61;
		__catch61_g_error:
		{
			GError* e = NULL;
			GitgExtApplication* _tmp44_ = NULL;
			GitgExtApplication* _tmp45_ = NULL;
			GitgExtApplication* _tmp46_ = NULL;
			const gchar* _tmp47_ = NULL;
			GError* _tmp48_ = NULL;
			const gchar* _tmp49_ = NULL;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			e = _inner_error_;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_inner_error_ = NULL;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp44_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp45_ = _tmp44_;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp46_ = _tmp45_;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp47_ = _ ("Failed to create tag");
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp48_ = e;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp49_ = _tmp48_->message;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			gitg_ext_application_show_infobar (_tmp46_, _tmp47_, _tmp49_, GTK_MESSAGE_ERROR);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_g_object_unref0 (_tmp46_);
#line 96 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			__vala_GgitOId_free0 (tagid);
#line 96 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			tagid = NULL;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_g_error_free0 (e);
#line 477 "gitg-commit-action-create-tag.c"
		}
		__finally61:
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_g_free0 (name);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_g_free0 (msg);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_g_object_unref0 (repo);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			__vala_GgitOId_free0 (tagid);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.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 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			g_clear_error (&_inner_error_);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			return;
#line 496 "gitg-commit-action-create-tag.c"
		}
#line 99 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		tag = NULL;
#line 101 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp50_ = tagid;
#line 101 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		if (_tmp50_ != NULL) {
#line 504 "gitg-commit-action-create-tag.c"
			{
				GitgRef* _tmp51_ = NULL;
				GitgRepository* _tmp52_ = NULL;
				const gchar* _tmp53_ = NULL;
				const gchar* _tmp54_ = NULL;
				gchar* _tmp55_ = NULL;
				gchar* _tmp56_ = NULL;
				GitgRef* _tmp57_ = NULL;
				GitgRef* _tmp58_ = NULL;
				GitgRef* _tmp59_ = NULL;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp52_ = repo;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp53_ = name;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp54_ = string_to_string (_tmp53_);
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp55_ = g_strconcat ("refs/tags/", _tmp54_, NULL);
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp56_ = _tmp55_;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp57_ = gitg_repository_lookup_reference (_tmp52_, _tmp56_, &_inner_error_);
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp58_ = _tmp57_;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_free0 (_tmp56_);
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp51_ = _tmp58_;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 535 "gitg-commit-action-create-tag.c"
					goto __catch63_g_error;
				}
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp59_ = _tmp51_;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp51_ = NULL;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_object_unref0 (tag);
#line 105 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				tag = (GgitRef*) _tmp59_;
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_object_unref0 (_tmp51_);
#line 548 "gitg-commit-action-create-tag.c"
			}
			goto __finally63;
			__catch63_g_error:
			{
				GError* e = NULL;
				GitgExtApplication* _tmp60_ = NULL;
				GitgExtApplication* _tmp61_ = NULL;
				GitgExtApplication* _tmp62_ = NULL;
				const gchar* _tmp63_ = NULL;
				GError* _tmp64_ = NULL;
				const gchar* _tmp65_ = NULL;
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				e = _inner_error_;
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_inner_error_ = NULL;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp60_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp61_ = _tmp60_;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp62_ = _tmp61_;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp63_ = _ ("Failed to lookup tag");
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp64_ = e;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_tmp65_ = _tmp64_->message;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				gitg_ext_application_show_infobar (_tmp62_, _tmp63_, _tmp65_, GTK_MESSAGE_ERROR);
#line 109 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_object_unref0 (_tmp62_);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_error_free0 (e);
#line 582 "gitg-commit-action-create-tag.c"
			}
			__finally63:
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_object_unref0 (tag);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_free0 (name);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_free0 (msg);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				_g_object_unref0 (repo);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				__vala_GgitOId_free0 (tagid);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.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 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				g_clear_error (&_inner_error_);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
				return;
#line 603 "gitg-commit-action-create-tag.c"
			}
		}
#line 115 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_tmp66_ = tag;
#line 115 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		if (_tmp66_ != NULL) {
#line 610 "gitg-commit-action-create-tag.c"
			GitgExtRefActionInterface* _tmp67_ = NULL;
			GitgExtRefActionInterface* _tmp68_ = NULL;
			GgitRef* _tmp69_ = NULL;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp67_ = gitg_ext_commit_action_get_action_interface ((GitgExtCommitAction*) self);
#line 117 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp68_ = _tmp67_;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			_tmp69_ = tag;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
			gitg_ext_ref_action_interface_add_ref (_tmp68_, G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GITG_TYPE_REF, GitgRef));
#line 622 "gitg-commit-action-create-tag.c"
		}
#line 61 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_object_unref0 (tag);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_free0 (name);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_free0 (msg);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		_g_object_unref0 (repo);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		__vala_GgitOId_free0 (tagid);
#line 634 "gitg-commit-action-create-tag.c"
	}
#line 121 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	gtk_widget_destroy ((GtkWidget*) _data38_->dlg);
#line 122 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_signal_emit_by_name ((GitgExtCommitAction*) self, "finished");
#line 640 "gitg-commit-action-create-tag.c"
}


static void ___lambda153__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 60 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	__lambda153_ (self, _sender, response_id);
#line 647 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_real_activate (GitgExtUIElement* base) {
	GitgCommitActionCreateTag * self;
	Block38Data* _data38_;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GtkWindow* _tmp2_ = NULL;
	GitgCreateTagDialog* _tmp3_ = NULL;
	GitgCreateTagDialog* _tmp4_ = NULL;
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_data38_ = g_slice_new0 (Block38Data);
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_data38_->_ref_count_ = 1;
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_data38_->self = g_object_ref (self);
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = _tmp0_;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow);
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp3_ = gitg_create_tag_dialog_new (_tmp2_);
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_object_ref_sink (_tmp3_);
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp4_ = _tmp3_;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_g_object_unref0 (_tmp2_);
#line 58 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_data38_->dlg = _tmp4_;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_signal_connect_data ((GtkDialog*) _data38_->dlg, "response", (GCallback) ___lambda153__gtk_dialog_response, block38_data_ref (_data38_), (GClosureNotify) block38_data_unref, 0);
#line 125 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	gtk_widget_show ((GtkWidget*) _data38_->dlg);
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	block38_data_unref (_data38_);
#line 56 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_data38_ = NULL;
#line 691 "gitg-commit-action-create-tag.c"
}


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


static GitgExtApplication* gitg_commit_action_create_tag_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgCommitActionCreateTag* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = self->priv->_application;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	result = _tmp1_;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return result;
#line 717 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgCommitActionCreateTag* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self->priv->_application = _tmp1_;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_object_notify ((GObject *) self, "application");
#line 737 "gitg-commit-action-create-tag.c"
}


static GitgExtRefActionInterface* gitg_commit_action_create_tag_real_get_action_interface (GitgExtCommitAction* base) {
	GitgExtRefActionInterface* result;
	GitgCommitActionCreateTag* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	result = _tmp0_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return result;
#line 753 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_real_set_action_interface (GitgExtCommitAction* base, GitgExtRefActionInterface* value) {
	GitgCommitActionCreateTag* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = value;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self->priv->_action_interface = _tmp1_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_object_notify ((GObject *) self, "action-interface");
#line 773 "gitg-commit-action-create-tag.c"
}


static GitgCommit* gitg_commit_action_create_tag_real_get_commit (GitgExtCommitAction* base) {
	GitgCommit* result;
	GitgCommitActionCreateTag* self;
	GitgCommit* _tmp0_ = NULL;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = self->priv->_commit;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	result = _tmp0_;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return result;
#line 789 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_real_set_commit (GitgExtCommitAction* base, GitgCommit* value) {
	GitgCommitActionCreateTag* self;
	GitgCommit* _tmp0_ = NULL;
	GitgCommit* _tmp1_ = NULL;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = value;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_g_object_unref0 (self->priv->_commit);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self->priv->_commit = _tmp1_;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_object_notify ((GObject *) self, "commit");
#line 809 "gitg-commit-action-create-tag.c"
}


static gchar* gitg_commit_action_create_tag_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgCommitActionCreateTag* self;
	gchar* _tmp0_ = NULL;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/commit-actions/create-tag");
#line 43 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	result = _tmp0_;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return result;
#line 825 "gitg-commit-action-create-tag.c"
}


static gchar* gitg_commit_action_create_tag_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgCommitActionCreateTag* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = _ ("Create tag");
#line 48 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 48 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	result = _tmp1_;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return result;
#line 844 "gitg-commit-action-create-tag.c"
}


static gchar* gitg_commit_action_create_tag_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgCommitActionCreateTag* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = (GitgCommitActionCreateTag*) base;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp0_ = _ ("Create a new tag at the selected commit");
#line 53 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	result = _tmp1_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	return result;
#line 863 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_class_init (GitgCommitActionCreateTagClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	gitg_commit_action_create_tag_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_type_class_add_private (klass, sizeof (GitgCommitActionCreateTagPrivate));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_commit_action_create_tag_get_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_commit_action_create_tag_set_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_commit_action_create_tag_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_ACTION_CREATE_TAG_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-commit-action-create-tag.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_ACTION_CREATE_TAG_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-commit-action-create-tag.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_ACTION_CREATE_TAG_COMMIT, g_param_spec_object ("commit", "commit", "commit", GITG_TYPE_COMMIT, 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-commit-action-create-tag.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_ACTION_CREATE_TAG_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-commit-action-create-tag.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_ACTION_CREATE_TAG_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-commit-action-create-tag.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_ACTION_CREATE_TAG_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 890 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	gitg_commit_action_create_tag_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->activate = (void (*)(GitgExtUIElement*)) gitg_commit_action_create_tag_real_activate;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->get_application = gitg_commit_action_create_tag_real_get_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->set_application = gitg_commit_action_create_tag_real_set_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->get_id = gitg_commit_action_create_tag_real_get_id;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->get_display_name = gitg_commit_action_create_tag_real_get_display_name;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->get_description = gitg_commit_action_create_tag_real_get_description;
#line 909 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_gitg_ext_action_interface_init (GitgExtActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	gitg_commit_action_create_tag_gitg_ext_action_parent_iface = g_type_interface_peek_parent (iface);
#line 916 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_gitg_ext_commit_action_interface_init (GitgExtCommitActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	gitg_commit_action_create_tag_gitg_ext_commit_action_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->get_action_interface = gitg_commit_action_create_tag_real_get_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->set_action_interface = gitg_commit_action_create_tag_real_set_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->get_commit = gitg_commit_action_create_tag_real_get_commit;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	iface->set_commit = gitg_commit_action_create_tag_real_set_commit;
#line 931 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_instance_init (GitgCommitActionCreateTag * self) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self->priv = GITG_COMMIT_ACTION_CREATE_TAG_GET_PRIVATE (self);
#line 938 "gitg-commit-action-create-tag.c"
}


static void gitg_commit_action_create_tag_finalize (GObject* obj) {
	GitgCommitActionCreateTag * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTag);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	_g_object_unref0 (self->priv->_commit);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	G_OBJECT_CLASS (gitg_commit_action_create_tag_parent_class)->finalize (obj);
#line 954 "gitg-commit-action-create-tag.c"
}


GType gitg_commit_action_create_tag_get_type (void) {
	static volatile gsize gitg_commit_action_create_tag_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_commit_action_create_tag_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgCommitActionCreateTagClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_commit_action_create_tag_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgCommitActionCreateTag), 0, (GInstanceInitFunc) gitg_commit_action_create_tag_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_commit_action_create_tag_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_action_info = { (GInterfaceInitFunc) gitg_commit_action_create_tag_gitg_ext_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_commit_action_info = { (GInterfaceInitFunc) gitg_commit_action_create_tag_gitg_ext_commit_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_commit_action_create_tag_type_id;
		gitg_commit_action_create_tag_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgCommitActionCreateTag", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_commit_action_create_tag_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
		g_type_add_interface_static (gitg_commit_action_create_tag_type_id, GITG_EXT_TYPE_ACTION, &gitg_ext_action_info);
		g_type_add_interface_static (gitg_commit_action_create_tag_type_id, GITG_EXT_TYPE_COMMIT_ACTION, &gitg_ext_commit_action_info);
		g_once_init_leave (&gitg_commit_action_create_tag_type_id__volatile, gitg_commit_action_create_tag_type_id);
	}
	return gitg_commit_action_create_tag_type_id__volatile;
}


static void _vala_gitg_commit_action_create_tag_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgCommitActionCreateTag * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTag);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		g_value_set_object (value, gitg_ext_commit_action_get_action_interface ((GitgExtCommitAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_COMMIT:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		g_value_set_object (value, gitg_ext_commit_action_get_commit ((GitgExtCommitAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_ID:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_DISPLAY_NAME:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_DESCRIPTION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 1017 "gitg-commit-action-create-tag.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 1023 "gitg-commit-action-create-tag.c"
	}
}


static void _vala_gitg_commit_action_create_tag_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgCommitActionCreateTag * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTag);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		gitg_ext_commit_action_set_action_interface ((GitgExtCommitAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		case GITG_COMMIT_ACTION_CREATE_TAG_COMMIT:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		gitg_ext_commit_action_set_commit ((GitgExtCommitAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 1051 "gitg-commit-action-create-tag.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-commit-action-create-tag.vala"
		break;
#line 1057 "gitg-commit-action-create-tag.c"
	}
}



