/* gitg-history-refs-list.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-history-refs-list.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/libgitg.h"
#include <gtk/gtk.h>
#include "libgitg-ext/libgitg-ext.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <libgit2-glib/ggit.h>
#include <gee.h>
#include <stdio.h>
#include <gobject/gvaluecollector.h>


#define GITG_HISTORY_TYPE_REF_ANIMATION (gitg_history_ref_animation_get_type ())

#define GITG_HISTORY_TYPE_REF_TYPED (gitg_history_ref_typed_get_type ())
#define GITG_HISTORY_REF_TYPED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_REF_TYPED, GitgHistoryRefTyped))
#define GITG_HISTORY_IS_REF_TYPED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_REF_TYPED))
#define GITG_HISTORY_REF_TYPED_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_HISTORY_TYPE_REF_TYPED, GitgHistoryRefTypedIface))

typedef struct _GitgHistoryRefTyped GitgHistoryRefTyped;
typedef struct _GitgHistoryRefTypedIface GitgHistoryRefTypedIface;

#define GITG_HISTORY_TYPE_REF_ROW (gitg_history_ref_row_get_type ())
#define GITG_HISTORY_REF_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRow))
#define GITG_HISTORY_REF_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRowClass))
#define GITG_HISTORY_IS_REF_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_REF_ROW))
#define GITG_HISTORY_IS_REF_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_REF_ROW))
#define GITG_HISTORY_REF_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRowClass))

typedef struct _GitgHistoryRefRow GitgHistoryRefRow;
typedef struct _GitgHistoryRefRowClass GitgHistoryRefRowClass;
typedef struct _GitgHistoryRefRowPrivate GitgHistoryRefRowPrivate;
#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 _Block41Data Block41Data;

#define GITG_HISTORY_TYPE_REF_HEADER (gitg_history_ref_header_get_type ())
#define GITG_HISTORY_REF_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeader))
#define GITG_HISTORY_REF_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeaderClass))
#define GITG_HISTORY_IS_REF_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_REF_HEADER))
#define GITG_HISTORY_IS_REF_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_REF_HEADER))
#define GITG_HISTORY_REF_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeaderClass))

typedef struct _GitgHistoryRefHeader GitgHistoryRefHeader;
typedef struct _GitgHistoryRefHeaderClass GitgHistoryRefHeaderClass;
typedef struct _GitgHistoryRefHeaderPrivate GitgHistoryRefHeaderPrivate;

#define GITG_HISTORY_TYPE_REFS_LIST (gitg_history_refs_list_get_type ())
#define GITG_HISTORY_REFS_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList))
#define GITG_HISTORY_REFS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsListClass))
#define GITG_HISTORY_IS_REFS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_REFS_LIST))
#define GITG_HISTORY_IS_REFS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_REFS_LIST))
#define GITG_HISTORY_REFS_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsListClass))

typedef struct _GitgHistoryRefsList GitgHistoryRefsList;
typedef struct _GitgHistoryRefsListClass GitgHistoryRefsListClass;
typedef struct _GitgHistoryRefsListPrivate GitgHistoryRefsListPrivate;

#define GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER (gitg_history_refs_list_remote_header_get_type ())
#define GITG_HISTORY_REFS_LIST_REMOTE_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, GitgHistoryRefsListRemoteHeader))
#define GITG_HISTORY_REFS_LIST_REMOTE_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, GitgHistoryRefsListRemoteHeaderClass))
#define GITG_HISTORY_REFS_LIST_IS_REMOTE_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER))
#define GITG_HISTORY_REFS_LIST_IS_REMOTE_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER))
#define GITG_HISTORY_REFS_LIST_REMOTE_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, GitgHistoryRefsListRemoteHeaderClass))

typedef struct _GitgHistoryRefsListRemoteHeader GitgHistoryRefsListRemoteHeader;
typedef struct _GitgHistoryRefsListRemoteHeaderClass GitgHistoryRefsListRemoteHeaderClass;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _gitg_history_refs_list_remote_header_unref0(var) ((var == NULL) ? NULL : (var = (gitg_history_refs_list_remote_header_unref (var), NULL)))
typedef struct _GitgHistoryRefsListRemoteHeaderPrivate GitgHistoryRefsListRemoteHeaderPrivate;
typedef struct _Block42Data Block42Data;
typedef struct _GitgHistoryRefsListParamSpecRemoteHeader GitgHistoryRefsListParamSpecRemoteHeader;

typedef enum  {
	GITG_HISTORY_REF_ANIMATION_NONE,
	GITG_HISTORY_REF_ANIMATION_ANIMATE
} GitgHistoryRefAnimation;

struct _GitgHistoryRefTypedIface {
	GTypeInterface parent_iface;
	GitgRefType (*get_ref_type) (GitgHistoryRefTyped* self);
};

struct _GitgHistoryRefRow {
	GtkListBoxRow parent_instance;
	GitgHistoryRefRowPrivate * priv;
};

struct _GitgHistoryRefRowClass {
	GtkListBoxRowClass parent_class;
};

struct _GitgHistoryRefRowPrivate {
	GtkImage* d_icon;
	GtkLabel* d_label;
	GtkBox* d_box;
	GtkRevealer* d_revealer;
	GitgRef* _reference;
	GtkEntry* d_editing_entry;
	guint d_idle_finish;
	GitgExtRefNameEditingDone d_edit_done_callback;
	gpointer d_edit_done_callback_target;
	GDestroyNotify d_edit_done_callback_target_destroy_notify;
};

struct _Block41Data {
	int _ref_count_;
	GitgHistoryRefRow* self;
	gboolean cancelled;
};

struct _GitgHistoryRefHeader {
	GtkListBoxRow parent_instance;
	GitgHistoryRefHeaderPrivate * priv;
};

struct _GitgHistoryRefHeaderClass {
	GtkListBoxRowClass parent_class;
};

struct _GitgHistoryRefHeaderPrivate {
	GitgRefType d_rtype;
	gboolean d_is_sub_header_remote;
	gchar* d_name;
	GitgRemote* d_remote;
	GitgProgressBin* d_progress_bin;
	GtkLabel* d_label;
	GtkImage* d_icon;
};

struct _GitgHistoryRefsList {
	GtkListBox parent_instance;
	GitgHistoryRefsListPrivate * priv;
};

struct _GitgHistoryRefsListClass {
	GtkListBoxClass parent_class;
};

struct _GitgHistoryRefsListPrivate {
	GitgRepository* d_repository;
	GeeHashMap* d_ref_map;
	GtkListBoxRow* d_selected_row;
	GitgRemote** d_remotes;
	gint d_remotes_length1;
	gint _d_remotes_size_;
	GeeHashMap* d_header_map;
	GitgExtRemoteLookup* _remote_lookup;
};

struct _GitgHistoryRefsListRemoteHeader {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgHistoryRefsListRemoteHeaderPrivate * priv;
	GitgHistoryRefHeader* header;
	GeeHashSet* references;
};

struct _GitgHistoryRefsListRemoteHeaderClass {
	GTypeClass parent_class;
	void (*finalize) (GitgHistoryRefsListRemoteHeader *self);
};

struct _Block42Data {
	int _ref_count_;
	GitgHistoryRefsList* self;
	GitgHistoryRefRow* head;
};

struct _GitgHistoryRefsListParamSpecRemoteHeader {
	GParamSpec parent_instance;
};


static gpointer gitg_history_ref_row_parent_class = NULL;
static GitgHistoryRefTypedIface* gitg_history_ref_row_gitg_history_ref_typed_parent_iface = NULL;
static gpointer gitg_history_ref_header_parent_class = NULL;
static GitgHistoryRefTypedIface* gitg_history_ref_header_gitg_history_ref_typed_parent_iface = NULL;
static gpointer gitg_history_refs_list_parent_class = NULL;
static gpointer gitg_history_refs_list_remote_header_parent_class = NULL;

gint gitg_history_ref_type_sort_order (GitgRefType ref_type);
GType gitg_history_ref_animation_get_type (void) G_GNUC_CONST;
GType gitg_history_ref_typed_get_type (void) G_GNUC_CONST;
GitgRefType gitg_history_ref_typed_get_ref_type (GitgHistoryRefTyped* self);
GType gitg_history_ref_row_get_type (void) G_GNUC_CONST;
#define GITG_HISTORY_REF_ROW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRowPrivate))
enum  {
	GITG_HISTORY_REF_ROW_DUMMY_PROPERTY,
	GITG_HISTORY_REF_ROW_REFERENCE,
	GITG_HISTORY_REF_ROW_REF_TYPE,
	GITG_HISTORY_REF_ROW_IS_HEAD
};
#define GITG_HISTORY_REF_ROW_version VERSION
GitgHistoryRefRow* gitg_history_ref_row_new (GitgRef* reference, GitgHistoryRefAnimation animation);
GitgHistoryRefRow* gitg_history_ref_row_construct (GType object_type, GitgRef* reference, GitgHistoryRefAnimation animation);
void gitg_history_ref_row_set_reference (GitgHistoryRefRow* self, GitgRef* value);
static gchar* gitg_history_ref_row_label_text (GitgHistoryRefRow* self);
gboolean gitg_history_ref_row_get_is_head (GitgHistoryRefRow* self);
static void gitg_history_ref_row_on_child_revealed (GitgHistoryRefRow* self, GObject* obj, GParamSpec* spec);
static void _gitg_history_ref_row_on_child_revealed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_history_ref_row_real_map (GtkWidget* base);
GitgRef* gitg_history_ref_row_get_reference (GitgHistoryRefRow* self);
static gint gitg_history_ref_row_compare_type (GitgHistoryRefRow* self, GitgHistoryRefRow* other);
gint gitg_history_ref_row_compare_to (GitgHistoryRefRow* self, GitgHistoryRefRow* other);
void gitg_history_ref_row_begin_editing (GitgHistoryRefRow* self, GitgExtRefNameEditingDone done, void* done_target, GDestroyNotify done_target_destroy_notify);
static gboolean gitg_history_ref_row_on_editing_focus_out (GitgHistoryRefRow* self, GtkWidget* widget, GdkEventFocus* event);
static gboolean _gitg_history_ref_row_on_editing_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self);
static gboolean gitg_history_ref_row_on_editing_key_press (GitgHistoryRefRow* self, GtkWidget* widget, GdkEventKey* event);
static gboolean _gitg_history_ref_row_on_editing_key_press_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self);
static void gitg_history_ref_row_real_dispose (GObject* base);
static void gitg_history_ref_row_finish_editing (GitgHistoryRefRow* self, gboolean cancelled);
static Block41Data* block41_data_ref (Block41Data* _data41_);
static void block41_data_unref (void * _userdata_);
static gboolean __lambda83_ (Block41Data* _data41_);
static gboolean ___lambda83__gsource_func (gpointer self);
void gitg_history_ref_row_unreveal (GitgHistoryRefRow* self);
static void gitg_history_ref_row_finalize (GObject* obj);
static void _vala_gitg_history_ref_row_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_history_ref_row_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType gitg_history_ref_header_get_type (void) G_GNUC_CONST;
#define GITG_HISTORY_REF_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeaderPrivate))
enum  {
	GITG_HISTORY_REF_HEADER_DUMMY_PROPERTY,
	GITG_HISTORY_REF_HEADER_REMOTE_STATE,
	GITG_HISTORY_REF_HEADER_REF_TYPE,
	GITG_HISTORY_REF_HEADER_REF_NAME,
	GITG_HISTORY_REF_HEADER_IS_SUB_HEADER_REMOTE,
	GITG_HISTORY_REF_HEADER_ICON_NAME
};
GitgHistoryRefHeader* gitg_history_ref_header_new (GitgRefType rtype, const gchar* name);
GitgHistoryRefHeader* gitg_history_ref_header_construct (GType object_type, GitgRefType rtype, const gchar* name);
GitgHistoryRefHeader* gitg_history_ref_header_new_remote (const gchar* name, GitgRemote* remote);
GitgHistoryRefHeader* gitg_history_ref_header_construct_remote (GType object_type, const gchar* name, GitgRemote* remote);
gint gitg_history_ref_header_compare_to (GitgHistoryRefHeader* self, GitgHistoryRefHeader* other);
void gitg_history_ref_header_set_remote_state (GitgHistoryRefHeader* self, GitgRemoteState value);
void gitg_history_ref_header_set_icon_name (GitgHistoryRefHeader* self, const gchar* value);
const gchar* gitg_history_ref_header_get_ref_name (GitgHistoryRefHeader* self);
gboolean gitg_history_ref_header_get_is_sub_header_remote (GitgHistoryRefHeader* self);
gchar* gitg_history_ref_header_get_icon_name (GitgHistoryRefHeader* self);
static void gitg_history_ref_header_finalize (GObject* obj);
static void _vala_gitg_history_ref_header_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_history_ref_header_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType gitg_history_refs_list_get_type (void) G_GNUC_CONST;
static gpointer gitg_history_refs_list_remote_header_ref (gpointer instance);
static void gitg_history_refs_list_remote_header_unref (gpointer instance);
static GParamSpec* gitg_history_refs_list_param_spec_remote_header (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
static void gitg_history_refs_list_value_set_remote_header (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static void gitg_history_refs_list_value_take_remote_header (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static gpointer gitg_history_refs_list_value_get_remote_header (const GValue* value) G_GNUC_UNUSED;
static GType gitg_history_refs_list_remote_header_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define GITG_HISTORY_REFS_LIST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsListPrivate))
enum  {
	GITG_HISTORY_REFS_LIST_DUMMY_PROPERTY,
	GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP,
	GITG_HISTORY_REFS_LIST_REPOSITORY,
	GITG_HISTORY_REFS_LIST_ALL,
	GITG_HISTORY_REFS_LIST_IS_HEADER,
	GITG_HISTORY_REFS_LIST_IS_ALL,
	GITG_HISTORY_REFS_LIST_SELECTION
};
static void gitg_history_refs_list_real_dispose (GObject* base);
static void gitg_history_refs_list_on_tip_updated (GitgHistoryRefsList* self, GgitRemote* remote, const gchar* refname, GgitOId* a, GgitOId* b);
static void _gitg_history_refs_list_on_tip_updated_ggit_remote_tip_updated (GgitRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self);
static gint gitg_history_refs_list_sort_rows (GitgHistoryRefsList* self, GtkListBoxRow* row1, GtkListBoxRow* row2);
static void gitg_history_refs_list_clear (GitgHistoryRefsList* self);
static void gitg_history_refs_list_reselect_row (GitgHistoryRefsList* self, GtkListBoxRow* a);
void gitg_history_refs_list_add (GitgHistoryRefsList* self, GtkListBoxRow* row);
static void gitg_history_refs_list_add_header (GitgHistoryRefsList* self, GitgRefType ref_type, const gchar* name);
GitgRepository* gitg_history_refs_list_get_repository (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_add_ref (GitgHistoryRefsList* self, GitgRef* reference);
gboolean gitg_history_refs_list_remove_ref (GitgHistoryRefsList* self, GitgRef* reference);
static GitgHistoryRefHeader* gitg_history_refs_list_add_remote_header (GitgHistoryRefsList* self, const gchar* name);
GitgExtRemoteLookup* gitg_history_refs_list_get_remote_lookup (GitgHistoryRefsList* self);
static void _vala_array_add12 (GitgRemote*** array, int* length, int* size, GitgRemote* value);
static GitgHistoryRefsListRemoteHeader* gitg_history_refs_list_remote_header_new (GitgHistoryRefHeader* h);
static GitgHistoryRefsListRemoteHeader* gitg_history_refs_list_remote_header_construct (GType object_type, GitgHistoryRefHeader* h);
static GitgHistoryRefRow* gitg_history_refs_list_add_ref_row (GitgHistoryRefsList* self, GitgRef* reference, GitgHistoryRefAnimation animation);
static GitgHistoryRefRow* gitg_history_refs_list_add_ref_internal (GitgHistoryRefsList* self, GitgRef* reference, GitgHistoryRefAnimation animation);
void gitg_history_refs_list_replace_ref (GitgHistoryRefsList* self, GitgRef* old_ref, GitgRef* new_ref);
static gboolean gitg_history_refs_list_remove_ref_internal (GitgHistoryRefsList* self, GitgRef* reference, GitgHistoryRefAnimation animation);
static gboolean gitg_history_refs_list_ref_is_a_symbolic_head (GitgHistoryRefsList* self, GitgRef* reference);
static void gitg_history_refs_list_refresh (GitgHistoryRefsList* self);
static Block42Data* block42_data_ref (Block42Data* _data42_);
static void block42_data_unref (void * _userdata_);
static gint ___lambda84_ (Block42Data* _data42_, const gchar* nm);
static gint ____lambda84__ggit_references_name_callback (const gchar* name, gpointer self);
static GitgHistoryRefRow* gitg_history_refs_list_get_ref_row (GitgHistoryRefsList* self, GtkListBoxRow* row);
static GitgHistoryRefHeader* gitg_history_refs_list_get_ref_header (GitgHistoryRefsList* self, GtkListBoxRow* row);
static void gitg_history_refs_list_real_row_selected (GtkListBox* base, GtkListBoxRow* row);
static void gitg_history_refs_list_real_move_cursor (GtkListBox* base, GtkMovementStep step, gint n);
void gitg_history_refs_list_edit (GitgHistoryRefsList* self, GitgRef* reference, GitgExtRefNameEditingDone done, void* done_target, GDestroyNotify done_target_destroy_notify);
static gint gitg_history_refs_list_y_in_window (GitgHistoryRefsList* self, gint y, GdkWindow* origin);
static gboolean gitg_history_refs_list_real_button_press_event (GtkWidget* base, GdkEventButton* button);
GitgHistoryRefsList* gitg_history_refs_list_new (void);
GitgHistoryRefsList* gitg_history_refs_list_construct (GType object_type);
void gitg_history_refs_list_set_remote_lookup (GitgHistoryRefsList* self, GitgExtRemoteLookup* value);
void gitg_history_refs_list_set_repository (GitgHistoryRefsList* self, GitgRepository* value);
GeeList* gitg_history_refs_list_get_all (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_get_is_header (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_get_is_all (GitgHistoryRefsList* self);
GeeList* gitg_history_refs_list_get_selection (GitgHistoryRefsList* self);
static GObject * gitg_history_refs_list_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static gint _gitg_history_refs_list_sort_rows_gtk_list_box_sort_func (GtkListBoxRow* row1, GtkListBoxRow* row2, gpointer self);
enum  {
	GITG_HISTORY_REFS_LIST_REMOTE_HEADER_DUMMY_PROPERTY
};
static void gitg_history_refs_list_remote_header_finalize (GitgHistoryRefsListRemoteHeader* obj);
static void gitg_history_refs_list_finalize (GObject* obj);
static void _vala_gitg_history_refs_list_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_history_refs_list_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);


gint gitg_history_ref_type_sort_order (GitgRefType ref_type) {
	gint result = 0;
	GitgRefType _tmp0_ = 0;
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = ref_type;
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (_tmp0_) {
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_NONE:
#line 353 "gitg-history-refs-list.c"
		{
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 0;
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 359 "gitg-history-refs-list.c"
		}
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_BRANCH:
#line 363 "gitg-history-refs-list.c"
		{
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 1;
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 369 "gitg-history-refs-list.c"
		}
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_REMOTE:
#line 373 "gitg-history-refs-list.c"
		{
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 2;
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 379 "gitg-history-refs-list.c"
		}
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_TAG:
#line 383 "gitg-history-refs-list.c"
		{
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 3;
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 389 "gitg-history-refs-list.c"
		}
		default:
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 394 "gitg-history-refs-list.c"
	}
#line 37 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 4;
#line 37 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 400 "gitg-history-refs-list.c"
}


GType gitg_history_ref_animation_get_type (void) {
	static volatile gsize gitg_history_ref_animation_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_ref_animation_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_HISTORY_REF_ANIMATION_NONE, "GITG_HISTORY_REF_ANIMATION_NONE", "none"}, {GITG_HISTORY_REF_ANIMATION_ANIMATE, "GITG_HISTORY_REF_ANIMATION_ANIMATE", "animate"}, {0, NULL, NULL}};
		GType gitg_history_ref_animation_type_id;
		gitg_history_ref_animation_type_id = g_enum_register_static ("GitgHistoryRefAnimation", values);
		g_once_init_leave (&gitg_history_ref_animation_type_id__volatile, gitg_history_ref_animation_type_id);
	}
	return gitg_history_ref_animation_type_id__volatile;
}


GitgRefType gitg_history_ref_typed_get_ref_type (GitgHistoryRefTyped* self) {
#line 48 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 48 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return GITG_HISTORY_REF_TYPED_GET_INTERFACE (self)->get_ref_type (self);
#line 421 "gitg-history-refs-list.c"
}


static void gitg_history_ref_typed_base_init (GitgHistoryRefTypedIface * iface) {
#line 46 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	static gboolean initialized = FALSE;
#line 46 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!initialized) {
#line 46 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		initialized = TRUE;
#line 46 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_interface_install_property (iface, g_param_spec_enum ("ref-type", "ref-type", "ref-type", GITG_TYPE_REF_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 434 "gitg-history-refs-list.c"
	}
}


GType gitg_history_ref_typed_get_type (void) {
	static volatile gsize gitg_history_ref_typed_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_ref_typed_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryRefTypedIface), (GBaseInitFunc) gitg_history_ref_typed_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType gitg_history_ref_typed_type_id;
		gitg_history_ref_typed_type_id = g_type_register_static (G_TYPE_INTERFACE, "GitgHistoryRefTyped", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (gitg_history_ref_typed_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&gitg_history_ref_typed_type_id__volatile, gitg_history_ref_typed_type_id);
	}
	return gitg_history_ref_typed_type_id__volatile;
}


static void _gitg_history_ref_row_on_child_revealed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 111 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_on_child_revealed ((GitgHistoryRefRow*) self, _sender, pspec);
#line 455 "gitg-history-refs-list.c"
}


GitgHistoryRefRow* gitg_history_ref_row_construct (GType object_type, GitgRef* reference, GitgHistoryRefAnimation animation) {
	GitgHistoryRefRow * self = NULL;
	GitgRef* _tmp0_ = NULL;
	GitgHistoryRefAnimation _tmp1_ = 0;
	GtkLabel* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	GitgRef* _tmp11_ = NULL;
	GitgRefType _tmp16_ = 0;
	GitgRefType _tmp17_ = 0;
	GtkRevealer* _tmp22_ = NULL;
#line 80 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) g_object_new (object_type, NULL);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_set_reference (self, _tmp0_);
#line 84 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = animation;
#line 84 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ == GITG_HISTORY_REF_ANIMATION_ANIMATE) {
#line 482 "gitg-history-refs-list.c"
		GtkRevealer* _tmp2_ = NULL;
#line 86 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = self->priv->d_revealer;
#line 86 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_revealer_set_transition_type (_tmp2_, GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN);
#line 488 "gitg-history-refs-list.c"
	} else {
		GtkRevealer* _tmp3_ = NULL;
#line 90 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = self->priv->d_revealer;
#line 90 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_revealer_set_reveal_child (_tmp3_, TRUE);
#line 495 "gitg-history-refs-list.c"
	}
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_label;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gitg_history_ref_row_label_text (self);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_label_set_label (_tmp4_, _tmp6_);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp6_);
#line 95 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_ref_row_get_is_head (self);
#line 95 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 95 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_) {
#line 513 "gitg-history-refs-list.c"
		GtkImage* _tmp9_ = NULL;
		GtkImage* _tmp10_ = NULL;
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = self->priv->d_icon;
#line 97 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_set (_tmp9_, "icon-name", "object-select-symbolic", NULL);
#line 98 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = self->priv->d_icon;
#line 98 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_show ((GtkWidget*) _tmp10_);
#line 524 "gitg-history-refs-list.c"
	}
#line 101 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = reference;
#line 101 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp11_ != NULL) {
#line 530 "gitg-history-refs-list.c"
		GtkWidget* _tmp12_ = NULL;
		GtkWidget* _tmp13_ = NULL;
		gint _tmp14_ = 0;
		gint _tmp15_ = 0;
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = gtk_bin_get_child ((GtkBin*) self);
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gtk_bin_get_child ((GtkBin*) self);
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = gtk_widget_get_margin_start (_tmp13_);
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_;
#line 103 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_set_margin_start (_tmp13_, _tmp15_ + 12);
#line 545 "gitg-history-refs-list.c"
	}
#line 106 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) self);
#line 106 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = _tmp16_;
#line 106 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp17_ == GITG_REF_TYPE_REMOTE) {
#line 553 "gitg-history-refs-list.c"
		GtkWidget* _tmp18_ = NULL;
		GtkWidget* _tmp19_ = NULL;
		gint _tmp20_ = 0;
		gint _tmp21_ = 0;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = gtk_bin_get_child ((GtkBin*) self);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gtk_bin_get_child ((GtkBin*) self);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = gtk_widget_get_margin_start (_tmp19_);
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp21_ = _tmp20_;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_set_margin_start (_tmp19_, _tmp21_ + 12);
#line 568 "gitg-history-refs-list.c"
	}
#line 111 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = self->priv->d_revealer;
#line 111 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GObject*) _tmp22_, "notify::child-revealed", (GCallback) _gitg_history_ref_row_on_child_revealed_g_object_notify, self, 0);
#line 80 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 576 "gitg-history-refs-list.c"
}


GitgHistoryRefRow* gitg_history_ref_row_new (GitgRef* reference, GitgHistoryRefAnimation animation) {
#line 80 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_row_construct (GITG_HISTORY_TYPE_REF_ROW, reference, animation);
#line 583 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_on_child_revealed (GitgHistoryRefRow* self, GObject* obj, GParamSpec* spec) {
	GtkRevealer* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (obj != NULL);
#line 114 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (spec != NULL);
#line 116 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 116 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_revealer_get_child_revealed (_tmp0_);
#line 116 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 116 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 605 "gitg-history-refs-list.c"
		GtkAllocation alloc = {0};
		GtkRevealer* _tmp3_ = NULL;
		GtkAllocation _tmp4_ = {0};
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = self->priv->d_revealer;
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_get_allocation ((GtkWidget*) _tmp3_, &_tmp4_);
#line 119 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		alloc = _tmp4_;
#line 121 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_destroy ((GtkWidget*) self);
#line 617 "gitg-history-refs-list.c"
	}
}


static void gitg_history_ref_row_real_map (GtkWidget* base) {
	GitgHistoryRefRow * self;
	GtkRevealer* _tmp0_ = NULL;
#line 125 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 127 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	GTK_WIDGET_CLASS (gitg_history_ref_row_parent_class)->map ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_row_get_type (), GtkListBoxRow));
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_revealer_set_reveal_child (_tmp0_, TRUE);
#line 633 "gitg-history-refs-list.c"
}


static gchar* gitg_history_ref_row_label_text (GitgHistoryRefRow* self) {
	gchar* result = NULL;
	GitgRef* _tmp0_ = NULL;
	GitgParsedRefName* pn = NULL;
	GitgRef* _tmp3_ = NULL;
	GitgParsedRefName* _tmp4_ = NULL;
	GitgParsedRefName* _tmp5_ = NULL;
	GitgParsedRefName* _tmp6_ = NULL;
	GitgRefType _tmp7_ = 0;
	GitgRefType _tmp8_ = 0;
	GitgParsedRefName* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 656 "gitg-history-refs-list.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 136 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = _ ("All commits");
#line 136 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 136 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp2_;
#line 136 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 667 "gitg-history-refs-list.c"
	}
#line 139 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->_reference;
#line 139 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_ref_get_parsed_name (_tmp3_);
#line 139 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 139 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	pn = _tmp5_;
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = pn;
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_parsed_ref_name_get_rtype (_tmp6_);
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_ == GITG_REF_TYPE_REMOTE) {
#line 685 "gitg-history-refs-list.c"
		GitgParsedRefName* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = pn;
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_parsed_ref_name_get_remote_branch (_tmp9_);
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp11_;
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pn);
#line 143 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 701 "gitg-history-refs-list.c"
	}
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = pn;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = gitg_parsed_ref_name_get_shortname (_tmp12_);
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = _tmp13_;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp14_;
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pn);
#line 146 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 715 "gitg-history-refs-list.c"
}


static gint gitg_history_ref_row_compare_type (GitgHistoryRefRow* self, GitgHistoryRefRow* other) {
	gint result = 0;
	GitgParsedRefName* pnme = NULL;
	GitgRef* _tmp0_ = NULL;
	GitgParsedRefName* _tmp1_ = NULL;
	GitgParsedRefName* _tmp2_ = NULL;
	GitgParsedRefName* pnot = NULL;
	GitgHistoryRefRow* _tmp3_ = NULL;
	GitgRef* _tmp4_ = NULL;
	GitgParsedRefName* _tmp5_ = NULL;
	GitgParsedRefName* _tmp6_ = NULL;
	GitgParsedRefName* _tmp7_ = NULL;
	GitgRefType _tmp8_ = 0;
	GitgRefType _tmp9_ = 0;
	GitgParsedRefName* _tmp10_ = NULL;
	GitgRefType _tmp11_ = 0;
	GitgRefType _tmp12_ = 0;
	GitgParsedRefName* _tmp27_ = NULL;
	GitgRefType _tmp28_ = 0;
	GitgRefType _tmp29_ = 0;
#line 172 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 172 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 174 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 174 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_ref_get_parsed_name (_tmp0_);
#line 174 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 174 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	pnme = _tmp2_;
#line 175 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = other;
#line 175 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_->priv->_reference;
#line 175 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gitg_ref_get_parsed_name (_tmp4_);
#line 175 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 175 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	pnot = _tmp6_;
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = pnme;
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gitg_parsed_ref_name_get_rtype (_tmp7_);
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_;
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = pnot;
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_parsed_ref_name_get_rtype (_tmp10_);
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = _tmp11_;
#line 177 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp9_ != _tmp12_) {
#line 775 "gitg-history-refs-list.c"
		gint i1 = 0;
		GitgParsedRefName* _tmp13_ = NULL;
		GitgRefType _tmp14_ = 0;
		GitgRefType _tmp15_ = 0;
		gint _tmp16_ = 0;
		gint i2 = 0;
		GitgParsedRefName* _tmp17_ = NULL;
		GitgRefType _tmp18_ = 0;
		GitgRefType _tmp19_ = 0;
		gint _tmp20_ = 0;
		gint _tmp21_ = 0;
		gint _tmp22_ = 0;
		gint _tmp23_ = 0;
#line 179 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = pnme;
#line 179 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = gitg_parsed_ref_name_get_rtype (_tmp13_);
#line 179 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_;
#line 179 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = gitg_history_ref_type_sort_order (_tmp15_);
#line 179 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		i1 = _tmp16_;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = pnot;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = gitg_parsed_ref_name_get_rtype (_tmp17_);
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = _tmp18_;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = gitg_history_ref_type_sort_order (_tmp19_);
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		i2 = _tmp20_;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp22_ = i1;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = i2;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp22_ < _tmp23_) {
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = -1;
#line 817 "gitg-history-refs-list.c"
		} else {
			gint _tmp24_ = 0;
			gint _tmp25_ = 0;
			gint _tmp26_ = 0;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = i1;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp26_ = i2;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp25_ > _tmp26_) {
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp24_ = 1;
#line 830 "gitg-history-refs-list.c"
			} else {
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp24_ = 0;
#line 834 "gitg-history-refs-list.c"
			}
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = _tmp24_;
#line 838 "gitg-history-refs-list.c"
		}
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp21_;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnot);
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnme);
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 848 "gitg-history-refs-list.c"
	}
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = pnme;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_parsed_ref_name_get_rtype (_tmp27_);
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = _tmp28_;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp29_ == GITG_REF_TYPE_REMOTE) {
#line 858 "gitg-history-refs-list.c"
		GitgParsedRefName* _tmp30_ = NULL;
		gchar* _tmp31_ = NULL;
		gchar* _tmp32_ = NULL;
		gchar* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
		gchar* _tmp35_ = NULL;
		GitgParsedRefName* _tmp36_ = NULL;
		gchar* _tmp37_ = NULL;
		gchar* _tmp38_ = NULL;
		gchar* _tmp39_ = NULL;
		gchar* _tmp40_ = NULL;
		gchar* _tmp41_ = NULL;
		gint _tmp42_ = 0;
		gint _tmp43_ = 0;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = pnme;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_parsed_ref_name_get_remote_name (_tmp30_);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = _tmp32_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = g_utf8_casefold (_tmp33_, (gssize) (-1));
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp35_ = _tmp34_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp36_ = pnot;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp37_ = gitg_parsed_ref_name_get_remote_name (_tmp36_);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = _tmp37_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp39_ = _tmp38_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = g_utf8_casefold (_tmp39_, (gssize) (-1));
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp41_ = _tmp40_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp42_ = g_utf8_collate (_tmp35_, _tmp41_);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp43_ = _tmp42_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp41_);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp39_);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp35_);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp33_);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp43_;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnot);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnme);
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 917 "gitg-history-refs-list.c"
	}
#line 190 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 0;
#line 190 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pnot);
#line 190 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pnme);
#line 190 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 927 "gitg-history-refs-list.c"
}


static gint string_index_of_char (const gchar* self, gunichar c, gint start_index) {
	gint result = 0;
	gchar* _result_ = NULL;
	gint _tmp0_ = 0;
	gunichar _tmp1_ = 0U;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 920 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 921 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 921 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp1_ = c;
#line 921 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) (-1), _tmp1_);
#line 921 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 923 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 923 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 952 "gitg-history-refs-list.c"
		gchar* _tmp4_ = NULL;
#line 924 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 924 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 924 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 960 "gitg-history-refs-list.c"
	} else {
#line 926 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		result = -1;
#line 926 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 966 "gitg-history-refs-list.c"
	}
}


gint gitg_history_ref_row_compare_to (GitgHistoryRefRow* self, GitgHistoryRefRow* other) {
	gint result = 0;
	GitgRef* _tmp0_ = NULL;
	GitgHistoryRefRow* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	gint ct = 0;
	GitgHistoryRefRow* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	gint _tmp5_ = 0;
	gchar* t1 = NULL;
	gchar* _tmp6_ = NULL;
	gchar* t2 = NULL;
	GitgHistoryRefRow* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gint hassep1 = 0;
	const gchar* _tmp9_ = NULL;
	gint _tmp10_ = 0;
	gint hassep2 = 0;
	const gchar* _tmp11_ = NULL;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
	gint _tmp14_ = 0;
	const gchar* _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	gchar* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	gint _tmp23_ = 0;
	gint _tmp24_ = 0;
#line 193 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 193 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 195 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 195 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 197 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = -1;
#line 197 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1013 "gitg-history-refs-list.c"
	}
#line 200 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = other;
#line 200 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_->priv->_reference;
#line 200 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 202 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 1;
#line 202 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1025 "gitg-history-refs-list.c"
	}
#line 205 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = other;
#line 205 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_ref_row_compare_type (self, _tmp3_);
#line 205 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ct = _tmp4_;
#line 207 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = ct;
#line 207 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp5_ != 0) {
#line 209 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = ct;
#line 209 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1041 "gitg-history-refs-list.c"
	}
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_ref_row_label_text (self);
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	t1 = _tmp6_;
#line 213 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = other;
#line 213 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gitg_history_ref_row_label_text (_tmp7_);
#line 213 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	t2 = _tmp8_;
#line 215 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = t1;
#line 215 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = string_index_of_char (_tmp9_, (gunichar) '/', 0);
#line 215 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	hassep1 = _tmp10_;
#line 216 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = t2;
#line 216 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = string_index_of_char (_tmp11_, (gunichar) '/', 0);
#line 216 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	hassep2 = _tmp12_;
#line 218 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = hassep1;
#line 218 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = hassep2;
#line 218 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp13_ >= 0) != (_tmp14_ >= 0)) {
#line 1071 "gitg-history-refs-list.c"
		gint _tmp15_ = 0;
		gint _tmp16_ = 0;
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = hassep1;
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp16_ >= 0) {
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = 1;
#line 1080 "gitg-history-refs-list.c"
		} else {
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = -1;
#line 1084 "gitg-history-refs-list.c"
		}
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp15_;
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (t2);
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (t1);
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1094 "gitg-history-refs-list.c"
	}
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = t1;
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp18_ = g_utf8_casefold (_tmp17_, (gssize) (-1));
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp19_ = _tmp18_;
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp20_ = t2;
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = g_utf8_casefold (_tmp20_, (gssize) (-1));
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = _tmp21_;
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = g_utf8_collate (_tmp19_, _tmp22_);
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = _tmp23_;
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp22_);
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp19_);
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp24_;
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (t2);
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (t1);
#line 223 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1124 "gitg-history-refs-list.c"
}


static gboolean _gitg_history_ref_row_on_editing_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self) {
	gboolean result;
	result = gitg_history_ref_row_on_editing_focus_out ((GitgHistoryRefRow*) self, _sender, event);
#line 248 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1133 "gitg-history-refs-list.c"
}


static gboolean _gitg_history_ref_row_on_editing_key_press_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
	gboolean result;
	result = gitg_history_ref_row_on_editing_key_press ((GitgHistoryRefRow*) self, _sender, event);
#line 249 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1142 "gitg-history-refs-list.c"
}


void gitg_history_ref_row_begin_editing (GitgHistoryRefRow* self, GitgExtRefNameEditingDone done, void* done_target, GDestroyNotify done_target_destroy_notify) {
	GtkEntry* _tmp0_ = NULL;
	GtkEntry* _tmp1_ = NULL;
	GtkEntry* _tmp2_ = NULL;
	GtkEntry* _tmp3_ = NULL;
	GtkStyleContext* _tmp4_ = NULL;
	GtkEntry* _tmp5_ = NULL;
	GtkEntry* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GitgExtRefNameEditingDone _tmp9_ = NULL;
	void* _tmp9__target = NULL;
	GDestroyNotify _tmp9__target_destroy_notify = NULL;
	GtkLabel* _tmp10_ = NULL;
	GtkBox* _tmp11_ = NULL;
	GtkEntry* _tmp12_ = NULL;
	GtkEntry* _tmp13_ = NULL;
	GtkEntry* _tmp14_ = NULL;
	GtkEntry* _tmp15_ = NULL;
	GtkEntry* _tmp16_ = NULL;
#line 226 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 228 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_editing_entry;
#line 228 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != NULL) {
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		done = NULL;
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target = NULL;
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target_destroy_notify = NULL;
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 1182 "gitg-history-refs-list.c"
	}
#line 233 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = (GtkEntry*) gtk_entry_new ();
#line 233 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp1_);
#line 233 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 233 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_editing_entry = _tmp1_;
#line 234 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_editing_entry;
#line 234 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_entry_set_width_chars (_tmp2_, 1);
#line 235 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_editing_entry;
#line 235 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gtk_widget_get_style_context ((GtkWidget*) _tmp3_);
#line 235 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_style_context_add_class (_tmp4_, "ref_editing_entry");
#line 236 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_editing_entry;
#line 236 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp5_);
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_editing_entry;
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_ref_row_label_text (self);
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_entry_set_text (_tmp6_, _tmp8_);
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp8_);
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = done;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9__target = done_target;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9__target_destroy_notify = done_target_destroy_notify;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	(self->priv->d_edit_done_callback_target_destroy_notify == NULL) ? NULL : (self->priv->d_edit_done_callback_target_destroy_notify (self->priv->d_edit_done_callback_target), NULL);
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = _tmp9_;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = _tmp9__target;
#line 240 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = _tmp9__target_destroy_notify;
#line 242 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = self->priv->d_label;
#line 242 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_hide ((GtkWidget*) _tmp10_);
#line 243 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = self->priv->d_box;
#line 243 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = self->priv->d_editing_entry;
#line 243 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_box_pack_start (_tmp11_, (GtkWidget*) _tmp12_, TRUE, TRUE, (guint) 0);
#line 245 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = self->priv->d_editing_entry;
#line 245 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp13_);
#line 246 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = self->priv->d_editing_entry;
#line 246 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_editable_select_region ((GtkEditable*) _tmp14_, 0, -1);
#line 248 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = self->priv->d_editing_entry;
#line 248 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GtkWidget*) _tmp15_, "focus-out-event", (GCallback) _gitg_history_ref_row_on_editing_focus_out_gtk_widget_focus_out_event, self, 0);
#line 249 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = self->priv->d_editing_entry;
#line 249 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GtkWidget*) _tmp16_, "key-press-event", (GCallback) _gitg_history_ref_row_on_editing_key_press_gtk_widget_key_press_event, self, 0);
#line 226 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 226 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 226 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 226 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 1272 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_real_dispose (GObject* base) {
	GitgHistoryRefRow * self;
	guint _tmp0_ = 0U;
#line 252 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 254 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_idle_finish;
#line 254 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 1285 "gitg-history-refs-list.c"
		guint _tmp1_ = 0U;
#line 256 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->d_idle_finish;
#line 256 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_source_remove (_tmp1_);
#line 257 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_idle_finish = (guint) 0;
#line 1293 "gitg-history-refs-list.c"
	}
#line 260 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_ref_row_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_row_get_type (), GtkListBoxRow));
#line 1297 "gitg-history-refs-list.c"
}


static Block41Data* block41_data_ref (Block41Data* _data41_) {
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&_data41_->_ref_count_);
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return _data41_;
#line 1306 "gitg-history-refs-list.c"
}


static void block41_data_unref (void * _userdata_) {
	Block41Data* _data41_;
	_data41_ = (Block41Data*) _userdata_;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_atomic_int_dec_and_test (&_data41_->_ref_count_)) {
#line 1315 "gitg-history-refs-list.c"
		GitgHistoryRefRow* self;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		self = _data41_->self;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self);
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_slice_free (Block41Data, _data41_);
#line 1323 "gitg-history-refs-list.c"
	}
}


static gboolean __lambda83_ (Block41Data* _data41_) {
	GitgHistoryRefRow* self;
	gboolean result = FALSE;
	gchar* new_text = NULL;
	GtkEntry* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GtkEntry* _tmp4_ = NULL;
	GtkLabel* _tmp5_ = NULL;
	GitgExtRefNameEditingDone _tmp6_ = NULL;
	void* _tmp6__target = NULL;
	gboolean _tmp7_ = FALSE;
#line 273 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data41_->self;
#line 274 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_idle_finish = (guint) 0;
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_editing_entry;
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	new_text = _tmp3_;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_editing_entry;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 279 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 279 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_editing_entry = NULL;
#line 281 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_label;
#line 281 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp5_);
#line 283 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_edit_done_callback;
#line 283 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6__target = self->priv->d_edit_done_callback_target;
#line 283 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _data41_->cancelled;
#line 283 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ (new_text, _tmp7_, _tmp6__target);
#line 284 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	(self->priv->d_edit_done_callback_target_destroy_notify == NULL) ? NULL : (self->priv->d_edit_done_callback_target_destroy_notify (self->priv->d_edit_done_callback_target), NULL);
#line 284 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 284 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 284 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 284 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 284 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 284 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 285 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 285 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (new_text);
#line 285 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1395 "gitg-history-refs-list.c"
}


static gboolean ___lambda83__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda83_ (self);
#line 273 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1404 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_finish_editing (GitgHistoryRefRow* self, gboolean cancelled) {
	Block41Data* _data41_;
	gboolean _tmp0_ = FALSE;
	guint _tmp1_ = 0U;
	GtkEntry* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	GtkEntry* _tmp4_ = NULL;
	guint _tmp5_ = 0U;
	guint _tmp6_ = 0U;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data41_ = g_slice_new0 (Block41Data);
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data41_->_ref_count_ = 1;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data41_->self = g_object_ref (self);
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = cancelled;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data41_->cancelled = _tmp0_;
#line 265 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->d_idle_finish;
#line 265 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != ((guint) 0)) {
#line 267 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		block41_data_unref (_data41_);
#line 267 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_data41_ = NULL;
#line 267 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 1439 "gitg-history-refs-list.c"
	}
#line 270 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_editing_entry;
#line 270 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp3_, NULL, FALSE);
#line 270 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_handlers_disconnect_matched ((GtkWidget*) _tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _gitg_history_ref_row_on_editing_focus_out_gtk_widget_focus_out_event, self);
#line 271 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_editing_entry;
#line 271 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp5_, NULL, FALSE);
#line 271 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_handlers_disconnect_matched ((GtkWidget*) _tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _gitg_history_ref_row_on_editing_key_press_gtk_widget_key_press_event, self);
#line 273 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda83__gsource_func, block41_data_ref (_data41_), block41_data_unref);
#line 273 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_idle_finish = _tmp6_;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	block41_data_unref (_data41_);
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data41_ = NULL;
#line 1461 "gitg-history-refs-list.c"
}


static gboolean gitg_history_ref_row_on_editing_focus_out (GitgHistoryRefRow* self, GtkWidget* widget, GdkEventFocus* event) {
	gboolean result = FALSE;
#line 289 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 289 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 289 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 291 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_finish_editing (self, FALSE);
#line 292 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 292 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1479 "gitg-history-refs-list.c"
}


static gboolean gitg_history_ref_row_on_editing_key_press (GitgHistoryRefRow* self, GtkWidget* widget, GdkEventKey* event) {
	gboolean result = FALSE;
	GdkEventKey* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 295 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 295 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 295 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 297 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = event;
#line 297 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _tmp0_->keyval;
#line 297 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ == ((guint) GDK_KEY_Escape)) {
#line 299 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_finish_editing (self, TRUE);
#line 300 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 300 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1505 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp2_ = FALSE;
		GdkEventKey* _tmp3_ = NULL;
		guint _tmp4_ = 0U;
#line 302 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = event;
#line 302 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_->keyval;
#line 302 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp4_ == ((guint) GDK_KEY_KP_Enter)) {
#line 302 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = TRUE;
#line 1518 "gitg-history-refs-list.c"
		} else {
			GdkEventKey* _tmp5_ = NULL;
			guint _tmp6_ = 0U;
#line 303 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = event;
#line 303 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_->keyval;
#line 303 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = _tmp6_ == ((guint) GDK_KEY_Return);
#line 1528 "gitg-history-refs-list.c"
		}
#line 302 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp2_) {
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_row_finish_editing (self, FALSE);
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = TRUE;
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 1538 "gitg-history-refs-list.c"
		}
	}
#line 309 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 309 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1545 "gitg-history-refs-list.c"
}


void gitg_history_ref_row_unreveal (GitgHistoryRefRow* self) {
	GtkRevealer* _tmp0_ = NULL;
	GtkRevealer* _tmp1_ = NULL;
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_revealer_set_transition_type (_tmp0_, GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN);
#line 315 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->d_revealer;
#line 315 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_revealer_set_reveal_child (_tmp1_, FALSE);
#line 1562 "gitg-history-refs-list.c"
}


GitgRef* gitg_history_ref_row_get_reference (GitgHistoryRefRow* self) {
	GitgRef* result;
	GitgRef* _tmp0_ = NULL;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1577 "gitg-history-refs-list.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return self ? g_object_ref (self) : NULL;
#line 1584 "gitg-history-refs-list.c"
}


void gitg_history_ref_row_set_reference (GitgHistoryRefRow* self, GitgRef* value) {
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_reference);
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_reference = _tmp1_;
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "reference");
#line 1603 "gitg-history-refs-list.c"
}


static GitgRefType gitg_history_ref_row_real_get_ref_type (GitgHistoryRefTyped* base) {
	GitgRefType result;
	GitgHistoryRefRow* self;
	GitgRefType _tmp0_ = 0;
	GitgRef* _tmp1_ = NULL;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->_reference;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != NULL) {
#line 1618 "gitg-history-refs-list.c"
		GitgRef* _tmp2_ = NULL;
		GitgParsedRefName* _tmp3_ = NULL;
		GitgParsedRefName* _tmp4_ = NULL;
		GitgParsedRefName* _tmp5_ = NULL;
		GitgRefType _tmp6_ = 0;
		GitgRefType _tmp7_ = 0;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = self->priv->_reference;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp4_;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = gitg_parsed_ref_name_get_rtype (_tmp5_);
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _tmp6_;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = _tmp7_;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp5_);
#line 1641 "gitg-history-refs-list.c"
	} else {
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = GITG_REF_TYPE_NONE;
#line 1645 "gitg-history-refs-list.c"
	}
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 77 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1651 "gitg-history-refs-list.c"
}


gboolean gitg_history_ref_row_get_is_head (GitgHistoryRefRow* self) {
	gboolean result;
	GitgRef* _tmp0_ = NULL;
	GgitBranch* branch = NULL;
	GitgRef* _tmp1_ = NULL;
	GgitBranch* _tmp2_ = NULL;
	GgitBranch* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 151 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 153 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 153 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 155 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1673 "gitg-history-refs-list.c"
	}
#line 158 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->_reference;
#line 158 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, ggit_branch_get_type ()) ? ((GgitBranch*) _tmp1_) : NULL);
#line 158 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	branch = _tmp2_;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = branch;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_ != NULL) {
#line 1685 "gitg-history-refs-list.c"
		{
			gboolean _tmp4_ = FALSE;
			GgitBranch* _tmp5_ = NULL;
			gboolean _tmp6_ = FALSE;
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = branch;
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = ggit_branch_is_head (_tmp5_, &_inner_error_);
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = _tmp6_;
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1698 "gitg-history-refs-list.c"
				goto __catch74_g_error;
			}
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp4_;
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 1707 "gitg-history-refs-list.c"
		}
		goto __finally74;
		__catch74_g_error:
		{
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 165 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = FALSE;
#line 165 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 165 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 1722 "gitg-history-refs-list.c"
		}
		__finally74:
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (branch);
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.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 162 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return FALSE;
#line 1733 "gitg-history-refs-list.c"
	}
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (branch);
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1741 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_class_init (GitgHistoryRefRowClass * klass) {
	gint GitgHistoryRefRow_private_offset;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_parent_class = g_type_class_peek_parent (klass);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefRowPrivate));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkWidgetClass *) klass)->map = gitg_history_ref_row_real_map;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	((GObjectClass *) klass)->dispose = gitg_history_ref_row_real_dispose;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_ref_row_get_property;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_ref_row_set_property;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_ref_row_finalize;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_ROW_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));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_ROW_REF_TYPE, g_param_spec_enum ("ref-type", "ref-type", "ref-type", GITG_TYPE_REF_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_ROW_IS_HEAD, g_param_spec_boolean ("is-head", "is-head", "is-head", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	GitgHistoryRefRow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-history-ref-row.ui");
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_icon", FALSE, GitgHistoryRefRow_private_offset + G_STRUCT_OFFSET (GitgHistoryRefRowPrivate, d_icon));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_label", FALSE, GitgHistoryRefRow_private_offset + G_STRUCT_OFFSET (GitgHistoryRefRowPrivate, d_label));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_box", FALSE, GitgHistoryRefRow_private_offset + G_STRUCT_OFFSET (GitgHistoryRefRowPrivate, d_box));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_revealer", FALSE, GitgHistoryRefRow_private_offset + G_STRUCT_OFFSET (GitgHistoryRefRowPrivate, d_revealer));
#line 1779 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_gitg_history_ref_typed_interface_init (GitgHistoryRefTypedIface * iface) {
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_gitg_history_ref_typed_parent_iface = g_type_interface_peek_parent (iface);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	iface->get_ref_type = gitg_history_ref_row_real_get_ref_type;
#line 1788 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_instance_init (GitgHistoryRefRow * self) {
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv = GITG_HISTORY_REF_ROW_GET_PRIVATE (self);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 1797 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_finalize (GObject* obj) {
	GitgHistoryRefRow * self;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRow);
#line 57 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_icon);
#line 60 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_label);
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_box);
#line 66 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_revealer);
#line 68 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_reference);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 73 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	(self->priv->d_edit_done_callback_target_destroy_notify == NULL) ? NULL : (self->priv->d_edit_done_callback_target_destroy_notify (self->priv->d_edit_done_callback_target), NULL);
#line 73 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 73 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 73 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_ref_row_parent_class)->finalize (obj);
#line 1827 "gitg-history-refs-list.c"
}


GType gitg_history_ref_row_get_type (void) {
	static volatile gsize gitg_history_ref_row_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_ref_row_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryRefRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_history_ref_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgHistoryRefRow), 0, (GInstanceInitFunc) gitg_history_ref_row_instance_init, NULL };
		static const GInterfaceInfo gitg_history_ref_typed_info = { (GInterfaceInitFunc) gitg_history_ref_row_gitg_history_ref_typed_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_history_ref_row_type_id;
		gitg_history_ref_row_type_id = g_type_register_static (gtk_list_box_row_get_type (), "GitgHistoryRefRow", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_history_ref_row_type_id, GITG_HISTORY_TYPE_REF_TYPED, &gitg_history_ref_typed_info);
		g_once_init_leave (&gitg_history_ref_row_type_id__volatile, gitg_history_ref_row_type_id);
	}
	return gitg_history_ref_row_type_id__volatile;
}


static void _vala_gitg_history_ref_row_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgHistoryRefRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRow);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_REFERENCE:
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_ref_row_get_reference (self));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_REF_TYPE:
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_enum (value, gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) self));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_IS_HEAD:
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_ref_row_get_is_head (self));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 1868 "gitg-history-refs-list.c"
		default:
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 1874 "gitg-history-refs-list.c"
	}
}


static void _vala_gitg_history_ref_row_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgHistoryRefRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRow);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_REFERENCE:
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_set_reference (self, g_value_get_object (value));
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 1890 "gitg-history-refs-list.c"
		default:
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 1896 "gitg-history-refs-list.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 1909 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_construct (GType object_type, GitgRefType rtype, const gchar* name) {
	GitgHistoryRefHeader * self = NULL;
	gchar* escaped = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GtkLabel* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	GitgRefType _tmp8_ = 0;
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) g_object_new (object_type, NULL);
#line 371 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = name;
#line 371 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) (-1));
#line 371 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	escaped = _tmp1_;
#line 373 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_label;
#line 373 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = string_to_string (escaped);
#line 373 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = g_strconcat ("<b>", _tmp3_, "</b>", NULL);
#line 373 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 373 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_label_set_markup (_tmp2_, _tmp5_);
#line 373 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp5_);
#line 375 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = name;
#line 375 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = g_strdup (_tmp6_);
#line 375 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (self->priv->d_name);
#line 375 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_name = _tmp7_;
#line 376 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = rtype;
#line 376 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_rtype = _tmp8_;
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (escaped);
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 1963 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_new (GitgRefType rtype, const gchar* name) {
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_header_construct (GITG_HISTORY_TYPE_REF_HEADER, rtype, name);
#line 1970 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_construct_remote (GType object_type, const gchar* name, GitgRemote* remote) {
	GitgHistoryRefHeader * self = NULL;
	const gchar* _tmp0_ = NULL;
	GitgRemote* _tmp1_ = NULL;
	GitgRemote* _tmp2_ = NULL;
	GtkLabel* _tmp3_ = NULL;
	GtkLabel* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
	GitgRemote* _tmp7_ = NULL;
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 381 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = name;
#line 381 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) gitg_history_ref_header_construct (object_type, GITG_REF_TYPE_REMOTE, _tmp0_);
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = remote;
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_remote);
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remote = _tmp2_;
#line 384 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_is_sub_header_remote = TRUE;
#line 385 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_label;
#line 385 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_label;
#line 385 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gtk_widget_get_margin_start ((GtkWidget*) _tmp4_);
#line 385 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 385 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_set_margin_start ((GtkWidget*) _tmp4_, _tmp6_ + 12);
#line 387 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = self->priv->d_remote;
#line 387 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_ != NULL) {
#line 2014 "gitg-history-refs-list.c"
		GitgRemote* _tmp8_ = NULL;
		GitgRemote* _tmp9_ = NULL;
		GitgProgressBin* _tmp10_ = NULL;
#line 389 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = self->priv->d_remote;
#line 389 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_bind_property_with_closures ((GObject*) _tmp8_, "state", (GObject*) self, "remote_state", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = self->priv->d_remote;
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = self->priv->d_progress_bin;
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_bind_property_with_closures ((GObject*) _tmp9_, "transfer-progress", (GObject*) _tmp10_, "fraction", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 2028 "gitg-history-refs-list.c"
	}
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 2032 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_new_remote (const gchar* name, GitgRemote* remote) {
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_header_construct_remote (GITG_HISTORY_TYPE_REF_HEADER, name, remote);
#line 2039 "gitg-history-refs-list.c"
}


gint gitg_history_ref_header_compare_to (GitgHistoryRefHeader* self, GitgHistoryRefHeader* other) {
	gint result = 0;
	gboolean _tmp0_ = FALSE;
	GitgHistoryRefHeader* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	GitgHistoryRefHeader* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
#line 399 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 399 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 402 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_is_sub_header_remote;
#line 402 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = other;
#line 402 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_->priv->d_is_sub_header_remote;
#line 402 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != _tmp2_) {
#line 2069 "gitg-history-refs-list.c"
		gint _tmp3_ = 0;
		gboolean _tmp4_ = FALSE;
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = self->priv->d_is_sub_header_remote;
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp4_) {
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = 1;
#line 2078 "gitg-history-refs-list.c"
		} else {
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = -1;
#line 2082 "gitg-history-refs-list.c"
		}
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp3_;
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2088 "gitg-history-refs-list.c"
	}
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_name;
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = g_utf8_casefold (_tmp5_, (gssize) (-1));
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _tmp6_;
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = other;
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_->priv->d_name;
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = g_utf8_casefold (_tmp9_, (gssize) (-1));
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = _tmp10_;
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = g_utf8_collate (_tmp7_, _tmp11_);
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = _tmp12_;
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp11_);
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp7_);
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp13_;
#line 407 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2116 "gitg-history-refs-list.c"
}


void gitg_history_ref_header_set_remote_state (GitgHistoryRefHeader* self, GitgRemoteState value) {
	GitgRemoteState _tmp0_ = 0;
#line 328 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 330 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 330 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (_tmp0_) {
#line 330 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_DISCONNECTED:
#line 2130 "gitg-history-refs-list.c"
		{
#line 333 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, NULL);
#line 334 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2136 "gitg-history-refs-list.c"
		}
#line 330 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_CONNECTING:
#line 2140 "gitg-history-refs-list.c"
		{
#line 336 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-wireless-acquiring-symbolic");
#line 337 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2146 "gitg-history-refs-list.c"
		}
#line 330 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_CONNECTED:
#line 2150 "gitg-history-refs-list.c"
		{
#line 339 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-idle-symbolic");
#line 340 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2156 "gitg-history-refs-list.c"
		}
#line 330 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_TRANSFERRING:
#line 2160 "gitg-history-refs-list.c"
		{
#line 342 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-transmit-receive-symbolic");
#line 343 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2166 "gitg-history-refs-list.c"
		}
		default:
#line 330 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2171 "gitg-history-refs-list.c"
	}
#line 328 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "remote-state");
#line 2175 "gitg-history-refs-list.c"
}


static GitgRefType gitg_history_ref_header_real_get_ref_type (GitgHistoryRefTyped* base) {
	GitgRefType result;
	GitgHistoryRefHeader* self;
	GitgRefType _tmp0_ = 0;
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) base;
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_rtype;
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2191 "gitg-history-refs-list.c"
}


const gchar* gitg_history_ref_header_get_ref_name (GitgHistoryRefHeader* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 366 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 366 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_name;
#line 366 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 366 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2206 "gitg-history-refs-list.c"
}


gboolean gitg_history_ref_header_get_is_sub_header_remote (GitgHistoryRefHeader* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 396 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 396 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_is_sub_header_remote;
#line 396 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 396 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2221 "gitg-history-refs-list.c"
}


gchar* gitg_history_ref_header_get_icon_name (GitgHistoryRefHeader* self) {
	gchar* result;
	GtkImage* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 412 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 412 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_icon;
#line 412 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_get (_tmp0_, "icon-name", &_tmp1_, NULL);
#line 412 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 412 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp2_;
#line 412 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2242 "gitg-history-refs-list.c"
}


void gitg_history_ref_header_set_icon_name (GitgHistoryRefHeader* self, const gchar* value) {
	GtkImage* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GtkImage* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 413 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 415 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_icon;
#line 415 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = value;
#line 415 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_set (_tmp0_, "icon-name", _tmp1_, NULL);
#line 416 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_icon;
#line 416 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = value;
#line 416 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp2_, _tmp3_ != NULL);
#line 413 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "icon-name");
#line 2267 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_class_init (GitgHistoryRefHeaderClass * klass) {
	gint GitgHistoryRefHeader_private_offset;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_header_parent_class = g_type_class_peek_parent (klass);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefHeaderPrivate));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_ref_header_get_property;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_ref_header_set_property;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_ref_header_finalize;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_REMOTE_STATE, g_param_spec_enum ("remote-state", "remote-state", "remote-state", GITG_TYPE_REMOTE_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_REF_TYPE, g_param_spec_enum ("ref-type", "ref-type", "ref-type", GITG_TYPE_REF_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_REF_NAME, g_param_spec_string ("ref-name", "ref-name", "ref-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_IS_SUB_HEADER_REMOTE, g_param_spec_boolean ("is-sub-header-remote", "is-sub-header-remote", "is-sub-header-remote", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_ICON_NAME, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	GitgHistoryRefHeader_private_offset = g_type_class_get_instance_private_offset (klass);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-history-ref-header.ui");
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_progress_bin", FALSE, GitgHistoryRefHeader_private_offset + G_STRUCT_OFFSET (GitgHistoryRefHeaderPrivate, d_progress_bin));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_label", FALSE, GitgHistoryRefHeader_private_offset + G_STRUCT_OFFSET (GitgHistoryRefHeaderPrivate, d_label));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_icon", FALSE, GitgHistoryRefHeader_private_offset + G_STRUCT_OFFSET (GitgHistoryRefHeaderPrivate, d_icon));
#line 2303 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_gitg_history_ref_typed_interface_init (GitgHistoryRefTypedIface * iface) {
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_header_gitg_history_ref_typed_parent_iface = g_type_interface_peek_parent (iface);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	iface->get_ref_type = gitg_history_ref_header_real_get_ref_type;
#line 2312 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_instance_init (GitgHistoryRefHeader * self) {
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv = GITG_HISTORY_REF_HEADER_GET_PRIVATE (self);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 2321 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_finalize (GObject* obj) {
	GitgHistoryRefHeader * self;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeader);
#line 324 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (self->priv->d_name);
#line 348 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_remote);
#line 351 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_progress_bin);
#line 354 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_label);
#line 357 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_icon);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_ref_header_parent_class)->finalize (obj);
#line 2341 "gitg-history-refs-list.c"
}


GType gitg_history_ref_header_get_type (void) {
	static volatile gsize gitg_history_ref_header_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_ref_header_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryRefHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_history_ref_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgHistoryRefHeader), 0, (GInstanceInitFunc) gitg_history_ref_header_instance_init, NULL };
		static const GInterfaceInfo gitg_history_ref_typed_info = { (GInterfaceInitFunc) gitg_history_ref_header_gitg_history_ref_typed_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_history_ref_header_type_id;
		gitg_history_ref_header_type_id = g_type_register_static (gtk_list_box_row_get_type (), "GitgHistoryRefHeader", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_history_ref_header_type_id, GITG_HISTORY_TYPE_REF_TYPED, &gitg_history_ref_typed_info);
		g_once_init_leave (&gitg_history_ref_header_type_id__volatile, gitg_history_ref_header_type_id);
	}
	return gitg_history_ref_header_type_id__volatile;
}


static void _vala_gitg_history_ref_header_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgHistoryRefHeader * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeader);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_REF_TYPE:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_enum (value, gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) self));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_REF_NAME:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_string (value, gitg_history_ref_header_get_ref_name (self));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_IS_SUB_HEADER_REMOTE:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_ref_header_get_is_sub_header_remote (self));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_ICON_NAME:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_string (value, gitg_history_ref_header_get_icon_name (self));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2388 "gitg-history-refs-list.c"
		default:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2394 "gitg-history-refs-list.c"
	}
}


static void _vala_gitg_history_ref_header_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgHistoryRefHeader * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeader);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_REMOTE_STATE:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_remote_state (self, g_value_get_enum (value));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_ICON_NAME:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_icon_name (self, g_value_get_string (value));
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2416 "gitg-history-refs-list.c"
		default:
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 320 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2422 "gitg-history-refs-list.c"
	}
}


static void _gitg_history_refs_list_on_tip_updated_ggit_remote_tip_updated (GgitRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self) {
#line 463 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_on_tip_updated ((GitgHistoryRefsList*) self, _sender, refname, a, b);
#line 2430 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_real_dispose (GObject* base) {
	GitgHistoryRefsList * self;
	GitgRemote** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GitgRemote** _tmp4_ = NULL;
#line 459 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_remotes;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0__length1 = self->priv->d_remotes_length1;
#line 2445 "gitg-history-refs-list.c"
	{
		GitgRemote** remote_collection = NULL;
		gint remote_collection_length1 = 0;
		gint _remote_collection_size_ = 0;
		gint remote_it = 0;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection = _tmp0_;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection_length1 = _tmp0__length1;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		for (remote_it = 0; remote_it < _tmp0__length1; remote_it = remote_it + 1) {
#line 2457 "gitg-history-refs-list.c"
			GitgRemote* _tmp1_ = NULL;
			GitgRemote* remote = NULL;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp1_ = _g_object_ref0 (remote_collection[remote_it]);
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			remote = _tmp1_;
#line 2464 "gitg-history-refs-list.c"
			{
				GitgRemote* _tmp2_ = NULL;
				guint _tmp3_ = 0U;
#line 463 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp2_ = remote;
#line 463 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_parse_name ("tip-updated", ggit_remote_get_type (), &_tmp3_, NULL, FALSE);
#line 463 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_handlers_disconnect_matched ((GgitRemote*) _tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _gitg_history_refs_list_on_tip_updated_ggit_remote_tip_updated, self);
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (remote);
#line 2476 "gitg-history-refs-list.c"
			}
		}
	}
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = g_new0 (GitgRemote*, 0 + 1);
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp4_;
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 468 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_refs_list_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox));
#line 2492 "gitg-history-refs-list.c"
}


static gint gitg_history_refs_list_sort_rows (GitgHistoryRefsList* self, GtkListBoxRow* row1, GtkListBoxRow* row2) {
	gint result = 0;
	GitgRefType r1 = 0;
	GtkListBoxRow* _tmp0_ = NULL;
	GitgRefType _tmp1_ = 0;
	GitgRefType _tmp2_ = 0;
	GitgRefType r2 = 0;
	GtkListBoxRow* _tmp3_ = NULL;
	GitgRefType _tmp4_ = 0;
	GitgRefType _tmp5_ = 0;
	gint rs1 = 0;
	GitgRefType _tmp6_ = 0;
	gint _tmp7_ = 0;
	gint rs2 = 0;
	GitgRefType _tmp8_ = 0;
	gint _tmp9_ = 0;
	gint _tmp10_ = 0;
	gint _tmp11_ = 0;
	GitgHistoryRefHeader* head1 = NULL;
	GtkListBoxRow* _tmp15_ = NULL;
	GitgHistoryRefHeader* _tmp16_ = NULL;
	GitgHistoryRefRow* ref1 = NULL;
	GtkListBoxRow* _tmp17_ = NULL;
	GitgHistoryRefRow* _tmp18_ = NULL;
	GitgHistoryRefHeader* head2 = NULL;
	GtkListBoxRow* _tmp19_ = NULL;
	GitgHistoryRefHeader* _tmp20_ = NULL;
	GitgHistoryRefRow* ref2 = NULL;
	GtkListBoxRow* _tmp21_ = NULL;
	GitgHistoryRefRow* _tmp22_ = NULL;
	GitgHistoryRefHeader* _tmp23_ = NULL;
	GitgHistoryRefHeader* _tmp24_ = NULL;
#line 481 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 481 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row1 != NULL, 0);
#line 481 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row2 != NULL, 0);
#line 483 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row1;
#line 483 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_ref_typed_get_ref_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_HISTORY_TYPE_REF_TYPED, GitgHistoryRefTyped));
#line 483 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 483 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	r1 = _tmp2_;
#line 484 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row2;
#line 484 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_ref_typed_get_ref_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GITG_HISTORY_TYPE_REF_TYPED, GitgHistoryRefTyped));
#line 484 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 484 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	r2 = _tmp5_;
#line 487 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = r1;
#line 487 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_ref_type_sort_order (_tmp6_);
#line 487 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	rs1 = _tmp7_;
#line 488 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = r2;
#line 488 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_ref_type_sort_order (_tmp8_);
#line 488 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	rs2 = _tmp9_;
#line 490 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = rs1;
#line 490 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = rs2;
#line 490 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_ != _tmp11_) {
#line 2568 "gitg-history-refs-list.c"
		gint _tmp12_ = 0;
		gint _tmp13_ = 0;
		gint _tmp14_ = 0;
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = rs1;
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = rs2;
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_ < _tmp14_) {
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = -1;
#line 2580 "gitg-history-refs-list.c"
		} else {
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = 1;
#line 2584 "gitg-history-refs-list.c"
		}
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp12_;
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2590 "gitg-history-refs-list.c"
	}
#line 495 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = row1;
#line 495 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp15_) : NULL);
#line 495 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	head1 = _tmp16_;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = row1;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp17_) : NULL);
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ref1 = _tmp18_;
#line 498 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp19_ = row2;
#line 498 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp19_) : NULL);
#line 498 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	head2 = _tmp20_;
#line 499 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = row2;
#line 499 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp21_) : NULL);
#line 499 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ref2 = _tmp22_;
#line 501 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = head1;
#line 501 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = head2;
#line 501 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp23_ == NULL) != (_tmp24_ == NULL)) {
#line 2622 "gitg-history-refs-list.c"
		GitgHistoryRefHeader* _tmp25_ = NULL;
		GitgHistoryRefHeader* _tmp26_ = NULL;
		GitgHistoryRefHeader* head = NULL;
		GitgHistoryRefHeader* _tmp29_ = NULL;
		GitgHistoryRefHeader* _tmp30_ = NULL;
		gboolean _tmp31_ = FALSE;
		gboolean _tmp32_ = FALSE;
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = head1;
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp26_ != NULL) {
#line 2634 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp27_ = NULL;
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp27_ = head1;
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp27_;
#line 2640 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefHeader* _tmp28_ = NULL;
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp28_ = head2;
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp28_;
#line 2647 "gitg-history-refs-list.c"
		}
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = _g_object_ref0 (_tmp25_);
#line 503 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		head = _tmp29_;
#line 506 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = head;
#line 506 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp30_);
#line 506 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 506 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp32_) {
#line 2661 "gitg-history-refs-list.c"
			GitgHistoryRefRow* _tmp33_ = NULL;
			GitgHistoryRefHeader* _tmp34_ = NULL;
			GitgHistoryRefRow* rref = NULL;
			GitgHistoryRefRow* _tmp37_ = NULL;
			gint cmp = 0;
			GitgHistoryRefHeader* _tmp38_ = NULL;
			const gchar* _tmp39_ = NULL;
			const gchar* _tmp40_ = NULL;
			gchar* _tmp41_ = NULL;
			gchar* _tmp42_ = NULL;
			GitgHistoryRefRow* _tmp43_ = NULL;
			GitgRef* _tmp44_ = NULL;
			GitgRef* _tmp45_ = NULL;
			GitgParsedRefName* _tmp46_ = NULL;
			GitgParsedRefName* _tmp47_ = NULL;
			GitgParsedRefName* _tmp48_ = NULL;
			gchar* _tmp49_ = NULL;
			gchar* _tmp50_ = NULL;
			gchar* _tmp51_ = NULL;
			gchar* _tmp52_ = NULL;
			gchar* _tmp53_ = NULL;
			gint _tmp54_ = 0;
			gint _tmp55_ = 0;
			gint _tmp56_ = 0;
			GitgHistoryRefHeader* _tmp57_ = NULL;
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp34_ = head1;
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp34_ != NULL) {
#line 2691 "gitg-history-refs-list.c"
				GitgHistoryRefRow* _tmp35_ = NULL;
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp35_ = ref2;
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = _tmp35_;
#line 2697 "gitg-history-refs-list.c"
			} else {
				GitgHistoryRefRow* _tmp36_ = NULL;
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp36_ = ref1;
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = _tmp36_;
#line 2704 "gitg-history-refs-list.c"
			}
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp37_ = _g_object_ref0 (_tmp33_);
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			rref = _tmp37_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp38_ = head;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp39_ = gitg_history_ref_header_get_ref_name (_tmp38_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp40_ = _tmp39_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp41_ = g_utf8_casefold (_tmp40_, (gssize) (-1));
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp42_ = _tmp41_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp43_ = rref;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp44_ = gitg_history_ref_row_get_reference (_tmp43_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp45_ = _tmp44_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp46_ = gitg_ref_get_parsed_name (_tmp45_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp47_ = _tmp46_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp48_ = _tmp47_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp49_ = gitg_parsed_ref_name_get_remote_name (_tmp48_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp50_ = _tmp49_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp51_ = _tmp50_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp52_ = g_utf8_casefold (_tmp51_, (gssize) (-1));
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp53_ = _tmp52_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp54_ = g_utf8_collate (_tmp42_, _tmp53_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp55_ = _tmp54_;
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp53_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp51_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp48_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp42_);
#line 510 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			cmp = _tmp55_;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp57_ = head1;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp57_ != NULL) {
#line 2760 "gitg-history-refs-list.c"
				gint _tmp58_ = 0;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp58_ = cmp;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp56_ = _tmp58_;
#line 2766 "gitg-history-refs-list.c"
			} else {
				gint _tmp59_ = 0;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp59_ = cmp;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp56_ = -_tmp59_;
#line 2773 "gitg-history-refs-list.c"
			}
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp56_;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (rref);
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head);
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2791 "gitg-history-refs-list.c"
		} else {
			gint _tmp60_ = 0;
			GitgHistoryRefHeader* _tmp61_ = NULL;
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp61_ = head1;
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp61_ != NULL) {
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp60_ = -1;
#line 2801 "gitg-history-refs-list.c"
			} else {
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp60_ = 1;
#line 2805 "gitg-history-refs-list.c"
			}
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp60_;
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head);
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 516 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2821 "gitg-history-refs-list.c"
		}
#line 501 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (head);
#line 2825 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp62_ = FALSE;
		GitgHistoryRefHeader* _tmp63_ = NULL;
#line 519 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp63_ = head1;
#line 519 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp63_ != NULL) {
#line 2833 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp64_ = NULL;
#line 519 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp64_ = head2;
#line 519 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = _tmp64_ != NULL;
#line 2839 "gitg-history-refs-list.c"
		} else {
#line 519 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = FALSE;
#line 2843 "gitg-history-refs-list.c"
		}
#line 519 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp62_) {
#line 2847 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp65_ = NULL;
			GitgHistoryRefHeader* _tmp66_ = NULL;
			gint _tmp67_ = 0;
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp65_ = head1;
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp66_ = head2;
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp67_ = gitg_history_ref_header_compare_to (_tmp65_, _tmp66_);
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp67_;
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 521 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2869 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefRow* _tmp68_ = NULL;
			GitgHistoryRefRow* _tmp69_ = NULL;
			gint _tmp70_ = 0;
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp68_ = ref1;
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp69_ = ref2;
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp70_ = gitg_history_ref_row_compare_to (_tmp68_, _tmp69_);
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp70_;
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2892 "gitg-history-refs-list.c"
		}
	}
#line 481 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref2);
#line 481 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (head2);
#line 481 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref1);
#line 481 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (head1);
#line 2903 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_clear (GitgHistoryRefsList* self) {
	GeeHashMap* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GitgRemote** _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	GitgRemote** _tmp8_ = NULL;
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 531 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, (GBoxedCopyFunc) gitg_history_refs_list_remote_header_ref, gitg_history_refs_list_remote_header_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 531 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 531 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_header_map = _tmp0_;
#line 532 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gee_hash_map_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, GITG_HISTORY_TYPE_REF_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 532 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 532 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_ref_map = _tmp1_;
#line 534 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gtk_container_get_children ((GtkContainer*) self);
#line 2930 "gitg-history-refs-list.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 534 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		child_collection = _tmp2_;
#line 534 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 2938 "gitg-history-refs-list.c"
			GtkWidget* child = NULL;
#line 534 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			child = (GtkWidget*) child_it->data;
#line 2942 "gitg-history-refs-list.c"
			{
				GtkWidget* _tmp3_ = NULL;
#line 536 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp3_ = child;
#line 536 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				gtk_widget_destroy (_tmp3_);
#line 2949 "gitg-history-refs-list.c"
			}
		}
#line 534 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_list_free0 (child_collection);
#line 2954 "gitg-history-refs-list.c"
	}
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_remotes;
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4__length1 = self->priv->d_remotes_length1;
#line 2960 "gitg-history-refs-list.c"
	{
		GitgRemote** remote_collection = NULL;
		gint remote_collection_length1 = 0;
		gint _remote_collection_size_ = 0;
		gint remote_it = 0;
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection = _tmp4_;
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection_length1 = _tmp4__length1;
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		for (remote_it = 0; remote_it < _tmp4__length1; remote_it = remote_it + 1) {
#line 2972 "gitg-history-refs-list.c"
			GitgRemote* _tmp5_ = NULL;
			GitgRemote* remote = NULL;
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = _g_object_ref0 (remote_collection[remote_it]);
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			remote = _tmp5_;
#line 2979 "gitg-history-refs-list.c"
			{
				GitgRemote* _tmp6_ = NULL;
				guint _tmp7_ = 0U;
#line 541 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp6_ = remote;
#line 541 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_parse_name ("tip-updated", ggit_remote_get_type (), &_tmp7_, NULL, FALSE);
#line 541 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_handlers_disconnect_matched ((GgitRemote*) _tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _gitg_history_refs_list_on_tip_updated_ggit_remote_tip_updated, self);
#line 539 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (remote);
#line 2991 "gitg-history-refs-list.c"
			}
		}
	}
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = g_new0 (GitgRemote*, 0 + 1);
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp8_;
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 3005 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_reselect_row (GitgHistoryRefsList* self, GtkListBoxRow* a) {
	GtkListBoxRow* _tmp0_ = NULL;
	GitgHistoryRefHeader* ah = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GitgHistoryRefHeader* _tmp2_ = NULL;
	GitgHistoryRefHeader* bh = NULL;
	GtkListBoxRow* _tmp3_ = NULL;
	GitgHistoryRefHeader* _tmp4_ = NULL;
	GitgHistoryRefHeader* _tmp5_ = NULL;
	GitgHistoryRefHeader* _tmp6_ = NULL;
	GitgHistoryRefHeader* _tmp7_ = NULL;
	GitgHistoryRefRow* ar = NULL;
	GtkListBoxRow* _tmp22_ = NULL;
	GitgHistoryRefRow* _tmp23_ = NULL;
	GitgHistoryRefRow* br = NULL;
	GtkListBoxRow* _tmp24_ = NULL;
	GitgHistoryRefRow* _tmp25_ = NULL;
	gboolean _tmp26_ = FALSE;
	GitgHistoryRefRow* _tmp27_ = NULL;
	GitgRef* _tmp28_ = NULL;
	GitgRef* _tmp29_ = NULL;
	gboolean _tmp34_ = FALSE;
	GitgHistoryRefRow* _tmp35_ = NULL;
	GitgRef* _tmp36_ = NULL;
	GitgRef* _tmp37_ = NULL;
	GitgHistoryRefRow* _tmp41_ = NULL;
	GitgRef* _tmp42_ = NULL;
	GitgRef* _tmp43_ = NULL;
	const gchar* _tmp44_ = NULL;
	GitgHistoryRefRow* _tmp45_ = NULL;
	GitgRef* _tmp46_ = NULL;
	GitgRef* _tmp47_ = NULL;
	const gchar* _tmp48_ = NULL;
#line 547 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 547 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (a != NULL);
#line 549 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_selected_row;
#line 549 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 551 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 3052 "gitg-history-refs-list.c"
	}
#line 554 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = a;
#line 554 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp1_) : NULL);
#line 554 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ah = _tmp2_;
#line 555 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_selected_row;
#line 555 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp3_) : NULL);
#line 555 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	bh = _tmp4_;
#line 557 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = ah;
#line 557 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = bh;
#line 557 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp5_ != NULL) != (_tmp6_ != NULL)) {
#line 559 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 559 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 559 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 3078 "gitg-history-refs-list.c"
	}
#line 562 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = ah;
#line 562 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_ != NULL) {
#line 3084 "gitg-history-refs-list.c"
		gboolean _tmp8_ = FALSE;
		GitgHistoryRefHeader* _tmp9_ = NULL;
		GitgRefType _tmp10_ = 0;
		GitgRefType _tmp11_ = 0;
		GitgHistoryRefHeader* _tmp12_ = NULL;
		GitgRefType _tmp13_ = 0;
		GitgRefType _tmp14_ = 0;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ah;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp9_);
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = bh;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp12_);
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp11_ == _tmp14_) {
#line 3106 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp15_ = NULL;
			const gchar* _tmp16_ = NULL;
			const gchar* _tmp17_ = NULL;
			GitgHistoryRefHeader* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
			const gchar* _tmp20_ = NULL;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = ah;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = gitg_history_ref_header_get_ref_name (_tmp15_);
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = bh;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = gitg_history_ref_header_get_ref_name (_tmp18_);
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = _tmp19_;
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = g_strcmp0 (_tmp17_, _tmp20_) == 0;
#line 3127 "gitg-history-refs-list.c"
		} else {
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = FALSE;
#line 3131 "gitg-history-refs-list.c"
		}
#line 564 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp8_) {
#line 3135 "gitg-history-refs-list.c"
			GtkListBoxRow* _tmp21_ = NULL;
#line 566 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = a;
#line 566 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, _tmp21_);
#line 567 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (self->priv->d_selected_row);
#line 567 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			self->priv->d_selected_row = NULL;
#line 3145 "gitg-history-refs-list.c"
		}
#line 570 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 570 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 570 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 3153 "gitg-history-refs-list.c"
	}
#line 573 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = a;
#line 573 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp22_) : NULL);
#line 573 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ar = _tmp23_;
#line 574 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = self->priv->d_selected_row;
#line 574 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp24_) : NULL);
#line 574 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	br = _tmp25_;
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = ar;
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_history_ref_row_get_reference (_tmp27_);
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = _tmp28_;
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp29_ == NULL) {
#line 3175 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp30_ = NULL;
		GitgRef* _tmp31_ = NULL;
		GitgRef* _tmp32_ = NULL;
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = br;
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_history_ref_row_get_reference (_tmp30_);
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = _tmp32_ == NULL;
#line 3187 "gitg-history-refs-list.c"
	} else {
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = FALSE;
#line 3191 "gitg-history-refs-list.c"
	}
#line 576 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp26_) {
#line 3195 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp33_ = NULL;
#line 578 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = a;
#line 578 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp33_);
#line 579 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 579 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 580 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (br);
#line 580 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ar);
#line 580 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 580 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 580 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 3215 "gitg-history-refs-list.c"
	}
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp35_ = ar;
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp36_ = gitg_history_ref_row_get_reference (_tmp35_);
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp37_ = _tmp36_;
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp37_ == NULL) {
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = TRUE;
#line 3227 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp38_ = NULL;
		GitgRef* _tmp39_ = NULL;
		GitgRef* _tmp40_ = NULL;
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = br;
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp39_ = gitg_history_ref_row_get_reference (_tmp38_);
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = _tmp39_;
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = _tmp40_ == NULL;
#line 3240 "gitg-history-refs-list.c"
	}
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp34_) {
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (br);
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ar);
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 3254 "gitg-history-refs-list.c"
	}
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp41_ = ar;
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp42_ = gitg_history_ref_row_get_reference (_tmp41_);
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp43_ = _tmp42_;
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp44_ = ggit_ref_get_name ((GgitRef*) _tmp43_);
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp45_ = br;
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp46_ = gitg_history_ref_row_get_reference (_tmp45_);
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp47_ = _tmp46_;
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp48_ = ggit_ref_get_name ((GgitRef*) _tmp47_);
#line 588 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_strcmp0 (_tmp44_, _tmp48_) == 0) {
#line 3274 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp49_ = NULL;
#line 590 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp49_ = a;
#line 590 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp49_);
#line 591 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 591 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 3284 "gitg-history-refs-list.c"
	}
#line 547 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (br);
#line 547 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ar);
#line 547 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (bh);
#line 547 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ah);
#line 3294 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_add (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
#line 595 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 595 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (row != NULL);
#line 597 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 597 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	GTK_CONTAINER_CLASS (gitg_history_refs_list_parent_class)->add ((GtkContainer*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox), (GtkWidget*) _tmp0_);
#line 598 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = row;
#line 598 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_reselect_row (self, _tmp1_);
#line 3313 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_add_header (GitgHistoryRefsList* self, GitgRefType ref_type, const gchar* name) {
	GitgHistoryRefHeader* header = NULL;
	GitgRefType _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	GitgHistoryRefHeader* _tmp2_ = NULL;
#line 601 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 601 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (name != NULL);
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = ref_type;
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = name;
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gitg_history_ref_header_new (_tmp0_, _tmp1_);
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp2_);
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp2_;
#line 604 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) header);
#line 606 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) header);
#line 601 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (header);
#line 3342 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_on_tip_updated (GitgHistoryRefsList* self, GgitRemote* remote, const gchar* refname, GgitOId* a, GgitOId* b) {
	GgitOId* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (remote != NULL);
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (refname != NULL);
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (a != NULL);
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (b != NULL);
#line 614 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = a;
#line 614 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = ggit_oid_is_zero (_tmp0_);
#line 614 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_) {
#line 3366 "gitg-history-refs-list.c"
		GitgRef* reference = NULL;
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
		GitgRef* _tmp14_ = NULL;
#line 618 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = gitg_history_refs_list_get_repository (self);
#line 618 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = _tmp2_;
#line 618 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_repository_clear_refs_cache (_tmp3_);
#line 3377 "gitg-history-refs-list.c"
		{
			GitgRef* _tmp4_ = NULL;
			GitgRepository* _tmp5_ = NULL;
			GitgRepository* _tmp6_ = NULL;
			const gchar* _tmp7_ = NULL;
			GitgRef* _tmp8_ = NULL;
			GitgRef* _tmp9_ = NULL;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = gitg_history_refs_list_get_repository (self);
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = refname;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = gitg_repository_lookup_reference (_tmp6_, _tmp7_, &_inner_error_);
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = _tmp8_;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3397 "gitg-history-refs-list.c"
				goto __catch75_g_error;
			}
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = _tmp4_;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = NULL;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			reference = _tmp9_;
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp4_);
#line 3410 "gitg-history-refs-list.c"
		}
		goto __finally75;
		__catch75_g_error:
		{
			GError* e = NULL;
			FILE* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
			GError* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			e = _inner_error_;
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 626 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = stderr;
#line 626 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = refname;
#line 626 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = e;
#line 626 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp12_->message;
#line 626 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			fprintf (_tmp10_, "Failed to lookup new reference '%s': %s\n", _tmp11_, _tmp13_);
#line 627 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_error_free0 (e);
#line 627 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 627 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return;
#line 3440 "gitg-history-refs-list.c"
		}
		__finally75:
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.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 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return;
#line 3453 "gitg-history-refs-list.c"
		}
#line 630 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = reference;
#line 630 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_add_ref (self, _tmp14_);
#line 614 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (reference);
#line 3461 "gitg-history-refs-list.c"
	} else {
		GgitOId* _tmp15_ = NULL;
		gboolean _tmp16_ = FALSE;
#line 632 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = b;
#line 632 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = ggit_oid_is_zero (_tmp15_);
#line 632 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp16_) {
#line 3471 "gitg-history-refs-list.c"
			{
				GeeIterator* _reference_it = NULL;
				GeeHashMap* _tmp17_ = NULL;
				GeeSet* _tmp18_ = NULL;
				GeeSet* _tmp19_ = NULL;
				GeeSet* _tmp20_ = NULL;
				GeeIterator* _tmp21_ = NULL;
				GeeIterator* _tmp22_ = NULL;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp17_ = self->priv->d_ref_map;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp18_ = gee_abstract_map_get_keys ((GeeMap*) _tmp17_);
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp19_ = _tmp18_;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp20_ = _tmp19_;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp21_ = gee_iterable_iterator ((GeeIterable*) _tmp20_);
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp22_ = _tmp21_;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp20_);
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_reference_it = _tmp22_;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				while (TRUE) {
#line 3498 "gitg-history-refs-list.c"
					GeeIterator* _tmp23_ = NULL;
					gboolean _tmp24_ = FALSE;
					GitgRef* reference = NULL;
					GeeIterator* _tmp25_ = NULL;
					gpointer _tmp26_ = NULL;
					GitgRef* _tmp27_ = NULL;
					const gchar* _tmp28_ = NULL;
					const gchar* _tmp29_ = NULL;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp23_ = _reference_it;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp24_ = gee_iterator_next (_tmp23_);
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					if (!_tmp24_) {
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						break;
#line 3515 "gitg-history-refs-list.c"
					}
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp25_ = _reference_it;
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp26_ = gee_iterator_get (_tmp25_);
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					reference = (GitgRef*) _tmp26_;
#line 637 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp27_ = reference;
#line 637 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp28_ = ggit_ref_get_name ((GgitRef*) _tmp27_);
#line 637 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp29_ = refname;
#line 637 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					if (g_strcmp0 (_tmp28_, _tmp29_) == 0) {
#line 3531 "gitg-history-refs-list.c"
						GitgRepository* _tmp30_ = NULL;
						GitgRepository* _tmp31_ = NULL;
						GitgRef* _tmp32_ = NULL;
#line 639 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp30_ = gitg_history_refs_list_get_repository (self);
#line 639 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp31_ = _tmp30_;
#line 639 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						gitg_repository_clear_refs_cache (_tmp31_);
#line 640 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp32_ = reference;
#line 640 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						gitg_history_refs_list_remove_ref (self, _tmp32_);
#line 641 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (reference);
#line 641 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						break;
#line 3549 "gitg-history-refs-list.c"
					}
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_g_object_unref0 (reference);
#line 3553 "gitg-history-refs-list.c"
				}
#line 635 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_reference_it);
#line 3557 "gitg-history-refs-list.c"
			}
		} else {
			GitgRepository* _tmp33_ = NULL;
			GitgRepository* _tmp34_ = NULL;
#line 648 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp33_ = gitg_history_refs_list_get_repository (self);
#line 648 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp34_ = _tmp33_;
#line 648 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_repository_clear_refs_cache (_tmp34_);
#line 649 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			g_signal_emit_by_name (self, "changed");
#line 3570 "gitg-history-refs-list.c"
		}
	}
}


static void _vala_array_add12 (GitgRemote*** array, int* length, int* size, GitgRemote* value) {
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((*length) == (*size)) {
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		*array = g_renew (GitgRemote*, *array, (*size) + 1);
#line 3583 "gitg-history-refs-list.c"
	}
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	(*array)[(*length)++] = value;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	(*array)[*length] = NULL;
#line 3589 "gitg-history-refs-list.c"
}


static GitgHistoryRefHeader* gitg_history_refs_list_add_remote_header (GitgHistoryRefsList* self, const gchar* name) {
	GitgHistoryRefHeader* result = NULL;
	GitgRemote* remote = NULL;
	GitgExtRemoteLookup* _tmp0_ = NULL;
	GitgRemote* _tmp4_ = NULL;
	GitgHistoryRefHeader* header = NULL;
	const gchar* _tmp9_ = NULL;
	GitgRemote* _tmp10_ = NULL;
	GitgHistoryRefHeader* _tmp11_ = NULL;
	GeeHashMap* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	GitgHistoryRefsListRemoteHeader* _tmp14_ = NULL;
	GitgHistoryRefsListRemoteHeader* _tmp15_ = NULL;
#line 653 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 653 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 655 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	remote = NULL;
#line 657 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_remote_lookup;
#line 657 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != NULL) {
#line 3616 "gitg-history-refs-list.c"
		GitgExtRemoteLookup* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GitgRemote* _tmp3_ = NULL;
#line 659 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->_remote_lookup;
#line 659 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = name;
#line 659 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_ext_remote_lookup_lookup (_tmp1_, _tmp2_);
#line 659 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (remote);
#line 659 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp3_;
#line 3630 "gitg-history-refs-list.c"
	}
#line 662 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = remote;
#line 662 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ != NULL) {
#line 3636 "gitg-history-refs-list.c"
		GitgRemote** _tmp5_ = NULL;
		gint _tmp5__length1 = 0;
		GitgRemote* _tmp6_ = NULL;
		GitgRemote* _tmp7_ = NULL;
		GitgRemote* _tmp8_ = NULL;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = self->priv->d_remotes;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5__length1 = self->priv->d_remotes_length1;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = remote;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _g_object_ref0 (_tmp6_);
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_vala_array_add12 (&self->priv->d_remotes, &self->priv->d_remotes_length1, &self->priv->_d_remotes_size_, _tmp7_);
#line 665 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = remote;
#line 665 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_connect_object ((GgitRemote*) _tmp8_, "tip-updated", (GCallback) _gitg_history_refs_list_on_tip_updated_ggit_remote_tip_updated, self, 0);
#line 3656 "gitg-history-refs-list.c"
	}
#line 668 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = name;
#line 668 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = remote;
#line 668 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_history_ref_header_new_remote (_tmp9_, _tmp10_);
#line 668 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp11_);
#line 668 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp11_;
#line 669 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) header);
#line 671 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = self->priv->d_header_map;
#line 671 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = name;
#line 671 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = gitg_history_refs_list_remote_header_new (header);
#line 671 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = _tmp14_;
#line 671 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp12_, _tmp13_, _tmp15_);
#line 671 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_gitg_history_refs_list_remote_header_unref0 (_tmp15_);
#line 672 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) header);
#line 674 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = header;
#line 674 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (remote);
#line 674 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 3690 "gitg-history-refs-list.c"
}


static GitgHistoryRefRow* gitg_history_refs_list_add_ref_row (GitgHistoryRefsList* self, GitgRef* reference, GitgHistoryRefAnimation animation) {
	GitgHistoryRefRow* result = NULL;
	GitgHistoryRefRow* row = NULL;
	GitgRef* _tmp0_ = NULL;
	GitgHistoryRefAnimation _tmp1_ = 0;
	GitgHistoryRefRow* _tmp2_ = NULL;
	GitgHistoryRefRow* _tmp3_ = NULL;
	GitgHistoryRefRow* _tmp4_ = NULL;
	GitgRef* _tmp5_ = NULL;
#line 677 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 679 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 679 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = animation;
#line 679 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gitg_history_ref_row_new (_tmp0_, _tmp1_);
#line 679 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp2_);
#line 679 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp2_;
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp3_);
#line 682 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = row;
#line 682 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) _tmp4_);
#line 684 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = reference;
#line 684 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp5_ != NULL) {
#line 3727 "gitg-history-refs-list.c"
		GeeHashMap* _tmp6_ = NULL;
		GitgRef* _tmp7_ = NULL;
		GitgHistoryRefRow* _tmp8_ = NULL;
#line 686 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = self->priv->d_ref_map;
#line 686 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = reference;
#line 686 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = row;
#line 686 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, _tmp7_, _tmp8_);
#line 3739 "gitg-history-refs-list.c"
	}
#line 689 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = row;
#line 689 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 3745 "gitg-history-refs-list.c"
}


static GitgHistoryRefRow* gitg_history_refs_list_add_ref_internal (GitgHistoryRefsList* self, GitgRef* reference, GitgHistoryRefAnimation animation) {
	GitgHistoryRefRow* result = NULL;
	GeeHashMap* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	GitgRef* _tmp3_ = NULL;
	GitgParsedRefName* _tmp4_ = NULL;
	GitgParsedRefName* _tmp5_ = NULL;
	GitgParsedRefName* _tmp6_ = NULL;
	GitgRefType _tmp7_ = 0;
	GitgRefType _tmp8_ = 0;
	gboolean _tmp9_ = FALSE;
	GitgRef* _tmp29_ = NULL;
	GitgHistoryRefAnimation _tmp30_ = 0;
	GitgHistoryRefRow* _tmp31_ = NULL;
#line 692 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 692 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 694 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 694 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 694 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 694 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 696 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 696 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3780 "gitg-history-refs-list.c"
	}
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = reference;
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_ref_get_parsed_name (_tmp3_);
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_parsed_ref_name_get_rtype (_tmp6_);
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_ == GITG_REF_TYPE_REMOTE;
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp6_);
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp9_) {
#line 3800 "gitg-history-refs-list.c"
		gchar* remote = NULL;
		GitgRef* _tmp10_ = NULL;
		GitgParsedRefName* _tmp11_ = NULL;
		GitgParsedRefName* _tmp12_ = NULL;
		GitgParsedRefName* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		GeeHashMap* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		gboolean _tmp19_ = FALSE;
		GeeHashMap* _tmp23_ = NULL;
		const gchar* _tmp24_ = NULL;
		gpointer _tmp25_ = NULL;
		GitgHistoryRefsListRemoteHeader* _tmp26_ = NULL;
		GeeHashSet* _tmp27_ = NULL;
		GitgRef* _tmp28_ = NULL;
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = reference;
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = gitg_ref_get_parsed_name (_tmp10_);
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = _tmp11_;
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = _tmp12_;
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = gitg_parsed_ref_name_get_remote_name (_tmp13_);
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_;
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = _tmp15_;
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp13_);
#line 701 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp16_;
#line 703 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = self->priv->d_header_map;
#line 703 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = remote;
#line 703 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp17_, _tmp18_);
#line 703 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!_tmp19_) {
#line 3844 "gitg-history-refs-list.c"
			const gchar* _tmp20_ = NULL;
			GitgHistoryRefHeader* _tmp21_ = NULL;
			GitgHistoryRefHeader* _tmp22_ = NULL;
#line 705 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = remote;
#line 705 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = gitg_history_refs_list_add_remote_header (self, _tmp20_);
#line 705 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = _tmp21_;
#line 705 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp22_);
#line 3856 "gitg-history-refs-list.c"
		}
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = self->priv->d_header_map;
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp24_ = remote;
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp25_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp23_, _tmp24_);
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = (GitgHistoryRefsListRemoteHeader*) _tmp25_;
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = _tmp26_->references;
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp28_ = reference;
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp27_, _tmp28_);
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_gitg_history_refs_list_remote_header_unref0 (_tmp26_);
#line 699 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (remote);
#line 3876 "gitg-history-refs-list.c"
	}
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = reference;
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp30_ = animation;
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp31_ = gitg_history_refs_list_add_ref_row (self, _tmp29_, _tmp30_);
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp31_;
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 3888 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_add_ref (GitgHistoryRefsList* self, GitgRef* reference) {
	gboolean result = FALSE;
	GitgRef* _tmp0_ = NULL;
	GitgHistoryRefRow* _tmp1_ = NULL;
	GitgHistoryRefRow* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 714 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 714 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_add_ref_internal (self, _tmp0_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_ != NULL;
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp2_);
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_) {
#line 718 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit_by_name (self, "changed");
#line 719 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 719 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3920 "gitg-history-refs-list.c"
	}
#line 722 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 722 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 3926 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_replace_ref (GitgHistoryRefsList* self, GitgRef* old_ref, GitgRef* new_ref) {
	gboolean select = FALSE;
	GeeHashMap* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean removed = FALSE;
	GitgRef* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	GitgHistoryRefRow* newrow = NULL;
	GitgRef* _tmp10_ = NULL;
	GitgHistoryRefRow* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
	gboolean _tmp14_ = FALSE;
	gboolean _tmp15_ = FALSE;
#line 725 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 725 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (old_ref != NULL);
#line 725 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (new_ref != NULL);
#line 727 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	select = FALSE;
#line 729 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 729 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = old_ref;
#line 729 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 729 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 3960 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp3_ = NULL;
		GeeHashMap* _tmp4_ = NULL;
		GitgRef* _tmp5_ = NULL;
		gpointer _tmp6_ = NULL;
		GitgHistoryRefRow* _tmp7_ = NULL;
#line 731 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 731 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = self->priv->d_ref_map;
#line 731 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = old_ref;
#line 731 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp4_, _tmp5_);
#line 731 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = (GitgHistoryRefRow*) _tmp6_;
#line 731 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		select = _tmp3_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_list_box_row_get_type (), GtkListBoxRow);
#line 731 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp7_);
#line 3980 "gitg-history-refs-list.c"
	}
#line 734 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = old_ref;
#line 734 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_refs_list_remove_ref_internal (self, _tmp8_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 734 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	removed = _tmp9_;
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = new_ref;
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_history_refs_list_add_ref_internal (self, _tmp10_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	newrow = _tmp11_;
#line 737 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = select;
#line 737 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp12_) {
#line 3998 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp13_ = NULL;
#line 739 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = newrow;
#line 739 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp13_);
#line 4004 "gitg-history-refs-list.c"
	}
#line 742 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = removed;
#line 742 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp15_) {
#line 742 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = TRUE;
#line 4012 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp16_ = NULL;
#line 742 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = newrow;
#line 742 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp16_ != NULL;
#line 4019 "gitg-history-refs-list.c"
	}
#line 742 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp14_) {
#line 744 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit_by_name (self, "changed");
#line 4025 "gitg-history-refs-list.c"
	}
#line 725 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (newrow);
#line 4029 "gitg-history-refs-list.c"
}


static gboolean gitg_history_refs_list_ref_is_a_symbolic_head (GitgHistoryRefsList* self, GitgRef* reference) {
	gboolean result = FALSE;
	GitgRef* _tmp0_ = NULL;
	GgitRefType _tmp1_ = 0;
	gchar* name = NULL;
	GitgRef* _tmp2_ = NULL;
	GitgParsedRefName* _tmp3_ = NULL;
	GitgParsedRefName* _tmp4_ = NULL;
	GitgParsedRefName* _tmp5_ = NULL;
	GitgRefType _tmp6_ = 0;
	GitgRefType _tmp7_ = 0;
	gboolean _tmp8_ = FALSE;
	const gchar* _tmp21_ = NULL;
#line 749 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 749 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = ggit_ref_get_reference_type ((GgitRef*) _tmp0_);
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != GGIT_REF_SYMBOLIC) {
#line 753 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 753 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 4060 "gitg-history-refs-list.c"
	}
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = reference;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_parsed_ref_name_get_rtype (_tmp5_);
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _tmp6_;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_ == GITG_REF_TYPE_REMOTE;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp5_);
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_) {
#line 4080 "gitg-history-refs-list.c"
		GitgRef* _tmp9_ = NULL;
		GitgParsedRefName* _tmp10_ = NULL;
		GitgParsedRefName* _tmp11_ = NULL;
		GitgParsedRefName* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = reference;
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_ref_get_parsed_name (_tmp9_);
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = _tmp11_;
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_parsed_ref_name_get_remote_branch (_tmp12_);
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (name);
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		name = _tmp14_;
#line 760 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp12_);
#line 4105 "gitg-history-refs-list.c"
	} else {
		GitgRef* _tmp15_ = NULL;
		GitgParsedRefName* _tmp16_ = NULL;
		GitgParsedRefName* _tmp17_ = NULL;
		GitgParsedRefName* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = reference;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = gitg_ref_get_parsed_name (_tmp15_);
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = _tmp16_;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = _tmp17_;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_parsed_ref_name_get_shortname (_tmp18_);
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (name);
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		name = _tmp20_;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp18_);
#line 4131 "gitg-history-refs-list.c"
	}
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = name;
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = g_strcmp0 (_tmp21_, "HEAD") == 0;
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (name);
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4141 "gitg-history-refs-list.c"
}


static gboolean gitg_history_refs_list_remove_ref_internal (GitgHistoryRefsList* self, GitgRef* reference, GitgHistoryRefAnimation animation) {
	gboolean result = FALSE;
	GeeHashMap* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	GitgHistoryRefRow* row = NULL;
	GeeHashMap* _tmp3_ = NULL;
	GitgRef* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	GitgHistoryRefAnimation _tmp6_ = 0;
	GeeHashMap* _tmp9_ = NULL;
	GitgRef* _tmp10_ = NULL;
	GitgRef* _tmp11_ = NULL;
	GitgParsedRefName* _tmp12_ = NULL;
	GitgParsedRefName* _tmp13_ = NULL;
	GitgParsedRefName* _tmp14_ = NULL;
	GitgRefType _tmp15_ = 0;
	GitgRefType _tmp16_ = 0;
	gboolean _tmp17_ = FALSE;
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 774 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 774 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 4180 "gitg-history-refs-list.c"
	}
#line 777 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_ref_map;
#line 777 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = reference;
#line 777 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp3_, _tmp4_);
#line 777 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	row = (GitgHistoryRefRow*) _tmp5_;
#line 779 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = animation;
#line 779 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ == GITG_HISTORY_REF_ANIMATION_NONE) {
#line 4194 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_ = NULL;
#line 781 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = row;
#line 781 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp7_);
#line 4200 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp8_ = NULL;
#line 785 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = row;
#line 785 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_unreveal (_tmp8_);
#line 4207 "gitg-history-refs-list.c"
	}
#line 788 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = self->priv->d_ref_map;
#line 788 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = reference;
#line 788 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gee_abstract_map_unset ((GeeAbstractMap*) _tmp9_, _tmp10_, NULL);
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = reference;
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = gitg_ref_get_parsed_name (_tmp11_);
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = _tmp12_;
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = _tmp13_;
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = gitg_parsed_ref_name_get_rtype (_tmp14_);
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = _tmp15_;
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = _tmp16_ == GITG_REF_TYPE_REMOTE;
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp14_);
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp17_) {
#line 4233 "gitg-history-refs-list.c"
		gchar* remote = NULL;
		GitgRef* _tmp18_ = NULL;
		GitgParsedRefName* _tmp19_ = NULL;
		GitgParsedRefName* _tmp20_ = NULL;
		GitgParsedRefName* _tmp21_ = NULL;
		gchar* _tmp22_ = NULL;
		gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		GitgHistoryRefsListRemoteHeader* remote_header = NULL;
		GeeHashMap* _tmp25_ = NULL;
		const gchar* _tmp26_ = NULL;
		gpointer _tmp27_ = NULL;
		GitgHistoryRefsListRemoteHeader* _tmp28_ = NULL;
		GeeHashSet* _tmp29_ = NULL;
		GitgRef* _tmp30_ = NULL;
		GitgHistoryRefsListRemoteHeader* _tmp31_ = NULL;
		GeeHashSet* _tmp32_ = NULL;
		gboolean _tmp33_ = FALSE;
		gboolean _tmp34_ = FALSE;
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = reference;
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_ref_get_parsed_name (_tmp18_);
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp21_ = _tmp20_;
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp22_ = gitg_parsed_ref_name_get_remote_name (_tmp21_);
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = _tmp22_;
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp24_ = _tmp23_;
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp21_);
#line 792 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp24_;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp25_ = self->priv->d_header_map;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = remote;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp25_, _tmp26_);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_header = (GitgHistoryRefsListRemoteHeader*) _tmp27_;
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp28_ = remote_header;
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = _tmp28_->references;
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = reference;
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp29_, _tmp30_);
#line 797 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = remote_header;
#line 797 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_->references;
#line 797 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = gee_collection_get_is_empty ((GeeCollection*) _tmp32_);
#line 797 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = _tmp33_;
#line 797 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp34_) {
#line 4297 "gitg-history-refs-list.c"
			GitgHistoryRefsListRemoteHeader* _tmp35_ = NULL;
			GitgHistoryRefHeader* _tmp36_ = NULL;
			GeeHashMap* _tmp37_ = NULL;
			const gchar* _tmp38_ = NULL;
#line 799 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = remote_header;
#line 799 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp36_ = _tmp35_->header;
#line 799 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_widget_destroy ((GtkWidget*) _tmp36_);
#line 800 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp37_ = self->priv->d_header_map;
#line 800 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp38_ = remote;
#line 800 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_map_unset ((GeeAbstractMap*) _tmp37_, _tmp38_, NULL);
#line 4314 "gitg-history-refs-list.c"
		}
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_gitg_history_refs_list_remote_header_unref0 (remote_header);
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (remote);
#line 4320 "gitg-history-refs-list.c"
	}
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = TRUE;
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4328 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_remove_ref (GitgHistoryRefsList* self, GitgRef* reference) {
	gboolean result = FALSE;
	GitgRef* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 807 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 807 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 809 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 809 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_remove_ref_internal (self, _tmp0_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 809 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_) {
#line 811 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit_by_name (self, "changed");
#line 812 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 812 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 4352 "gitg-history-refs-list.c"
	}
#line 815 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 815 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4358 "gitg-history-refs-list.c"
}


static Block42Data* block42_data_ref (Block42Data* _data42_) {
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&_data42_->_ref_count_);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return _data42_;
#line 4367 "gitg-history-refs-list.c"
}


static void block42_data_unref (void * _userdata_) {
	Block42Data* _data42_;
	_data42_ = (Block42Data*) _userdata_;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_atomic_int_dec_and_test (&_data42_->_ref_count_)) {
#line 4376 "gitg-history-refs-list.c"
		GitgHistoryRefsList* self;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		self = _data42_->self;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_data42_->head);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_slice_free (Block42Data, _data42_);
#line 4386 "gitg-history-refs-list.c"
	}
}


static gint ___lambda84_ (Block42Data* _data42_, const gchar* nm) {
	GitgHistoryRefsList* self;
	gint result = 0;
	GitgRef* r = NULL;
	GitgRef* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	GitgHistoryRefRow* row = NULL;
	GitgRef* _tmp7_ = NULL;
	GitgHistoryRefRow* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	GitgHistoryRefRow* _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data42_->self;
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (nm != NULL, 0);
#line 4407 "gitg-history-refs-list.c"
	{
		GitgRef* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GitgRef* _tmp3_ = NULL;
		GitgRef* _tmp4_ = NULL;
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->d_repository;
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = nm;
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_repository_lookup_reference (_tmp1_, _tmp2_, &_inner_error_);
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = _tmp3_;
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4424 "gitg-history-refs-list.c"
			goto __catch78_g_error;
		}
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp0_;
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = NULL;
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 857 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		r = _tmp4_;
#line 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp0_);
#line 4437 "gitg-history-refs-list.c"
	}
	goto __finally78;
	__catch78_g_error:
	{
#line 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 858 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 0;
#line 858 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 858 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 4452 "gitg-history-refs-list.c"
	}
	__finally78:
#line 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.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 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 855 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return 0;
#line 4465 "gitg-history-refs-list.c"
	}
#line 862 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = r;
#line 862 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_ref_is_a_symbolic_head (self, _tmp5_);
#line 862 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_) {
#line 864 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 0;
#line 864 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 864 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 4479 "gitg-history-refs-list.c"
	}
#line 867 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = r;
#line 867 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gitg_history_refs_list_add_ref_internal (self, _tmp7_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 867 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp8_;
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = row;
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_ != NULL) {
#line 4491 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		gboolean _tmp13_ = FALSE;
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = row;
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = gitg_history_ref_row_get_is_head (_tmp11_);
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = _tmp12_;
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = _tmp13_;
#line 4503 "gitg-history-refs-list.c"
	} else {
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = FALSE;
#line 4507 "gitg-history-refs-list.c"
	}
#line 869 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp9_) {
#line 4511 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp14_ = NULL;
		GitgHistoryRefRow* _tmp15_ = NULL;
#line 871 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = row;
#line 871 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _g_object_ref0 (_tmp14_);
#line 871 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_data42_->head);
#line 871 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_data42_->head = _tmp15_;
#line 4522 "gitg-history-refs-list.c"
	}
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 0;
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (r);
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4532 "gitg-history-refs-list.c"
}


static gint ____lambda84__ggit_references_name_callback (const gchar* name, gpointer self) {
	gint result;
	result = ___lambda84_ (self, name);
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4541 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_refresh (GitgHistoryRefsList* self) {
	Block42Data* _data42_;
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GitgRepository* _tmp2_ = NULL;
	GitgHistoryRefRow* all_commits = NULL;
	GitgHistoryRefRow* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GtkListBoxRow* sel = NULL;
	GtkListBoxRow* _tmp15_ = NULL;
	GtkListBoxRow* _tmp16_ = NULL;
	GtkListBoxRow* _tmp17_ = NULL;
	GError * _inner_error_ = NULL;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data42_ = g_slice_new0 (Block42Data);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data42_->_ref_count_ = 1;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data42_->self = g_object_ref (self);
#line 820 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_freeze_notify ((GObject*) self);
#line 822 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 822 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 822 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 822 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_selected_row = _tmp1_;
#line 824 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_clear (self);
#line 826 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_repository;
#line 826 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 828 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 828 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 829 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_thaw_notify ((GObject*) self);
#line 830 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		block42_data_unref (_data42_);
#line 830 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_data42_ = NULL;
#line 830 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4596 "gitg-history-refs-list.c"
	}
#line 833 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_history_refs_list_add_ref_row (self, NULL, GITG_HISTORY_REF_ANIMATION_NONE);
#line 833 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	all_commits = _tmp3_;
#line 835 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _ ("Branches");
#line 835 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add_header (self, GITG_REF_TYPE_BRANCH, _tmp4_);
#line 836 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _ ("Remotes");
#line 836 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add_header (self, GITG_REF_TYPE_REMOTE, _tmp5_);
#line 837 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _ ("Tags");
#line 837 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add_header (self, GITG_REF_TYPE_TAG, _tmp6_);
#line 839 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data42_->head = NULL;
#line 4616 "gitg-history-refs-list.c"
	{
		gboolean _tmp7_ = FALSE;
		GitgRepository* _tmp8_ = NULL;
		gboolean _tmp9_ = FALSE;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = self->priv->d_repository;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ggit_repository_is_head_detached ((GgitRepository*) _tmp8_, &_inner_error_);
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _tmp9_;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4629 "gitg-history-refs-list.c"
			goto __catch76_g_error;
		}
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp7_) {
#line 4634 "gitg-history-refs-list.c"
			GitgRef* _tmp10_ = NULL;
			GitgRepository* _tmp11_ = NULL;
			GitgRef* _tmp12_ = NULL;
			GitgHistoryRefRow* _tmp13_ = NULL;
#line 845 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = self->priv->d_repository;
#line 845 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = gitg_repository_lookup_reference (_tmp11_, "HEAD", &_inner_error_);
#line 845 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = _tmp12_;
#line 845 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4647 "gitg-history-refs-list.c"
				goto __catch76_g_error;
			}
#line 845 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = gitg_history_refs_list_add_ref_internal (self, _tmp10_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 845 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_data42_->head);
#line 845 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_data42_->head = _tmp13_;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp10_);
#line 4658 "gitg-history-refs-list.c"
		}
	}
	goto __finally76;
	__catch76_g_error:
	{
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 4668 "gitg-history-refs-list.c"
	}
	__finally76:
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (all_commits);
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		block42_data_unref (_data42_);
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_data42_ = NULL;
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.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 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 841 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4685 "gitg-history-refs-list.c"
	}
	{
		GitgRepository* _tmp14_ = NULL;
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = self->priv->d_repository;
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		ggit_repository_references_foreach_name ((GgitRepository*) _tmp14_, ____lambda84__ggit_references_name_callback, _data42_, &_inner_error_);
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4695 "gitg-history-refs-list.c"
			goto __catch77_g_error;
		}
	}
	goto __finally77;
	__catch77_g_error:
	{
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 4706 "gitg-history-refs-list.c"
	}
	__finally77:
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (all_commits);
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		block42_data_unref (_data42_);
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_data42_ = NULL;
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.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 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4723 "gitg-history-refs-list.c"
	}
#line 877 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 877 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_selected_row = NULL;
#line 879 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 879 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = _g_object_ref0 (_tmp15_);
#line 879 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	sel = _tmp16_;
#line 881 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = sel;
#line 881 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp17_ == NULL) {
#line 4739 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp18_ = NULL;
#line 883 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = _data42_->head;
#line 883 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp18_ != NULL) {
#line 4745 "gitg-history-refs-list.c"
			GitgHistoryRefRow* _tmp19_ = NULL;
#line 886 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = _data42_->head;
#line 886 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp19_);
#line 4751 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefRow* _tmp20_ = NULL;
#line 891 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = all_commits;
#line 891 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp20_);
#line 4758 "gitg-history-refs-list.c"
		}
	}
#line 895 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_thaw_notify ((GObject*) self);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (sel);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (all_commits);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	block42_data_unref (_data42_);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_data42_ = NULL;
#line 4771 "gitg-history-refs-list.c"
}


static GitgHistoryRefRow* gitg_history_refs_list_get_ref_row (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GitgHistoryRefRow* result = NULL;
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GitgHistoryRefRow* _tmp2_ = NULL;
#line 898 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 900 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 900 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 902 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 902 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 4790 "gitg-history-refs-list.c"
	}
#line 905 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = row;
#line 905 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp1_) : NULL);
#line 905 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp2_;
#line 905 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4800 "gitg-history-refs-list.c"
}


static GitgHistoryRefHeader* gitg_history_refs_list_get_ref_header (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GitgHistoryRefHeader* result = NULL;
	GtkListBoxRow* _tmp0_ = NULL;
	GitgHistoryRefHeader* _tmp1_ = NULL;
#line 908 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 908 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row != NULL, NULL);
#line 910 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 910 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp0_) : NULL);
#line 910 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 910 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4820 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_real_row_selected (GtkListBox* base, GtkListBoxRow* row) {
	GitgHistoryRefsList * self;
#line 1027 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1029 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject*) self, "selection");
#line 4830 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_real_move_cursor (GtkListBox* base, GtkMovementStep step, gint n) {
	GitgHistoryRefsList * self;
	GtkListBoxRow* selrow = NULL;
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GtkMovementStep _tmp2_ = 0;
	gint _tmp3_ = 0;
	GtkListBoxRow* _tmp4_ = NULL;
	GtkListBoxRow* _tmp5_ = NULL;
#line 1032 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1034 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1034 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1034 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	selrow = _tmp1_;
#line 1035 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = step;
#line 1035 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = n;
#line 1035 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	GTK_LIST_BOX_CLASS (gitg_history_refs_list_parent_class)->move_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox), _tmp2_, _tmp3_);
#line 1037 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = selrow;
#line 1037 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1037 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ != _tmp5_) {
#line 1039 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_notify ((GObject*) self, "selection");
#line 4865 "gitg-history-refs-list.c"
	}
#line 1032 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (selrow);
#line 4869 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_edit (GitgHistoryRefsList* self, GitgRef* reference, GitgExtRefNameEditingDone done, void* done_target, GDestroyNotify done_target_destroy_notify) {
	GeeHashMap* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	GitgHistoryRefRow* row = NULL;
	GeeHashMap* _tmp4_ = NULL;
	GitgRef* _tmp5_ = NULL;
	gpointer _tmp6_ = NULL;
	GitgHistoryRefRow* _tmp7_ = NULL;
	GitgExtRefNameEditingDone _tmp8_ = NULL;
	void* _tmp8__target = NULL;
	GDestroyNotify _tmp8__target_destroy_notify = NULL;
#line 1043 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1043 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (reference != NULL);
#line 1045 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 1045 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 1045 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 1045 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 4897 "gitg-history-refs-list.c"
		GitgExtRefNameEditingDone _tmp3_ = NULL;
		void* _tmp3__target = NULL;
#line 1047 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = done;
#line 1047 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3__target = done_target;
#line 1047 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ ("", TRUE, _tmp3__target);
#line 1048 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 1048 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		done = NULL;
#line 1048 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target = NULL;
#line 1048 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target_destroy_notify = NULL;
#line 1048 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4916 "gitg-history-refs-list.c"
	}
#line 1051 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_ref_map;
#line 1051 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = reference;
#line 1051 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp4_, _tmp5_);
#line 1051 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	row = (GitgHistoryRefRow*) _tmp6_;
#line 1052 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = row;
#line 1052 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = done;
#line 1052 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8__target = done_target;
#line 1052 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8__target_destroy_notify = done_target_destroy_notify;
#line 1052 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 1052 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_begin_editing (_tmp7_, _tmp8_, _tmp8__target, _tmp8__target_destroy_notify);
#line 1043 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1043 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 1043 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 1043 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 1043 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 4948 "gitg-history-refs-list.c"
}


static gint gitg_history_refs_list_y_in_window (GitgHistoryRefsList* self, gint y, GdkWindow* origin) {
	gint result = 0;
	gint _tmp9_ = 0;
#line 1055 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1055 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (origin != NULL, 0);
#line 1057 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	while (TRUE) {
#line 4961 "gitg-history-refs-list.c"
		GdkWindow* _tmp0_ = NULL;
		GdkWindow* _tmp1_ = NULL;
		gint wx = 0;
		gint wy = 0;
		GdkWindow* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _tmp5_ = 0;
		gint _tmp6_ = 0;
		GdkWindow* _tmp7_ = NULL;
		GdkWindow* _tmp8_ = NULL;
#line 1057 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = origin;
#line 1057 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = gtk_widget_get_window ((GtkWidget*) self);
#line 1057 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!(_tmp0_ != _tmp1_)) {
#line 1057 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 4981 "gitg-history-refs-list.c"
		}
#line 1062 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = origin;
#line 1062 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gdk_window_get_position (_tmp2_, &_tmp3_, &_tmp4_);
#line 1062 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		wx = _tmp3_;
#line 1062 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		wy = _tmp4_;
#line 1064 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = y;
#line 1064 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = wy;
#line 1064 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		y = _tmp5_ + _tmp6_;
#line 1066 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = origin;
#line 1066 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gdk_window_get_parent (_tmp7_);
#line 1066 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		origin = _tmp8_;
#line 5003 "gitg-history-refs-list.c"
	}
#line 1069 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = y;
#line 1069 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp9_;
#line 1069 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5011 "gitg-history-refs-list.c"
}


static gboolean gitg_history_refs_list_real_button_press_event (GtkWidget* base, GdkEventButton* button) {
	GitgHistoryRefsList * self;
	gboolean result = FALSE;
	gboolean ret = FALSE;
	GdkEventButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gint y = 0;
	GdkEventButton* _tmp2_ = NULL;
	gdouble _tmp3_ = 0.0;
	GdkEventButton* _tmp4_ = NULL;
	GdkWindow* _tmp5_ = NULL;
	gint _tmp6_ = 0;
	GtkListBoxRow* row = NULL;
	gint _tmp7_ = 0;
	GtkListBoxRow* _tmp8_ = NULL;
	GtkListBoxRow* _tmp9_ = NULL;
	gboolean _tmp10_ = FALSE;
	GtkListBoxRow* _tmp11_ = NULL;
#line 1072 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1072 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (button != NULL, FALSE);
#line 1074 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = button;
#line 1074 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = GTK_WIDGET_CLASS (gitg_history_refs_list_parent_class)->button_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox), _tmp0_);
#line 1074 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp1_;
#line 1076 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = button;
#line 1076 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_->y;
#line 1076 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = button;
#line 1076 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_->window;
#line 1076 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_y_in_window (self, (gint) _tmp3_, _tmp5_);
#line 1076 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	y = _tmp6_;
#line 1077 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = y;
#line 1077 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gtk_list_box_get_row_at_y ((GtkListBox*) self, _tmp7_);
#line 1077 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 1077 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp9_;
#line 1079 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = row;
#line 1079 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp11_ != NULL) {
#line 5067 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp12_ = NULL;
		GtkListBoxRow* _tmp13_ = NULL;
#line 1079 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = row;
#line 1079 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1079 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp12_ != _tmp13_;
#line 5076 "gitg-history-refs-list.c"
	} else {
#line 1079 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = FALSE;
#line 5080 "gitg-history-refs-list.c"
	}
#line 1079 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_) {
#line 5084 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp14_ = NULL;
#line 1081 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = row;
#line 1081 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp14_);
#line 5090 "gitg-history-refs-list.c"
	}
#line 1084 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = ret;
#line 1084 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1084 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5098 "gitg-history-refs-list.c"
}


GitgHistoryRefsList* gitg_history_refs_list_construct (GType object_type) {
	GitgHistoryRefsList * self = NULL;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) g_object_new (object_type, NULL);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 5108 "gitg-history-refs-list.c"
}


GitgHistoryRefsList* gitg_history_refs_list_new (void) {
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_refs_list_construct (GITG_HISTORY_TYPE_REFS_LIST);
#line 5115 "gitg-history-refs-list.c"
}


GitgExtRemoteLookup* gitg_history_refs_list_get_remote_lookup (GitgHistoryRefsList* self) {
	GitgExtRemoteLookup* result;
	GitgExtRemoteLookup* _tmp0_ = NULL;
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_remote_lookup;
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5130 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_set_remote_lookup (GitgHistoryRefsList* self, GitgExtRemoteLookup* value) {
	GitgExtRemoteLookup* _tmp0_ = NULL;
	GitgExtRemoteLookup* _tmp1_ = NULL;
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_remote_lookup);
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_remote_lookup = _tmp1_;
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "remote-lookup");
#line 5149 "gitg-history-refs-list.c"
}


GitgRepository* gitg_history_refs_list_get_repository (GitgHistoryRefsList* self) {
	GitgRepository* result;
	GitgRepository* _tmp0_ = NULL;
#line 448 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 448 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_repository;
#line 448 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 448 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5164 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_set_repository (GitgHistoryRefsList* self, GitgRepository* value) {
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
#line 449 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 451 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_repository;
#line 451 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = value;
#line 451 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != _tmp1_) {
#line 5179 "gitg-history-refs-list.c"
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
#line 453 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = value;
#line 453 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = _g_object_ref0 (_tmp2_);
#line 453 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_repository);
#line 453 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_repository = _tmp3_;
#line 454 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_refresh (self);
#line 5192 "gitg-history-refs-list.c"
	}
#line 449 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "repository");
#line 5196 "gitg-history-refs-list.c"
}


GeeList* gitg_history_refs_list_get_all (GitgHistoryRefsList* self) {
	GeeList* result;
	GeeLinkedList* ret = NULL;
	GeeLinkedList* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GError * _inner_error_ = NULL;
#line 915 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 917 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 917 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp0_;
#line 919 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_container_get_children ((GtkContainer*) self);
#line 5214 "gitg-history-refs-list.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 919 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		child_collection = _tmp1_;
#line 919 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 5222 "gitg-history-refs-list.c"
			GtkWidget* child = NULL;
#line 919 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			child = (GtkWidget*) child_it->data;
#line 5226 "gitg-history-refs-list.c"
			{
				GitgHistoryRefRow* r = NULL;
				GtkWidget* _tmp2_ = NULL;
				GitgHistoryRefRow* _tmp3_ = NULL;
				gboolean _tmp4_ = FALSE;
				GitgHistoryRefRow* _tmp5_ = NULL;
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp2_ = child;
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp3_ = gitg_history_refs_list_get_ref_row (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_list_box_row_get_type ()) ? ((GtkListBoxRow*) _tmp2_) : NULL);
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				r = _tmp3_;
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp5_ = r;
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp5_ != NULL) {
#line 5243 "gitg-history-refs-list.c"
					GitgHistoryRefRow* _tmp6_ = NULL;
					GitgRef* _tmp7_ = NULL;
					GitgRef* _tmp8_ = NULL;
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp6_ = r;
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp7_ = gitg_history_ref_row_get_reference (_tmp6_);
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp8_ = _tmp7_;
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp4_ = _tmp8_ != NULL;
#line 5255 "gitg-history-refs-list.c"
				} else {
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp4_ = FALSE;
#line 5259 "gitg-history-refs-list.c"
				}
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp4_) {
#line 5263 "gitg-history-refs-list.c"
					GeeLinkedList* _tmp9_ = NULL;
					GitgHistoryRefRow* _tmp10_ = NULL;
					GitgRef* _tmp11_ = NULL;
					GitgRef* _tmp12_ = NULL;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = ret;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp10_ = r;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp11_ = gitg_history_ref_row_get_reference (_tmp10_);
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp12_ = _tmp11_;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					gee_abstract_collection_add ((GeeAbstractCollection*) _tmp9_, _tmp12_);
#line 5278 "gitg-history-refs-list.c"
				}
#line 919 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (r);
#line 5282 "gitg-history-refs-list.c"
			}
		}
#line 919 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_list_free0 (child_collection);
#line 5287 "gitg-history-refs-list.c"
	}
	{
		gboolean _tmp13_ = FALSE;
		GitgRepository* _tmp14_ = NULL;
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = self->priv->d_repository;
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp14_ != NULL) {
#line 5296 "gitg-history-refs-list.c"
			gboolean _tmp15_ = FALSE;
			GitgRepository* _tmp16_ = NULL;
			gboolean _tmp17_ = FALSE;
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = self->priv->d_repository;
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = ggit_repository_is_head_detached ((GgitRepository*) _tmp16_, &_inner_error_);
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = _tmp17_;
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5308 "gitg-history-refs-list.c"
				goto __catch79_g_error;
			}
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp15_;
#line 5313 "gitg-history-refs-list.c"
		} else {
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = FALSE;
#line 5317 "gitg-history-refs-list.c"
		}
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_) {
#line 5321 "gitg-history-refs-list.c"
			GitgRef* _tmp18_ = NULL;
			GitgRepository* _tmp19_ = NULL;
			GitgRef* _tmp20_ = NULL;
			GeeLinkedList* _tmp21_ = NULL;
#line 933 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = self->priv->d_repository;
#line 933 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = gitg_repository_get_head (_tmp19_, &_inner_error_);
#line 933 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = _tmp20_;
#line 933 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5334 "gitg-history-refs-list.c"
				goto __catch79_g_error;
			}
#line 933 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = ret;
#line 933 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp21_, _tmp18_);
#line 931 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp18_);
#line 5343 "gitg-history-refs-list.c"
		}
	}
	goto __finally79;
	__catch79_g_error:
	{
#line 929 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 929 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 5353 "gitg-history-refs-list.c"
	}
	__finally79:
#line 929 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 929 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ret);
#line 929 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.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 929 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 929 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return NULL;
#line 5366 "gitg-history-refs-list.c"
	}
#line 937 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (GeeList*) ret;
#line 937 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5372 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_get_is_header (GitgHistoryRefsList* self) {
	gboolean result;
	GtkListBoxRow* _tmp0_ = NULL;
#line 943 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 943 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 943 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp0_) : NULL) != NULL;
#line 943 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5387 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_get_is_all (GitgHistoryRefsList* self) {
	gboolean result;
	GtkListBoxRow* row = NULL;
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GtkListBoxRow* _tmp2_ = NULL;
	GitgHistoryRefRow* ref_row = NULL;
	GtkListBoxRow* _tmp3_ = NULL;
	GitgHistoryRefRow* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	GitgHistoryRefRow* _tmp6_ = NULL;
#line 948 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 950 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 950 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 950 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 952 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 952 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 954 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 954 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (row);
#line 954 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5420 "gitg-history-refs-list.c"
	}
#line 957 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 957 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_refs_list_get_ref_row (self, _tmp3_);
#line 957 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ref_row = _tmp4_;
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = ref_row;
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ != NULL) {
#line 5432 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_ = NULL;
		GitgRef* _tmp8_ = NULL;
		GitgRef* _tmp9_ = NULL;
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = ref_row;
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gitg_history_ref_row_get_reference (_tmp7_);
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = _tmp8_;
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp9_ == NULL;
#line 5444 "gitg-history-refs-list.c"
	} else {
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = FALSE;
#line 5448 "gitg-history-refs-list.c"
	}
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp5_;
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref_row);
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 959 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5458 "gitg-history-refs-list.c"
}


GeeList* gitg_history_refs_list_get_selection (GitgHistoryRefsList* self) {
	GeeList* result;
	GtkListBoxRow* row = NULL;
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GtkListBoxRow* _tmp2_ = NULL;
	GitgHistoryRefRow* ref_row = NULL;
	GtkListBoxRow* _tmp5_ = NULL;
	GitgHistoryRefRow* _tmp6_ = NULL;
	GeeLinkedList* ret = NULL;
	GeeLinkedList* _tmp7_ = NULL;
	GitgHistoryRefRow* _tmp8_ = NULL;
#line 966 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 968 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 968 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 968 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 970 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 970 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 5486 "gitg-history-refs-list.c"
		GeeList* _tmp3_ = NULL;
		GeeList* _tmp4_ = NULL;
#line 972 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_history_refs_list_get_all (self);
#line 972 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_;
#line 972 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp4_;
#line 972 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (row);
#line 972 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5499 "gitg-history-refs-list.c"
	}
#line 975 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = row;
#line 975 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_get_ref_row (self, _tmp5_);
#line 975 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ref_row = _tmp6_;
#line 976 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 976 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp7_;
#line 978 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = ref_row;
#line 978 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_ != NULL) {
#line 5515 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp9_ = NULL;
		GitgRef* _tmp10_ = NULL;
		GitgRef* _tmp11_ = NULL;
#line 980 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ref_row;
#line 980 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_history_ref_row_get_reference (_tmp9_);
#line 980 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 980 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp11_ == NULL) {
#line 5527 "gitg-history-refs-list.c"
			GeeList* _tmp12_ = NULL;
			GeeList* _tmp13_ = NULL;
#line 982 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = gitg_history_refs_list_get_all (self);
#line 982 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp12_;
#line 982 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp13_;
#line 982 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ret);
#line 982 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref_row);
#line 982 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (row);
#line 982 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 5544 "gitg-history-refs-list.c"
		} else {
			GeeLinkedList* _tmp14_ = NULL;
			GitgHistoryRefRow* _tmp15_ = NULL;
			GitgRef* _tmp16_ = NULL;
			GitgRef* _tmp17_ = NULL;
#line 986 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp14_ = ret;
#line 986 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = ref_row;
#line 986 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = gitg_history_ref_row_get_reference (_tmp15_);
#line 986 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_;
#line 986 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp14_, _tmp17_);
#line 5560 "gitg-history-refs-list.c"
		}
	} else {
		GitgHistoryRefHeader* ref_header = NULL;
		GtkListBoxRow* _tmp18_ = NULL;
		GitgHistoryRefHeader* _tmp19_ = NULL;
		gboolean found = FALSE;
		GList* _tmp20_ = NULL;
#line 991 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = row;
#line 991 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_history_refs_list_get_ref_header (self, _tmp18_);
#line 991 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		ref_header = _tmp19_;
#line 992 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		found = FALSE;
#line 994 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = gtk_container_get_children ((GtkContainer*) self);
#line 5578 "gitg-history-refs-list.c"
		{
			GList* child_collection = NULL;
			GList* child_it = NULL;
#line 994 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			child_collection = _tmp20_;
#line 994 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 5586 "gitg-history-refs-list.c"
				GtkWidget* child = NULL;
#line 994 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
				child = (GtkWidget*) child_it->data;
#line 5590 "gitg-history-refs-list.c"
				{
					gboolean _tmp21_ = FALSE;
#line 996 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp21_ = found;
#line 996 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
					if (_tmp21_) {
#line 5597 "gitg-history-refs-list.c"
						GtkListBoxRow* nrow = NULL;
						GtkWidget* _tmp22_ = NULL;
						GtkListBoxRow* _tmp23_ = NULL;
						GitgHistoryRefRow* nref_row = NULL;
						GtkListBoxRow* _tmp24_ = NULL;
						GitgHistoryRefRow* _tmp25_ = NULL;
						GitgHistoryRefRow* _tmp26_ = NULL;
#line 998 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp22_ = child;
#line 998 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_list_box_row_get_type ()) ? ((GtkListBoxRow*) _tmp22_) : NULL);
#line 998 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						nrow = _tmp23_;
#line 999 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp24_ = nrow;
#line 999 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp25_ = gitg_history_refs_list_get_ref_row (self, _tmp24_);
#line 999 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						nref_row = _tmp25_;
#line 1001 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp26_ = nref_row;
#line 1001 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						if (_tmp26_ == NULL) {
#line 5621 "gitg-history-refs-list.c"
							GitgHistoryRefHeader* nref_header = NULL;
							GtkListBoxRow* _tmp27_ = NULL;
							GitgHistoryRefHeader* _tmp28_ = NULL;
							gboolean _tmp29_ = FALSE;
							GitgHistoryRefHeader* _tmp30_ = NULL;
							gboolean _tmp31_ = FALSE;
							gboolean _tmp32_ = FALSE;
#line 1003 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp27_ = nrow;
#line 1003 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp28_ = gitg_history_refs_list_get_ref_header (self, _tmp27_);
#line 1003 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							nref_header = _tmp28_;
#line 1005 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp30_ = ref_header;
#line 1005 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp31_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp30_);
#line 1005 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp32_ = _tmp31_;
#line 1005 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							if (_tmp32_) {
#line 1005 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp29_ = TRUE;
#line 5645 "gitg-history-refs-list.c"
							} else {
								GitgHistoryRefHeader* _tmp33_ = NULL;
								GitgRefType _tmp34_ = 0;
								GitgRefType _tmp35_ = 0;
								GitgHistoryRefHeader* _tmp36_ = NULL;
								GitgRefType _tmp37_ = 0;
								GitgRefType _tmp38_ = 0;
#line 1006 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp33_ = nref_header;
#line 1006 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp34_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp33_);
#line 1006 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp35_ = _tmp34_;
#line 1006 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp36_ = ref_header;
#line 1006 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp37_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp36_);
#line 1006 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp38_ = _tmp37_;
#line 1006 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp29_ = _tmp35_ != _tmp38_;
#line 5667 "gitg-history-refs-list.c"
							}
#line 1005 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							if (_tmp29_) {
#line 1008 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nref_header);
#line 1008 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nref_row);
#line 1008 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nrow);
#line 1008 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
								break;
#line 5679 "gitg-history-refs-list.c"
							}
#line 1001 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_g_object_unref0 (nref_header);
#line 5683 "gitg-history-refs-list.c"
						} else {
							GeeLinkedList* _tmp39_ = NULL;
							GitgHistoryRefRow* _tmp40_ = NULL;
							GitgRef* _tmp41_ = NULL;
							GitgRef* _tmp42_ = NULL;
#line 1013 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp39_ = ret;
#line 1013 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp40_ = nref_row;
#line 1013 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp41_ = gitg_history_ref_row_get_reference (_tmp40_);
#line 1013 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp42_ = _tmp41_;
#line 1013 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							gee_abstract_collection_add ((GeeAbstractCollection*) _tmp39_, _tmp42_);
#line 5699 "gitg-history-refs-list.c"
						}
#line 996 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (nref_row);
#line 996 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (nrow);
#line 5705 "gitg-history-refs-list.c"
					} else {
						GtkWidget* _tmp43_ = NULL;
						GtkListBoxRow* _tmp44_ = NULL;
#line 1016 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp43_ = child;
#line 1016 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp44_ = row;
#line 1016 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
						if (_tmp43_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget)) {
#line 1018 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
							found = TRUE;
#line 5717 "gitg-history-refs-list.c"
						}
					}
				}
			}
#line 994 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_list_free0 (child_collection);
#line 5724 "gitg-history-refs-list.c"
		}
#line 978 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ref_header);
#line 5728 "gitg-history-refs-list.c"
	}
#line 1023 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (GeeList*) ret;
#line 1023 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref_row);
#line 1023 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1023 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5738 "gitg-history-refs-list.c"
}


static gint _gitg_history_refs_list_sort_rows_gtk_list_box_sort_func (GtkListBoxRow* row1, GtkListBoxRow* row2, gpointer self) {
	gint result;
	result = gitg_history_refs_list_sort_rows ((GitgHistoryRefsList*) self, row1, row2);
#line 478 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5747 "gitg-history-refs-list.c"
}


static GObject * gitg_history_refs_list_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgHistoryRefsList * self;
	GeeHashMap* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	GitgRemote** _tmp2_ = NULL;
#line 471 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	parent_class = G_OBJECT_CLASS (gitg_history_refs_list_parent_class);
#line 471 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 471 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 473 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, (GBoxedCopyFunc) gitg_history_refs_list_remote_header_ref, gitg_history_refs_list_remote_header_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 473 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 473 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_header_map = _tmp0_;
#line 474 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gee_hash_map_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, GITG_HISTORY_TYPE_REF_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 474 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 474 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_ref_map = _tmp1_;
#line 475 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_set_selection_mode ((GtkListBox*) self, GTK_SELECTION_BROWSE);
#line 476 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = g_new0 (GitgRemote*, 0 + 1);
#line 476 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 476 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp2_;
#line 476 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 476 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 478 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_set_sort_func ((GtkListBox*) self, _gitg_history_refs_list_sort_rows_gtk_list_box_sort_func, g_object_ref (self), g_object_unref);
#line 471 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return obj;
#line 5792 "gitg-history-refs-list.c"
}


static GitgHistoryRefsListRemoteHeader* gitg_history_refs_list_remote_header_construct (GType object_type, GitgHistoryRefHeader* h) {
	GitgHistoryRefsListRemoteHeader* self = NULL;
	GitgHistoryRefHeader* _tmp0_ = NULL;
	GitgHistoryRefHeader* _tmp1_ = NULL;
	GeeHashSet* _tmp2_ = NULL;
#line 435 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (h != NULL, NULL);
#line 435 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsListRemoteHeader*) g_type_create_instance (object_type);
#line 437 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = h;
#line 437 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 437 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->header);
#line 437 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->header = _tmp1_;
#line 438 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_hash_set_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 438 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->references);
#line 438 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->references = _tmp2_;
#line 435 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 5821 "gitg-history-refs-list.c"
}


static GitgHistoryRefsListRemoteHeader* gitg_history_refs_list_remote_header_new (GitgHistoryRefHeader* h) {
#line 435 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_refs_list_remote_header_construct (GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, h);
#line 5828 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_value_remote_header_init (GValue* value) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	value->data[0].v_pointer = NULL;
#line 5835 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_value_remote_header_free_value (GValue* value) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (value->data[0].v_pointer) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_unref (value->data[0].v_pointer);
#line 5844 "gitg-history-refs-list.c"
	}
}


static void gitg_history_refs_list_value_remote_header_copy_value (const GValue* src_value, GValue* dest_value) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (src_value->data[0].v_pointer) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		dest_value->data[0].v_pointer = gitg_history_refs_list_remote_header_ref (src_value->data[0].v_pointer);
#line 5854 "gitg-history-refs-list.c"
	} else {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		dest_value->data[0].v_pointer = NULL;
#line 5858 "gitg-history-refs-list.c"
	}
}


static gpointer gitg_history_refs_list_value_remote_header_peek_pointer (const GValue* value) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return value->data[0].v_pointer;
#line 5866 "gitg-history-refs-list.c"
}


static gchar* gitg_history_refs_list_value_remote_header_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (collect_values[0].v_pointer) {
#line 5873 "gitg-history-refs-list.c"
		GitgHistoryRefsListRemoteHeader* object;
		object = collect_values[0].v_pointer;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		if (object->parent_instance.g_class == NULL) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 5880 "gitg-history-refs-list.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 5884 "gitg-history-refs-list.c"
		}
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = gitg_history_refs_list_remote_header_ref (object);
#line 5888 "gitg-history-refs-list.c"
	} else {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 5892 "gitg-history-refs-list.c"
	}
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return NULL;
#line 5896 "gitg-history-refs-list.c"
}


static gchar* gitg_history_refs_list_value_remote_header_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	GitgHistoryRefsListRemoteHeader** object_p;
	object_p = collect_values[0].v_pointer;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!object_p) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 5907 "gitg-history-refs-list.c"
	}
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!value->data[0].v_pointer) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		*object_p = NULL;
#line 5913 "gitg-history-refs-list.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		*object_p = value->data[0].v_pointer;
#line 5917 "gitg-history-refs-list.c"
	} else {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		*object_p = gitg_history_refs_list_remote_header_ref (value->data[0].v_pointer);
#line 5921 "gitg-history-refs-list.c"
	}
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return NULL;
#line 5925 "gitg-history-refs-list.c"
}


static GParamSpec* gitg_history_refs_list_param_spec_remote_header (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	GitgHistoryRefsListParamSpecRemoteHeader* spec;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (g_type_is_a (object_type, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER), NULL);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return G_PARAM_SPEC (spec);
#line 5939 "gitg-history-refs-list.c"
}


static gpointer gitg_history_refs_list_value_get_remote_header (const GValue* value) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER), NULL);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return value->data[0].v_pointer;
#line 5948 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_value_set_remote_header (GValue* value, gpointer v_object) {
	GitgHistoryRefsListRemoteHeader* old;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	old = value->data[0].v_pointer;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (v_object) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = v_object;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_ref (value->data[0].v_pointer);
#line 5968 "gitg-history-refs-list.c"
	} else {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 5972 "gitg-history-refs-list.c"
	}
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (old) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_unref (old);
#line 5978 "gitg-history-refs-list.c"
	}
}


static void gitg_history_refs_list_value_take_remote_header (GValue* value, gpointer v_object) {
	GitgHistoryRefsListRemoteHeader* old;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	old = value->data[0].v_pointer;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (v_object) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = v_object;
#line 5997 "gitg-history-refs-list.c"
	} else {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 6001 "gitg-history-refs-list.c"
	}
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (old) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_unref (old);
#line 6007 "gitg-history-refs-list.c"
	}
}


static void gitg_history_refs_list_remote_header_class_init (GitgHistoryRefsListRemoteHeaderClass * klass) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_remote_header_parent_class = g_type_class_peek_parent (klass);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	((GitgHistoryRefsListRemoteHeaderClass *) klass)->finalize = gitg_history_refs_list_remote_header_finalize;
#line 6017 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_remote_header_instance_init (GitgHistoryRefsListRemoteHeader * self) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->ref_count = 1;
#line 6024 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_remote_header_finalize (GitgHistoryRefsListRemoteHeader* obj) {
	GitgHistoryRefsListRemoteHeader * self;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, GitgHistoryRefsListRemoteHeader);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_handlers_destroy (self);
#line 432 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->header);
#line 433 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->references);
#line 6038 "gitg-history-refs-list.c"
}


static GType gitg_history_refs_list_remote_header_get_type (void) {
	static volatile gsize gitg_history_refs_list_remote_header_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_refs_list_remote_header_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { gitg_history_refs_list_value_remote_header_init, gitg_history_refs_list_value_remote_header_free_value, gitg_history_refs_list_value_remote_header_copy_value, gitg_history_refs_list_value_remote_header_peek_pointer, "p", gitg_history_refs_list_value_remote_header_collect_value, "p", gitg_history_refs_list_value_remote_header_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryRefsListRemoteHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_history_refs_list_remote_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgHistoryRefsListRemoteHeader), 0, (GInstanceInitFunc) gitg_history_refs_list_remote_header_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType gitg_history_refs_list_remote_header_type_id;
		gitg_history_refs_list_remote_header_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GitgHistoryRefsListRemoteHeader", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&gitg_history_refs_list_remote_header_type_id__volatile, gitg_history_refs_list_remote_header_type_id);
	}
	return gitg_history_refs_list_remote_header_type_id__volatile;
}


static gpointer gitg_history_refs_list_remote_header_ref (gpointer instance) {
	GitgHistoryRefsListRemoteHeader* self;
	self = instance;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&self->ref_count);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	return instance;
#line 6063 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_remote_header_unref (gpointer instance) {
	GitgHistoryRefsListRemoteHeader* self;
	self = instance;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		GITG_HISTORY_REFS_LIST_REMOTE_HEADER_GET_CLASS (self)->finalize (self);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 6076 "gitg-history-refs-list.c"
	}
}


static void gitg_history_refs_list_class_init (GitgHistoryRefsListClass * klass) {
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_parent_class = g_type_class_peek_parent (klass);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefsListPrivate));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	((GObjectClass *) klass)->dispose = gitg_history_refs_list_real_dispose;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkListBoxClass *) klass)->row_selected = gitg_history_refs_list_real_row_selected;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkListBoxClass *) klass)->move_cursor = gitg_history_refs_list_real_move_cursor;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkWidgetClass *) klass)->button_press_event = gitg_history_refs_list_real_button_press_event;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_refs_list_get_property;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_refs_list_set_property;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_history_refs_list_constructor;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_refs_list_finalize;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP, g_param_spec_object ("remote-lookup", "remote-lookup", "remote-lookup", GITG_EXT_TYPE_REMOTE_LOOKUP, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_REPOSITORY, g_param_spec_object ("repository", "repository", "repository", GITG_TYPE_REPOSITORY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_ALL, g_param_spec_object ("all", "all", "all", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_IS_HEADER, g_param_spec_boolean ("is-header", "is-header", "is-header", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_IS_ALL, g_param_spec_boolean ("is-all", "is-all", "is-all", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_SELECTION, g_param_spec_object ("selection", "selection", "selection", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_new ("changed", GITG_HISTORY_TYPE_REFS_LIST, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 6116 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_instance_init (GitgHistoryRefsList * self) {
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv = GITG_HISTORY_REFS_LIST_GET_PRIVATE (self);
#line 6123 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_finalize (GObject* obj) {
	GitgHistoryRefsList * self;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 423 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 424 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 425 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 426 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 442 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_remote_lookup);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_refs_list_parent_class)->finalize (obj);
#line 6145 "gitg-history-refs-list.c"
}


GType gitg_history_refs_list_get_type (void) {
	static volatile gsize gitg_history_refs_list_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_refs_list_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryRefsListClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_history_refs_list_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgHistoryRefsList), 0, (GInstanceInitFunc) gitg_history_refs_list_instance_init, NULL };
		GType gitg_history_refs_list_type_id;
		gitg_history_refs_list_type_id = g_type_register_static (gtk_list_box_get_type (), "GitgHistoryRefsList", &g_define_type_info, 0);
		g_once_init_leave (&gitg_history_refs_list_type_id__volatile, gitg_history_refs_list_type_id);
	}
	return gitg_history_refs_list_type_id__volatile;
}


static void _vala_gitg_history_refs_list_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgHistoryRefsList * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_refs_list_get_remote_lookup (self));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REPOSITORY:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_refs_list_get_repository (self));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_ALL:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_all (self));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_IS_HEADER:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_refs_list_get_is_header (self));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_IS_ALL:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_refs_list_get_is_all (self));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_SELECTION:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_selection (self));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 6202 "gitg-history-refs-list.c"
		default:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 6208 "gitg-history-refs-list.c"
	}
}


static void _vala_gitg_history_refs_list_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgHistoryRefsList * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_set_remote_lookup (self, g_value_get_object (value));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REPOSITORY:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_set_repository (self, g_value_get_object (value));
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 6230 "gitg-history-refs-list.c"
		default:
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 6236 "gitg-history-refs-list.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);
}



