/* gitg-history-refs-list.c generated by valac 0.34.7, 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 <libgit2-glib/ggit.h>
#include "libgitg-ext/libgitg-ext.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <stdio.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <gee.h>
#include <gio/gio.h>
#include <float.h>
#include <math.h>
#include <cairo.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 GITG_HISTORY_REF_ROW_TYPE_SORT_ORDER (gitg_history_ref_row_sort_order_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
typedef struct _Block73Data Block73Data;

#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_HEADER_STATE (gitg_history_refs_list_header_state_get_type ())
typedef struct _GitgHistoryRefsListHeaderState GitgHistoryRefsListHeaderState;

#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 _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 _Block74Data Block74Data;

#define GITG_HISTORY_TYPE_DEFAULT_SELECTION (gitg_history_default_selection_get_type ())
typedef struct _Block75Data Block75Data;
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;
	GtkLabel* d_ahead_behind;
	GtkBox* d_box;
	GtkRevealer* d_revealer;
	GitgRef* _reference;
	GgitSignature* d_updated;
	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;
};

typedef enum  {
	GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY = 0,
	GITG_HISTORY_REF_ROW_SORT_ORDER_NAME = 1
} GitgHistoryRefRowSortOrder;

struct _Block73Data {
	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;
	GtkExpander* d_expander;
	GtkLabel* d_label;
	GtkImage* d_icon;
	gboolean _expanded;
};

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

struct _GitgHistoryRefsListClass {
	GtkListBoxClass parent_class;
};

struct _GitgHistoryRefsListHeaderState {
	GitgRefType type;
	gchar* name;
	gboolean expanded;
};

struct _GitgHistoryRefsListPrivate {
	GitgRepository* d_repository;
	GeeHashMap* d_ref_map;
	GtkListBoxRow* d_selected_row;
	GitgRemote** d_remotes;
	gint d_remotes_length1;
	gint _d_remotes_size_;
	GitgHistoryRefRow* d_all_commits;
	GitgHistoryRefHeader* d_all_branches;
	GitgHistoryRefHeader* d_all_remotes;
	GitgHistoryRefHeader* d_all_tags;
	GitgHistoryRefRowSortOrder d_ref_sort_order;
	GitgHistoryRefsListHeaderState* d_expanded;
	gint d_expanded_length1;
	gint _d_expanded_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 _Block74Data {
	int _ref_count_;
	GitgHistoryRefsList* self;
	GitgHistoryRefRow* head;
};

typedef enum  {
	GITG_HISTORY_DEFAULT_SELECTION_CURRENT_BRANCH,
	GITG_HISTORY_DEFAULT_SELECTION_ALL_BRANCHES,
	GITG_HISTORY_DEFAULT_SELECTION_ALL_COMMITS
} GitgHistoryDefaultSelection;

struct _Block75Data {
	int _ref_count_;
	GitgHistoryRefsList* self;
	GeeLinkedList* ret;
};

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_UPDATED,
	GITG_HISTORY_REF_ROW_IS_HEAD
};
GType gitg_history_ref_row_sort_order_get_type (void) G_GNUC_CONST;
#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 _vala_GgitOId_free (GgitOId* 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, GitgHistoryRefRowSortOrder order);
GgitSignature* gitg_history_ref_row_get_updated (GitgHistoryRefRow* self);
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 Block73Data* block73_data_ref (Block73Data* _data73_);
static void block73_data_unref (void * _userdata_);
static gboolean __lambda119_ (Block73Data* _data73_);
static gboolean ___lambda119__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_EXPANDED,
	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);
static gboolean gitg_history_ref_header_on_expander_pressed (GitgHistoryRefHeader* self, GdkEventButton* event);
static gboolean _gitg_history_ref_header_on_expander_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self);
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);
gboolean gitg_history_ref_header_get_expanded (GitgHistoryRefHeader* self);
void gitg_history_ref_header_set_expanded (GitgHistoryRefHeader* self, gboolean 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 GType gitg_history_refs_list_header_state_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgHistoryRefsListHeaderState* gitg_history_refs_list_header_state_dup (const GitgHistoryRefsListHeaderState* self);
static void gitg_history_refs_list_header_state_free (GitgHistoryRefsListHeaderState* self);
static void gitg_history_refs_list_header_state_copy (const GitgHistoryRefsListHeaderState* self, GitgHistoryRefsListHeaderState* dest);
static void gitg_history_refs_list_header_state_destroy (GitgHistoryRefsListHeaderState* self);
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_REFERENCES,
	GITG_HISTORY_REFS_LIST_REFERENCE_SORT_ORDER,
	GITG_HISTORY_REFS_LIST_ALL,
	GITG_HISTORY_REFS_LIST_IS_HEADER,
	GITG_HISTORY_REFS_LIST_IS_ALL,
	GITG_HISTORY_REFS_LIST_SELECTION
};
static void _vala_GitgHistoryRefsListHeaderState_array_free (GitgHistoryRefsListHeaderState* array, gint array_length);
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_gitg_remote_tip_updated (GitgRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self);
static GitgHistoryRefHeader* gitg_history_refs_list_find_header (GitgHistoryRefsList* self, GtkListBoxRow* row);
static gboolean gitg_history_refs_list_filter_func (GitgHistoryRefsList* self, GtkListBoxRow* row);
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_expanded_changed (GitgHistoryRefsList* self);
static void gitg_history_refs_list_init_header (GitgHistoryRefsList* self, GitgHistoryRefHeader* header);
static void _gitg_history_refs_list_expanded_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static GitgHistoryRefHeader* 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_add21 (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 gboolean gitg_history_refs_list_select_nullable_row (GitgHistoryRefsList* self, GtkListBoxRow* row);
static void gitg_history_refs_list_scroll_to_row (GitgHistoryRefsList* self, GtkListBoxRow* row);
gboolean gitg_history_refs_list_select_all_commits (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_select_all_branches (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_select_all_remotes (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_select_all_tags (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_select_ref (GitgHistoryRefsList* self, GitgRef* reference);
static void gitg_history_refs_list_store_expanded_state (GitgHistoryRefsList* self);
static void __lambda120_ (GitgHistoryRefsList* self, GtkWidget* child);
static void _vala_array_add22 (GitgHistoryRefsListHeaderState** array, int* length, int* size, const GitgHistoryRefsListHeaderState* value);
static void ___lambda120__gtk_callback (GtkWidget* widget, gpointer self);
static void gitg_history_refs_list_refresh (GitgHistoryRefsList* self);
static Block74Data* block74_data_ref (Block74Data* _data74_);
static void block74_data_unref (void * _userdata_);
static gint ___lambda121_ (Block74Data* _data74_, const gchar* nm);
static gint ____lambda121__ggit_references_name_callback (const gchar* name, gpointer self);
GType gitg_history_default_selection_get_type (void) G_GNUC_CONST;
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_references (GitgHistoryRefsList* self);
static Block75Data* block75_data_ref (Block75Data* _data75_);
static void block75_data_unref (void * _userdata_);
static void _gitg_history_refs_list_references___lambda122_ (Block75Data* _data75_, GtkWidget* child);
static void __gitg_history_refs_list_references___lambda122__gtk_callback (GtkWidget* widget, gpointer self);
const gchar* gitg_history_refs_list_get_reference_sort_order (GitgHistoryRefsList* self);
void gitg_history_refs_list_set_reference_sort_order (GitgHistoryRefsList* self, const gchar* 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);
static gboolean _gitg_history_refs_list_filter_func_gtk_list_box_filter_func (GtkListBoxRow* row, 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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = ref_type;
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (_tmp0_) {
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_NONE:
#line 444 "gitg-history-refs-list.c"
		{
#line 28 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 0;
#line 28 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 450 "gitg-history-refs-list.c"
		}
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_BRANCH:
#line 454 "gitg-history-refs-list.c"
		{
#line 30 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 1;
#line 30 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 460 "gitg-history-refs-list.c"
		}
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_REMOTE:
#line 464 "gitg-history-refs-list.c"
		{
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 2;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 470 "gitg-history-refs-list.c"
		}
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_TAG:
#line 474 "gitg-history-refs-list.c"
		{
#line 34 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 3;
#line 34 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 480 "gitg-history-refs-list.c"
		}
		default:
#line 25 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 485 "gitg-history-refs-list.c"
	}
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 4;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 491 "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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 48 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return GITG_HISTORY_REF_TYPED_GET_INTERFACE (self)->get_ref_type (self);
#line 512 "gitg-history-refs-list.c"
}


static void gitg_history_ref_typed_base_init (GitgHistoryRefTypedIface * iface) {
#line 46 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	static gboolean initialized = FALSE;
#line 46 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!initialized) {
#line 46 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		initialized = TRUE;
#line 46 "/home/jesse/dev/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 525 "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;
}


GType gitg_history_ref_row_sort_order_get_type (void) {
	static volatile gsize gitg_history_ref_row_sort_order_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_ref_row_sort_order_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY, "GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY", "last-activity"}, {GITG_HISTORY_REF_ROW_SORT_ORDER_NAME, "GITG_HISTORY_REF_ROW_SORT_ORDER_NAME", "name"}, {0, NULL, NULL}};
		GType gitg_history_ref_row_sort_order_type_id;
		gitg_history_ref_row_sort_order_type_id = g_enum_register_static ("GitgHistoryRefRowSortOrder", values);
		g_once_init_leave (&gitg_history_ref_row_sort_order_type_id__volatile, gitg_history_ref_row_sort_order_type_id);
	}
	return gitg_history_ref_row_sort_order_type_id__volatile;
}


static void _gitg_history_ref_row_on_child_revealed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_on_child_revealed ((GitgHistoryRefRow*) self, _sender, pspec);
#line 558 "gitg-history-refs-list.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return self ? g_object_ref (self) : NULL;
#line 565 "gitg-history-refs-list.c"
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 572 "gitg-history-refs-list.c"
}


GitgHistoryRefRow* gitg_history_ref_row_construct (GType object_type, GitgRef* reference, GitgHistoryRefAnimation animation) {
	GitgHistoryRefRow * self = NULL;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgHistoryRefAnimation _tmp18_ = 0;
	GtkLabel* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	gboolean _tmp24_ = FALSE;
	gboolean _tmp25_ = FALSE;
	GitgRef* _tmp28_ = NULL;
	GitgRefType _tmp33_ = 0;
	GitgRefType _tmp34_ = 0;
	GtkRevealer* _tmp39_ = NULL;
	gboolean _tmp40_ = FALSE;
	GitgRef* _tmp41_ = NULL;
	GError * _inner_error_ = NULL;
#line 91 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) g_object_new (object_type, NULL);
#line 93 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 93 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_set_reference (self, _tmp0_);
#line 95 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 95 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != NULL) {
#line 603 "gitg-history-refs-list.c"
		{
			GgitRef* _tmp2_ = NULL;
			GitgRef* _tmp3_ = NULL;
			GgitRef* _tmp4_ = NULL;
			GgitObject* obj = NULL;
			GgitRef* _tmp5_ = NULL;
			GgitRef* _tmp6_ = NULL;
			GgitObject* _tmp7_ = NULL;
			GgitObject* _tmp8_ = NULL;
			GgitObject* _tmp9_ = NULL;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = reference;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = ggit_ref_resolve ((GgitRef*) _tmp3_, &_inner_error_);
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = _tmp4_;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 622 "gitg-history-refs-list.c"
				goto __catch117_g_error;
			}
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = _tmp2_;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = NULL;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = ggit_ref_lookup (_tmp6_, &_inner_error_);
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = _tmp7_;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp6_);
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			obj = _tmp8_;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp2_);
#line 643 "gitg-history-refs-list.c"
				goto __catch117_g_error;
			}
#line 101 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = obj;
#line 101 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, ggit_tag_get_type ())) {
#line 650 "gitg-history-refs-list.c"
				GgitObject* _tmp10_ = NULL;
				GgitSignature* _tmp11_ = NULL;
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp10_ = obj;
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp11_ = ggit_tag_get_tagger (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, ggit_tag_get_type (), GgitTag));
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (self->priv->d_updated);
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				self->priv->d_updated = _tmp11_;
#line 661 "gitg-history-refs-list.c"
			} else {
				GgitObject* _tmp12_ = NULL;
#line 105 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp12_ = obj;
#line 105 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, ggit_commit_get_type ())) {
#line 668 "gitg-history-refs-list.c"
					GgitObject* _tmp13_ = NULL;
					GgitSignature* _tmp14_ = NULL;
#line 107 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp13_ = obj;
#line 107 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp14_ = ggit_commit_get_committer (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, ggit_commit_get_type (), GgitCommit));
#line 107 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_g_object_unref0 (self->priv->d_updated);
#line 107 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					self->priv->d_updated = _tmp14_;
#line 679 "gitg-history-refs-list.c"
				}
			}
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (obj);
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp2_);
#line 686 "gitg-history-refs-list.c"
		}
		goto __finally117;
		__catch117_g_error:
		{
			GError* e = NULL;
			FILE* _tmp15_ = NULL;
			GError* _tmp16_ = NULL;
			const gchar* _tmp17_ = NULL;
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			e = _inner_error_;
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = stderr;
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = e;
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_->message;
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			fprintf (_tmp15_, "%s\n", _tmp17_);
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_error_free0 (e);
#line 709 "gitg-history-refs-list.c"
		}
		__finally117:
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/jesse/dev/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 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return NULL;
#line 720 "gitg-history-refs-list.c"
		}
	}
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp18_ = animation;
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp18_ == GITG_HISTORY_REF_ANIMATION_ANIMATE) {
#line 727 "gitg-history-refs-list.c"
		GtkRevealer* _tmp19_ = NULL;
#line 118 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = self->priv->d_revealer;
#line 118 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_revealer_set_transition_type (_tmp19_, GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN);
#line 733 "gitg-history-refs-list.c"
	} else {
		GtkRevealer* _tmp20_ = NULL;
#line 122 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = self->priv->d_revealer;
#line 122 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_revealer_set_reveal_child (_tmp20_, TRUE);
#line 740 "gitg-history-refs-list.c"
	}
#line 125 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = self->priv->d_label;
#line 125 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = gitg_history_ref_row_label_text (self);
#line 125 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = _tmp22_;
#line 125 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_label_set_label (_tmp21_, _tmp23_);
#line 125 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp23_);
#line 127 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = gitg_history_ref_row_get_is_head (self);
#line 127 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp25_ = _tmp24_;
#line 127 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp25_) {
#line 758 "gitg-history-refs-list.c"
		GtkImage* _tmp26_ = NULL;
		GtkImage* _tmp27_ = NULL;
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = self->priv->d_icon;
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_set (_tmp26_, "icon-name", "object-select-symbolic", NULL);
#line 130 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = self->priv->d_icon;
#line 130 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_show ((GtkWidget*) _tmp27_);
#line 769 "gitg-history-refs-list.c"
	}
#line 133 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = reference;
#line 133 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp28_ != NULL) {
#line 775 "gitg-history-refs-list.c"
		GtkWidget* _tmp29_ = NULL;
		GtkWidget* _tmp30_ = NULL;
		gint _tmp31_ = 0;
		gint _tmp32_ = 0;
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = gtk_bin_get_child ((GtkBin*) self);
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = gtk_bin_get_child ((GtkBin*) self);
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gtk_widget_get_margin_start (_tmp30_);
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_set_margin_start (_tmp30_, _tmp32_ + 12);
#line 790 "gitg-history-refs-list.c"
	}
#line 138 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp33_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) self);
#line 138 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp34_ = _tmp33_;
#line 138 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp34_ == GITG_REF_TYPE_REMOTE) {
#line 798 "gitg-history-refs-list.c"
		GtkWidget* _tmp35_ = NULL;
		GtkWidget* _tmp36_ = NULL;
		gint _tmp37_ = 0;
		gint _tmp38_ = 0;
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp35_ = gtk_bin_get_child ((GtkBin*) self);
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp36_ = gtk_bin_get_child ((GtkBin*) self);
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp37_ = gtk_widget_get_margin_start (_tmp36_);
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = _tmp37_;
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_set_margin_start (_tmp36_, _tmp38_ + 12);
#line 813 "gitg-history-refs-list.c"
	}
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp39_ = self->priv->d_revealer;
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GObject*) _tmp39_, "notify::child-revealed", (GCallback) _gitg_history_ref_row_on_child_revealed_g_object_notify, self, 0);
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp41_ = reference;
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp41_ != NULL) {
#line 823 "gitg-history-refs-list.c"
		GitgRef* _tmp42_ = NULL;
		gboolean _tmp43_ = FALSE;
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp42_ = reference;
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp43_ = ggit_ref_is_branch ((GgitRef*) _tmp42_);
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = _tmp43_;
#line 832 "gitg-history-refs-list.c"
	} else {
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = FALSE;
#line 836 "gitg-history-refs-list.c"
	}
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp40_) {
#line 840 "gitg-history-refs-list.c"
		GitgBranch* branch = NULL;
		GitgRef* _tmp44_ = NULL;
		GitgBranch* _tmp45_ = NULL;
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp44_ = reference;
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp44_, GITG_TYPE_BRANCH) ? ((GitgBranch*) _tmp44_) : NULL);
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		branch = _tmp45_;
#line 850 "gitg-history-refs-list.c"
		{
			GitgRef* upstream = NULL;
			GitgBranch* _tmp46_ = NULL;
			GitgRef* _tmp47_ = NULL;
			gsize ahead = 0UL;
			gsize behind = 0UL;
			GgitRef* _tmp48_ = NULL;
			GitgRef* _tmp49_ = NULL;
			GgitRef* _tmp50_ = NULL;
			GgitRef* _tmp51_ = NULL;
			GitgRef* _tmp52_ = NULL;
			GgitRef* _tmp53_ = NULL;
			GitgRef* _tmp54_ = NULL;
			GitgRepository* _tmp55_ = NULL;
			GitgRepository* _tmp56_ = NULL;
			GgitRef* _tmp57_ = NULL;
			GgitRef* _tmp58_ = NULL;
			GgitOId* _tmp59_ = NULL;
			GgitOId* _tmp60_ = NULL;
			GgitRef* _tmp61_ = NULL;
			GgitRef* _tmp62_ = NULL;
			GgitOId* _tmp63_ = NULL;
			GgitOId* _tmp64_ = NULL;
			gsize _tmp65_ = 0UL;
			gsize _tmp66_ = 0UL;
			gboolean _tmp67_ = FALSE;
			gsize _tmp68_ = 0UL;
#line 151 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp46_ = branch;
#line 151 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp47_ = gitg_branch_get_upstream (_tmp46_, &_inner_error_);
#line 151 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			upstream = _tmp47_;
#line 151 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 886 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 153 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			ahead = (gsize) 0;
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			behind = (gsize) 0;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp49_ = reference;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp50_ = ggit_ref_resolve ((GgitRef*) _tmp49_, &_inner_error_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp48_ = _tmp50_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (upstream);
#line 903 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp52_ = upstream;
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp53_ = ggit_ref_resolve ((GgitRef*) _tmp52_, &_inner_error_);
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp51_ = _tmp53_;
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp48_);
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (upstream);
#line 918 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp54_ = reference;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp55_ = gitg_ref_get_owner (_tmp54_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp56_ = _tmp55_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp57_ = _tmp48_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp48_ = NULL;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp58_ = _tmp57_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp59_ = ggit_ref_get_target (_tmp58_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp60_ = _tmp59_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp61_ = _tmp51_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp51_ = NULL;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = _tmp61_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp63_ = ggit_ref_get_target (_tmp62_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp64_ = _tmp63_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			ggit_repository_get_ahead_behind ((GgitRepository*) _tmp56_, _tmp60_, _tmp64_, &_tmp65_, &_tmp66_, &_inner_error_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			ahead = _tmp65_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			behind = _tmp66_;
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			__vala_GgitOId_free0 (_tmp64_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp62_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			__vala_GgitOId_free0 (_tmp60_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp58_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp56_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp51_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp48_);
#line 156 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (upstream);
#line 971 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp68_ = ahead;
#line 161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp68_ != ((gsize) 0)) {
#line 161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp67_ = TRUE;
#line 980 "gitg-history-refs-list.c"
			} else {
				gsize _tmp69_ = 0UL;
#line 161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp69_ = behind;
#line 161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp67_ = _tmp69_ != ((gsize) 0);
#line 987 "gitg-history-refs-list.c"
			}
#line 161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp67_) {
#line 991 "gitg-history-refs-list.c"
				gboolean _tmp70_ = FALSE;
				gsize _tmp71_ = 0UL;
#line 163 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp71_ = ahead;
#line 163 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp71_ != ((gsize) 0)) {
#line 998 "gitg-history-refs-list.c"
					gsize _tmp72_ = 0UL;
#line 163 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp72_ = behind;
#line 163 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp70_ = _tmp72_ != ((gsize) 0);
#line 1004 "gitg-history-refs-list.c"
				} else {
#line 163 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp70_ = FALSE;
#line 1008 "gitg-history-refs-list.c"
				}
#line 163 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp70_) {
#line 1012 "gitg-history-refs-list.c"
					GtkLabel* _tmp73_ = NULL;
					const gchar* _tmp74_ = NULL;
					gsize _tmp75_ = 0UL;
					gsize _tmp76_ = 0UL;
					gchar* _tmp77_ = NULL;
					gchar* _tmp78_ = NULL;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp73_ = self->priv->d_ahead_behind;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp74_ = _ ("%zu ahead, %zu behind");
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp75_ = ahead;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp76_ = behind;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp77_ = g_strdup_printf (_tmp74_, _tmp75_, _tmp76_);
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp78_ = _tmp77_;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					gtk_label_set_label (_tmp73_, _tmp78_);
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_g_free0 (_tmp78_);
#line 1035 "gitg-history-refs-list.c"
				} else {
					gsize _tmp79_ = 0UL;
#line 167 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp79_ = ahead;
#line 167 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					if (_tmp79_ != ((gsize) 0)) {
#line 1042 "gitg-history-refs-list.c"
						GtkLabel* _tmp80_ = NULL;
						const gchar* _tmp81_ = NULL;
						gsize _tmp82_ = 0UL;
						gchar* _tmp83_ = NULL;
						gchar* _tmp84_ = NULL;
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp80_ = self->priv->d_ahead_behind;
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp81_ = _ ("%zu ahead");
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp82_ = ahead;
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp83_ = g_strdup_printf (_tmp81_, _tmp82_);
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp84_ = _tmp83_;
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						gtk_label_set_label (_tmp80_, _tmp84_);
#line 169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_free0 (_tmp84_);
#line 1062 "gitg-history-refs-list.c"
					} else {
						GtkLabel* _tmp85_ = NULL;
						const gchar* _tmp86_ = NULL;
						gsize _tmp87_ = 0UL;
						gchar* _tmp88_ = NULL;
						gchar* _tmp89_ = NULL;
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp85_ = self->priv->d_ahead_behind;
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp86_ = _ ("%zu behind");
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp87_ = behind;
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp88_ = g_strdup_printf (_tmp86_, _tmp87_);
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp89_ = _tmp88_;
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						gtk_label_set_label (_tmp85_, _tmp89_);
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_free0 (_tmp89_);
#line 1083 "gitg-history-refs-list.c"
					}
				}
			}
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp51_);
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp48_);
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (upstream);
#line 1093 "gitg-history-refs-list.c"
		}
		goto __finally118;
		__catch118_g_error:
		{
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 1102 "gitg-history-refs-list.c"
		}
		__finally118:
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 149 "/home/jesse/dev/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 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 149 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return NULL;
#line 1115 "gitg-history-refs-list.c"
		}
#line 145 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (branch);
#line 1119 "gitg-history-refs-list.c"
	}
#line 91 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 1123 "gitg-history-refs-list.c"
}


GitgHistoryRefRow* gitg_history_ref_row_new (GitgRef* reference, GitgHistoryRefAnimation animation) {
#line 91 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_row_construct (GITG_HISTORY_TYPE_REF_ROW, reference, animation);
#line 1130 "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 185 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 185 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (obj != NULL);
#line 185 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (spec != NULL);
#line 187 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 187 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_revealer_get_child_revealed (_tmp0_);
#line 187 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 187 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 1152 "gitg-history-refs-list.c"
		GtkAllocation alloc = {0};
		GtkRevealer* _tmp3_ = NULL;
		GtkAllocation _tmp4_ = {0};
#line 190 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = self->priv->d_revealer;
#line 190 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_get_allocation ((GtkWidget*) _tmp3_, &_tmp4_);
#line 190 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		alloc = _tmp4_;
#line 192 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_destroy ((GtkWidget*) self);
#line 1164 "gitg-history-refs-list.c"
	}
}


static void gitg_history_ref_row_real_map (GtkWidget* base) {
	GitgHistoryRefRow * self;
	GtkRevealer* _tmp0_ = NULL;
#line 196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 198 "/home/jesse/dev/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 200 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 200 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_revealer_set_reveal_child (_tmp0_, TRUE);
#line 1180 "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 203 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 1203 "gitg-history-refs-list.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 207 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = _ ("All commits");
#line 207 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 207 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp2_;
#line 207 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1214 "gitg-history-refs-list.c"
	}
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->_reference;
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_ref_get_parsed_name (_tmp3_);
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	pn = _tmp5_;
#line 212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = pn;
#line 212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_parsed_ref_name_get_rtype (_tmp6_);
#line 212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_ == GITG_REF_TYPE_REMOTE) {
#line 1232 "gitg-history-refs-list.c"
		GitgParsedRefName* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = pn;
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_parsed_ref_name_get_remote_branch (_tmp9_);
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp11_;
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pn);
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1248 "gitg-history-refs-list.c"
	}
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = pn;
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = gitg_parsed_ref_name_get_shortname (_tmp12_);
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = _tmp13_;
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp14_;
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pn);
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1262 "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 243 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 243 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 245 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 245 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_ref_get_parsed_name (_tmp0_);
#line 245 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 245 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	pnme = _tmp2_;
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = other;
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_->priv->_reference;
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gitg_ref_get_parsed_name (_tmp4_);
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	pnot = _tmp6_;
#line 248 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = pnme;
#line 248 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gitg_parsed_ref_name_get_rtype (_tmp7_);
#line 248 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_;
#line 248 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = pnot;
#line 248 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_parsed_ref_name_get_rtype (_tmp10_);
#line 248 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = _tmp11_;
#line 248 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp9_ != _tmp12_) {
#line 1322 "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 250 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = pnme;
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = gitg_parsed_ref_name_get_rtype (_tmp13_);
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_;
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = gitg_history_ref_type_sort_order (_tmp15_);
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		i1 = _tmp16_;
#line 251 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = pnot;
#line 251 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = gitg_parsed_ref_name_get_rtype (_tmp17_);
#line 251 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = _tmp18_;
#line 251 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = gitg_history_ref_type_sort_order (_tmp19_);
#line 251 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		i2 = _tmp20_;
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp22_ = i1;
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = i2;
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp22_ < _tmp23_) {
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = -1;
#line 1364 "gitg-history-refs-list.c"
		} else {
			gint _tmp24_ = 0;
			gint _tmp25_ = 0;
			gint _tmp26_ = 0;
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = i1;
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp26_ = i2;
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp25_ > _tmp26_) {
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp24_ = 1;
#line 1377 "gitg-history-refs-list.c"
			} else {
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp24_ = 0;
#line 1381 "gitg-history-refs-list.c"
			}
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = _tmp24_;
#line 1385 "gitg-history-refs-list.c"
		}
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp21_;
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnot);
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnme);
#line 253 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1395 "gitg-history-refs-list.c"
	}
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = pnme;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_parsed_ref_name_get_rtype (_tmp27_);
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = _tmp28_;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp29_ == GITG_REF_TYPE_REMOTE) {
#line 1405 "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 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = pnme;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_parsed_ref_name_get_remote_name (_tmp30_);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = _tmp32_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = g_utf8_casefold (_tmp33_, (gssize) -1);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp35_ = _tmp34_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp36_ = pnot;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp37_ = gitg_parsed_ref_name_get_remote_name (_tmp36_);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = _tmp37_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp39_ = _tmp38_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = g_utf8_casefold (_tmp39_, (gssize) -1);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp41_ = _tmp40_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp42_ = g_utf8_collate (_tmp35_, _tmp41_);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp43_ = _tmp42_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp41_);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp39_);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp35_);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp33_);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp43_;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnot);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnme);
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1464 "gitg-history-refs-list.c"
	}
#line 261 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 0;
#line 261 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pnot);
#line 261 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pnme);
#line 261 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1474 "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 1007 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = c;
#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 1010 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 1010 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1499 "gitg-history-refs-list.c"
		gchar* _tmp4_ = NULL;
#line 1011 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 1011 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 1011 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 1507 "gitg-history-refs-list.c"
	} else {
#line 1013 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = -1;
#line 1013 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 1513 "gitg-history-refs-list.c"
	}
}


gint gitg_history_ref_row_compare_to (GitgHistoryRefRow* self, GitgHistoryRefRow* other, GitgHistoryRefRowSortOrder order) {
	gint result = 0;
	GitgRef* _tmp0_ = NULL;
	GitgHistoryRefRow* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	gint ct = 0;
	GitgHistoryRefRow* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	gint _tmp5_ = 0;
	GitgHistoryRefRowSortOrder _tmp6_ = 0;
	gchar* t1 = NULL;
	gchar* _tmp26_ = NULL;
	gchar* t2 = NULL;
	GitgHistoryRefRow* _tmp27_ = NULL;
	gchar* _tmp28_ = NULL;
	gint hassep1 = 0;
	const gchar* _tmp29_ = NULL;
	gint _tmp30_ = 0;
	gint hassep2 = 0;
	const gchar* _tmp31_ = NULL;
	gint _tmp32_ = 0;
	gint _tmp33_ = 0;
	gint _tmp34_ = 0;
	const gchar* _tmp37_ = NULL;
	gchar* _tmp38_ = NULL;
	gchar* _tmp39_ = NULL;
	const gchar* _tmp40_ = NULL;
	gchar* _tmp41_ = NULL;
	gchar* _tmp42_ = NULL;
	gint _tmp43_ = 0;
	gint _tmp44_ = 0;
#line 264 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 264 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 266 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 266 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 268 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = -1;
#line 268 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1561 "gitg-history-refs-list.c"
	}
#line 271 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = other;
#line 271 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_->priv->_reference;
#line 271 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 1;
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1573 "gitg-history-refs-list.c"
	}
#line 276 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = other;
#line 276 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_ref_row_compare_type (self, _tmp3_);
#line 276 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ct = _tmp4_;
#line 278 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = ct;
#line 278 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp5_ != 0) {
#line 280 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = ct;
#line 280 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1589 "gitg-history-refs-list.c"
	}
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = order;
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ == GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY) {
#line 1595 "gitg-history-refs-list.c"
		gboolean _tmp7_ = FALSE;
		GgitSignature* _tmp8_ = NULL;
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = self->priv->d_updated;
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp8_ != NULL) {
#line 1602 "gitg-history-refs-list.c"
			GitgHistoryRefRow* _tmp9_ = NULL;
			GgitSignature* _tmp10_ = NULL;
			GgitSignature* _tmp11_ = NULL;
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = other;
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = gitg_history_ref_row_get_updated (_tmp9_);
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = _tmp10_;
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = _tmp11_ != NULL;
#line 1614 "gitg-history-refs-list.c"
		} else {
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = FALSE;
#line 1618 "gitg-history-refs-list.c"
		}
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp7_) {
#line 1622 "gitg-history-refs-list.c"
			GgitSignature* c1 = NULL;
			GgitSignature* _tmp12_ = NULL;
			GgitSignature* _tmp13_ = NULL;
			GgitSignature* c2 = NULL;
			GitgHistoryRefRow* _tmp14_ = NULL;
			GgitSignature* _tmp15_ = NULL;
			GgitSignature* _tmp16_ = NULL;
			GgitSignature* _tmp17_ = NULL;
			GgitSignature* _tmp18_ = NULL;
			GDateTime* _tmp19_ = NULL;
			GDateTime* _tmp20_ = NULL;
			GgitSignature* _tmp21_ = NULL;
			GDateTime* _tmp22_ = NULL;
			GDateTime* _tmp23_ = NULL;
			gint _tmp24_ = 0;
			gint _tmp25_ = 0;
#line 287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = self->priv->d_updated;
#line 287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _g_object_ref0 (_tmp12_);
#line 287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			c1 = _tmp13_;
#line 288 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp14_ = other;
#line 288 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = gitg_history_ref_row_get_updated (_tmp14_);
#line 288 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = _tmp15_;
#line 288 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _g_object_ref0 (_tmp16_);
#line 288 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			c2 = _tmp17_;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = c2;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = ggit_signature_get_time (_tmp18_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = _tmp19_;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = c1;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = ggit_signature_get_time (_tmp21_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp23_ = _tmp22_;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp24_ = g_date_time_compare (_tmp20_, _tmp23_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp24_;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_date_time_unref0 (_tmp23_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_date_time_unref0 (_tmp20_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp25_;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (c2);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (c1);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 1683 "gitg-history-refs-list.c"
		}
	}
#line 294 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp26_ = gitg_history_ref_row_label_text (self);
#line 294 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	t1 = _tmp26_;
#line 295 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = other;
#line 295 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_history_ref_row_label_text (_tmp27_);
#line 295 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	t2 = _tmp28_;
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = t1;
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp30_ = string_index_of_char (_tmp29_, (gunichar) '/', 0);
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	hassep1 = _tmp30_;
#line 298 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp31_ = t2;
#line 298 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp32_ = string_index_of_char (_tmp31_, (gunichar) '/', 0);
#line 298 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	hassep2 = _tmp32_;
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp33_ = hassep1;
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp34_ = hassep2;
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp33_ >= 0) != (_tmp34_ >= 0)) {
#line 1714 "gitg-history-refs-list.c"
		gint _tmp35_ = 0;
		gint _tmp36_ = 0;
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp36_ = hassep1;
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp36_ >= 0) {
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = 1;
#line 1723 "gitg-history-refs-list.c"
		} else {
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = -1;
#line 1727 "gitg-history-refs-list.c"
		}
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp35_;
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (t2);
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (t1);
#line 302 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1737 "gitg-history-refs-list.c"
	}
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp37_ = t1;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp38_ = g_utf8_casefold (_tmp37_, (gssize) -1);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp39_ = _tmp38_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp40_ = t2;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp41_ = g_utf8_casefold (_tmp40_, (gssize) -1);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp42_ = _tmp41_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp43_ = g_utf8_collate (_tmp39_, _tmp42_);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp44_ = _tmp43_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp42_);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp39_);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp44_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (t2);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (t1);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1767 "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 330 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1776 "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 331 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1785 "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 308 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 310 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_editing_entry;
#line 310 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != NULL) {
#line 312 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 312 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		done = NULL;
#line 312 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target = NULL;
#line 312 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target_destroy_notify = NULL;
#line 312 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 1825 "gitg-history-refs-list.c"
	}
#line 315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = (GtkEntry*) gtk_entry_new ();
#line 315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp1_);
#line 315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_editing_entry = _tmp1_;
#line 316 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_editing_entry;
#line 316 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_entry_set_width_chars (_tmp2_, 1);
#line 317 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_editing_entry;
#line 317 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gtk_widget_get_style_context ((GtkWidget*) _tmp3_);
#line 317 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_style_context_add_class (_tmp4_, "ref_editing_entry");
#line 318 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_editing_entry;
#line 318 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp5_);
#line 320 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_editing_entry;
#line 320 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_ref_row_label_text (self);
#line 320 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 320 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_entry_set_text (_tmp6_, _tmp8_);
#line 320 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp8_);
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = done;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9__target = done_target;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9__target_destroy_notify = done_target_destroy_notify;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 322 "/home/jesse/dev/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 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = _tmp9_;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = _tmp9__target;
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = _tmp9__target_destroy_notify;
#line 324 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = self->priv->d_label;
#line 324 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_hide ((GtkWidget*) _tmp10_);
#line 325 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = self->priv->d_box;
#line 325 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = self->priv->d_editing_entry;
#line 325 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_box_pack_start (_tmp11_, (GtkWidget*) _tmp12_, TRUE, TRUE, (guint) 0);
#line 327 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = self->priv->d_editing_entry;
#line 327 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp13_);
#line 328 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = self->priv->d_editing_entry;
#line 328 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_editable_select_region ((GtkEditable*) _tmp14_, 0, -1);
#line 330 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = self->priv->d_editing_entry;
#line 330 "/home/jesse/dev/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 331 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = self->priv->d_editing_entry;
#line 331 "/home/jesse/dev/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 308 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 308 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 308 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 308 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 1919 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_real_dispose (GObject* base) {
	GitgHistoryRefRow * self;
	guint _tmp0_ = 0U;
#line 334 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 336 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_idle_finish;
#line 336 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 1932 "gitg-history-refs-list.c"
		guint _tmp1_ = 0U;
#line 338 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->d_idle_finish;
#line 338 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_source_remove (_tmp1_);
#line 339 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_idle_finish = (guint) 0;
#line 1940 "gitg-history-refs-list.c"
	}
#line 342 "/home/jesse/dev/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 1944 "gitg-history-refs-list.c"
}


static Block73Data* block73_data_ref (Block73Data* _data73_) {
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&_data73_->_ref_count_);
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return _data73_;
#line 1953 "gitg-history-refs-list.c"
}


static void block73_data_unref (void * _userdata_) {
	Block73Data* _data73_;
	_data73_ = (Block73Data*) _userdata_;
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_atomic_int_dec_and_test (&_data73_->_ref_count_)) {
#line 1962 "gitg-history-refs-list.c"
		GitgHistoryRefRow* self;
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self = _data73_->self;
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self);
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_slice_free (Block73Data, _data73_);
#line 1970 "gitg-history-refs-list.c"
	}
}


static gboolean __lambda119_ (Block73Data* _data73_) {
	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 355 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data73_->self;
#line 356 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_idle_finish = (guint) 0;
#line 358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_editing_entry;
#line 358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	new_text = _tmp3_;
#line 360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_editing_entry;
#line 360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_editing_entry = NULL;
#line 363 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_label;
#line 363 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp5_);
#line 365 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_edit_done_callback;
#line 365 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6__target = self->priv->d_edit_done_callback_target;
#line 365 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _data73_->cancelled;
#line 365 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ (new_text, _tmp7_, _tmp6__target);
#line 366 "/home/jesse/dev/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 366 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 366 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 366 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 366 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 366 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 366 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 367 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 367 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (new_text);
#line 367 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2042 "gitg-history-refs-list.c"
}


static gboolean ___lambda119__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda119_ (self);
#line 355 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2051 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_finish_editing (GitgHistoryRefRow* self, gboolean cancelled) {
	Block73Data* _data73_;
	gboolean _tmp0_ = FALSE;
	guint _tmp1_ = 0U;
	GtkEntry* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	GtkEntry* _tmp4_ = NULL;
	guint _tmp5_ = 0U;
	guint _tmp6_ = 0U;
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_ = g_slice_new0 (Block73Data);
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_->_ref_count_ = 1;
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_->self = g_object_ref (self);
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = cancelled;
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_->cancelled = _tmp0_;
#line 347 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->d_idle_finish;
#line 347 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != ((guint) 0)) {
#line 349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		block73_data_unref (_data73_);
#line 349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_data73_ = NULL;
#line 349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 2086 "gitg-history-refs-list.c"
	}
#line 352 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_editing_entry;
#line 352 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp3_, NULL, FALSE);
#line 352 "/home/jesse/dev/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 353 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_editing_entry;
#line 353 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp5_, NULL, FALSE);
#line 353 "/home/jesse/dev/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 355 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda119__gsource_func, block73_data_ref (_data73_), block73_data_unref);
#line 355 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_idle_finish = _tmp6_;
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	block73_data_unref (_data73_);
#line 345 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_ = NULL;
#line 2108 "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 371 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 371 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 371 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 373 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_finish_editing (self, FALSE);
#line 374 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 374 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2126 "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 377 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 377 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 377 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 379 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = event;
#line 379 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _tmp0_->keyval;
#line 379 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ == ((guint) GDK_KEY_Escape)) {
#line 381 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_finish_editing (self, TRUE);
#line 382 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 382 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2152 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp2_ = FALSE;
		GdkEventKey* _tmp3_ = NULL;
		guint _tmp4_ = 0U;
#line 384 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = event;
#line 384 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_->keyval;
#line 384 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp4_ == ((guint) GDK_KEY_KP_Enter)) {
#line 384 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = TRUE;
#line 2165 "gitg-history-refs-list.c"
		} else {
			GdkEventKey* _tmp5_ = NULL;
			guint _tmp6_ = 0U;
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = event;
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_->keyval;
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = _tmp6_ == ((guint) GDK_KEY_Return);
#line 2175 "gitg-history-refs-list.c"
		}
#line 384 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp2_) {
#line 387 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_row_finish_editing (self, FALSE);
#line 388 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = TRUE;
#line 388 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2185 "gitg-history-refs-list.c"
		}
	}
#line 391 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 391 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2192 "gitg-history-refs-list.c"
}


void gitg_history_ref_row_unreveal (GitgHistoryRefRow* self) {
	GtkRevealer* _tmp0_ = NULL;
	GtkRevealer* _tmp1_ = NULL;
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_revealer_set_transition_type (_tmp0_, GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN);
#line 397 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->d_revealer;
#line 397 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_revealer_set_reveal_child (_tmp1_, FALSE);
#line 2209 "gitg-history-refs-list.c"
}


GitgRef* gitg_history_ref_row_get_reference (GitgHistoryRefRow* self) {
	GitgRef* result;
	GitgRef* _tmp0_ = NULL;
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2224 "gitg-history-refs-list.c"
}


void gitg_history_ref_row_set_reference (GitgHistoryRefRow* self, GitgRef* value) {
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_reference);
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_reference = _tmp1_;
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "reference");
#line 2243 "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 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->_reference;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != NULL) {
#line 2258 "gitg-history-refs-list.c"
		GitgRef* _tmp2_ = NULL;
		GitgParsedRefName* _tmp3_ = NULL;
		GitgParsedRefName* _tmp4_ = NULL;
		GitgParsedRefName* _tmp5_ = NULL;
		GitgRefType _tmp6_ = 0;
		GitgRefType _tmp7_ = 0;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = self->priv->_reference;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp4_;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = gitg_parsed_ref_name_get_rtype (_tmp5_);
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _tmp6_;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = _tmp7_;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp5_);
#line 2281 "gitg-history-refs-list.c"
	} else {
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = GITG_REF_TYPE_NONE;
#line 2285 "gitg-history-refs-list.c"
	}
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 88 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2291 "gitg-history-refs-list.c"
}


GgitSignature* gitg_history_ref_row_get_updated (GitgHistoryRefRow* self) {
	GgitSignature* result;
	GgitSignature* _tmp0_ = NULL;
#line 182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_updated;
#line 182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2306 "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 222 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 224 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 224 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2328 "gitg-history-refs-list.c"
	}
#line 229 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->_reference;
#line 229 "/home/jesse/dev/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 229 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	branch = _tmp2_;
#line 231 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = branch;
#line 231 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_ != NULL) {
#line 2340 "gitg-history-refs-list.c"
		gboolean _tmp7_ = FALSE;
		{
			gboolean _tmp4_ = FALSE;
			GgitBranch* _tmp5_ = NULL;
			gboolean _tmp6_ = FALSE;
#line 235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = branch;
#line 235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = ggit_branch_is_head (_tmp5_, &_inner_error_);
#line 235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = _tmp6_;
#line 235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2354 "gitg-history-refs-list.c"
				goto __catch119_g_error;
			}
#line 235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp4_;
#line 235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2363 "gitg-history-refs-list.c"
		}
		goto __finally119;
		__catch119_g_error:
		{
#line 233 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 233 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 236 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = FALSE;
#line 236 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 236 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2378 "gitg-history-refs-list.c"
		}
		__finally119:
#line 233 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (branch);
#line 233 "/home/jesse/dev/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 233 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 233 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return _tmp7_;
#line 2389 "gitg-history-refs-list.c"
	}
#line 239 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 239 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (branch);
#line 239 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2397 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_class_init (GitgHistoryRefRowClass * klass) {
	gint GitgHistoryRefRow_private_offset;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_parent_class = g_type_class_peek_parent (klass);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefRowPrivate));
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkWidgetClass *) klass)->map = (void (*)(GtkWidget*)) gitg_history_ref_row_real_map;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	((GObjectClass *) klass)->dispose = (void (*)(GObject*)) gitg_history_ref_row_real_dispose;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_ref_row_get_property;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_ref_row_set_property;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_ref_row_finalize;
#line 52 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_ROW_UPDATED, g_param_spec_object ("updated", "updated", "updated", ggit_signature_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 52 "/home/jesse/dev/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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	GitgHistoryRefRow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 52 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_ahead_behind", FALSE, GitgHistoryRefRow_private_offset + G_STRUCT_OFFSET (GitgHistoryRefRowPrivate, d_ahead_behind));
#line 52 "/home/jesse/dev/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/jesse/dev/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 2439 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_gitg_history_ref_typed_interface_init (GitgHistoryRefTypedIface * iface) {
#line 52 "/home/jesse/dev/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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	iface->get_ref_type = gitg_history_ref_row_real_get_ref_type;
#line 2448 "gitg-history-refs-list.c"
}


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


static void gitg_history_ref_row_finalize (GObject* obj) {
	GitgHistoryRefRow * self;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REF_ROW, GitgHistoryRefRow);
#line 63 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_icon);
#line 66 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_label);
#line 69 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ahead_behind);
#line 72 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_box);
#line 75 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_revealer);
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_reference);
#line 79 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_updated);
#line 81 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 84 "/home/jesse/dev/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 84 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 84 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 84 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_ref_row_parent_class)->finalize (obj);
#line 2491 "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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_REFERENCE:
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_ref_row_get_reference (self));
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_REF_TYPE:
#line 52 "/home/jesse/dev/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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_UPDATED:
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_ref_row_get_updated (self));
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_IS_HEAD:
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_ref_row_get_is_head (self));
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2538 "gitg-history-refs-list.c"
		default:
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2544 "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/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_ROW_REFERENCE:
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_set_reference (self, g_value_get_object (value));
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2560 "gitg-history-refs-list.c"
		default:
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2566 "gitg-history-refs-list.c"
	}
}


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


static gboolean _gitg_history_ref_header_on_expander_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
	gboolean result;
	result = gitg_history_ref_header_on_expander_pressed ((GitgHistoryRefHeader*) self, event);
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2588 "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;
	GtkExpander* _tmp6_ = NULL;
	GtkExpander* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	GitgRefType _tmp10_ = 0;
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) g_object_new (object_type, NULL);
#line 458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = name;
#line 458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) -1);
#line 458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	escaped = _tmp1_;
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_label;
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = string_to_string (escaped);
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = g_strconcat ("<b>", _tmp3_, "</b>", NULL);
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_label_set_markup (_tmp2_, _tmp5_);
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp5_);
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_expander;
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_bind_property_with_closures ((GObject*) self, "expanded", (GObject*) _tmp6_, "expanded", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = self->priv->d_expander;
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GtkWidget*) _tmp7_, "button-press-event", (GCallback) _gitg_history_ref_header_on_expander_pressed_gtk_widget_button_press_event, self, 0);
#line 465 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = name;
#line 465 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = g_strdup (_tmp8_);
#line 465 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (self->priv->d_name);
#line 465 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_name = _tmp9_;
#line 466 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = rtype;
#line 466 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_rtype = _tmp10_;
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (escaped);
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 2652 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_new (GitgRefType rtype, const gchar* name) {
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_header_construct (GITG_HISTORY_TYPE_REF_HEADER, rtype, name);
#line 2659 "gitg-history-refs-list.c"
}


static gboolean gitg_history_ref_header_on_expander_pressed (GitgHistoryRefHeader* self, GdkEventButton* event) {
	gboolean result = FALSE;
	GtkExpander* _tmp0_ = NULL;
	GtkExpander* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
#line 469 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 469 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 471 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_expander;
#line 471 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->d_expander;
#line 471 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gtk_expander_get_expanded (_tmp1_);
#line 471 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_;
#line 471 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_expander_set_expanded (_tmp0_, !_tmp3_);
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = TRUE;
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2687 "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;
	GtkExpander* _tmp3_ = NULL;
	GtkExpander* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
	GitgRemote* _tmp7_ = NULL;
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 477 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = name;
#line 477 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) gitg_history_ref_header_construct (object_type, GITG_REF_TYPE_REMOTE, _tmp0_);
#line 479 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = remote;
#line 479 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 479 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_remote);
#line 479 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remote = _tmp2_;
#line 480 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_is_sub_header_remote = TRUE;
#line 481 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_expander;
#line 481 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_expander;
#line 481 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gtk_widget_get_margin_start ((GtkWidget*) _tmp4_);
#line 481 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 481 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_set_margin_start ((GtkWidget*) _tmp4_, _tmp6_ + 12);
#line 483 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = self->priv->d_remote;
#line 483 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_ != NULL) {
#line 2731 "gitg-history-refs-list.c"
		GitgRemote* _tmp8_ = NULL;
		GitgRemote* _tmp9_ = NULL;
		GitgProgressBin* _tmp10_ = NULL;
#line 485 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = self->priv->d_remote;
#line 485 "/home/jesse/dev/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, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 486 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = self->priv->d_remote;
#line 486 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = self->priv->d_progress_bin;
#line 486 "/home/jesse/dev/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, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 2745 "gitg-history-refs-list.c"
	}
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 2749 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_new_remote (const gchar* name, GitgRemote* remote) {
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_header_construct_remote (GITG_HISTORY_TYPE_REF_HEADER, name, remote);
#line 2756 "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 495 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 495 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_is_sub_header_remote;
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = other;
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_->priv->d_is_sub_header_remote;
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != _tmp2_) {
#line 2786 "gitg-history-refs-list.c"
		gint _tmp3_ = 0;
		gboolean _tmp4_ = FALSE;
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = self->priv->d_is_sub_header_remote;
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp4_) {
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = 1;
#line 2795 "gitg-history-refs-list.c"
		} else {
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = -1;
#line 2799 "gitg-history-refs-list.c"
		}
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp3_;
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2805 "gitg-history-refs-list.c"
	}
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_name;
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = g_utf8_casefold (_tmp5_, (gssize) -1);
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _tmp6_;
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = other;
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_->priv->d_name;
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = g_utf8_casefold (_tmp9_, (gssize) -1);
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = _tmp10_;
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = g_utf8_collate (_tmp7_, _tmp11_);
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = _tmp12_;
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp11_);
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp7_);
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp13_;
#line 503 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2833 "gitg-history-refs-list.c"
}


void gitg_history_ref_header_set_remote_state (GitgHistoryRefHeader* self, GitgRemoteState value) {
	GitgRemoteState _tmp0_ = 0;
#line 410 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (_tmp0_) {
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_DISCONNECTED:
#line 2847 "gitg-history-refs-list.c"
		{
#line 415 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, NULL);
#line 416 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2853 "gitg-history-refs-list.c"
		}
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_CONNECTING:
#line 2857 "gitg-history-refs-list.c"
		{
#line 418 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-wireless-acquiring-symbolic");
#line 419 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2863 "gitg-history-refs-list.c"
		}
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_CONNECTED:
#line 2867 "gitg-history-refs-list.c"
		{
#line 421 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-idle-symbolic");
#line 422 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2873 "gitg-history-refs-list.c"
		}
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_TRANSFERRING:
#line 2877 "gitg-history-refs-list.c"
		{
#line 424 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-transmit-receive-symbolic");
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2883 "gitg-history-refs-list.c"
		}
		default:
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2888 "gitg-history-refs-list.c"
	}
#line 410 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "remote-state");
#line 2892 "gitg-history-refs-list.c"
}


gboolean gitg_history_ref_header_get_expanded (GitgHistoryRefHeader* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_expanded;
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2907 "gitg-history-refs-list.c"
}


void gitg_history_ref_header_set_expanded (GitgHistoryRefHeader* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_expanded = _tmp0_;
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "expanded");
#line 2921 "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 448 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) base;
#line 448 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_rtype;
#line 448 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 448 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2937 "gitg-history-refs-list.c"
}


const gchar* gitg_history_ref_header_get_ref_name (GitgHistoryRefHeader* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 453 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 453 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_name;
#line 453 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 453 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2952 "gitg-history-refs-list.c"
}


gboolean gitg_history_ref_header_get_is_sub_header_remote (GitgHistoryRefHeader* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 492 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 492 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_is_sub_header_remote;
#line 492 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 492 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2967 "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 508 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 508 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_icon;
#line 508 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_get (_tmp0_, "icon-name", &_tmp1_, NULL);
#line 508 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 508 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp2_;
#line 508 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2988 "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 509 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 511 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_icon;
#line 511 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = value;
#line 511 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_set (_tmp0_, "icon-name", _tmp1_, NULL);
#line 512 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_icon;
#line 512 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = value;
#line 512 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp2_, _tmp3_ != NULL);
#line 509 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "icon-name");
#line 3013 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_class_init (GitgHistoryRefHeaderClass * klass) {
	gint GitgHistoryRefHeader_private_offset;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_header_parent_class = g_type_class_peek_parent (klass);
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefHeaderPrivate));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_ref_header_get_property;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_ref_header_set_property;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_ref_header_finalize;
#line 402 "/home/jesse/dev/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 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_EXPANDED, g_param_spec_boolean ("expanded", "expanded", "expanded", TRUE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 402 "/home/jesse/dev/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 402 "/home/jesse/dev/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 402 "/home/jesse/dev/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 402 "/home/jesse/dev/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 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	GitgHistoryRefHeader_private_offset = g_type_class_get_instance_private_offset (klass);
#line 402 "/home/jesse/dev/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 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "progress_bin", FALSE, GitgHistoryRefHeader_private_offset + G_STRUCT_OFFSET (GitgHistoryRefHeaderPrivate, d_progress_bin));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "expander", FALSE, GitgHistoryRefHeader_private_offset + G_STRUCT_OFFSET (GitgHistoryRefHeaderPrivate, d_expander));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label", FALSE, GitgHistoryRefHeader_private_offset + G_STRUCT_OFFSET (GitgHistoryRefHeaderPrivate, d_label));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "icon", FALSE, GitgHistoryRefHeader_private_offset + G_STRUCT_OFFSET (GitgHistoryRefHeaderPrivate, d_icon));
#line 3053 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_gitg_history_ref_typed_interface_init (GitgHistoryRefTypedIface * iface) {
#line 402 "/home/jesse/dev/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 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	iface->get_ref_type = gitg_history_ref_header_real_get_ref_type;
#line 3062 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_instance_init (GitgHistoryRefHeader * self) {
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv = GITG_HISTORY_REF_HEADER_GET_PRIVATE (self);
#line 444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_expanded = TRUE;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 3073 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_finalize (GObject* obj) {
	GitgHistoryRefHeader * self;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REF_HEADER, GitgHistoryRefHeader);
#line 406 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (self->priv->d_name);
#line 430 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_remote);
#line 433 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_progress_bin);
#line 436 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_expander);
#line 439 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_label);
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_icon);
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_ref_header_parent_class)->finalize (obj);
#line 3095 "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 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_EXPANDED:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_ref_header_get_expanded (self));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_REF_TYPE:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_enum (value, gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) self));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_REF_NAME:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_string (value, gitg_history_ref_header_get_ref_name (self));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_IS_SUB_HEADER_REMOTE:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_ref_header_get_is_sub_header_remote (self));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_ICON_NAME:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_string (value, gitg_history_ref_header_get_icon_name (self));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 3148 "gitg-history-refs-list.c"
		default:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 3154 "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 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_REMOTE_STATE:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_remote_state (self, g_value_get_enum (value));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_EXPANDED:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_expanded (self, g_value_get_boolean (value));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REF_HEADER_ICON_NAME:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_icon_name (self, g_value_get_string (value));
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 3182 "gitg-history-refs-list.c"
		default:
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 3188 "gitg-history-refs-list.c"
	}
}


static void _vala_GitgHistoryRefsListHeaderState_array_free (GitgHistoryRefsListHeaderState* array, gint array_length) {
#line 535 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (array != NULL) {
#line 3196 "gitg-history-refs-list.c"
		int i;
#line 535 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 535 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_refs_list_header_state_destroy (&array[i]);
#line 3202 "gitg-history-refs-list.c"
		}
	}
#line 535 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_free (array);
#line 3207 "gitg-history-refs-list.c"
}


static void _gitg_history_refs_list_on_tip_updated_gitg_remote_tip_updated (GitgRemote* _sender, const gchar* refname, GgitOId* a, GgitOId* b, gpointer self) {
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_on_tip_updated ((GitgHistoryRefsList*) self, _sender, refname, a, b);
#line 3214 "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 565 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_remotes;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0__length1 = self->priv->d_remotes_length1;
#line 3229 "gitg-history-refs-list.c"
	{
		GitgRemote** remote_collection = NULL;
		gint remote_collection_length1 = 0;
		gint _remote_collection_size_ = 0;
		gint remote_it = 0;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection = _tmp0_;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection_length1 = _tmp0__length1;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		for (remote_it = 0; remote_it < _tmp0__length1; remote_it = remote_it + 1) {
#line 3241 "gitg-history-refs-list.c"
			GitgRemote* _tmp1_ = NULL;
			GitgRemote* remote = NULL;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp1_ = _g_object_ref0 (remote_collection[remote_it]);
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			remote = _tmp1_;
#line 3248 "gitg-history-refs-list.c"
			{
				GitgRemote* _tmp2_ = NULL;
				guint _tmp3_ = 0U;
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp2_ = remote;
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_parse_name ("tip-updated", GITG_TYPE_REMOTE, &_tmp3_, NULL, FALSE);
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _gitg_history_refs_list_on_tip_updated_gitg_remote_tip_updated, self);
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (remote);
#line 3260 "gitg-history-refs-list.c"
			}
		}
	}
#line 572 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = g_new0 (GitgRemote*, 0 + 1);
#line 572 "/home/jesse/dev/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 572 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp4_;
#line 572 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 572 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 574 "/home/jesse/dev/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 3276 "gitg-history-refs-list.c"
}


static GitgHistoryRefHeader* gitg_history_refs_list_find_header (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GitgHistoryRefHeader* result = NULL;
	GList* children = NULL;
	GList* _tmp0_ = NULL;
	GList* found = NULL;
	GList* _tmp1_ = NULL;
	GtkListBoxRow* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	GList* _tmp4_ = NULL;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row != NULL, NULL);
#line 644 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_container_get_children ((GtkContainer*) self);
#line 644 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	children = _tmp0_;
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = children;
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = g_list_find (_tmp1_, (GtkWidget*) _tmp2_);
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	found = _tmp3_;
#line 647 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = found;
#line 647 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ == NULL) {
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_list_free0 (children);
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3315 "gitg-history-refs-list.c"
	}
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	while (TRUE) {
#line 3319 "gitg-history-refs-list.c"
		GList* _tmp5_ = NULL;
		GList* _tmp6_ = NULL;
		GList* _tmp7_ = NULL;
		GList* _tmp8_ = NULL;
		GitgHistoryRefHeader* header = NULL;
		GList* _tmp9_ = NULL;
		gconstpointer _tmp10_ = NULL;
		GtkWidget* _tmp11_ = NULL;
		GitgHistoryRefHeader* _tmp12_ = NULL;
		GitgHistoryRefHeader* _tmp13_ = NULL;
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = found;
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = _tmp5_->prev;
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!(_tmp6_ != NULL)) {
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 3338 "gitg-history-refs-list.c"
		}
#line 654 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = found;
#line 654 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = _tmp7_->prev;
#line 654 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		found = _tmp8_;
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = found;
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp9_->data;
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = (GtkWidget*) _tmp10_;
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp11_) : NULL);
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		header = _tmp12_;
#line 658 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = header;
#line 658 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_ != NULL) {
#line 660 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = header;
#line 660 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_list_free0 (children);
#line 660 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3366 "gitg-history-refs-list.c"
		}
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (header);
#line 3370 "gitg-history-refs-list.c"
	}
#line 664 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = NULL;
#line 664 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_list_free0 (children);
#line 664 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 3378 "gitg-history-refs-list.c"
}


static gboolean gitg_history_refs_list_filter_func (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	gboolean result = FALSE;
	GitgHistoryRefHeader* header = NULL;
	GtkListBoxRow* _tmp0_ = NULL;
	GitgHistoryRefHeader* _tmp1_ = NULL;
	GitgHistoryRefHeader* _tmp2_ = NULL;
	GitgHistoryRefHeader* _tmp16_ = NULL;
#line 667 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 667 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row != NULL, FALSE);
#line 669 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 669 "/home/jesse/dev/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 669 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp1_;
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = header;
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ != NULL) {
#line 3403 "gitg-history-refs-list.c"
		GitgHistoryRefHeader* _tmp3_ = NULL;
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
#line 673 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = header;
#line 673 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp3_);
#line 673 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp4_;
#line 673 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!_tmp5_) {
#line 675 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = TRUE;
#line 675 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (header);
#line 675 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3421 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefHeader* _tmp13_ = NULL;
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			while (TRUE) {
#line 3426 "gitg-history-refs-list.c"
				gboolean _tmp6_ = FALSE;
				GitgHistoryRefHeader* _tmp7_ = NULL;
				GitgHistoryRefHeader* _tmp11_ = NULL;
				GitgHistoryRefHeader* _tmp12_ = NULL;
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp7_ = header;
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp7_ != NULL) {
#line 3435 "gitg-history-refs-list.c"
					GitgHistoryRefHeader* _tmp8_ = NULL;
					gboolean _tmp9_ = FALSE;
					gboolean _tmp10_ = FALSE;
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp8_ = header;
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp8_);
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp10_ = _tmp9_;
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp6_ = _tmp10_;
#line 3447 "gitg-history-refs-list.c"
				} else {
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp6_ = FALSE;
#line 3451 "gitg-history-refs-list.c"
				}
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (!_tmp6_) {
#line 679 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					break;
#line 3457 "gitg-history-refs-list.c"
				}
#line 681 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp11_ = header;
#line 681 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp12_ = gitg_history_refs_list_find_header (self, (GtkListBoxRow*) _tmp11_);
#line 681 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (header);
#line 681 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				header = _tmp12_;
#line 3467 "gitg-history-refs-list.c"
			}
#line 684 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = header;
#line 684 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp13_ == NULL) {
#line 686 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				result = TRUE;
#line 686 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (header);
#line 686 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				return result;
#line 3479 "gitg-history-refs-list.c"
			}
		}
	} else {
		GtkListBoxRow* _tmp14_ = NULL;
		GitgHistoryRefHeader* _tmp15_ = NULL;
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = row;
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = gitg_history_refs_list_find_header (self, _tmp14_);
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (header);
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		header = _tmp15_;
#line 3493 "gitg-history-refs-list.c"
	}
#line 695 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = header;
#line 695 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp16_ == NULL) {
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (header);
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3505 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp17_ = FALSE;
		GitgHistoryRefHeader* _tmp18_ = NULL;
		gboolean _tmp19_ = FALSE;
		gboolean _tmp20_ = FALSE;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = header;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp18_);
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!_tmp20_) {
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = TRUE;
#line 3521 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefHeader* _tmp21_ = NULL;
			gboolean _tmp22_ = FALSE;
			gboolean _tmp23_ = FALSE;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = header;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = gitg_history_ref_header_get_expanded (_tmp21_);
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp23_ = _tmp22_;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = !_tmp23_;
#line 3534 "gitg-history-refs-list.c"
		}
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp17_) {
#line 3538 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp24_ = NULL;
			gboolean _tmp25_ = FALSE;
			gboolean _tmp26_ = FALSE;
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp24_ = header;
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = gitg_history_ref_header_get_expanded (_tmp24_);
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp26_ = _tmp25_;
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp26_;
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (header);
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3554 "gitg-history-refs-list.c"
		} else {
			gboolean _tmp34_ = FALSE;
			GitgHistoryRefHeader* _tmp35_ = NULL;
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			while (TRUE) {
#line 3560 "gitg-history-refs-list.c"
				gboolean _tmp27_ = FALSE;
				GitgHistoryRefHeader* _tmp28_ = NULL;
				GitgHistoryRefHeader* _tmp32_ = NULL;
				GitgHistoryRefHeader* _tmp33_ = NULL;
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp28_ = header;
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp28_ != NULL) {
#line 3569 "gitg-history-refs-list.c"
					GitgHistoryRefHeader* _tmp29_ = NULL;
					gboolean _tmp30_ = FALSE;
					gboolean _tmp31_ = FALSE;
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp29_ = header;
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp30_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp29_);
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp31_ = _tmp30_;
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp27_ = _tmp31_;
#line 3581 "gitg-history-refs-list.c"
				} else {
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp27_ = FALSE;
#line 3585 "gitg-history-refs-list.c"
				}
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (!_tmp27_) {
#line 705 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					break;
#line 3591 "gitg-history-refs-list.c"
				}
#line 707 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp32_ = header;
#line 707 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = gitg_history_refs_list_find_header (self, (GtkListBoxRow*) _tmp32_);
#line 707 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (header);
#line 707 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				header = _tmp33_;
#line 3601 "gitg-history-refs-list.c"
			}
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = header;
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp35_ == NULL) {
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp34_ = TRUE;
#line 3609 "gitg-history-refs-list.c"
			} else {
				GitgHistoryRefHeader* _tmp36_ = NULL;
				gboolean _tmp37_ = FALSE;
				gboolean _tmp38_ = FALSE;
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp36_ = header;
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp37_ = gitg_history_ref_header_get_expanded (_tmp36_);
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp38_ = _tmp37_;
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp34_ = _tmp38_;
#line 3622 "gitg-history-refs-list.c"
			}
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp34_;
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (header);
#line 710 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3630 "gitg-history-refs-list.c"
		}
	}
#line 667 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (header);
#line 3635 "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 714 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row1 != NULL, 0);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row2 != NULL, 0);
#line 716 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row1;
#line 716 "/home/jesse/dev/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 716 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 716 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	r1 = _tmp2_;
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row2;
#line 717 "/home/jesse/dev/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 717 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	r2 = _tmp5_;
#line 720 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = r1;
#line 720 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_ref_type_sort_order (_tmp6_);
#line 720 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	rs1 = _tmp7_;
#line 721 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = r2;
#line 721 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_ref_type_sort_order (_tmp8_);
#line 721 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	rs2 = _tmp9_;
#line 723 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = rs1;
#line 723 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = rs2;
#line 723 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_ != _tmp11_) {
#line 3711 "gitg-history-refs-list.c"
		gint _tmp12_ = 0;
		gint _tmp13_ = 0;
		gint _tmp14_ = 0;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = rs1;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = rs2;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_ < _tmp14_) {
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = -1;
#line 3723 "gitg-history-refs-list.c"
		} else {
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = 1;
#line 3727 "gitg-history-refs-list.c"
		}
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp12_;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3733 "gitg-history-refs-list.c"
	}
#line 728 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = row1;
#line 728 "/home/jesse/dev/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 728 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	head1 = _tmp16_;
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = row1;
#line 729 "/home/jesse/dev/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 729 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ref1 = _tmp18_;
#line 731 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp19_ = row2;
#line 731 "/home/jesse/dev/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 731 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	head2 = _tmp20_;
#line 732 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = row2;
#line 732 "/home/jesse/dev/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 732 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ref2 = _tmp22_;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = head1;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = head2;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp23_ == NULL) != (_tmp24_ == NULL)) {
#line 3765 "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 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = head1;
#line 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp26_ != NULL) {
#line 3777 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp27_ = NULL;
#line 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp27_ = head1;
#line 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp27_;
#line 3783 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefHeader* _tmp28_ = NULL;
#line 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp28_ = head2;
#line 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp28_;
#line 3790 "gitg-history-refs-list.c"
		}
#line 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = _g_object_ref0 (_tmp25_);
#line 736 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		head = _tmp29_;
#line 739 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = head;
#line 739 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp30_);
#line 739 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 739 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp32_) {
#line 3804 "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 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp34_ = head1;
#line 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp34_ != NULL) {
#line 3834 "gitg-history-refs-list.c"
				GitgHistoryRefRow* _tmp35_ = NULL;
#line 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp35_ = ref2;
#line 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = _tmp35_;
#line 3840 "gitg-history-refs-list.c"
			} else {
				GitgHistoryRefRow* _tmp36_ = NULL;
#line 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp36_ = ref1;
#line 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = _tmp36_;
#line 3847 "gitg-history-refs-list.c"
			}
#line 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp37_ = _g_object_ref0 (_tmp33_);
#line 742 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			rref = _tmp37_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp38_ = head;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp39_ = gitg_history_ref_header_get_ref_name (_tmp38_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp40_ = _tmp39_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp41_ = g_utf8_casefold (_tmp40_, (gssize) -1);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp42_ = _tmp41_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp43_ = rref;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp44_ = gitg_history_ref_row_get_reference (_tmp43_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp45_ = _tmp44_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp46_ = gitg_ref_get_parsed_name (_tmp45_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp47_ = _tmp46_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp48_ = _tmp47_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp49_ = gitg_parsed_ref_name_get_remote_name (_tmp48_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp50_ = _tmp49_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp51_ = _tmp50_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp52_ = g_utf8_casefold (_tmp51_, (gssize) -1);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp53_ = _tmp52_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp54_ = g_utf8_collate (_tmp42_, _tmp53_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp55_ = _tmp54_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp53_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp51_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp48_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp42_);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			cmp = _tmp55_;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp57_ = head1;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp57_ != NULL) {
#line 3903 "gitg-history-refs-list.c"
				gint _tmp58_ = 0;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp58_ = cmp;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp56_ = _tmp58_;
#line 3909 "gitg-history-refs-list.c"
			} else {
				gint _tmp59_ = 0;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp59_ = cmp;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp56_ = -_tmp59_;
#line 3916 "gitg-history-refs-list.c"
			}
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp56_;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (rref);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3934 "gitg-history-refs-list.c"
		} else {
			gint _tmp60_ = 0;
			GitgHistoryRefHeader* _tmp61_ = NULL;
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp61_ = head1;
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp61_ != NULL) {
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp60_ = -1;
#line 3944 "gitg-history-refs-list.c"
			} else {
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp60_ = 1;
#line 3948 "gitg-history-refs-list.c"
			}
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp60_;
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3964 "gitg-history-refs-list.c"
		}
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (head);
#line 3968 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp62_ = FALSE;
		GitgHistoryRefHeader* _tmp63_ = NULL;
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp63_ = head1;
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp63_ != NULL) {
#line 3976 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp64_ = NULL;
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp64_ = head2;
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = _tmp64_ != NULL;
#line 3982 "gitg-history-refs-list.c"
		} else {
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = FALSE;
#line 3986 "gitg-history-refs-list.c"
		}
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp62_) {
#line 3990 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp65_ = NULL;
			GitgHistoryRefHeader* _tmp66_ = NULL;
			gint _tmp67_ = 0;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp65_ = head1;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp66_ = head2;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp67_ = gitg_history_ref_header_compare_to (_tmp65_, _tmp66_);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp67_;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 4012 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefRow* _tmp68_ = NULL;
			GitgHistoryRefRow* _tmp69_ = NULL;
			GitgHistoryRefRowSortOrder _tmp70_ = 0;
			gint _tmp71_ = 0;
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp68_ = ref1;
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp69_ = ref2;
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp70_ = self->priv->d_ref_sort_order;
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp71_ = gitg_history_ref_row_compare_to (_tmp68_, _tmp69_, _tmp70_);
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp71_;
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 4038 "gitg-history-refs-list.c"
		}
	}
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref2);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (head2);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref1);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (head1);
#line 4049 "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 762 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 764 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_commits);
#line 764 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_commits = NULL;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_branches);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_branches = NULL;
#line 766 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_remotes);
#line 766 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_remotes = NULL;
#line 767 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_tags);
#line 767 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_tags = NULL;
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, (GBoxedCopyFunc) gitg_history_refs_list_remote_header_ref, (GDestroyNotify) gitg_history_refs_list_remote_header_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_header_map = _tmp0_;
#line 770 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gee_hash_map_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GITG_HISTORY_TYPE_REF_ROW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 770 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 770 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_ref_map = _tmp1_;
#line 772 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gtk_container_get_children ((GtkContainer*) self);
#line 4092 "gitg-history-refs-list.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 772 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		child_collection = _tmp2_;
#line 772 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 4100 "gitg-history-refs-list.c"
			GtkWidget* child = NULL;
#line 772 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			child = (GtkWidget*) child_it->data;
#line 4104 "gitg-history-refs-list.c"
			{
				GtkWidget* _tmp3_ = NULL;
#line 774 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp3_ = child;
#line 774 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				gtk_widget_destroy (_tmp3_);
#line 4111 "gitg-history-refs-list.c"
			}
		}
#line 772 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_list_free0 (child_collection);
#line 4116 "gitg-history-refs-list.c"
	}
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_remotes;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4__length1 = self->priv->d_remotes_length1;
#line 4122 "gitg-history-refs-list.c"
	{
		GitgRemote** remote_collection = NULL;
		gint remote_collection_length1 = 0;
		gint _remote_collection_size_ = 0;
		gint remote_it = 0;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection = _tmp4_;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection_length1 = _tmp4__length1;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		for (remote_it = 0; remote_it < _tmp4__length1; remote_it = remote_it + 1) {
#line 4134 "gitg-history-refs-list.c"
			GitgRemote* _tmp5_ = NULL;
			GitgRemote* remote = NULL;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = _g_object_ref0 (remote_collection[remote_it]);
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			remote = _tmp5_;
#line 4141 "gitg-history-refs-list.c"
			{
				GitgRemote* _tmp6_ = NULL;
				guint _tmp7_ = 0U;
#line 779 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp6_ = remote;
#line 779 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_parse_name ("tip-updated", GITG_TYPE_REMOTE, &_tmp7_, NULL, FALSE);
#line 779 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _gitg_history_refs_list_on_tip_updated_gitg_remote_tip_updated, self);
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (remote);
#line 4153 "gitg-history-refs-list.c"
			}
		}
	}
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = g_new0 (GitgRemote*, 0 + 1);
#line 782 "/home/jesse/dev/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 782 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp8_;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 4167 "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 785 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 785 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (a != NULL);
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_selected_row;
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4214 "gitg-history-refs-list.c"
	}
#line 792 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = a;
#line 792 "/home/jesse/dev/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 792 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ah = _tmp2_;
#line 793 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_selected_row;
#line 793 "/home/jesse/dev/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 793 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	bh = _tmp4_;
#line 795 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = ah;
#line 795 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = bh;
#line 795 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp5_ != NULL) != (_tmp6_ != NULL)) {
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4240 "gitg-history-refs-list.c"
	}
#line 800 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = ah;
#line 800 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_ != NULL) {
#line 4246 "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 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ah;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp9_);
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = bh;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp12_);
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp11_ == _tmp14_) {
#line 4268 "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 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = ah;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = gitg_history_ref_header_get_ref_name (_tmp15_);
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = bh;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = gitg_history_ref_header_get_ref_name (_tmp18_);
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = _tmp19_;
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = g_strcmp0 (_tmp17_, _tmp20_) == 0;
#line 4289 "gitg-history-refs-list.c"
		} else {
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = FALSE;
#line 4293 "gitg-history-refs-list.c"
		}
#line 802 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp8_) {
#line 4297 "gitg-history-refs-list.c"
			GtkListBoxRow* _tmp21_ = NULL;
#line 804 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = a;
#line 804 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, _tmp21_);
#line 805 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (self->priv->d_selected_row);
#line 805 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			self->priv->d_selected_row = NULL;
#line 4307 "gitg-history-refs-list.c"
		}
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4315 "gitg-history-refs-list.c"
	}
#line 811 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = a;
#line 811 "/home/jesse/dev/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 811 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ar = _tmp23_;
#line 812 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = self->priv->d_selected_row;
#line 812 "/home/jesse/dev/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 812 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	br = _tmp25_;
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = ar;
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_history_ref_row_get_reference (_tmp27_);
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = _tmp28_;
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp29_ == NULL) {
#line 4337 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp30_ = NULL;
		GitgRef* _tmp31_ = NULL;
		GitgRef* _tmp32_ = NULL;
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = br;
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_history_ref_row_get_reference (_tmp30_);
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = _tmp32_ == NULL;
#line 4349 "gitg-history-refs-list.c"
	} else {
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = FALSE;
#line 4353 "gitg-history-refs-list.c"
	}
#line 814 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp26_) {
#line 4357 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp33_ = NULL;
#line 816 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = a;
#line 816 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp33_);
#line 817 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 817 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (br);
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ar);
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4377 "gitg-history-refs-list.c"
	}
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp35_ = ar;
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp36_ = gitg_history_ref_row_get_reference (_tmp35_);
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp37_ = _tmp36_;
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp37_ == NULL) {
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = TRUE;
#line 4389 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp38_ = NULL;
		GitgRef* _tmp39_ = NULL;
		GitgRef* _tmp40_ = NULL;
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = br;
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp39_ = gitg_history_ref_row_get_reference (_tmp38_);
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = _tmp39_;
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = _tmp40_ == NULL;
#line 4402 "gitg-history-refs-list.c"
	}
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp34_) {
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (br);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ar);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4416 "gitg-history-refs-list.c"
	}
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp41_ = ar;
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp42_ = gitg_history_ref_row_get_reference (_tmp41_);
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp43_ = _tmp42_;
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp44_ = ggit_ref_get_name ((GgitRef*) _tmp43_);
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp45_ = br;
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp46_ = gitg_history_ref_row_get_reference (_tmp45_);
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp47_ = _tmp46_;
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp48_ = ggit_ref_get_name ((GgitRef*) _tmp47_);
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_strcmp0 (_tmp44_, _tmp48_) == 0) {
#line 4436 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp49_ = NULL;
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp49_ = a;
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp49_);
#line 829 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 829 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 4446 "gitg-history-refs-list.c"
	}
#line 785 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (br);
#line 785 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ar);
#line 785 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (bh);
#line 785 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ah);
#line 4456 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_add (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
#line 833 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 833 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (row != NULL);
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 835 "/home/jesse/dev/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 836 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = row;
#line 836 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_reselect_row (self, _tmp1_);
#line 4475 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_expanded_changed (GitgHistoryRefsList* self) {
#line 839 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_invalidate_filter ((GtkListBox*) self);
#line 4484 "gitg-history-refs-list.c"
}


static void _gitg_history_refs_list_expanded_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 847 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_expanded_changed ((GitgHistoryRefsList*) self);
#line 4491 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_init_header (GitgHistoryRefsList* self, GitgHistoryRefHeader* header) {
	GitgHistoryRefHeader* _tmp0_ = NULL;
	GitgHistoryRefHeader* _tmp1_ = NULL;
	GitgHistoryRefHeader* _tmp2_ = NULL;
	GitgRefType _tmp3_ = 0;
	GitgRefType _tmp4_ = 0;
	GitgHistoryRefsListHeaderState* _tmp7_ = NULL;
	gint _tmp7__length1 = 0;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (header != NULL);
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = header;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp0_);
#line 847 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = header;
#line 847 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GObject*) _tmp1_, "notify::expanded", (GCallback) _gitg_history_refs_list_expanded_changed_g_object_notify, self, 0);
#line 849 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = header;
#line 849 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp2_);
#line 849 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_;
#line 849 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ == GITG_REF_TYPE_TAG) {
#line 4523 "gitg-history-refs-list.c"
		GitgHistoryRefHeader* _tmp5_ = NULL;
#line 851 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = header;
#line 851 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_expanded (_tmp5_, FALSE);
#line 4529 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefHeader* _tmp6_ = NULL;
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = header;
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_expanded (_tmp6_, TRUE);
#line 4536 "gitg-history-refs-list.c"
	}
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = self->priv->d_expanded;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7__length1 = self->priv->d_expanded_length1;
#line 4542 "gitg-history-refs-list.c"
	{
		GitgHistoryRefsListHeaderState* state_collection = NULL;
		gint state_collection_length1 = 0;
		gint _state_collection_size_ = 0;
		gint state_it = 0;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		state_collection = _tmp7_;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		state_collection_length1 = _tmp7__length1;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		for (state_it = 0; state_it < _tmp7__length1; state_it = state_it + 1) {
#line 4554 "gitg-history-refs-list.c"
			GitgHistoryRefsListHeaderState _tmp8_ = {0};
			GitgHistoryRefsListHeaderState state = {0};
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_refs_list_header_state_copy (&state_collection[state_it], &_tmp8_);
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			state = _tmp8_;
#line 4561 "gitg-history-refs-list.c"
			{
				gboolean _tmp9_ = FALSE;
				GitgHistoryRefsListHeaderState _tmp10_ = {0};
				const gchar* _tmp11_ = NULL;
				GitgHistoryRefHeader* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp10_ = state;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp11_ = _tmp10_.name;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp12_ = header;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp13_ = gitg_history_ref_header_get_ref_name (_tmp12_);
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp14_ = _tmp13_;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (g_strcmp0 (_tmp11_, _tmp14_) == 0) {
#line 4581 "gitg-history-refs-list.c"
					GitgHistoryRefsListHeaderState _tmp15_ = {0};
					GitgRefType _tmp16_ = 0;
					GitgHistoryRefHeader* _tmp17_ = NULL;
					GitgRefType _tmp18_ = 0;
					GitgRefType _tmp19_ = 0;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp15_ = state;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp16_ = _tmp15_.type;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp17_ = header;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp18_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp17_);
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp19_ = _tmp18_;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = _tmp16_ == _tmp19_;
#line 4599 "gitg-history-refs-list.c"
				} else {
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = FALSE;
#line 4603 "gitg-history-refs-list.c"
				}
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp9_) {
#line 4607 "gitg-history-refs-list.c"
					GitgHistoryRefHeader* _tmp20_ = NULL;
					GitgHistoryRefsListHeaderState _tmp21_ = {0};
					gboolean _tmp22_ = FALSE;
#line 862 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp20_ = header;
#line 862 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp21_ = state;
#line 862 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp22_ = _tmp21_.expanded;
#line 862 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					gitg_history_ref_header_set_expanded (_tmp20_, _tmp22_);
#line 4619 "gitg-history-refs-list.c"
				}
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				gitg_history_refs_list_header_state_destroy (&state);
#line 4623 "gitg-history-refs-list.c"
			}
		}
	}
}


static GitgHistoryRefHeader* gitg_history_refs_list_add_header (GitgHistoryRefsList* self, GitgRefType ref_type, const gchar* name) {
	GitgHistoryRefHeader* result = NULL;
	GitgHistoryRefHeader* header = NULL;
	GitgRefType _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	GitgHistoryRefHeader* _tmp2_ = NULL;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = ref_type;
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = name;
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gitg_history_ref_header_new (_tmp0_, _tmp1_);
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp2_);
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp2_;
#line 870 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_init_header (self, header);
#line 872 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) header);
#line 873 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = header;
#line 873 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4658 "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 876 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 876 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (remote != NULL);
#line 876 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (refname != NULL);
#line 876 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (a != NULL);
#line 876 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (b != NULL);
#line 881 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = a;
#line 881 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = ggit_oid_is_zero (_tmp0_);
#line 881 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_) {
#line 4682 "gitg-history-refs-list.c"
		GitgRef* reference = NULL;
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
		GitgRef* _tmp14_ = NULL;
#line 885 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = gitg_history_refs_list_get_repository (self);
#line 885 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = _tmp2_;
#line 885 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_repository_clear_refs_cache (_tmp3_);
#line 4693 "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 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = gitg_history_refs_list_get_repository (self);
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_;
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = refname;
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = gitg_repository_lookup_reference (_tmp6_, _tmp7_, &_inner_error_);
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = _tmp8_;
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4713 "gitg-history-refs-list.c"
				goto __catch120_g_error;
			}
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = _tmp4_;
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = NULL;
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			reference = _tmp9_;
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp4_);
#line 4726 "gitg-history-refs-list.c"
		}
		goto __finally120;
		__catch120_g_error:
		{
			GError* e = NULL;
			FILE* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
			GError* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			e = _inner_error_;
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = stderr;
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = refname;
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = e;
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp12_->message;
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			fprintf (_tmp10_, "Failed to lookup new reference '%s': %s\n", _tmp11_, _tmp13_);
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_error_free0 (e);
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return;
#line 4756 "gitg-history-refs-list.c"
		}
		__finally120:
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 887 "/home/jesse/dev/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 887 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return;
#line 4769 "gitg-history-refs-list.c"
		}
#line 897 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = reference;
#line 897 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_add_ref (self, _tmp14_);
#line 881 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (reference);
#line 4777 "gitg-history-refs-list.c"
	} else {
		GgitOId* _tmp15_ = NULL;
		gboolean _tmp16_ = FALSE;
#line 899 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = b;
#line 899 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = ggit_oid_is_zero (_tmp15_);
#line 899 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp16_) {
#line 4787 "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 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp17_ = self->priv->d_ref_map;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp18_ = gee_abstract_map_get_keys ((GeeAbstractMap*) _tmp17_);
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp19_ = _tmp18_;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp20_ = _tmp19_;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp21_ = gee_iterable_iterator ((GeeIterable*) _tmp20_);
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp22_ = _tmp21_;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp20_);
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_reference_it = _tmp22_;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				while (TRUE) {
#line 4814 "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 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp23_ = _reference_it;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp24_ = gee_iterator_next (_tmp23_);
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					if (!_tmp24_) {
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						break;
#line 4831 "gitg-history-refs-list.c"
					}
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp25_ = _reference_it;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp26_ = gee_iterator_get (_tmp25_);
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					reference = (GitgRef*) _tmp26_;
#line 904 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp27_ = reference;
#line 904 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp28_ = ggit_ref_get_name ((GgitRef*) _tmp27_);
#line 904 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp29_ = refname;
#line 904 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					if (g_strcmp0 (_tmp28_, _tmp29_) == 0) {
#line 4847 "gitg-history-refs-list.c"
						GitgRepository* _tmp30_ = NULL;
						GitgRepository* _tmp31_ = NULL;
						GitgRef* _tmp32_ = NULL;
#line 906 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp30_ = gitg_history_refs_list_get_repository (self);
#line 906 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp31_ = _tmp30_;
#line 906 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						gitg_repository_clear_refs_cache (_tmp31_);
#line 907 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp32_ = reference;
#line 907 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						gitg_history_refs_list_remove_ref (self, _tmp32_);
#line 908 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (reference);
#line 908 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						break;
#line 4865 "gitg-history-refs-list.c"
					}
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_g_object_unref0 (reference);
#line 4869 "gitg-history-refs-list.c"
				}
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_reference_it);
#line 4873 "gitg-history-refs-list.c"
			}
		} else {
			GitgRepository* _tmp33_ = NULL;
			GitgRepository* _tmp34_ = NULL;
#line 915 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp33_ = gitg_history_refs_list_get_repository (self);
#line 915 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp34_ = _tmp33_;
#line 915 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_repository_clear_refs_cache (_tmp34_);
#line 916 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			g_signal_emit_by_name (self, "changed");
#line 4886 "gitg-history-refs-list.c"
		}
	}
}


static void _vala_array_add21 (GitgRemote*** array, int* length, int* size, GitgRemote* value) {
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((*length) == (*size)) {
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		*array = g_renew (GitgRemote*, *array, (*size) + 1);
#line 4899 "gitg-history-refs-list.c"
	}
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(*array)[(*length)++] = value;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(*array)[*length] = NULL;
#line 4905 "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 920 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 920 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 922 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	remote = NULL;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_remote_lookup;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != NULL) {
#line 4932 "gitg-history-refs-list.c"
		GitgExtRemoteLookup* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GitgRemote* _tmp3_ = NULL;
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->_remote_lookup;
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = name;
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_ext_remote_lookup_lookup (_tmp1_, _tmp2_);
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (remote);
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp3_;
#line 4946 "gitg-history-refs-list.c"
	}
#line 929 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = remote;
#line 929 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ != NULL) {
#line 4952 "gitg-history-refs-list.c"
		GitgRemote** _tmp5_ = NULL;
		gint _tmp5__length1 = 0;
		GitgRemote* _tmp6_ = NULL;
		GitgRemote* _tmp7_ = NULL;
		GitgRemote* _tmp8_ = NULL;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = self->priv->d_remotes;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5__length1 = self->priv->d_remotes_length1;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = remote;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _g_object_ref0 (_tmp6_);
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_vala_array_add21 (&self->priv->d_remotes, &self->priv->d_remotes_length1, &self->priv->_d_remotes_size_, _tmp7_);
#line 932 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = remote;
#line 932 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_connect_object (_tmp8_, "tip-updated", (GCallback) _gitg_history_refs_list_on_tip_updated_gitg_remote_tip_updated, self, 0);
#line 4972 "gitg-history-refs-list.c"
	}
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = name;
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = remote;
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_history_ref_header_new_remote (_tmp9_, _tmp10_);
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp11_);
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp11_;
#line 936 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_init_header (self, header);
#line 938 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = self->priv->d_header_map;
#line 938 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = name;
#line 938 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = gitg_history_refs_list_remote_header_new (header);
#line 938 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = _tmp14_;
#line 938 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp12_, _tmp13_, _tmp15_);
#line 938 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_gitg_history_refs_list_remote_header_unref0 (_tmp15_);
#line 939 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) header);
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = header;
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (remote);
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5006 "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 944 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 946 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 946 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = animation;
#line 946 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gitg_history_ref_row_new (_tmp0_, _tmp1_);
#line 946 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp2_);
#line 946 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp2_;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp3_);
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = row;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) _tmp4_);
#line 951 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = reference;
#line 951 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp5_ != NULL) {
#line 5043 "gitg-history-refs-list.c"
		GeeHashMap* _tmp6_ = NULL;
		GitgRef* _tmp7_ = NULL;
		GitgHistoryRefRow* _tmp8_ = NULL;
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = self->priv->d_ref_map;
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = reference;
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = row;
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, _tmp7_, _tmp8_);
#line 5055 "gitg-history-refs-list.c"
	}
#line 956 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = row;
#line 956 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5061 "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 959 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 959 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 963 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 963 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5096 "gitg-history-refs-list.c"
	}
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = reference;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_ref_get_parsed_name (_tmp3_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_parsed_ref_name_get_rtype (_tmp6_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_ == GITG_REF_TYPE_REMOTE;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp6_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp9_) {
#line 5116 "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 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = reference;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = gitg_ref_get_parsed_name (_tmp10_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = _tmp11_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = _tmp12_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = gitg_parsed_ref_name_get_remote_name (_tmp13_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = _tmp15_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp13_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp16_;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = self->priv->d_header_map;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = remote;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp17_, _tmp18_);
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!_tmp19_) {
#line 5160 "gitg-history-refs-list.c"
			const gchar* _tmp20_ = NULL;
			GitgHistoryRefHeader* _tmp21_ = NULL;
			GitgHistoryRefHeader* _tmp22_ = NULL;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = remote;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = gitg_history_refs_list_add_remote_header (self, _tmp20_);
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = _tmp21_;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp22_);
#line 5172 "gitg-history-refs-list.c"
		}
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = self->priv->d_header_map;
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp24_ = remote;
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp25_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp23_, _tmp24_);
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = (GitgHistoryRefsListRemoteHeader*) _tmp25_;
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = _tmp26_->references;
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp28_ = reference;
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp27_, _tmp28_);
#line 975 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_gitg_history_refs_list_remote_header_unref0 (_tmp26_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (remote);
#line 5192 "gitg-history-refs-list.c"
	}
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = reference;
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp30_ = animation;
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp31_ = gitg_history_refs_list_add_ref_row (self, _tmp29_, _tmp30_);
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp31_;
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5204 "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 981 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 981 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 983 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 983 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_add_ref_internal (self, _tmp0_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 983 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 983 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_ != NULL;
#line 983 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp2_);
#line 983 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_) {
#line 985 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit_by_name (self, "changed");
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5236 "gitg-history-refs-list.c"
	}
#line 989 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 989 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5242 "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 992 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (old_ref != NULL);
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (new_ref != NULL);
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	select = FALSE;
#line 996 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 996 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = old_ref;
#line 996 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 996 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 5276 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp3_ = NULL;
		GeeHashMap* _tmp4_ = NULL;
		GitgRef* _tmp5_ = NULL;
		gpointer _tmp6_ = NULL;
		GitgHistoryRefRow* _tmp7_ = NULL;
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = self->priv->d_ref_map;
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = old_ref;
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp4_, _tmp5_);
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = (GitgHistoryRefRow*) _tmp6_;
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		select = _tmp3_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_list_box_row_get_type (), GtkListBoxRow);
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp7_);
#line 5296 "gitg-history-refs-list.c"
	}
#line 1001 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = old_ref;
#line 1001 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_refs_list_remove_ref_internal (self, _tmp8_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 1001 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	removed = _tmp9_;
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = new_ref;
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_history_refs_list_add_ref_internal (self, _tmp10_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	newrow = _tmp11_;
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = select;
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp12_) {
#line 5314 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp13_ = NULL;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = newrow;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp13_);
#line 5320 "gitg-history-refs-list.c"
	}
#line 1009 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = removed;
#line 1009 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp15_) {
#line 1009 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = TRUE;
#line 5328 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp16_ = NULL;
#line 1009 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = newrow;
#line 1009 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp16_ != NULL;
#line 5335 "gitg-history-refs-list.c"
	}
#line 1009 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp14_) {
#line 1011 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit_by_name (self, "changed");
#line 5341 "gitg-history-refs-list.c"
	}
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (newrow);
#line 5345 "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 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 1018 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 1018 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = ggit_ref_get_reference_type ((GgitRef*) _tmp0_);
#line 1018 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != GGIT_REF_SYMBOLIC) {
#line 1020 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 1020 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5376 "gitg-history-refs-list.c"
	}
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = reference;
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_;
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_parsed_ref_name_get_rtype (_tmp5_);
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _tmp6_;
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_ == GITG_REF_TYPE_REMOTE;
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp5_);
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_) {
#line 5396 "gitg-history-refs-list.c"
		GitgRef* _tmp9_ = NULL;
		GitgParsedRefName* _tmp10_ = NULL;
		GitgParsedRefName* _tmp11_ = NULL;
		GitgParsedRefName* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = reference;
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_ref_get_parsed_name (_tmp9_);
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = _tmp11_;
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_parsed_ref_name_get_remote_branch (_tmp12_);
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (name);
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		name = _tmp14_;
#line 1027 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp12_);
#line 5421 "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 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = reference;
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = gitg_ref_get_parsed_name (_tmp15_);
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = _tmp16_;
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = _tmp17_;
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_parsed_ref_name_get_shortname (_tmp18_);
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (name);
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		name = _tmp20_;
#line 1031 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp18_);
#line 5447 "gitg-history-refs-list.c"
	}
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = name;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = g_strcmp0 (_tmp21_, "HEAD") == 0;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (name);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5457 "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 1037 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1037 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 1041 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 1041 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5496 "gitg-history-refs-list.c"
	}
#line 1044 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_ref_map;
#line 1044 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = reference;
#line 1044 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp3_, _tmp4_);
#line 1044 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = (GitgHistoryRefRow*) _tmp5_;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = animation;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ == GITG_HISTORY_REF_ANIMATION_NONE) {
#line 5510 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_ = NULL;
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = row;
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp7_);
#line 5516 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp8_ = NULL;
#line 1052 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = row;
#line 1052 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_unreveal (_tmp8_);
#line 5523 "gitg-history-refs-list.c"
	}
#line 1055 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = self->priv->d_ref_map;
#line 1055 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = reference;
#line 1055 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gee_abstract_map_unset ((GeeAbstractMap*) _tmp9_, _tmp10_, NULL);
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = reference;
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = gitg_ref_get_parsed_name (_tmp11_);
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = _tmp12_;
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = _tmp13_;
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = gitg_parsed_ref_name_get_rtype (_tmp14_);
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = _tmp15_;
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = _tmp16_ == GITG_REF_TYPE_REMOTE;
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp14_);
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp17_) {
#line 5549 "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 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = reference;
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_ref_get_parsed_name (_tmp18_);
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp21_ = _tmp20_;
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp22_ = gitg_parsed_ref_name_get_remote_name (_tmp21_);
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = _tmp22_;
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp24_ = _tmp23_;
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp21_);
#line 1059 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp24_;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp25_ = self->priv->d_header_map;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = remote;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp25_, _tmp26_);
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_header = (GitgHistoryRefsListRemoteHeader*) _tmp27_;
#line 1062 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp28_ = remote_header;
#line 1062 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = _tmp28_->references;
#line 1062 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = reference;
#line 1062 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp29_, _tmp30_);
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = remote_header;
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_->references;
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = gee_collection_get_is_empty ((GeeCollection*) _tmp32_);
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = _tmp33_;
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp34_) {
#line 5613 "gitg-history-refs-list.c"
			GitgHistoryRefsListRemoteHeader* _tmp35_ = NULL;
			GitgHistoryRefHeader* _tmp36_ = NULL;
			GeeHashMap* _tmp37_ = NULL;
			const gchar* _tmp38_ = NULL;
#line 1066 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = remote_header;
#line 1066 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp36_ = _tmp35_->header;
#line 1066 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_widget_destroy ((GtkWidget*) _tmp36_);
#line 1067 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp37_ = self->priv->d_header_map;
#line 1067 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp38_ = remote;
#line 1067 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_map_unset ((GeeAbstractMap*) _tmp37_, _tmp38_, NULL);
#line 5630 "gitg-history-refs-list.c"
		}
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_gitg_history_refs_list_remote_header_unref0 (remote_header);
#line 1057 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (remote);
#line 5636 "gitg-history-refs-list.c"
	}
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = TRUE;
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5644 "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 1074 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1074 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 1076 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 1076 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_remove_ref_internal (self, _tmp0_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 1076 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_) {
#line 1078 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit_by_name (self, "changed");
#line 1079 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 1079 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5668 "gitg-history-refs-list.c"
	}
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5674 "gitg-history-refs-list.c"
}


static gboolean gitg_history_refs_list_select_nullable_row (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	gboolean result = FALSE;
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GtkListBoxRow* _tmp2_ = NULL;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1087 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 1087 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 1089 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 1089 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5693 "gitg-history-refs-list.c"
	}
#line 1092 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = row;
#line 1092 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_select_row ((GtkListBox*) self, _tmp1_);
#line 1093 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 1093 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_scroll_to_row (self, _tmp2_);
#line 1095 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = TRUE;
#line 1095 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5707 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_select_all_commits (GitgHistoryRefsList* self) {
	gboolean result = FALSE;
	GitgHistoryRefRow* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 1098 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1100 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_all_commits;
#line 1100 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_select_nullable_row (self, (GtkListBoxRow*) _tmp0_);
#line 1100 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 1100 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5725 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_select_all_branches (GitgHistoryRefsList* self) {
	gboolean result = FALSE;
	GitgHistoryRefHeader* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 1103 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_all_branches;
#line 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_select_nullable_row (self, (GtkListBoxRow*) _tmp0_);
#line 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5743 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_select_all_remotes (GitgHistoryRefsList* self) {
	gboolean result = FALSE;
	GitgHistoryRefHeader* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 1108 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1110 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_all_remotes;
#line 1110 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_select_nullable_row (self, (GtkListBoxRow*) _tmp0_);
#line 1110 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 1110 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5761 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_select_all_tags (GitgHistoryRefsList* self) {
	gboolean result = FALSE;
	GitgHistoryRefHeader* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 1113 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_all_tags;
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_select_nullable_row (self, (GtkListBoxRow*) _tmp0_);
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5779 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_select_ref (GitgHistoryRefsList* self, GitgRef* reference) {
	gboolean result = FALSE;
	gchar* refname = NULL;
	GitgRef* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 1118 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1118 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = ggit_ref_get_name ((GgitRef*) _tmp0_);
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	refname = _tmp2_;
#line 5801 "gitg-history-refs-list.c"
	{
		GeeIterator* _ourref_it = NULL;
		GeeHashMap* _tmp3_ = NULL;
		GeeSet* _tmp4_ = NULL;
		GeeSet* _tmp5_ = NULL;
		GeeSet* _tmp6_ = NULL;
		GeeIterator* _tmp7_ = NULL;
		GeeIterator* _tmp8_ = NULL;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = self->priv->d_ref_map;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = gee_abstract_map_get_keys ((GeeAbstractMap*) _tmp3_);
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp4_;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = _tmp5_;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = gee_iterable_iterator ((GeeIterable*) _tmp6_);
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = _tmp7_;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp6_);
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_ourref_it = _tmp8_;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		while (TRUE) {
#line 5828 "gitg-history-refs-list.c"
			GeeIterator* _tmp9_ = NULL;
			gboolean _tmp10_ = FALSE;
			GitgRef* ourref = NULL;
			GeeIterator* _tmp11_ = NULL;
			gpointer _tmp12_ = NULL;
			GitgRef* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			const gchar* _tmp15_ = NULL;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = _ourref_it;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = gee_iterator_next (_tmp9_);
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (!_tmp10_) {
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				break;
#line 5845 "gitg-history-refs-list.c"
			}
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = _ourref_it;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = gee_iterator_get (_tmp11_);
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			ourref = (GitgRef*) _tmp12_;
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = ourref;
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp14_ = ggit_ref_get_name ((GgitRef*) _tmp13_);
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = refname;
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (g_strcmp0 (_tmp14_, _tmp15_) == 0) {
#line 5861 "gitg-history-refs-list.c"
				GitgHistoryRefRow* row = NULL;
				GeeHashMap* _tmp16_ = NULL;
				GitgRef* _tmp17_ = NULL;
				gpointer _tmp18_ = NULL;
				GitgHistoryRefRow* _tmp19_ = NULL;
				GitgHistoryRefRow* _tmp20_ = NULL;
#line 1128 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp16_ = self->priv->d_ref_map;
#line 1128 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp17_ = ourref;
#line 1128 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp18_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp16_, _tmp17_);
#line 1128 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				row = (GitgHistoryRefRow*) _tmp18_;
#line 1130 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp19_ = row;
#line 1130 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp19_);
#line 1131 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp20_ = row;
#line 1131 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				gitg_history_refs_list_scroll_to_row (self, (GtkListBoxRow*) _tmp20_);
#line 1132 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				result = TRUE;
#line 1132 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (row);
#line 1132 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (ourref);
#line 1132 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_ourref_it);
#line 1132 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_free0 (refname);
#line 1132 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				return result;
#line 5896 "gitg-history-refs-list.c"
			}
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ourref);
#line 5900 "gitg-history-refs-list.c"
		}
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_ourref_it);
#line 5904 "gitg-history-refs-list.c"
	}
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (refname);
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5912 "gitg-history-refs-list.c"
}


static void _vala_array_add22 (GitgHistoryRefsListHeaderState** array, int* length, int* size, const GitgHistoryRefsListHeaderState* value) {
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((*length) == (*size)) {
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		*array = g_renew (GitgHistoryRefsListHeaderState, *array, *size);
#line 5923 "gitg-history-refs-list.c"
	}
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(*array)[(*length)++] = *value;
#line 5927 "gitg-history-refs-list.c"
}


static void __lambda120_ (GitgHistoryRefsList* self, GtkWidget* child) {
	GitgHistoryRefHeader* header = NULL;
	GtkWidget* _tmp0_ = NULL;
	GitgHistoryRefHeader* _tmp1_ = NULL;
	GitgHistoryRefHeader* _tmp2_ = NULL;
#line 1143 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (child != NULL);
#line 1144 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = child;
#line 1144 "/home/jesse/dev/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 1144 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp1_;
#line 1146 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = header;
#line 1146 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ != NULL) {
#line 5948 "gitg-history-refs-list.c"
		GitgHistoryRefsListHeaderState* _tmp3_ = NULL;
		gint _tmp3__length1 = 0;
		GitgHistoryRefHeader* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		GitgHistoryRefHeader* _tmp8_ = NULL;
		GitgRefType _tmp9_ = 0;
		GitgRefType _tmp10_ = 0;
		GitgHistoryRefHeader* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		gboolean _tmp13_ = FALSE;
		GitgHistoryRefsListHeaderState _tmp14_ = {0};
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = self->priv->d_expanded;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3__length1 = self->priv->d_expanded_length1;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = header;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = gitg_history_ref_header_get_ref_name (_tmp4_);
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = _tmp5_;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = g_strdup (_tmp6_);
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = header;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp8_);
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp9_;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = header;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = gitg_history_ref_header_get_expanded (_tmp11_);
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = _tmp12_;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		memset (&_tmp14_, 0, sizeof (GitgHistoryRefsListHeaderState));
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp14_.name);
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_.name = _tmp7_;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_.type = _tmp10_;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_.expanded = _tmp13_;
#line 1148 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_vala_array_add22 (&self->priv->d_expanded, &self->priv->d_expanded_length1, &self->priv->_d_expanded_size_, &_tmp14_);
#line 5998 "gitg-history-refs-list.c"
	}
#line 1143 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (header);
#line 6002 "gitg-history-refs-list.c"
}


static void ___lambda120__gtk_callback (GtkWidget* widget, gpointer self) {
#line 1143 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	__lambda120_ ((GitgHistoryRefsList*) self, widget);
#line 6009 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_store_expanded_state (GitgHistoryRefsList* self) {
	GitgHistoryRefsListHeaderState* _tmp0_ = NULL;
#line 1139 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = g_new0 (GitgHistoryRefsListHeaderState, 0);
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_expanded = (_vala_GitgHistoryRefsListHeaderState_array_free (self->priv->d_expanded, self->priv->d_expanded_length1), NULL);
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_expanded = _tmp0_;
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_expanded_length1 = 0;
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_expanded_size_ = self->priv->d_expanded_length1;
#line 1143 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_container_foreach ((GtkContainer*) self, ___lambda120__gtk_callback, self);
#line 6029 "gitg-history-refs-list.c"
}


static Block74Data* block74_data_ref (Block74Data* _data74_) {
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&_data74_->_ref_count_);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return _data74_;
#line 6038 "gitg-history-refs-list.c"
}


static void block74_data_unref (void * _userdata_) {
	Block74Data* _data74_;
	_data74_ = (Block74Data*) _userdata_;
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_atomic_int_dec_and_test (&_data74_->_ref_count_)) {
#line 6047 "gitg-history-refs-list.c"
		GitgHistoryRefsList* self;
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self = _data74_->self;
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_data74_->head);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_slice_free (Block74Data, _data74_);
#line 6057 "gitg-history-refs-list.c"
	}
}


static gint ___lambda121_ (Block74Data* _data74_, const gchar* nm) {
	GitgHistoryRefsList* self;
	gint result = 0;
	GitgRef* r = NULL;
	GitgRef* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	GitgHistoryRefRow* row = NULL;
	GitgRef* _tmp8_ = NULL;
	GitgHistoryRefRow* _tmp9_ = NULL;
	gboolean _tmp10_ = FALSE;
	GitgHistoryRefRow* _tmp11_ = NULL;
	GError * _inner_error_ = NULL;
#line 1191 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data74_->self;
#line 1191 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (nm != NULL, 0);
#line 6078 "gitg-history-refs-list.c"
	{
		GitgRef* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GitgRef* _tmp3_ = NULL;
		GitgRef* _tmp4_ = NULL;
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->d_repository;
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = nm;
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_repository_lookup_reference (_tmp1_, _tmp2_, &_inner_error_);
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = _tmp3_;
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6095 "gitg-history-refs-list.c"
			goto __catch123_g_error;
		}
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp0_;
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = NULL;
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1196 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		r = _tmp4_;
#line 1194 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp0_);
#line 6108 "gitg-history-refs-list.c"
	}
	goto __finally123;
	__catch123_g_error:
	{
#line 1194 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1194 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 1197 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 0;
#line 1197 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1197 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 6123 "gitg-history-refs-list.c"
	}
	__finally123:
#line 1194 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6128 "gitg-history-refs-list.c"
		gint _tmp5_ = 0;
#line 1194 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1194 "/home/jesse/dev/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 1194 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1194 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return _tmp5_;
#line 6138 "gitg-history-refs-list.c"
	}
#line 1201 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = r;
#line 1201 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_refs_list_ref_is_a_symbolic_head (self, _tmp6_);
#line 1201 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_) {
#line 1203 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 0;
#line 1203 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1203 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 6152 "gitg-history-refs-list.c"
	}
#line 1206 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = r;
#line 1206 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_refs_list_add_ref_internal (self, _tmp8_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 1206 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp9_;
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = row;
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp11_ != NULL) {
#line 6164 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp12_ = NULL;
		gboolean _tmp13_ = FALSE;
		gboolean _tmp14_ = FALSE;
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = row;
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_history_ref_row_get_is_head (_tmp12_);
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp14_;
#line 6176 "gitg-history-refs-list.c"
	} else {
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = FALSE;
#line 6180 "gitg-history-refs-list.c"
	}
#line 1208 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_) {
#line 6184 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp15_ = NULL;
		GitgHistoryRefRow* _tmp16_ = NULL;
#line 1210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = row;
#line 1210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = _g_object_ref0 (_tmp15_);
#line 1210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_data74_->head);
#line 1210 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_->head = _tmp16_;
#line 6195 "gitg-history-refs-list.c"
	}
#line 1212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 0;
#line 1212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (r);
#line 1212 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6205 "gitg-history-refs-list.c"
}


static gint ____lambda121__ggit_references_name_callback (const gchar* name, gpointer self) {
	gint result;
	result = ___lambda121_ (self, name);
#line 1191 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6214 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_refresh (GitgHistoryRefsList* self) {
	Block74Data* _data74_;
	GtkListBoxRow* _tmp0_ = NULL;
	GtkListBoxRow* _tmp1_ = NULL;
	GitgRepository* _tmp2_ = NULL;
	GitgHistoryRefRow* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	GitgHistoryRefHeader* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GitgHistoryRefHeader* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	GitgHistoryRefHeader* _tmp9_ = NULL;
	GtkListBoxRow* sel = NULL;
	GtkListBoxRow* _tmp18_ = NULL;
	GtkListBoxRow* _tmp19_ = NULL;
	GtkListBoxRow* _tmp20_ = NULL;
	GError * _inner_error_ = NULL;
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_ = g_slice_new0 (Block74Data);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_->_ref_count_ = 1;
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_->self = g_object_ref (self);
#line 1159 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_freeze_notify ((GObject*) self);
#line 1161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 1161 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_selected_row = _tmp1_;
#line 1162 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_store_expanded_state (self);
#line 1164 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_clear (self);
#line 1166 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_repository;
#line 1166 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 1168 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 1168 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 1169 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_thaw_notify ((GObject*) self);
#line 1170 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		block74_data_unref (_data74_);
#line 1170 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_ = NULL;
#line 1170 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6273 "gitg-history-refs-list.c"
	}
#line 1173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_history_refs_list_add_ref_row (self, NULL, GITG_HISTORY_REF_ANIMATION_NONE);
#line 1173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_commits);
#line 1173 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_commits = _tmp3_;
#line 1174 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _ ("Branches");
#line 1174 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gitg_history_refs_list_add_header (self, GITG_REF_TYPE_BRANCH, _tmp4_);
#line 1174 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_branches);
#line 1174 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_branches = _tmp5_;
#line 1175 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _ ("Remotes");
#line 1175 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_refs_list_add_header (self, GITG_REF_TYPE_REMOTE, _tmp6_);
#line 1175 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_remotes);
#line 1175 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_remotes = _tmp7_;
#line 1176 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _ ("Tags");
#line 1176 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_refs_list_add_header (self, GITG_REF_TYPE_TAG, _tmp8_);
#line 1176 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_tags);
#line 1176 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_tags = _tmp9_;
#line 1178 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_->head = NULL;
#line 6307 "gitg-history-refs-list.c"
	{
		gboolean _tmp10_ = FALSE;
		GitgRepository* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
#line 1182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = self->priv->d_repository;
#line 1182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = ggit_repository_is_head_detached ((GgitRepository*) _tmp11_, &_inner_error_);
#line 1182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp12_;
#line 1182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6320 "gitg-history-refs-list.c"
			goto __catch121_g_error;
		}
#line 1182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp10_) {
#line 6325 "gitg-history-refs-list.c"
			GitgRef* _tmp13_ = NULL;
			GitgRepository* _tmp14_ = NULL;
			GitgRef* _tmp15_ = NULL;
			GitgHistoryRefRow* _tmp16_ = NULL;
#line 1184 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp14_ = self->priv->d_repository;
#line 1184 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = gitg_repository_lookup_reference (_tmp14_, "HEAD", &_inner_error_);
#line 1184 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp15_;
#line 1184 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6338 "gitg-history-refs-list.c"
				goto __catch121_g_error;
			}
#line 1184 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = gitg_history_refs_list_add_ref_internal (self, _tmp13_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 1184 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_data74_->head);
#line 1184 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_data74_->head = _tmp16_;
#line 1182 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp13_);
#line 6349 "gitg-history-refs-list.c"
		}
	}
	goto __finally121;
	__catch121_g_error:
	{
#line 1180 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1180 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 6359 "gitg-history-refs-list.c"
	}
	__finally121:
#line 1180 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1180 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		block74_data_unref (_data74_);
#line 1180 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_ = NULL;
#line 1180 "/home/jesse/dev/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 1180 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1180 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6374 "gitg-history-refs-list.c"
	}
	{
		GitgRepository* _tmp17_ = NULL;
#line 1191 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = self->priv->d_repository;
#line 1191 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		ggit_repository_references_foreach_name ((GgitRepository*) _tmp17_, ____lambda121__ggit_references_name_callback, _data74_, &_inner_error_);
#line 1191 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6384 "gitg-history-refs-list.c"
			goto __catch122_g_error;
		}
	}
	goto __finally122;
	__catch122_g_error:
	{
#line 1189 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1189 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 6395 "gitg-history-refs-list.c"
	}
	__finally122:
#line 1189 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1189 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		block74_data_unref (_data74_);
#line 1189 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_ = NULL;
#line 1189 "/home/jesse/dev/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 1189 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1189 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6410 "gitg-history-refs-list.c"
	}
#line 1216 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 1216 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_selected_row = NULL;
#line 1218 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp18_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1218 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp19_ = _g_object_ref0 (_tmp18_);
#line 1218 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	sel = _tmp19_;
#line 1220 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp20_ = sel;
#line 1220 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp20_ == NULL) {
#line 6426 "gitg-history-refs-list.c"
		GSettings* settings = NULL;
		GSettings* _tmp21_ = NULL;
		GitgHistoryDefaultSelection default_selection = 0;
		GSettings* _tmp22_ = NULL;
		gint _tmp23_ = 0;
		GtkListBoxRow* srow = NULL;
		GitgHistoryDefaultSelection _tmp24_ = 0;
		GtkListBoxRow* _tmp31_ = NULL;
#line 1222 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp21_ = g_settings_new ("org.gnome.gitg.preferences.history");
#line 1222 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		settings = _tmp21_;
#line 1223 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp22_ = settings;
#line 1223 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = g_settings_get_enum (_tmp22_, "default-selection");
#line 1223 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		default_selection = (GitgHistoryDefaultSelection) _tmp23_;
#line 1224 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		srow = NULL;
#line 1226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp24_ = default_selection;
#line 1226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		switch (_tmp24_) {
#line 1226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			case GITG_HISTORY_DEFAULT_SELECTION_CURRENT_BRANCH:
#line 6453 "gitg-history-refs-list.c"
			{
				GitgHistoryRefRow* _tmp25_ = NULL;
				GtkListBoxRow* _tmp26_ = NULL;
#line 1229 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp25_ = _data74_->head;
#line 1229 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp26_ = _g_object_ref0 ((GtkListBoxRow*) _tmp25_);
#line 1229 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (srow);
#line 1229 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				srow = _tmp26_;
#line 1230 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				break;
#line 6467 "gitg-history-refs-list.c"
			}
#line 1226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			case GITG_HISTORY_DEFAULT_SELECTION_ALL_BRANCHES:
#line 6471 "gitg-history-refs-list.c"
			{
				GitgHistoryRefHeader* _tmp27_ = NULL;
				GtkListBoxRow* _tmp28_ = NULL;
#line 1232 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp27_ = self->priv->d_all_branches;
#line 1232 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp28_ = _g_object_ref0 ((GtkListBoxRow*) _tmp27_);
#line 1232 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (srow);
#line 1232 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				srow = _tmp28_;
#line 1233 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				break;
#line 6485 "gitg-history-refs-list.c"
			}
#line 1226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			case GITG_HISTORY_DEFAULT_SELECTION_ALL_COMMITS:
#line 6489 "gitg-history-refs-list.c"
			{
				GitgHistoryRefRow* _tmp29_ = NULL;
				GtkListBoxRow* _tmp30_ = NULL;
#line 1235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp29_ = self->priv->d_all_commits;
#line 1235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp30_ = _g_object_ref0 ((GtkListBoxRow*) _tmp29_);
#line 1235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (srow);
#line 1235 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				srow = _tmp30_;
#line 1236 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				break;
#line 6503 "gitg-history-refs-list.c"
			}
			default:
#line 1226 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 6508 "gitg-history-refs-list.c"
		}
#line 1239 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = srow;
#line 1239 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp31_ != NULL) {
#line 6514 "gitg-history-refs-list.c"
			GtkListBoxRow* _tmp32_ = NULL;
#line 1242 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp32_ = srow;
#line 1242 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, _tmp32_);
#line 6520 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefRow* _tmp33_ = NULL;
#line 1247 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp33_ = self->priv->d_all_commits;
#line 1247 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp33_);
#line 6527 "gitg-history-refs-list.c"
		}
#line 1220 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (srow);
#line 1220 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (settings);
#line 6533 "gitg-history-refs-list.c"
	}
#line 1251 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_thaw_notify ((GObject*) self);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (sel);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	block74_data_unref (_data74_);
#line 1157 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_ = NULL;
#line 6543 "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 1254 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1256 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 1256 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 1258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 1258 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 6562 "gitg-history-refs-list.c"
	}
#line 1261 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = row;
#line 1261 "/home/jesse/dev/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 1261 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp2_;
#line 1261 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6572 "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 1264 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1264 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row != NULL, NULL);
#line 1266 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 1266 "/home/jesse/dev/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 1266 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 1266 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6592 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_real_row_selected (GtkListBox* base, GtkListBoxRow* row) {
	GitgHistoryRefsList * self;
#line 1382 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1384 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject*) self, "selection");
#line 6602 "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 1387 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1389 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1389 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1389 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	selrow = _tmp1_;
#line 1390 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = step;
#line 1390 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = n;
#line 1390 "/home/jesse/dev/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 1392 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = selrow;
#line 1392 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1392 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ != _tmp5_) {
#line 1394 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_notify ((GObject*) self, "selection");
#line 6637 "gitg-history-refs-list.c"
	}
#line 1387 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (selrow);
#line 6641 "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 1398 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1398 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (reference != NULL);
#line 1400 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 1400 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 1400 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 1400 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 6669 "gitg-history-refs-list.c"
		GitgExtRefNameEditingDone _tmp3_ = NULL;
		void* _tmp3__target = NULL;
#line 1402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = done;
#line 1402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3__target = done_target;
#line 1402 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ ("", TRUE, _tmp3__target);
#line 1403 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 1403 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		done = NULL;
#line 1403 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target = NULL;
#line 1403 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target_destroy_notify = NULL;
#line 1403 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6688 "gitg-history-refs-list.c"
	}
#line 1406 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_ref_map;
#line 1406 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = reference;
#line 1406 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp4_, _tmp5_);
#line 1406 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = (GitgHistoryRefRow*) _tmp6_;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = row;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = done;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8__target = done_target;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8__target_destroy_notify = done_target_destroy_notify;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 1407 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_begin_editing (_tmp7_, _tmp8_, _tmp8__target, _tmp8__target_destroy_notify);
#line 1398 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1398 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 1398 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 1398 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 1398 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 6724 "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 1410 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1410 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (origin != NULL, 0);
#line 1412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	while (TRUE) {
#line 6737 "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 1412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = origin;
#line 1412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = gtk_widget_get_window ((GtkWidget*) self);
#line 1412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!(_tmp0_ != _tmp1_)) {
#line 1412 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 6757 "gitg-history-refs-list.c"
		}
#line 1417 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = origin;
#line 1417 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gdk_window_get_position (_tmp2_, &_tmp3_, &_tmp4_);
#line 1417 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		wx = _tmp3_;
#line 1417 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		wy = _tmp4_;
#line 1419 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = y;
#line 1419 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = wy;
#line 1419 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		y = _tmp5_ + _tmp6_;
#line 1421 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = origin;
#line 1421 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gdk_window_get_parent (_tmp7_);
#line 1421 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		origin = _tmp8_;
#line 6779 "gitg-history-refs-list.c"
	}
#line 1424 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = y;
#line 1424 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp9_;
#line 1424 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6787 "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 1427 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1427 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (button != NULL, FALSE);
#line 1429 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = button;
#line 1429 "/home/jesse/dev/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 1429 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp1_;
#line 1431 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = button;
#line 1431 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_->y;
#line 1431 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = button;
#line 1431 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_->window;
#line 1431 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_y_in_window (self, (gint) _tmp3_, _tmp5_);
#line 1431 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	y = _tmp6_;
#line 1432 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = y;
#line 1432 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gtk_list_box_get_row_at_y ((GtkListBox*) self, _tmp7_);
#line 1432 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 1432 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp9_;
#line 1434 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = row;
#line 1434 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp11_ != NULL) {
#line 6843 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp12_ = NULL;
		GtkListBoxRow* _tmp13_ = NULL;
#line 1434 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = row;
#line 1434 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1434 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp12_ != _tmp13_;
#line 6852 "gitg-history-refs-list.c"
	} else {
#line 1434 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = FALSE;
#line 6856 "gitg-history-refs-list.c"
	}
#line 1434 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_) {
#line 6860 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp14_ = NULL;
#line 1436 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = row;
#line 1436 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp14_);
#line 6866 "gitg-history-refs-list.c"
	}
#line 1439 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = ret;
#line 1439 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1439 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6874 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_scroll_to_row (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GtkAdjustment* adj = NULL;
	GtkAdjustment* _tmp0_ = NULL;
	GtkAdjustment* _tmp1_ = NULL;
	GtkAllocation alloc = {0};
	GtkListBoxRow* _tmp2_ = NULL;
	GtkAllocation _tmp3_ = {0};
	gdouble v = 0.0;
	GtkAdjustment* _tmp4_ = NULL;
	gdouble _tmp5_ = 0.0;
	gdouble s = 0.0;
	GtkAdjustment* _tmp6_ = NULL;
	gdouble _tmp7_ = 0.0;
	GtkAllocation _tmp8_ = {0};
	gint _tmp9_ = 0;
	gdouble _tmp10_ = 0.0;
#line 1442 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1442 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (row != NULL);
#line 1444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_adjustment ((GtkListBox*) self);
#line 1444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1444 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	adj = _tmp1_;
#line 1447 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 1447 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_get_allocation ((GtkWidget*) _tmp2_, &_tmp3_);
#line 1447 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	alloc = _tmp3_;
#line 1449 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = adj;
#line 1449 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gtk_adjustment_get_value (_tmp4_);
#line 1449 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	v = _tmp5_;
#line 1450 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = adj;
#line 1450 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gtk_adjustment_get_page_size (_tmp6_);
#line 1450 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	s = _tmp7_;
#line 1452 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = alloc;
#line 1452 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_.y;
#line 1452 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = v;
#line 1452 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (((gdouble) _tmp9_) < _tmp10_) {
#line 6930 "gitg-history-refs-list.c"
		GtkAdjustment* _tmp11_ = NULL;
		GtkAllocation _tmp12_ = {0};
		gint _tmp13_ = 0;
#line 1454 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = adj;
#line 1454 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = alloc;
#line 1454 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = _tmp12_.y;
#line 1454 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_adjustment_set_value (_tmp11_, (gdouble) _tmp13_);
#line 6942 "gitg-history-refs-list.c"
	} else {
		GtkAllocation _tmp14_ = {0};
		gint _tmp15_ = 0;
		GtkAllocation _tmp16_ = {0};
		gint _tmp17_ = 0;
		gdouble _tmp18_ = 0.0;
		gdouble _tmp19_ = 0.0;
#line 1456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = alloc;
#line 1456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_.y;
#line 1456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = alloc;
#line 1456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = _tmp16_.height;
#line 1456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = v;
#line 1456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = s;
#line 1456 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (((gdouble) (_tmp15_ + _tmp17_)) > (_tmp18_ + _tmp19_)) {
#line 6964 "gitg-history-refs-list.c"
			GtkAdjustment* _tmp20_ = NULL;
			GtkAllocation _tmp21_ = {0};
			gint _tmp22_ = 0;
			GtkAllocation _tmp23_ = {0};
			gint _tmp24_ = 0;
			gdouble _tmp25_ = 0.0;
#line 1458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = adj;
#line 1458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = alloc;
#line 1458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = _tmp21_.y;
#line 1458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp23_ = alloc;
#line 1458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp24_ = _tmp23_.height;
#line 1458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = s;
#line 1458 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_adjustment_set_value (_tmp20_, (_tmp22_ + _tmp24_) - _tmp25_);
#line 6985 "gitg-history-refs-list.c"
		}
	}
#line 1442 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (adj);
#line 6990 "gitg-history-refs-list.c"
}


GitgHistoryRefsList* gitg_history_refs_list_construct (GType object_type) {
	GitgHistoryRefsList * self = NULL;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) g_object_new (object_type, NULL);
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 7000 "gitg-history-refs-list.c"
}


GitgHistoryRefsList* gitg_history_refs_list_new (void) {
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_refs_list_construct (GITG_HISTORY_TYPE_REFS_LIST);
#line 7007 "gitg-history-refs-list.c"
}


GitgExtRemoteLookup* gitg_history_refs_list_get_remote_lookup (GitgHistoryRefsList* self) {
	GitgExtRemoteLookup* result;
	GitgExtRemoteLookup* _tmp0_ = NULL;
#line 553 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 553 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_remote_lookup;
#line 553 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 553 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7022 "gitg-history-refs-list.c"
}


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


GitgRepository* gitg_history_refs_list_get_repository (GitgHistoryRefsList* self) {
	GitgRepository* result;
	GitgRepository* _tmp0_ = NULL;
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_repository;
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7056 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_set_repository (GitgHistoryRefsList* self, GitgRepository* value) {
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
#line 558 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 560 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 560 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 560 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 560 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_repository = _tmp1_;
#line 561 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_refresh (self);
#line 558 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "repository");
#line 7077 "gitg-history-refs-list.c"
}


static Block75Data* block75_data_ref (Block75Data* _data75_) {
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&_data75_->_ref_count_);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return _data75_;
#line 7086 "gitg-history-refs-list.c"
}


static void block75_data_unref (void * _userdata_) {
	Block75Data* _data75_;
	_data75_ = (Block75Data*) _userdata_;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_atomic_int_dec_and_test (&_data75_->_ref_count_)) {
#line 7095 "gitg-history-refs-list.c"
		GitgHistoryRefsList* self;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self = _data75_->self;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_data75_->ret);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_slice_free (Block75Data, _data75_);
#line 7105 "gitg-history-refs-list.c"
	}
}


static void _gitg_history_refs_list_references___lambda122_ (Block75Data* _data75_, GtkWidget* child) {
	GitgHistoryRefsList* self;
	GitgHistoryRefRow* row = NULL;
	GtkWidget* _tmp0_ = NULL;
	GitgHistoryRefRow* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	GitgHistoryRefRow* _tmp3_ = NULL;
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data75_->self;
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (child != NULL);
#line 602 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = child;
#line 602 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp0_) : NULL);
#line 602 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_ != NULL) {
#line 7131 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp4_ = NULL;
		GitgRef* _tmp5_ = NULL;
		GitgRef* _tmp6_ = NULL;
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = row;
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = gitg_history_ref_row_get_reference (_tmp4_);
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = _tmp5_;
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = _tmp6_ != NULL;
#line 7143 "gitg-history-refs-list.c"
	} else {
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = FALSE;
#line 7147 "gitg-history-refs-list.c"
	}
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 7151 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_ = NULL;
		GitgRef* _tmp8_ = NULL;
		GitgRef* _tmp9_ = NULL;
#line 606 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = row;
#line 606 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gitg_history_ref_row_get_reference (_tmp7_);
#line 606 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = _tmp8_;
#line 606 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data75_->ret, _tmp9_);
#line 7163 "gitg-history-refs-list.c"
	}
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 7167 "gitg-history-refs-list.c"
}


static void __gitg_history_refs_list_references___lambda122__gtk_callback (GtkWidget* widget, gpointer self) {
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_gitg_history_refs_list_references___lambda122_ (self, widget);
#line 7174 "gitg-history-refs-list.c"
}


GeeList* gitg_history_refs_list_get_references (GitgHistoryRefsList* self) {
	GeeList* result;
	Block75Data* _data75_;
	GeeLinkedList* _tmp0_ = NULL;
	GeeList* _tmp1_ = NULL;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_ = g_slice_new0 (Block75Data);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_->_ref_count_ = 1;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_->self = g_object_ref (self);
#line 599 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 599 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_->ret = _tmp0_;
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_container_foreach ((GtkContainer*) self, __gitg_history_refs_list_references___lambda122__gtk_callback, _data75_);
#line 610 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 ((GeeList*) _data75_->ret);
#line 610 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 610 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	block75_data_unref (_data75_);
#line 610 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_ = NULL;
#line 610 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7207 "gitg-history-refs-list.c"
}


const gchar* gitg_history_refs_list_get_reference_sort_order (GitgHistoryRefsList* self) {
	const gchar* result;
	GitgHistoryRefRowSortOrder _tmp0_ = 0;
#line 616 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 618 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_sort_order;
#line 618 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY) {
#line 620 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = "last-activity";
#line 620 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 7224 "gitg-history-refs-list.c"
	} else {
#line 624 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = "name";
#line 624 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 7230 "gitg-history-refs-list.c"
	}
}


void gitg_history_refs_list_set_reference_sort_order (GitgHistoryRefsList* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
#line 627 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 629 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 629 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_strcmp0 (_tmp0_, "last-activity") == 0) {
#line 631 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_ref_sort_order = GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY;
#line 7245 "gitg-history-refs-list.c"
	} else {
#line 635 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_ref_sort_order = GITG_HISTORY_REF_ROW_SORT_ORDER_NAME;
#line 7249 "gitg-history-refs-list.c"
	}
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_invalidate_sort ((GtkListBox*) self);
#line 627 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "reference-sort-order");
#line 7255 "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 1271 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1273 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 1273 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp0_;
#line 1275 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_container_get_children ((GtkContainer*) self);
#line 7273 "gitg-history-refs-list.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 1275 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		child_collection = _tmp1_;
#line 1275 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 7281 "gitg-history-refs-list.c"
			GtkWidget* child = NULL;
#line 1275 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			child = (GtkWidget*) child_it->data;
#line 7285 "gitg-history-refs-list.c"
			{
				GitgHistoryRefRow* r = NULL;
				GtkWidget* _tmp2_ = NULL;
				GitgHistoryRefRow* _tmp3_ = NULL;
				gboolean _tmp4_ = FALSE;
				GitgHistoryRefRow* _tmp5_ = NULL;
#line 1277 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp2_ = child;
#line 1277 "/home/jesse/dev/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 1277 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				r = _tmp3_;
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp5_ = r;
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp5_ != NULL) {
#line 7302 "gitg-history-refs-list.c"
					GitgHistoryRefRow* _tmp6_ = NULL;
					GitgRef* _tmp7_ = NULL;
					GitgRef* _tmp8_ = NULL;
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp6_ = r;
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp7_ = gitg_history_ref_row_get_reference (_tmp6_);
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp8_ = _tmp7_;
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp4_ = _tmp8_ != NULL;
#line 7314 "gitg-history-refs-list.c"
				} else {
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp4_ = FALSE;
#line 7318 "gitg-history-refs-list.c"
				}
#line 1279 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp4_) {
#line 7322 "gitg-history-refs-list.c"
					GeeLinkedList* _tmp9_ = NULL;
					GitgHistoryRefRow* _tmp10_ = NULL;
					GitgRef* _tmp11_ = NULL;
					GitgRef* _tmp12_ = NULL;
#line 1281 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = ret;
#line 1281 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp10_ = r;
#line 1281 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp11_ = gitg_history_ref_row_get_reference (_tmp10_);
#line 1281 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp12_ = _tmp11_;
#line 1281 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					gee_abstract_collection_add ((GeeAbstractCollection*) _tmp9_, _tmp12_);
#line 7337 "gitg-history-refs-list.c"
				}
#line 1275 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (r);
#line 7341 "gitg-history-refs-list.c"
			}
		}
#line 1275 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_list_free0 (child_collection);
#line 7346 "gitg-history-refs-list.c"
	}
	{
		gboolean _tmp13_ = FALSE;
		GitgRepository* _tmp14_ = NULL;
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = self->priv->d_repository;
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp14_ != NULL) {
#line 7355 "gitg-history-refs-list.c"
			gboolean _tmp15_ = FALSE;
			GitgRepository* _tmp16_ = NULL;
			gboolean _tmp17_ = FALSE;
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = self->priv->d_repository;
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = ggit_repository_is_head_detached ((GgitRepository*) _tmp16_, &_inner_error_);
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = _tmp17_;
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7367 "gitg-history-refs-list.c"
				goto __catch124_g_error;
			}
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp15_;
#line 7372 "gitg-history-refs-list.c"
		} else {
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = FALSE;
#line 7376 "gitg-history-refs-list.c"
		}
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_) {
#line 7380 "gitg-history-refs-list.c"
			GitgRef* _tmp18_ = NULL;
			GitgRepository* _tmp19_ = NULL;
			GitgRef* _tmp20_ = NULL;
			GeeLinkedList* _tmp21_ = NULL;
#line 1289 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = self->priv->d_repository;
#line 1289 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = gitg_repository_get_head (_tmp19_, &_inner_error_);
#line 1289 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = _tmp20_;
#line 1289 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7393 "gitg-history-refs-list.c"
				goto __catch124_g_error;
			}
#line 1289 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = ret;
#line 1289 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp21_, _tmp18_);
#line 1287 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp18_);
#line 7402 "gitg-history-refs-list.c"
		}
	}
	goto __finally124;
	__catch124_g_error:
	{
#line 1285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 7412 "gitg-history-refs-list.c"
	}
	__finally124:
#line 1285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ret);
#line 1285 "/home/jesse/dev/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 1285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1285 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return NULL;
#line 7425 "gitg-history-refs-list.c"
	}
#line 1293 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (GeeList*) ret;
#line 1293 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7431 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_get_is_header (GitgHistoryRefsList* self) {
	gboolean result;
	GtkListBoxRow* _tmp0_ = NULL;
#line 1299 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1299 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1299 "/home/jesse/dev/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 1299 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7446 "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 1304 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1306 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1306 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1306 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 1308 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 1308 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 1310 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 1310 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (row);
#line 1310 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 7479 "gitg-history-refs-list.c"
	}
#line 1313 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 1313 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_refs_list_get_ref_row (self, _tmp3_);
#line 1313 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ref_row = _tmp4_;
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = ref_row;
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ != NULL) {
#line 7491 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_ = NULL;
		GitgRef* _tmp8_ = NULL;
		GitgRef* _tmp9_ = NULL;
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = ref_row;
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gitg_history_ref_row_get_reference (_tmp7_);
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = _tmp8_;
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp9_ == NULL;
#line 7503 "gitg-history-refs-list.c"
	} else {
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = FALSE;
#line 7507 "gitg-history-refs-list.c"
	}
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp5_;
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref_row);
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1315 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7517 "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 1321 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1323 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1323 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1323 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 1325 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 1325 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 7545 "gitg-history-refs-list.c"
		GeeList* _tmp3_ = NULL;
		GeeList* _tmp4_ = NULL;
#line 1327 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_history_refs_list_get_all (self);
#line 1327 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_;
#line 1327 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp4_;
#line 1327 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (row);
#line 1327 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 7558 "gitg-history-refs-list.c"
	}
#line 1330 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = row;
#line 1330 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_get_ref_row (self, _tmp5_);
#line 1330 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ref_row = _tmp6_;
#line 1331 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 1331 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp7_;
#line 1333 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = ref_row;
#line 1333 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_ != NULL) {
#line 7574 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp9_ = NULL;
		GitgRef* _tmp10_ = NULL;
		GitgRef* _tmp11_ = NULL;
#line 1335 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ref_row;
#line 1335 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_history_ref_row_get_reference (_tmp9_);
#line 1335 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 1335 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp11_ == NULL) {
#line 7586 "gitg-history-refs-list.c"
			GeeList* _tmp12_ = NULL;
			GeeList* _tmp13_ = NULL;
#line 1337 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = gitg_history_refs_list_get_all (self);
#line 1337 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp12_;
#line 1337 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp13_;
#line 1337 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ret);
#line 1337 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref_row);
#line 1337 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (row);
#line 1337 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 7603 "gitg-history-refs-list.c"
		} else {
			GeeLinkedList* _tmp14_ = NULL;
			GitgHistoryRefRow* _tmp15_ = NULL;
			GitgRef* _tmp16_ = NULL;
			GitgRef* _tmp17_ = NULL;
#line 1341 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp14_ = ret;
#line 1341 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = ref_row;
#line 1341 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = gitg_history_ref_row_get_reference (_tmp15_);
#line 1341 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_;
#line 1341 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp14_, _tmp17_);
#line 7619 "gitg-history-refs-list.c"
		}
	} else {
		GitgHistoryRefHeader* ref_header = NULL;
		GtkListBoxRow* _tmp18_ = NULL;
		GitgHistoryRefHeader* _tmp19_ = NULL;
		gboolean found = FALSE;
		GList* _tmp20_ = NULL;
#line 1346 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = row;
#line 1346 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_history_refs_list_get_ref_header (self, _tmp18_);
#line 1346 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		ref_header = _tmp19_;
#line 1347 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		found = FALSE;
#line 1349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = gtk_container_get_children ((GtkContainer*) self);
#line 7637 "gitg-history-refs-list.c"
		{
			GList* child_collection = NULL;
			GList* child_it = NULL;
#line 1349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			child_collection = _tmp20_;
#line 1349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 7645 "gitg-history-refs-list.c"
				GtkWidget* child = NULL;
#line 1349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
				child = (GtkWidget*) child_it->data;
#line 7649 "gitg-history-refs-list.c"
				{
					gboolean _tmp21_ = FALSE;
#line 1351 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp21_ = found;
#line 1351 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
					if (_tmp21_) {
#line 7656 "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 1353 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp22_ = child;
#line 1353 "/home/jesse/dev/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 1353 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						nrow = _tmp23_;
#line 1354 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp24_ = nrow;
#line 1354 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp25_ = gitg_history_refs_list_get_ref_row (self, _tmp24_);
#line 1354 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						nref_row = _tmp25_;
#line 1356 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp26_ = nref_row;
#line 1356 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						if (_tmp26_ == NULL) {
#line 7680 "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 1358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp27_ = nrow;
#line 1358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp28_ = gitg_history_refs_list_get_ref_header (self, _tmp27_);
#line 1358 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							nref_header = _tmp28_;
#line 1360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp30_ = ref_header;
#line 1360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp31_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp30_);
#line 1360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp32_ = _tmp31_;
#line 1360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							if (_tmp32_) {
#line 1360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp29_ = TRUE;
#line 7704 "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 1361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp33_ = nref_header;
#line 1361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp34_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp33_);
#line 1361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp35_ = _tmp34_;
#line 1361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp36_ = ref_header;
#line 1361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp37_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp36_);
#line 1361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp38_ = _tmp37_;
#line 1361 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp29_ = _tmp35_ != _tmp38_;
#line 7726 "gitg-history-refs-list.c"
							}
#line 1360 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							if (_tmp29_) {
#line 1363 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nref_header);
#line 1363 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nref_row);
#line 1363 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nrow);
#line 1363 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
								break;
#line 7738 "gitg-history-refs-list.c"
							}
#line 1356 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_g_object_unref0 (nref_header);
#line 7742 "gitg-history-refs-list.c"
						} else {
							GeeLinkedList* _tmp39_ = NULL;
							GitgHistoryRefRow* _tmp40_ = NULL;
							GitgRef* _tmp41_ = NULL;
							GitgRef* _tmp42_ = NULL;
#line 1368 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp39_ = ret;
#line 1368 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp40_ = nref_row;
#line 1368 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp41_ = gitg_history_ref_row_get_reference (_tmp40_);
#line 1368 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp42_ = _tmp41_;
#line 1368 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							gee_abstract_collection_add ((GeeAbstractCollection*) _tmp39_, _tmp42_);
#line 7758 "gitg-history-refs-list.c"
						}
#line 1351 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (nref_row);
#line 1351 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (nrow);
#line 7764 "gitg-history-refs-list.c"
					} else {
						GtkWidget* _tmp43_ = NULL;
						GtkListBoxRow* _tmp44_ = NULL;
#line 1371 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp43_ = child;
#line 1371 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp44_ = row;
#line 1371 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
						if (_tmp43_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget)) {
#line 1373 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
							found = TRUE;
#line 7776 "gitg-history-refs-list.c"
						}
					}
				}
			}
#line 1349 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_list_free0 (child_collection);
#line 7783 "gitg-history-refs-list.c"
		}
#line 1333 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ref_header);
#line 7787 "gitg-history-refs-list.c"
	}
#line 1378 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (GeeList*) ret;
#line 1378 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref_row);
#line 1378 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1378 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7797 "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 584 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7806 "gitg-history-refs-list.c"
}


static gboolean _gitg_history_refs_list_filter_func_gtk_list_box_filter_func (GtkListBoxRow* row, gpointer self) {
	gboolean result;
	result = gitg_history_refs_list_filter_func ((GitgHistoryRefsList*) self, row);
#line 585 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7815 "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;
	GSettings* settings = NULL;
	GSettings* _tmp3_ = NULL;
	GSettings* _tmp4_ = NULL;
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	parent_class = G_OBJECT_CLASS (gitg_history_refs_list_parent_class);
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 579 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, (GBoxedCopyFunc) gitg_history_refs_list_remote_header_ref, (GDestroyNotify) gitg_history_refs_list_remote_header_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 579 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 579 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_header_map = _tmp0_;
#line 580 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gee_hash_map_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GITG_HISTORY_TYPE_REF_ROW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 580 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 580 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_ref_map = _tmp1_;
#line 581 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_set_selection_mode ((GtkListBox*) self, GTK_SELECTION_BROWSE);
#line 582 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = g_new0 (GitgRemote*, 0 + 1);
#line 582 "/home/jesse/dev/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 582 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp2_;
#line 582 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 582 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 584 "/home/jesse/dev/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 585 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_set_filter_func ((GtkListBox*) self, _gitg_history_refs_list_filter_func_gtk_list_box_filter_func, g_object_ref (self), g_object_unref);
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = g_settings_new ("org.gnome.gitg.preferences.history");
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	settings = _tmp3_;
#line 589 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = settings;
#line 589 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_settings_bind (_tmp4_, "reference-sort-order", (GObject*) self, "reference-sort-order", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (settings);
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return obj;
#line 7875 "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 544 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (h != NULL, NULL);
#line 544 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsListRemoteHeader*) g_type_create_instance (object_type);
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = h;
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->header);
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->header = _tmp1_;
#line 547 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_hash_set_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 547 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->references);
#line 547 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->references = _tmp2_;
#line 544 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 7904 "gitg-history-refs-list.c"
}


static GitgHistoryRefsListRemoteHeader* gitg_history_refs_list_remote_header_new (GitgHistoryRefHeader* h) {
#line 544 "/home/jesse/dev/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 7911 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_value_remote_header_init (GValue* value) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	value->data[0].v_pointer = NULL;
#line 7918 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_value_remote_header_free_value (GValue* value) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (value->data[0].v_pointer) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_unref (value->data[0].v_pointer);
#line 7927 "gitg-history-refs-list.c"
	}
}


static void gitg_history_refs_list_value_remote_header_copy_value (const GValue* src_value, GValue* dest_value) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (src_value->data[0].v_pointer) {
#line 539 "/home/jesse/dev/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 7937 "gitg-history-refs-list.c"
	} else {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		dest_value->data[0].v_pointer = NULL;
#line 7941 "gitg-history-refs-list.c"
	}
}


static gpointer gitg_history_refs_list_value_remote_header_peek_pointer (const GValue* value) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return value->data[0].v_pointer;
#line 7949 "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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (collect_values[0].v_pointer) {
#line 7956 "gitg-history-refs-list.c"
		GitgHistoryRefsListRemoteHeader* object;
		object = collect_values[0].v_pointer;
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		if (object->parent_instance.g_class == NULL) {
#line 539 "/home/jesse/dev/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 7963 "gitg-history-refs-list.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 539 "/home/jesse/dev/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 7967 "gitg-history-refs-list.c"
		}
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = gitg_history_refs_list_remote_header_ref (object);
#line 7971 "gitg-history-refs-list.c"
	} else {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 7975 "gitg-history-refs-list.c"
	}
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return NULL;
#line 7979 "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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!object_p) {
#line 539 "/home/jesse/dev/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 7990 "gitg-history-refs-list.c"
	}
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!value->data[0].v_pointer) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		*object_p = NULL;
#line 7996 "gitg-history-refs-list.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		*object_p = value->data[0].v_pointer;
#line 8000 "gitg-history-refs-list.c"
	} else {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		*object_p = gitg_history_refs_list_remote_header_ref (value->data[0].v_pointer);
#line 8004 "gitg-history-refs-list.c"
	}
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return NULL;
#line 8008 "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 539 "/home/jesse/dev/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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return G_PARAM_SPEC (spec);
#line 8022 "gitg-history-refs-list.c"
}


static gpointer gitg_history_refs_list_value_get_remote_header (const GValue* value) {
#line 539 "/home/jesse/dev/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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return value->data[0].v_pointer;
#line 8031 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_value_set_remote_header (GValue* value, gpointer v_object) {
	GitgHistoryRefsListRemoteHeader* old;
#line 539 "/home/jesse/dev/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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	old = value->data[0].v_pointer;
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (v_object) {
#line 539 "/home/jesse/dev/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 539 "/home/jesse/dev/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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = v_object;
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_ref (value->data[0].v_pointer);
#line 8051 "gitg-history-refs-list.c"
	} else {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 8055 "gitg-history-refs-list.c"
	}
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (old) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_unref (old);
#line 8061 "gitg-history-refs-list.c"
	}
}


static void gitg_history_refs_list_value_take_remote_header (GValue* value, gpointer v_object) {
	GitgHistoryRefsListRemoteHeader* old;
#line 539 "/home/jesse/dev/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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	old = value->data[0].v_pointer;
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (v_object) {
#line 539 "/home/jesse/dev/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 539 "/home/jesse/dev/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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = v_object;
#line 8080 "gitg-history-refs-list.c"
	} else {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 8084 "gitg-history-refs-list.c"
	}
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	if (old) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_remote_header_unref (old);
#line 8090 "gitg-history-refs-list.c"
	}
}


static void gitg_history_refs_list_remote_header_class_init (GitgHistoryRefsListRemoteHeaderClass * klass) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_remote_header_parent_class = g_type_class_peek_parent (klass);
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	((GitgHistoryRefsListRemoteHeaderClass *) klass)->finalize = gitg_history_refs_list_remote_header_finalize;
#line 8100 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_remote_header_instance_init (GitgHistoryRefsListRemoteHeader * self) {
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->ref_count = 1;
#line 8107 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_remote_header_finalize (GitgHistoryRefsListRemoteHeader* obj) {
	GitgHistoryRefsListRemoteHeader * self;
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, GitgHistoryRefsListRemoteHeader);
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_handlers_destroy (self);
#line 541 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->header);
#line 542 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->references);
#line 8121 "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 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&self->ref_count);
#line 539 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return instance;
#line 8146 "gitg-history-refs-list.c"
}


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


static void gitg_history_refs_list_header_state_copy (const GitgHistoryRefsListHeaderState* self, GitgHistoryRefsListHeaderState* dest) {
	GitgRefType _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = (*self).type;
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(*dest).type = _tmp0_;
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = (*self).name;
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 ((*dest).name);
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(*dest).name = _tmp2_;
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = (*self).expanded;
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	(*dest).expanded = _tmp3_;
#line 8185 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_header_state_destroy (GitgHistoryRefsListHeaderState* self) {
#line 522 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 ((*self).name);
#line 8192 "gitg-history-refs-list.c"
}


static GitgHistoryRefsListHeaderState* gitg_history_refs_list_header_state_dup (const GitgHistoryRefsListHeaderState* self) {
	GitgHistoryRefsListHeaderState* dup;
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	dup = g_new0 (GitgHistoryRefsListHeaderState, 1);
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_header_state_copy (self, dup);
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	return dup;
#line 8204 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_header_state_free (GitgHistoryRefsListHeaderState* self) {
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_header_state_destroy (self);
#line 519 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_free (self);
#line 8213 "gitg-history-refs-list.c"
}


static GType gitg_history_refs_list_header_state_get_type (void) {
	static volatile gsize gitg_history_refs_list_header_state_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_refs_list_header_state_type_id__volatile)) {
		GType gitg_history_refs_list_header_state_type_id;
		gitg_history_refs_list_header_state_type_id = g_boxed_type_register_static ("GitgHistoryRefsListHeaderState", (GBoxedCopyFunc) gitg_history_refs_list_header_state_dup, (GBoxedFreeFunc) gitg_history_refs_list_header_state_free);
		g_once_init_leave (&gitg_history_refs_list_header_state_type_id__volatile, gitg_history_refs_list_header_state_type_id);
	}
	return gitg_history_refs_list_header_state_type_id__volatile;
}


static void gitg_history_refs_list_class_init (GitgHistoryRefsListClass * klass) {
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_parent_class = g_type_class_peek_parent (klass);
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefsListPrivate));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	((GObjectClass *) klass)->dispose = (void (*)(GObject*)) gitg_history_refs_list_real_dispose;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkListBoxClass *) klass)->row_selected = (void (*)(GtkListBox*, GtkListBoxRow*)) gitg_history_refs_list_real_row_selected;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkListBoxClass *) klass)->move_cursor = (void (*)(GtkListBox*, GtkMovementStep, gint)) gitg_history_refs_list_real_move_cursor;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkWidgetClass *) klass)->button_press_event = (gboolean (*)(GtkWidget*, GdkEventButton*)) gitg_history_refs_list_real_button_press_event;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_refs_list_get_property;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_refs_list_set_property;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_history_refs_list_constructor;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_refs_list_finalize;
#line 517 "/home/jesse/dev/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 517 "/home/jesse/dev/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 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_REFERENCES, g_param_spec_object ("references", "references", "references", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_REFERENCE_SORT_ORDER, g_param_spec_string ("reference-sort-order", "reference-sort-order", "reference-sort-order", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 517 "/home/jesse/dev/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 517 "/home/jesse/dev/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 517 "/home/jesse/dev/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 517 "/home/jesse/dev/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 517 "/home/jesse/dev/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 8267 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_instance_init (GitgHistoryRefsList * self) {
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv = GITG_HISTORY_REFS_LIST_GET_PRIVATE (self);
#line 8274 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_finalize (GObject* obj) {
	GitgHistoryRefsList * self;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 526 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 527 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 528 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 529 "/home/jesse/dev/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 530 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_commits);
#line 531 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_branches);
#line 532 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_remotes);
#line 533 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_tags);
#line 535 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_expanded = (_vala_GitgHistoryRefsListHeaderState_array_free (self->priv->d_expanded, self->priv->d_expanded_length1), NULL);
#line 551 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 553 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_remote_lookup);
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_refs_list_parent_class)->finalize (obj);
#line 8306 "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 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_refs_list_get_remote_lookup (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REPOSITORY:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_refs_list_get_repository (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REFERENCES:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_references (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REFERENCE_SORT_ORDER:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_string (value, gitg_history_refs_list_get_reference_sort_order (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_ALL:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_all (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_IS_HEADER:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_refs_list_get_is_header (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_IS_ALL:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_refs_list_get_is_all (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_SELECTION:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_selection (self));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 8375 "gitg-history-refs-list.c"
		default:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 8381 "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 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_set_remote_lookup (self, g_value_get_object (value));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REPOSITORY:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_set_repository (self, g_value_get_object (value));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REFERENCE_SORT_ORDER:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_set_reference_sort_order (self, g_value_get_string (value));
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 8409 "gitg-history-refs-list.c"
		default:
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 8415 "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);
}



