/* gitg-ref-action-checkout.c generated by valac 0.35.5.2-9e6c0, the Vala compiler
 * generated from gitg-ref-action-checkout.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2015 - 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 <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <libgit2-glib/ggit.h>


#define GITG_TYPE_REF_ACTION_CHECKOUT (gitg_ref_action_checkout_get_type ())
#define GITG_REF_ACTION_CHECKOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckout))
#define GITG_REF_ACTION_CHECKOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckoutClass))
#define GITG_IS_REF_ACTION_CHECKOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_CHECKOUT))
#define GITG_IS_REF_ACTION_CHECKOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_CHECKOUT))
#define GITG_REF_ACTION_CHECKOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckoutClass))

typedef struct _GitgRefActionCheckout GitgRefActionCheckout;
typedef struct _GitgRefActionCheckoutClass GitgRefActionCheckoutClass;
typedef struct _GitgRefActionCheckoutPrivate GitgRefActionCheckoutPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_TYPE_SIMPLE_NOTIFICATION (gitg_simple_notification_get_type ())
#define GITG_SIMPLE_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_SIMPLE_NOTIFICATION, GitgSimpleNotification))
#define GITG_SIMPLE_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_SIMPLE_NOTIFICATION, GitgSimpleNotificationClass))
#define GITG_IS_SIMPLE_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_SIMPLE_NOTIFICATION))
#define GITG_IS_SIMPLE_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_SIMPLE_NOTIFICATION))
#define GITG_SIMPLE_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_SIMPLE_NOTIFICATION, GitgSimpleNotificationClass))

typedef struct _GitgSimpleNotification GitgSimpleNotification;
typedef struct _GitgSimpleNotificationClass GitgSimpleNotificationClass;
typedef struct _Block22Data Block22Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _GitgRefActionCheckoutCheckoutData GitgRefActionCheckoutCheckoutData;

struct _GitgRefActionCheckout {
	GObject parent_instance;
	GitgRefActionCheckoutPrivate * priv;
};

struct _GitgRefActionCheckoutClass {
	GObjectClass parent_class;
};

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

struct _Block22Data {
	int _ref_count_;
	GitgRefActionCheckout* self;
	GitgRepository* repo;
	GitgSimpleNotification* notification;
	gboolean retval;
	gpointer _async_data_;
};

struct _GitgRefActionCheckoutCheckoutData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	GitgRefActionCheckout* self;
	gboolean result;
	Block22Data* _data22_;
	GitgExtApplication* _tmp0_;
	GitgExtApplication* _tmp1_;
	GitgExtApplication* _tmp2_;
	GitgRepository* _tmp3_;
	GitgRepository* _tmp4_;
	GitgRepository* _tmp5_;
	GitgRef* _tmp6_;
	GitgRef* _tmp7_;
	GitgParsedRefName* _tmp8_;
	GitgParsedRefName* _tmp9_;
	GitgParsedRefName* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	GitgSimpleNotification* _tmp19_;
	GitgSimpleNotification* _tmp20_;
	GitgExtApplication* _tmp21_;
	GitgExtApplication* _tmp22_;
	GitgExtApplication* _tmp23_;
	GitgExtNotifications* _tmp24_;
	GitgExtNotifications* _tmp25_;
	GitgExtNotifications* _tmp26_;
	GitgExtRefActionInterface* _tmp27_;
	GitgExtRefActionInterface* _tmp28_;
	GError * _inner_error_;
};


static gpointer gitg_ref_action_checkout_parent_class = NULL;
static GitgExtUIElementIface * gitg_ref_action_checkout_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtActionIface * gitg_ref_action_checkout_gitg_ext_action_parent_iface = NULL;
static GitgExtRefActionIface * gitg_ref_action_checkout_gitg_ext_ref_action_parent_iface = NULL;

GType gitg_ref_action_checkout_get_type (void) G_GNUC_CONST;
#define GITG_REF_ACTION_CHECKOUT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckoutPrivate))
enum  {
	GITG_REF_ACTION_CHECKOUT_DUMMY_PROPERTY,
	GITG_REF_ACTION_CHECKOUT_APPLICATION,
	GITG_REF_ACTION_CHECKOUT_ACTION_INTERFACE,
	GITG_REF_ACTION_CHECKOUT_REFERENCE,
	GITG_REF_ACTION_CHECKOUT_ID,
	GITG_REF_ACTION_CHECKOUT_DISPLAY_NAME,
	GITG_REF_ACTION_CHECKOUT_DESCRIPTION,
	GITG_REF_ACTION_CHECKOUT_ENABLED
};
#define GITG_REF_ACTION_CHECKOUT_version VERSION
GitgRefActionCheckout* gitg_ref_action_checkout_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionCheckout* gitg_ref_action_checkout_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
static void gitg_ref_action_checkout_checkout_data_free (gpointer _data);
void gitg_ref_action_checkout_checkout (GitgRefActionCheckout* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
gboolean gitg_ref_action_checkout_checkout_finish (GitgRefActionCheckout* self, GAsyncResult* _res_);
static gboolean gitg_ref_action_checkout_checkout_co (GitgRefActionCheckoutCheckoutData* _data_);
GType gitg_simple_notification_get_type (void) G_GNUC_CONST;
static Block22Data* block22_data_ref (Block22Data* _data22_);
static void block22_data_unref (void * _userdata_);
GitgSimpleNotification* gitg_simple_notification_new (const gchar* title, const gchar* message);
GitgSimpleNotification* gitg_simple_notification_construct (GType object_type, const gchar* title, const gchar* message);
static void ___lambda4_ (Block22Data* _data22_, GError** error);
void gitg_simple_notification_error (GitgSimpleNotification* self, const gchar* message);
static void ____lambda4__gitg_async_thread_func (gpointer self, GError** error);
static void gitg_ref_action_checkout_checkout_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void gitg_simple_notification_success (GitgSimpleNotification* self, const gchar* message);
static void gitg_ref_action_checkout_real_activate (GitgExtUIElement* base);
static void __lambda5_ (GitgRefActionCheckout* self, GObject* obj, GAsyncResult* res);
static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void gitg_ref_action_checkout_finalize (GObject * obj);
static void _vala_gitg_ref_action_checkout_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_ref_action_checkout_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GitgRefActionCheckout* gitg_ref_action_checkout_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
	GitgRefActionCheckout * self = NULL;
	GitgExtApplication* _tmp0_;
	GitgExtRefActionInterface* _tmp1_;
	GitgRef* _tmp2_;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = application;
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = action_interface;
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp2_ = reference;
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) g_object_new (object_type, "application", _tmp0_, "action-interface", _tmp1_, "reference", _tmp2_, NULL);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return self;
#line 191 "gitg-ref-action-checkout.c"
}


GitgRefActionCheckout* gitg_ref_action_checkout_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return gitg_ref_action_checkout_construct (GITG_TYPE_REF_ACTION_CHECKOUT, application, action_interface, reference);
#line 198 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_checkout_data_free (gpointer _data) {
	GitgRefActionCheckoutCheckoutData* _data_;
	_data_ = _data;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_slice_free (GitgRefActionCheckoutCheckoutData, _data_);
#line 209 "gitg-ref-action-checkout.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return self ? g_object_ref (self) : NULL;
#line 216 "gitg-ref-action-checkout.c"
}


void gitg_ref_action_checkout_checkout (GitgRefActionCheckout* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgRefActionCheckoutCheckoutData* _data_;
	GitgRefActionCheckout* _tmp0_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_ = g_slice_new0 (GitgRefActionCheckoutCheckoutData);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (_callback_ == NULL) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_data_->_task_complete_ = TRUE;
#line 231 "gitg-ref-action-checkout.c"
	}
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_task_set_task_data (_data_->_async_result, _data_, gitg_ref_action_checkout_checkout_data_free);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->self = _tmp0_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout_co (_data_);
#line 241 "gitg-ref-action-checkout.c"
}


gboolean gitg_ref_action_checkout_checkout_finish (GitgRefActionCheckout* self, GAsyncResult* _res_) {
	gboolean result;
	GitgRefActionCheckoutCheckoutData* _data_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_task_complete_ = TRUE;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = _data_->result;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 256 "gitg-ref-action-checkout.c"
}


static Block22Data* block22_data_ref (Block22Data* _data22_) {
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_atomic_int_inc (&_data22_->_ref_count_);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return _data22_;
#line 265 "gitg-ref-action-checkout.c"
}


static void block22_data_unref (void * _userdata_) {
	Block22Data* _data22_;
	_data22_ = (Block22Data*) _userdata_;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (g_atomic_int_dec_and_test (&_data22_->_ref_count_)) {
#line 274 "gitg-ref-action-checkout.c"
		GitgRefActionCheckout* self;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		self = _data22_->self;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_data22_->notification);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_data22_->repo);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (self);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_slice_free (Block22Data, _data22_);
#line 286 "gitg-ref-action-checkout.c"
	}
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1434 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	result = self;
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	return result;
#line 299 "gitg-ref-action-checkout.c"
}


static void ___lambda4_ (Block22Data* _data22_, GError** error) {
	GitgRefActionCheckout* self;
	GitgCommit* commit = NULL;
	GError * _inner_error_ = NULL;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = _data22_->self;
#line 309 "gitg-ref-action-checkout.c"
	{
		GgitRef* _tmp0_;
		GitgRef* _tmp1_;
		GitgRef* _tmp2_;
		GgitRef* _tmp3_;
		GgitObject* _tmp4_;
		GgitRef* _tmp5_;
		GgitRef* _tmp6_;
		GgitObject* _tmp7_;
		GgitObject* _tmp8_;
		GgitObject* _tmp9_;
		GitgCommit* _tmp10_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp2_ = _tmp1_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp3_ = ggit_ref_resolve ((GgitRef*) _tmp2_, &_inner_error_);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp0_ = _tmp3_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 332 "gitg-ref-action-checkout.c"
			goto __catch22_g_error;
		}
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp5_ = _tmp0_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp0_ = NULL;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp6_ = _tmp5_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp7_ = ggit_ref_lookup (_tmp6_, &_inner_error_);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp8_ = _tmp7_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp6_);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp4_ = _tmp8_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_g_object_unref0 (_tmp0_);
#line 353 "gitg-ref-action-checkout.c"
			goto __catch22_g_error;
		}
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp9_ = _tmp4_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp4_ = NULL;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp9_) : NULL;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		if (_tmp10_ == NULL) {
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_g_object_unref0 (_tmp9_);
#line 366 "gitg-ref-action-checkout.c"
		}
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		commit = _tmp10_;
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp4_);
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp0_);
#line 376 "gitg-ref-action-checkout.c"
	}
	goto __finally22;
	__catch22_g_error:
	{
		GError* e = NULL;
		GError* _tmp11_;
		const gchar* _tmp12_;
		gchar* _tmp13_;
		gchar* _tmp14_;
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		e = _inner_error_;
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp11_ = e;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp12_ = _tmp11_->message;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp13_ = g_strdup_printf (_ ("Failed to lookup commit: %s"), _tmp12_);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp14_ = _tmp13_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_error (_data22_->notification, _tmp14_);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_free0 (_tmp14_);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_error_free0 (e);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return;
#line 408 "gitg-ref-action-checkout.c"
	}
	__finally22:
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_propagate_error (error, _inner_error_);
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return;
#line 419 "gitg-ref-action-checkout.c"
	}
	{
		GgitCheckoutOptions* opts;
		GgitCheckoutOptions* _tmp15_;
		GgitCheckoutOptions* _tmp16_;
		GitgCommit* _tmp17_;
		GgitTree* _tmp18_;
		GgitTree* _tmp19_;
		GgitCheckoutOptions* _tmp20_;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp15_ = ggit_checkout_options_new ();
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		opts = _tmp15_;
#line 95 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp16_ = opts;
#line 95 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		ggit_checkout_options_set_strategy (_tmp16_, GGIT_CHECKOUT_SAFE);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp17_ = commit;
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp18_ = ggit_commit_get_tree ((GgitCommit*) _tmp17_);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp19_ = _tmp18_;
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp20_ = opts;
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		ggit_repository_checkout_tree ((GgitRepository*) _data22_->repo, (GgitObject*) _tmp19_, _tmp20_, &_inner_error_);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp19_);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_g_object_unref0 (opts);
#line 453 "gitg-ref-action-checkout.c"
			goto __catch23_g_error;
		}
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (opts);
#line 458 "gitg-ref-action-checkout.c"
	}
	goto __finally23;
	__catch23_g_error:
	{
		GError* e = NULL;
		GError* _tmp21_;
		const gchar* _tmp22_;
		gchar* _tmp23_;
		gchar* _tmp24_;
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		e = _inner_error_;
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp21_ = e;
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp22_ = _tmp21_->message;
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp23_ = g_strdup_printf (_ ("Failed to checkout branch: %s"), _tmp22_);
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp24_ = _tmp23_;
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_error (_data22_->notification, _tmp24_);
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_free0 (_tmp24_);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_error_free0 (e);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return;
#line 490 "gitg-ref-action-checkout.c"
	}
	__finally23:
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_propagate_error (error, _inner_error_);
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 92 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return;
#line 501 "gitg-ref-action-checkout.c"
	}
	{
		GitgRef* _tmp25_;
		GitgRef* _tmp26_;
		const gchar* _tmp27_;
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp25_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp26_ = _tmp25_;
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp27_ = ggit_ref_get_name ((GgitRef*) _tmp26_);
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		ggit_repository_set_head ((GgitRepository*) _data22_->repo, _tmp27_, &_inner_error_);
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 517 "gitg-ref-action-checkout.c"
			goto __catch24_g_error;
		}
	}
	goto __finally24;
	__catch24_g_error:
	{
		GError* e = NULL;
		GError* _tmp28_;
		const gchar* _tmp29_;
		gchar* _tmp30_;
		gchar* _tmp31_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		e = _inner_error_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp28_ = e;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp29_ = _tmp28_->message;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp30_ = g_strdup_printf (_ ("Failed to update HEAD: %s"), _tmp29_);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp31_ = _tmp30_;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_error (_data22_->notification, _tmp31_);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_free0 (_tmp31_);
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_error_free0 (e);
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return;
#line 551 "gitg-ref-action-checkout.c"
	}
	__finally24:
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_propagate_error (error, _inner_error_);
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return;
#line 562 "gitg-ref-action-checkout.c"
	}
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data22_->retval = TRUE;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (commit);
#line 568 "gitg-ref-action-checkout.c"
}


static void ____lambda4__gitg_async_thread_func (gpointer self, GError** error) {
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	___lambda4_ (self, error);
#line 575 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_checkout_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgRefActionCheckoutCheckoutData* _data_;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_ = _user_data_;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_source_object_ = source_object;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_res_ = _res_;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_task_complete_ = TRUE;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout_co (_data_);
#line 591 "gitg-ref-action-checkout.c"
}


static gboolean gitg_ref_action_checkout_checkout_co (GitgRefActionCheckoutCheckoutData* _data_) {
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	switch (_data_->_state_) {
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case 0:
#line 600 "gitg-ref-action-checkout.c"
		goto _state_0;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case 1:
#line 604 "gitg-ref-action-checkout.c"
		goto _state_1;
		default:
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_assert_not_reached ();
#line 609 "gitg-ref-action-checkout.c"
	}
	_state_0:
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_ = g_slice_new0 (Block22Data);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_->_ref_count_ = 1;
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_->self = g_object_ref (_data_->self);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_->_async_data_ = _data_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) _data_->self);
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp3_ = gitg_ext_application_get_repository (_data_->_tmp2_);
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp2_);
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_->repo = _data_->_tmp5_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp6_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp8_ = gitg_ref_get_parsed_name (_data_->_tmp7_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp11_ = gitg_parsed_ref_name_get_shortname (_data_->_tmp10_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp14_ = string_to_string (_data_->_tmp13_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp15_ = g_strconcat ("'", _data_->_tmp14_, "'", NULL);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp17_ = g_strdup_printf (_ ("Checkout %s"), _data_->_tmp16_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp18_ = _data_->_tmp17_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp19_ = gitg_simple_notification_new (_data_->_tmp18_, NULL);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp20_ = _data_->_tmp19_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_free0 (_data_->_tmp18_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_free0 (_data_->_tmp16_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_free0 (_data_->_tmp13_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp10_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_->notification = _data_->_tmp20_;
#line 73 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_->retval = FALSE;
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp21_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) _data_->self);
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp22_ = _data_->_tmp21_;
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp23_ = _data_->_tmp22_;
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp24_ = gitg_ext_application_get_notifications (_data_->_tmp23_);
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp25_ = _data_->_tmp24_;
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp26_ = _data_->_tmp25_;
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ext_notifications_add (_data_->_tmp26_, (GitgExtNotification*) _data_->_data22_->notification);
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp26_);
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp23_);
#line 696 "gitg-ref-action-checkout.c"
	{
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_data_->_state_ = 1;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_async_thread (____lambda4__gitg_async_thread_func, _data_->_data22_, gitg_ref_action_checkout_checkout_ready, _data_);
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return FALSE;
#line 704 "gitg-ref-action-checkout.c"
		_state_1:
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_async_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 710 "gitg-ref-action-checkout.c"
			goto __catch21_g_error;
		}
	}
	goto __finally21;
	__catch21_g_error:
	{
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_data_->_inner_error_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_data_->_inner_error_ = NULL;
#line 721 "gitg-ref-action-checkout.c"
	}
	__finally21:
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		block22_data_unref (_data_->_data22_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_data_->_data22_ = NULL;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_data_->_inner_error_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return FALSE;
#line 736 "gitg-ref-action-checkout.c"
	}
#line 119 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (_data_->_data22_->retval) {
#line 121 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_success (_data_->_data22_->notification, _ ("Successfully checked out branch to working directory"));
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp27_ = gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) _data_->self);
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ref_action_interface_refresh (_data_->_tmp28_);
#line 748 "gitg-ref-action-checkout.c"
	}
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->result = _data_->_data22_->retval;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	block22_data_unref (_data_->_data22_);
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_data_->_data22_ = NULL;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (_data_->_state_ != 0) {
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 764 "gitg-ref-action-checkout.c"
		}
	}
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_unref (_data_->_async_result);
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return FALSE;
#line 771 "gitg-ref-action-checkout.c"
}


static void __lambda5_ (GitgRefActionCheckout* self, GObject* obj, GAsyncResult* res) {
	GAsyncResult* _tmp0_;
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_return_if_fail (res != NULL);
#line 131 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = res;
#line 131 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout_finish (self, _tmp0_);
#line 783 "gitg-ref-action-checkout.c"
}


static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	__lambda5_ ((GitgRefActionCheckout*) self, source_object, res);
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_unref (self);
#line 792 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_real_activate (GitgExtUIElement* base) {
	GitgRefActionCheckout * self;
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout (self, ___lambda5__gasync_ready_callback, g_object_ref (self));
#line 802 "gitg-ref-action-checkout.c"
}


static GitgExtApplication* gitg_ref_action_checkout_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgRefActionCheckout* self;
	GitgExtApplication* _tmp0_;
	GitgExtApplication* _tmp1_;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = self->priv->_application;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = _tmp1_;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 821 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgRefActionCheckout* self;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (gitg_ref_action_checkout_real_get_application (self) != value) {
#line 831 "gitg-ref-action-checkout.c"
		GitgExtApplication* _tmp0_;
		GitgExtApplication* _tmp1_;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp0_ = value;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (self->priv->_application);
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		self->priv->_application = _tmp1_;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_object_notify ((GObject *) self, "application");
#line 844 "gitg-ref-action-checkout.c"
	}
}


static GitgExtRefActionInterface* gitg_ref_action_checkout_real_get_action_interface (GitgExtRefAction* base) {
	GitgExtRefActionInterface* result;
	GitgRefActionCheckout* self;
	GitgExtRefActionInterface* _tmp0_;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = _tmp0_;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 861 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_real_set_action_interface (GitgExtRefAction* base, GitgExtRefActionInterface* value) {
	GitgRefActionCheckout* self;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (gitg_ref_action_checkout_real_get_action_interface (self) != value) {
#line 871 "gitg-ref-action-checkout.c"
		GitgExtRefActionInterface* _tmp0_;
		GitgExtRefActionInterface* _tmp1_;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp0_ = value;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		self->priv->_action_interface = _tmp1_;
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_object_notify ((GObject *) self, "action-interface");
#line 884 "gitg-ref-action-checkout.c"
	}
}


static GitgRef* gitg_ref_action_checkout_real_get_reference (GitgExtRefAction* base) {
	GitgRef* result;
	GitgRefActionCheckout* self;
	GitgRef* _tmp0_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = self->priv->_reference;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = _tmp0_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 901 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_real_set_reference (GitgExtRefAction* base, GitgRef* value) {
	GitgRefActionCheckout* self;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (gitg_ref_action_checkout_real_get_reference (self) != value) {
#line 911 "gitg-ref-action-checkout.c"
		GitgRef* _tmp0_;
		GitgRef* _tmp1_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp0_ = value;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (self->priv->_reference);
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		self->priv->_reference = _tmp1_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_object_notify ((GObject *) self, "reference");
#line 924 "gitg-ref-action-checkout.c"
	}
}


static gchar* gitg_ref_action_checkout_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCheckout* self;
	gchar* _tmp0_;
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/ref-actions/checkout");
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = _tmp0_;
#line 43 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 941 "gitg-ref-action-checkout.c"
}


static gchar* gitg_ref_action_checkout_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCheckout* self;
	gchar* _tmp0_;
#line 48 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 48 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = g_strdup (_ ("Checkout"));
#line 48 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = _tmp0_;
#line 48 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 957 "gitg-ref-action-checkout.c"
}


static gchar* gitg_ref_action_checkout_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCheckout* self;
	gchar* _tmp0_;
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = g_strdup (_ ("Checkout the selected reference"));
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = _tmp0_;
#line 53 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 973 "gitg-ref-action-checkout.c"
}


static gboolean gitg_ref_action_checkout_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgRefActionCheckout* self;
	GError * _inner_error_ = NULL;
#line 58 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 983 "gitg-ref-action-checkout.c"
	{
		gboolean _tmp0_ = FALSE;
		GitgRef* _tmp1_;
		GitgRef* _tmp2_;
		gboolean _tmp3_;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp2_ = _tmp1_;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_tmp3_ = ggit_ref_is_branch ((GgitRef*) _tmp2_);
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		if (_tmp3_) {
#line 997 "gitg-ref-action-checkout.c"
			gboolean _tmp4_;
			GitgRef* _tmp5_;
			GitgRef* _tmp6_;
			gboolean _tmp7_;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_tmp5_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_tmp6_ = _tmp5_;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_tmp7_ = ggit_branch_is_head (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, ggit_branch_get_type (), GgitBranch), &_inner_error_);
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_tmp4_ = _tmp7_;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1012 "gitg-ref-action-checkout.c"
				goto __catch25_g_error;
			}
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_tmp0_ = !_tmp4_;
#line 1017 "gitg-ref-action-checkout.c"
		} else {
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
			_tmp0_ = FALSE;
#line 1021 "gitg-ref-action-checkout.c"
		}
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		result = _tmp0_;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return result;
#line 1027 "gitg-ref-action-checkout.c"
	}
	goto __finally25;
	__catch25_g_error:
	{
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_inner_error_);
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 1036 "gitg-ref-action-checkout.c"
	}
	__finally25:
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1041 "gitg-ref-action-checkout.c"
		gboolean _tmp8_ = FALSE;
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.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 60 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_inner_error_);
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		return _tmp8_;
#line 1049 "gitg-ref-action-checkout.c"
	}
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	result = FALSE;
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 1055 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_class_init (GitgRefActionCheckoutClass * klass) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_type_class_add_private (klass, sizeof (GitgRefActionCheckoutPrivate));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ref_action_checkout_get_property;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ref_action_checkout_set_property;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ref_action_checkout_finalize;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_CHECKOUT_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/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_CHECKOUT_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/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_CHECKOUT_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/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_CHECKOUT_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/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_CHECKOUT_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/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_CHECKOUT_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/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_CHECKOUT_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 1084 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->activate = (void (*) (GitgExtUIElement *)) gitg_ref_action_checkout_real_activate;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->get_application = gitg_ref_action_checkout_real_get_application;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->set_application = gitg_ref_action_checkout_real_set_application;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->get_id = gitg_ref_action_checkout_real_get_id;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->get_display_name = gitg_ref_action_checkout_real_get_display_name;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->get_description = gitg_ref_action_checkout_real_get_description;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->get_enabled = gitg_ref_action_checkout_real_get_enabled;
#line 1105 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_gitg_ext_action_interface_init (GitgExtActionIface * iface) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_gitg_ext_action_parent_iface = g_type_interface_peek_parent (iface);
#line 1112 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_gitg_ext_ref_action_interface_init (GitgExtRefActionIface * iface) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_gitg_ext_ref_action_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->get_action_interface = gitg_ref_action_checkout_real_get_action_interface;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->set_action_interface = gitg_ref_action_checkout_real_set_action_interface;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->get_reference = gitg_ref_action_checkout_real_get_reference;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	iface->set_reference = gitg_ref_action_checkout_real_set_reference;
#line 1127 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_instance_init (GitgRefActionCheckout * self) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self->priv = GITG_REF_ACTION_CHECKOUT_GET_PRIVATE (self);
#line 1134 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_finalize (GObject * obj) {
	GitgRefActionCheckout * self;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckout);
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_reference);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	G_OBJECT_CLASS (gitg_ref_action_checkout_parent_class)->finalize (obj);
#line 1150 "gitg-ref-action-checkout.c"
}


GType gitg_ref_action_checkout_get_type (void) {
	static volatile gsize gitg_ref_action_checkout_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_action_checkout_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRefActionCheckoutClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ref_action_checkout_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgRefActionCheckout), 0, (GInstanceInitFunc) gitg_ref_action_checkout_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_ref_action_checkout_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_action_info = { (GInterfaceInitFunc) gitg_ref_action_checkout_gitg_ext_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_ref_action_info = { (GInterfaceInitFunc) gitg_ref_action_checkout_gitg_ext_ref_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_ref_action_checkout_type_id;
		gitg_ref_action_checkout_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgRefActionCheckout", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_ref_action_checkout_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
		g_type_add_interface_static (gitg_ref_action_checkout_type_id, GITG_EXT_TYPE_ACTION, &gitg_ext_action_info);
		g_type_add_interface_static (gitg_ref_action_checkout_type_id, GITG_EXT_TYPE_REF_ACTION, &gitg_ext_ref_action_info);
		g_once_init_leave (&gitg_ref_action_checkout_type_id__volatile, gitg_ref_action_checkout_type_id);
	}
	return gitg_ref_action_checkout_type_id__volatile;
}


static void _vala_gitg_ref_action_checkout_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgRefActionCheckout * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckout);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	switch (property_id) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_APPLICATION:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ACTION_INTERFACE:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_REFERENCE:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ID:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_DISPLAY_NAME:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_DESCRIPTION:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ENABLED:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1219 "gitg-ref-action-checkout.c"
		default:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1225 "gitg-ref-action-checkout.c"
	}
}


static void _vala_gitg_ref_action_checkout_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgRefActionCheckout * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckout);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
	switch (property_id) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_APPLICATION:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ACTION_INTERFACE:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ref_action_set_action_interface ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_REFERENCE:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ref_action_set_reference ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1253 "gitg-ref-action-checkout.c"
		default:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/tests/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1259 "gitg-ref-action-checkout.c"
	}
}



