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

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include "libgitg-ext/libgitg-ext.h"
#include "libgitg/libgitg.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <libgit2-glib/ggit.h>
#include <gio/gio.h>
#include <gee.h>
#include <glib/gi18n-lib.h>
#include <stdio.h>


#define GITG_TYPE_REF_ACTION_FETCH (gitg_ref_action_fetch_get_type ())
#define GITG_REF_ACTION_FETCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetch))
#define GITG_REF_ACTION_FETCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetchClass))
#define GITG_IS_REF_ACTION_FETCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_FETCH))
#define GITG_IS_REF_ACTION_FETCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_FETCH))
#define GITG_REF_ACTION_FETCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetchClass))

typedef struct _GitgRefActionFetch GitgRefActionFetch;
typedef struct _GitgRefActionFetchClass GitgRefActionFetchClass;
typedef struct _GitgRefActionFetchPrivate GitgRefActionFetchPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block52Data Block52Data;

#define GITG_TYPE_REMOTE_NOTIFICATION (gitg_remote_notification_get_type ())
#define GITG_REMOTE_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REMOTE_NOTIFICATION, GitgRemoteNotification))
#define GITG_REMOTE_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REMOTE_NOTIFICATION, GitgRemoteNotificationClass))
#define GITG_IS_REMOTE_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REMOTE_NOTIFICATION))
#define GITG_IS_REMOTE_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REMOTE_NOTIFICATION))
#define GITG_REMOTE_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REMOTE_NOTIFICATION, GitgRemoteNotificationClass))

typedef struct _GitgRemoteNotification GitgRemoteNotification;
typedef struct _GitgRemoteNotificationClass GitgRemoteNotificationClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _GitgRefActionFetchFetchData GitgRefActionFetchFetchData;

struct _GitgRefActionFetch {
	GObject parent_instance;
	GitgRefActionFetchPrivate * priv;
};

struct _GitgRefActionFetchClass {
	GObjectClass parent_class;
};

struct _GitgRefActionFetchPrivate {
	GitgExtApplication* _application;
	GitgExtRefActionInterface* _action_interface;
	GitgRef* _reference;
	GitgRef* d_remote_ref;
	GitgRemote* d_remote;
};

struct _Block52Data {
	int _ref_count_;
	GitgRefActionFetch* self;
	GeeArrayList* updates;
	gpointer _async_data_;
};

struct _GitgRefActionFetchFetchData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgRefActionFetch* self;
	gboolean result;
	Block52Data* _data52_;
	GitgRemoteNotification* notification;
	GitgRemote* _tmp0_;
	GitgRemoteNotification* _tmp1_;
	GitgExtApplication* _tmp2_;
	GitgExtApplication* _tmp3_;
	GitgExtApplication* _tmp4_;
	GitgExtNotifications* _tmp5_;
	GitgExtNotifications* _tmp6_;
	GitgExtNotifications* _tmp7_;
	const gchar* _tmp8_;
	GitgRemote* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	GeeArrayList* _tmp13_;
	gulong tip_updated_id;
	GitgRemote* _tmp14_;
	gulong _tmp15_;
	GitgRemote* _tmp16_;
	GError* e;
	const gchar* _tmp17_;
	GitgRemote* _tmp18_;
	const gchar* _tmp19_;
	GError* _tmp20_;
	const gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	FILE* _tmp24_;
	GError* _tmp25_;
	const gchar* _tmp26_;
	GitgRemote* _tmp27_;
	GitgRemote* _tmp28_;
	gint _tmp29_;
	gint _tmp30_;
	const gchar* _tmp31_;
	GitgRemote* _tmp32_;
	const gchar* _tmp33_;
	gchar* _tmp34_;
	gchar* _tmp35_;
	const gchar* _tmp36_;
	GitgRemote* _tmp37_;
	const gchar* _tmp38_;
	gint _tmp39_;
	gpointer* _tmp40_;
	gchar** _tmp41_;
	gint _tmp41__length1;
	gchar* _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
	gchar* _tmp45_;
	GError * _inner_error_;
};


static gpointer gitg_ref_action_fetch_parent_class = NULL;
static GitgExtUIElementIface* gitg_ref_action_fetch_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtActionIface* gitg_ref_action_fetch_gitg_ext_action_parent_iface = NULL;
static GitgExtRefActionIface* gitg_ref_action_fetch_gitg_ext_ref_action_parent_iface = NULL;

GType gitg_ref_action_fetch_get_type (void) G_GNUC_CONST;
#define GITG_REF_ACTION_FETCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetchPrivate))
enum  {
	GITG_REF_ACTION_FETCH_DUMMY_PROPERTY,
	GITG_REF_ACTION_FETCH_APPLICATION,
	GITG_REF_ACTION_FETCH_ACTION_INTERFACE,
	GITG_REF_ACTION_FETCH_REFERENCE,
	GITG_REF_ACTION_FETCH_ID,
	GITG_REF_ACTION_FETCH_DISPLAY_NAME,
	GITG_REF_ACTION_FETCH_DESCRIPTION,
	GITG_REF_ACTION_FETCH_AVAILABLE
};
#define GITG_REF_ACTION_FETCH_version VERSION
GitgRefActionFetch* gitg_ref_action_fetch_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionFetch* gitg_ref_action_fetch_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
static void gitg_ref_action_fetch_fetch_data_free (gpointer _data);
void gitg_ref_action_fetch_fetch (GitgRefActionFetch* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
gboolean gitg_ref_action_fetch_fetch_finish (GitgRefActionFetch* self, GAsyncResult* _res_);
static gboolean gitg_ref_action_fetch_fetch_co (GitgRefActionFetchFetchData* _data_);
static Block52Data* block52_data_ref (Block52Data* _data52_);
static void block52_data_unref (void * _userdata_);
GType gitg_remote_notification_get_type (void) G_GNUC_CONST;
GitgRemoteNotification* gitg_remote_notification_new (GitgRemote* remote);
GitgRemoteNotification* gitg_remote_notification_construct (GType object_type, GitgRemote* remote);
void gitg_remote_notification_set_text (GitgRemoteNotification* self, const gchar* value);
static void __lambda137_ (Block52Data* _data52_, GitgRemote* d_remote, const gchar* name, GgitOId* a, GgitOId* b);
static void ___lambda137__gitg_remote_tip_updated (GitgRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self);
static void gitg_ref_action_fetch_fetch_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void gitg_remote_notification_error (GitgRemoteNotification* self, const gchar* text);
void gitg_remote_notification_success (GitgRemoteNotification* self, const gchar* text);
static void gitg_ref_action_fetch_real_activate (GitgExtUIElement* base);
static void __lambda138_ (GitgRefActionFetch* self, GObject* obj, GAsyncResult* res);
static void ___lambda138__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void gitg_ref_action_fetch_finalize (GObject* obj);
static void _vala_gitg_ref_action_fetch_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_ref_action_fetch_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


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


GitgRefActionFetch* gitg_ref_action_fetch_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
	GitgRefActionFetch * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	GgitBranch* branch = NULL;
	GitgRef* _tmp3_ = NULL;
	GgitBranch* _tmp4_ = NULL;
	GgitBranch* _tmp5_ = NULL;
	GitgRef* _tmp21_ = NULL;
	GError * _inner_error_ = NULL;
#line 35 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 35 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 35 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 39 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = application;
#line 39 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = action_interface;
#line 39 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp2_ = reference;
#line 39 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) g_object_new (object_type, "application", _tmp0_, "action-interface", _tmp1_, "reference", _tmp2_, NULL);
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp3_ = reference;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, ggit_branch_get_type ()) ? ((GgitBranch*) _tmp3_) : NULL);
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	branch = _tmp4_;
#line 45 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp5_ = branch;
#line 45 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp5_ != NULL) {
#line 237 "gitg-ref-action-fetch.c"
		{
			GgitRef* _tmp6_ = NULL;
			GgitBranch* _tmp7_ = NULL;
			GgitRef* _tmp8_ = NULL;
			GgitRef* _tmp9_ = NULL;
			GitgRef* _tmp10_ = NULL;
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp7_ = branch;
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp8_ = ggit_branch_get_upstream (_tmp7_, &_inner_error_);
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp6_ = _tmp8_;
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 252 "gitg-ref-action-fetch.c"
				goto __catch90_g_error;
			}
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp9_ = _tmp6_;
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp6_ = NULL;
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, GITG_TYPE_REF) ? ((GitgRef*) _tmp9_) : NULL;
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			if (_tmp10_ == NULL) {
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
				_g_object_unref0 (_tmp9_);
#line 265 "gitg-ref-action-fetch.c"
			}
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (self->priv->d_remote_ref);
#line 49 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			self->priv->d_remote_ref = _tmp10_;
#line 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (_tmp6_);
#line 273 "gitg-ref-action-fetch.c"
		}
		goto __finally90;
		__catch90_g_error:
		{
#line 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			g_clear_error (&_inner_error_);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_inner_error_ = NULL;
#line 282 "gitg-ref-action-fetch.c"
		}
		__finally90:
#line 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (branch);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.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 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			g_clear_error (&_inner_error_);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			return NULL;
#line 295 "gitg-ref-action-fetch.c"
		}
	} else {
		GitgRef* _tmp11_ = NULL;
		GitgParsedRefName* _tmp12_ = NULL;
		GitgParsedRefName* _tmp13_ = NULL;
		GitgParsedRefName* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		gchar* _tmp17_ = NULL;
		gboolean _tmp18_ = FALSE;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = reference;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = gitg_ref_get_parsed_name (_tmp11_);
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = _tmp12_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp14_ = _tmp13_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = gitg_parsed_ref_name_get_remote_name (_tmp14_);
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp16_ = _tmp15_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp17_ = _tmp16_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp18_ = _tmp17_ != NULL;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp17_);
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp14_);
#line 52 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		if (_tmp18_) {
#line 328 "gitg-ref-action-fetch.c"
			GitgRef* _tmp19_ = NULL;
			GitgRef* _tmp20_ = NULL;
#line 54 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp19_ = reference;
#line 54 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp20_ = _g_object_ref0 (_tmp19_);
#line 54 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (self->priv->d_remote_ref);
#line 54 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			self->priv->d_remote_ref = _tmp20_;
#line 339 "gitg-ref-action-fetch.c"
		}
	}
#line 57 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp21_ = self->priv->d_remote_ref;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp21_ != NULL) {
#line 346 "gitg-ref-action-fetch.c"
		GitgExtApplication* _tmp22_ = NULL;
		GitgExtRemoteLookup* _tmp23_ = NULL;
		GitgExtRemoteLookup* _tmp24_ = NULL;
		GitgExtRemoteLookup* _tmp25_ = NULL;
		GitgRef* _tmp26_ = NULL;
		GitgParsedRefName* _tmp27_ = NULL;
		GitgParsedRefName* _tmp28_ = NULL;
		GitgParsedRefName* _tmp29_ = NULL;
		gchar* _tmp30_ = NULL;
		gchar* _tmp31_ = NULL;
		gchar* _tmp32_ = NULL;
		GitgRemote* _tmp33_ = NULL;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp22_ = application;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp23_ = gitg_ext_application_get_remote_lookup (_tmp22_);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp24_ = _tmp23_;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp25_ = _tmp24_;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp26_ = self->priv->d_remote_ref;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp27_ = gitg_ref_get_parsed_name (_tmp26_);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp28_ = _tmp27_;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp29_ = _tmp28_;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp30_ = gitg_parsed_ref_name_get_remote_name (_tmp29_);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp31_ = _tmp30_;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp32_ = _tmp31_;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp33_ = gitg_ext_remote_lookup_lookup (_tmp25_, _tmp32_);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (self->priv->d_remote);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		self->priv->d_remote = _tmp33_;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp32_);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp29_);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp25_);
#line 393 "gitg-ref-action-fetch.c"
	}
#line 35 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (branch);
#line 35 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return self;
#line 399 "gitg-ref-action-fetch.c"
}


GitgRefActionFetch* gitg_ref_action_fetch_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
#line 35 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return gitg_ref_action_fetch_construct (GITG_TYPE_REF_ACTION_FETCH, application, action_interface, reference);
#line 406 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_fetch_data_free (gpointer _data) {
	GitgRefActionFetchFetchData* _data_;
	_data_ = _data;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_slice_free (GitgRefActionFetchFetchData, _data_);
#line 417 "gitg-ref-action-fetch.c"
}


void gitg_ref_action_fetch_fetch (GitgRefActionFetch* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgRefActionFetchFetchData* _data_;
	GitgRefActionFetch* _tmp0_ = NULL;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_ = g_slice_new0 (GitgRefActionFetchFetchData);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_ref_action_fetch_fetch);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_ref_action_fetch_fetch_data_free);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_fetch_co (_data_);
#line 436 "gitg-ref-action-fetch.c"
}


gboolean gitg_ref_action_fetch_fetch_finish (GitgRefActionFetch* self, GAsyncResult* _res_) {
	gboolean result;
	GitgRefActionFetchFetchData* _data_;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _data_->result;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 449 "gitg-ref-action-fetch.c"
}


static Block52Data* block52_data_ref (Block52Data* _data52_) {
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_atomic_int_inc (&_data52_->_ref_count_);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return _data52_;
#line 458 "gitg-ref-action-fetch.c"
}


static void block52_data_unref (void * _userdata_) {
	Block52Data* _data52_;
	_data52_ = (Block52Data*) _userdata_;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (g_atomic_int_dec_and_test (&_data52_->_ref_count_)) {
#line 467 "gitg-ref-action-fetch.c"
		GitgRefActionFetch* self;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		self = _data52_->self;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_data52_->updates);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (self);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_slice_free (Block52Data, _data52_);
#line 477 "gitg-ref-action-fetch.c"
	}
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1412 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1413 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = self;
#line 1413 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 490 "gitg-ref-action-fetch.c"
}


static void __lambda137_ (Block52Data* _data52_, GitgRemote* d_remote, const gchar* name, GgitOId* a, GgitOId* b) {
	GitgRefActionFetch* self;
	GgitOId* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = _data52_->self;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (d_remote != NULL);
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (name != NULL);
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (a != NULL);
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (b != NULL);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = a;
#line 103 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = ggit_oid_is_zero (_tmp0_);
#line 103 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp1_) {
#line 514 "gitg-ref-action-fetch.c"
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = name;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = string_to_string (_tmp2_);
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = g_strconcat (_tmp3_, " (%s)", NULL);
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = _tmp4_;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = _ ("new");
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = g_strdup_printf (_tmp5_, _tmp6_);
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = _tmp7_;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data52_->updates, _tmp8_);
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp8_);
#line 106 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp5_);
#line 542 "gitg-ref-action-fetch.c"
	} else {
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = name;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = string_to_string (_tmp9_);
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = g_strconcat (_tmp10_, " (%s)", NULL);
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = _tmp11_;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = _ ("updated");
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp14_ = g_strdup_printf (_tmp12_, _tmp13_);
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = _tmp14_;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data52_->updates, _tmp15_);
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp15_);
#line 111 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp12_);
#line 571 "gitg-ref-action-fetch.c"
	}
}


static void ___lambda137__gitg_remote_tip_updated (GitgRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self) {
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	__lambda137_ (self, _sender, refname, a, b);
#line 579 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_fetch_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgRefActionFetchFetchData* _data_;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_ = _user_data_;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_source_object_ = source_object;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_res_ = _res_;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_fetch_co (_data_);
#line 593 "gitg-ref-action-fetch.c"
}


static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 1055 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		separator = "";
#line 610 "gitg-ref-action-fetch.c"
	}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 620 "gitg-ref-action-fetch.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 630 "gitg-ref-action-fetch.c"
	}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 636 "gitg-ref-action-fetch.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == -1) {
#line 647 "gitg-ref-action-fetch.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 659 "gitg-ref-action-fetch.c"
		} else {
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 663 "gitg-ref-action-fetch.c"
		}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 667 "gitg-ref-action-fetch.c"
	}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 671 "gitg-ref-action-fetch.c"
		gint i = 0;
		gsize len = 0UL;
		gint _tmp31_ = 0;
		gint _tmp33_ = 0;
		gint _tmp34_ = 0;
		gsize _tmp35_ = 0UL;
		const gchar* _tmp36_ = NULL;
		gint _tmp37_ = 0;
		gint _tmp38_ = 0;
		gint _tmp39_ = 0;
		const gchar* res = NULL;
		gsize _tmp40_ = 0UL;
		void* _tmp41_ = NULL;
		void* ptr = NULL;
		const gchar* _tmp42_ = NULL;
		gchar** _tmp43_ = NULL;
		gint _tmp43__length1 = 0;
		const gchar* _tmp44_ = NULL;
		void* _tmp45_ = NULL;
		const gchar* _tmp62_ = NULL;
#line 1059 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 694 "gitg-ref-action-fetch.c"
		{
			gboolean _tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			i = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 703 "gitg-ref-action-fetch.c"
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
				gchar** _tmp13_ = NULL;
				gint _tmp13__length1 = 0;
				gint _tmp21_ = 0;
				gchar** _tmp22_ = NULL;
				gint _tmp22__length1 = 0;
				gint _tmp23_ = 0;
				const gchar* _tmp24_ = NULL;
				gsize _tmp30_ = 0UL;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 716 "gitg-ref-action-fetch.c"
					gint _tmp10_ = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 722 "gitg-ref-action-fetch.c"
				}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != -1) {
#line 732 "gitg-ref-action-fetch.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 744 "gitg-ref-action-fetch.c"
				} else {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 748 "gitg-ref-action-fetch.c"
				}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 754 "gitg-ref-action-fetch.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == -1) {
#line 765 "gitg-ref-action-fetch.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 780 "gitg-ref-action-fetch.c"
					} else {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 784 "gitg-ref-action-fetch.c"
					}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 788 "gitg-ref-action-fetch.c"
				}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					break;
#line 794 "gitg-ref-action-fetch.c"
				}
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 806 "gitg-ref-action-fetch.c"
					gchar** _tmp25_ = NULL;
					gint _tmp25__length1 = 0;
					gint _tmp26_ = 0;
					const gchar* _tmp27_ = NULL;
					gint _tmp28_ = 0;
					gint _tmp29_ = 0;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 827 "gitg-ref-action-fetch.c"
				} else {
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 831 "gitg-ref-action-fetch.c"
				}
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 837 "gitg-ref-action-fetch.c"
			}
		}
#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 844 "gitg-ref-action-fetch.c"
			gchar* _tmp32_ = NULL;
#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			return result;
#line 852 "gitg-ref-action-fetch.c"
		}
#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 890 "gitg-ref-action-fetch.c"
		{
			gboolean _tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			i = 1;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 899 "gitg-ref-action-fetch.c"
				gint _tmp48_ = 0;
				gchar** _tmp49_ = NULL;
				gint _tmp49__length1 = 0;
				void* _tmp50_ = NULL;
				const gchar* _tmp51_ = NULL;
				void* _tmp52_ = NULL;
				const gchar* _tmp53_ = NULL;
				gchar** _tmp54_ = NULL;
				gint _tmp54__length1 = 0;
				gint _tmp55_ = 0;
				const gchar* _tmp56_ = NULL;
				void* _tmp60_ = NULL;
				void* _tmp61_ = NULL;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 915 "gitg-ref-action-fetch.c"
					gint _tmp47_ = 0;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 921 "gitg-ref-action-fetch.c"
				}
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					break;
#line 935 "gitg-ref-action-fetch.c"
				}
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 955 "gitg-ref-action-fetch.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 970 "gitg-ref-action-fetch.c"
				} else {
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 974 "gitg-ref-action-fetch.c"
				}
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 982 "gitg-ref-action-fetch.c"
			}
		}
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		res = NULL;
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 993 "gitg-ref-action-fetch.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 1002 "gitg-ref-action-fetch.c"
	}
}


static gboolean gitg_ref_action_fetch_fetch_co (GitgRefActionFetchFetchData* _data_) {
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	switch (_data_->_state_) {
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case 0:
#line 1012 "gitg-ref-action-fetch.c"
		goto _state_0;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case 1:
#line 1016 "gitg-ref-action-fetch.c"
		goto _state_1;
		default:
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_assert_not_reached ();
#line 1021 "gitg-ref-action-fetch.c"
	}
	_state_0:
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_data52_ = g_slice_new0 (Block52Data);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_data52_->_ref_count_ = 1;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_data52_->self = g_object_ref (_data_->self);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_data52_->_async_data_ = _data_;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp0_ = NULL;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp0_ = _data_->self->priv->d_remote;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp1_ = NULL;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp1_ = gitg_remote_notification_new (_data_->_tmp0_);
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_ref_sink (_data_->_tmp1_);
#line 95 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->notification = _data_->_tmp1_;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp2_ = NULL;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp2_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) _data_->self);
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp3_ = NULL;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp4_ = NULL;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp5_ = NULL;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp5_ = gitg_ext_application_get_notifications (_data_->_tmp4_);
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp6_ = NULL;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp7_ = NULL;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ext_notifications_add (_data_->_tmp7_, (GitgExtNotification*) _data_->notification);
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_data_->_tmp7_);
#line 96 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_data_->_tmp4_);
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp8_ = NULL;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp8_ = _ ("Fetching from %s");
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp9_ = NULL;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp9_ = _data_->self->priv->d_remote;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp10_ = NULL;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp10_ = ggit_remote_get_url ((GgitRemote*) _data_->_tmp9_);
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp11_ = NULL;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp11_ = g_strdup_printf (_data_->_tmp8_, _data_->_tmp10_);
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp12_ = NULL;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_remote_notification_set_text (_data_->notification, _data_->_tmp12_);
#line 98 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_free0 (_data_->_tmp12_);
#line 100 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp13_ = NULL;
#line 100 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp13_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
#line 100 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_data52_->updates = _data_->_tmp13_;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp14_ = NULL;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp14_ = _data_->self->priv->d_remote;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp15_ = 0UL;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp15_ = g_signal_connect_data (_data_->_tmp14_, "tip-updated", (GCallback) ___lambda137__gitg_remote_tip_updated, block52_data_ref (_data_->_data52_), (GClosureNotify) block52_data_unref, 0);
#line 102 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->tip_updated_id = _data_->_tmp15_;
#line 1114 "gitg-ref-action-fetch.c"
	{
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp16_ = NULL;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp16_ = _data_->self->priv->d_remote;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_state_ = 1;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_fetch (_data_->_tmp16_, NULL, NULL, gitg_ref_action_fetch_fetch_ready, _data_);
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		return FALSE;
#line 1126 "gitg-ref-action-fetch.c"
		_state_1:
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_fetch_finish (_data_->_tmp16_, _data_->_res_, &_data_->_inner_error_);
#line 117 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1132 "gitg-ref-action-fetch.c"
			goto __catch91_g_error;
		}
	}
	goto __finally91;
	__catch91_g_error:
	{
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->e = _data_->_inner_error_;
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_inner_error_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp17_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp17_ = _ ("Failed to fetch from %s: %s");
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp18_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp18_ = _data_->self->priv->d_remote;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp19_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp19_ = ggit_remote_get_url ((GgitRemote*) _data_->_tmp18_);
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp20_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp20_ = _data_->e;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp21_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp21_ = _data_->_tmp20_->message;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp22_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp22_ = g_strdup_printf (_data_->_tmp17_, _data_->_tmp19_, _data_->_tmp21_);
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp23_ = NULL;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp23_ = _data_->_tmp22_;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_error (_data_->notification, _data_->_tmp23_);
#line 121 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_data_->_tmp23_);
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp24_ = NULL;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp24_ = stderr;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp25_ = NULL;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp25_ = _data_->e;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp26_ = NULL;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp26_ = _data_->_tmp25_->message;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		fprintf (_data_->_tmp24_, "Failed to fetch: %s\n", _data_->_tmp26_);
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->result = FALSE;
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_error_free0 (_data_->e);
#line 1193 "gitg-ref-action-fetch.c"
		{
#line 128 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_data_->_tmp27_ = NULL;
#line 128 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			_data_->_tmp27_ = _data_->self->priv->d_remote;
#line 128 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp27_, G_TYPE_OBJECT, GObject), _data_->tip_updated_id);
#line 1201 "gitg-ref-action-fetch.c"
		}
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_data_->notification);
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		block52_data_unref (_data_->_data52_);
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_data52_ = NULL;
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		if (_data_->_state_ == 0) {
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1213 "gitg-ref-action-fetch.c"
		} else {
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1217 "gitg-ref-action-fetch.c"
		}
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_object_unref (_data_->_async_result);
#line 124 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		return FALSE;
#line 1223 "gitg-ref-action-fetch.c"
	}
	__finally91:
	{
#line 128 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp28_ = NULL;
#line 128 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp28_ = _data_->self->priv->d_remote;
#line 128 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp28_, G_TYPE_OBJECT, GObject), _data_->tip_updated_id);
#line 1233 "gitg-ref-action-fetch.c"
	}
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_data_->notification);
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		block52_data_unref (_data_->_data52_);
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_data52_ = NULL;
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.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 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_clear_error (&_data_->_inner_error_);
#line 115 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		return FALSE;
#line 1249 "gitg-ref-action-fetch.c"
	}
#line 131 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp29_ = 0;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp29_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _data_->_data52_->updates);
#line 131 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp30_ = 0;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_tmp30_ = _data_->_tmp29_;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_data_->_tmp30_ == 0) {
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp31_ = NULL;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp31_ = _ ("Fetched from %s: everything is up to date");
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp32_ = NULL;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp32_ = _data_->self->priv->d_remote;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp33_ = NULL;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp33_ = ggit_remote_get_url ((GgitRemote*) _data_->_tmp32_);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp34_ = NULL;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp34_ = g_strdup_printf (_data_->_tmp31_, _data_->_tmp33_);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp35_ = NULL;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp35_ = _data_->_tmp34_;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_success (_data_->notification, _data_->_tmp35_);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_data_->_tmp35_);
#line 1285 "gitg-ref-action-fetch.c"
	} else {
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp36_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp36_ = _ ("Fetched from %s: %s");
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp37_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp37_ = _data_->self->priv->d_remote;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp38_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp38_ = ggit_remote_get_url ((GgitRemote*) _data_->_tmp37_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp39_ = 0;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp40_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp40_ = gee_collection_to_array ((GeeCollection*) _data_->_data52_->updates, &_data_->_tmp39_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp41_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp41__length1 = 0;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp41_ = _data_->_tmp40_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp41__length1 = _data_->_tmp39_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp42_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp42_ = _vala_g_strjoinv (", ", _data_->_tmp41_, _data_->_tmp39_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp43_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp43_ = _data_->_tmp42_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp44_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp44_ = g_strdup_printf (_data_->_tmp36_, _data_->_tmp38_, _data_->_tmp43_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp45_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp45_ = _data_->_tmp44_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_success (_data_->notification, _data_->_tmp45_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_data_->_tmp45_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_data_->_tmp43_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_data_->_tmp41_ = (_vala_array_free (_data_->_tmp41_, _data_->_tmp41__length1, (GDestroyNotify) g_free), NULL);
#line 1337 "gitg-ref-action-fetch.c"
	}
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->result = TRUE;
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_data_->notification);
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	block52_data_unref (_data_->_data52_);
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_data52_ = NULL;
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_data_->_state_ == 0) {
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1351 "gitg-ref-action-fetch.c"
	} else {
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1355 "gitg-ref-action-fetch.c"
	}
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_unref (_data_->_async_result);
#line 143 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return FALSE;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_data_->notification);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	block52_data_unref (_data_->_data52_);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_data_->_data52_ = NULL;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_data_->_state_ == 0) {
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1371 "gitg-ref-action-fetch.c"
	} else {
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1375 "gitg-ref-action-fetch.c"
	}
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_unref (_data_->_async_result);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return FALSE;
#line 1381 "gitg-ref-action-fetch.c"
}


static void __lambda138_ (GitgRefActionFetch* self, GObject* obj, GAsyncResult* res) {
	GAsyncResult* _tmp0_ = NULL;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (res != NULL);
#line 149 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = res;
#line 149 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_fetch_finish (self, _tmp0_);
#line 1393 "gitg-ref-action-fetch.c"
}


static void ___lambda138__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 148 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	__lambda138_ ((GitgRefActionFetch*) self, source_object, res);
#line 148 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_unref (self);
#line 1402 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_real_activate (GitgExtUIElement* base) {
	GitgRefActionFetch * self;
#line 146 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_fetch (self, ___lambda138__gasync_ready_callback, g_object_ref (self));
#line 1412 "gitg-ref-action-fetch.c"
}


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


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


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


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


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


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


static gchar* gitg_ref_action_fetch_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionFetch* self;
	gchar* _tmp0_ = NULL;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/ref-actions/fetch");
#line 65 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1539 "gitg-ref-action-fetch.c"
}


static gchar* gitg_ref_action_fetch_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionFetch* self;
	GitgRemote* _tmp0_ = NULL;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->d_remote;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp0_ != NULL) {
#line 1553 "gitg-ref-action-fetch.c"
		const gchar* _tmp1_ = NULL;
		GitgRef* _tmp2_ = NULL;
		GitgParsedRefName* _tmp3_ = NULL;
		GitgParsedRefName* _tmp4_ = NULL;
		GitgParsedRefName* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp1_ = _ ("Fetch from %s");
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = self->priv->d_remote_ref;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = _tmp3_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = _tmp4_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = gitg_parsed_ref_name_get_remote_name (_tmp5_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = _tmp6_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = _tmp7_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = g_strdup_printf (_tmp1_, _tmp8_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = _tmp9_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp8_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp5_);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		result = _tmp10_;
#line 74 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		return result;
#line 1592 "gitg-ref-action-fetch.c"
	} else {
		gchar* _tmp11_ = NULL;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = g_strdup ("");
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		result = _tmp11_;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		return result;
#line 1601 "gitg-ref-action-fetch.c"
	}
}


static gchar* gitg_ref_action_fetch_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionFetch* self;
	const gchar* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgParsedRefName* _tmp2_ = NULL;
	GitgParsedRefName* _tmp3_ = NULL;
	GitgParsedRefName* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = _ ("Fetch remote objects from %s");
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = self->priv->d_remote_ref;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp2_ = gitg_ref_get_parsed_name (_tmp1_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp3_ = _tmp2_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp4_ = _tmp3_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp5_ = gitg_parsed_ref_name_get_remote_name (_tmp4_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp6_ = _tmp5_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp7_ = _tmp6_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp8_ = g_strdup_printf (_tmp0_, _tmp7_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp9_ = _tmp8_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_free0 (_tmp7_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp4_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp9_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1649 "gitg-ref-action-fetch.c"
}


static gboolean gitg_ref_action_fetch_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgRefActionFetch* self;
	GitgRemote* _tmp0_ = NULL;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->d_remote;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_ != NULL;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1665 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_class_init (GitgRefActionFetchClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_type_class_add_private (klass, sizeof (GitgRefActionFetchPrivate));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ref_action_fetch_get_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ref_action_fetch_set_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ref_action_fetch_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_FETCH_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_FETCH_ACTION_INTERFACE, g_param_spec_object ("action-interface", "action-interface", "action-interface", GITG_EXT_TYPE_REF_ACTION_INTERFACE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_FETCH_REFERENCE, g_param_spec_object ("reference", "reference", "reference", GITG_TYPE_REF, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_FETCH_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_FETCH_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_FETCH_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_FETCH_AVAILABLE, g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 1694 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->activate = (void (*)(GitgExtUIElement*)) gitg_ref_action_fetch_real_activate;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_application = gitg_ref_action_fetch_real_get_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->set_application = gitg_ref_action_fetch_real_set_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_id = gitg_ref_action_fetch_real_get_id;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_display_name = gitg_ref_action_fetch_real_get_display_name;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_description = gitg_ref_action_fetch_real_get_description;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_available = gitg_ref_action_fetch_real_get_available;
#line 1715 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_gitg_ext_action_interface_init (GitgExtActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_gitg_ext_action_parent_iface = g_type_interface_peek_parent (iface);
#line 1722 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_gitg_ext_ref_action_interface_init (GitgExtRefActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_gitg_ext_ref_action_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_action_interface = gitg_ref_action_fetch_real_get_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->set_action_interface = gitg_ref_action_fetch_real_set_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_reference = gitg_ref_action_fetch_real_get_reference;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->set_reference = gitg_ref_action_fetch_real_set_reference;
#line 1737 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_instance_init (GitgRefActionFetch * self) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self->priv = GITG_REF_ACTION_FETCH_GET_PRIVATE (self);
#line 1744 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_finalize (GObject* obj) {
	GitgRefActionFetch * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetch);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_reference);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->d_remote_ref);
#line 33 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->d_remote);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (gitg_ref_action_fetch_parent_class)->finalize (obj);
#line 1764 "gitg-ref-action-fetch.c"
}


GType gitg_ref_action_fetch_get_type (void) {
	static volatile gsize gitg_ref_action_fetch_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_action_fetch_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRefActionFetchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ref_action_fetch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgRefActionFetch), 0, (GInstanceInitFunc) gitg_ref_action_fetch_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_ref_action_fetch_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_action_info = { (GInterfaceInitFunc) gitg_ref_action_fetch_gitg_ext_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_ref_action_info = { (GInterfaceInitFunc) gitg_ref_action_fetch_gitg_ext_ref_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_ref_action_fetch_type_id;
		gitg_ref_action_fetch_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgRefActionFetch", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_ref_action_fetch_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
		g_type_add_interface_static (gitg_ref_action_fetch_type_id, GITG_EXT_TYPE_ACTION, &gitg_ext_action_info);
		g_type_add_interface_static (gitg_ref_action_fetch_type_id, GITG_EXT_TYPE_REF_ACTION, &gitg_ext_ref_action_info);
		g_once_init_leave (&gitg_ref_action_fetch_type_id__volatile, gitg_ref_action_fetch_type_id);
	}
	return gitg_ref_action_fetch_type_id__volatile;
}


static void _vala_gitg_ref_action_fetch_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgRefActionFetch * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetch);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_REFERENCE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_ID:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_DISPLAY_NAME:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_DESCRIPTION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_AVAILABLE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1833 "gitg-ref-action-fetch.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1839 "gitg-ref-action-fetch.c"
	}
}


static void _vala_gitg_ref_action_fetch_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgRefActionFetch * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetch);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_ext_ref_action_set_action_interface ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_REFERENCE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_ext_ref_action_set_reference ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1867 "gitg-ref-action-fetch.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1873 "gitg-ref-action-fetch.c"
	}
}


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


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



