/* gitg-history-refs-list.c generated by valac 0.35.5.2-9e6c0, 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;
enum  {
	GITG_HISTORY_REFS_LIST_CHANGED_SIGNAL,
	GITG_HISTORY_REFS_LIST_LAST_SIGNAL
};
static guint gitg_history_refs_list_signals[GITG_HISTORY_REFS_LIST_LAST_SIGNAL] = {0};

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_;
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = ref_type;
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (_tmp0_) {
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_NONE:
#line 449 "gitg-history-refs-list.c"
		{
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 0;
#line 28 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 455 "gitg-history-refs-list.c"
		}
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_BRANCH:
#line 459 "gitg-history-refs-list.c"
		{
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 1;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 465 "gitg-history-refs-list.c"
		}
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_REMOTE:
#line 469 "gitg-history-refs-list.c"
		{
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 2;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 475 "gitg-history-refs-list.c"
		}
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REF_TYPE_TAG:
#line 479 "gitg-history-refs-list.c"
		{
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = 3;
#line 34 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 485 "gitg-history-refs-list.c"
		}
		default:
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 490 "gitg-history-refs-list.c"
	}
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 4;
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 496 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 48 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return GITG_HISTORY_REF_TYPED_GET_INTERFACE (self)->get_ref_type (self);
#line 517 "gitg-history-refs-list.c"
}


static void gitg_history_ref_typed_base_init (GitgHistoryRefTypedIface * iface) {
#line 46 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	static gboolean initialized = FALSE;
#line 46 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!initialized) {
#line 46 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		initialized = TRUE;
#line 46 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_interface_install_property (iface, g_param_spec_enum ("ref-type", "ref-type", "ref-type", GITG_TYPE_REF_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 530 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_on_child_revealed ((GitgHistoryRefRow*) self, _sender, pspec);
#line 563 "gitg-history-refs-list.c"
}


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


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


GitgHistoryRefRow* gitg_history_ref_row_construct (GType object_type, GitgRef* reference, GitgHistoryRefAnimation animation) {
	GitgHistoryRefRow * self = NULL;
	GitgRef* _tmp0_;
	GitgRef* _tmp1_;
	GitgHistoryRefAnimation _tmp18_;
	GtkLabel* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	gboolean _tmp24_;
	gboolean _tmp25_;
	GitgRef* _tmp28_;
	GitgRefType _tmp33_;
	GitgRefType _tmp34_;
	GtkRevealer* _tmp39_;
	gboolean _tmp40_ = FALSE;
	GitgRef* _tmp41_;
	GError * _inner_error_ = NULL;
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) g_object_new (object_type, NULL);
#line 93 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 93 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_set_reference (self, _tmp0_);
#line 95 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 95 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != NULL) {
#line 608 "gitg-history-refs-list.c"
		{
			GgitRef* _tmp2_;
			GitgRef* _tmp3_;
			GgitRef* _tmp4_;
			GgitObject* obj;
			GgitRef* _tmp5_;
			GgitRef* _tmp6_;
			GgitObject* _tmp7_;
			GgitObject* _tmp8_;
			GgitObject* _tmp9_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = reference;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = ggit_ref_resolve ((GgitRef*) _tmp3_, &_inner_error_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = _tmp4_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 627 "gitg-history-refs-list.c"
				goto __catch117_g_error;
			}
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = _tmp2_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = NULL;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = ggit_ref_lookup (_tmp6_, &_inner_error_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = _tmp7_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp6_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			obj = _tmp8_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 99 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp2_);
#line 648 "gitg-history-refs-list.c"
				goto __catch117_g_error;
			}
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = obj;
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, ggit_tag_get_type ())) {
#line 655 "gitg-history-refs-list.c"
				GgitObject* _tmp10_;
				GgitSignature* _tmp11_;
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp10_ = obj;
#line 103 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (self->priv->d_updated);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				self->priv->d_updated = _tmp11_;
#line 666 "gitg-history-refs-list.c"
			} else {
				GgitObject* _tmp12_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp12_ = obj;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, ggit_commit_get_type ())) {
#line 673 "gitg-history-refs-list.c"
					GgitObject* _tmp13_;
					GgitSignature* _tmp14_;
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp13_ = obj;
#line 107 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_g_object_unref0 (self->priv->d_updated);
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					self->priv->d_updated = _tmp14_;
#line 684 "gitg-history-refs-list.c"
				}
			}
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (obj);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp2_);
#line 691 "gitg-history-refs-list.c"
		}
		goto __finally117;
		__catch117_g_error:
		{
			GError* e = NULL;
			FILE* _tmp15_;
			GError* _tmp16_;
			const gchar* _tmp17_;
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			e = _inner_error_;
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = stderr;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = e;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_->message;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			fprintf (_tmp15_, "%s\n", _tmp17_);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_error_free0 (e);
#line 714 "gitg-history-refs-list.c"
		}
		__finally117:
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 97 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return NULL;
#line 725 "gitg-history-refs-list.c"
		}
	}
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp18_ = animation;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp18_ == GITG_HISTORY_REF_ANIMATION_ANIMATE) {
#line 732 "gitg-history-refs-list.c"
		GtkRevealer* _tmp19_;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = self->priv->d_revealer;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_revealer_set_transition_type (_tmp19_, GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN);
#line 738 "gitg-history-refs-list.c"
	} else {
		GtkRevealer* _tmp20_;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = self->priv->d_revealer;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_revealer_set_reveal_child (_tmp20_, TRUE);
#line 745 "gitg-history-refs-list.c"
	}
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = self->priv->d_label;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = gitg_history_ref_row_label_text (self);
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = _tmp22_;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_label_set_label (_tmp21_, _tmp23_);
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp23_);
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = gitg_history_ref_row_get_is_head (self);
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp25_ = _tmp24_;
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp25_) {
#line 763 "gitg-history-refs-list.c"
		GtkImage* _tmp26_;
		GtkImage* _tmp27_;
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = self->priv->d_icon;
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_set (_tmp26_, "icon-name", "object-select-symbolic", NULL);
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = self->priv->d_icon;
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_show ((GtkWidget*) _tmp27_);
#line 774 "gitg-history-refs-list.c"
	}
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = reference;
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp28_ != NULL) {
#line 780 "gitg-history-refs-list.c"
		GtkWidget* _tmp29_;
		GtkWidget* _tmp30_;
		gint _tmp31_;
		gint _tmp32_;
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = gtk_bin_get_child ((GtkBin*) self);
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = gtk_bin_get_child ((GtkBin*) self);
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gtk_widget_get_margin_start (_tmp30_);
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_set_margin_start (_tmp30_, _tmp32_ + 12);
#line 795 "gitg-history-refs-list.c"
	}
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp33_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) self);
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp34_ = _tmp33_;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp34_ == GITG_REF_TYPE_REMOTE) {
#line 803 "gitg-history-refs-list.c"
		GtkWidget* _tmp35_;
		GtkWidget* _tmp36_;
		gint _tmp37_;
		gint _tmp38_;
#line 140 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp35_ = gtk_bin_get_child ((GtkBin*) self);
#line 140 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp36_ = gtk_bin_get_child ((GtkBin*) self);
#line 140 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp37_ = gtk_widget_get_margin_start (_tmp36_);
#line 140 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = _tmp37_;
#line 140 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_set_margin_start (_tmp36_, _tmp38_ + 12);
#line 818 "gitg-history-refs-list.c"
	}
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp39_ = self->priv->d_revealer;
#line 143 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp41_ = reference;
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp41_ != NULL) {
#line 828 "gitg-history-refs-list.c"
		GitgRef* _tmp42_;
		gboolean _tmp43_;
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp42_ = reference;
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp43_ = ggit_ref_is_branch ((GgitRef*) _tmp42_);
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = _tmp43_;
#line 837 "gitg-history-refs-list.c"
	} else {
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = FALSE;
#line 841 "gitg-history-refs-list.c"
	}
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp40_) {
#line 845 "gitg-history-refs-list.c"
		GitgBranch* branch;
		GitgRef* _tmp44_;
		GitgBranch* _tmp45_;
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp44_ = reference;
#line 147 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		branch = _tmp45_;
#line 855 "gitg-history-refs-list.c"
		{
			GitgRef* upstream;
			GitgBranch* _tmp46_;
			GitgRef* _tmp47_;
			gsize ahead;
			gsize behind;
			GgitRef* _tmp48_;
			GitgRef* _tmp49_;
			GgitRef* _tmp50_;
			GgitRef* _tmp51_;
			GitgRef* _tmp52_;
			GgitRef* _tmp53_;
			GitgRef* _tmp54_;
			GitgRepository* _tmp55_;
			GitgRepository* _tmp56_;
			GgitRef* _tmp57_;
			GgitRef* _tmp58_;
			GgitOId* _tmp59_;
			GgitOId* _tmp60_;
			GgitRef* _tmp61_;
			GgitRef* _tmp62_;
			GgitOId* _tmp63_;
			GgitOId* _tmp64_;
			gsize _tmp65_ = 0UL;
			gsize _tmp66_ = 0UL;
			gboolean _tmp67_ = FALSE;
			gsize _tmp68_;
#line 151 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp46_ = branch;
#line 151 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp47_ = gitg_branch_get_upstream (_tmp46_, &_inner_error_);
#line 151 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			upstream = _tmp47_;
#line 151 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 891 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			ahead = (gsize) 0;
#line 154 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			behind = (gsize) 0;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp49_ = reference;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp50_ = ggit_ref_resolve ((GgitRef*) _tmp49_, &_inner_error_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp48_ = _tmp50_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (upstream);
#line 908 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp52_ = upstream;
#line 157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp53_ = ggit_ref_resolve ((GgitRef*) _tmp52_, &_inner_error_);
#line 157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp51_ = _tmp53_;
#line 157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp48_);
#line 157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (upstream);
#line 923 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp54_ = reference;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp55_ = gitg_ref_get_owner (_tmp54_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp56_ = _tmp55_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp57_ = _tmp48_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp48_ = NULL;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp58_ = _tmp57_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp59_ = ggit_ref_get_target (_tmp58_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp60_ = _tmp59_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp61_ = _tmp51_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp51_ = NULL;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = _tmp61_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp63_ = ggit_ref_get_target (_tmp62_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp64_ = _tmp63_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			ggit_repository_get_ahead_behind ((GgitRepository*) _tmp56_, _tmp60_, _tmp64_, &_tmp65_, &_tmp66_, &_inner_error_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			ahead = _tmp65_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			behind = _tmp66_;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			__vala_GgitOId_free0 (_tmp64_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp62_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			__vala_GgitOId_free0 (_tmp60_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp58_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp56_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp51_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp48_);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (upstream);
#line 976 "gitg-history-refs-list.c"
				goto __catch118_g_error;
			}
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp68_ = ahead;
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp68_ != ((gsize) 0)) {
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp67_ = TRUE;
#line 985 "gitg-history-refs-list.c"
			} else {
				gsize _tmp69_;
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp69_ = behind;
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp67_ = _tmp69_ != ((gsize) 0);
#line 992 "gitg-history-refs-list.c"
			}
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp67_) {
#line 996 "gitg-history-refs-list.c"
				gboolean _tmp70_ = FALSE;
				gsize _tmp71_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp71_ = ahead;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp71_ != ((gsize) 0)) {
#line 1003 "gitg-history-refs-list.c"
					gsize _tmp72_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp72_ = behind;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp70_ = _tmp72_ != ((gsize) 0);
#line 1009 "gitg-history-refs-list.c"
				} else {
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp70_ = FALSE;
#line 1013 "gitg-history-refs-list.c"
				}
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp70_) {
#line 1017 "gitg-history-refs-list.c"
					GtkLabel* _tmp73_;
					gsize _tmp74_;
					gsize _tmp75_;
					gchar* _tmp76_;
					gchar* _tmp77_;
#line 165 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp73_ = self->priv->d_ahead_behind;
#line 165 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp74_ = ahead;
#line 165 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp75_ = behind;
#line 165 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp76_ = g_strdup_printf (_ ("%zu ahead, %zu behind"), _tmp74_, _tmp75_);
#line 165 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp77_ = _tmp76_;
#line 165 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					gtk_label_set_label (_tmp73_, _tmp77_);
#line 165 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_g_free0 (_tmp77_);
#line 1037 "gitg-history-refs-list.c"
				} else {
					gsize _tmp78_;
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp78_ = ahead;
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					if (_tmp78_ != ((gsize) 0)) {
#line 1044 "gitg-history-refs-list.c"
						GtkLabel* _tmp79_;
						gsize _tmp80_;
						gchar* _tmp81_;
						gchar* _tmp82_;
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp79_ = self->priv->d_ahead_behind;
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp80_ = ahead;
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp81_ = g_strdup_printf (_ ("%zu ahead"), _tmp80_);
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp82_ = _tmp81_;
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						gtk_label_set_label (_tmp79_, _tmp82_);
#line 169 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_free0 (_tmp82_);
#line 1061 "gitg-history-refs-list.c"
					} else {
						GtkLabel* _tmp83_;
						gsize _tmp84_;
						gchar* _tmp85_;
						gchar* _tmp86_;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp83_ = self->priv->d_ahead_behind;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp84_ = behind;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp85_ = g_strdup_printf (_ ("%zu behind"), _tmp84_);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp86_ = _tmp85_;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						gtk_label_set_label (_tmp83_, _tmp86_);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_free0 (_tmp86_);
#line 1079 "gitg-history-refs-list.c"
					}
				}
			}
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp51_);
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp48_);
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (upstream);
#line 1089 "gitg-history-refs-list.c"
		}
		goto __finally118;
		__catch118_g_error:
		{
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 1098 "gitg-history-refs-list.c"
		}
		__finally118:
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 149 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return NULL;
#line 1111 "gitg-history-refs-list.c"
		}
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (branch);
#line 1115 "gitg-history-refs-list.c"
	}
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 1119 "gitg-history-refs-list.c"
}


GitgHistoryRefRow* gitg_history_ref_row_new (GitgRef* reference, GitgHistoryRefAnimation animation) {
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_row_construct (GITG_HISTORY_TYPE_REF_ROW, reference, animation);
#line 1126 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_on_child_revealed (GitgHistoryRefRow* self, GObject* obj, GParamSpec* spec) {
	GtkRevealer* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
#line 185 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 185 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (obj != NULL);
#line 185 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (spec != NULL);
#line 187 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 187 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_revealer_get_child_revealed (_tmp0_);
#line 187 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 187 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 1148 "gitg-history-refs-list.c"
		GtkAllocation alloc = {0};
		GtkRevealer* _tmp3_;
		GtkAllocation _tmp4_ = {0};
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = self->priv->d_revealer;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_get_allocation ((GtkWidget*) _tmp3_, &_tmp4_);
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		alloc = _tmp4_;
#line 192 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_destroy ((GtkWidget*) self);
#line 1160 "gitg-history-refs-list.c"
	}
}


static void gitg_history_ref_row_real_map (GtkWidget* base) {
	GitgHistoryRefRow * self;
	GtkRevealer* _tmp0_;
#line 196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 198 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	GTK_WIDGET_CLASS (gitg_history_ref_row_parent_class)->map ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_row_get_type (), GtkListBoxRow));
#line 200 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_revealer;
#line 200 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_revealer_set_reveal_child (_tmp0_, TRUE);
#line 1176 "gitg-history-refs-list.c"
}


static gchar* gitg_history_ref_row_label_text (GitgHistoryRefRow* self) {
	gchar* result = NULL;
	GitgRef* _tmp0_;
	GitgParsedRefName* pn;
	GitgRef* _tmp2_;
	GitgParsedRefName* _tmp3_;
	GitgParsedRefName* _tmp4_;
	GitgParsedRefName* _tmp5_;
	GitgRefType _tmp6_;
	GitgRefType _tmp7_;
	GitgParsedRefName* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
#line 203 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 205 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 205 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 1199 "gitg-history-refs-list.c"
		gchar* _tmp1_;
#line 207 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = g_strdup (_ ("All commits"));
#line 207 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp1_;
#line 207 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1207 "gitg-history-refs-list.c"
	}
#line 210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->_reference;
#line 210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_;
#line 210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	pn = _tmp4_;
#line 212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = pn;
#line 212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_parsed_ref_name_get_rtype (_tmp5_);
#line 212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _tmp6_;
#line 212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_ == GITG_REF_TYPE_REMOTE) {
#line 1225 "gitg-history-refs-list.c"
		GitgParsedRefName* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = pn;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = gitg_parsed_ref_name_get_remote_branch (_tmp8_);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp9_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp10_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pn);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1241 "gitg-history-refs-list.c"
	}
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = pn;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = gitg_parsed_ref_name_get_shortname (_tmp11_);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = _tmp12_;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp13_;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pn);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1255 "gitg-history-refs-list.c"
}


static gint gitg_history_ref_row_compare_type (GitgHistoryRefRow* self, GitgHistoryRefRow* other) {
	gint result = 0;
	GitgParsedRefName* pnme;
	GitgRef* _tmp0_;
	GitgParsedRefName* _tmp1_;
	GitgParsedRefName* _tmp2_;
	GitgParsedRefName* pnot;
	GitgHistoryRefRow* _tmp3_;
	GitgRef* _tmp4_;
	GitgParsedRefName* _tmp5_;
	GitgParsedRefName* _tmp6_;
	GitgParsedRefName* _tmp7_;
	GitgRefType _tmp8_;
	GitgRefType _tmp9_;
	GitgParsedRefName* _tmp10_;
	GitgRefType _tmp11_;
	GitgRefType _tmp12_;
	GitgParsedRefName* _tmp27_;
	GitgRefType _tmp28_;
	GitgRefType _tmp29_;
#line 243 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 243 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 245 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 245 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_ref_get_parsed_name (_tmp0_);
#line 245 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 245 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	pnme = _tmp2_;
#line 246 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = other;
#line 246 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_->priv->_reference;
#line 246 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gitg_ref_get_parsed_name (_tmp4_);
#line 246 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 246 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	pnot = _tmp6_;
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = pnme;
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gitg_parsed_ref_name_get_rtype (_tmp7_);
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_;
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = pnot;
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_parsed_ref_name_get_rtype (_tmp10_);
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = _tmp11_;
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp9_ != _tmp12_) {
#line 1315 "gitg-history-refs-list.c"
		gint i1;
		GitgParsedRefName* _tmp13_;
		GitgRefType _tmp14_;
		GitgRefType _tmp15_;
		gint _tmp16_;
		gint i2;
		GitgParsedRefName* _tmp17_;
		GitgRefType _tmp18_;
		GitgRefType _tmp19_;
		gint _tmp20_;
		gint _tmp21_ = 0;
		gint _tmp22_;
		gint _tmp23_;
#line 250 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = pnme;
#line 250 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = gitg_parsed_ref_name_get_rtype (_tmp13_);
#line 250 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_;
#line 250 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = gitg_history_ref_type_sort_order (_tmp15_);
#line 250 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		i1 = _tmp16_;
#line 251 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = pnot;
#line 251 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = gitg_parsed_ref_name_get_rtype (_tmp17_);
#line 251 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = _tmp18_;
#line 251 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = gitg_history_ref_type_sort_order (_tmp19_);
#line 251 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		i2 = _tmp20_;
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp22_ = i1;
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = i2;
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp22_ < _tmp23_) {
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = -1;
#line 1357 "gitg-history-refs-list.c"
		} else {
			gint _tmp24_ = 0;
			gint _tmp25_;
			gint _tmp26_;
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = i1;
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp26_ = i2;
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp25_ > _tmp26_) {
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp24_ = 1;
#line 1370 "gitg-history-refs-list.c"
			} else {
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp24_ = 0;
#line 1374 "gitg-history-refs-list.c"
			}
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = _tmp24_;
#line 1378 "gitg-history-refs-list.c"
		}
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp21_;
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnot);
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnme);
#line 253 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1388 "gitg-history-refs-list.c"
	}
#line 256 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = pnme;
#line 256 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_parsed_ref_name_get_rtype (_tmp27_);
#line 256 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = _tmp28_;
#line 256 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp29_ == GITG_REF_TYPE_REMOTE) {
#line 1398 "gitg-history-refs-list.c"
		GitgParsedRefName* _tmp30_;
		gchar* _tmp31_;
		gchar* _tmp32_;
		gchar* _tmp33_;
		gchar* _tmp34_;
		gchar* _tmp35_;
		GitgParsedRefName* _tmp36_;
		gchar* _tmp37_;
		gchar* _tmp38_;
		gchar* _tmp39_;
		gchar* _tmp40_;
		gchar* _tmp41_;
		gint _tmp42_;
		gint _tmp43_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = pnme;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_parsed_ref_name_get_remote_name (_tmp30_);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = _tmp32_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = g_utf8_casefold (_tmp33_, (gssize) -1);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp35_ = _tmp34_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp36_ = pnot;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp37_ = gitg_parsed_ref_name_get_remote_name (_tmp36_);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = _tmp37_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp39_ = _tmp38_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = g_utf8_casefold (_tmp39_, (gssize) -1);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp41_ = _tmp40_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp42_ = g_utf8_collate (_tmp35_, _tmp41_);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp43_ = _tmp42_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp41_);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp39_);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp35_);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (_tmp33_);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp43_;
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnot);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (pnme);
#line 258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1457 "gitg-history-refs-list.c"
	}
#line 261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 0;
#line 261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pnot);
#line 261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (pnme);
#line 261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1467 "gitg-history-refs-list.c"
}


static gint string_index_of_char (const gchar* self, gunichar c, gint start_index) {
	gint result = 0;
	gchar* _result_;
	gint _tmp0_;
	gunichar _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
#line 1023 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp1_ = c;
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 1026 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 1026 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1492 "gitg-history-refs-list.c"
		gchar* _tmp4_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 1027 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		return result;
#line 1500 "gitg-history-refs-list.c"
	} else {
#line 1029 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		result = -1;
#line 1029 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		return result;
#line 1506 "gitg-history-refs-list.c"
	}
}


gint gitg_history_ref_row_compare_to (GitgHistoryRefRow* self, GitgHistoryRefRow* other, GitgHistoryRefRowSortOrder order) {
	gint result = 0;
	GitgRef* _tmp0_;
	GitgHistoryRefRow* _tmp1_;
	GitgRef* _tmp2_;
	gint ct;
	GitgHistoryRefRow* _tmp3_;
	gint _tmp4_;
	gint _tmp5_;
	GitgHistoryRefRowSortOrder _tmp6_;
	gchar* t1;
	gchar* _tmp26_;
	gchar* t2;
	GitgHistoryRefRow* _tmp27_;
	gchar* _tmp28_;
	gint hassep1;
	const gchar* _tmp29_;
	gint _tmp30_;
	gint hassep2;
	const gchar* _tmp31_;
	gint _tmp32_;
	gint _tmp33_;
	gint _tmp34_;
	const gchar* _tmp37_;
	gchar* _tmp38_;
	gchar* _tmp39_;
	const gchar* _tmp40_;
	gchar* _tmp41_;
	gchar* _tmp42_;
	gint _tmp43_;
	gint _tmp44_;
#line 264 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 264 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = -1;
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1554 "gitg-history-refs-list.c"
	}
#line 271 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = other;
#line 271 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_->priv->_reference;
#line 271 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 273 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 1;
#line 273 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1566 "gitg-history-refs-list.c"
	}
#line 276 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = other;
#line 276 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_ref_row_compare_type (self, _tmp3_);
#line 276 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ct = _tmp4_;
#line 278 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = ct;
#line 278 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp5_ != 0) {
#line 280 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = ct;
#line 280 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1582 "gitg-history-refs-list.c"
	}
#line 283 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = order;
#line 283 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ == GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY) {
#line 1588 "gitg-history-refs-list.c"
		gboolean _tmp7_ = FALSE;
		GgitSignature* _tmp8_;
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = self->priv->d_updated;
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp8_ != NULL) {
#line 1595 "gitg-history-refs-list.c"
			GitgHistoryRefRow* _tmp9_;
			GgitSignature* _tmp10_;
			GgitSignature* _tmp11_;
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = other;
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = gitg_history_ref_row_get_updated (_tmp9_);
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = _tmp10_;
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = _tmp11_ != NULL;
#line 1607 "gitg-history-refs-list.c"
		} else {
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = FALSE;
#line 1611 "gitg-history-refs-list.c"
		}
#line 285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp7_) {
#line 1615 "gitg-history-refs-list.c"
			GgitSignature* c1;
			GgitSignature* _tmp12_;
			GgitSignature* _tmp13_;
			GgitSignature* c2;
			GitgHistoryRefRow* _tmp14_;
			GgitSignature* _tmp15_;
			GgitSignature* _tmp16_;
			GgitSignature* _tmp17_;
			GgitSignature* _tmp18_;
			GDateTime* _tmp19_;
			GDateTime* _tmp20_;
			GgitSignature* _tmp21_;
			GDateTime* _tmp22_;
			GDateTime* _tmp23_;
			gint _tmp24_;
			gint _tmp25_;
#line 287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = self->priv->d_updated;
#line 287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _g_object_ref0 (_tmp12_);
#line 287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			c1 = _tmp13_;
#line 288 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp14_ = other;
#line 288 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = gitg_history_ref_row_get_updated (_tmp14_);
#line 288 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = _tmp15_;
#line 288 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _g_object_ref0 (_tmp16_);
#line 288 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			c2 = _tmp17_;
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = c2;
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = ggit_signature_get_time (_tmp18_);
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = _tmp19_;
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = c1;
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = ggit_signature_get_time (_tmp21_);
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp23_ = _tmp22_;
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp24_ = g_date_time_compare (_tmp20_, _tmp23_);
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp24_;
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_date_time_unref0 (_tmp23_);
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_date_time_unref0 (_tmp20_);
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp25_;
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (c2);
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (c1);
#line 290 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 1676 "gitg-history-refs-list.c"
		}
	}
#line 294 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp26_ = gitg_history_ref_row_label_text (self);
#line 294 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	t1 = _tmp26_;
#line 295 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = other;
#line 295 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_history_ref_row_label_text (_tmp27_);
#line 295 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	t2 = _tmp28_;
#line 297 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = t1;
#line 297 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp30_ = string_index_of_char (_tmp29_, (gunichar) '/', 0);
#line 297 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	hassep1 = _tmp30_;
#line 298 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp31_ = t2;
#line 298 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp32_ = string_index_of_char (_tmp31_, (gunichar) '/', 0);
#line 298 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	hassep2 = _tmp32_;
#line 300 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp33_ = hassep1;
#line 300 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp34_ = hassep2;
#line 300 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp33_ >= 0) != (_tmp34_ >= 0)) {
#line 1707 "gitg-history-refs-list.c"
		gint _tmp35_ = 0;
		gint _tmp36_;
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp36_ = hassep1;
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp36_ >= 0) {
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = 1;
#line 1716 "gitg-history-refs-list.c"
		} else {
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = -1;
#line 1720 "gitg-history-refs-list.c"
		}
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp35_;
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (t2);
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (t1);
#line 302 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 1730 "gitg-history-refs-list.c"
	}
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp37_ = t1;
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp38_ = g_utf8_casefold (_tmp37_, (gssize) -1);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp39_ = _tmp38_;
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp40_ = t2;
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp41_ = g_utf8_casefold (_tmp40_, (gssize) -1);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp42_ = _tmp41_;
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp43_ = g_utf8_collate (_tmp39_, _tmp42_);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp44_ = _tmp43_;
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp42_);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp39_);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp44_;
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (t2);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (t1);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1760 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1769 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 1778 "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_;
	GtkEntry* _tmp1_;
	GtkEntry* _tmp2_;
	GtkEntry* _tmp3_;
	GtkStyleContext* _tmp4_;
	GtkEntry* _tmp5_;
	GtkEntry* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	GitgExtRefNameEditingDone _tmp9_;
	void* _tmp9__target;
	GDestroyNotify _tmp9__target_destroy_notify;
	GtkLabel* _tmp10_;
	GtkBox* _tmp11_;
	GtkEntry* _tmp12_;
	GtkEntry* _tmp13_;
	GtkEntry* _tmp14_;
	GtkEntry* _tmp15_;
	GtkEntry* _tmp16_;
#line 308 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 310 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_editing_entry;
#line 310 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != NULL) {
#line 312 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 312 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		done = NULL;
#line 312 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target = NULL;
#line 312 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target_destroy_notify = NULL;
#line 312 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 1818 "gitg-history-refs-list.c"
	}
#line 315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = (GtkEntry*) gtk_entry_new ();
#line 315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp1_);
#line 315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_editing_entry = _tmp1_;
#line 316 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_editing_entry;
#line 316 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_entry_set_width_chars (_tmp2_, 1);
#line 317 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_editing_entry;
#line 317 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gtk_widget_get_style_context ((GtkWidget*) _tmp3_);
#line 317 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_style_context_add_class (_tmp4_, "ref_editing_entry");
#line 318 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_editing_entry;
#line 318 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp5_);
#line 320 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_editing_entry;
#line 320 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_ref_row_label_text (self);
#line 320 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 320 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_entry_set_text (_tmp6_, _tmp8_);
#line 320 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp8_);
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = done;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9__target = done_target;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9__target_destroy_notify = done_target_destroy_notify;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(self->priv->d_edit_done_callback_target_destroy_notify == NULL) ? NULL : (self->priv->d_edit_done_callback_target_destroy_notify (self->priv->d_edit_done_callback_target), NULL);
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = _tmp9_;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = _tmp9__target;
#line 322 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = _tmp9__target_destroy_notify;
#line 324 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = self->priv->d_label;
#line 324 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_hide ((GtkWidget*) _tmp10_);
#line 325 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = self->priv->d_box;
#line 325 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = self->priv->d_editing_entry;
#line 325 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_box_pack_start (_tmp11_, (GtkWidget*) _tmp12_, TRUE, TRUE, (guint) 0);
#line 327 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = self->priv->d_editing_entry;
#line 327 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp13_);
#line 328 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = self->priv->d_editing_entry;
#line 328 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_editable_select_region ((GtkEditable*) _tmp14_, 0, -1);
#line 330 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = self->priv->d_editing_entry;
#line 330 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GtkWidget*) _tmp15_, "focus-out-event", (GCallback) _gitg_history_ref_row_on_editing_focus_out_gtk_widget_focus_out_event, self, 0);
#line 331 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = self->priv->d_editing_entry;
#line 331 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_connect_object ((GtkWidget*) _tmp16_, "key-press-event", (GCallback) _gitg_history_ref_row_on_editing_key_press_gtk_widget_key_press_event, self, 0);
#line 308 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 308 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 308 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 308 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 1908 "gitg-history-refs-list.c"
}


static void gitg_history_ref_row_real_dispose (GObject* base) {
	GitgHistoryRefRow * self;
	guint _tmp0_;
#line 334 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 336 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_idle_finish;
#line 336 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 1921 "gitg-history-refs-list.c"
		guint _tmp1_;
#line 338 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->d_idle_finish;
#line 338 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_source_remove (_tmp1_);
#line 339 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_idle_finish = (guint) 0;
#line 1929 "gitg-history-refs-list.c"
	}
#line 342 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_ref_row_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_row_get_type (), GtkListBoxRow));
#line 1933 "gitg-history-refs-list.c"
}


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


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


static gboolean __lambda119_ (Block73Data* _data73_) {
	GitgHistoryRefRow* self;
	gboolean result = FALSE;
	gchar* new_text;
	GtkEntry* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	GtkEntry* _tmp4_;
	GtkLabel* _tmp5_;
	GitgExtRefNameEditingDone _tmp6_;
	void* _tmp6__target;
	gboolean _tmp7_;
#line 355 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data73_->self;
#line 356 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_idle_finish = (guint) 0;
#line 358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_editing_entry;
#line 358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	new_text = _tmp3_;
#line 360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_editing_entry;
#line 360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_editing_entry);
#line 361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_editing_entry = NULL;
#line 363 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_label;
#line 363 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp5_);
#line 365 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_edit_done_callback;
#line 365 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6__target = self->priv->d_edit_done_callback_target;
#line 365 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _data73_->cancelled;
#line 365 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ (new_text, _tmp7_, _tmp6__target);
#line 366 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(self->priv->d_edit_done_callback_target_destroy_notify == NULL) ? NULL : (self->priv->d_edit_done_callback_target_destroy_notify (self->priv->d_edit_done_callback_target), NULL);
#line 366 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 366 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 366 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 366 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback = NULL;
#line 366 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target = NULL;
#line 366 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_edit_done_callback_target_destroy_notify = NULL;
#line 367 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 367 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (new_text);
#line 367 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2031 "gitg-history-refs-list.c"
}


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


static void gitg_history_ref_row_finish_editing (GitgHistoryRefRow* self, gboolean cancelled) {
	Block73Data* _data73_;
	gboolean _tmp0_;
	guint _tmp1_;
	GtkEntry* _tmp2_;
	guint _tmp3_;
	GtkEntry* _tmp4_;
	guint _tmp5_;
	guint _tmp6_;
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_ = g_slice_new0 (Block73Data);
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_->_ref_count_ = 1;
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_->self = g_object_ref (self);
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = cancelled;
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_->cancelled = _tmp0_;
#line 347 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->d_idle_finish;
#line 347 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != ((guint) 0)) {
#line 349 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		block73_data_unref (_data73_);
#line 349 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_data73_ = NULL;
#line 349 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 2075 "gitg-history-refs-list.c"
	}
#line 352 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_editing_entry;
#line 352 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_handlers_disconnect_matched ((GtkWidget*) _tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _gitg_history_ref_row_on_editing_focus_out_gtk_widget_focus_out_event, self);
#line 353 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_editing_entry;
#line 353 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_handlers_disconnect_matched ((GtkWidget*) _tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _gitg_history_ref_row_on_editing_key_press_gtk_widget_key_press_event, self);
#line 355 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_idle_finish = _tmp6_;
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	block73_data_unref (_data73_);
#line 345 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data73_ = NULL;
#line 2097 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 371 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 371 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 373 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_finish_editing (self, FALSE);
#line 374 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 374 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2115 "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_;
	guint _tmp1_;
#line 377 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 377 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 377 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 379 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = event;
#line 379 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _tmp0_->keyval;
#line 379 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ == ((guint) GDK_KEY_Escape)) {
#line 381 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_finish_editing (self, TRUE);
#line 382 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 382 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2141 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp2_ = FALSE;
		GdkEventKey* _tmp3_;
		guint _tmp4_;
#line 384 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = event;
#line 384 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_->keyval;
#line 384 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp4_ == ((guint) GDK_KEY_KP_Enter)) {
#line 384 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = TRUE;
#line 2154 "gitg-history-refs-list.c"
		} else {
			GdkEventKey* _tmp5_;
			guint _tmp6_;
#line 385 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = event;
#line 385 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_->keyval;
#line 385 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp2_ = _tmp6_ == ((guint) GDK_KEY_Return);
#line 2164 "gitg-history-refs-list.c"
		}
#line 384 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp2_) {
#line 387 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_row_finish_editing (self, FALSE);
#line 388 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = TRUE;
#line 388 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2174 "gitg-history-refs-list.c"
		}
	}
#line 391 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 391 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2181 "gitg-history-refs-list.c"
}


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


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


void gitg_history_ref_row_set_reference (GitgHistoryRefRow* self, GitgRef* value) {
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (gitg_history_ref_row_get_reference (self) != value) {
#line 2222 "gitg-history-refs-list.c"
		GitgRef* _tmp0_;
		GitgRef* _tmp1_;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = value;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->_reference);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->_reference = _tmp1_;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_notify ((GObject *) self, "reference");
#line 2235 "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_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefRow*) base;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->_reference;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != NULL) {
#line 2251 "gitg-history-refs-list.c"
		GitgRef* _tmp2_;
		GitgParsedRefName* _tmp3_;
		GitgParsedRefName* _tmp4_;
		GitgParsedRefName* _tmp5_;
		GitgRefType _tmp6_;
		GitgRefType _tmp7_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = self->priv->_reference;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp4_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = gitg_parsed_ref_name_get_rtype (_tmp5_);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _tmp6_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = _tmp7_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp5_);
#line 2274 "gitg-history-refs-list.c"
	} else {
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = GITG_REF_TYPE_NONE;
#line 2278 "gitg-history-refs-list.c"
	}
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2284 "gitg-history-refs-list.c"
}


GgitSignature* gitg_history_ref_row_get_updated (GitgHistoryRefRow* self) {
	GgitSignature* result;
	GgitSignature* _tmp0_;
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_updated;
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2299 "gitg-history-refs-list.c"
}


gboolean gitg_history_ref_row_get_is_head (GitgHistoryRefRow* self) {
	gboolean result;
	GitgRef* _tmp0_;
	GgitBranch* branch;
	GitgRef* _tmp1_;
	GgitBranch* _tmp2_;
	GgitBranch* _tmp3_;
	GError * _inner_error_ = NULL;
#line 222 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 224 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_reference;
#line 224 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2321 "gitg-history-refs-list.c"
	}
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->_reference;
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, ggit_branch_get_type ()) ? ((GgitBranch*) _tmp1_) : NULL);
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	branch = _tmp2_;
#line 231 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = branch;
#line 231 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_ != NULL) {
#line 2333 "gitg-history-refs-list.c"
		gboolean _tmp7_ = FALSE;
		{
			gboolean _tmp4_;
			GgitBranch* _tmp5_;
			gboolean _tmp6_;
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = branch;
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = ggit_branch_is_head (_tmp5_, &_inner_error_);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = _tmp6_;
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2347 "gitg-history-refs-list.c"
				goto __catch119_g_error;
			}
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp4_;
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2356 "gitg-history-refs-list.c"
		}
		goto __finally119;
		__catch119_g_error:
		{
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 236 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = FALSE;
#line 236 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (branch);
#line 236 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 2371 "gitg-history-refs-list.c"
		}
		__finally119:
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (branch);
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return _tmp7_;
#line 2382 "gitg-history-refs-list.c"
	}
#line 239 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 239 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (branch);
#line 239 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2390 "gitg-history-refs-list.c"
}


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


static void gitg_history_ref_row_gitg_history_ref_typed_interface_init (GitgHistoryRefTypedIface * iface) {
#line 52 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_row_gitg_history_ref_typed_parent_iface = g_type_interface_peek_parent (iface);
#line 52 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	iface->get_ref_type = gitg_history_ref_row_real_get_ref_type;
#line 2441 "gitg-history-refs-list.c"
}


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


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


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1434 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	result = self;
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	return result;
#line 2572 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2581 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_construct (GType object_type, GitgRefType rtype, const gchar* name) {
	GitgHistoryRefHeader * self = NULL;
	gchar* escaped;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	GtkLabel* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	GtkExpander* _tmp6_;
	GtkExpander* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	GitgRefType _tmp10_;
#line 456 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 456 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) g_object_new (object_type, NULL);
#line 458 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = name;
#line 458 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) -1);
#line 458 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	escaped = _tmp1_;
#line 459 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_label;
#line 459 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = string_to_string (escaped);
#line 459 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = g_strconcat ("<b>", _tmp3_, "</b>", NULL);
#line 459 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 459 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_label_set_markup (_tmp2_, _tmp5_);
#line 459 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp5_);
#line 461 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = self->priv->d_expander;
#line 461 "/home/mcatanzaro/Projects/GNOME/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, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 463 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = self->priv->d_expander;
#line 463 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = name;
#line 465 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = g_strdup (_tmp8_);
#line 465 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (self->priv->d_name);
#line 465 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_name = _tmp9_;
#line 466 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = rtype;
#line 466 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_rtype = _tmp10_;
#line 456 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (escaped);
#line 456 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 2645 "gitg-history-refs-list.c"
}


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


static gboolean gitg_history_ref_header_on_expander_pressed (GitgHistoryRefHeader* self, GdkEventButton* event) {
	gboolean result = FALSE;
	GtkExpander* _tmp0_;
	GtkExpander* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
#line 469 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 469 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 471 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_expander;
#line 471 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = self->priv->d_expander;
#line 471 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gtk_expander_get_expanded (_tmp1_);
#line 471 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_;
#line 471 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_expander_set_expanded (_tmp0_, !_tmp3_);
#line 472 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = TRUE;
#line 472 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2680 "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_;
	GitgRemote* _tmp1_;
	GitgRemote* _tmp2_;
	GtkExpander* _tmp3_;
	GtkExpander* _tmp4_;
	gint _tmp5_;
	gint _tmp6_;
	GitgRemote* _tmp7_;
#line 475 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 477 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = name;
#line 477 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = remote;
#line 479 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 479 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_remote);
#line 479 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remote = _tmp2_;
#line 480 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_is_sub_header_remote = TRUE;
#line 481 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_expander;
#line 481 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_expander;
#line 481 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gtk_widget_get_margin_start ((GtkWidget*) _tmp4_);
#line 481 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 481 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_set_margin_start ((GtkWidget*) _tmp4_, _tmp6_ + 12);
#line 483 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = self->priv->d_remote;
#line 483 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_ != NULL) {
#line 2724 "gitg-history-refs-list.c"
		GitgRemote* _tmp8_;
		GitgRemote* _tmp9_;
		GitgProgressBin* _tmp10_;
#line 485 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = self->priv->d_remote;
#line 485 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_bind_property_with_closures ((GObject*) _tmp8_, "state", (GObject*) self, "remote_state", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 486 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = self->priv->d_remote;
#line 486 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = self->priv->d_progress_bin;
#line 486 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_bind_property_with_closures ((GObject*) _tmp9_, "transfer-progress", (GObject*) _tmp10_, "fraction", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 2738 "gitg-history-refs-list.c"
	}
#line 475 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return self;
#line 2742 "gitg-history-refs-list.c"
}


GitgHistoryRefHeader* gitg_history_ref_header_new_remote (const gchar* name, GitgRemote* remote) {
#line 475 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_ref_header_construct_remote (GITG_HISTORY_TYPE_REF_HEADER, name, remote);
#line 2749 "gitg-history-refs-list.c"
}


gint gitg_history_ref_header_compare_to (GitgHistoryRefHeader* self, GitgHistoryRefHeader* other) {
	gint result = 0;
	gboolean _tmp0_;
	GitgHistoryRefHeader* _tmp1_;
	gboolean _tmp2_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	GitgHistoryRefHeader* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gint _tmp12_;
	gint _tmp13_;
#line 495 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 495 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 498 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_is_sub_header_remote;
#line 498 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = other;
#line 498 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_->priv->d_is_sub_header_remote;
#line 498 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != _tmp2_) {
#line 2779 "gitg-history-refs-list.c"
		gint _tmp3_ = 0;
		gboolean _tmp4_;
#line 500 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = self->priv->d_is_sub_header_remote;
#line 500 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp4_) {
#line 500 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = 1;
#line 2788 "gitg-history-refs-list.c"
		} else {
#line 500 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp3_ = -1;
#line 2792 "gitg-history-refs-list.c"
		}
#line 500 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp3_;
#line 500 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 2798 "gitg-history-refs-list.c"
	}
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = self->priv->d_name;
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = g_utf8_casefold (_tmp5_, (gssize) -1);
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _tmp6_;
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = other;
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_->priv->d_name;
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = g_utf8_casefold (_tmp9_, (gssize) -1);
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = _tmp10_;
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = g_utf8_collate (_tmp7_, _tmp11_);
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = _tmp12_;
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp11_);
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (_tmp7_);
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp13_;
#line 503 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2826 "gitg-history-refs-list.c"
}


void gitg_history_ref_header_set_remote_state (GitgHistoryRefHeader* self, GitgRemoteState value) {
	GitgRemoteState _tmp0_;
#line 410 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = value;
#line 412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (_tmp0_) {
#line 412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_DISCONNECTED:
#line 2840 "gitg-history-refs-list.c"
		{
#line 415 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, NULL);
#line 416 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2846 "gitg-history-refs-list.c"
		}
#line 412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_CONNECTING:
#line 2850 "gitg-history-refs-list.c"
		{
#line 418 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-wireless-acquiring-symbolic");
#line 419 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2856 "gitg-history-refs-list.c"
		}
#line 412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_CONNECTED:
#line 2860 "gitg-history-refs-list.c"
		{
#line 421 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-idle-symbolic");
#line 422 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2866 "gitg-history-refs-list.c"
		}
#line 412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_REMOTE_STATE_TRANSFERRING:
#line 2870 "gitg-history-refs-list.c"
		{
#line 424 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_ref_header_set_icon_name (self, "network-transmit-receive-symbolic");
#line 425 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 2876 "gitg-history-refs-list.c"
		}
		default:
#line 412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 2881 "gitg-history-refs-list.c"
	}
#line 410 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject *) self, "remote-state");
#line 2885 "gitg-history-refs-list.c"
}


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


void gitg_history_ref_header_set_expanded (GitgHistoryRefHeader* self, gboolean value) {
#line 444 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 444 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (gitg_history_ref_header_get_expanded (self) != value) {
#line 2909 "gitg-history-refs-list.c"
		gboolean _tmp0_;
#line 444 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = value;
#line 444 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->_expanded = _tmp0_;
#line 444 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_notify ((GObject *) self, "expanded");
#line 2917 "gitg-history-refs-list.c"
	}
}


static GitgRefType gitg_history_ref_header_real_get_ref_type (GitgHistoryRefTyped* base) {
	GitgRefType result;
	GitgHistoryRefHeader* self;
	GitgRefType _tmp0_;
#line 448 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefHeader*) base;
#line 448 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_rtype;
#line 448 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 448 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2934 "gitg-history-refs-list.c"
}


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


gboolean gitg_history_ref_header_get_is_sub_header_remote (GitgHistoryRefHeader* self) {
	gboolean result;
	gboolean _tmp0_;
#line 492 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 492 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_is_sub_header_remote;
#line 492 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp0_;
#line 492 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 2964 "gitg-history-refs-list.c"
}


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


void gitg_history_ref_header_set_icon_name (GitgHistoryRefHeader* self, const gchar* value) {
#line 509 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 509 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_strcmp0 (value, gitg_history_ref_header_get_icon_name (self)) != 0) {
#line 2994 "gitg-history-refs-list.c"
		GtkImage* _tmp0_;
		const gchar* _tmp1_;
		GtkImage* _tmp2_;
		const gchar* _tmp3_;
#line 511 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = self->priv->d_icon;
#line 511 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = value;
#line 511 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_set (_tmp0_, "icon-name", _tmp1_, NULL);
#line 512 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = self->priv->d_icon;
#line 512 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = value;
#line 512 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp2_, _tmp3_ != NULL);
#line 509 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_header_parent_class = g_type_class_peek_parent (klass);
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefHeaderPrivate));
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_ref_header_get_property;
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_ref_header_set_property;
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_ref_header_finalize;
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_REMOTE_STATE, g_param_spec_enum ("remote-state", "remote-state", "remote-state", GITG_TYPE_REMOTE_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE));
#line 402 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_REF_TYPE, g_param_spec_enum ("ref-type", "ref-type", "ref-type", GITG_TYPE_REF_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_REF_NAME, g_param_spec_string ("ref-name", "ref-name", "ref-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_IS_SUB_HEADER_REMOTE, g_param_spec_boolean ("is-sub-header-remote", "is-sub-header-remote", "is-sub-header-remote", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REF_HEADER_ICON_NAME, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	GitgHistoryRefHeader_private_offset = g_type_class_get_instance_private_offset (klass);
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-history-ref-header.ui");
#line 402 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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 3054 "gitg-history-refs-list.c"
}


static void gitg_history_ref_header_gitg_history_ref_typed_interface_init (GitgHistoryRefTypedIface * iface) {
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_ref_header_gitg_history_ref_typed_parent_iface = g_type_interface_peek_parent (iface);
#line 402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	iface->get_ref_type = gitg_history_ref_header_real_get_ref_type;
#line 3063 "gitg-history-refs-list.c"
}


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


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


static void _vala_GitgHistoryRefsListHeaderState_array_free (GitgHistoryRefsListHeaderState * array, gint array_length) {
#line 535 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (array != NULL) {
#line 3197 "gitg-history-refs-list.c"
		int i;
#line 535 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 535 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_refs_list_header_state_destroy (&array[i]);
#line 3203 "gitg-history-refs-list.c"
		}
	}
#line 535 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_free (array);
#line 3208 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_on_tip_updated ((GitgHistoryRefsList*) self, _sender, refname, a, b);
#line 3215 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_real_dispose (GObject* base) {
	GitgHistoryRefsList * self;
	GitgRemote** _tmp0_;
	gint _tmp0__length1;
	GitgRemote** _tmp4_;
#line 565 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 567 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_remotes;
#line 567 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0__length1 = self->priv->d_remotes_length1;
#line 3230 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection = _tmp0_;
#line 567 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection_length1 = _tmp0__length1;
#line 567 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		for (remote_it = 0; remote_it < _tmp0__length1; remote_it = remote_it + 1) {
#line 3242 "gitg-history-refs-list.c"
			GitgRemote* _tmp1_;
			GitgRemote* remote = NULL;
#line 567 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp1_ = _g_object_ref0 (remote_collection[remote_it]);
#line 567 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			remote = _tmp1_;
#line 3249 "gitg-history-refs-list.c"
			{
				GitgRemote* _tmp2_;
				guint _tmp3_;
#line 569 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp2_ = remote;
#line 569 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_parse_name ("tip-updated", GITG_TYPE_REMOTE, &_tmp3_, NULL, FALSE);
#line 569 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (remote);
#line 3261 "gitg-history-refs-list.c"
			}
		}
	}
#line 572 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = g_new0 (GitgRemote*, 0 + 1);
#line 572 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 572 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp4_;
#line 572 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 572 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 574 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (gitg_history_refs_list_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox));
#line 3277 "gitg-history-refs-list.c"
}


static GitgHistoryRefHeader* gitg_history_refs_list_find_header (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GitgHistoryRefHeader* result = NULL;
	GList* children;
	GList* _tmp0_;
	GList* found;
	GList* _tmp1_;
	GtkListBoxRow* _tmp2_;
	GList* _tmp3_;
	GList* _tmp4_;
#line 642 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 642 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row != NULL, NULL);
#line 644 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_container_get_children ((GtkContainer*) self);
#line 644 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	children = _tmp0_;
#line 645 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = children;
#line 645 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 645 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = g_list_find (_tmp1_, (GtkWidget*) _tmp2_);
#line 645 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	found = _tmp3_;
#line 647 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = found;
#line 647 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ == NULL) {
#line 649 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 649 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_list_free0 (children);
#line 649 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3316 "gitg-history-refs-list.c"
	}
#line 652 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	while (TRUE) {
#line 3320 "gitg-history-refs-list.c"
		GList* _tmp5_;
		GList* _tmp6_;
		GList* _tmp7_;
		GList* _tmp8_;
		GitgHistoryRefHeader* header;
		GList* _tmp9_;
		gconstpointer _tmp10_;
		GtkWidget* _tmp11_;
		GitgHistoryRefHeader* _tmp12_;
		GitgHistoryRefHeader* _tmp13_;
#line 652 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = found;
#line 652 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = _tmp5_->prev;
#line 652 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!(_tmp6_ != NULL)) {
#line 652 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 3339 "gitg-history-refs-list.c"
		}
#line 654 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = found;
#line 654 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = _tmp7_->prev;
#line 654 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		found = _tmp8_;
#line 656 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = found;
#line 656 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp9_->data;
#line 656 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = (GtkWidget*) _tmp10_;
#line 656 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		header = _tmp12_;
#line 658 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = header;
#line 658 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_ != NULL) {
#line 660 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = header;
#line 660 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_list_free0 (children);
#line 660 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3367 "gitg-history-refs-list.c"
		}
#line 652 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (header);
#line 3371 "gitg-history-refs-list.c"
	}
#line 664 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = NULL;
#line 664 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_list_free0 (children);
#line 664 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 3379 "gitg-history-refs-list.c"
}


static gboolean gitg_history_refs_list_filter_func (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	gboolean result = FALSE;
	GitgHistoryRefHeader* header;
	GtkListBoxRow* _tmp0_;
	GitgHistoryRefHeader* _tmp1_;
	GitgHistoryRefHeader* _tmp2_;
	GitgHistoryRefHeader* _tmp16_;
#line 667 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 667 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row != NULL, FALSE);
#line 669 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 669 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp0_) : NULL);
#line 669 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp1_;
#line 671 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = header;
#line 671 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ != NULL) {
#line 3404 "gitg-history-refs-list.c"
		GitgHistoryRefHeader* _tmp3_;
		gboolean _tmp4_;
		gboolean _tmp5_;
#line 673 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = header;
#line 673 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp3_);
#line 673 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp4_;
#line 673 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!_tmp5_) {
#line 675 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = TRUE;
#line 675 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (header);
#line 675 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3422 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefHeader* _tmp13_;
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			while (TRUE) {
#line 3427 "gitg-history-refs-list.c"
				gboolean _tmp6_ = FALSE;
				GitgHistoryRefHeader* _tmp7_;
				GitgHistoryRefHeader* _tmp11_;
				GitgHistoryRefHeader* _tmp12_;
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp7_ = header;
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp7_ != NULL) {
#line 3436 "gitg-history-refs-list.c"
					GitgHistoryRefHeader* _tmp8_;
					gboolean _tmp9_;
					gboolean _tmp10_;
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp8_ = header;
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp8_);
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp10_ = _tmp9_;
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp6_ = _tmp10_;
#line 3448 "gitg-history-refs-list.c"
				} else {
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp6_ = FALSE;
#line 3452 "gitg-history-refs-list.c"
				}
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (!_tmp6_) {
#line 679 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					break;
#line 3458 "gitg-history-refs-list.c"
				}
#line 681 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp11_ = header;
#line 681 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp12_ = gitg_history_refs_list_find_header (self, (GtkListBoxRow*) _tmp11_);
#line 681 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (header);
#line 681 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				header = _tmp12_;
#line 3468 "gitg-history-refs-list.c"
			}
#line 684 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = header;
#line 684 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp13_ == NULL) {
#line 686 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				result = TRUE;
#line 686 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (header);
#line 686 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				return result;
#line 3480 "gitg-history-refs-list.c"
			}
		}
	} else {
		GtkListBoxRow* _tmp14_;
		GitgHistoryRefHeader* _tmp15_;
#line 692 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = row;
#line 692 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = gitg_history_refs_list_find_header (self, _tmp14_);
#line 692 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (header);
#line 692 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		header = _tmp15_;
#line 3494 "gitg-history-refs-list.c"
	}
#line 695 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = header;
#line 695 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp16_ == NULL) {
#line 697 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 697 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (header);
#line 697 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3506 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp17_ = FALSE;
		GitgHistoryRefHeader* _tmp18_;
		gboolean _tmp19_;
		gboolean _tmp20_;
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = header;
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp18_);
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!_tmp20_) {
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = TRUE;
#line 3522 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefHeader* _tmp21_;
			gboolean _tmp22_;
			gboolean _tmp23_;
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = header;
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = gitg_history_ref_header_get_expanded (_tmp21_);
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp23_ = _tmp22_;
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = !_tmp23_;
#line 3535 "gitg-history-refs-list.c"
		}
#line 699 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp17_) {
#line 3539 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp24_;
			gboolean _tmp25_;
			gboolean _tmp26_;
#line 701 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp24_ = header;
#line 701 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = gitg_history_ref_header_get_expanded (_tmp24_);
#line 701 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp26_ = _tmp25_;
#line 701 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp26_;
#line 701 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (header);
#line 701 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3555 "gitg-history-refs-list.c"
		} else {
			gboolean _tmp34_ = FALSE;
			GitgHistoryRefHeader* _tmp35_;
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			while (TRUE) {
#line 3561 "gitg-history-refs-list.c"
				gboolean _tmp27_ = FALSE;
				GitgHistoryRefHeader* _tmp28_;
				GitgHistoryRefHeader* _tmp32_;
				GitgHistoryRefHeader* _tmp33_;
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp28_ = header;
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp28_ != NULL) {
#line 3570 "gitg-history-refs-list.c"
					GitgHistoryRefHeader* _tmp29_;
					gboolean _tmp30_;
					gboolean _tmp31_;
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp29_ = header;
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp30_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp29_);
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp31_ = _tmp30_;
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp27_ = _tmp31_;
#line 3582 "gitg-history-refs-list.c"
				} else {
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp27_ = FALSE;
#line 3586 "gitg-history-refs-list.c"
				}
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (!_tmp27_) {
#line 705 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					break;
#line 3592 "gitg-history-refs-list.c"
				}
#line 707 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp32_ = header;
#line 707 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = gitg_history_refs_list_find_header (self, (GtkListBoxRow*) _tmp32_);
#line 707 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (header);
#line 707 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				header = _tmp33_;
#line 3602 "gitg-history-refs-list.c"
			}
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = header;
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp35_ == NULL) {
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp34_ = TRUE;
#line 3610 "gitg-history-refs-list.c"
			} else {
				GitgHistoryRefHeader* _tmp36_;
				gboolean _tmp37_;
				gboolean _tmp38_;
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp36_ = header;
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp37_ = gitg_history_ref_header_get_expanded (_tmp36_);
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp38_ = _tmp37_;
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp34_ = _tmp38_;
#line 3623 "gitg-history-refs-list.c"
			}
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp34_;
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (header);
#line 710 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3631 "gitg-history-refs-list.c"
		}
	}
#line 667 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (header);
#line 3636 "gitg-history-refs-list.c"
}


static gint gitg_history_refs_list_sort_rows (GitgHistoryRefsList* self, GtkListBoxRow* row1, GtkListBoxRow* row2) {
	gint result = 0;
	GitgRefType r1;
	GtkListBoxRow* _tmp0_;
	GitgRefType _tmp1_;
	GitgRefType _tmp2_;
	GitgRefType r2;
	GtkListBoxRow* _tmp3_;
	GitgRefType _tmp4_;
	GitgRefType _tmp5_;
	gint rs1;
	GitgRefType _tmp6_;
	gint _tmp7_;
	gint rs2;
	GitgRefType _tmp8_;
	gint _tmp9_;
	gint _tmp10_;
	gint _tmp11_;
	GitgHistoryRefHeader* head1;
	GtkListBoxRow* _tmp15_;
	GitgHistoryRefHeader* _tmp16_;
	GitgHistoryRefRow* ref1;
	GtkListBoxRow* _tmp17_;
	GitgHistoryRefRow* _tmp18_;
	GitgHistoryRefHeader* head2;
	GtkListBoxRow* _tmp19_;
	GitgHistoryRefHeader* _tmp20_;
	GitgHistoryRefRow* ref2;
	GtkListBoxRow* _tmp21_;
	GitgHistoryRefRow* _tmp22_;
	GitgHistoryRefHeader* _tmp23_;
	GitgHistoryRefHeader* _tmp24_;
#line 714 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 714 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row1 != NULL, 0);
#line 714 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row2 != NULL, 0);
#line 716 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row1;
#line 716 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_ref_typed_get_ref_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_HISTORY_TYPE_REF_TYPED, GitgHistoryRefTyped));
#line 716 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 716 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	r1 = _tmp2_;
#line 717 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row2;
#line 717 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_ref_typed_get_ref_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GITG_HISTORY_TYPE_REF_TYPED, GitgHistoryRefTyped));
#line 717 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 717 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	r2 = _tmp5_;
#line 720 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = r1;
#line 720 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_ref_type_sort_order (_tmp6_);
#line 720 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	rs1 = _tmp7_;
#line 721 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = r2;
#line 721 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_ref_type_sort_order (_tmp8_);
#line 721 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	rs2 = _tmp9_;
#line 723 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = rs1;
#line 723 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = rs2;
#line 723 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_ != _tmp11_) {
#line 3712 "gitg-history-refs-list.c"
		gint _tmp12_ = 0;
		gint _tmp13_;
		gint _tmp14_;
#line 725 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = rs1;
#line 725 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = rs2;
#line 725 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_ < _tmp14_) {
#line 725 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = -1;
#line 3724 "gitg-history-refs-list.c"
		} else {
#line 725 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = 1;
#line 3728 "gitg-history-refs-list.c"
		}
#line 725 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp12_;
#line 725 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 3734 "gitg-history-refs-list.c"
	}
#line 728 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = row1;
#line 728 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp15_) : NULL);
#line 728 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	head1 = _tmp16_;
#line 729 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = row1;
#line 729 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp17_) : NULL);
#line 729 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ref1 = _tmp18_;
#line 731 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp19_ = row2;
#line 731 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp19_) : NULL);
#line 731 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	head2 = _tmp20_;
#line 732 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = row2;
#line 732 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp21_) : NULL);
#line 732 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ref2 = _tmp22_;
#line 734 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = head1;
#line 734 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = head2;
#line 734 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp23_ == NULL) != (_tmp24_ == NULL)) {
#line 3766 "gitg-history-refs-list.c"
		GitgHistoryRefHeader* _tmp25_ = NULL;
		GitgHistoryRefHeader* _tmp26_;
		GitgHistoryRefHeader* head;
		GitgHistoryRefHeader* _tmp29_;
		GitgHistoryRefHeader* _tmp30_;
		gboolean _tmp31_;
		gboolean _tmp32_;
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = head1;
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp26_ != NULL) {
#line 3778 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp27_;
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp27_ = head1;
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp27_;
#line 3784 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefHeader* _tmp28_;
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp28_ = head2;
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp25_ = _tmp28_;
#line 3791 "gitg-history-refs-list.c"
		}
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = _g_object_ref0 (_tmp25_);
#line 736 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		head = _tmp29_;
#line 739 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = head;
#line 739 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp30_);
#line 739 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 739 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp32_) {
#line 3805 "gitg-history-refs-list.c"
			GitgHistoryRefRow* _tmp33_ = NULL;
			GitgHistoryRefHeader* _tmp34_;
			GitgHistoryRefRow* rref;
			GitgHistoryRefRow* _tmp37_;
			gint cmp;
			GitgHistoryRefHeader* _tmp38_;
			const gchar* _tmp39_;
			const gchar* _tmp40_;
			gchar* _tmp41_;
			gchar* _tmp42_;
			GitgHistoryRefRow* _tmp43_;
			GitgRef* _tmp44_;
			GitgRef* _tmp45_;
			GitgParsedRefName* _tmp46_;
			GitgParsedRefName* _tmp47_;
			GitgParsedRefName* _tmp48_;
			gchar* _tmp49_;
			gchar* _tmp50_;
			gchar* _tmp51_;
			gchar* _tmp52_;
			gchar* _tmp53_;
			gint _tmp54_;
			gint _tmp55_;
			gint _tmp56_ = 0;
			GitgHistoryRefHeader* _tmp57_;
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp34_ = head1;
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp34_ != NULL) {
#line 3835 "gitg-history-refs-list.c"
				GitgHistoryRefRow* _tmp35_;
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp35_ = ref2;
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = _tmp35_;
#line 3841 "gitg-history-refs-list.c"
			} else {
				GitgHistoryRefRow* _tmp36_;
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp36_ = ref1;
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp33_ = _tmp36_;
#line 3848 "gitg-history-refs-list.c"
			}
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp37_ = _g_object_ref0 (_tmp33_);
#line 742 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			rref = _tmp37_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp38_ = head;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp39_ = gitg_history_ref_header_get_ref_name (_tmp38_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp40_ = _tmp39_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp41_ = g_utf8_casefold (_tmp40_, (gssize) -1);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp42_ = _tmp41_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp43_ = rref;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp44_ = gitg_history_ref_row_get_reference (_tmp43_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp45_ = _tmp44_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp46_ = gitg_ref_get_parsed_name (_tmp45_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp47_ = _tmp46_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp48_ = _tmp47_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp49_ = gitg_parsed_ref_name_get_remote_name (_tmp48_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp50_ = _tmp49_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp51_ = _tmp50_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp52_ = g_utf8_casefold (_tmp51_, (gssize) -1);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp53_ = _tmp52_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp54_ = g_utf8_collate (_tmp42_, _tmp53_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp55_ = _tmp54_;
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp53_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp51_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp48_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_free0 (_tmp42_);
#line 743 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			cmp = _tmp55_;
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp57_ = head1;
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp57_ != NULL) {
#line 3904 "gitg-history-refs-list.c"
				gint _tmp58_;
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp58_ = cmp;
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp56_ = _tmp58_;
#line 3910 "gitg-history-refs-list.c"
			} else {
				gint _tmp59_;
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp59_ = cmp;
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp56_ = -_tmp59_;
#line 3917 "gitg-history-refs-list.c"
			}
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp56_;
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (rref);
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head);
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 745 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3935 "gitg-history-refs-list.c"
		} else {
			gint _tmp60_ = 0;
			GitgHistoryRefHeader* _tmp61_;
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp61_ = head1;
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (_tmp61_ != NULL) {
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp60_ = -1;
#line 3945 "gitg-history-refs-list.c"
			} else {
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp60_ = 1;
#line 3949 "gitg-history-refs-list.c"
			}
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp60_;
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head);
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 749 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 3965 "gitg-history-refs-list.c"
		}
#line 734 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (head);
#line 3969 "gitg-history-refs-list.c"
	} else {
		gboolean _tmp62_ = FALSE;
		GitgHistoryRefHeader* _tmp63_;
#line 752 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp63_ = head1;
#line 752 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp63_ != NULL) {
#line 3977 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp64_;
#line 752 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp64_ = head2;
#line 752 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = _tmp64_ != NULL;
#line 3983 "gitg-history-refs-list.c"
		} else {
#line 752 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp62_ = FALSE;
#line 3987 "gitg-history-refs-list.c"
		}
#line 752 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp62_) {
#line 3991 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp65_;
			GitgHistoryRefHeader* _tmp66_;
			gint _tmp67_;
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp65_ = head1;
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp66_ = head2;
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp67_ = gitg_history_ref_header_compare_to (_tmp65_, _tmp66_);
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp67_;
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 754 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 4013 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefRow* _tmp68_;
			GitgHistoryRefRow* _tmp69_;
			GitgHistoryRefRowSortOrder _tmp70_;
			gint _tmp71_;
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp68_ = ref1;
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp69_ = ref2;
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp70_ = self->priv->d_ref_sort_order;
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp71_ = gitg_history_ref_row_compare_to (_tmp68_, _tmp69_, _tmp70_);
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp71_;
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref2);
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head2);
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref1);
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (head1);
#line 758 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 4039 "gitg-history-refs-list.c"
		}
	}
#line 714 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref2);
#line 714 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (head2);
#line 714 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref1);
#line 714 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (head1);
#line 4050 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_clear (GitgHistoryRefsList* self) {
	GeeHashMap* _tmp0_;
	GeeHashMap* _tmp1_;
	GList* _tmp2_;
	GitgRemote** _tmp4_;
	gint _tmp4__length1;
	GitgRemote** _tmp8_;
#line 762 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 764 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_commits);
#line 764 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_commits = NULL;
#line 765 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_branches);
#line 765 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_branches = NULL;
#line 766 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_remotes);
#line 766 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_remotes = NULL;
#line 767 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_tags);
#line 767 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_tags = NULL;
#line 769 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, (GBoxedCopyFunc) gitg_history_refs_list_remote_header_ref, gitg_history_refs_list_remote_header_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 769 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 769 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_header_map = _tmp0_;
#line 770 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gee_hash_map_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, GITG_HISTORY_TYPE_REF_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 770 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 770 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_ref_map = _tmp1_;
#line 772 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gtk_container_get_children ((GtkContainer*) self);
#line 4093 "gitg-history-refs-list.c"
	{
		GList* child_collection = NULL;
		GList* child_it = NULL;
#line 772 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		child_collection = _tmp2_;
#line 772 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
#line 4101 "gitg-history-refs-list.c"
			GtkWidget* child = NULL;
#line 772 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			child = (GtkWidget*) child_it->data;
#line 4105 "gitg-history-refs-list.c"
			{
				GtkWidget* _tmp3_;
#line 774 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp3_ = child;
#line 774 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				gtk_widget_destroy (_tmp3_);
#line 4112 "gitg-history-refs-list.c"
			}
		}
#line 772 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_list_free0 (child_collection);
#line 4117 "gitg-history-refs-list.c"
	}
#line 777 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_remotes;
#line 777 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4__length1 = self->priv->d_remotes_length1;
#line 4123 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection = _tmp4_;
#line 777 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_collection_length1 = _tmp4__length1;
#line 777 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		for (remote_it = 0; remote_it < _tmp4__length1; remote_it = remote_it + 1) {
#line 4135 "gitg-history-refs-list.c"
			GitgRemote* _tmp5_;
			GitgRemote* remote = NULL;
#line 777 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = _g_object_ref0 (remote_collection[remote_it]);
#line 777 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			remote = _tmp5_;
#line 4142 "gitg-history-refs-list.c"
			{
				GitgRemote* _tmp6_;
				guint _tmp7_;
#line 779 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp6_ = remote;
#line 779 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				g_signal_parse_name ("tip-updated", GITG_TYPE_REMOTE, &_tmp7_, NULL, FALSE);
#line 779 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (remote);
#line 4154 "gitg-history-refs-list.c"
			}
		}
	}
#line 782 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = g_new0 (GitgRemote*, 0 + 1);
#line 782 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 782 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp8_;
#line 782 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 782 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 4168 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_reselect_row (GitgHistoryRefsList* self, GtkListBoxRow* a) {
	GtkListBoxRow* _tmp0_;
	GitgHistoryRefHeader* ah;
	GtkListBoxRow* _tmp1_;
	GitgHistoryRefHeader* _tmp2_;
	GitgHistoryRefHeader* bh;
	GtkListBoxRow* _tmp3_;
	GitgHistoryRefHeader* _tmp4_;
	GitgHistoryRefHeader* _tmp5_;
	GitgHistoryRefHeader* _tmp6_;
	GitgHistoryRefHeader* _tmp7_;
	GitgHistoryRefRow* ar;
	GtkListBoxRow* _tmp22_;
	GitgHistoryRefRow* _tmp23_;
	GitgHistoryRefRow* br;
	GtkListBoxRow* _tmp24_;
	GitgHistoryRefRow* _tmp25_;
	gboolean _tmp26_ = FALSE;
	GitgHistoryRefRow* _tmp27_;
	GitgRef* _tmp28_;
	GitgRef* _tmp29_;
	gboolean _tmp34_ = FALSE;
	GitgHistoryRefRow* _tmp35_;
	GitgRef* _tmp36_;
	GitgRef* _tmp37_;
	GitgHistoryRefRow* _tmp41_;
	GitgRef* _tmp42_;
	GitgRef* _tmp43_;
	const gchar* _tmp44_;
	GitgHistoryRefRow* _tmp45_;
	GitgRef* _tmp46_;
	GitgRef* _tmp47_;
	const gchar* _tmp48_;
#line 785 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 785 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (a != NULL);
#line 787 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_selected_row;
#line 787 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 789 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4215 "gitg-history-refs-list.c"
	}
#line 792 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = a;
#line 792 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp1_) : NULL);
#line 792 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ah = _tmp2_;
#line 793 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_selected_row;
#line 793 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp3_) : NULL);
#line 793 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	bh = _tmp4_;
#line 795 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = ah;
#line 795 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = bh;
#line 795 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((_tmp5_ != NULL) != (_tmp6_ != NULL)) {
#line 797 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 797 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 797 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4241 "gitg-history-refs-list.c"
	}
#line 800 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = ah;
#line 800 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_ != NULL) {
#line 4247 "gitg-history-refs-list.c"
		gboolean _tmp8_ = FALSE;
		GitgHistoryRefHeader* _tmp9_;
		GitgRefType _tmp10_;
		GitgRefType _tmp11_;
		GitgHistoryRefHeader* _tmp12_;
		GitgRefType _tmp13_;
		GitgRefType _tmp14_;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ah;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp9_);
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = bh;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp12_);
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp11_ == _tmp14_) {
#line 4269 "gitg-history-refs-list.c"
			GitgHistoryRefHeader* _tmp15_;
			const gchar* _tmp16_;
			const gchar* _tmp17_;
			GitgHistoryRefHeader* _tmp18_;
			const gchar* _tmp19_;
			const gchar* _tmp20_;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = ah;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = gitg_history_ref_header_get_ref_name (_tmp15_);
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = bh;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = gitg_history_ref_header_get_ref_name (_tmp18_);
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = _tmp19_;
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = g_strcmp0 (_tmp17_, _tmp20_) == 0;
#line 4290 "gitg-history-refs-list.c"
		} else {
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = FALSE;
#line 4294 "gitg-history-refs-list.c"
		}
#line 802 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp8_) {
#line 4298 "gitg-history-refs-list.c"
			GtkListBoxRow* _tmp21_;
#line 804 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = a;
#line 804 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, _tmp21_);
#line 805 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (self->priv->d_selected_row);
#line 805 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			self->priv->d_selected_row = NULL;
#line 4308 "gitg-history-refs-list.c"
		}
#line 808 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 808 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 808 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4316 "gitg-history-refs-list.c"
	}
#line 811 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp22_ = a;
#line 811 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp22_) : NULL);
#line 811 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ar = _tmp23_;
#line 812 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp24_ = self->priv->d_selected_row;
#line 812 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp24_) : NULL);
#line 812 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	br = _tmp25_;
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp27_ = ar;
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp28_ = gitg_history_ref_row_get_reference (_tmp27_);
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = _tmp28_;
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp29_ == NULL) {
#line 4338 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp30_;
		GitgRef* _tmp31_;
		GitgRef* _tmp32_;
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = br;
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = gitg_history_ref_row_get_reference (_tmp30_);
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_;
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = _tmp32_ == NULL;
#line 4350 "gitg-history-refs-list.c"
	} else {
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = FALSE;
#line 4354 "gitg-history-refs-list.c"
	}
#line 814 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp26_) {
#line 4358 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp33_;
#line 816 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = a;
#line 816 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp33_);
#line 817 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 817 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 818 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (br);
#line 818 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ar);
#line 818 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 818 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 818 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4378 "gitg-history-refs-list.c"
	}
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp35_ = ar;
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp36_ = gitg_history_ref_row_get_reference (_tmp35_);
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp37_ = _tmp36_;
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp37_ == NULL) {
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = TRUE;
#line 4390 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp38_;
		GitgRef* _tmp39_;
		GitgRef* _tmp40_;
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp38_ = br;
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp39_ = gitg_history_ref_row_get_reference (_tmp38_);
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp40_ = _tmp39_;
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = _tmp40_ == NULL;
#line 4403 "gitg-history-refs-list.c"
	}
#line 821 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp34_) {
#line 823 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (br);
#line 823 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ar);
#line 823 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (bh);
#line 823 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ah);
#line 823 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 4417 "gitg-history-refs-list.c"
	}
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp41_ = ar;
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp42_ = gitg_history_ref_row_get_reference (_tmp41_);
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp43_ = _tmp42_;
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp44_ = ggit_ref_get_name ((GgitRef*) _tmp43_);
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp45_ = br;
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp46_ = gitg_history_ref_row_get_reference (_tmp45_);
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp47_ = _tmp46_;
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp48_ = ggit_ref_get_name ((GgitRef*) _tmp47_);
#line 826 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_strcmp0 (_tmp44_, _tmp48_) == 0) {
#line 4437 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp49_;
#line 828 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp49_ = a;
#line 828 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp49_);
#line 829 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 829 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 4447 "gitg-history-refs-list.c"
	}
#line 785 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (br);
#line 785 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ar);
#line 785 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (bh);
#line 785 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ah);
#line 4457 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_add (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GtkListBoxRow* _tmp0_;
	GtkListBoxRow* _tmp1_;
#line 833 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 833 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (row != NULL);
#line 835 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 835 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	GTK_CONTAINER_CLASS (gitg_history_refs_list_parent_class)->add ((GtkContainer*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox), (GtkWidget*) _tmp0_);
#line 836 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = row;
#line 836 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_reselect_row (self, _tmp1_);
#line 4476 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_expanded_changed (GitgHistoryRefsList* self) {
#line 839 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 841 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_invalidate_filter ((GtkListBox*) self);
#line 4485 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_expanded_changed ((GitgHistoryRefsList*) self);
#line 4492 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_init_header (GitgHistoryRefsList* self, GitgHistoryRefHeader* header) {
	GitgHistoryRefHeader* _tmp0_;
	GitgHistoryRefHeader* _tmp1_;
	GitgHistoryRefHeader* _tmp2_;
	GitgRefType _tmp3_;
	GitgRefType _tmp4_;
	GitgHistoryRefsListHeaderState* _tmp7_;
	gint _tmp7__length1;
#line 844 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 844 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (header != NULL);
#line 846 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = header;
#line 846 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp0_);
#line 847 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = header;
#line 847 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = header;
#line 849 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp2_);
#line 849 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_;
#line 849 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ == GITG_REF_TYPE_TAG) {
#line 4524 "gitg-history-refs-list.c"
		GitgHistoryRefHeader* _tmp5_;
#line 851 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = header;
#line 851 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_expanded (_tmp5_, FALSE);
#line 4530 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefHeader* _tmp6_;
#line 855 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = header;
#line 855 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_header_set_expanded (_tmp6_, TRUE);
#line 4537 "gitg-history-refs-list.c"
	}
#line 858 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = self->priv->d_expanded;
#line 858 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7__length1 = self->priv->d_expanded_length1;
#line 4543 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		state_collection = _tmp7_;
#line 858 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		state_collection_length1 = _tmp7__length1;
#line 858 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		for (state_it = 0; state_it < _tmp7__length1; state_it = state_it + 1) {
#line 4555 "gitg-history-refs-list.c"
			GitgHistoryRefsListHeaderState _tmp8_ = {0};
			GitgHistoryRefsListHeaderState state = {0};
#line 858 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_history_refs_list_header_state_copy (&state_collection[state_it], &_tmp8_);
#line 858 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			state = _tmp8_;
#line 4562 "gitg-history-refs-list.c"
			{
				gboolean _tmp9_ = FALSE;
				GitgHistoryRefsListHeaderState _tmp10_;
				const gchar* _tmp11_;
				GitgHistoryRefHeader* _tmp12_;
				const gchar* _tmp13_;
				const gchar* _tmp14_;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp10_ = state;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp11_ = _tmp10_.name;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp12_ = header;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp13_ = gitg_history_ref_header_get_ref_name (_tmp12_);
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp14_ = _tmp13_;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (g_strcmp0 (_tmp11_, _tmp14_) == 0) {
#line 4582 "gitg-history-refs-list.c"
					GitgHistoryRefsListHeaderState _tmp15_;
					GitgRefType _tmp16_;
					GitgHistoryRefHeader* _tmp17_;
					GitgRefType _tmp18_;
					GitgRefType _tmp19_;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp15_ = state;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp16_ = _tmp15_.type;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp17_ = header;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp18_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp17_);
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp19_ = _tmp18_;
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = _tmp16_ == _tmp19_;
#line 4600 "gitg-history-refs-list.c"
				} else {
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = FALSE;
#line 4604 "gitg-history-refs-list.c"
				}
#line 860 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp9_) {
#line 4608 "gitg-history-refs-list.c"
					GitgHistoryRefHeader* _tmp20_;
					GitgHistoryRefsListHeaderState _tmp21_;
					gboolean _tmp22_;
#line 862 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp20_ = header;
#line 862 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp21_ = state;
#line 862 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp22_ = _tmp21_.expanded;
#line 862 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					gitg_history_ref_header_set_expanded (_tmp20_, _tmp22_);
#line 4620 "gitg-history-refs-list.c"
				}
#line 858 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				gitg_history_refs_list_header_state_destroy (&state);
#line 4624 "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;
	GitgRefType _tmp0_;
	const gchar* _tmp1_;
	GitgHistoryRefHeader* _tmp2_;
#line 867 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 867 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 869 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = ref_type;
#line 869 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = name;
#line 869 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gitg_history_ref_header_new (_tmp0_, _tmp1_);
#line 869 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp2_);
#line 869 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp2_;
#line 870 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_init_header (self, header);
#line 872 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) header);
#line 873 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = header;
#line 873 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 4659 "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_;
	gboolean _tmp1_;
	GError * _inner_error_ = NULL;
#line 876 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 876 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (remote != NULL);
#line 876 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (refname != NULL);
#line 876 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (a != NULL);
#line 876 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (b != NULL);
#line 881 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = a;
#line 881 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = ggit_oid_is_zero (_tmp0_);
#line 881 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_) {
#line 4683 "gitg-history-refs-list.c"
		GitgRef* reference = NULL;
		GitgRepository* _tmp2_;
		GitgRepository* _tmp3_;
		GitgRef* _tmp14_;
#line 885 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = gitg_history_refs_list_get_repository (self);
#line 885 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = _tmp2_;
#line 885 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_repository_clear_refs_cache (_tmp3_);
#line 4694 "gitg-history-refs-list.c"
		{
			GitgRef* _tmp4_;
			GitgRepository* _tmp5_;
			GitgRepository* _tmp6_;
			const gchar* _tmp7_;
			GitgRef* _tmp8_;
			GitgRef* _tmp9_;
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp5_ = gitg_history_refs_list_get_repository (self);
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp6_ = _tmp5_;
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp7_ = refname;
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp8_ = gitg_repository_lookup_reference (_tmp6_, _tmp7_, &_inner_error_);
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = _tmp8_;
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4714 "gitg-history-refs-list.c"
				goto __catch120_g_error;
			}
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp9_ = _tmp4_;
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp4_ = NULL;
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 889 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			reference = _tmp9_;
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp4_);
#line 4727 "gitg-history-refs-list.c"
		}
		goto __finally120;
		__catch120_g_error:
		{
			GError* e = NULL;
			FILE* _tmp10_;
			const gchar* _tmp11_;
			GError* _tmp12_;
			const gchar* _tmp13_;
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			e = _inner_error_;
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_inner_error_ = NULL;
#line 893 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = stderr;
#line 893 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = refname;
#line 893 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = e;
#line 893 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp12_->message;
#line 893 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			fprintf (_tmp10_, "Failed to lookup new reference '%s': %s\n", _tmp11_, _tmp13_);
#line 894 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_error_free0 (e);
#line 894 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 894 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return;
#line 4757 "gitg-history-refs-list.c"
		}
		__finally120:
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (reference);
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_clear_error (&_inner_error_);
#line 887 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return;
#line 4770 "gitg-history-refs-list.c"
		}
#line 897 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = reference;
#line 897 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_add_ref (self, _tmp14_);
#line 881 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (reference);
#line 4778 "gitg-history-refs-list.c"
	} else {
		GgitOId* _tmp15_;
		gboolean _tmp16_;
#line 899 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = b;
#line 899 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = ggit_oid_is_zero (_tmp15_);
#line 899 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp16_) {
#line 4788 "gitg-history-refs-list.c"
			{
				GeeIterator* _reference_it;
				GeeHashMap* _tmp17_;
				GeeSet* _tmp18_;
				GeeSet* _tmp19_;
				GeeSet* _tmp20_;
				GeeIterator* _tmp21_;
				GeeIterator* _tmp22_;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp17_ = self->priv->d_ref_map;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp18_ = gee_abstract_map_get_keys ((GeeMap*) _tmp17_);
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp19_ = _tmp18_;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp20_ = _tmp19_;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp21_ = gee_iterable_iterator ((GeeIterable*) _tmp20_);
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp22_ = _tmp21_;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_tmp20_);
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_reference_it = _tmp22_;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				while (TRUE) {
#line 4815 "gitg-history-refs-list.c"
					GeeIterator* _tmp23_;
					gboolean _tmp24_;
					GitgRef* reference;
					GeeIterator* _tmp25_;
					gpointer _tmp26_;
					GitgRef* _tmp27_;
					const gchar* _tmp28_;
					const gchar* _tmp29_;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp23_ = _reference_it;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp24_ = gee_iterator_next (_tmp23_);
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					if (!_tmp24_) {
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						break;
#line 4832 "gitg-history-refs-list.c"
					}
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp25_ = _reference_it;
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp26_ = gee_iterator_get (_tmp25_);
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					reference = (GitgRef*) _tmp26_;
#line 904 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp27_ = reference;
#line 904 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp28_ = ggit_ref_get_name ((GgitRef*) _tmp27_);
#line 904 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp29_ = refname;
#line 904 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					if (g_strcmp0 (_tmp28_, _tmp29_) == 0) {
#line 4848 "gitg-history-refs-list.c"
						GitgRepository* _tmp30_;
						GitgRepository* _tmp31_;
						GitgRef* _tmp32_;
#line 906 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp30_ = gitg_history_refs_list_get_repository (self);
#line 906 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp31_ = _tmp30_;
#line 906 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						gitg_repository_clear_refs_cache (_tmp31_);
#line 907 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp32_ = reference;
#line 907 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						gitg_history_refs_list_remove_ref (self, _tmp32_);
#line 908 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (reference);
#line 908 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						break;
#line 4866 "gitg-history-refs-list.c"
					}
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_g_object_unref0 (reference);
#line 4870 "gitg-history-refs-list.c"
				}
#line 902 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (_reference_it);
#line 4874 "gitg-history-refs-list.c"
			}
		} else {
			GitgRepository* _tmp33_;
			GitgRepository* _tmp34_;
#line 915 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp33_ = gitg_history_refs_list_get_repository (self);
#line 915 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp34_ = _tmp33_;
#line 915 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gitg_repository_clear_refs_cache (_tmp34_);
#line 916 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			g_signal_emit (self, gitg_history_refs_list_signals[GITG_HISTORY_REFS_LIST_CHANGED_SIGNAL], 0);
#line 4887 "gitg-history-refs-list.c"
		}
	}
}


static void _vala_array_add21 (GitgRemote** * array, int* length, int* size, GitgRemote* value) {
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if ((*length) == (*size)) {
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		*array = g_renew (GitgRemote*, *array, (*size) + 1);
#line 4900 "gitg-history-refs-list.c"
	}
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(*array)[(*length)++] = value;
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(*array)[*length] = NULL;
#line 4906 "gitg-history-refs-list.c"
}


static GitgHistoryRefHeader* gitg_history_refs_list_add_remote_header (GitgHistoryRefsList* self, const gchar* name) {
	GitgHistoryRefHeader* result = NULL;
	GitgRemote* remote;
	GitgExtRemoteLookup* _tmp0_;
	GitgRemote* _tmp4_;
	GitgHistoryRefHeader* header;
	const gchar* _tmp9_;
	GitgRemote* _tmp10_;
	GitgHistoryRefHeader* _tmp11_;
	GeeHashMap* _tmp12_;
	const gchar* _tmp13_;
	GitgHistoryRefsListRemoteHeader* _tmp14_;
	GitgHistoryRefsListRemoteHeader* _tmp15_;
#line 920 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 920 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 922 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	remote = NULL;
#line 924 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->_remote_lookup;
#line 924 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ != NULL) {
#line 4933 "gitg-history-refs-list.c"
		GitgExtRemoteLookup* _tmp1_;
		const gchar* _tmp2_;
		GitgRemote* _tmp3_;
#line 926 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->_remote_lookup;
#line 926 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = name;
#line 926 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_ext_remote_lookup_lookup (_tmp1_, _tmp2_);
#line 926 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (remote);
#line 926 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp3_;
#line 4947 "gitg-history-refs-list.c"
	}
#line 929 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = remote;
#line 929 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ != NULL) {
#line 4953 "gitg-history-refs-list.c"
		GitgRemote** _tmp5_;
		gint _tmp5__length1;
		GitgRemote* _tmp6_;
		GitgRemote* _tmp7_;
		GitgRemote* _tmp8_;
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = self->priv->d_remotes;
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5__length1 = self->priv->d_remotes_length1;
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = remote;
#line 931 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _g_object_ref0 (_tmp6_);
#line 931 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = remote;
#line 932 "/home/mcatanzaro/Projects/GNOME/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 4973 "gitg-history-refs-list.c"
	}
#line 935 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = name;
#line 935 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = remote;
#line 935 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_history_ref_header_new_remote (_tmp9_, _tmp10_);
#line 935 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp11_);
#line 935 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	header = _tmp11_;
#line 936 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_init_header (self, header);
#line 938 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = self->priv->d_header_map;
#line 938 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = name;
#line 938 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = gitg_history_refs_list_remote_header_new (header);
#line 938 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = _tmp14_;
#line 938 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp12_, _tmp13_, _tmp15_);
#line 938 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_gitg_history_refs_list_remote_header_unref0 (_tmp15_);
#line 939 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) header);
#line 941 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = header;
#line 941 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (remote);
#line 941 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5007 "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;
	GitgRef* _tmp0_;
	GitgHistoryRefAnimation _tmp1_;
	GitgHistoryRefRow* _tmp2_;
	GitgHistoryRefRow* _tmp3_;
	GitgHistoryRefRow* _tmp4_;
	GitgRef* _tmp5_;
#line 944 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 946 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 946 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = animation;
#line 946 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gitg_history_ref_row_new (_tmp0_, _tmp1_);
#line 946 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_ref_sink (_tmp2_);
#line 946 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp2_;
#line 947 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 947 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_widget_show ((GtkWidget*) _tmp3_);
#line 949 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = row;
#line 949 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_add (self, (GtkListBoxRow*) _tmp4_);
#line 951 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = reference;
#line 951 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp5_ != NULL) {
#line 5044 "gitg-history-refs-list.c"
		GeeHashMap* _tmp6_;
		GitgRef* _tmp7_;
		GitgHistoryRefRow* _tmp8_;
#line 953 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = self->priv->d_ref_map;
#line 953 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = reference;
#line 953 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = row;
#line 953 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, _tmp7_, _tmp8_);
#line 5056 "gitg-history-refs-list.c"
	}
#line 956 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = row;
#line 956 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5062 "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_;
	GitgRef* _tmp1_;
	gboolean _tmp2_;
	GitgRef* _tmp3_;
	GitgParsedRefName* _tmp4_;
	GitgParsedRefName* _tmp5_;
	GitgParsedRefName* _tmp6_;
	GitgRefType _tmp7_;
	GitgRefType _tmp8_;
	gboolean _tmp9_;
	GitgRef* _tmp29_;
	GitgHistoryRefAnimation _tmp30_;
	GitgHistoryRefRow* _tmp31_;
#line 959 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 959 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 961 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 961 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 961 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 961 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 963 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 963 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5097 "gitg-history-refs-list.c"
	}
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = reference;
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_ref_get_parsed_name (_tmp3_);
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = _tmp5_;
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_parsed_ref_name_get_rtype (_tmp6_);
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_;
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _tmp8_ == GITG_REF_TYPE_REMOTE;
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp6_);
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp9_) {
#line 5117 "gitg-history-refs-list.c"
		gchar* remote;
		GitgRef* _tmp10_;
		GitgParsedRefName* _tmp11_;
		GitgParsedRefName* _tmp12_;
		GitgParsedRefName* _tmp13_;
		gchar* _tmp14_;
		gchar* _tmp15_;
		gchar* _tmp16_;
		GeeHashMap* _tmp17_;
		const gchar* _tmp18_;
		gboolean _tmp19_;
		GeeHashMap* _tmp23_;
		const gchar* _tmp24_;
		gpointer _tmp25_;
		GitgHistoryRefsListRemoteHeader* _tmp26_;
		GeeHashSet* _tmp27_;
		GitgRef* _tmp28_;
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = reference;
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = gitg_ref_get_parsed_name (_tmp10_);
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = _tmp11_;
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = _tmp12_;
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = gitg_parsed_ref_name_get_remote_name (_tmp13_);
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = _tmp14_;
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = _tmp15_;
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp13_);
#line 968 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp16_;
#line 970 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = self->priv->d_header_map;
#line 970 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = remote;
#line 970 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp17_, _tmp18_);
#line 970 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!_tmp19_) {
#line 5161 "gitg-history-refs-list.c"
			const gchar* _tmp20_;
			GitgHistoryRefHeader* _tmp21_;
			GitgHistoryRefHeader* _tmp22_;
#line 972 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = remote;
#line 972 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = gitg_history_refs_list_add_remote_header (self, _tmp20_);
#line 972 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp22_ = _tmp21_;
#line 972 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp22_);
#line 5173 "gitg-history-refs-list.c"
		}
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = self->priv->d_header_map;
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp24_ = remote;
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp25_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp23_, _tmp24_);
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = (GitgHistoryRefsListRemoteHeader*) _tmp25_;
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = _tmp26_->references;
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp28_ = reference;
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp27_, _tmp28_);
#line 975 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_gitg_history_refs_list_remote_header_unref0 (_tmp26_);
#line 966 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (remote);
#line 5193 "gitg-history-refs-list.c"
	}
#line 978 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp29_ = reference;
#line 978 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp30_ = animation;
#line 978 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp31_ = gitg_history_refs_list_add_ref_row (self, _tmp29_, _tmp30_);
#line 978 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp31_;
#line 978 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5205 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_add_ref (GitgHistoryRefsList* self, GitgRef* reference) {
	gboolean result = FALSE;
	GitgRef* _tmp0_;
	GitgHistoryRefRow* _tmp1_;
	GitgHistoryRefRow* _tmp2_;
	gboolean _tmp3_;
#line 981 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 981 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 983 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 983 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_add_ref_internal (self, _tmp0_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 983 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _tmp1_;
#line 983 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_ != NULL;
#line 983 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp2_);
#line 983 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_) {
#line 985 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit (self, gitg_history_refs_list_signals[GITG_HISTORY_REFS_LIST_CHANGED_SIGNAL], 0);
#line 986 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 986 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5237 "gitg-history-refs-list.c"
	}
#line 989 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 989 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5243 "gitg-history-refs-list.c"
}


void gitg_history_refs_list_replace_ref (GitgHistoryRefsList* self, GitgRef* old_ref, GitgRef* new_ref) {
	gboolean select;
	GeeHashMap* _tmp0_;
	GitgRef* _tmp1_;
	gboolean _tmp2_;
	gboolean removed;
	GitgRef* _tmp8_;
	gboolean _tmp9_;
	GitgHistoryRefRow* newrow;
	GitgRef* _tmp10_;
	GitgHistoryRefRow* _tmp11_;
	gboolean _tmp12_;
	gboolean _tmp14_ = FALSE;
	gboolean _tmp15_;
#line 992 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 992 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (old_ref != NULL);
#line 992 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (new_ref != NULL);
#line 994 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	select = FALSE;
#line 996 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 996 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = old_ref;
#line 996 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 996 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 5277 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp3_;
		GeeHashMap* _tmp4_;
		GitgRef* _tmp5_;
		gpointer _tmp6_;
		GitgHistoryRefRow* _tmp7_;
#line 998 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 998 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = self->priv->d_ref_map;
#line 998 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = old_ref;
#line 998 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp4_, _tmp5_);
#line 998 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = (GitgHistoryRefRow*) _tmp6_;
#line 998 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		select = _tmp3_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_list_box_row_get_type (), GtkListBoxRow);
#line 998 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp7_);
#line 5297 "gitg-history-refs-list.c"
	}
#line 1001 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = old_ref;
#line 1001 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = gitg_history_refs_list_remove_ref_internal (self, _tmp8_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 1001 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	removed = _tmp9_;
#line 1002 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = new_ref;
#line 1002 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = gitg_history_refs_list_add_ref_internal (self, _tmp10_, GITG_HISTORY_REF_ANIMATION_ANIMATE);
#line 1002 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	newrow = _tmp11_;
#line 1004 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = select;
#line 1004 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp12_) {
#line 5315 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp13_;
#line 1006 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = newrow;
#line 1006 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp13_);
#line 5321 "gitg-history-refs-list.c"
	}
#line 1009 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = removed;
#line 1009 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp15_) {
#line 1009 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = TRUE;
#line 5329 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp16_;
#line 1009 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = newrow;
#line 1009 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp16_ != NULL;
#line 5336 "gitg-history-refs-list.c"
	}
#line 1009 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp14_) {
#line 1011 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit (self, gitg_history_refs_list_signals[GITG_HISTORY_REFS_LIST_CHANGED_SIGNAL], 0);
#line 5342 "gitg-history-refs-list.c"
	}
#line 992 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (newrow);
#line 5346 "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_;
	GgitRefType _tmp1_;
	gchar* name = NULL;
	GitgRef* _tmp2_;
	GitgParsedRefName* _tmp3_;
	GitgParsedRefName* _tmp4_;
	GitgParsedRefName* _tmp5_;
	GitgRefType _tmp6_;
	GitgRefType _tmp7_;
	gboolean _tmp8_;
	const gchar* _tmp21_;
#line 1016 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1016 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 1018 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 1018 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = ggit_ref_get_reference_type ((GgitRef*) _tmp0_);
#line 1018 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_ != GGIT_REF_SYMBOLIC) {
#line 1020 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 1020 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5377 "gitg-history-refs-list.c"
	}
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = reference;
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = _tmp3_;
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_;
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_parsed_ref_name_get_rtype (_tmp5_);
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = _tmp6_;
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = _tmp7_ == GITG_REF_TYPE_REMOTE;
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp5_);
#line 1025 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_) {
#line 5397 "gitg-history-refs-list.c"
		GitgRef* _tmp9_;
		GitgParsedRefName* _tmp10_;
		GitgParsedRefName* _tmp11_;
		GitgParsedRefName* _tmp12_;
		gchar* _tmp13_;
		gchar* _tmp14_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = reference;
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_ref_get_parsed_name (_tmp9_);
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = _tmp11_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_parsed_ref_name_get_remote_branch (_tmp12_);
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (name);
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		name = _tmp14_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp12_);
#line 5422 "gitg-history-refs-list.c"
	} else {
		GitgRef* _tmp15_;
		GitgParsedRefName* _tmp16_;
		GitgParsedRefName* _tmp17_;
		GitgParsedRefName* _tmp18_;
		gchar* _tmp19_;
		gchar* _tmp20_;
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = reference;
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = gitg_ref_get_parsed_name (_tmp15_);
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp17_ = _tmp16_;
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = _tmp17_;
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_parsed_ref_name_get_shortname (_tmp18_);
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (name);
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		name = _tmp20_;
#line 1031 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp18_);
#line 5448 "gitg-history-refs-list.c"
	}
#line 1034 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp21_ = name;
#line 1034 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = g_strcmp0 (_tmp21_, "HEAD") == 0;
#line 1034 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 (name);
#line 1034 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5458 "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_;
	GitgRef* _tmp1_;
	gboolean _tmp2_;
	GitgHistoryRefRow* row;
	GeeHashMap* _tmp3_;
	GitgRef* _tmp4_;
	gpointer _tmp5_;
	GitgHistoryRefAnimation _tmp6_;
	GeeHashMap* _tmp9_;
	GitgRef* _tmp10_;
	GitgRef* _tmp11_;
	GitgParsedRefName* _tmp12_;
	GitgParsedRefName* _tmp13_;
	GitgParsedRefName* _tmp14_;
	GitgRefType _tmp15_;
	GitgRefType _tmp16_;
	gboolean _tmp17_;
#line 1037 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1037 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 1039 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 1039 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 1039 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 1039 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 1041 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = FALSE;
#line 1041 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5497 "gitg-history-refs-list.c"
	}
#line 1044 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = self->priv->d_ref_map;
#line 1044 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = reference;
#line 1044 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp3_, _tmp4_);
#line 1044 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = (GitgHistoryRefRow*) _tmp5_;
#line 1046 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = animation;
#line 1046 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ == GITG_HISTORY_REF_ANIMATION_NONE) {
#line 5511 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_;
#line 1048 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = row;
#line 1048 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp7_);
#line 5517 "gitg-history-refs-list.c"
	} else {
		GitgHistoryRefRow* _tmp8_;
#line 1052 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = row;
#line 1052 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_ref_row_unreveal (_tmp8_);
#line 5524 "gitg-history-refs-list.c"
	}
#line 1055 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = self->priv->d_ref_map;
#line 1055 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp10_ = reference;
#line 1055 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gee_abstract_map_unset ((GeeAbstractMap*) _tmp9_, _tmp10_, NULL);
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = reference;
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp12_ = gitg_ref_get_parsed_name (_tmp11_);
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp13_ = _tmp12_;
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp14_ = _tmp13_;
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = gitg_parsed_ref_name_get_rtype (_tmp14_);
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = _tmp15_;
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = _tmp16_ == GITG_REF_TYPE_REMOTE;
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (_tmp14_);
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp17_) {
#line 5550 "gitg-history-refs-list.c"
		gchar* remote;
		GitgRef* _tmp18_;
		GitgParsedRefName* _tmp19_;
		GitgParsedRefName* _tmp20_;
		GitgParsedRefName* _tmp21_;
		gchar* _tmp22_;
		gchar* _tmp23_;
		gchar* _tmp24_;
		GitgHistoryRefsListRemoteHeader* remote_header;
		GeeHashMap* _tmp25_;
		const gchar* _tmp26_;
		gpointer _tmp27_;
		GitgHistoryRefsListRemoteHeader* _tmp28_;
		GeeHashSet* _tmp29_;
		GitgRef* _tmp30_;
		GitgHistoryRefsListRemoteHeader* _tmp31_;
		GeeHashSet* _tmp32_;
		gboolean _tmp33_;
		gboolean _tmp34_;
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = reference;
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_ref_get_parsed_name (_tmp18_);
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = _tmp19_;
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp21_ = _tmp20_;
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp22_ = gitg_parsed_ref_name_get_remote_name (_tmp21_);
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp23_ = _tmp22_;
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp24_ = _tmp23_;
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp21_);
#line 1059 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote = _tmp24_;
#line 1060 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp25_ = self->priv->d_header_map;
#line 1060 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp26_ = remote;
#line 1060 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp27_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp25_, _tmp26_);
#line 1060 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		remote_header = (GitgHistoryRefsListRemoteHeader*) _tmp27_;
#line 1062 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp28_ = remote_header;
#line 1062 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp29_ = _tmp28_->references;
#line 1062 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp30_ = reference;
#line 1062 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp29_, _tmp30_);
#line 1064 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp31_ = remote_header;
#line 1064 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp32_ = _tmp31_->references;
#line 1064 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp33_ = gee_collection_get_is_empty ((GeeCollection*) _tmp32_);
#line 1064 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp34_ = _tmp33_;
#line 1064 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp34_) {
#line 5614 "gitg-history-refs-list.c"
			GitgHistoryRefsListRemoteHeader* _tmp35_;
			GitgHistoryRefHeader* _tmp36_;
			GeeHashMap* _tmp37_;
			const gchar* _tmp38_;
#line 1066 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp35_ = remote_header;
#line 1066 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp36_ = _tmp35_->header;
#line 1066 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_widget_destroy ((GtkWidget*) _tmp36_);
#line 1067 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp37_ = self->priv->d_header_map;
#line 1067 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp38_ = remote;
#line 1067 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_map_unset ((GeeAbstractMap*) _tmp37_, _tmp38_, NULL);
#line 5631 "gitg-history-refs-list.c"
		}
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_gitg_history_refs_list_remote_header_unref0 (remote_header);
#line 1057 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_free0 (remote);
#line 5637 "gitg-history-refs-list.c"
	}
#line 1071 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = TRUE;
#line 1071 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1071 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5645 "gitg-history-refs-list.c"
}


gboolean gitg_history_refs_list_remove_ref (GitgHistoryRefsList* self, GitgRef* reference) {
	gboolean result = FALSE;
	GitgRef* _tmp0_;
	gboolean _tmp1_;
#line 1074 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1074 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (reference != NULL, FALSE);
#line 1076 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = reference;
#line 1076 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gitg_history_refs_list_remove_ref_internal (self, _tmp0_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 1076 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp1_) {
#line 1078 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_signal_emit (self, gitg_history_refs_list_signals[GITG_HISTORY_REFS_LIST_CHANGED_SIGNAL], 0);
#line 1079 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 1079 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 5669 "gitg-history-refs-list.c"
	}
#line 1082 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = FALSE;
#line 1082 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 5675 "gitg-history-refs-list.c"
}


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


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


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


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


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


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


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


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


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


static void gitg_history_refs_list_store_expanded_state (GitgHistoryRefsList* self) {
	GitgHistoryRefsListHeaderState* _tmp0_;
#line 1139 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1141 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = g_new0 (GitgHistoryRefsListHeaderState, 0);
#line 1141 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_expanded = _tmp0_;
#line 1141 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_expanded_length1 = 0;
#line 1141 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_expanded_size_ = self->priv->d_expanded_length1;
#line 1143 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_container_foreach ((GtkContainer*) self, ___lambda120__gtk_callback, self);
#line 6030 "gitg-history-refs-list.c"
}


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


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


static gint ___lambda121_ (Block74Data* _data74_, const gchar* nm) {
	GitgHistoryRefsList* self;
	gint result = 0;
	GitgRef* r = NULL;
	GitgRef* _tmp6_;
	gboolean _tmp7_;
	GitgHistoryRefRow* row;
	GitgRef* _tmp8_;
	GitgHistoryRefRow* _tmp9_;
	gboolean _tmp10_ = FALSE;
	GitgHistoryRefRow* _tmp11_;
	GError * _inner_error_ = NULL;
#line 1191 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data74_->self;
#line 1191 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (nm != NULL, 0);
#line 6079 "gitg-history-refs-list.c"
	{
		GitgRef* _tmp0_;
		GitgRepository* _tmp1_;
		const gchar* _tmp2_;
		GitgRef* _tmp3_;
		GitgRef* _tmp4_;
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = self->priv->d_repository;
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = nm;
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_repository_lookup_reference (_tmp1_, _tmp2_, &_inner_error_);
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = _tmp3_;
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6096 "gitg-history-refs-list.c"
			goto __catch123_g_error;
		}
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp0_;
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = NULL;
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1196 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		r = _tmp4_;
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_tmp0_);
#line 6109 "gitg-history-refs-list.c"
	}
	goto __finally123;
	__catch123_g_error:
	{
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 1197 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 0;
#line 1197 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1197 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 6124 "gitg-history-refs-list.c"
	}
	__finally123:
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6129 "gitg-history-refs-list.c"
		gint _tmp5_ = 0;
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1194 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return _tmp5_;
#line 6139 "gitg-history-refs-list.c"
	}
#line 1201 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = r;
#line 1201 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gitg_history_refs_list_ref_is_a_symbolic_head (self, _tmp6_);
#line 1201 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp7_) {
#line 1203 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = 0;
#line 1203 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (r);
#line 1203 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 6153 "gitg-history-refs-list.c"
	}
#line 1206 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = r;
#line 1206 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp9_;
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = row;
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp11_ != NULL) {
#line 6165 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp12_;
		gboolean _tmp13_;
		gboolean _tmp14_;
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = row;
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gitg_history_ref_row_get_is_head (_tmp12_);
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = _tmp13_;
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp14_;
#line 6177 "gitg-history-refs-list.c"
	} else {
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = FALSE;
#line 6181 "gitg-history-refs-list.c"
	}
#line 1208 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_) {
#line 6185 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp15_;
		GitgHistoryRefRow* _tmp16_;
#line 1210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp15_ = row;
#line 1210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp16_ = _g_object_ref0 (_tmp15_);
#line 1210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (_data74_->head);
#line 1210 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_->head = _tmp16_;
#line 6196 "gitg-history-refs-list.c"
	}
#line 1212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = 0;
#line 1212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (r);
#line 1212 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6206 "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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6215 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_refresh (GitgHistoryRefsList* self) {
	Block74Data* _data74_;
	GtkListBoxRow* _tmp0_;
	GtkListBoxRow* _tmp1_;
	GitgRepository* _tmp2_;
	GitgHistoryRefRow* _tmp3_;
	GitgHistoryRefHeader* _tmp4_;
	GitgHistoryRefHeader* _tmp5_;
	GitgHistoryRefHeader* _tmp6_;
	GtkListBoxRow* sel;
	GtkListBoxRow* _tmp15_;
	GtkListBoxRow* _tmp16_;
	GtkListBoxRow* _tmp17_;
	GError * _inner_error_ = NULL;
#line 1157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_ = g_slice_new0 (Block74Data);
#line 1157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_->_ref_count_ = 1;
#line 1157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_->self = g_object_ref (self);
#line 1159 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_freeze_notify ((GObject*) self);
#line 1161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 1161 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_selected_row = _tmp1_;
#line 1162 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_store_expanded_state (self);
#line 1164 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_clear (self);
#line 1166 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = self->priv->d_repository;
#line 1166 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 1168 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (self->priv->d_selected_row);
#line 1168 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		self->priv->d_selected_row = NULL;
#line 1169 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_thaw_notify ((GObject*) self);
#line 1170 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		block74_data_unref (_data74_);
#line 1170 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_ = NULL;
#line 1170 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6271 "gitg-history-refs-list.c"
	}
#line 1173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = gitg_history_refs_list_add_ref_row (self, NULL, GITG_HISTORY_REF_ANIMATION_NONE);
#line 1173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_commits);
#line 1173 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_commits = _tmp3_;
#line 1174 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_refs_list_add_header (self, GITG_REF_TYPE_BRANCH, _ ("Branches"));
#line 1174 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_branches);
#line 1174 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_branches = _tmp4_;
#line 1175 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gitg_history_refs_list_add_header (self, GITG_REF_TYPE_REMOTE, _ ("Remotes"));
#line 1175 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_remotes);
#line 1175 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_remotes = _tmp5_;
#line 1176 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_add_header (self, GITG_REF_TYPE_TAG, _ ("Tags"));
#line 1176 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_tags);
#line 1176 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_all_tags = _tmp6_;
#line 1178 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_->head = NULL;
#line 6299 "gitg-history-refs-list.c"
	{
		gboolean _tmp7_;
		GitgRepository* _tmp8_;
		gboolean _tmp9_;
#line 1182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = self->priv->d_repository;
#line 1182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ggit_repository_is_head_detached ((GgitRepository*) _tmp8_, &_inner_error_);
#line 1182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = _tmp9_;
#line 1182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6312 "gitg-history-refs-list.c"
			goto __catch121_g_error;
		}
#line 1182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp7_) {
#line 6317 "gitg-history-refs-list.c"
			GitgRef* _tmp10_;
			GitgRepository* _tmp11_;
			GitgRef* _tmp12_;
			GitgHistoryRefRow* _tmp13_;
#line 1184 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp11_ = self->priv->d_repository;
#line 1184 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = gitg_repository_lookup_reference (_tmp11_, "HEAD", &_inner_error_);
#line 1184 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp10_ = _tmp12_;
#line 1184 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6330 "gitg-history-refs-list.c"
				goto __catch121_g_error;
			}
#line 1184 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = gitg_history_refs_list_add_ref_internal (self, _tmp10_, GITG_HISTORY_REF_ANIMATION_NONE);
#line 1184 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_data74_->head);
#line 1184 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_data74_->head = _tmp13_;
#line 1182 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (_tmp10_);
#line 6341 "gitg-history-refs-list.c"
		}
	}
	goto __finally121;
	__catch121_g_error:
	{
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 6351 "gitg-history-refs-list.c"
	}
	__finally121:
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		block74_data_unref (_data74_);
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_ = NULL;
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1180 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6366 "gitg-history-refs-list.c"
	}
	{
		GitgRepository* _tmp14_;
#line 1191 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = self->priv->d_repository;
#line 1191 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		ggit_repository_references_foreach_name ((GgitRepository*) _tmp14_, ____lambda121__ggit_references_name_callback, _data74_, &_inner_error_);
#line 1191 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6376 "gitg-history-refs-list.c"
			goto __catch122_g_error;
		}
	}
	goto __finally122;
	__catch122_g_error:
	{
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 6387 "gitg-history-refs-list.c"
	}
	__finally122:
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		block74_data_unref (_data74_);
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_data74_ = NULL;
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1189 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6402 "gitg-history-refs-list.c"
	}
#line 1216 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 1216 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_selected_row = NULL;
#line 1218 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp15_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1218 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp16_ = _g_object_ref0 (_tmp15_);
#line 1218 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	sel = _tmp16_;
#line 1220 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp17_ = sel;
#line 1220 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp17_ == NULL) {
#line 6418 "gitg-history-refs-list.c"
		GSettings* settings;
		GSettings* _tmp18_;
		GitgHistoryDefaultSelection default_selection;
		GSettings* _tmp19_;
		gint _tmp20_;
		GtkListBoxRow* srow;
		GitgHistoryDefaultSelection _tmp21_;
		GtkListBoxRow* _tmp28_;
#line 1222 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = g_settings_new ("org.gnome.gitg.preferences.history");
#line 1222 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		settings = _tmp18_;
#line 1223 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = settings;
#line 1223 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp20_ = g_settings_get_enum (_tmp19_, "default-selection");
#line 1223 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		default_selection = (GitgHistoryDefaultSelection) _tmp20_;
#line 1224 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		srow = NULL;
#line 1226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp21_ = default_selection;
#line 1226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		switch (_tmp21_) {
#line 1226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			case GITG_HISTORY_DEFAULT_SELECTION_CURRENT_BRANCH:
#line 6445 "gitg-history-refs-list.c"
			{
				GitgHistoryRefRow* _tmp22_;
				GtkListBoxRow* _tmp23_;
#line 1229 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp22_ = _data74_->head;
#line 1229 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp23_ = _g_object_ref0 ((GtkListBoxRow*) _tmp22_);
#line 1229 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (srow);
#line 1229 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				srow = _tmp23_;
#line 1230 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				break;
#line 6459 "gitg-history-refs-list.c"
			}
#line 1226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			case GITG_HISTORY_DEFAULT_SELECTION_ALL_BRANCHES:
#line 6463 "gitg-history-refs-list.c"
			{
				GitgHistoryRefHeader* _tmp24_;
				GtkListBoxRow* _tmp25_;
#line 1232 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp24_ = self->priv->d_all_branches;
#line 1232 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp25_ = _g_object_ref0 ((GtkListBoxRow*) _tmp24_);
#line 1232 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (srow);
#line 1232 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				srow = _tmp25_;
#line 1233 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				break;
#line 6477 "gitg-history-refs-list.c"
			}
#line 1226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			case GITG_HISTORY_DEFAULT_SELECTION_ALL_COMMITS:
#line 6481 "gitg-history-refs-list.c"
			{
				GitgHistoryRefRow* _tmp26_;
				GtkListBoxRow* _tmp27_;
#line 1235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp26_ = self->priv->d_all_commits;
#line 1235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp27_ = _g_object_ref0 ((GtkListBoxRow*) _tmp26_);
#line 1235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (srow);
#line 1235 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				srow = _tmp27_;
#line 1236 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				break;
#line 6495 "gitg-history-refs-list.c"
			}
			default:
#line 1226 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 6500 "gitg-history-refs-list.c"
		}
#line 1239 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp28_ = srow;
#line 1239 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp28_ != NULL) {
#line 6506 "gitg-history-refs-list.c"
			GtkListBoxRow* _tmp29_;
#line 1242 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp29_ = srow;
#line 1242 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, _tmp29_);
#line 6512 "gitg-history-refs-list.c"
		} else {
			GitgHistoryRefRow* _tmp30_;
#line 1247 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp30_ = self->priv->d_all_commits;
#line 1247 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gtk_list_box_select_row ((GtkListBox*) self, (GtkListBoxRow*) _tmp30_);
#line 6519 "gitg-history-refs-list.c"
		}
#line 1220 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (srow);
#line 1220 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (settings);
#line 6525 "gitg-history-refs-list.c"
	}
#line 1251 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_thaw_notify ((GObject*) self);
#line 1157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (sel);
#line 1157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	block74_data_unref (_data74_);
#line 1157 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data74_ = NULL;
#line 6535 "gitg-history-refs-list.c"
}


static GitgHistoryRefRow* gitg_history_refs_list_get_ref_row (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GitgHistoryRefRow* result = NULL;
	GtkListBoxRow* _tmp0_;
	GtkListBoxRow* _tmp1_;
	GitgHistoryRefRow* _tmp2_;
#line 1254 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1256 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 1256 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp0_ == NULL) {
#line 1258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = NULL;
#line 1258 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 6554 "gitg-history-refs-list.c"
	}
#line 1261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = row;
#line 1261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_HISTORY_TYPE_REF_ROW) ? ((GitgHistoryRefRow*) _tmp1_) : NULL);
#line 1261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp2_;
#line 1261 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6564 "gitg-history-refs-list.c"
}


static GitgHistoryRefHeader* gitg_history_refs_list_get_ref_header (GitgHistoryRefsList* self, GtkListBoxRow* row) {
	GitgHistoryRefHeader* result = NULL;
	GtkListBoxRow* _tmp0_;
	GitgHistoryRefHeader* _tmp1_;
#line 1264 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1264 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (row != NULL, NULL);
#line 1266 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = row;
#line 1266 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp0_) : NULL);
#line 1266 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 1266 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6584 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_real_row_selected (GtkListBox* base, GtkListBoxRow* row) {
	GitgHistoryRefsList * self;
#line 1382 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1384 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_notify ((GObject*) self, "selection");
#line 6594 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_real_move_cursor (GtkListBox* base, GtkMovementStep step, gint n) {
	GitgHistoryRefsList * self;
	GtkListBoxRow* selrow;
	GtkListBoxRow* _tmp0_;
	GtkListBoxRow* _tmp1_;
	GtkMovementStep _tmp2_;
	gint _tmp3_;
	GtkListBoxRow* _tmp4_;
	GtkListBoxRow* _tmp5_;
#line 1387 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1389 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1389 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1389 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	selrow = _tmp1_;
#line 1390 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = step;
#line 1390 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = n;
#line 1390 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	GTK_LIST_BOX_CLASS (gitg_history_refs_list_parent_class)->move_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox), _tmp2_, _tmp3_);
#line 1392 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = selrow;
#line 1392 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1392 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp4_ != _tmp5_) {
#line 1394 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_notify ((GObject*) self, "selection");
#line 6629 "gitg-history-refs-list.c"
	}
#line 1387 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (selrow);
#line 6633 "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_;
	GitgRef* _tmp1_;
	gboolean _tmp2_;
	GitgHistoryRefRow* row;
	GeeHashMap* _tmp4_;
	GitgRef* _tmp5_;
	gpointer _tmp6_;
	GitgHistoryRefRow* _tmp7_;
	GitgExtRefNameEditingDone _tmp8_;
	void* _tmp8__target;
	GDestroyNotify _tmp8__target_destroy_notify;
#line 1398 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 1398 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (reference != NULL);
#line 1400 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = self->priv->d_ref_map;
#line 1400 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = reference;
#line 1400 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, _tmp1_);
#line 1400 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!_tmp2_) {
#line 6661 "gitg-history-refs-list.c"
		GitgExtRefNameEditingDone _tmp3_;
		void* _tmp3__target;
#line 1402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = done;
#line 1402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3__target = done_target;
#line 1402 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ ("", TRUE, _tmp3__target);
#line 1403 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 1403 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		done = NULL;
#line 1403 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target = NULL;
#line 1403 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		done_target_destroy_notify = NULL;
#line 1403 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return;
#line 6680 "gitg-history-refs-list.c"
	}
#line 1406 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = self->priv->d_ref_map;
#line 1406 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = reference;
#line 1406 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp4_, _tmp5_);
#line 1406 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = (GitgHistoryRefRow*) _tmp6_;
#line 1407 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = row;
#line 1407 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = done;
#line 1407 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8__target = done_target;
#line 1407 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8__target_destroy_notify = done_target_destroy_notify;
#line 1407 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 1407 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1398 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(done_target_destroy_notify == NULL) ? NULL : (done_target_destroy_notify (done_target), NULL);
#line 1398 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done = NULL;
#line 1398 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target = NULL;
#line 1398 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	done_target_destroy_notify = NULL;
#line 6712 "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_;
#line 1410 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1410 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (origin != NULL, 0);
#line 1412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	while (TRUE) {
#line 6725 "gitg-history-refs-list.c"
		GdkWindow* _tmp0_;
		GdkWindow* _tmp1_;
		gint wx = 0;
		gint wy = 0;
		GdkWindow* _tmp2_;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _tmp5_;
		gint _tmp6_;
		GdkWindow* _tmp7_;
		GdkWindow* _tmp8_;
#line 1412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = origin;
#line 1412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp1_ = gtk_widget_get_window ((GtkWidget*) self);
#line 1412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (!(_tmp0_ != _tmp1_)) {
#line 1412 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			break;
#line 6745 "gitg-history-refs-list.c"
		}
#line 1417 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = origin;
#line 1417 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gdk_window_get_position (_tmp2_, &_tmp3_, &_tmp4_);
#line 1417 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		wx = _tmp3_;
#line 1417 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		wy = _tmp4_;
#line 1419 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = y;
#line 1419 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = wy;
#line 1419 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		y = _tmp5_ + _tmp6_;
#line 1421 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = origin;
#line 1421 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gdk_window_get_parent (_tmp7_);
#line 1421 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		origin = _tmp8_;
#line 6767 "gitg-history-refs-list.c"
	}
#line 1424 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = y;
#line 1424 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp9_;
#line 1424 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6775 "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;
	GdkEventButton* _tmp0_;
	gboolean _tmp1_;
	gint y;
	GdkEventButton* _tmp2_;
	gdouble _tmp3_;
	GdkEventButton* _tmp4_;
	GdkWindow* _tmp5_;
	gint _tmp6_;
	GtkListBoxRow* row;
	gint _tmp7_;
	GtkListBoxRow* _tmp8_;
	GtkListBoxRow* _tmp9_;
	gboolean _tmp10_ = FALSE;
	GtkListBoxRow* _tmp11_;
#line 1427 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsList*) base;
#line 1427 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (button != NULL, FALSE);
#line 1429 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = button;
#line 1429 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = GTK_WIDGET_CLASS (gitg_history_refs_list_parent_class)->button_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_get_type (), GtkListBox), _tmp0_);
#line 1429 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp1_;
#line 1431 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = button;
#line 1431 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = _tmp2_->y;
#line 1431 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = button;
#line 1431 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = _tmp4_->window;
#line 1431 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_y_in_window (self, (gint) _tmp3_, _tmp5_);
#line 1431 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	y = _tmp6_;
#line 1432 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = y;
#line 1432 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = gtk_list_box_get_row_at_y ((GtkListBox*) self, _tmp7_);
#line 1432 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 1432 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp9_;
#line 1434 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp11_ = row;
#line 1434 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp11_ != NULL) {
#line 6831 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp12_;
		GtkListBoxRow* _tmp13_;
#line 1434 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp12_ = row;
#line 1434 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp13_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1434 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = _tmp12_ != _tmp13_;
#line 6840 "gitg-history-refs-list.c"
	} else {
#line 1434 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = FALSE;
#line 6844 "gitg-history-refs-list.c"
	}
#line 1434 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp10_) {
#line 6848 "gitg-history-refs-list.c"
		GtkListBoxRow* _tmp14_;
#line 1436 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = row;
#line 1436 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_select_row ((GtkListBox*) self, _tmp14_);
#line 6854 "gitg-history-refs-list.c"
	}
#line 1439 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = ret;
#line 1439 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1439 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 6862 "gitg-history-refs-list.c"
}


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


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


GitgHistoryRefsList* gitg_history_refs_list_new (void) {
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_refs_list_construct (GITG_HISTORY_TYPE_REFS_LIST);
#line 6995 "gitg-history-refs-list.c"
}


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


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


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


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


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


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


static void _gitg_history_refs_list_references___lambda122_ (Block75Data* _data75_, GtkWidget* child) {
	GitgHistoryRefsList* self;
	GitgHistoryRefRow* row;
	GtkWidget* _tmp0_;
	GitgHistoryRefRow* _tmp1_;
	gboolean _tmp2_ = FALSE;
	GitgHistoryRefRow* _tmp3_;
#line 601 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = _data75_->self;
#line 601 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (child != NULL);
#line 602 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = child;
#line 602 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp3_ != NULL) {
#line 7127 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp4_;
		GitgRef* _tmp5_;
		GitgRef* _tmp6_;
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = row;
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = gitg_history_ref_row_get_reference (_tmp4_);
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp6_ = _tmp5_;
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = _tmp6_ != NULL;
#line 7139 "gitg-history-refs-list.c"
	} else {
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp2_ = FALSE;
#line 7143 "gitg-history-refs-list.c"
	}
#line 604 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_) {
#line 7147 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_;
		GitgRef* _tmp8_;
		GitgRef* _tmp9_;
#line 606 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = row;
#line 606 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gitg_history_ref_row_get_reference (_tmp7_);
#line 606 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = _tmp8_;
#line 606 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data75_->ret, _tmp9_);
#line 7159 "gitg-history-refs-list.c"
	}
#line 601 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 7163 "gitg-history-refs-list.c"
}


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


GeeList* gitg_history_refs_list_get_references (GitgHistoryRefsList* self) {
	GeeList* result;
	Block75Data* _data75_;
	GeeLinkedList* _tmp0_;
	GeeList* _tmp1_;
#line 597 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 597 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_ = g_slice_new0 (Block75Data);
#line 597 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_->_ref_count_ = 1;
#line 597 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_->self = g_object_ref (self);
#line 599 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 599 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_->ret = _tmp0_;
#line 601 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 ((GeeList*) _data75_->ret);
#line 610 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp1_;
#line 610 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	block75_data_unref (_data75_);
#line 610 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_data75_ = NULL;
#line 610 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return result;
#line 7203 "gitg-history-refs-list.c"
}


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


void gitg_history_refs_list_set_reference_sort_order (GitgHistoryRefsList* self, const gchar* value) {
#line 627 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (self != NULL);
#line 627 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_strcmp0 (value, gitg_history_refs_list_get_reference_sort_order (self)) != 0) {
#line 7236 "gitg-history-refs-list.c"
		const gchar* _tmp0_;
#line 629 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp0_ = value;
#line 629 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (g_strcmp0 (_tmp0_, "last-activity") == 0) {
#line 631 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			self->priv->d_ref_sort_order = GITG_HISTORY_REF_ROW_SORT_ORDER_LAST_ACTIVITY;
#line 7244 "gitg-history-refs-list.c"
		} else {
#line 635 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			self->priv->d_ref_sort_order = GITG_HISTORY_REF_ROW_SORT_ORDER_NAME;
#line 7248 "gitg-history-refs-list.c"
		}
#line 638 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gtk_list_box_invalidate_sort ((GtkListBox*) self);
#line 627 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_object_notify ((GObject *) self, "reference-sort-order");
#line 7254 "gitg-history-refs-list.c"
	}
}


GeeList* gitg_history_refs_list_get_all (GitgHistoryRefsList* self) {
	GeeList* result;
	GeeLinkedList* ret;
	GeeLinkedList* _tmp0_;
	GList* _tmp1_;
	GError * _inner_error_ = NULL;
#line 1271 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1273 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 1273 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp0_;
#line 1275 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		child_collection = _tmp1_;
#line 1275 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			child = (GtkWidget*) child_it->data;
#line 7285 "gitg-history-refs-list.c"
			{
				GitgHistoryRefRow* r;
				GtkWidget* _tmp2_;
				GitgHistoryRefRow* _tmp3_;
				gboolean _tmp4_ = FALSE;
				GitgHistoryRefRow* _tmp5_;
#line 1277 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp2_ = child;
#line 1277 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp3_ = gitg_history_refs_list_get_ref_row (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_list_box_row_get_type ()) ? ((GtkListBoxRow*) _tmp2_) : NULL);
#line 1277 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				r = _tmp3_;
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_tmp5_ = r;
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp5_ != NULL) {
#line 7302 "gitg-history-refs-list.c"
					GitgHistoryRefRow* _tmp6_;
					GitgRef* _tmp7_;
					GitgRef* _tmp8_;
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp6_ = r;
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp7_ = gitg_history_ref_row_get_reference (_tmp6_);
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp8_ = _tmp7_;
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp4_ = _tmp8_ != NULL;
#line 7314 "gitg-history-refs-list.c"
				} else {
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp4_ = FALSE;
#line 7318 "gitg-history-refs-list.c"
				}
#line 1279 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				if (_tmp4_) {
#line 7322 "gitg-history-refs-list.c"
					GeeLinkedList* _tmp9_;
					GitgHistoryRefRow* _tmp10_;
					GitgRef* _tmp11_;
					GitgRef* _tmp12_;
#line 1281 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp9_ = ret;
#line 1281 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp10_ = r;
#line 1281 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp11_ = gitg_history_ref_row_get_reference (_tmp10_);
#line 1281 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp12_ = _tmp11_;
#line 1281 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				_g_object_unref0 (r);
#line 7341 "gitg-history-refs-list.c"
			}
		}
#line 1275 "/home/mcatanzaro/Projects/GNOME/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_;
#line 1287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp14_ = self->priv->d_repository;
#line 1287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp14_ != NULL) {
#line 7355 "gitg-history-refs-list.c"
			gboolean _tmp15_;
			GitgRepository* _tmp16_;
			gboolean _tmp17_;
#line 1287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = self->priv->d_repository;
#line 1287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = ggit_repository_is_head_detached ((GgitRepository*) _tmp16_, &_inner_error_);
#line 1287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = _tmp17_;
#line 1287 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp15_;
#line 7372 "gitg-history-refs-list.c"
		} else {
#line 1287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = FALSE;
#line 7376 "gitg-history-refs-list.c"
		}
#line 1287 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp13_) {
#line 7380 "gitg-history-refs-list.c"
			GitgRef* _tmp18_;
			GitgRepository* _tmp19_;
			GitgRef* _tmp20_;
			GeeLinkedList* _tmp21_;
#line 1289 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp19_ = self->priv->d_repository;
#line 1289 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp20_ = gitg_repository_get_head (_tmp19_, &_inner_error_);
#line 1289 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp18_ = _tmp20_;
#line 1289 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp21_ = ret;
#line 1289 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp21_, _tmp18_);
#line 1287 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_inner_error_ = NULL;
#line 7412 "gitg-history-refs-list.c"
	}
	__finally124:
#line 1285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ret);
#line 1285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_clear_error (&_inner_error_);
#line 1285 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return NULL;
#line 7425 "gitg-history-refs-list.c"
	}
#line 1293 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (GeeList*) ret;
#line 1293 "/home/mcatanzaro/Projects/GNOME/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_;
#line 1299 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1299 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1299 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_HISTORY_TYPE_REF_HEADER) ? ((GitgHistoryRefHeader*) _tmp0_) : NULL) != NULL;
#line 1299 "/home/mcatanzaro/Projects/GNOME/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;
	GtkListBoxRow* _tmp0_;
	GtkListBoxRow* _tmp1_;
	GtkListBoxRow* _tmp2_;
	GitgHistoryRefRow* ref_row;
	GtkListBoxRow* _tmp3_;
	GitgHistoryRefRow* _tmp4_;
	gboolean _tmp5_ = FALSE;
	GitgHistoryRefRow* _tmp6_;
#line 1304 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1306 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1306 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1306 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 1308 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 1308 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 1310 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = TRUE;
#line 1310 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (row);
#line 1310 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 7479 "gitg-history-refs-list.c"
	}
#line 1313 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = row;
#line 1313 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = gitg_history_refs_list_get_ref_row (self, _tmp3_);
#line 1313 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ref_row = _tmp4_;
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = ref_row;
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp6_ != NULL) {
#line 7491 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp7_;
		GitgRef* _tmp8_;
		GitgRef* _tmp9_;
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp7_ = ref_row;
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp8_ = gitg_history_ref_row_get_reference (_tmp7_);
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = _tmp8_;
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = _tmp9_ == NULL;
#line 7503 "gitg-history-refs-list.c"
	} else {
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp5_ = FALSE;
#line 7507 "gitg-history-refs-list.c"
	}
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = _tmp5_;
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref_row);
#line 1315 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1315 "/home/mcatanzaro/Projects/GNOME/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;
	GtkListBoxRow* _tmp0_;
	GtkListBoxRow* _tmp1_;
	GtkListBoxRow* _tmp2_;
	GitgHistoryRefRow* ref_row;
	GtkListBoxRow* _tmp5_;
	GitgHistoryRefRow* _tmp6_;
	GeeLinkedList* ret;
	GeeLinkedList* _tmp7_;
	GitgHistoryRefRow* _tmp8_;
#line 1321 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1323 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gtk_list_box_get_selected_row ((GtkListBox*) self);
#line 1323 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 1323 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	row = _tmp1_;
#line 1325 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = row;
#line 1325 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp2_ == NULL) {
#line 7545 "gitg-history-refs-list.c"
		GeeList* _tmp3_;
		GeeList* _tmp4_;
#line 1327 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp3_ = gitg_history_refs_list_get_all (self);
#line 1327 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp4_ = _tmp3_;
#line 1327 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		result = _tmp4_;
#line 1327 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (row);
#line 1327 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return result;
#line 7558 "gitg-history-refs-list.c"
	}
#line 1330 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp5_ = row;
#line 1330 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp6_ = gitg_history_refs_list_get_ref_row (self, _tmp5_);
#line 1330 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ref_row = _tmp6_;
#line 1331 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp7_ = gee_linked_list_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 1331 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	ret = _tmp7_;
#line 1333 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp8_ = ref_row;
#line 1333 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (_tmp8_ != NULL) {
#line 7574 "gitg-history-refs-list.c"
		GitgHistoryRefRow* _tmp9_;
		GitgRef* _tmp10_;
		GitgRef* _tmp11_;
#line 1335 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp9_ = ref_row;
#line 1335 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp10_ = gitg_history_ref_row_get_reference (_tmp9_);
#line 1335 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp11_ = _tmp10_;
#line 1335 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (_tmp11_ == NULL) {
#line 7586 "gitg-history-refs-list.c"
			GeeList* _tmp12_;
			GeeList* _tmp13_;
#line 1337 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp12_ = gitg_history_refs_list_get_all (self);
#line 1337 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp13_ = _tmp12_;
#line 1337 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			result = _tmp13_;
#line 1337 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ret);
#line 1337 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (ref_row);
#line 1337 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_object_unref0 (row);
#line 1337 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return result;
#line 7603 "gitg-history-refs-list.c"
		} else {
			GeeLinkedList* _tmp14_;
			GitgHistoryRefRow* _tmp15_;
			GitgRef* _tmp16_;
			GitgRef* _tmp17_;
#line 1341 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp14_ = ret;
#line 1341 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp15_ = ref_row;
#line 1341 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp16_ = gitg_history_ref_row_get_reference (_tmp15_);
#line 1341 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_tmp17_ = _tmp16_;
#line 1341 "/home/mcatanzaro/Projects/GNOME/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;
		GtkListBoxRow* _tmp18_;
		GitgHistoryRefHeader* _tmp19_;
		gboolean found;
		GList* _tmp20_;
#line 1346 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp18_ = row;
#line 1346 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_tmp19_ = gitg_history_refs_list_get_ref_header (self, _tmp18_);
#line 1346 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		ref_header = _tmp19_;
#line 1347 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		found = FALSE;
#line 1349 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			child_collection = _tmp20_;
#line 1349 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
				child = (GtkWidget*) child_it->data;
#line 7649 "gitg-history-refs-list.c"
				{
					gboolean _tmp21_;
#line 1351 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					_tmp21_ = found;
#line 1351 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
					if (_tmp21_) {
#line 7656 "gitg-history-refs-list.c"
						GtkListBoxRow* nrow;
						GtkWidget* _tmp22_;
						GtkListBoxRow* _tmp23_;
						GitgHistoryRefRow* nref_row;
						GtkListBoxRow* _tmp24_;
						GitgHistoryRefRow* _tmp25_;
						GitgHistoryRefRow* _tmp26_;
#line 1353 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp22_ = child;
#line 1353 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_list_box_row_get_type ()) ? ((GtkListBoxRow*) _tmp22_) : NULL);
#line 1353 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						nrow = _tmp23_;
#line 1354 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp24_ = nrow;
#line 1354 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp25_ = gitg_history_refs_list_get_ref_row (self, _tmp24_);
#line 1354 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						nref_row = _tmp25_;
#line 1356 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp26_ = nref_row;
#line 1356 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						if (_tmp26_ == NULL) {
#line 7680 "gitg-history-refs-list.c"
							GitgHistoryRefHeader* nref_header;
							GtkListBoxRow* _tmp27_;
							GitgHistoryRefHeader* _tmp28_;
							gboolean _tmp29_ = FALSE;
							GitgHistoryRefHeader* _tmp30_;
							gboolean _tmp31_;
							gboolean _tmp32_;
#line 1358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp27_ = nrow;
#line 1358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp28_ = gitg_history_refs_list_get_ref_header (self, _tmp27_);
#line 1358 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							nref_header = _tmp28_;
#line 1360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp30_ = ref_header;
#line 1360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp31_ = gitg_history_ref_header_get_is_sub_header_remote (_tmp30_);
#line 1360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp32_ = _tmp31_;
#line 1360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							if (_tmp32_) {
#line 1360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp29_ = TRUE;
#line 7704 "gitg-history-refs-list.c"
							} else {
								GitgHistoryRefHeader* _tmp33_;
								GitgRefType _tmp34_;
								GitgRefType _tmp35_;
								GitgHistoryRefHeader* _tmp36_;
								GitgRefType _tmp37_;
								GitgRefType _tmp38_;
#line 1361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp33_ = nref_header;
#line 1361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp34_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp33_);
#line 1361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp35_ = _tmp34_;
#line 1361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp36_ = ref_header;
#line 1361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp37_ = gitg_history_ref_typed_get_ref_type ((GitgHistoryRefTyped*) _tmp36_);
#line 1361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp38_ = _tmp37_;
#line 1361 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_tmp29_ = _tmp35_ != _tmp38_;
#line 7726 "gitg-history-refs-list.c"
							}
#line 1360 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							if (_tmp29_) {
#line 1363 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nref_header);
#line 1363 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nref_row);
#line 1363 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								_g_object_unref0 (nrow);
#line 1363 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
								break;
#line 7738 "gitg-history-refs-list.c"
							}
#line 1356 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_g_object_unref0 (nref_header);
#line 7742 "gitg-history-refs-list.c"
						} else {
							GeeLinkedList* _tmp39_;
							GitgHistoryRefRow* _tmp40_;
							GitgRef* _tmp41_;
							GitgRef* _tmp42_;
#line 1368 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp39_ = ret;
#line 1368 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp40_ = nref_row;
#line 1368 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp41_ = gitg_history_ref_row_get_reference (_tmp40_);
#line 1368 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							_tmp42_ = _tmp41_;
#line 1368 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (nref_row);
#line 1351 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_g_object_unref0 (nrow);
#line 7764 "gitg-history-refs-list.c"
					} else {
						GtkWidget* _tmp43_;
						GtkListBoxRow* _tmp44_;
#line 1371 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp43_ = child;
#line 1371 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						_tmp44_ = row;
#line 1371 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
						if (_tmp43_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget)) {
#line 1373 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
							found = TRUE;
#line 7776 "gitg-history-refs-list.c"
						}
					}
				}
			}
#line 1349 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			_g_list_free0 (child_collection);
#line 7783 "gitg-history-refs-list.c"
		}
#line 1333 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		_g_object_unref0 (ref_header);
#line 7787 "gitg-history-refs-list.c"
	}
#line 1378 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	result = (GeeList*) ret;
#line 1378 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (ref_row);
#line 1378 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (row);
#line 1378 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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_;
	GeeHashMap* _tmp1_;
	GitgRemote** _tmp2_;
	GSettings* settings;
	GSettings* _tmp3_;
	GSettings* _tmp4_;
#line 577 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	parent_class = G_OBJECT_CLASS (gitg_history_refs_list_parent_class);
#line 577 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 577 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 579 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, (GBoxedCopyFunc) gitg_history_refs_list_remote_header_ref, gitg_history_refs_list_remote_header_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 579 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 579 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_header_map = _tmp0_;
#line 580 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = gee_hash_map_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, GITG_HISTORY_TYPE_REF_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 580 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 580 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_ref_map = _tmp1_;
#line 581 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_set_selection_mode ((GtkListBox*) self, GTK_SELECTION_BROWSE);
#line 582 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = g_new0 (GitgRemote*, 0 + 1);
#line 582 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 582 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = _tmp2_;
#line 582 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes_length1 = 0;
#line 582 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->_d_remotes_size_ = self->priv->d_remotes_length1;
#line 584 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gtk_list_box_set_sort_func ((GtkListBox*) self, _gitg_history_refs_list_sort_rows_gtk_list_box_sort_func, g_object_ref (self), g_object_unref);
#line 585 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = g_settings_new ("org.gnome.gitg.preferences.history");
#line 587 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	settings = _tmp3_;
#line 589 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp4_ = settings;
#line 589 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (settings);
#line 577 "/home/mcatanzaro/Projects/GNOME/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_;
	GitgHistoryRefHeader* _tmp1_;
	GeeHashSet* _tmp2_;
#line 544 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (h != NULL, NULL);
#line 544 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = (GitgHistoryRefsListRemoteHeader*) g_type_create_instance (object_type);
#line 546 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = h;
#line 546 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 546 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->header);
#line 546 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->header = _tmp1_;
#line 547 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = gee_hash_set_new (GITG_TYPE_REF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 547 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->references);
#line 547 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->references = _tmp2_;
#line 544 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	return gitg_history_refs_list_remote_header_construct (GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, h);
#line 7911 "gitg-history-refs-list.c"
}


static void gitg_history_refs_list_value_remote_header_init (GValue* value) {
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (value->data[0].v_pointer) {
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (src_value->data[0].v_pointer) {
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		dest_value->data[0].v_pointer = gitg_history_refs_list_remote_header_ref (src_value->data[0].v_pointer);
#line 7937 "gitg-history-refs-list.c"
	} else {
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		if (object->parent_instance.g_class == NULL) {
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 7963 "gitg-history-refs-list.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 7967 "gitg-history-refs-list.c"
		}
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 7975 "gitg-history-refs-list.c"
	}
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!object_p) {
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 7990 "gitg-history-refs-list.c"
	}
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (!value->data[0].v_pointer) {
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (g_type_is_a (object_type, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER), NULL);
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER), NULL);
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	old = value->data[0].v_pointer;
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (v_object) {
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = v_object;
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 8055 "gitg-history-refs-list.c"
	}
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (old) {
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	old = value->data[0].v_pointer;
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (v_object) {
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER));
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		value->data[0].v_pointer = NULL;
#line 8084 "gitg-history-refs-list.c"
	}
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (old) {
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_REFS_LIST_TYPE_REMOTE_HEADER, GitgHistoryRefsListRemoteHeader);
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_signal_handlers_destroy (self);
#line 541 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->header);
#line 542 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_atomic_int_inc (&self->ref_count);
#line 539 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 539 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		GITG_HISTORY_REFS_LIST_REMOTE_HEADER_GET_CLASS (self)->finalize (self);
#line 539 "/home/mcatanzaro/Projects/GNOME/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_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gboolean _tmp3_;
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp0_ = (*self).type;
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(*dest).type = _tmp0_;
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp1_ = (*self).name;
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_free0 ((*dest).name);
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	(*dest).name = _tmp2_;
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_tmp3_ = (*self).expanded;
#line 519 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	dup = g_new0 (GitgHistoryRefsListHeaderState, 1);
#line 519 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_header_state_copy (self, dup);
#line 519 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_header_state_destroy (self);
#line 519 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_parent_class = g_type_class_peek_parent (klass);
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryRefsListPrivate));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	((GObjectClass *) klass)->dispose = gitg_history_refs_list_real_dispose;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkListBoxClass *) klass)->row_selected = gitg_history_refs_list_real_row_selected;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkListBoxClass *) klass)->move_cursor = gitg_history_refs_list_real_move_cursor;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	((GtkWidgetClass *) klass)->button_press_event = gitg_history_refs_list_real_button_press_event;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_refs_list_get_property;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_refs_list_set_property;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_history_refs_list_constructor;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_refs_list_finalize;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP, g_param_spec_object ("remote-lookup", "remote-lookup", "remote-lookup", GITG_EXT_TYPE_REMOTE_LOOKUP, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_REPOSITORY, g_param_spec_object ("repository", "repository", "repository", GITG_TYPE_REPOSITORY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 517 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_ALL, g_param_spec_object ("all", "all", "all", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_IS_HEADER, g_param_spec_boolean ("is-header", "is-header", "is-header", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_IS_ALL, g_param_spec_boolean ("is-all", "is-all", "is-all", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_REFS_LIST_SELECTION, g_param_spec_object ("selection", "selection", "selection", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	gitg_history_refs_list_signals[GITG_HISTORY_REFS_LIST_CHANGED_SIGNAL] = 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/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_REFS_LIST, GitgHistoryRefsList);
#line 526 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 527 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_ref_map);
#line 528 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_selected_row);
#line 529 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	self->priv->d_remotes = (_vala_array_free (self->priv->d_remotes, self->priv->d_remotes_length1, (GDestroyNotify) g_object_unref), NULL);
#line 530 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_commits);
#line 531 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_branches);
#line 532 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_remotes);
#line 533 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_all_tags);
#line 535 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->d_header_map);
#line 553 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	_g_object_unref0 (self->priv->_remote_lookup);
#line 517 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_refs_list_get_remote_lookup (self));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REPOSITORY:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_object (value, gitg_history_refs_list_get_repository (self));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REFERENCES:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_references (self));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REFERENCE_SORT_ORDER:
#line 517 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_ALL:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_all (self));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_IS_HEADER:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_refs_list_get_is_header (self));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_IS_ALL:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_set_boolean (value, gitg_history_refs_list_get_is_all (self));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_SELECTION:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		g_value_take_object (value, gitg_history_refs_list_get_selection (self));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 8375 "gitg-history-refs-list.c"
		default:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 517 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
	switch (property_id) {
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REMOTE_LOOKUP:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_set_remote_lookup (self, g_value_get_object (value));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REPOSITORY:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		gitg_history_refs_list_set_repository (self, g_value_get_object (value));
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		case GITG_HISTORY_REFS_LIST_REFERENCE_SORT_ORDER:
#line 517 "/home/mcatanzaro/Projects/GNOME/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/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		break;
#line 8409 "gitg-history-refs-list.c"
		default:
#line 517 "/home/mcatanzaro/Projects/GNOME/gitg/gitg/history/gitg-history-refs-list.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 517 "/home/mcatanzaro/Projects/GNOME/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);
}



