/* gitg-ref-action-checkout.c generated by valac 0.30.0.38-a55d, 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 <gtk/gtk.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 _Block51Data Block51Data;
#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 _Block51Data {
	int _ref_count_;
	GitgRefActionCheckout* self;
	GitgRepository* repo;
	GitgSimpleNotification* notification;
	gboolean retval;
	gpointer _async_data_;
};

struct _GitgRefActionCheckoutCheckoutData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgRefActionCheckout* self;
	gboolean result;
	Block51Data* _data51_;
	GitgExtApplication* _tmp0_;
	GitgExtApplication* _tmp1_;
	GitgExtApplication* _tmp2_;
	GitgRepository* _tmp3_;
	GitgRepository* _tmp4_;
	GitgRepository* _tmp5_;
	const gchar* _tmp6_;
	GitgRef* _tmp7_;
	GitgRef* _tmp8_;
	GitgParsedRefName* _tmp9_;
	GitgParsedRefName* _tmp10_;
	GitgParsedRefName* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	const gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	GitgSimpleNotification* _tmp20_;
	GitgSimpleNotification* _tmp21_;
	GitgExtApplication* _tmp22_;
	GitgExtApplication* _tmp23_;
	GitgExtApplication* _tmp24_;
	GitgExtNotifications* _tmp25_;
	GitgExtNotifications* _tmp26_;
	GitgExtNotifications* _tmp27_;
	const gchar* _tmp28_;
	GitgExtRefActionInterface* _tmp29_;
	GitgExtRefActionInterface* _tmp30_;
	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 Block51Data* block51_data_ref (Block51Data* _data51_);
static void block51_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 ___lambda74_ (Block51Data* _data51_, GError** error);
void gitg_simple_notification_error (GitgSimpleNotification* self, const gchar* message);
static void ____lambda74__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 __lambda75_ (GitgRefActionCheckout* self, GObject* obj, GAsyncResult* res);
static void ___lambda75__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_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
#line 32 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 32 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 32 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 36 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = application;
#line 36 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = action_interface;
#line 36 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp2_ = reference;
#line 36 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) g_object_new (object_type, "application", _tmp0_, "action-interface", _tmp1_, "reference", _tmp2_, NULL);
#line 32 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return self;
#line 193 "gitg-ref-action-checkout.c"
}


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


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


static gpointer _g_object_ref0 (gpointer self) {
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return self ? g_object_ref (self) : NULL;
#line 218 "gitg-ref-action-checkout.c"
}


void gitg_ref_action_checkout_checkout (GitgRefActionCheckout* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgRefActionCheckoutCheckoutData* _data_;
	GitgRefActionCheckout* _tmp0_ = NULL;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_ = g_slice_new0 (GitgRefActionCheckoutCheckoutData);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_ref_action_checkout_checkout);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_ref_action_checkout_checkout_data_free);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->self = _tmp0_;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout_co (_data_);
#line 237 "gitg-ref-action-checkout.c"
}


gboolean gitg_ref_action_checkout_checkout_finish (GitgRefActionCheckout* self, GAsyncResult* _res_) {
	gboolean result;
	GitgRefActionCheckoutCheckoutData* _data_;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	result = _data_->result;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 250 "gitg-ref-action-checkout.c"
}


static Block51Data* block51_data_ref (Block51Data* _data51_) {
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_atomic_int_inc (&_data51_->_ref_count_);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return _data51_;
#line 259 "gitg-ref-action-checkout.c"
}


static void block51_data_unref (void * _userdata_) {
	Block51Data* _data51_;
	_data51_ = (Block51Data*) _userdata_;
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (g_atomic_int_dec_and_test (&_data51_->_ref_count_)) {
#line 268 "gitg-ref-action-checkout.c"
		GitgRefActionCheckout* self;
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		self = _data51_->self;
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_data51_->notification);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_data51_->repo);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (self);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_slice_free (Block51Data, _data51_);
#line 280 "gitg-ref-action-checkout.c"
	}
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1314 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1315 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	result = self;
#line 1315 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 293 "gitg-ref-action-checkout.c"
}


static void ___lambda74_ (Block51Data* _data51_, GError** error) {
	GitgRefActionCheckout* self;
	GitgCommit* commit = NULL;
	GError * _inner_error_ = NULL;
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = _data51_->self;
#line 303 "gitg-ref-action-checkout.c"
	{
		GgitRef* _tmp0_ = NULL;
		GitgRef* _tmp1_ = NULL;
		GitgRef* _tmp2_ = NULL;
		GgitRef* _tmp3_ = NULL;
		GgitObject* _tmp4_ = NULL;
		GgitRef* _tmp5_ = NULL;
		GgitRef* _tmp6_ = NULL;
		GgitObject* _tmp7_ = NULL;
		GgitObject* _tmp8_ = NULL;
		GgitObject* _tmp9_ = NULL;
		GitgCommit* _tmp10_ = NULL;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp2_ = _tmp1_;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp3_ = ggit_ref_resolve ((GgitRef*) _tmp2_, &_inner_error_);
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp0_ = _tmp3_;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 326 "gitg-ref-action-checkout.c"
			goto __catch85_g_error;
		}
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp5_ = _tmp0_;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp0_ = NULL;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp6_ = _tmp5_;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp7_ = ggit_ref_lookup (_tmp6_, &_inner_error_);
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp8_ = _tmp7_;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp6_);
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp4_ = _tmp8_;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_g_object_unref0 (_tmp0_);
#line 347 "gitg-ref-action-checkout.c"
			goto __catch85_g_error;
		}
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp9_ = _tmp4_;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp4_ = NULL;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, GITG_TYPE_COMMIT) ? ((GitgCommit*) _tmp9_) : NULL;
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		if (_tmp10_ == NULL) {
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_g_object_unref0 (_tmp9_);
#line 360 "gitg-ref-action-checkout.c"
		}
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 84 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		commit = _tmp10_;
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp4_);
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp0_);
#line 370 "gitg-ref-action-checkout.c"
	}
	goto __finally85;
	__catch85_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp11_ = NULL;
		GError* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		e = _inner_error_;
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 88 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp11_ = _ ("Failed to lookup commit: %s");
#line 88 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp12_ = e;
#line 88 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp13_ = _tmp12_->message;
#line 88 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp14_ = g_strdup_printf (_tmp11_, _tmp13_);
#line 88 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp15_ = _tmp14_;
#line 88 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_error (_data51_->notification, _tmp15_);
#line 88 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_free0 (_tmp15_);
#line 89 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_error_free0 (e);
#line 89 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 89 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return;
#line 405 "gitg-ref-action-checkout.c"
	}
	__finally85:
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_propagate_error (error, _inner_error_);
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 82 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return;
#line 416 "gitg-ref-action-checkout.c"
	}
	{
		GgitCheckoutOptions* opts = NULL;
		GgitCheckoutOptions* _tmp16_ = NULL;
		GgitCheckoutOptions* _tmp17_ = NULL;
		GitgCommit* _tmp18_ = NULL;
		GgitTree* _tmp19_ = NULL;
		GgitTree* _tmp20_ = NULL;
		GgitCheckoutOptions* _tmp21_ = NULL;
#line 94 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp16_ = ggit_checkout_options_new ();
#line 94 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		opts = _tmp16_;
#line 95 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp17_ = opts;
#line 95 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		ggit_checkout_options_set_strategy (_tmp17_, GGIT_CHECKOUT_SAFE);
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp18_ = commit;
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp19_ = ggit_commit_get_tree ((GgitCommit*) _tmp18_);
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp20_ = _tmp19_;
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp21_ = opts;
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		ggit_repository_checkout_tree ((GgitRepository*) _data51_->repo, (GgitObject*) _tmp20_, _tmp21_, &_inner_error_);
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (_tmp20_);
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_g_object_unref0 (opts);
#line 450 "gitg-ref-action-checkout.c"
			goto __catch86_g_error;
		}
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (opts);
#line 455 "gitg-ref-action-checkout.c"
	}
	goto __finally86;
	__catch86_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp22_ = NULL;
		GError* _tmp23_ = NULL;
		const gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		e = _inner_error_;
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 101 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp22_ = _ ("Failed to checkout branch: %s");
#line 101 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp23_ = e;
#line 101 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp24_ = _tmp23_->message;
#line 101 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp25_ = g_strdup_printf (_tmp22_, _tmp24_);
#line 101 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp26_ = _tmp25_;
#line 101 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_error (_data51_->notification, _tmp26_);
#line 101 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_free0 (_tmp26_);
#line 102 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_error_free0 (e);
#line 102 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 102 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return;
#line 490 "gitg-ref-action-checkout.c"
	}
	__finally86:
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_propagate_error (error, _inner_error_);
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return;
#line 501 "gitg-ref-action-checkout.c"
	}
	{
		GitgRef* _tmp27_ = NULL;
		GitgRef* _tmp28_ = NULL;
		const gchar* _tmp29_ = NULL;
#line 107 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp27_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 107 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp28_ = _tmp27_;
#line 107 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp29_ = ggit_ref_get_name ((GgitRef*) _tmp28_);
#line 107 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		ggit_repository_set_head ((GgitRepository*) _data51_->repo, _tmp29_, &_inner_error_);
#line 107 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 517 "gitg-ref-action-checkout.c"
			goto __catch87_g_error;
		}
	}
	goto __finally87;
	__catch87_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp30_ = NULL;
		GError* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
		gchar* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		e = _inner_error_;
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp30_ = _ ("Failed to update HEAD: %s");
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp31_ = e;
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp32_ = _tmp31_->message;
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp33_ = g_strdup_printf (_tmp30_, _tmp32_);
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp34_ = _tmp33_;
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_error (_data51_->notification, _tmp34_);
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_free0 (_tmp34_);
#line 112 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_error_free0 (e);
#line 112 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 112 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return;
#line 554 "gitg-ref-action-checkout.c"
	}
	__finally87:
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_propagate_error (error, _inner_error_);
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_g_object_unref0 (commit);
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return;
#line 565 "gitg-ref-action-checkout.c"
	}
#line 115 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data51_->retval = TRUE;
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (commit);
#line 571 "gitg-ref-action-checkout.c"
}


static void ____lambda74__gitg_async_thread_func (gpointer self, GError** error) {
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	___lambda74_ (self, error);
#line 578 "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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_ = _user_data_;
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_source_object_ = source_object;
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_res_ = _res_;
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout_co (_data_);
#line 592 "gitg-ref-action-checkout.c"
}


static gboolean gitg_ref_action_checkout_checkout_co (GitgRefActionCheckoutCheckoutData* _data_) {
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	switch (_data_->_state_) {
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case 0:
#line 601 "gitg-ref-action-checkout.c"
		goto _state_0;
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case 1:
#line 605 "gitg-ref-action-checkout.c"
		goto _state_1;
		default:
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_assert_not_reached ();
#line 610 "gitg-ref-action-checkout.c"
	}
	_state_0:
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_ = g_slice_new0 (Block51Data);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_->_ref_count_ = 1;
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_->self = g_object_ref (_data_->self);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_->_async_data_ = _data_;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp0_ = NULL;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) _data_->self);
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp1_ = NULL;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp2_ = NULL;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp3_ = NULL;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp3_ = gitg_ext_application_get_repository (_data_->_tmp2_);
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp4_ = NULL;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp5_ = NULL;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp2_);
#line 71 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_->repo = _data_->_tmp5_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp6_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp6_ = _ ("Checkout %s");
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp7_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp7_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp8_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp9_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp9_ = gitg_ref_get_parsed_name (_data_->_tmp8_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp10_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp11_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp11_ = _data_->_tmp10_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp12_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp12_ = gitg_parsed_ref_name_get_shortname (_data_->_tmp11_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp13_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp14_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp15_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp15_ = string_to_string (_data_->_tmp14_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp16_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp16_ = g_strconcat ("'", _data_->_tmp15_, "'", NULL);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp17_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp17_ = _data_->_tmp16_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp18_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp18_ = g_strdup_printf (_data_->_tmp6_, _data_->_tmp17_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp19_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp19_ = _data_->_tmp18_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp20_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp20_ = gitg_simple_notification_new (_data_->_tmp19_, NULL);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_object_ref_sink (_data_->_tmp20_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp21_ = NULL;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp21_ = _data_->_tmp20_;
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_free0 (_data_->_tmp19_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_free0 (_data_->_tmp17_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_free0 (_data_->_tmp14_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp11_);
#line 72 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_->notification = _data_->_tmp21_;
#line 73 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_->retval = FALSE;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp22_ = NULL;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp22_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) _data_->self);
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp23_ = NULL;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp23_ = _data_->_tmp22_;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp24_ = NULL;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp24_ = _data_->_tmp23_;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp25_ = NULL;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp25_ = gitg_ext_application_get_notifications (_data_->_tmp24_);
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp26_ = NULL;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp26_ = _data_->_tmp25_;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp27_ = NULL;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_tmp27_ = _data_->_tmp26_;
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	gitg_ext_notifications_add (_data_->_tmp27_, (GitgExtNotification*) _data_->_data51_->notification);
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp27_);
#line 75 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (_data_->_tmp24_);
#line 757 "gitg-ref-action-checkout.c"
	{
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_state_ = 1;
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_async_thread (____lambda74__gitg_async_thread_func, _data_->_data51_, gitg_ref_action_checkout_checkout_ready, _data_);
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return FALSE;
#line 765 "gitg-ref-action-checkout.c"
		_state_1:
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_async_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 79 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 771 "gitg-ref-action-checkout.c"
			goto __catch84_g_error;
		}
	}
	goto __finally84;
	__catch84_g_error:
	{
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_data_->_inner_error_);
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_inner_error_ = NULL;
#line 782 "gitg-ref-action-checkout.c"
	}
	__finally84:
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		block51_data_unref (_data_->_data51_);
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_data51_ = NULL;
#line 77 "/home/nacho/checkout/gnome/gitg/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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_data_->_inner_error_);
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return FALSE;
#line 797 "gitg-ref-action-checkout.c"
	}
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (_data_->_data51_->retval) {
#line 121 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp28_ = NULL;
#line 121 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp28_ = _ ("Successfully checked out branch to working directory");
#line 121 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_simple_notification_success (_data_->_data51_->notification, _data_->_tmp28_);
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp29_ = NULL;
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp29_ = gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) _data_->self);
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp30_ = NULL;
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_data_->_tmp30_ = _data_->_tmp29_;
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ref_action_interface_refresh (_data_->_tmp30_);
#line 817 "gitg-ref-action-checkout.c"
	}
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->result = _data_->_data51_->retval;
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	block51_data_unref (_data_->_data51_);
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_ = NULL;
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (_data_->_state_ == 0) {
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 829 "gitg-ref-action-checkout.c"
	} else {
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 833 "gitg-ref-action-checkout.c"
	}
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_object_unref (_data_->_async_result);
#line 125 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return FALSE;
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	block51_data_unref (_data_->_data51_);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_data_->_data51_ = NULL;
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (_data_->_state_ == 0) {
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 847 "gitg-ref-action-checkout.c"
	} else {
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 851 "gitg-ref-action-checkout.c"
	}
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_object_unref (_data_->_async_result);
#line 69 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return FALSE;
#line 857 "gitg-ref-action-checkout.c"
}


static void __lambda75_ (GitgRefActionCheckout* self, GObject* obj, GAsyncResult* res) {
	GAsyncResult* _tmp0_ = NULL;
#line 130 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_return_if_fail (res != NULL);
#line 131 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = res;
#line 131 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout_finish (self, _tmp0_);
#line 869 "gitg-ref-action-checkout.c"
}


static void ___lambda75__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 130 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	__lambda75_ ((GitgRefActionCheckout*) self, source_object, res);
#line 130 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_object_unref (self);
#line 878 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_real_activate (GitgExtUIElement* base) {
	GitgRefActionCheckout * self;
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 130 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_checkout (self, ___lambda75__gasync_ready_callback, g_object_ref (self));
#line 888 "gitg-ref-action-checkout.c"
}


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


static void gitg_ref_action_checkout_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgRefActionCheckout* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 28 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = value;
#line 28 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self->priv->_application = _tmp1_;
#line 28 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_object_notify ((GObject *) self, "application");
#line 927 "gitg-ref-action-checkout.c"
}


static GitgExtRefActionInterface* gitg_ref_action_checkout_real_get_action_interface (GitgExtRefAction* base) {
	GitgExtRefActionInterface* result;
	GitgRefActionCheckout* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	result = _tmp0_;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 943 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_real_set_action_interface (GitgExtRefAction* base, GitgExtRefActionInterface* value) {
	GitgRefActionCheckout* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = value;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self->priv->_action_interface = _tmp1_;
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_object_notify ((GObject *) self, "action-interface");
#line 963 "gitg-ref-action-checkout.c"
}


static GitgRef* gitg_ref_action_checkout_real_get_reference (GitgExtRefAction* base) {
	GitgRef* result;
	GitgRefActionCheckout* self;
	GitgRef* _tmp0_ = NULL;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = self->priv->_reference;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	result = _tmp0_;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 979 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_real_set_reference (GitgExtRefAction* base, GitgRef* value) {
	GitgRefActionCheckout* self;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = value;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_reference);
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self->priv->_reference = _tmp1_;
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	g_object_notify ((GObject *) self, "reference");
#line 999 "gitg-ref-action-checkout.c"
}


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


static gchar* gitg_ref_action_checkout_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCheckout* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 48 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 48 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = _ ("Checkout");
#line 48 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 48 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	result = _tmp1_;
#line 48 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 1034 "gitg-ref-action-checkout.c"
}


static gchar* gitg_ref_action_checkout_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCheckout* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp0_ = _ ("Checkout the selected reference");
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	result = _tmp1_;
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 1053 "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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = (GitgRefActionCheckout*) base;
#line 1063 "gitg-ref-action-checkout.c"
	{
		gboolean _tmp0_ = FALSE;
		GitgRef* _tmp1_ = NULL;
		GitgRef* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp2_ = _tmp1_;
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_tmp3_ = ggit_ref_is_branch ((GgitRef*) _tmp2_);
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		if (_tmp3_) {
#line 1077 "gitg-ref-action-checkout.c"
			gboolean _tmp4_ = FALSE;
			GitgRef* _tmp5_ = NULL;
			GitgRef* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_tmp5_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_tmp6_ = _tmp5_;
#line 62 "/home/nacho/checkout/gnome/gitg/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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_tmp4_ = _tmp7_;
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1092 "gitg-ref-action-checkout.c"
				goto __catch88_g_error;
			}
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_tmp0_ = !_tmp4_;
#line 1097 "gitg-ref-action-checkout.c"
		} else {
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
			_tmp0_ = FALSE;
#line 1101 "gitg-ref-action-checkout.c"
		}
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		result = _tmp0_;
#line 62 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return result;
#line 1107 "gitg-ref-action-checkout.c"
	}
	goto __finally88;
	__catch88_g_error:
	{
#line 60 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_inner_error_);
#line 60 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		_inner_error_ = NULL;
#line 1116 "gitg-ref-action-checkout.c"
	}
	__finally88:
#line 60 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 60 "/home/nacho/checkout/gnome/gitg/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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_clear_error (&_inner_error_);
#line 60 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		return FALSE;
#line 1127 "gitg-ref-action-checkout.c"
	}
#line 65 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	result = FALSE;
#line 65 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	return result;
#line 1133 "gitg-ref-action-checkout.c"
}


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


static void gitg_ref_action_checkout_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/nacho/checkout/gnome/gitg/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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->activate = (void (*)(GitgExtUIElement*)) gitg_ref_action_checkout_real_activate;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->get_application = gitg_ref_action_checkout_real_get_application;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->set_application = gitg_ref_action_checkout_real_set_application;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->get_id = gitg_ref_action_checkout_real_get_id;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->get_display_name = gitg_ref_action_checkout_real_get_display_name;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->get_description = gitg_ref_action_checkout_real_get_description;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->get_enabled = gitg_ref_action_checkout_real_get_enabled;
#line 1183 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_gitg_ext_action_interface_init (GitgExtActionIface * iface) {
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	gitg_ref_action_checkout_gitg_ext_action_parent_iface = g_type_interface_peek_parent (iface);
#line 1190 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_gitg_ext_ref_action_interface_init (GitgExtRefActionIface * iface) {
#line 23 "/home/nacho/checkout/gnome/gitg/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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->get_action_interface = gitg_ref_action_checkout_real_get_action_interface;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->set_action_interface = gitg_ref_action_checkout_real_set_action_interface;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->get_reference = gitg_ref_action_checkout_real_get_reference;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	iface->set_reference = gitg_ref_action_checkout_real_set_reference;
#line 1205 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_instance_init (GitgRefActionCheckout * self) {
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self->priv = GITG_REF_ACTION_CHECKOUT_GET_PRIVATE (self);
#line 1212 "gitg-ref-action-checkout.c"
}


static void gitg_ref_action_checkout_finalize (GObject* obj) {
	GitgRefActionCheckout * self;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckout);
#line 28 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	_g_object_unref0 (self->priv->_reference);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	G_OBJECT_CLASS (gitg_ref_action_checkout_parent_class)->finalize (obj);
#line 1228 "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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	switch (property_id) {
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_APPLICATION:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ACTION_INTERFACE:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_REFERENCE:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ID:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_DISPLAY_NAME:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_DESCRIPTION:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ENABLED:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1297 "gitg-ref-action-checkout.c"
		default:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1303 "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/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
	switch (property_id) {
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_APPLICATION:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_ACTION_INTERFACE:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ref_action_set_action_interface ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		case GITG_REF_ACTION_CHECKOUT_REFERENCE:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		gitg_ext_ref_action_set_reference ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1331 "gitg-ref-action-checkout.c"
		default:
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-ref-action-checkout.vala"
		break;
#line 1337 "gitg-ref-action-checkout.c"
	}
}



