/* gitg-ref-action-fetch.c generated by valac 0.27.1.26-9b1a5-dirty, 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 <gee.h>
#include <stdio.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.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 _Block34Data Block34Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

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 _Block34Data {
	int _ref_count_;
	GitgRefActionFetch* self;
	GitgRemoteNotification* notification;
	GeeArrayList* updates;
	gulong tip_updated_id;
};


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_real_activate (GitgExtUIElement* base);
static Block34Data* block34_data_ref (Block34Data* _data34_);
static void block34_data_unref (void * _userdata_);
static void __lambda91_ (Block34Data* _data34_, GgitRemote* remote, const gchar* name, GgitOId* a, GgitOId* b);
static void ___lambda91__ggit_remote_tip_updated (GgitRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self);
static void __lambda92_ (Block34Data* _data34_, GObject* obj, GAsyncResult* res);
static void ___lambda92__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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return self ? g_object_ref (self) : NULL;
#line 117 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = application;
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = action_interface;
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp2_ = reference;
#line 39 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp3_ = reference;
#line 43 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	branch = _tmp4_;
#line 45 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp5_ = branch;
#line 45 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp5_ != NULL) {
#line 156 "gitg-ref-action-fetch.c"
		{
			GgitRef* _tmp6_ = NULL;
			GgitBranch* _tmp7_ = NULL;
			GgitRef* _tmp8_ = NULL;
			GgitRef* _tmp9_ = NULL;
			GitgRef* _tmp10_ = NULL;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp7_ = branch;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp8_ = ggit_branch_get_upstream (_tmp7_, &_inner_error_);
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp6_ = _tmp8_;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 171 "gitg-ref-action-fetch.c"
				goto __catch51_g_error;
			}
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp9_ = _tmp6_;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp6_ = NULL;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, GITG_TYPE_REF) ? ((GitgRef*) _tmp9_) : NULL;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			if (_tmp10_ == NULL) {
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
				_g_object_unref0 (_tmp9_);
#line 184 "gitg-ref-action-fetch.c"
			}
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (self->priv->d_remote_ref);
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			self->priv->d_remote_ref = _tmp10_;
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (_tmp6_);
#line 192 "gitg-ref-action-fetch.c"
		}
		goto __finally51;
		__catch51_g_error:
		{
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			g_clear_error (&_inner_error_);
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_inner_error_ = NULL;
#line 201 "gitg-ref-action-fetch.c"
		}
		__finally51:
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (branch);
#line 47 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			g_clear_error (&_inner_error_);
#line 47 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			return NULL;
#line 214 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = reference;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = gitg_ref_get_parsed_name (_tmp11_);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = _tmp12_;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp14_ = _tmp13_;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = gitg_parsed_ref_name_get_remote_name (_tmp14_);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp16_ = _tmp15_;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp17_ = _tmp16_;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp18_ = _tmp17_ != NULL;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp17_);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp14_);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		if (_tmp18_) {
#line 247 "gitg-ref-action-fetch.c"
			GitgRef* _tmp19_ = NULL;
			GitgRef* _tmp20_ = NULL;
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp19_ = reference;
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp20_ = _g_object_ref0 (_tmp19_);
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (self->priv->d_remote_ref);
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			self->priv->d_remote_ref = _tmp20_;
#line 258 "gitg-ref-action-fetch.c"
		}
	}
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp21_ = self->priv->d_remote_ref;
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp21_ != NULL) {
#line 265 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp22_ = application;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp23_ = gitg_ext_application_get_remote_lookup (_tmp22_);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp24_ = _tmp23_;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp25_ = _tmp24_;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp26_ = self->priv->d_remote_ref;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp27_ = gitg_ref_get_parsed_name (_tmp26_);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp28_ = _tmp27_;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp29_ = _tmp28_;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp30_ = gitg_parsed_ref_name_get_remote_name (_tmp29_);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp31_ = _tmp30_;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp32_ = _tmp31_;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp33_ = gitg_ext_remote_lookup_lookup (_tmp25_, _tmp32_);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (self->priv->d_remote);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		self->priv->d_remote = _tmp33_;
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp32_);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp29_);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp25_);
#line 312 "gitg-ref-action-fetch.c"
	}
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (branch);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return self;
#line 318 "gitg-ref-action-fetch.c"
}


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


static Block34Data* block34_data_ref (Block34Data* _data34_) {
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_atomic_int_inc (&_data34_->_ref_count_);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return _data34_;
#line 334 "gitg-ref-action-fetch.c"
}


static void block34_data_unref (void * _userdata_) {
	Block34Data* _data34_;
	_data34_ = (Block34Data*) _userdata_;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (g_atomic_int_dec_and_test (&_data34_->_ref_count_)) {
#line 343 "gitg-ref-action-fetch.c"
		GitgRefActionFetch* self;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		self = _data34_->self;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_data34_->updates);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_data34_->notification);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (self);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_slice_free (Block34Data, _data34_);
#line 355 "gitg-ref-action-fetch.c"
	}
}


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


static void __lambda91_ (Block34Data* _data34_, GgitRemote* remote, const gchar* name, GgitOId* a, GgitOId* b) {
	GitgRefActionFetch* self;
	GgitOId* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = _data34_->self;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (remote != NULL);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (name != NULL);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (a != NULL);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (b != NULL);
#line 115 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = a;
#line 115 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = ggit_oid_is_zero (_tmp0_);
#line 115 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp1_) {
#line 392 "gitg-ref-action-fetch.c"
		GeeArrayList* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = _data34_->updates;
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = name;
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = string_to_string (_tmp3_);
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = g_strconcat (_tmp4_, " (%s)", NULL);
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = _tmp5_;
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = _ ("new");
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = g_strdup_printf (_tmp6_, _tmp7_);
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = _tmp8_;
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp2_, _tmp9_);
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp9_);
#line 118 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp6_);
#line 423 "gitg-ref-action-fetch.c"
	} else {
		GeeArrayList* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		gchar* _tmp17_ = NULL;
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = _data34_->updates;
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = name;
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = string_to_string (_tmp11_);
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = g_strconcat (_tmp12_, " (%s)", NULL);
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp14_ = _tmp13_;
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = _ ("updated");
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp16_ = g_strdup_printf (_tmp14_, _tmp15_);
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp17_ = _tmp16_;
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp10_, _tmp17_);
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp17_);
#line 123 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp14_);
#line 455 "gitg-ref-action-fetch.c"
	}
}


static void ___lambda91__ggit_remote_tip_updated (GgitRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self) {
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	__lambda91_ (self, _sender, refname, a, b);
#line 463 "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 964 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 964 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 965 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		separator = "";
#line 480 "gitg-ref-action-fetch.c"
	}
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 490 "gitg-ref-action-fetch.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 500 "gitg-ref-action-fetch.c"
	}
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 506 "gitg-ref-action-fetch.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == (-1)) {
#line 517 "gitg-ref-action-fetch.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 529 "gitg-ref-action-fetch.c"
		} else {
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 533 "gitg-ref-action-fetch.c"
		}
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 537 "gitg-ref-action-fetch.c"
	}
#line 967 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 541 "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 969 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 564 "gitg-ref-action-fetch.c"
		{
			gboolean _tmp9_ = FALSE;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			i = 0;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 573 "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 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 586 "gitg-ref-action-fetch.c"
					gint _tmp10_ = 0;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 592 "gitg-ref-action-fetch.c"
				}
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != (-1)) {
#line 602 "gitg-ref-action-fetch.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 614 "gitg-ref-action-fetch.c"
				} else {
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 618 "gitg-ref-action-fetch.c"
				}
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 624 "gitg-ref-action-fetch.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == (-1)) {
#line 635 "gitg-ref-action-fetch.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 650 "gitg-ref-action-fetch.c"
					} else {
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 654 "gitg-ref-action-fetch.c"
					}
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 658 "gitg-ref-action-fetch.c"
				}
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 970 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					break;
#line 664 "gitg-ref-action-fetch.c"
				}
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 676 "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 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 697 "gitg-ref-action-fetch.c"
				} else {
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 701 "gitg-ref-action-fetch.c"
				}
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 971 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 707 "gitg-ref-action-fetch.c"
			}
		}
#line 973 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 973 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 714 "gitg-ref-action-fetch.c"
			gchar* _tmp32_ = NULL;
#line 974 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 974 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 974 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			return result;
#line 722 "gitg-ref-action-fetch.c"
		}
#line 976 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 976 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 976 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 977 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 977 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 977 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 977 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 977 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 977 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 979 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 979 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 979 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 980 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 980 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 980 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 980 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 980 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 980 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 760 "gitg-ref-action-fetch.c"
		{
			gboolean _tmp46_ = FALSE;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			i = 1;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 769 "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 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 785 "gitg-ref-action-fetch.c"
					gint _tmp47_ = 0;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 791 "gitg-ref-action-fetch.c"
				}
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 981 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					break;
#line 805 "gitg-ref-action-fetch.c"
				}
#line 982 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 982 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 982 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 982 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 825 "gitg-ref-action-fetch.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 840 "gitg-ref-action-fetch.c"
				} else {
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 844 "gitg-ref-action-fetch.c"
				}
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 983 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 852 "gitg-ref-action-fetch.c"
			}
		}
#line 986 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 986 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		res = NULL;
#line 986 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 986 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 863 "gitg-ref-action-fetch.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 988 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 988 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 988 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 872 "gitg-ref-action-fetch.c"
	}
}


static void __lambda92_ (Block34Data* _data34_, GObject* obj, GAsyncResult* res) {
	GitgRefActionFetch* self;
	GeeArrayList* _tmp17_ = NULL;
	gint _tmp18_ = 0;
	gint _tmp19_ = 0;
	GitgExtApplication* _tmp38_ = NULL;
	GitgExtApplication* _tmp39_ = NULL;
	GitgExtApplication* _tmp40_ = NULL;
	GitgExtNotifications* _tmp41_ = NULL;
	GitgExtNotifications* _tmp42_ = NULL;
	GitgExtNotifications* _tmp43_ = NULL;
	GitgRemoteNotification* _tmp44_ = NULL;
	GError * _inner_error_ = NULL;
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = _data34_->self;
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (res != NULL);
#line 894 "gitg-ref-action-fetch.c"
	{
		GitgRemote* _tmp0_ = NULL;
		GAsyncResult* _tmp1_ = NULL;
#line 130 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp0_ = self->priv->d_remote;
#line 130 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp1_ = res;
#line 130 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_fetch_finish (_tmp0_, _tmp1_, &_inner_error_);
#line 130 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 906 "gitg-ref-action-fetch.c"
			goto __catch53_g_error;
		}
	}
	goto __finally53;
	__catch53_g_error:
	{
		GError* e = NULL;
		GitgRemoteNotification* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GitgRemote* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		GError* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		FILE* _tmp10_ = NULL;
		GError* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
#line 128 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		e = _inner_error_;
#line 128 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_inner_error_ = NULL;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = _data34_->notification;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = _ ("Failed to fetch from %s: %s");
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = self->priv->d_remote;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = ggit_remote_get_url ((GgitRemote*) _tmp4_);
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = e;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = _tmp6_->message;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = g_strdup_printf (_tmp3_, _tmp5_, _tmp7_);
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = _tmp8_;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_error (_tmp2_, _tmp9_);
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp9_);
#line 135 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = stderr;
#line 135 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = e;
#line 135 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = _tmp11_->message;
#line 135 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		fprintf (_tmp10_, "Failed to fetch: %s\n", _tmp12_);
#line 136 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_error_free0 (e);
#line 959 "gitg-ref-action-fetch.c"
		{
			GitgRemote* _tmp13_ = NULL;
			gulong _tmp14_ = 0UL;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp13_ = self->priv->d_remote;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp14_ = _data34_->tip_updated_id;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
			g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, G_TYPE_OBJECT) ? ((GObject*) _tmp13_) : NULL, _tmp14_);
#line 969 "gitg-ref-action-fetch.c"
		}
#line 136 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		return;
#line 973 "gitg-ref-action-fetch.c"
	}
	__finally53:
	{
		GitgRemote* _tmp15_ = NULL;
		gulong _tmp16_ = 0UL;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = self->priv->d_remote;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp16_ = _data34_->tip_updated_id;
#line 140 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, G_TYPE_OBJECT) ? ((GObject*) _tmp15_) : NULL, _tmp16_);
#line 985 "gitg-ref-action-fetch.c"
	}
#line 128 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 128 "/home/garrett/hacking/gnome/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 128 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_clear_error (&_inner_error_);
#line 128 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		return;
#line 995 "gitg-ref-action-fetch.c"
	}
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp17_ = _data34_->updates;
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp18_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp17_);
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp19_ = _tmp18_;
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp19_ == 0) {
#line 1005 "gitg-ref-action-fetch.c"
		GitgRemoteNotification* _tmp20_ = NULL;
		const gchar* _tmp21_ = NULL;
		GitgRemote* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp20_ = _data34_->notification;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp21_ = _ ("Fetched from %s: everything is up to date");
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp22_ = self->priv->d_remote;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp23_ = ggit_remote_get_url ((GgitRemote*) _tmp22_);
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp24_ = g_strdup_printf (_tmp21_, _tmp23_);
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp25_ = _tmp24_;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_success (_tmp20_, _tmp25_);
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp25_);
#line 1028 "gitg-ref-action-fetch.c"
	} else {
		GitgRemoteNotification* _tmp26_ = NULL;
		const gchar* _tmp27_ = NULL;
		GitgRemote* _tmp28_ = NULL;
		const gchar* _tmp29_ = NULL;
		GeeArrayList* _tmp30_ = NULL;
		gint _tmp31_ = 0;
		gpointer* _tmp32_ = NULL;
		gchar** _tmp33_ = NULL;
		gint _tmp33__length1 = 0;
		gchar* _tmp34_ = NULL;
		gchar* _tmp35_ = NULL;
		gchar* _tmp36_ = NULL;
		gchar* _tmp37_ = NULL;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp26_ = _data34_->notification;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp27_ = _ ("Fetched from %s: %s");
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp28_ = self->priv->d_remote;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp29_ = ggit_remote_get_url ((GgitRemote*) _tmp28_);
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp30_ = _data34_->updates;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp32_ = gee_collection_to_array ((GeeCollection*) _tmp30_, &_tmp31_);
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp33_ = _tmp32_;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp33__length1 = _tmp31_;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp34_ = _vala_g_strjoinv (", ", _tmp33_, _tmp31_);
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp35_ = _tmp34_;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp36_ = g_strdup_printf (_tmp27_, _tmp29_, _tmp35_);
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp37_ = _tmp36_;
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_success (_tmp26_, _tmp37_);
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp37_);
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp35_);
#line 152 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp33_ = (_vala_array_free (_tmp33_, _tmp33__length1, (GDestroyNotify) g_free), NULL);
#line 1075 "gitg-ref-action-fetch.c"
	}
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp38_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp39_ = _tmp38_;
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp40_ = _tmp39_;
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp41_ = gitg_ext_application_get_notifications (_tmp40_);
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp42_ = _tmp41_;
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp43_ = _tmp42_;
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp44_ = _data34_->notification;
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ext_notifications_remove (_tmp43_, (GtkWidget*) _tmp44_, (guint) 3000);
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp43_);
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp40_);
#line 1097 "gitg-ref-action-fetch.c"
}


static void ___lambda92__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	__lambda92_ (self, source_object, res);
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	block34_data_unref (self);
#line 1106 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_real_activate (GitgExtUIElement* base) {
	GitgRefActionFetch * self;
	Block34Data* _data34_;
	GgitSignature* sig = NULL;
	GitgRemote* _tmp19_ = NULL;
	GitgRemoteNotification* _tmp20_ = NULL;
	GitgExtApplication* _tmp21_ = NULL;
	GitgExtApplication* _tmp22_ = NULL;
	GitgExtApplication* _tmp23_ = NULL;
	GitgExtNotifications* _tmp24_ = NULL;
	GitgExtNotifications* _tmp25_ = NULL;
	GitgExtNotifications* _tmp26_ = NULL;
	GitgRemoteNotification* _tmp27_ = NULL;
	GitgRemoteNotification* _tmp28_ = NULL;
	const gchar* _tmp29_ = NULL;
	GitgRemote* _tmp30_ = NULL;
	const gchar* _tmp31_ = NULL;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_ = NULL;
	GeeArrayList* _tmp34_ = NULL;
	GitgRemote* _tmp35_ = NULL;
	gulong _tmp36_ = 0UL;
	GitgRemote* _tmp37_ = NULL;
	GgitSignature* _tmp38_ = NULL;
	GError * _inner_error_ = NULL;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_data34_ = g_slice_new0 (Block34Data);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_data34_->_ref_count_ = 1;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_data34_->self = g_object_ref (self);
#line 1143 "gitg-ref-action-fetch.c"
	{
		GgitSignature* _tmp0_ = NULL;
		GitgExtApplication* _tmp1_ = NULL;
		GitgExtApplication* _tmp2_ = NULL;
		GitgExtApplication* _tmp3_ = NULL;
		GitgRepository* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		GitgExtApplication* _tmp7_ = NULL;
		GitgExtApplication* _tmp8_ = NULL;
		GitgExtApplication* _tmp9_ = NULL;
		GeeMap* _tmp10_ = NULL;
		GeeMap* _tmp11_ = NULL;
		GeeMap* _tmp12_ = NULL;
		GgitSignature* _tmp13_ = NULL;
		GgitSignature* _tmp14_ = NULL;
		GgitSignature* _tmp15_ = NULL;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp1_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = _tmp1_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = _tmp2_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = gitg_ext_application_get_repository (_tmp3_);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = _tmp4_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = _tmp5_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = _tmp7_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = _tmp8_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = gitg_ext_application_get_environment (_tmp9_);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = _tmp10_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = _tmp11_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = gitg_repository_get_signature_with_environment (_tmp6_, _tmp12_, "COMMITER", &_inner_error_);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp14_ = _tmp13_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp12_);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp9_);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp6_);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp3_);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp0_ = _tmp14_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1201 "gitg-ref-action-fetch.c"
			goto __catch52_g_error;
		}
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = _tmp0_;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp0_ = NULL;
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (sig);
#line 99 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		sig = _tmp15_;
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp0_);
#line 1214 "gitg-ref-action-fetch.c"
	}
	goto __finally52;
	__catch52_g_error:
	{
		GError* e = NULL;
		FILE* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		e = _inner_error_;
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_inner_error_ = NULL;
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp16_ = stderr;
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp17_ = e;
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp18_ = _tmp17_->message;
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		fprintf (_tmp16_, "Failed to get signature: %s\n", _tmp18_);
#line 104 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_error_free0 (e);
#line 104 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (sig);
#line 104 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		block34_data_unref (_data34_);
#line 104 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_data34_ = NULL;
#line 104 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		return;
#line 1245 "gitg-ref-action-fetch.c"
	}
	__finally52:
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (sig);
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		block34_data_unref (_data34_);
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_data34_ = NULL;
#line 97 "/home/garrett/hacking/gnome/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 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_clear_error (&_inner_error_);
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		return;
#line 1262 "gitg-ref-action-fetch.c"
	}
#line 107 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp19_ = self->priv->d_remote;
#line 107 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp20_ = gitg_remote_notification_new (_tmp19_);
#line 107 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_ref_sink (_tmp20_);
#line 107 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_data34_->notification = _tmp20_;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp21_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp22_ = _tmp21_;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp23_ = _tmp22_;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp24_ = gitg_ext_application_get_notifications (_tmp23_);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp25_ = _tmp24_;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp26_ = _tmp25_;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp27_ = _data34_->notification;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ext_notifications_add (_tmp26_, (GtkWidget*) _tmp27_);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp26_);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp23_);
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp28_ = _data34_->notification;
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp29_ = _ ("Fetching from %s");
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp30_ = self->priv->d_remote;
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp31_ = ggit_remote_get_url ((GgitRemote*) _tmp30_);
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp32_ = g_strdup_printf (_tmp29_, _tmp31_);
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp33_ = _tmp32_;
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_remote_notification_set_text (_tmp28_, _tmp33_);
#line 110 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_free0 (_tmp33_);
#line 112 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp34_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 112 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_data34_->updates = _tmp34_;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp35_ = self->priv->d_remote;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp36_ = g_signal_connect_data ((GgitRemote*) _tmp35_, "tip-updated", (GCallback) ___lambda91__ggit_remote_tip_updated, block34_data_ref (_data34_), (GClosureNotify) block34_data_unref, 0);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_data34_->tip_updated_id = _tmp36_;
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp37_ = self->priv->d_remote;
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp38_ = sig;
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_remote_fetch (_tmp37_, _tmp38_, NULL, ___lambda92__gasync_ready_callback, block34_data_ref (_data34_));
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (sig);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	block34_data_unref (_data34_);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_data34_ = NULL;
#line 1330 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->_application;
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp1_;
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1349 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = value;
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self->priv->_application = _tmp1_;
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_notify ((GObject *) self, "application");
#line 1369 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_;
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1385 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = value;
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self->priv->_action_interface = _tmp1_;
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_notify ((GObject *) self, "action-interface");
#line 1405 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->_reference;
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_;
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1421 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = value;
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_reference);
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self->priv->_reference = _tmp1_;
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_notify ((GObject *) self, "reference");
#line 1441 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/ref-actions/fetch");
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_;
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1457 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->d_remote;
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp0_ != NULL) {
#line 1471 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp1_ = _ ("Fetch from %s");
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = self->priv->d_remote_ref;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = _tmp3_;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = _tmp4_;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = gitg_parsed_ref_name_get_remote_name (_tmp5_);
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = _tmp6_;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = _tmp7_;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = g_strdup_printf (_tmp1_, _tmp8_);
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = _tmp9_;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp8_);
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp5_);
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		result = _tmp10_;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		return result;
#line 1510 "gitg-ref-action-fetch.c"
	} else {
		gchar* _tmp11_ = NULL;
#line 78 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = g_strdup ("");
#line 78 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		result = _tmp11_;
#line 78 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		return result;
#line 1519 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = _ ("Fetch remote objects from %s");
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = self->priv->d_remote_ref;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp2_ = gitg_ref_get_parsed_name (_tmp1_);
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp3_ = _tmp2_;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp4_ = _tmp3_;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp5_ = gitg_parsed_ref_name_get_remote_name (_tmp4_);
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp6_ = _tmp5_;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp7_ = _tmp6_;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp8_ = g_strdup_printf (_tmp0_, _tmp7_);
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp9_ = _tmp8_;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_free0 (_tmp7_);
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp4_);
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp9_;
#line 85 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1567 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 90 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->d_remote;
#line 90 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_ != NULL;
#line 90 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1583 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_class_init (GitgRefActionFetchClass * klass) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ref_action_fetch_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	g_type_class_add_private (klass, sizeof (GitgRefActionFetchPrivate));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ref_action_fetch_get_property;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ref_action_fetch_set_property;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ref_action_fetch_finalize;
#line 23 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/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 1612 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->activate = (void (*)(GitgExtUIElement*)) gitg_ref_action_fetch_real_activate;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_application = gitg_ref_action_fetch_real_get_application;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->set_application = gitg_ref_action_fetch_real_set_application;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_id = gitg_ref_action_fetch_real_get_id;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_display_name = gitg_ref_action_fetch_real_get_display_name;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_description = gitg_ref_action_fetch_real_get_description;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_available = gitg_ref_action_fetch_real_get_available;
#line 1633 "gitg-ref-action-fetch.c"
}


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


static void gitg_ref_action_fetch_gitg_ext_ref_action_interface_init (GitgExtRefActionIface * iface) {
#line 23 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_action_interface = gitg_ref_action_fetch_real_get_action_interface;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->set_action_interface = gitg_ref_action_fetch_real_set_action_interface;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->get_reference = gitg_ref_action_fetch_real_get_reference;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	iface->set_reference = gitg_ref_action_fetch_real_set_reference;
#line 1655 "gitg-ref-action-fetch.c"
}


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


static void gitg_ref_action_fetch_finalize (GObject* obj) {
	GitgRefActionFetch * self;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetch);
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_reference);
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->d_remote_ref);
#line 33 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->d_remote);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	G_OBJECT_CLASS (gitg_ref_action_fetch_parent_class)->finalize (obj);
#line 1682 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	switch (property_id) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_APPLICATION:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_ACTION_INTERFACE:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_REFERENCE:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_ID:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_DISPLAY_NAME:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_DESCRIPTION:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_AVAILABLE:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1751 "gitg-ref-action-fetch.c"
		default:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1757 "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/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
	switch (property_id) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_APPLICATION:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_ACTION_INTERFACE:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_ext_ref_action_set_action_interface ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		case GITG_REF_ACTION_FETCH_REFERENCE:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_ext_ref_action_set_reference ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1785 "gitg-ref-action-fetch.c"
		default:
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-ref-action-fetch.vala"
		break;
#line 1791 "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);
}



