/* gitg-ref-action-fetch.c generated by valac 0.28.0, 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 <gtk/gtk.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.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 _Block44Data Block44Data;
#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 _Block44Data {
	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 Block44Data* block44_data_ref (Block44Data* _data44_);
static void block44_data_unref (void * _userdata_);
static void __lambda104_ (Block44Data* _data44_, GitgRemote* remote, const gchar* name, GgitOId* a, GgitOId* b);
static void ___lambda104__gitg_remote_tip_updated (GitgRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self);
static void __lambda105_ (Block44Data* _data44_, GObject* obj, GAsyncResult* res);
static void ___lambda105__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/devel/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/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 35 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 35 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 39 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = application;
#line 39 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = action_interface;
#line 39 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp2_ = reference;
#line 39 "/home/jesse/devel/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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp3_ = reference;
#line 43 "/home/jesse/devel/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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	branch = _tmp4_;
#line 45 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp5_ = branch;
#line 45 "/home/jesse/devel/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/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp7_ = branch;
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp8_ = ggit_branch_get_upstream (_tmp7_, &_inner_error_);
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp6_ = _tmp8_;
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 171 "gitg-ref-action-fetch.c"
				goto __catch59_g_error;
			}
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp9_ = _tmp6_;
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp6_ = NULL;
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, GITG_TYPE_REF) ? ((GitgRef*) _tmp9_) : NULL;
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			if (_tmp10_ == NULL) {
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
				_g_object_unref0 (_tmp9_);
#line 184 "gitg-ref-action-fetch.c"
			}
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (self->priv->d_remote_ref);
#line 49 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			self->priv->d_remote_ref = _tmp10_;
#line 47 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (_tmp6_);
#line 192 "gitg-ref-action-fetch.c"
		}
		goto __finally59;
		__catch59_g_error:
		{
#line 47 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			g_clear_error (&_inner_error_);
#line 47 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_inner_error_ = NULL;
#line 201 "gitg-ref-action-fetch.c"
		}
		__finally59:
#line 47 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 47 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (branch);
#line 47 "/home/jesse/devel/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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			g_clear_error (&_inner_error_);
#line 47 "/home/jesse/devel/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/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = reference;
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = gitg_ref_get_parsed_name (_tmp11_);
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = _tmp12_;
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp14_ = _tmp13_;
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = gitg_parsed_ref_name_get_remote_name (_tmp14_);
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp16_ = _tmp15_;
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp17_ = _tmp16_;
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp18_ = _tmp17_ != NULL;
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp17_);
#line 52 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp14_);
#line 52 "/home/jesse/devel/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/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp19_ = reference;
#line 54 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp20_ = _g_object_ref0 (_tmp19_);
#line 54 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_g_object_unref0 (self->priv->d_remote_ref);
#line 54 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			self->priv->d_remote_ref = _tmp20_;
#line 258 "gitg-ref-action-fetch.c"
		}
	}
#line 57 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp21_ = self->priv->d_remote_ref;
#line 57 "/home/jesse/devel/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/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp22_ = application;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp23_ = gitg_ext_application_get_remote_lookup (_tmp22_);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp24_ = _tmp23_;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp25_ = _tmp24_;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp26_ = self->priv->d_remote_ref;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp27_ = gitg_ref_get_parsed_name (_tmp26_);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp28_ = _tmp27_;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp29_ = _tmp28_;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp30_ = gitg_parsed_ref_name_get_remote_name (_tmp29_);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp31_ = _tmp30_;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp32_ = _tmp31_;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp33_ = gitg_ext_remote_lookup_lookup (_tmp25_, _tmp32_);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (self->priv->d_remote);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		self->priv->d_remote = _tmp33_;
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp32_);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp29_);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp25_);
#line 312 "gitg-ref-action-fetch.c"
	}
#line 35 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (branch);
#line 35 "/home/jesse/devel/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/jesse/devel/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 Block44Data* block44_data_ref (Block44Data* _data44_) {
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_atomic_int_inc (&_data44_->_ref_count_);
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	return _data44_;
#line 334 "gitg-ref-action-fetch.c"
}


static void block44_data_unref (void * _userdata_) {
	Block44Data* _data44_;
	_data44_ = (Block44Data*) _userdata_;
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	if (g_atomic_int_dec_and_test (&_data44_->_ref_count_)) {
#line 343 "gitg-ref-action-fetch.c"
		GitgRefActionFetch* self;
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		self = _data44_->self;
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_data44_->updates);
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_data44_->notification);
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (self);
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		g_slice_free (Block44Data, _data44_);
#line 355 "gitg-ref-action-fetch.c"
	}
}


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


static void __lambda104_ (Block44Data* _data44_, GitgRemote* remote, const gchar* name, GgitOId* a, GgitOId* b) {
	GitgRefActionFetch* self;
	GgitOId* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = _data44_->self;
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (remote != NULL);
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (name != NULL);
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (a != NULL);
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (b != NULL);
#line 103 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = a;
#line 103 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = ggit_oid_is_zero (_tmp0_);
#line 103 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp1_) {
#line 392 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = name;
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = string_to_string (_tmp2_);
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = g_strconcat (_tmp3_, " (%s)", NULL);
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = _tmp4_;
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = _ ("new");
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = g_strdup_printf (_tmp5_, _tmp6_);
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = _tmp7_;
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data44_->updates, _tmp8_);
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp8_);
#line 106 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp5_);
#line 420 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = name;
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = string_to_string (_tmp9_);
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = g_strconcat (_tmp10_, " (%s)", NULL);
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp12_ = _tmp11_;
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = _ ("updated");
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp14_ = g_strdup_printf (_tmp12_, _tmp13_);
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp15_ = _tmp14_;
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data44_->updates, _tmp15_);
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp15_);
#line 111 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp12_);
#line 449 "gitg-ref-action-fetch.c"
	}
}


static void ___lambda104__gitg_remote_tip_updated (GitgRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self) {
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	__lambda104_ (self, _sender, refname, a, b);
#line 457 "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 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 964 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 965 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		separator = "";
#line 474 "gitg-ref-action-fetch.c"
	}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 484 "gitg-ref-action-fetch.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 494 "gitg-ref-action-fetch.c"
	}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 500 "gitg-ref-action-fetch.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == (-1)) {
#line 511 "gitg-ref-action-fetch.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 523 "gitg-ref-action-fetch.c"
		} else {
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 527 "gitg-ref-action-fetch.c"
		}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 531 "gitg-ref-action-fetch.c"
	}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 535 "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 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 558 "gitg-ref-action-fetch.c"
		{
			gboolean _tmp9_ = FALSE;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			i = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 567 "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 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 580 "gitg-ref-action-fetch.c"
					gint _tmp10_ = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 586 "gitg-ref-action-fetch.c"
				}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != (-1)) {
#line 596 "gitg-ref-action-fetch.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 608 "gitg-ref-action-fetch.c"
				} else {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 612 "gitg-ref-action-fetch.c"
				}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 618 "gitg-ref-action-fetch.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == (-1)) {
#line 629 "gitg-ref-action-fetch.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 644 "gitg-ref-action-fetch.c"
					} else {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 648 "gitg-ref-action-fetch.c"
					}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 652 "gitg-ref-action-fetch.c"
				}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					break;
#line 658 "gitg-ref-action-fetch.c"
				}
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 670 "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 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 691 "gitg-ref-action-fetch.c"
				} else {
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 695 "gitg-ref-action-fetch.c"
				}
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 701 "gitg-ref-action-fetch.c"
			}
		}
#line 973 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 973 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 708 "gitg-ref-action-fetch.c"
			gchar* _tmp32_ = NULL;
#line 974 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 974 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 974 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			return result;
#line 716 "gitg-ref-action-fetch.c"
		}
#line 976 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 976 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 976 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 979 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 979 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 979 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 754 "gitg-ref-action-fetch.c"
		{
			gboolean _tmp46_ = FALSE;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			i = 1;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 763 "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 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 779 "gitg-ref-action-fetch.c"
					gint _tmp47_ = 0;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 785 "gitg-ref-action-fetch.c"
				}
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					break;
#line 799 "gitg-ref-action-fetch.c"
				}
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 819 "gitg-ref-action-fetch.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 834 "gitg-ref-action-fetch.c"
				} else {
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 838 "gitg-ref-action-fetch.c"
				}
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 846 "gitg-ref-action-fetch.c"
			}
		}
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		res = NULL;
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 857 "gitg-ref-action-fetch.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 988 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 988 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 988 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 866 "gitg-ref-action-fetch.c"
	}
}


static void __lambda105_ (Block44Data* _data44_, GObject* obj, GAsyncResult* res) {
	GitgRefActionFetch* self;
	gint _tmp14_ = 0;
	gint _tmp15_ = 0;
	GitgExtApplication* _tmp31_ = NULL;
	GitgExtApplication* _tmp32_ = NULL;
	GitgExtApplication* _tmp33_ = NULL;
	GitgExtNotifications* _tmp34_ = NULL;
	GitgExtNotifications* _tmp35_ = NULL;
	GitgExtNotifications* _tmp36_ = NULL;
	GError * _inner_error_ = NULL;
#line 115 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = _data44_->self;
#line 115 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_return_if_fail (res != NULL);
#line 886 "gitg-ref-action-fetch.c"
	{
		GitgRemote* _tmp0_ = NULL;
		GAsyncResult* _tmp1_ = NULL;
#line 118 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp0_ = self->priv->d_remote;
#line 118 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp1_ = res;
#line 118 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_fetch_finish (_tmp0_, _tmp1_, &_inner_error_);
#line 118 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 898 "gitg-ref-action-fetch.c"
			goto __catch60_g_error;
		}
	}
	goto __finally60;
	__catch60_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp2_ = NULL;
		GitgRemote* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		GError* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		FILE* _tmp9_ = NULL;
		GError* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 116 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		e = _inner_error_;
#line 116 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_inner_error_ = NULL;
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = _ ("Failed to fetch from %s: %s");
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = self->priv->d_remote;
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = ggit_remote_get_url ((GgitRemote*) _tmp3_);
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = e;
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = _tmp5_->message;
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = g_strdup_printf (_tmp2_, _tmp4_, _tmp6_);
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = _tmp7_;
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_error (_data44_->notification, _tmp8_);
#line 122 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp8_);
#line 123 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = stderr;
#line 123 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = e;
#line 123 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = _tmp10_->message;
#line 123 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		fprintf (_tmp9_, "Failed to fetch: %s\n", _tmp11_);
#line 124 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_error_free0 (e);
#line 948 "gitg-ref-action-fetch.c"
		{
			GitgRemote* _tmp12_ = NULL;
#line 128 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			_tmp12_ = self->priv->d_remote;
#line 128 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
			g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, G_TYPE_OBJECT) ? ((GObject*) _tmp12_) : NULL, _data44_->tip_updated_id);
#line 955 "gitg-ref-action-fetch.c"
		}
#line 124 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		return;
#line 959 "gitg-ref-action-fetch.c"
	}
	__finally60:
	{
		GitgRemote* _tmp13_ = NULL;
#line 128 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp13_ = self->priv->d_remote;
#line 128 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, G_TYPE_OBJECT) ? ((GObject*) _tmp13_) : NULL, _data44_->tip_updated_id);
#line 968 "gitg-ref-action-fetch.c"
	}
#line 116 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 116 "/home/jesse/devel/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 116 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		g_clear_error (&_inner_error_);
#line 116 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		return;
#line 978 "gitg-ref-action-fetch.c"
	}
#line 131 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp14_ = gee_abstract_collection_get_size ((GeeCollection*) _data44_->updates);
#line 131 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp15_ = _tmp14_;
#line 131 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp15_ == 0) {
#line 986 "gitg-ref-action-fetch.c"
		const gchar* _tmp16_ = NULL;
		GitgRemote* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
#line 134 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp16_ = _ ("Fetched from %s: everything is up to date");
#line 134 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp17_ = self->priv->d_remote;
#line 134 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp18_ = ggit_remote_get_url ((GgitRemote*) _tmp17_);
#line 134 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp19_ = g_strdup_printf (_tmp16_, _tmp18_);
#line 134 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp20_ = _tmp19_;
#line 134 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_success (_data44_->notification, _tmp20_);
#line 134 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp20_);
#line 1006 "gitg-ref-action-fetch.c"
	} else {
		const gchar* _tmp21_ = NULL;
		GitgRemote* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		gint _tmp24_ = 0;
		gpointer* _tmp25_ = NULL;
		gchar** _tmp26_ = NULL;
		gint _tmp26__length1 = 0;
		gchar* _tmp27_ = NULL;
		gchar* _tmp28_ = NULL;
		gchar* _tmp29_ = NULL;
		gchar* _tmp30_ = NULL;
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp21_ = _ ("Fetched from %s: %s");
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp22_ = self->priv->d_remote;
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp23_ = ggit_remote_get_url ((GgitRemote*) _tmp22_);
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp25_ = gee_collection_to_array ((GeeCollection*) _data44_->updates, &_tmp24_);
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp26_ = _tmp25_;
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp26__length1 = _tmp24_;
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp27_ = _vala_g_strjoinv (", ", _tmp26_, _tmp24_);
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp28_ = _tmp27_;
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp29_ = g_strdup_printf (_tmp21_, _tmp23_, _tmp28_);
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp30_ = _tmp29_;
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		gitg_remote_notification_success (_data44_->notification, _tmp30_);
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp30_);
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp28_);
#line 140 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp26_ = (_vala_array_free (_tmp26_, _tmp26__length1, (GDestroyNotify) g_free), NULL);
#line 1047 "gitg-ref-action-fetch.c"
	}
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp31_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp32_ = _tmp31_;
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp33_ = _tmp32_;
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp34_ = gitg_ext_application_get_notifications (_tmp33_);
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp35_ = _tmp34_;
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp36_ = _tmp35_;
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ext_notifications_remove (_tmp36_, (GtkWidget*) _data44_->notification, (guint) 3000);
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp36_);
#line 143 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp33_);
#line 1067 "gitg-ref-action-fetch.c"
}


static void ___lambda105__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 115 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	__lambda105_ (self, source_object, res);
#line 115 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	block44_data_unref (self);
#line 1076 "gitg-ref-action-fetch.c"
}


static void gitg_ref_action_fetch_real_activate (GitgExtUIElement* base) {
	GitgRefActionFetch * self;
	Block44Data* _data44_;
	GitgRemote* _tmp0_ = NULL;
	GitgRemoteNotification* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgExtApplication* _tmp3_ = NULL;
	GitgExtApplication* _tmp4_ = NULL;
	GitgExtNotifications* _tmp5_ = NULL;
	GitgExtNotifications* _tmp6_ = NULL;
	GitgExtNotifications* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	GitgRemote* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	GeeArrayList* _tmp13_ = NULL;
	GitgRemote* _tmp14_ = NULL;
	gulong _tmp15_ = 0UL;
	GitgRemote* _tmp16_ = NULL;
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_data44_ = g_slice_new0 (Block44Data);
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_data44_->_ref_count_ = 1;
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_data44_->self = g_object_ref (self);
#line 95 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->d_remote;
#line 95 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = gitg_remote_notification_new (_tmp0_);
#line 95 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_ref_sink (_tmp1_);
#line 95 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_data44_->notification = _tmp1_;
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp2_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp3_ = _tmp2_;
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp4_ = _tmp3_;
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp5_ = gitg_ext_application_get_notifications (_tmp4_);
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp6_ = _tmp5_;
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp7_ = _tmp6_;
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_ext_notifications_add (_tmp7_, (GtkWidget*) _data44_->notification);
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp7_);
#line 96 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp4_);
#line 98 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp8_ = _ ("Fetching from %s");
#line 98 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp9_ = self->priv->d_remote;
#line 98 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp10_ = ggit_remote_get_url ((GgitRemote*) _tmp9_);
#line 98 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp11_ = g_strdup_printf (_tmp8_, _tmp10_);
#line 98 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp12_ = _tmp11_;
#line 98 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_remote_notification_set_text (_data44_->notification, _tmp12_);
#line 98 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_free0 (_tmp12_);
#line 100 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp13_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 100 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_data44_->updates = _tmp13_;
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp14_ = self->priv->d_remote;
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp15_ = g_signal_connect_data (_tmp14_, "tip-updated", (GCallback) ___lambda104__gitg_remote_tip_updated, block44_data_ref (_data44_), (GClosureNotify) block44_data_unref, 0);
#line 102 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_data44_->tip_updated_id = _tmp15_;
#line 115 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp16_ = self->priv->d_remote;
#line 115 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	gitg_remote_fetch (_tmp16_, NULL, NULL, ___lambda105__gasync_ready_callback, block44_data_ref (_data44_));
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	block44_data_unref (_data44_);
#line 93 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_data44_ = NULL;
#line 1166 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->_application;
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp1_;
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1185 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self->priv->_application = _tmp1_;
#line 28 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_notify ((GObject *) self, "application");
#line 1205 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_;
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1221 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = value;
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self->priv->_action_interface = _tmp1_;
#line 29 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_notify ((GObject *) self, "action-interface");
#line 1241 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->_reference;
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_;
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1257 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = value;
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (self->priv->_reference);
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self->priv->_reference = _tmp1_;
#line 30 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	g_object_notify ((GObject *) self, "reference");
#line 1277 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 65 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/ref-actions/fetch");
#line 65 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_;
#line 65 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1293 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 72 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->d_remote;
#line 72 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	if (_tmp0_ != NULL) {
#line 1307 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp1_ = _ ("Fetch from %s");
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp2_ = self->priv->d_remote_ref;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp4_ = _tmp3_;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp5_ = _tmp4_;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp6_ = gitg_parsed_ref_name_get_remote_name (_tmp5_);
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp7_ = _tmp6_;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp8_ = _tmp7_;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp9_ = g_strdup_printf (_tmp1_, _tmp8_);
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp10_ = _tmp9_;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_free0 (_tmp8_);
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_g_object_unref0 (_tmp5_);
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		result = _tmp10_;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		return result;
#line 1346 "gitg-ref-action-fetch.c"
	} else {
		gchar* _tmp11_ = NULL;
#line 78 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		_tmp11_ = g_strdup ("");
#line 78 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		result = _tmp11_;
#line 78 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
		return result;
#line 1355 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = _ ("Fetch remote objects from %s");
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp1_ = self->priv->d_remote_ref;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp2_ = gitg_ref_get_parsed_name (_tmp1_);
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp3_ = _tmp2_;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp4_ = _tmp3_;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp5_ = gitg_parsed_ref_name_get_remote_name (_tmp4_);
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp6_ = _tmp5_;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp7_ = _tmp6_;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp8_ = g_strdup_printf (_tmp0_, _tmp7_);
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp9_ = _tmp8_;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_free0 (_tmp7_);
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_g_object_unref0 (_tmp4_);
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp9_;
#line 85 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1403 "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/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	self = (GitgRefActionFetch*) base;
#line 90 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	_tmp0_ = self->priv->d_remote;
#line 90 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	result = _tmp0_ != NULL;
#line 90 "/home/jesse/devel/gitg/gitg/gitg-ref-action-fetch.vala"
	return result;
#line 1419 "gitg-ref-action-fetch.c"
}


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


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


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


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


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


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



