/* gitg-history.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-history.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2012 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include "libgitg-ext/libgitg-ext.h"
#include "libgitg/libgitg.h"
#include <gee.h>
#include <libgit2-glib/ggit.h>
#include <float.h>
#include <math.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <stdio.h>
#include <gdk/gdk.h>
#include <cairo.h>
#include <libpeas/peas.h>
#include <glib/gi18n-lib.h>


#define GITG_HISTORY_TYPE_DEFAULT_SELECTION (gitg_history_default_selection_get_type ())

#define GITG_HISTORY_TYPE_ACTIVITY (gitg_history_activity_get_type ())
#define GITG_HISTORY_ACTIVITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity))
#define GITG_HISTORY_ACTIVITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivityClass))
#define GITG_HISTORY_IS_ACTIVITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_ACTIVITY))
#define GITG_HISTORY_IS_ACTIVITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_ACTIVITY))
#define GITG_HISTORY_ACTIVITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivityClass))

typedef struct _GitgHistoryActivity GitgHistoryActivity;
typedef struct _GitgHistoryActivityClass GitgHistoryActivityClass;
typedef struct _GitgHistoryActivityPrivate GitgHistoryActivityPrivate;

#define GITG_TYPE_ANIMATED_PANED (gitg_animated_paned_get_type ())
#define GITG_ANIMATED_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_ANIMATED_PANED, GitgAnimatedPaned))
#define GITG_ANIMATED_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_ANIMATED_PANED, GitgAnimatedPanedClass))
#define GITG_IS_ANIMATED_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_ANIMATED_PANED))
#define GITG_IS_ANIMATED_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_ANIMATED_PANED))
#define GITG_ANIMATED_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_ANIMATED_PANED, GitgAnimatedPanedClass))

typedef struct _GitgAnimatedPaned GitgAnimatedPaned;
typedef struct _GitgAnimatedPanedClass GitgAnimatedPanedClass;

#define GITG_HISTORY_TYPE_PANED (gitg_history_paned_get_type ())
#define GITG_HISTORY_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_PANED, GitgHistoryPaned))
#define GITG_HISTORY_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_PANED, GitgHistoryPanedClass))
#define GITG_HISTORY_IS_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_PANED))
#define GITG_HISTORY_IS_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_PANED))
#define GITG_HISTORY_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_PANED, GitgHistoryPanedClass))

typedef struct _GitgHistoryPaned GitgHistoryPaned;
typedef struct _GitgHistoryPanedClass GitgHistoryPanedClass;

#define GITG_TYPE_POPUP_MENU (gitg_popup_menu_get_type ())
#define GITG_POPUP_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_POPUP_MENU, GitgPopupMenu))
#define GITG_POPUP_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_POPUP_MENU, GitgPopupMenuClass))
#define GITG_IS_POPUP_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_POPUP_MENU))
#define GITG_IS_POPUP_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_POPUP_MENU))
#define GITG_POPUP_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_POPUP_MENU, GitgPopupMenuClass))

typedef struct _GitgPopupMenu GitgPopupMenu;
typedef struct _GitgPopupMenuClass GitgPopupMenuClass;

#define GITG_TYPE_UI_ELEMENTS (gitg_ui_elements_get_type ())
#define GITG_UI_ELEMENTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_UI_ELEMENTS, GitgUIElements))
#define GITG_UI_ELEMENTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_UI_ELEMENTS, GitgUIElementsClass))
#define GITG_IS_UI_ELEMENTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_UI_ELEMENTS))
#define GITG_IS_UI_ELEMENTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_UI_ELEMENTS))
#define GITG_UI_ELEMENTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_UI_ELEMENTS, GitgUIElementsClass))

typedef struct _GitgUIElements GitgUIElements;
typedef struct _GitgUIElementsClass GitgUIElementsClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))
#define _gitg_when_mapped_unref0(var) ((var == NULL) ? NULL : (var = (gitg_when_mapped_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block76Data Block76Data;
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))

#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;
#define __g_list_free__gtk_tree_path_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__gtk_tree_path_free0_ (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block77Data Block77Data;
typedef struct _Block78Data Block78Data;

#define GITG_TYPE_PLUGINS_ENGINE (gitg_plugins_engine_get_type ())
#define GITG_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngine))
#define GITG_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))
#define GITG_IS_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_IS_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_PLUGINS_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))

typedef struct _GitgPluginsEngine GitgPluginsEngine;
typedef struct _GitgPluginsEngineClass GitgPluginsEngineClass;
typedef struct _Block79Data Block79Data;

#define GITG_HISTORY_TYPE_ACTION_INTERFACE (gitg_history_action_interface_get_type ())
#define GITG_HISTORY_ACTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterface))
#define GITG_HISTORY_ACTION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterfaceClass))
#define GITG_HISTORY_IS_ACTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_ACTION_INTERFACE))
#define GITG_HISTORY_IS_ACTION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_ACTION_INTERFACE))
#define GITG_HISTORY_ACTION_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_ACTION_INTERFACE, GitgHistoryActionInterfaceClass))

typedef struct _GitgHistoryActionInterface GitgHistoryActionInterface;
typedef struct _GitgHistoryActionInterfaceClass GitgHistoryActionInterfaceClass;

#define GITG_TYPE_COMMIT_ACTION_CREATE_BRANCH (gitg_commit_action_create_branch_get_type ())
#define GITG_COMMIT_ACTION_CREATE_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_BRANCH, GitgCommitActionCreateBranch))
#define GITG_COMMIT_ACTION_CREATE_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_BRANCH, GitgCommitActionCreateBranchClass))
#define GITG_IS_COMMIT_ACTION_CREATE_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_BRANCH))
#define GITG_IS_COMMIT_ACTION_CREATE_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_BRANCH))
#define GITG_COMMIT_ACTION_CREATE_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_BRANCH, GitgCommitActionCreateBranchClass))

typedef struct _GitgCommitActionCreateBranch GitgCommitActionCreateBranch;
typedef struct _GitgCommitActionCreateBranchClass GitgCommitActionCreateBranchClass;

#define GITG_TYPE_COMMIT_ACTION_CREATE_TAG (gitg_commit_action_create_tag_get_type ())
#define GITG_COMMIT_ACTION_CREATE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTag))
#define GITG_COMMIT_ACTION_CREATE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTagClass))
#define GITG_IS_COMMIT_ACTION_CREATE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_TAG))
#define GITG_IS_COMMIT_ACTION_CREATE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_TAG))
#define GITG_COMMIT_ACTION_CREATE_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_TAG, GitgCommitActionCreateTagClass))

typedef struct _GitgCommitActionCreateTag GitgCommitActionCreateTag;
typedef struct _GitgCommitActionCreateTagClass GitgCommitActionCreateTagClass;

#define GITG_TYPE_COMMIT_ACTION_CREATE_PATCH (gitg_commit_action_create_patch_get_type ())
#define GITG_COMMIT_ACTION_CREATE_PATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_PATCH, GitgCommitActionCreatePatch))
#define GITG_COMMIT_ACTION_CREATE_PATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_PATCH, GitgCommitActionCreatePatchClass))
#define GITG_IS_COMMIT_ACTION_CREATE_PATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_PATCH))
#define GITG_IS_COMMIT_ACTION_CREATE_PATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_COMMIT_ACTION_CREATE_PATCH))
#define GITG_COMMIT_ACTION_CREATE_PATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_COMMIT_ACTION_CREATE_PATCH, GitgCommitActionCreatePatchClass))

typedef struct _GitgCommitActionCreatePatch GitgCommitActionCreatePatch;
typedef struct _GitgCommitActionCreatePatchClass GitgCommitActionCreatePatchClass;

#define GITG_TYPE_COMMIT_ACTION_CHERRY_PICK (gitg_commit_action_cherry_pick_get_type ())
#define GITG_COMMIT_ACTION_CHERRY_PICK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMIT_ACTION_CHERRY_PICK, GitgCommitActionCherryPick))
#define GITG_COMMIT_ACTION_CHERRY_PICK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_COMMIT_ACTION_CHERRY_PICK, GitgCommitActionCherryPickClass))
#define GITG_IS_COMMIT_ACTION_CHERRY_PICK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_COMMIT_ACTION_CHERRY_PICK))
#define GITG_IS_COMMIT_ACTION_CHERRY_PICK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_COMMIT_ACTION_CHERRY_PICK))
#define GITG_COMMIT_ACTION_CHERRY_PICK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_COMMIT_ACTION_CHERRY_PICK, GitgCommitActionCherryPickClass))

typedef struct _GitgCommitActionCherryPick GitgCommitActionCherryPick;
typedef struct _GitgCommitActionCherryPickClass GitgCommitActionCherryPickClass;
typedef struct _Block80Data Block80Data;

#define GITG_TYPE_REF_ACTION_CHECKOUT (gitg_ref_action_checkout_get_type ())
#define GITG_REF_ACTION_CHECKOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckout))
#define GITG_REF_ACTION_CHECKOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckoutClass))
#define GITG_IS_REF_ACTION_CHECKOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_CHECKOUT))
#define GITG_IS_REF_ACTION_CHECKOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_CHECKOUT))
#define GITG_REF_ACTION_CHECKOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_CHECKOUT, GitgRefActionCheckoutClass))

typedef struct _GitgRefActionCheckout GitgRefActionCheckout;
typedef struct _GitgRefActionCheckoutClass GitgRefActionCheckoutClass;

#define GITG_TYPE_REF_ACTION_RENAME (gitg_ref_action_rename_get_type ())
#define GITG_REF_ACTION_RENAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_RENAME, GitgRefActionRename))
#define GITG_REF_ACTION_RENAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_RENAME, GitgRefActionRenameClass))
#define GITG_IS_REF_ACTION_RENAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_RENAME))
#define GITG_IS_REF_ACTION_RENAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_RENAME))
#define GITG_REF_ACTION_RENAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_RENAME, GitgRefActionRenameClass))

typedef struct _GitgRefActionRename GitgRefActionRename;
typedef struct _GitgRefActionRenameClass GitgRefActionRenameClass;

#define GITG_TYPE_REF_ACTION_DELETE (gitg_ref_action_delete_get_type ())
#define GITG_REF_ACTION_DELETE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDelete))
#define GITG_REF_ACTION_DELETE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDeleteClass))
#define GITG_IS_REF_ACTION_DELETE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_DELETE))
#define GITG_IS_REF_ACTION_DELETE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_DELETE))
#define GITG_REF_ACTION_DELETE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_DELETE, GitgRefActionDeleteClass))

typedef struct _GitgRefActionDelete GitgRefActionDelete;
typedef struct _GitgRefActionDeleteClass GitgRefActionDeleteClass;

#define GITG_TYPE_REF_ACTION_COPY_NAME (gitg_ref_action_copy_name_get_type ())
#define GITG_REF_ACTION_COPY_NAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyName))
#define GITG_REF_ACTION_COPY_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyNameClass))
#define GITG_IS_REF_ACTION_COPY_NAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_COPY_NAME))
#define GITG_IS_REF_ACTION_COPY_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_COPY_NAME))
#define GITG_REF_ACTION_COPY_NAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyNameClass))

typedef struct _GitgRefActionCopyName GitgRefActionCopyName;
typedef struct _GitgRefActionCopyNameClass GitgRefActionCopyNameClass;

#define GITG_TYPE_REF_ACTION_FETCH (gitg_ref_action_fetch_get_type ())
#define GITG_REF_ACTION_FETCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetch))
#define GITG_REF_ACTION_FETCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetchClass))
#define GITG_IS_REF_ACTION_FETCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_FETCH))
#define GITG_IS_REF_ACTION_FETCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_FETCH))
#define GITG_REF_ACTION_FETCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_FETCH, GitgRefActionFetchClass))

typedef struct _GitgRefActionFetch GitgRefActionFetch;
typedef struct _GitgRefActionFetchClass GitgRefActionFetchClass;

#define GITG_TYPE_REF_ACTION_MERGE (gitg_ref_action_merge_get_type ())
#define GITG_REF_ACTION_MERGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMerge))
#define GITG_REF_ACTION_MERGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMergeClass))
#define GITG_IS_REF_ACTION_MERGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_MERGE))
#define GITG_IS_REF_ACTION_MERGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_MERGE))
#define GITG_REF_ACTION_MERGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMergeClass))

typedef struct _GitgRefActionMerge GitgRefActionMerge;
typedef struct _GitgRefActionMergeClass GitgRefActionMergeClass;

typedef enum  {
	GITG_HISTORY_DEFAULT_SELECTION_CURRENT_BRANCH,
	GITG_HISTORY_DEFAULT_SELECTION_ALL_BRANCHES,
	GITG_HISTORY_DEFAULT_SELECTION_ALL_COMMITS
} GitgHistoryDefaultSelection;

struct _GitgHistoryActivity {
	GObject parent_instance;
	GitgHistoryActivityPrivate * priv;
};

struct _GitgHistoryActivityClass {
	GObjectClass parent_class;
};

struct _GitgHistoryActivityPrivate {
	GitgExtApplication* _application;
	GitgCommitModel* d_commit_list_model;
	GeeHashSet* d_selected;
	GgitOId* d_scroll_to;
	gfloat d_scroll_y;
	gulong d_insertsig;
	GSettings* d_settings;
	guint d_walker_update_idle_id;
	gulong d_refs_list_selection_id;
	gulong d_refs_list_changed_id;
	gulong d_externally_changed_id;
	gulong d_commits_changed_id;
	GitgWhenMapped* d_reload_when_mapped;
	GitgHistoryPaned* d_main;
	GitgPopupMenu* d_refs_list_popup;
	GitgPopupMenu* d_commit_list_popup;
	gchar** d_mainline;
	gint d_mainline_length1;
	gint _d_mainline_size_;
	gboolean d_ignore_external;
	GitgUIElements* d_panels;
	GitgRepository* d_repository;
	gchar* _search_text;
	gboolean _search_visible;
};

struct _Block76Data {
	int _ref_count_;
	GitgHistoryActivity* self;
	gboolean breakit;
	GitgExtForeachCommitSelectionFunc func;
	gpointer func_target;
};

struct _Block77Data {
	int _ref_count_;
	GitgHistoryActivity* self;
	GitgCommitListView* view;
	gdouble vadj;
	GtkTreePath* startp;
	GtkTreePath* endp;
	gboolean isvis;
	gulong sid;
};

struct _Block78Data {
	int _ref_count_;
	GitgHistoryActivity* self;
	GtkClipboard* clip;
};

struct _Block79Data {
	int _ref_count_;
	GitgHistoryActivity* self;
	GeeLinkedList* actions;
};

struct _Block80Data {
	int _ref_count_;
	GitgHistoryActivity* self;
	GeeLinkedList* actions;
	gboolean addedsep;
	GtkCheckMenuItem* item;
	gint pos;
	GitgRef* reference;
};


static gpointer gitg_history_activity_parent_class = NULL;
static GitgExtUIElementIface* gitg_history_activity_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtActivityIface* gitg_history_activity_gitg_ext_activity_parent_iface = NULL;
static GitgExtSearchableIface* gitg_history_activity_gitg_ext_searchable_parent_iface = NULL;
static GitgExtHistoryIface* gitg_history_activity_gitg_ext_history_parent_iface = NULL;

GType gitg_history_default_selection_get_type (void) G_GNUC_CONST;
GType gitg_history_activity_get_type (void) G_GNUC_CONST;
GType gitg_animated_paned_get_type (void) G_GNUC_CONST;
GType gitg_history_paned_get_type (void) G_GNUC_CONST;
GType gitg_popup_menu_get_type (void) G_GNUC_CONST;
GType gitg_ui_elements_get_type (void) G_GNUC_CONST;
#define GITG_HISTORY_ACTIVITY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivityPrivate))
enum  {
	GITG_HISTORY_ACTIVITY_DUMMY_PROPERTY,
	GITG_HISTORY_ACTIVITY_APPLICATION,
	GITG_HISTORY_ACTIVITY_ID,
	GITG_HISTORY_ACTIVITY_REPOSITORY,
	GITG_HISTORY_ACTIVITY_AVAILABLE,
	GITG_HISTORY_ACTIVITY_DISPLAY_NAME,
	GITG_HISTORY_ACTIVITY_DESCRIPTION,
	GITG_HISTORY_ACTIVITY_ICON,
	GITG_HISTORY_ACTIVITY_WIDGET,
	GITG_HISTORY_ACTIVITY_ENABLED,
	GITG_HISTORY_ACTIVITY_REFS_LIST,
	GITG_HISTORY_ACTIVITY_SEARCH_AVAILABLE,
	GITG_HISTORY_ACTIVITY_SEARCH_ENTRY,
	GITG_HISTORY_ACTIVITY_SEARCH_TEXT,
	GITG_HISTORY_ACTIVITY_SEARCH_VISIBLE
};
static void _vala_GgitOId_free (GgitOId* self);
#define GITG_HISTORY_ACTIVITY_version VERSION
GitgHistoryActivity* gitg_history_activity_new (GitgExtApplication* application);
GitgHistoryActivity* gitg_history_activity_construct (GType object_type, GitgExtApplication* application);
static void gitg_history_activity_real_foreach_selected (GitgExtHistory* base, GitgExtForeachCommitSelectionFunc func, void* func_target);
static Block76Data* block76_data_ref (Block76Data* _data76_);
static void block76_data_unref (void * _userdata_);
GitgCommitListView* gitg_history_paned_get_commit_list_view (GitgHistoryPaned* self);
static void __lambda125_ (Block76Data* _data76_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
static void ___lambda125__gtk_tree_selection_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
static void gitg_history_activity_real_select (GitgExtHistory* base, GitgCommit* commit);
static void gitg_history_activity_repository_changed_externally (GitgHistoryActivity* self, GitgExtExternalChangeHint hint);
static void gitg_history_activity_reload_when_mapped (GitgHistoryActivity* self);
static void gitg_history_activity_repository_commits_changed (GitgHistoryActivity* self);
static void ___lambda126_ (GitgHistoryActivity* self);
static void gitg_history_activity_reload (GitgHistoryActivity* self);
static void ____lambda126__gitg_when_mapped_on_mapped (gpointer self);
static void gitg_history_activity_real_dispose (GObject* base);
GType gitg_history_refs_list_get_type (void) G_GNUC_CONST;
GitgHistoryRefsList* gitg_history_paned_get_refs_list (GitgHistoryPaned* self);
static void gitg_history_activity_update_sort_mode (GitgHistoryActivity* self);
static void gitg_history_activity_on_commit_model_started (GitgHistoryActivity* self, GitgCommitModel* model);
static void gitg_history_activity_on_row_inserted_select (GitgHistoryActivity* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
static void _gitg_history_activity_on_row_inserted_select_gtk_tree_model_row_inserted (GtkTreeModel* _sender, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
static void gitg_history_activity_scroll_into_view (GitgHistoryActivity* self);
static void _gtk_tree_path_free0_ (gpointer var);
static void _g_list_free__gtk_tree_path_free0_ (GList* self);
static void gitg_history_activity_on_commit_model_finished (GitgHistoryActivity* self, GitgCommitModel* model);
static void gitg_history_activity_on_commit_model_begin_clear (GitgHistoryActivity* self, GitgCommitModel* model);
static void gitg_history_activity_on_commit_model_end_clear (GitgHistoryActivity* self, GitgCommitModel* model);
static gboolean gitg_history_activity_real_is_default_for (GitgExtActivity* base, const gchar* action);
static gint gitg_history_activity_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other);
static void gitg_history_activity_store_changed_mainline (GitgHistoryActivity* self);
static void gitg_history_activity_store_mainline (GitgHistoryActivity* self, GgitConfig* config, const gchar* mainline);
static void gitg_history_activity_reload_mainline (GitgHistoryActivity* self);
static GgitOId* gitg_history_activity_id_for_ref (GitgHistoryActivity* self, GgitRef* r);
static void _vala_array_add23 (gchar*** array, int* length, int* size, gchar* value);
static Block77Data* block77_data_ref (Block77Data* _data77_);
static void block77_data_unref (void * _userdata_);
static void __lambda127_ (Block77Data* _data77_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
static void ___lambda127__gtk_tree_selection_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
GitgRepository* gitg_history_activity_get_repository (GitgHistoryActivity* self);
void gitg_history_refs_list_set_repository (GitgHistoryRefsList* self, GitgRepository* value);
static void __lambda128_ (Block77Data* _data77_, GtkAllocation* a);
static void ___lambda128__gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self);
static void gitg_history_activity_build_ui (GitgHistoryActivity* self);
GitgHistoryPaned* gitg_history_paned_new (void);
GitgHistoryPaned* gitg_history_paned_construct (GType object_type);
void gitg_history_refs_list_set_remote_lookup (GitgHistoryRefsList* self, GitgExtRemoteLookup* value);
static void __lambda129_ (GitgHistoryActivity* self, GtkTreeSelection* sel);
static Block78Data* block78_data_ref (Block78Data* _data78_);
static void block78_data_unref (void * _userdata_);
static gboolean __lambda130_ (Block78Data* _data78_, GgitCommit* commit);
static gboolean ___lambda130__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self);
static void ___lambda129__gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self);
GType gitg_plugins_engine_get_type (void) G_GNUC_CONST;
GitgPluginsEngine* gitg_plugins_engine_get_default (void);
GtkStack* gitg_history_paned_get_stack_panel (GitgHistoryPaned* self);
GitgUIElements* gitg_ui_elements_new (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, PeasExtensionSet* extensions, GtkStack* stack);
GitgUIElements* gitg_ui_elements_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, PeasExtensionSet* extensions, GtkStack* stack);
GitgPopupMenu* gitg_popup_menu_new (GtkWidget* widget);
GitgPopupMenu* gitg_popup_menu_construct (GType object_type, GtkWidget* widget);
static GtkMenu* gitg_history_activity_on_refs_list_populate_menu (GitgHistoryActivity* self, GdkEventButton* event);
static GtkMenu* _gitg_history_activity_on_refs_list_populate_menu_gitg_popup_menu_populate_menu (GitgPopupMenu* _sender, GdkEventButton* event, gpointer self);
static void gitg_history_activity_update_walker_idle (GitgHistoryActivity* self);
static void _gitg_history_activity_update_walker_idle_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _gitg_history_activity_update_walker_idle_gitg_history_refs_list_changed (GitgHistoryRefsList* _sender, gpointer self);
static GtkMenu* gitg_history_activity_on_commit_list_populate_menu (GitgHistoryActivity* self, GdkEventButton* event);
static GtkMenu* _gitg_history_activity_on_commit_list_populate_menu_gitg_popup_menu_populate_menu (GitgPopupMenu* _sender, GdkEventButton* event, gpointer self);
static gboolean gitg_history_activity_search_filter_func (GitgHistoryActivity* self, GtkTreeModel* model, gint column, const gchar* key, GtkTreeIter* iter);
static gboolean _gitg_history_activity_search_filter_func_gtk_tree_view_search_equal_func (GtkTreeModel* model, gint column, const gchar* key, GtkTreeIter* iter, gpointer self);
static void _gitg_history_activity_on_commit_model_begin_clear_gitg_commit_model_begin_clear (GitgCommitModel* _sender, gpointer self);
static void _gitg_history_activity_on_commit_model_end_clear_gitg_commit_model_end_clear (GitgCommitModel* _sender, gpointer self);
static gboolean ___lambda144_ (GitgHistoryActivity* self);
static void gitg_history_activity_update_walker (GitgHistoryActivity* self);
static gboolean ____lambda144__gsource_func (gpointer self);
static GtkMenu* gitg_history_activity_popup_on_ref (GitgHistoryActivity* self, GdkEventButton* event);
static GtkMenu* gitg_history_activity_popup_menu_for_ref (GitgHistoryActivity* self, GitgRef* reference);
static GtkMenu* gitg_history_activity_popup_menu_for_commit (GitgHistoryActivity* self, GdkEventButton* event);
static void gitg_history_activity_add_ref_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtRefAction* action);
static Block79Data* block79_data_ref (Block79Data* _data79_);
static void block79_data_unref (void * _userdata_);
GType gitg_history_action_interface_get_type (void) G_GNUC_CONST;
GitgHistoryActionInterface* gitg_history_action_interface_new (GitgExtApplication* application, GitgHistoryRefsList* refs_list);
GitgHistoryActionInterface* gitg_history_action_interface_construct (GType object_type, GitgExtApplication* application, GitgHistoryRefsList* refs_list);
static void __lambda145_ (GitgHistoryActivity* self);
static void ___lambda145__gitg_history_action_interface_updated (GitgHistoryActionInterface* _sender, gpointer self);
static void gitg_history_activity_add_commit_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtCommitAction* action);
GitgCommitActionCreateBranch* gitg_commit_action_create_branch_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GitgCommitActionCreateBranch* gitg_commit_action_create_branch_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GType gitg_commit_action_create_branch_get_type (void) G_GNUC_CONST;
GitgCommitActionCreateTag* gitg_commit_action_create_tag_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GitgCommitActionCreateTag* gitg_commit_action_create_tag_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GType gitg_commit_action_create_tag_get_type (void) G_GNUC_CONST;
GitgCommitActionCreatePatch* gitg_commit_action_create_patch_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GitgCommitActionCreatePatch* gitg_commit_action_create_patch_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GType gitg_commit_action_create_patch_get_type (void) G_GNUC_CONST;
GitgCommitActionCherryPick* gitg_commit_action_cherry_pick_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GitgCommitActionCherryPick* gitg_commit_action_cherry_pick_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgCommit* commit);
GType gitg_commit_action_cherry_pick_get_type (void) G_GNUC_CONST;
static void __lambda158_ (Block79Data* _data79_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension);
static void ___lambda158__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self);
static Block80Data* block80_data_ref (Block80Data* _data80_);
static void block80_data_unref (void * _userdata_);
static void __lambda131_ (GitgHistoryActivity* self);
static void ___lambda131__gitg_history_action_interface_updated (GitgHistoryActionInterface* _sender, gpointer self);
GitgRefActionCheckout* gitg_ref_action_checkout_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionCheckout* gitg_ref_action_checkout_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GType gitg_ref_action_checkout_get_type (void) G_GNUC_CONST;
GitgRefActionRename* gitg_ref_action_rename_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionRename* gitg_ref_action_rename_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GType gitg_ref_action_rename_get_type (void) G_GNUC_CONST;
GitgRefActionDelete* gitg_ref_action_delete_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionDelete* gitg_ref_action_delete_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GType gitg_ref_action_delete_get_type (void) G_GNUC_CONST;
GitgRefActionCopyName* gitg_ref_action_copy_name_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionCopyName* gitg_ref_action_copy_name_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GType gitg_ref_action_copy_name_get_type (void) G_GNUC_CONST;
GType gitg_ref_action_fetch_get_type (void) G_GNUC_CONST;
GitgRefActionFetch* gitg_ref_action_fetch_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionFetch* gitg_ref_action_fetch_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GType gitg_ref_action_merge_get_type (void) G_GNUC_CONST;
GitgRefActionMerge* gitg_ref_action_merge_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionMerge* gitg_ref_action_merge_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
static void __lambda142_ (Block80Data* _data80_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension);
static void ___lambda142__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self);
static void __lambda143_ (Block80Data* _data80_);
static void _vala_array_add24 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add25 (gchar*** array, int* length, int* size, gchar* value);
static gchar** _vala_array_dup19 (gchar** self, int length);
static void ___lambda143__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
GeeList* gitg_history_refs_list_get_selection (GitgHistoryRefsList* self);
static GgitOId* _vala_GgitOId_copy (GgitOId* self);
gboolean gitg_history_refs_list_get_is_all (GitgHistoryRefsList* self);
gboolean gitg_history_refs_list_get_is_header (GitgHistoryRefsList* self);
static void _vala_array_add26 (GgitOId*** array, int* length, int* size, GgitOId* value);
static void _vala_array_add27 (GgitOId*** array, int* length, int* size, GgitOId* value);
static void _vala_array_add28 (GgitOId*** array, int* length, int* size, GgitOId* value);
static gchar* gitg_history_activity_normalize (GitgHistoryActivity* self, const gchar* s);
void gitg_history_activity_set_repository (GitgHistoryActivity* self, GitgRepository* value);
GitgHistoryRefsList* gitg_history_activity_get_refs_list (GitgHistoryActivity* self);
static GObject * gitg_history_activity_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _gitg_history_activity___lambda159_ (GitgHistoryActivity* self, GSettings* s, const gchar* k);
static void __gitg_history_activity___lambda159__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
static void _gitg_history_activity___lambda160_ (GitgHistoryActivity* self, GSettings* s, const gchar* k);
static void __gitg_history_activity___lambda160__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
static void _gitg_history_activity___lambda161_ (GitgHistoryActivity* self, GSettings* s, const gchar* k);
static void __gitg_history_activity___lambda161__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
static void _gitg_history_activity_on_commit_model_started_gitg_commit_model_started (GitgCommitModel* _sender, gpointer self);
static void _gitg_history_activity_on_commit_model_finished_gitg_commit_model_finished (GitgCommitModel* _sender, gpointer self);
static void _gitg_history_activity_repository_changed_externally_gitg_ext_application_repository_changed_externally (GitgExtApplication* _sender, GitgExtExternalChangeHint hint, gpointer self);
static void _gitg_history_activity_repository_commits_changed_gitg_ext_application_repository_commits_changed (GitgExtApplication* _sender, gpointer self);
static void gitg_history_activity_finalize (GObject* obj);
static void _vala_gitg_history_activity_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_history_activity_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


GType gitg_history_default_selection_get_type (void) {
	static volatile gsize gitg_history_default_selection_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_default_selection_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_HISTORY_DEFAULT_SELECTION_CURRENT_BRANCH, "GITG_HISTORY_DEFAULT_SELECTION_CURRENT_BRANCH", "current-branch"}, {GITG_HISTORY_DEFAULT_SELECTION_ALL_BRANCHES, "GITG_HISTORY_DEFAULT_SELECTION_ALL_BRANCHES", "all-branches"}, {GITG_HISTORY_DEFAULT_SELECTION_ALL_COMMITS, "GITG_HISTORY_DEFAULT_SELECTION_ALL_COMMITS", "all-commits"}, {0, NULL, NULL}};
		GType gitg_history_default_selection_type_id;
		gitg_history_default_selection_type_id = g_enum_register_static ("GitgHistoryDefaultSelection", values);
		g_once_init_leave (&gitg_history_default_selection_type_id__volatile, gitg_history_default_selection_type_id);
	}
	return gitg_history_default_selection_type_id__volatile;
}


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


GitgHistoryActivity* gitg_history_activity_construct (GType object_type, GitgExtApplication* application) {
	GitgHistoryActivity * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
#line 63 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 65 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = application;
#line 65 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) g_object_new (object_type, "application", _tmp0_, NULL);
#line 63 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return self;
#line 543 "gitg-history.c"
}


GitgHistoryActivity* gitg_history_activity_new (GitgExtApplication* application) {
#line 63 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return gitg_history_activity_construct (GITG_HISTORY_TYPE_ACTIVITY, application);
#line 550 "gitg-history.c"
}


static Block76Data* block76_data_ref (Block76Data* _data76_) {
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data76_->_ref_count_);
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return _data76_;
#line 559 "gitg-history.c"
}


static void block76_data_unref (void * _userdata_) {
	Block76Data* _data76_;
	_data76_ = (Block76Data*) _userdata_;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data76_->_ref_count_)) {
#line 568 "gitg-history.c"
		GitgHistoryActivity* self;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self = _data76_->self;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block76Data, _data76_);
#line 576 "gitg-history.c"
	}
}


static void __lambda125_ (Block76Data* _data76_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
	GitgHistoryActivity* self;
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data76_->self;
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (path != NULL);
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (iter != NULL);
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_data76_->breakit) {
#line 593 "gitg-history.c"
		GitgCommit* c = NULL;
		GitgCommitModel* _tmp0_ = NULL;
		GtkTreeIter _tmp1_ = {0};
		GitgCommit* _tmp2_ = NULL;
		GitgCommit* _tmp3_ = NULL;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = self->priv->d_commit_list_model;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = *iter;
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_commit_model_commit_from_iter (_tmp0_, &_tmp1_);
#line 99 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		c = _tmp2_;
#line 101 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = c;
#line 101 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp3_ != NULL) {
#line 611 "gitg-history.c"
			GitgExtForeachCommitSelectionFunc _tmp4_ = NULL;
			void* _tmp4__target = NULL;
			GitgCommit* _tmp5_ = NULL;
			gboolean _tmp6_ = FALSE;
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp4_ = _data76_->func;
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp4__target = _data76_->func_target;
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp5_ = c;
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp6_ = _tmp4_ ((GgitCommit*) _tmp5_, _tmp4__target);
#line 103 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_data76_->breakit = !_tmp6_;
#line 626 "gitg-history.c"
		}
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 630 "gitg-history.c"
	}
}


static void ___lambda125__gtk_tree_selection_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda125_ (self, model, path, iter);
#line 638 "gitg-history.c"
}


static void gitg_history_activity_real_foreach_selected (GitgExtHistory* base, GitgExtForeachCommitSelectionFunc func, void* func_target) {
	GitgHistoryActivity * self;
	Block76Data* _data76_;
	GitgExtForeachCommitSelectionFunc _tmp0_ = NULL;
	void* _tmp0__target = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GitgCommitListView* _tmp3_ = NULL;
	GtkTreeSelection* _tmp4_ = NULL;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data76_ = g_slice_new0 (Block76Data);
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data76_->_ref_count_ = 1;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data76_->self = g_object_ref (self);
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = func;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0__target = func_target;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data76_->func = _tmp0_;
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data76_->func_target = _tmp0__target;
#line 94 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data76_->breakit = FALSE;
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_commit_list_view (_tmp1_);
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp3_);
#line 96 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_selection_selected_foreach (_tmp4_, ___lambda125__gtk_tree_selection_foreach_func, _data76_);
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	block76_data_unref (_data76_);
#line 92 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data76_ = NULL;
#line 683 "gitg-history.c"
}


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


static void gitg_history_activity_real_select (GitgExtHistory* base, GitgCommit* commit) {
	GitgHistoryActivity * self;
	GitgCommitModel* model = NULL;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GtkTreeModel* _tmp3_ = NULL;
	GtkTreeModel* _tmp4_ = NULL;
	GitgCommitModel* _tmp5_ = NULL;
	GtkTreePath* path = NULL;
	GitgCommitModel* _tmp6_ = NULL;
	GitgCommit* _tmp7_ = NULL;
	GtkTreePath* _tmp8_ = NULL;
	GtkTreePath* _tmp9_ = NULL;
#line 109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (commit != NULL);
#line 111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gtk_tree_view_get_model ((GtkTreeView*) _tmp2_);
#line 111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GITG_TYPE_COMMIT_MODEL, GitgCommitModel));
#line 111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	model = _tmp5_;
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = model;
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = commit;
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gitg_commit_model_path_from_commit (_tmp6_, _tmp7_);
#line 112 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	path = _tmp8_;
#line 114 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = path;
#line 114 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp9_ != NULL) {
#line 738 "gitg-history.c"
		GtkTreeSelection* sel = NULL;
		GitgHistoryPaned* _tmp10_ = NULL;
		GitgCommitListView* _tmp11_ = NULL;
		GitgCommitListView* _tmp12_ = NULL;
		GtkTreeSelection* _tmp13_ = NULL;
		GtkTreeSelection* _tmp14_ = NULL;
		GtkTreeSelection* _tmp15_ = NULL;
		GtkTreePath* _tmp16_ = NULL;
		GitgHistoryPaned* _tmp17_ = NULL;
		GitgCommitListView* _tmp18_ = NULL;
		GitgCommitListView* _tmp19_ = NULL;
		GtkTreePath* _tmp20_ = NULL;
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = self->priv->d_main;
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = gitg_history_paned_get_commit_list_view (_tmp10_);
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = _tmp11_;
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp12_);
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _g_object_ref0 (_tmp13_);
#line 116 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		sel = _tmp14_;
#line 117 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp15_ = sel;
#line 117 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp16_ = path;
#line 117 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_tree_selection_select_path (_tmp15_, _tmp16_);
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = self->priv->d_main;
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp18_ = gitg_history_paned_get_commit_list_view (_tmp17_);
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp19_ = _tmp18_;
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp20_ = path;
#line 119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_scroll_to_cell ((GtkTreeView*) _tmp19_, _tmp20_, NULL, TRUE, 0.5f, (gfloat) 0);
#line 114 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (sel);
#line 781 "gitg-history.c"
	} else {
		FILE* _tmp21_ = NULL;
		GitgCommit* _tmp22_ = NULL;
		GgitOId* _tmp23_ = NULL;
		GgitOId* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = stderr;
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = commit;
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = ggit_object_get_id ((GgitObject*) _tmp22_);
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = _tmp23_;
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp25_ = ggit_oid_to_string (_tmp24_);
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp26_ = _tmp25_;
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		fprintf (_tmp21_, "Failed to lookup tree path for commit '%s'\n", _tmp26_);
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (_tmp26_);
#line 123 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp24_);
#line 807 "gitg-history.c"
	}
#line 109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (model);
#line 813 "gitg-history.c"
}


static void gitg_history_activity_repository_changed_externally (GitgHistoryActivity* self, GitgExtExternalChangeHint hint) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GitgHistoryPaned* _tmp2_ = NULL;
#line 163 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_main;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp2_ != NULL) {
#line 827 "gitg-history.c"
		GitgExtExternalChangeHint _tmp3_ = 0;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = hint;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = (_tmp3_ & GITG_EXT_EXTERNAL_CHANGE_HINT_REFS) != 0;
#line 833 "gitg-history.c"
	} else {
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = FALSE;
#line 837 "gitg-history.c"
	}
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_) {
#line 841 "gitg-history.c"
		gboolean _tmp4_ = FALSE;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = self->priv->d_ignore_external;
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = !_tmp4_;
#line 847 "gitg-history.c"
	} else {
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 851 "gitg-history.c"
	}
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_) {
#line 167 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_reload_when_mapped (self);
#line 857 "gitg-history.c"
	}
#line 170 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_ignore_external = FALSE;
#line 861 "gitg-history.c"
}


static void gitg_history_activity_repository_commits_changed (GitgHistoryActivity* self) {
	GitgHistoryPaned* _tmp0_ = NULL;
#line 173 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 175 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 175 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != NULL) {
#line 177 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_ignore_external = TRUE;
#line 178 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_reload_when_mapped (self);
#line 877 "gitg-history.c"
	}
}


static void ___lambda126_ (GitgHistoryActivity* self) {
#line 189 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_reload (self);
#line 885 "gitg-history.c"
}


static void ____lambda126__gitg_when_mapped_on_mapped (gpointer self) {
#line 188 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	___lambda126_ ((GitgHistoryActivity*) self);
#line 892 "gitg-history.c"
}


static void gitg_history_activity_reload_when_mapped (GitgHistoryActivity* self) {
	GitgHistoryPaned* _tmp0_ = NULL;
#line 182 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 184 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 184 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != NULL) {
#line 904 "gitg-history.c"
		GitgHistoryPaned* _tmp1_ = NULL;
		GitgWhenMapped* _tmp2_ = NULL;
		GitgWhenMapped* _tmp3_ = NULL;
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_main;
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_when_mapped_new ((GtkWidget*) _tmp1_);
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gitg_when_mapped_unref0 (self->priv->d_reload_when_mapped);
#line 186 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_reload_when_mapped = _tmp2_;
#line 188 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = self->priv->d_reload_when_mapped;
#line 188 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_when_mapped_update (_tmp3_, ____lambda126__gitg_when_mapped_on_mapped, g_object_ref (self), g_object_unref, (GObject*) self);
#line 920 "gitg-history.c"
	}
}


static void gitg_history_activity_real_dispose (GObject* base) {
	GitgHistoryActivity * self;
	gulong _tmp0_ = 0UL;
	gulong _tmp5_ = 0UL;
	guint _tmp10_ = 0U;
	gulong _tmp12_ = 0UL;
	gulong _tmp17_ = 0UL;
	GitgCommitModel* _tmp22_ = NULL;
#line 194 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 196 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_refs_list_selection_id;
#line 196 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != ((gulong) 0)) {
#line 939 "gitg-history.c"
		GitgHistoryPaned* _tmp1_ = NULL;
		GitgHistoryRefsList* _tmp2_ = NULL;
		GitgHistoryRefsList* _tmp3_ = NULL;
		gulong _tmp4_ = 0UL;
#line 198 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_main;
#line 198 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_history_paned_get_refs_list (_tmp1_);
#line 198 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = _tmp2_;
#line 198 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = self->priv->d_refs_list_selection_id;
#line 198 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp3_, _tmp4_);
#line 199 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_refs_list_selection_id = (gulong) 0;
#line 956 "gitg-history.c"
	}
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = self->priv->d_refs_list_changed_id;
#line 202 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp5_ != ((gulong) 0)) {
#line 962 "gitg-history.c"
		GitgHistoryPaned* _tmp6_ = NULL;
		GitgHistoryRefsList* _tmp7_ = NULL;
		GitgHistoryRefsList* _tmp8_ = NULL;
		gulong _tmp9_ = 0UL;
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = self->priv->d_main;
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = gitg_history_paned_get_refs_list (_tmp6_);
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = _tmp7_;
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = self->priv->d_refs_list_changed_id;
#line 204 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp8_, _tmp9_);
#line 205 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_refs_list_changed_id = (gulong) 0;
#line 979 "gitg-history.c"
	}
#line 208 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = self->priv->d_walker_update_idle_id;
#line 208 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp10_ != ((guint) 0)) {
#line 985 "gitg-history.c"
		guint _tmp11_ = 0U;
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = self->priv->d_walker_update_idle_id;
#line 210 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_source_remove (_tmp11_);
#line 211 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_walker_update_idle_id = (guint) 0;
#line 993 "gitg-history.c"
	}
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_externally_changed_id;
#line 214 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp12_ != ((gulong) 0)) {
#line 999 "gitg-history.c"
		GitgExtApplication* _tmp13_ = NULL;
		GitgExtApplication* _tmp14_ = NULL;
		GitgExtApplication* _tmp15_ = NULL;
		gulong _tmp16_ = 0UL;
#line 216 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 216 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _tmp13_;
#line 216 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp15_ = _tmp14_;
#line 216 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp16_ = self->priv->d_externally_changed_id;
#line 216 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp15_, _tmp16_);
#line 216 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp15_);
#line 217 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_externally_changed_id = (gulong) 0;
#line 1018 "gitg-history.c"
	}
#line 220 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = self->priv->d_commits_changed_id;
#line 220 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp17_ != ((gulong) 0)) {
#line 1024 "gitg-history.c"
		GitgExtApplication* _tmp18_ = NULL;
		GitgExtApplication* _tmp19_ = NULL;
		GitgExtApplication* _tmp20_ = NULL;
		gulong _tmp21_ = 0UL;
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp18_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp19_ = _tmp18_;
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp20_ = _tmp19_;
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = self->priv->d_commits_changed_id;
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp20_, _tmp21_);
#line 222 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp20_);
#line 223 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_commits_changed_id = (gulong) 0;
#line 1043 "gitg-history.c"
	}
#line 226 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = self->priv->d_commit_list_model;
#line 226 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_repository (_tmp22_, NULL);
#line 227 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (gitg_history_activity_parent_class)->dispose (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject));
#line 1051 "gitg-history.c"
}


static void gitg_history_activity_update_sort_mode (GitgHistoryActivity* self) {
	GSettings* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 230 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 232 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_settings;
#line 232 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_settings_get_boolean (_tmp0_, "topological-order");
#line 232 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_) {
#line 1066 "gitg-history.c"
		GitgCommitModel* _tmp2_ = NULL;
		GitgCommitModel* _tmp3_ = NULL;
		GgitSortMode _tmp4_ = 0;
		GgitSortMode _tmp5_ = 0;
#line 234 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = self->priv->d_commit_list_model;
#line 234 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = self->priv->d_commit_list_model;
#line 234 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = gitg_commit_model_get_sort_mode (_tmp3_);
#line 234 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = _tmp4_;
#line 234 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_commit_model_set_sort_mode (_tmp3_, _tmp5_ | GGIT_SORT_TOPOLOGICAL);
#line 1081 "gitg-history.c"
	} else {
		GitgCommitModel* _tmp6_ = NULL;
		GitgCommitModel* _tmp7_ = NULL;
		GgitSortMode _tmp8_ = 0;
		GgitSortMode _tmp9_ = 0;
#line 238 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = self->priv->d_commit_list_model;
#line 238 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = self->priv->d_commit_list_model;
#line 238 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = gitg_commit_model_get_sort_mode (_tmp7_);
#line 238 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = _tmp8_;
#line 238 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_commit_model_set_sort_mode (_tmp7_, _tmp9_ & (~GGIT_SORT_TOPOLOGICAL));
#line 1097 "gitg-history.c"
	}
}


static void _gitg_history_activity_on_row_inserted_select_gtk_tree_model_row_inserted (GtkTreeModel* _sender, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_row_inserted_select ((GitgHistoryActivity*) self, _sender, path, iter);
#line 1105 "gitg-history.c"
}


static void gitg_history_activity_on_commit_model_started (GitgHistoryActivity* self, GitgCommitModel* model) {
	gulong _tmp0_ = 0UL;
#line 242 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 242 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 244 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_insertsig;
#line 244 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == ((gulong) 0)) {
#line 1119 "gitg-history.c"
		GitgCommitModel* _tmp1_ = NULL;
		gulong _tmp2_ = 0UL;
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_commit_list_model;
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = g_signal_connect_object ((GtkTreeModel*) _tmp1_, "row-inserted", (GCallback) _gitg_history_activity_on_row_inserted_select_gtk_tree_model_row_inserted, self, 0);
#line 246 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_insertsig = _tmp2_;
#line 1128 "gitg-history.c"
	}
}


static void gitg_history_activity_on_row_inserted_select (GitgHistoryActivity* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
	GitgCommit* commit = NULL;
	GitgCommitModel* _tmp0_ = NULL;
	GtkTreePath* _tmp1_ = NULL;
	GitgCommit* _tmp2_ = NULL;
	GtkTreeSelection* sel = NULL;
	GitgHistoryPaned* _tmp3_ = NULL;
	GitgCommitListView* _tmp4_ = NULL;
	GitgCommitListView* _tmp5_ = NULL;
	GtkTreeSelection* _tmp6_ = NULL;
	GtkTreeSelection* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
	GeeHashSet* _tmp9_ = NULL;
	gint _tmp10_ = 0;
	gint _tmp11_ = 0;
	gboolean _tmp30_ = FALSE;
	GeeHashSet* _tmp31_ = NULL;
	gint _tmp32_ = 0;
	gint _tmp33_ = 0;
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (path != NULL);
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (iter != NULL);
#line 252 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_commit_list_model;
#line 252 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = path;
#line 252 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_commit_model_commit_from_path (_tmp0_, _tmp1_);
#line 252 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	commit = _tmp2_;
#line 254 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = self->priv->d_main;
#line 254 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gitg_history_paned_get_commit_list_view (_tmp3_);
#line 254 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 254 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp5_);
#line 254 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 254 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	sel = _tmp7_;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = self->priv->d_selected;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp9_);
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = _tmp10_;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp11_ == 0) {
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = TRUE;
#line 1190 "gitg-history.c"
	} else {
		GeeHashSet* _tmp12_ = NULL;
		GitgCommit* _tmp13_ = NULL;
		GgitOId* _tmp14_ = NULL;
		GgitOId* _tmp15_ = NULL;
		gboolean _tmp16_ = FALSE;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = self->priv->d_selected;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = commit;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = ggit_object_get_id ((GgitObject*) _tmp13_);
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp15_ = _tmp14_;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp16_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp12_, _tmp15_);
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = _tmp16_;
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp15_);
#line 1211 "gitg-history.c"
	}
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_) {
#line 1215 "gitg-history.c"
		GtkTreeSelection* _tmp17_ = NULL;
		GtkTreePath* _tmp18_ = NULL;
		GitgCommit* _tmp19_ = NULL;
		GgitOId* _tmp20_ = NULL;
		GgitOId* _tmp21_ = NULL;
		GgitOId* _tmp22_ = NULL;
		gboolean _tmp23_ = FALSE;
		gboolean _tmp24_ = FALSE;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = sel;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp18_ = path;
#line 258 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_tree_selection_select_path (_tmp17_, _tmp18_);
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp19_ = commit;
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp20_ = ggit_object_get_id ((GgitObject*) _tmp19_);
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = _tmp20_;
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = self->priv->d_scroll_to;
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = ggit_oid_equal (_tmp21_, _tmp22_);
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = _tmp23_;
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp21_);
#line 260 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp24_) {
#line 1246 "gitg-history.c"
			GitgHistoryPaned* _tmp25_ = NULL;
			GitgCommitListView* _tmp26_ = NULL;
			GitgCommitListView* _tmp27_ = NULL;
			GtkTreePath* _tmp28_ = NULL;
			gfloat _tmp29_ = 0.0F;
#line 262 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp25_ = self->priv->d_main;
#line 262 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp26_ = gitg_history_paned_get_commit_list_view (_tmp25_);
#line 262 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp27_ = _tmp26_;
#line 262 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp28_ = path;
#line 262 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp29_ = self->priv->d_scroll_y;
#line 262 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			gtk_tree_view_scroll_to_cell ((GtkTreeView*) _tmp27_, _tmp28_, NULL, TRUE, _tmp29_, (gfloat) 0);
#line 268 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 268 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			self->priv->d_scroll_to = NULL;
#line 1268 "gitg-history.c"
		}
	}
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = self->priv->d_selected;
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp31_);
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = _tmp32_;
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp33_ == 0) {
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp30_ = TRUE;
#line 1281 "gitg-history.c"
	} else {
		gboolean _tmp34_ = FALSE;
		GtkTreeSelection* _tmp35_ = NULL;
		gint _tmp36_ = 0;
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp35_ = sel;
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp36_ = gtk_tree_selection_count_selected_rows (_tmp35_);
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp36_ != 0) {
#line 1292 "gitg-history.c"
			gboolean _tmp37_ = FALSE;
			GtkTreeSelection* _tmp38_ = NULL;
			GtkSelectionMode _tmp39_ = 0;
			GtkSelectionMode _tmp40_ = 0;
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp38_ = sel;
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp39_ = gtk_tree_selection_get_mode (_tmp38_);
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp40_ = _tmp39_;
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (_tmp40_ == GTK_SELECTION_SINGLE) {
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp37_ = TRUE;
#line 1307 "gitg-history.c"
			} else {
				GtkTreeSelection* _tmp41_ = NULL;
				GtkSelectionMode _tmp42_ = 0;
				GtkSelectionMode _tmp43_ = 0;
#line 274 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp41_ = sel;
#line 274 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp42_ = gtk_tree_selection_get_mode (_tmp41_);
#line 274 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp43_ = _tmp42_;
#line 274 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp37_ = _tmp43_ == GTK_SELECTION_BROWSE;
#line 1320 "gitg-history.c"
			}
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp34_ = _tmp37_;
#line 1324 "gitg-history.c"
		} else {
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp34_ = FALSE;
#line 1328 "gitg-history.c"
		}
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp30_ = _tmp34_;
#line 1332 "gitg-history.c"
	}
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp30_) {
#line 1336 "gitg-history.c"
		GeeHashSet* _tmp44_ = NULL;
		GitgCommitModel* _tmp45_ = NULL;
		gulong _tmp46_ = 0UL;
#line 276 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp44_ = self->priv->d_selected;
#line 276 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp44_);
#line 278 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp45_ = self->priv->d_commit_list_model;
#line 278 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp46_ = self->priv->d_insertsig;
#line 278 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp45_, _tmp46_);
#line 279 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_insertsig = (gulong) 0;
#line 1352 "gitg-history.c"
	}
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (sel);
#line 250 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (commit);
#line 1358 "gitg-history.c"
}


static void _gtk_tree_path_free0_ (gpointer var) {
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL));
#line 1365 "gitg-history.c"
}


static void _g_list_free__gtk_tree_path_free0_ (GList* self) {
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_list_foreach (self, (GFunc) _gtk_tree_path_free0_, NULL);
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_list_free (self);
#line 1374 "gitg-history.c"
}


static gpointer _gtk_tree_path_copy0 (gpointer self) {
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return self ? gtk_tree_path_copy (self) : NULL;
#line 1381 "gitg-history.c"
}


static void gitg_history_activity_scroll_into_view (GitgHistoryActivity* self) {
	GitgHistoryPaned* _tmp0_ = NULL;
	GtkTreeSelection* sel = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GitgCommitListView* _tmp3_ = NULL;
	GtkTreeSelection* _tmp4_ = NULL;
	GtkTreeSelection* _tmp5_ = NULL;
	GtkTreeModel* m = NULL;
	GList* rows = NULL;
	GtkTreeSelection* _tmp6_ = NULL;
	GtkTreeModel* _tmp7_ = NULL;
	GList* _tmp8_ = NULL;
	GtkTreeModel* _tmp9_ = NULL;
	GList* _tmp10_ = NULL;
	GtkTreePath* row = NULL;
	GList* _tmp11_ = NULL;
	gconstpointer _tmp12_ = NULL;
	GtkTreePath* _tmp13_ = NULL;
	GtkTreePath* startp = NULL;
	GtkTreePath* endp = NULL;
	GitgHistoryPaned* _tmp14_ = NULL;
	GitgCommitListView* _tmp15_ = NULL;
	GitgCommitListView* _tmp16_ = NULL;
	GtkTreePath* _tmp17_ = NULL;
	GtkTreePath* _tmp18_ = NULL;
	gboolean _tmp19_ = FALSE;
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 285 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 287 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 1420 "gitg-history.c"
	}
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_commit_list_view (_tmp1_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp3_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 290 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	sel = _tmp5_;
#line 293 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = sel;
#line 293 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gtk_tree_selection_get_selected_rows (_tmp6_, &_tmp7_);
#line 293 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (m);
#line 293 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _g_object_ref0 (_tmp7_);
#line 293 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	m = _tmp9_;
#line 293 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	rows = _tmp8_;
#line 295 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = rows;
#line 295 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp10_ == NULL) {
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		__g_list_free__gtk_tree_path_free0_0 (rows);
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (m);
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (sel);
#line 297 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 1458 "gitg-history.c"
	}
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = rows;
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _tmp11_->data;
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _gtk_tree_path_copy0 ((GtkTreePath*) _tmp12_);
#line 300 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	row = _tmp13_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = self->priv->d_main;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_paned_get_commit_list_view (_tmp14_);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gtk_tree_view_get_visible_range ((GtkTreeView*) _tmp16_, &_tmp17_, &_tmp18_);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (startp);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	startp = _tmp17_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (endp);
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	endp = _tmp18_;
#line 305 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp19_) {
#line 1486 "gitg-history.c"
		gboolean _tmp20_ = FALSE;
		GtkTreePath* _tmp21_ = NULL;
		GtkTreePath* _tmp22_ = NULL;
		gint _tmp23_ = 0;
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = row;
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = startp;
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = gtk_tree_path_compare (_tmp21_, _tmp22_);
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp23_ < 0) {
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp20_ = TRUE;
#line 1501 "gitg-history.c"
		} else {
			GtkTreePath* _tmp24_ = NULL;
			GtkTreePath* _tmp25_ = NULL;
			gint _tmp26_ = 0;
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp24_ = row;
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp25_ = endp;
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp26_ = gtk_tree_path_compare (_tmp24_, _tmp25_);
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp20_ = _tmp26_ > 0;
#line 1514 "gitg-history.c"
		}
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp20_) {
#line 1518 "gitg-history.c"
			GitgHistoryPaned* _tmp27_ = NULL;
			GitgCommitListView* _tmp28_ = NULL;
			GitgCommitListView* _tmp29_ = NULL;
			GtkTreePath* _tmp30_ = NULL;
#line 309 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp27_ = self->priv->d_main;
#line 309 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp28_ = gitg_history_paned_get_commit_list_view (_tmp27_);
#line 309 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp29_ = _tmp28_;
#line 309 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp30_ = row;
#line 309 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			gtk_tree_view_scroll_to_cell ((GtkTreeView*) _tmp29_, _tmp30_, NULL, TRUE, (gfloat) 0, (gfloat) 0);
#line 1533 "gitg-history.c"
		}
	}
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (endp);
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (startp);
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (row);
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__g_list_free__gtk_tree_path_free0_0 (rows);
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (m);
#line 283 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (sel);
#line 1548 "gitg-history.c"
}


static void gitg_history_activity_on_commit_model_finished (GitgHistoryActivity* self, GitgCommitModel* model) {
	gulong _tmp0_ = 0UL;
#line 314 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 314 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 316 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_insertsig;
#line 316 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != ((gulong) 0)) {
#line 1562 "gitg-history.c"
		GitgCommitModel* _tmp1_ = NULL;
		gulong _tmp2_ = 0UL;
#line 318 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_commit_list_model;
#line 318 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = self->priv->d_insertsig;
#line 318 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 319 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_insertsig = (gulong) 0;
#line 1573 "gitg-history.c"
	}
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_scroll_into_view (self);
#line 1577 "gitg-history.c"
}


static void gitg_history_activity_on_commit_model_begin_clear (GitgHistoryActivity* self, GitgCommitModel* model) {
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
#line 325 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 325 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 327 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 327 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 327 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 327 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_model ((GtkTreeView*) _tmp2_, NULL);
#line 1597 "gitg-history.c"
}


static void gitg_history_activity_on_commit_model_end_clear (GitgHistoryActivity* self, GitgCommitModel* model) {
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GitgCommitModel* _tmp3_ = NULL;
#line 330 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 330 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 332 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 332 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 332 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 332 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = self->priv->d_commit_list_model;
#line 332 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_model ((GtkTreeView*) _tmp2_, (GtkTreeModel*) _tmp3_);
#line 1620 "gitg-history.c"
}


static gboolean gitg_history_activity_real_is_default_for (GitgExtActivity* base, const gchar* action) {
	GitgHistoryActivity * self;
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
#line 368 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 368 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (action != NULL, FALSE);
#line 370 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 370 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (g_strcmp0 (_tmp1_, "") == 0) {
#line 370 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = TRUE;
#line 1639 "gitg-history.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 370 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 370 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = g_strcmp0 (_tmp2_, "history") == 0;
#line 1646 "gitg-history.c"
	}
#line 370 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 370 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 1652 "gitg-history.c"
}


static gint gitg_history_activity_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other) {
	GitgHistoryActivity * self;
	gint result = 0;
#line 378 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 378 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 380 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = -1;
#line 380 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 1667 "gitg-history.c"
}


static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 1055 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		separator = "";
#line 1684 "gitg-history.c"
	}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 1694 "gitg-history.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 1704 "gitg-history.c"
	}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 1710 "gitg-history.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == -1) {
#line 1721 "gitg-history.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 1733 "gitg-history.c"
		} else {
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 1737 "gitg-history.c"
		}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 1741 "gitg-history.c"
	}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 1745 "gitg-history.c"
		gint i = 0;
		gsize len = 0UL;
		gint _tmp31_ = 0;
		gint _tmp33_ = 0;
		gint _tmp34_ = 0;
		gsize _tmp35_ = 0UL;
		const gchar* _tmp36_ = NULL;
		gint _tmp37_ = 0;
		gint _tmp38_ = 0;
		gint _tmp39_ = 0;
		const gchar* res = NULL;
		gsize _tmp40_ = 0UL;
		void* _tmp41_ = NULL;
		void* ptr = NULL;
		const gchar* _tmp42_ = NULL;
		gchar** _tmp43_ = NULL;
		gint _tmp43__length1 = 0;
		const gchar* _tmp44_ = NULL;
		void* _tmp45_ = NULL;
		const gchar* _tmp62_ = NULL;
#line 1059 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 1768 "gitg-history.c"
		{
			gboolean _tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			i = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1777 "gitg-history.c"
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
				gchar** _tmp13_ = NULL;
				gint _tmp13__length1 = 0;
				gint _tmp21_ = 0;
				gchar** _tmp22_ = NULL;
				gint _tmp22__length1 = 0;
				gint _tmp23_ = 0;
				const gchar* _tmp24_ = NULL;
				gsize _tmp30_ = 0UL;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 1790 "gitg-history.c"
					gint _tmp10_ = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 1796 "gitg-history.c"
				}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != -1) {
#line 1806 "gitg-history.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 1818 "gitg-history.c"
				} else {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 1822 "gitg-history.c"
				}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 1828 "gitg-history.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == -1) {
#line 1839 "gitg-history.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 1854 "gitg-history.c"
					} else {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 1858 "gitg-history.c"
					}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 1862 "gitg-history.c"
				}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					break;
#line 1868 "gitg-history.c"
				}
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 1880 "gitg-history.c"
					gchar** _tmp25_ = NULL;
					gint _tmp25__length1 = 0;
					gint _tmp26_ = 0;
					const gchar* _tmp27_ = NULL;
					gint _tmp28_ = 0;
					gint _tmp29_ = 0;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 1901 "gitg-history.c"
				} else {
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 1905 "gitg-history.c"
				}
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 1911 "gitg-history.c"
			}
		}
#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 1918 "gitg-history.c"
			gchar* _tmp32_ = NULL;
#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			return result;
#line 1926 "gitg-history.c"
		}
#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 1964 "gitg-history.c"
		{
			gboolean _tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			i = 1;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1973 "gitg-history.c"
				gint _tmp48_ = 0;
				gchar** _tmp49_ = NULL;
				gint _tmp49__length1 = 0;
				void* _tmp50_ = NULL;
				const gchar* _tmp51_ = NULL;
				void* _tmp52_ = NULL;
				const gchar* _tmp53_ = NULL;
				gchar** _tmp54_ = NULL;
				gint _tmp54__length1 = 0;
				gint _tmp55_ = 0;
				const gchar* _tmp56_ = NULL;
				void* _tmp60_ = NULL;
				void* _tmp61_ = NULL;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 1989 "gitg-history.c"
					gint _tmp47_ = 0;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 1995 "gitg-history.c"
				}
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					break;
#line 2009 "gitg-history.c"
				}
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 2029 "gitg-history.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 2044 "gitg-history.c"
				} else {
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 2048 "gitg-history.c"
				}
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 2056 "gitg-history.c"
			}
		}
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		res = NULL;
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 2067 "gitg-history.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 2076 "gitg-history.c"
	}
}


static void gitg_history_activity_store_changed_mainline (GitgHistoryActivity* self) {
	GitgRepository* repo = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgRepository* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GitgRepository* _tmp6_ = NULL;
	GgitConfig* config = NULL;
	GgitConfig* _tmp11_ = NULL;
	gchar** _tmp12_ = NULL;
	gint _tmp12__length1 = 0;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	GError * _inner_error_ = NULL;
#line 383 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _tmp0_;
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_ext_application_get_repository (_tmp2_);
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp2_);
#line 385 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	repo = _tmp5_;
#line 387 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = repo;
#line 387 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp6_ == NULL) {
#line 389 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repo);
#line 389 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 2123 "gitg-history.c"
	}
	{
		GgitConfig* _tmp7_ = NULL;
		GitgRepository* _tmp8_ = NULL;
		GgitConfig* _tmp9_ = NULL;
		GgitConfig* _tmp10_ = NULL;
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = repo;
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = ggit_repository_get_config ((GgitRepository*) _tmp8_, &_inner_error_);
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _tmp9_;
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2138 "gitg-history.c"
			goto __catch125_g_error;
		}
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = _tmp7_;
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = NULL;
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 396 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		config = _tmp10_;
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp7_);
#line 2151 "gitg-history.c"
	}
	goto __finally125;
	__catch125_g_error:
	{
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_inner_error_ = NULL;
#line 397 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 397 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repo);
#line 397 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 2166 "gitg-history.c"
	}
	__finally125:
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repo);
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 394 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 2181 "gitg-history.c"
	}
#line 399 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = config;
#line 399 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_mainline;
#line 399 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12__length1 = self->priv->d_mainline_length1;
#line 399 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _vala_g_strjoinv (",", _tmp12_, _tmp12__length1);
#line 399 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 399 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_store_mainline (self, _tmp11_, _tmp14_);
#line 399 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp14_);
#line 383 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (config);
#line 383 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (repo);
#line 2201 "gitg-history.c"
}


static void gitg_history_activity_store_mainline (GitgHistoryActivity* self, GgitConfig* config, const gchar* mainline) {
	GgitConfig* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 402 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (mainline != NULL);
#line 404 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = config;
#line 404 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != NULL) {
#line 2216 "gitg-history.c"
		{
			GgitConfig* _tmp1_ = NULL;
			const gchar* _tmp2_ = NULL;
#line 408 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp1_ = config;
#line 408 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp2_ = mainline;
#line 408 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ggit_config_set_string (_tmp1_, "gitg.mainline", _tmp2_, &_inner_error_);
#line 408 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2228 "gitg-history.c"
				goto __catch126_g_error;
			}
		}
		goto __finally126;
		__catch126_g_error:
		{
			GError* e = NULL;
			FILE* _tmp3_ = NULL;
			GError* _tmp4_ = NULL;
			const gchar* _tmp5_ = NULL;
#line 406 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			e = _inner_error_;
#line 406 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_inner_error_ = NULL;
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp3_ = stderr;
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp4_ = e;
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp5_ = _tmp4_->message;
#line 412 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			fprintf (_tmp3_, "Failed to set gitg.mainline: %s\n", _tmp5_);
#line 406 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_error_free0 (e);
#line 2253 "gitg-history.c"
		}
		__finally126:
#line 406 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 406 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 406 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			g_clear_error (&_inner_error_);
#line 406 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			return;
#line 2264 "gitg-history.c"
		}
	}
}


static void _vala_array_add23 (gchar*** array, int* length, int* size, gchar* value) {
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 2277 "gitg-history.c"
	}
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 2283 "gitg-history.c"
}


static void gitg_history_activity_reload_mainline (GitgHistoryActivity* self) {
	GeeHashSet* uniq = NULL;
	GeeHashSet* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	GitgRepository* repository = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgExtApplication* _tmp3_ = NULL;
	GitgExtApplication* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GitgRepository* _tmp6_ = NULL;
	GitgRepository* _tmp7_ = NULL;
	GitgRepository* _tmp8_ = NULL;
	GgitConfig* config = NULL;
	gchar** ref_names = NULL;
	gchar** _tmp9_ = NULL;
	gint ref_names_length1 = 0;
	gint _ref_names_size_ = 0;
	gchar** _tmp26_ = NULL;
	gint _tmp26__length1 = 0;
	GgitConfig* _tmp47_ = NULL;
	gchar** _tmp48_ = NULL;
	gint _tmp48__length1 = 0;
	gchar* _tmp49_ = NULL;
	gchar* _tmp50_ = NULL;
	GError * _inner_error_ = NULL;
#line 417 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 419 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gitg_when_mapped_unref0 (self->priv->d_reload_when_mapped);
#line 419 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_reload_when_mapped = NULL;
#line 421 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 421 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	uniq = _tmp0_;
#line 423 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_new0 (gchar*, 0 + 1);
#line 423 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_mainline = (_vala_array_free (self->priv->d_mainline, self->priv->d_mainline_length1, (GDestroyNotify) g_free), NULL);
#line 423 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_mainline = _tmp1_;
#line 423 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_mainline_length1 = 0;
#line 423 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_d_mainline_size_ = self->priv->d_mainline_length1;
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_ext_application_get_repository (_tmp4_);
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _tmp6_;
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp4_);
#line 425 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	repository = _tmp7_;
#line 427 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = repository;
#line 427 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_ == NULL) {
#line 429 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repository);
#line 429 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (uniq);
#line 429 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 2358 "gitg-history.c"
	}
#line 432 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	config = NULL;
#line 433 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = g_new0 (gchar*, 0 + 1);
#line 433 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	ref_names = _tmp9_;
#line 433 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	ref_names_length1 = 0;
#line 433 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_ref_names_size_ = ref_names_length1;
#line 2370 "gitg-history.c"
	{
		GgitConfig* _tmp10_ = NULL;
		GitgRepository* _tmp11_ = NULL;
		GgitConfig* _tmp12_ = NULL;
		GgitConfig* _tmp13_ = NULL;
		GgitConfig* _tmp14_ = NULL;
		GgitConfig* _tmp15_ = NULL;
		GgitConfig* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
		GgitConfig* _tmp18_ = NULL;
		GgitConfig* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		const gchar* _tmp21_ = NULL;
		gchar** _tmp22_ = NULL;
		gchar** _tmp23_ = NULL;
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = repository;
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = ggit_repository_get_config ((GgitRepository*) _tmp11_, &_inner_error_);
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = _tmp12_;
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2394 "gitg-history.c"
			goto __catch127_g_error;
		}
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = _tmp10_;
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = NULL;
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 437 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		config = _tmp13_;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp15_ = config;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp16_ = ggit_config_snapshot (_tmp15_, &_inner_error_);
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _tmp16_;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp10_);
#line 2415 "gitg-history.c"
			goto __catch127_g_error;
		}
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp18_ = _tmp14_;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = NULL;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp19_ = _tmp18_;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp20_ = ggit_config_get_string (_tmp19_, "gitg.mainline", &_inner_error_);
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = _tmp20_;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp19_);
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = _tmp21_;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp14_);
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp10_);
#line 2438 "gitg-history.c"
			goto __catch127_g_error;
		}
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = _tmp22_ = g_strsplit (_tmp17_, ",", 0);
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ref_names = _tmp23_;
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ref_names_length1 = _vala_array_length (_tmp22_);
#line 438 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ref_names_size_ = ref_names_length1;
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp14_);
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp10_);
#line 2455 "gitg-history.c"
	}
	goto __finally127;
	__catch127_g_error:
	{
		gchar* _tmp24_ = NULL;
		gchar** _tmp25_ = NULL;
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_inner_error_ = NULL;
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = g_strdup ("refs/heads/master");
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp25_ = g_new0 (gchar*, 1 + 1);
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp25_[0] = _tmp24_;
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ref_names = _tmp25_;
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ref_names_length1 = 1;
#line 442 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ref_names_size_ = ref_names_length1;
#line 2480 "gitg-history.c"
	}
	__finally127:
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repository);
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (uniq);
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 435 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 2499 "gitg-history.c"
	}
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = ref_names;
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26__length1 = ref_names_length1;
#line 2505 "gitg-history.c"
	{
		gchar** name_collection = NULL;
		gint name_collection_length1 = 0;
		gint _name_collection_size_ = 0;
		gint name_it = 0;
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		name_collection = _tmp26_;
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		name_collection_length1 = _tmp26__length1;
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		for (name_it = 0; name_it < _tmp26__length1; name_it = name_it + 1) {
#line 2517 "gitg-history.c"
			gchar* _tmp27_ = NULL;
			gchar* name = NULL;
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp27_ = g_strdup (name_collection[name_it]);
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			name = _tmp27_;
#line 2524 "gitg-history.c"
			{
				GitgRef* r = NULL;
				GgitOId* id = NULL;
				GitgRef* _tmp37_ = NULL;
				GgitOId* _tmp38_ = NULL;
				gboolean _tmp39_ = FALSE;
				GgitOId* _tmp40_ = NULL;
				{
					GitgRef* _tmp28_ = NULL;
					GitgRepository* _tmp29_ = NULL;
					const gchar* _tmp30_ = NULL;
					GitgRef* _tmp31_ = NULL;
					GitgRef* _tmp32_ = NULL;
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp29_ = repository;
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp30_ = name;
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp31_ = gitg_repository_lookup_reference (_tmp29_, _tmp30_, &_inner_error_);
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp28_ = _tmp31_;
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2548 "gitg-history.c"
						goto __catch128_g_error;
					}
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp32_ = _tmp28_;
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp28_ = NULL;
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (r);
#line 451 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					r = _tmp32_;
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (_tmp28_);
#line 2561 "gitg-history.c"
				}
				goto __finally128;
				__catch128_g_error:
				{
					GError* e = NULL;
					FILE* _tmp33_ = NULL;
					const gchar* _tmp34_ = NULL;
					GError* _tmp35_ = NULL;
					const gchar* _tmp36_ = NULL;
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					e = _inner_error_;
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_inner_error_ = NULL;
#line 455 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp33_ = stderr;
#line 455 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp34_ = name;
#line 455 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp35_ = e;
#line 455 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp36_ = _tmp35_->message;
#line 455 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					fprintf (_tmp33_, "Failed to lookup reference (%s): %s\n", _tmp34_, _tmp36_);
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_error_free0 (e);
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (r);
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_free0 (name);
#line 456 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					continue;
#line 2593 "gitg-history.c"
				}
				__finally128:
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (r);
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_free0 (name);
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (config);
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (repository);
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (uniq);
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					g_clear_error (&_inner_error_);
#line 449 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					return;
#line 2616 "gitg-history.c"
				}
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp37_ = r;
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp38_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp37_);
#line 459 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				id = _tmp38_;
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp40_ = id;
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp40_ != NULL) {
#line 2628 "gitg-history.c"
					GeeHashSet* _tmp41_ = NULL;
					const gchar* _tmp42_ = NULL;
					gboolean _tmp43_ = FALSE;
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp41_ = uniq;
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp42_ = name;
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp43_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp41_, _tmp42_);
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp39_ = _tmp43_;
#line 2640 "gitg-history.c"
				} else {
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp39_ = FALSE;
#line 2644 "gitg-history.c"
				}
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp39_) {
#line 2648 "gitg-history.c"
					gchar** _tmp44_ = NULL;
					gint _tmp44__length1 = 0;
					const gchar* _tmp45_ = NULL;
					gchar* _tmp46_ = NULL;
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp44_ = self->priv->d_mainline;
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp44__length1 = self->priv->d_mainline_length1;
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp45_ = name;
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp46_ = g_strdup (_tmp45_);
#line 463 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_vala_array_add23 (&self->priv->d_mainline, &self->priv->d_mainline_length1, &self->priv->_d_mainline_size_, _tmp46_);
#line 2663 "gitg-history.c"
				}
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				__vala_GgitOId_free0 (id);
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (r);
#line 445 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_free0 (name);
#line 2671 "gitg-history.c"
			}
		}
	}
#line 467 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = config;
#line 467 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = self->priv->d_mainline;
#line 467 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48__length1 = self->priv->d_mainline_length1;
#line 467 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = _vala_g_strjoinv (",", _tmp48_, _tmp48__length1);
#line 467 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = _tmp49_;
#line 467 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_store_mainline (self, _tmp47_, _tmp50_);
#line 467 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp50_);
#line 417 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 417 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (config);
#line 417 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (repository);
#line 417 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (uniq);
#line 2697 "gitg-history.c"
}


static Block77Data* block77_data_ref (Block77Data* _data77_) {
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data77_->_ref_count_);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return _data77_;
#line 2706 "gitg-history.c"
}


static void block77_data_unref (void * _userdata_) {
	Block77Data* _data77_;
	_data77_ = (Block77Data*) _userdata_;
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data77_->_ref_count_)) {
#line 2715 "gitg-history.c"
		GitgHistoryActivity* self;
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self = _data77_->self;
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (_data77_->endp);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (_data77_->startp);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data77_->view);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block77Data, _data77_);
#line 2729 "gitg-history.c"
	}
}


static void __lambda127_ (Block77Data* _data77_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
	GitgHistoryActivity* self;
	GitgCommit* c = NULL;
	GitgCommitModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GitgCommit* _tmp2_ = NULL;
	GitgCommit* _tmp3_ = NULL;
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data77_->self;
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (path != NULL);
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (iter != NULL);
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_commit_list_model;
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = *iter;
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_commit_model_commit_from_iter (_tmp0_, &_tmp1_);
#line 498 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	c = _tmp2_;
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = c;
#line 500 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp3_ != NULL) {
#line 2761 "gitg-history.c"
		GeeHashSet* _tmp4_ = NULL;
		GitgCommit* _tmp5_ = NULL;
		GgitOId* _tmp6_ = NULL;
		GgitOId* _tmp7_ = NULL;
		gboolean _tmp8_ = FALSE;
		GgitOId* _tmp9_ = NULL;
#line 502 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = self->priv->d_selected;
#line 502 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = c;
#line 502 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = ggit_object_get_id ((GgitObject*) _tmp5_);
#line 502 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _tmp6_;
#line 502 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp4_, _tmp7_);
#line 502 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp7_);
#line 504 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = self->priv->d_scroll_to;
#line 504 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp9_ == NULL) {
#line 2784 "gitg-history.c"
			gboolean _tmp10_ = FALSE;
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (!_data77_->isvis) {
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = TRUE;
#line 2790 "gitg-history.c"
			} else {
				gboolean _tmp11_ = FALSE;
				GtkTreePath* _tmp12_ = NULL;
				gint _tmp13_ = 0;
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp12_ = path;
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp13_ = gtk_tree_path_compare (_data77_->startp, _tmp12_);
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp13_ <= 0) {
#line 2801 "gitg-history.c"
					GtkTreePath* _tmp14_ = NULL;
					gint _tmp15_ = 0;
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp14_ = path;
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp15_ = gtk_tree_path_compare (_data77_->endp, _tmp14_);
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp11_ = _tmp15_ >= 0;
#line 2810 "gitg-history.c"
				} else {
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp11_ = FALSE;
#line 2814 "gitg-history.c"
				}
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = _tmp11_;
#line 2818 "gitg-history.c"
			}
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = _tmp10_;
#line 2822 "gitg-history.c"
		} else {
#line 504 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = FALSE;
#line 2826 "gitg-history.c"
		}
#line 504 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp8_) {
#line 2830 "gitg-history.c"
			GitgCommit* _tmp32_ = NULL;
			GgitOId* _tmp33_ = NULL;
#line 507 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (_data77_->isvis) {
#line 2835 "gitg-history.c"
				GdkRectangle rect = {0};
				GdkRectangle visrect = {0};
				GtkTreePath* _tmp16_ = NULL;
				GdkRectangle _tmp17_ = {0};
				GdkRectangle _tmp18_ = {0};
				gint x = 0;
				gint y = 0;
				GdkRectangle _tmp19_ = {0};
				gint _tmp20_ = 0;
				GdkRectangle _tmp21_ = {0};
				gint _tmp22_ = 0;
				gint _tmp23_ = 0;
				gint _tmp24_ = 0;
				GdkRectangle _tmp25_ = {0};
				gint _tmp26_ = 0;
				GdkRectangle _tmp27_ = {0};
				gint _tmp28_ = 0;
				gint _tmp29_ = 0;
				GdkRectangle _tmp30_ = {0};
				gint _tmp31_ = 0;
#line 512 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp16_ = path;
#line 512 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gtk_tree_view_get_cell_area ((GtkTreeView*) _data77_->view, _tmp16_, NULL, &_tmp17_);
#line 512 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				rect = _tmp17_;
#line 513 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gtk_tree_view_get_visible_rect ((GtkTreeView*) _data77_->view, &_tmp18_);
#line 513 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				visrect = _tmp18_;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp19_ = visrect;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp20_ = _tmp19_.x;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp21_ = visrect;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp22_ = _tmp21_.y;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gtk_tree_view_convert_tree_to_bin_window_coords ((GtkTreeView*) _data77_->view, _tmp20_, _tmp22_, &_tmp23_, &_tmp24_);
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				x = _tmp23_;
#line 517 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				y = _tmp24_;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp25_ = rect;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp26_ = _tmp25_.y;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp27_ = rect;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp28_ = _tmp27_.height;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp29_ = y;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp30_ = visrect;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp31_ = _tmp30_.height;
#line 525 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				self->priv->d_scroll_y = ((gfloat) (((_tmp26_ + (_tmp28_ / 2.0)) - _tmp29_) + 2)) / ((gfloat) _tmp31_);
#line 2896 "gitg-history.c"
			} else {
#line 529 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				self->priv->d_scroll_y = 0.5f;
#line 2900 "gitg-history.c"
			}
#line 532 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp32_ = c;
#line 532 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp33_ = ggit_object_get_id ((GgitObject*) _tmp32_);
#line 532 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 532 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			self->priv->d_scroll_to = _tmp33_;
#line 2910 "gitg-history.c"
		}
	}
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (c);
#line 2915 "gitg-history.c"
}


static void ___lambda127__gtk_tree_selection_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda127_ (self, model, path, iter);
#line 2922 "gitg-history.c"
}


static void __lambda128_ (Block77Data* _data77_, GtkAllocation* a) {
	GitgHistoryActivity* self;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgHistoryRefsList* _tmp1_ = NULL;
	GitgHistoryRefsList* _tmp2_ = NULL;
	GtkAdjustment* _tmp3_ = NULL;
	gulong _tmp4_ = 0UL;
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data77_->self;
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (a != NULL);
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_refs_list (_tmp0_);
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gtk_list_box_get_adjustment ((GtkListBox*) _tmp2_);
#line 546 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_adjustment_set_value (_tmp3_, _data77_->vadj);
#line 548 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _data77_->sid;
#line 548 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp4_ != ((gulong) 0)) {
#line 2951 "gitg-history.c"
		GitgHistoryPaned* _tmp5_ = NULL;
		GitgHistoryRefsList* _tmp6_ = NULL;
		GitgHistoryRefsList* _tmp7_ = NULL;
		gulong _tmp8_ = 0UL;
#line 550 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = self->priv->d_main;
#line 550 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = gitg_history_paned_get_refs_list (_tmp5_);
#line 550 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _tmp6_;
#line 550 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = _data77_->sid;
#line 550 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp7_, _tmp8_);
#line 2966 "gitg-history.c"
	}
}


static void ___lambda128__gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self) {
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda128_ (self, allocation);
#line 2974 "gitg-history.c"
}


static void gitg_history_activity_reload (GitgHistoryActivity* self) {
	Block77Data* _data77_;
	guint _tmp0_ = 0U;
	GitgHistoryPaned* _tmp2_ = NULL;
	GitgCommitListView* _tmp3_ = NULL;
	GitgCommitListView* _tmp4_ = NULL;
	GitgCommitListView* _tmp5_ = NULL;
	GitgHistoryPaned* _tmp6_ = NULL;
	GitgHistoryRefsList* _tmp7_ = NULL;
	GitgHistoryRefsList* _tmp8_ = NULL;
	GtkAdjustment* _tmp9_ = NULL;
	gdouble _tmp10_ = 0.0;
	GeeHashSet* _tmp11_ = NULL;
	GtkTreePath* _tmp12_ = NULL;
	GtkTreePath* _tmp13_ = NULL;
	gboolean _tmp14_ = FALSE;
	GtkTreeSelection* _tmp15_ = NULL;
	GitgCommitModel* _tmp16_ = NULL;
	GitgRepository* _tmp17_ = NULL;
	GitgRepository* _tmp18_ = NULL;
	GitgHistoryPaned* _tmp19_ = NULL;
	GitgHistoryRefsList* _tmp20_ = NULL;
	GitgHistoryRefsList* _tmp21_ = NULL;
	GitgRepository* _tmp22_ = NULL;
	GitgRepository* _tmp23_ = NULL;
	GitgHistoryPaned* _tmp24_ = NULL;
	GitgHistoryRefsList* _tmp25_ = NULL;
	GitgHistoryRefsList* _tmp26_ = NULL;
	gulong _tmp27_ = 0UL;
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_ = g_slice_new0 (Block77Data);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->_ref_count_ = 1;
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->self = g_object_ref (self);
#line 477 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_walker_update_idle_id;
#line 477 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 3019 "gitg-history.c"
		guint _tmp1_ = 0U;
#line 479 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_walker_update_idle_id;
#line 479 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_source_remove (_tmp1_);
#line 480 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_walker_update_idle_id = (guint) 0;
#line 3027 "gitg-history.c"
	}
#line 483 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_main;
#line 483 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_history_paned_get_commit_list_view (_tmp2_);
#line 483 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 483 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 483 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->view = _tmp5_;
#line 485 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = self->priv->d_main;
#line 485 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_history_paned_get_refs_list (_tmp6_);
#line 485 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 485 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = gtk_list_box_get_adjustment ((GtkListBox*) _tmp8_);
#line 485 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gtk_adjustment_get_value (_tmp9_);
#line 485 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->vadj = _tmp10_;
#line 487 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_reload_mainline (self);
#line 489 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = self->priv->d_selected;
#line 489 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp11_);
#line 491 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 491 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_scroll_to = NULL;
#line 495 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gtk_tree_view_get_visible_range ((GtkTreeView*) _data77_->view, &_tmp12_, &_tmp13_);
#line 495 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (_data77_->startp);
#line 495 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->startp = _tmp12_;
#line 495 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (_data77_->endp);
#line 495 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->endp = _tmp13_;
#line 495 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->isvis = _tmp14_;
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gtk_tree_view_get_selection ((GtkTreeView*) _data77_->view);
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_selection_selected_foreach (_tmp15_, ___lambda127__gtk_tree_selection_foreach_func, _data77_);
#line 538 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = self->priv->d_commit_list_model;
#line 538 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gitg_history_activity_get_repository (self);
#line 538 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _tmp17_;
#line 538 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_repository (_tmp16_, _tmp18_);
#line 541 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = self->priv->d_main;
#line 541 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = gitg_history_paned_get_refs_list (_tmp19_);
#line 541 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 541 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = gitg_history_activity_get_repository (self);
#line 541 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 541 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_refs_list_set_repository (_tmp21_, _tmp23_);
#line 543 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->sid = (gulong) 0;
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = self->priv->d_main;
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = gitg_history_paned_get_refs_list (_tmp24_);
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _tmp25_;
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = g_signal_connect_data ((GtkWidget*) _tmp26_, "size-allocate", (GCallback) ___lambda128__gtk_widget_size_allocate, block77_data_ref (_data77_), (GClosureNotify) block77_data_unref, 0);
#line 545 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_->sid = _tmp27_;
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	block77_data_unref (_data77_);
#line 475 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data77_ = NULL;
#line 3113 "gitg-history.c"
}


static Block78Data* block78_data_ref (Block78Data* _data78_) {
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data78_->_ref_count_);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return _data78_;
#line 3122 "gitg-history.c"
}


static void block78_data_unref (void * _userdata_) {
	Block78Data* _data78_;
	_data78_ = (Block78Data*) _userdata_;
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data78_->_ref_count_)) {
#line 3131 "gitg-history.c"
		GitgHistoryActivity* self;
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self = _data78_->self;
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data78_->clip);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block78Data, _data78_);
#line 3141 "gitg-history.c"
	}
}


static gboolean __lambda130_ (Block78Data* _data78_, GgitCommit* commit) {
	GitgHistoryActivity* self;
	gboolean result = FALSE;
	GgitCommit* _tmp0_ = NULL;
	GgitOId* _tmp1_ = NULL;
	GgitOId* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data78_->self;
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (commit != NULL, FALSE);
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = commit;
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = ggit_object_get_id ((GgitObject*) _tmp0_);
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = ggit_oid_to_string (_tmp2_);
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_clipboard_set_text (_data78_->clip, _tmp4_, -1);
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp4_);
#line 570 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (_tmp2_);
#line 571 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = FALSE;
#line 571 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3178 "gitg-history.c"
}


static gboolean ___lambda130__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self) {
	gboolean result;
	result = __lambda130_ (self, object);
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3187 "gitg-history.c"
}


static void __lambda129_ (GitgHistoryActivity* self, GtkTreeSelection* sel) {
	Block78Data* _data78_;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkClipboard* _tmp3_ = NULL;
	GtkClipboard* _tmp4_ = NULL;
	GtkClipboard* _tmp5_ = NULL;
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (sel != NULL);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data78_ = g_slice_new0 (Block78Data);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data78_->_ref_count_ = 1;
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data78_->self = g_object_ref (self);
#line 564 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_emit_by_name ((GitgExtHistory*) self, "selection-changed");
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _tmp0_;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget);
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gtk_widget_get_clipboard (_tmp2_, GDK_SELECTION_PRIMARY);
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp2_);
#line 567 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data78_->clip = _tmp5_;
#line 569 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_ext_history_foreach_selected ((GitgExtHistory*) self, ___lambda130__gitg_ext_foreach_commit_selection_func, _data78_);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	block78_data_unref (_data78_);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data78_ = NULL;
#line 3231 "gitg-history.c"
}


static void ___lambda129__gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self) {
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda129_ ((GitgHistoryActivity*) self, _sender);
#line 3238 "gitg-history.c"
}


static GtkMenu* _gitg_history_activity_on_refs_list_populate_menu_gitg_popup_menu_populate_menu (GitgPopupMenu* _sender, GdkEventButton* event, gpointer self) {
	GtkMenu* result;
	result = gitg_history_activity_on_refs_list_populate_menu ((GitgHistoryActivity*) self, event);
#line 588 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3247 "gitg-history.c"
}


static void _gitg_history_activity_update_walker_idle_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 590 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker_idle ((GitgHistoryActivity*) self);
#line 3254 "gitg-history.c"
}


static void _gitg_history_activity_update_walker_idle_gitg_history_refs_list_changed (GitgHistoryRefsList* _sender, gpointer self) {
#line 591 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker_idle ((GitgHistoryActivity*) self);
#line 3261 "gitg-history.c"
}


static GtkMenu* _gitg_history_activity_on_commit_list_populate_menu_gitg_popup_menu_populate_menu (GitgPopupMenu* _sender, GdkEventButton* event, gpointer self) {
	GtkMenu* result;
	result = gitg_history_activity_on_commit_list_populate_menu ((GitgHistoryActivity*) self, event);
#line 594 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3270 "gitg-history.c"
}


static gboolean _gitg_history_activity_search_filter_func_gtk_tree_view_search_equal_func (GtkTreeModel* model, gint column, const gchar* key, GtkTreeIter* iter, gpointer self) {
	gboolean result;
	result = gitg_history_activity_search_filter_func ((GitgHistoryActivity*) self, model, column, key, iter);
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3279 "gitg-history.c"
}


static void _gitg_history_activity_on_commit_model_begin_clear_gitg_commit_model_begin_clear (GitgCommitModel* _sender, gpointer self) {
#line 603 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_commit_model_begin_clear ((GitgHistoryActivity*) self, _sender);
#line 3286 "gitg-history.c"
}


static void _gitg_history_activity_on_commit_model_end_clear_gitg_commit_model_end_clear (GitgCommitModel* _sender, gpointer self) {
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_commit_model_end_clear ((GitgHistoryActivity*) self, _sender);
#line 3293 "gitg-history.c"
}


static void gitg_history_activity_build_ui (GitgHistoryActivity* self) {
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GitgHistoryRefsList* _tmp2_ = NULL;
	GitgHistoryRefsList* _tmp3_ = NULL;
	GitgExtApplication* _tmp4_ = NULL;
	GitgExtApplication* _tmp5_ = NULL;
	GitgExtApplication* _tmp6_ = NULL;
	GitgExtRemoteLookup* _tmp7_ = NULL;
	GitgExtRemoteLookup* _tmp8_ = NULL;
	GitgExtRemoteLookup* _tmp9_ = NULL;
	GitgHistoryPaned* _tmp10_ = NULL;
	GitgCommitListView* _tmp11_ = NULL;
	GitgCommitListView* _tmp12_ = NULL;
	GitgCommitModel* _tmp13_ = NULL;
	GitgHistoryPaned* _tmp14_ = NULL;
	GitgCommitListView* _tmp15_ = NULL;
	GitgCommitListView* _tmp16_ = NULL;
	GtkTreeSelection* _tmp17_ = NULL;
	GitgPluginsEngine* engine = NULL;
	GitgPluginsEngine* _tmp18_ = NULL;
	PeasExtensionSet* extset = NULL;
	GitgExtApplication* _tmp19_ = NULL;
	GitgExtApplication* _tmp20_ = NULL;
	GitgExtApplication* _tmp21_ = NULL;
	PeasExtensionSet* _tmp22_ = NULL;
	PeasExtensionSet* _tmp23_ = NULL;
	GitgHistoryPaned* _tmp24_ = NULL;
	GtkStack* _tmp25_ = NULL;
	GtkStack* _tmp26_ = NULL;
	GitgUIElements* _tmp27_ = NULL;
	GitgHistoryPaned* _tmp28_ = NULL;
	GitgHistoryRefsList* _tmp29_ = NULL;
	GitgHistoryRefsList* _tmp30_ = NULL;
	GitgPopupMenu* _tmp31_ = NULL;
	GitgPopupMenu* _tmp32_ = NULL;
	GitgHistoryPaned* _tmp33_ = NULL;
	GitgHistoryRefsList* _tmp34_ = NULL;
	GitgHistoryRefsList* _tmp35_ = NULL;
	gulong _tmp36_ = 0UL;
	GitgHistoryPaned* _tmp37_ = NULL;
	GitgHistoryRefsList* _tmp38_ = NULL;
	GitgHistoryRefsList* _tmp39_ = NULL;
	gulong _tmp40_ = 0UL;
	GitgHistoryPaned* _tmp41_ = NULL;
	GitgCommitListView* _tmp42_ = NULL;
	GitgCommitListView* _tmp43_ = NULL;
	GitgPopupMenu* _tmp44_ = NULL;
	GitgPopupMenu* _tmp45_ = NULL;
	GitgExtApplication* _tmp46_ = NULL;
	GitgExtApplication* _tmp47_ = NULL;
	GitgExtApplication* _tmp48_ = NULL;
	GitgHistoryPaned* _tmp49_ = NULL;
	GitgHistoryRefsList* _tmp50_ = NULL;
	GitgHistoryRefsList* _tmp51_ = NULL;
	GitgHistoryPaned* _tmp52_ = NULL;
	GitgCommitListView* _tmp53_ = NULL;
	GitgCommitListView* _tmp54_ = NULL;
	GitgCommitModel* _tmp55_ = NULL;
	GitgCommitModel* _tmp56_ = NULL;
#line 555 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gitg_history_paned_new ();
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp0_);
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_main);
#line 557 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_main = _tmp0_;
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_refs_list (_tmp1_);
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_ext_application_get_remote_lookup (_tmp6_);
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _tmp8_;
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_refs_list_set_remote_lookup (_tmp3_, _tmp9_);
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp9_);
#line 559 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp6_);
#line 561 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = self->priv->d_main;
#line 561 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = gitg_history_paned_get_commit_list_view (_tmp10_);
#line 561 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _tmp11_;
#line 561 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = self->priv->d_commit_list_model;
#line 561 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_model ((GtkTreeView*) _tmp12_, (GtkTreeModel*) _tmp13_);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = self->priv->d_main;
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_paned_get_commit_list_view (_tmp14_);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp16_);
#line 563 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp17_, "changed", (GCallback) ___lambda129__gtk_tree_selection_changed, self, 0);
#line 575 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = gitg_plugins_engine_get_default ();
#line 575 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	engine = _tmp18_;
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = peas_extension_set_new ((PeasEngine*) engine, GITG_EXT_TYPE_HISTORY_PANEL, "history", self, "application", _tmp21_, NULL);
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp21_);
#line 577 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	extset = _tmp23_;
#line 584 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = self->priv->d_main;
#line 584 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = gitg_history_paned_get_stack_panel (_tmp24_);
#line 584 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _tmp25_;
#line 584 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = gitg_ui_elements_new (GITG_EXT_TYPE_HISTORY_PANEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, extset, _tmp26_);
#line 584 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_panels);
#line 584 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_panels = _tmp27_;
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = self->priv->d_main;
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = gitg_history_paned_get_refs_list (_tmp28_);
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = _tmp29_;
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = gitg_popup_menu_new ((GtkWidget*) _tmp30_);
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_refs_list_popup);
#line 587 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_refs_list_popup = _tmp31_;
#line 588 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = self->priv->d_refs_list_popup;
#line 588 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp32_, "populate-menu", (GCallback) _gitg_history_activity_on_refs_list_populate_menu_gitg_popup_menu_populate_menu, self, 0);
#line 590 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = self->priv->d_main;
#line 590 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = gitg_history_paned_get_refs_list (_tmp33_);
#line 590 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = _tmp34_;
#line 590 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp36_ = g_signal_connect_object ((GObject*) _tmp35_, "notify::selection", (GCallback) _gitg_history_activity_update_walker_idle_g_object_notify, self, 0);
#line 590 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_refs_list_selection_id = _tmp36_;
#line 591 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = self->priv->d_main;
#line 591 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = gitg_history_paned_get_refs_list (_tmp37_);
#line 591 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = _tmp38_;
#line 591 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp40_ = g_signal_connect_object (_tmp39_, "changed", (GCallback) _gitg_history_activity_update_walker_idle_gitg_history_refs_list_changed, self, 0);
#line 591 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_refs_list_changed_id = _tmp40_;
#line 593 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = self->priv->d_main;
#line 593 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = gitg_history_paned_get_commit_list_view (_tmp41_);
#line 593 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = _tmp42_;
#line 593 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = gitg_popup_menu_new ((GtkWidget*) _tmp43_);
#line 593 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_popup);
#line 593 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_commit_list_popup = _tmp44_;
#line 594 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = self->priv->d_commit_list_popup;
#line 594 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp45_, "populate-menu", (GCallback) _gitg_history_activity_on_commit_list_populate_menu_gitg_popup_menu_populate_menu, self, 0);
#line 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = _tmp46_;
#line 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = _tmp47_;
#line 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = self->priv->d_main;
#line 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = gitg_history_paned_get_refs_list (_tmp49_);
#line 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = _tmp50_;
#line 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp48_, "repository", (GObject*) _tmp51_, "repository", G_BINDING_DEFAULT | 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 596 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp48_);
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = self->priv->d_main;
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = gitg_history_paned_get_commit_list_view (_tmp52_);
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp54_ = _tmp53_;
#line 601 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_search_equal_func ((GtkTreeView*) _tmp54_, _gitg_history_activity_search_filter_func_gtk_tree_view_search_equal_func, g_object_ref (self), g_object_unref);
#line 603 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = self->priv->d_commit_list_model;
#line 603 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp55_, "begin-clear", (GCallback) _gitg_history_activity_on_commit_model_begin_clear_gitg_commit_model_begin_clear, self, 0);
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp56_ = self->priv->d_commit_list_model;
#line 604 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp56_, "end-clear", (GCallback) _gitg_history_activity_on_commit_model_end_clear_gitg_commit_model_end_clear, self, 0);
#line 555 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (extset);
#line 555 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (engine);
#line 3529 "gitg-history.c"
}


static gboolean ___lambda144_ (GitgHistoryActivity* self) {
	gboolean result = FALSE;
#line 617 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_walker_update_idle_id = (guint) 0;
#line 618 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 619 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = FALSE;
#line 619 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3543 "gitg-history.c"
}


static gboolean ____lambda144__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda144_ ((GitgHistoryActivity*) self);
#line 616 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3552 "gitg-history.c"
}


static void gitg_history_activity_update_walker_idle (GitgHistoryActivity* self) {
	GitgRepository* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 607 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 609 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_repository;
#line 609 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 611 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 3567 "gitg-history.c"
	}
#line 614 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_walker_update_idle_id;
#line 614 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ == ((guint) 0)) {
#line 3573 "gitg-history.c"
		guint _tmp2_ = 0U;
#line 616 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ____lambda144__gsource_func, g_object_ref (self), g_object_unref);
#line 616 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_walker_update_idle_id = _tmp2_;
#line 3579 "gitg-history.c"
	}
}


static GtkMenu* gitg_history_activity_popup_on_ref (GitgHistoryActivity* self, GdkEventButton* event) {
	GtkMenu* result = NULL;
	gint cell_x = 0;
	gint cell_y = 0;
	gint cell_w = 0;
	GtkTreePath* path = NULL;
	GtkTreeViewColumn* column = NULL;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GdkEventButton* _tmp3_ = NULL;
	gdouble _tmp4_ = 0.0;
	GdkEventButton* _tmp5_ = NULL;
	gdouble _tmp6_ = 0.0;
	GtkTreePath* _tmp7_ = NULL;
	GtkTreeViewColumn* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	gint _tmp10_ = 0;
	gboolean _tmp11_ = FALSE;
	GtkTreeViewColumn* _tmp12_ = NULL;
	GitgCellRendererLanes* cell = NULL;
	GitgHistoryPaned* _tmp13_ = NULL;
	GitgCommitListView* _tmp14_ = NULL;
	GitgCommitListView* _tmp15_ = NULL;
	GtkTreeViewColumn* _tmp16_ = NULL;
	GtkTreePath* _tmp17_ = NULL;
	gint _tmp18_ = 0;
	gint _tmp19_ = 0;
	GtkCellRenderer* _tmp20_ = NULL;
	GitgCellRendererLanes* _tmp21_ = NULL;
	GitgCellRendererLanes* _tmp22_ = NULL;
	GitgRef* reference = NULL;
	GitgCellRendererLanes* _tmp23_ = NULL;
	GitgHistoryPaned* _tmp24_ = NULL;
	GitgCommitListView* _tmp25_ = NULL;
	GitgCommitListView* _tmp26_ = NULL;
	gint _tmp27_ = 0;
	gint _tmp28_ = 0;
	GitgRef* _tmp29_ = NULL;
	GitgRef* _tmp30_ = NULL;
	GitgRef* _tmp31_ = NULL;
	GtkMenu* _tmp32_ = NULL;
#line 624 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = event;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_->x;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = event;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_->y;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = gtk_tree_view_get_path_at_pos ((GtkTreeView*) _tmp2_, (gint) _tmp4_, (gint) _tmp6_, &_tmp7_, &_tmp8_, &_tmp9_, &_tmp10_);
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	path = _tmp7_;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _g_object_ref0 (_tmp8_);
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	column = _tmp12_;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_x = _tmp9_;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_y = _tmp10_;
#line 632 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp11_) {
#line 639 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 639 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 639 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 639 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3668 "gitg-history.c"
	}
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = self->priv->d_main;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gitg_history_paned_get_commit_list_view (_tmp13_);
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = column;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = path;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = cell_x;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = gitg_commit_list_view_find_cell_at_pos (_tmp15_, _tmp16_, _tmp17_, _tmp18_, &_tmp19_);
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_w = _tmp19_;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, GITG_TYPE_CELL_RENDERER_LANES) ? ((GitgCellRendererLanes*) _tmp20_) : NULL;
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp21_ == NULL) {
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp20_);
#line 3692 "gitg-history.c"
	}
#line 642 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell = _tmp21_;
#line 644 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = cell;
#line 644 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp22_ == NULL) {
#line 646 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 646 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (cell);
#line 646 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 646 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 646 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3710 "gitg-history.c"
	}
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = cell;
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = self->priv->d_main;
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = gitg_history_paned_get_commit_list_view (_tmp24_);
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _tmp25_;
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = cell_x;
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = cell_w;
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = gitg_cell_renderer_lanes_get_ref_at_pos (_tmp23_, (GtkWidget*) _tmp26_, _tmp27_, _tmp28_, NULL);
#line 649 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	reference = _tmp29_;
#line 651 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = reference;
#line 651 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp30_ == NULL) {
#line 653 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 653 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (reference);
#line 653 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (cell);
#line 653 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 653 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 653 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3744 "gitg-history.c"
	}
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = reference;
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = gitg_history_activity_popup_menu_for_ref (self, _tmp31_);
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp32_;
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (reference);
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (cell);
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 656 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3762 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_on_commit_list_populate_menu (GitgHistoryActivity* self, GdkEventButton* event) {
	GtkMenu* result = NULL;
	GtkMenu* ret = NULL;
	GdkEventButton* _tmp0_ = NULL;
	GtkMenu* _tmp1_ = NULL;
	GtkMenu* _tmp2_ = NULL;
#line 659 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 661 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 661 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_activity_popup_on_ref (self, _tmp0_);
#line 661 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	ret = _tmp1_;
#line 663 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = ret;
#line 663 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp2_ == NULL) {
#line 3784 "gitg-history.c"
		GdkEventButton* _tmp3_ = NULL;
		GtkMenu* _tmp4_ = NULL;
#line 665 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = event;
#line 665 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = gitg_history_activity_popup_menu_for_commit (self, _tmp3_);
#line 665 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (ret);
#line 665 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ret = _tmp4_;
#line 3795 "gitg-history.c"
	}
#line 668 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = ret;
#line 668 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3801 "gitg-history.c"
}


static void gitg_history_activity_add_ref_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtRefAction* action) {
	gboolean _tmp0_ = FALSE;
	GitgExtRefAction* _tmp1_ = NULL;
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (actions != NULL);
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ != NULL) {
#line 3816 "gitg-history.c"
		GitgExtRefAction* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp2_);
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _tmp3_;
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = _tmp4_;
#line 3828 "gitg-history.c"
	} else {
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 3832 "gitg-history.c"
	}
#line 674 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_) {
#line 3836 "gitg-history.c"
		GeeLinkedList* _tmp5_ = NULL;
		GitgExtRefAction* _tmp6_ = NULL;
#line 676 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = actions;
#line 676 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = action;
#line 676 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp6_);
#line 3845 "gitg-history.c"
	}
}


static Block79Data* block79_data_ref (Block79Data* _data79_) {
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data79_->_ref_count_);
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return _data79_;
#line 3855 "gitg-history.c"
}


static void block79_data_unref (void * _userdata_) {
	Block79Data* _data79_;
	_data79_ = (Block79Data*) _userdata_;
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data79_->_ref_count_)) {
#line 3864 "gitg-history.c"
		GitgHistoryActivity* self;
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self = _data79_->self;
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data79_->actions);
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block79Data, _data79_);
#line 3874 "gitg-history.c"
	}
}


static void __lambda145_ (GitgHistoryActivity* self) {
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_ignore_external = TRUE;
#line 3882 "gitg-history.c"
}


static void ___lambda145__gitg_history_action_interface_updated (GitgHistoryActionInterface* _sender, gpointer self) {
#line 708 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda145_ ((GitgHistoryActivity*) self);
#line 3889 "gitg-history.c"
}


static void __lambda158_ (Block79Data* _data79_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension) {
	GitgHistoryActivity* self;
	GeeLinkedList* _tmp0_ = NULL;
	PeasExtension* _tmp1_ = NULL;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data79_->self;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extset != NULL);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (info != NULL);
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extension != NULL);
#line 744 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data79_->actions;
#line 744 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = extension;
#line 744 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp0_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_COMMIT_ACTION) ? ((GitgExtCommitAction*) _tmp1_) : NULL);
#line 3911 "gitg-history.c"
}


static void ___lambda158__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self) {
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda158_ (self, set, info, exten);
#line 3918 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_popup_menu_for_commit (GitgHistoryActivity* self, GdkEventButton* event) {
	GtkMenu* result = NULL;
	Block79Data* _data79_;
	gint cell_x = 0;
	gint cell_y = 0;
	GtkTreePath* path = NULL;
	GtkTreeViewColumn* column = NULL;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GdkEventButton* _tmp3_ = NULL;
	gdouble _tmp4_ = 0.0;
	GdkEventButton* _tmp5_ = NULL;
	gdouble _tmp6_ = 0.0;
	GtkTreePath* _tmp7_ = NULL;
	GtkTreeViewColumn* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	gint _tmp10_ = 0;
	gboolean _tmp11_ = FALSE;
	GtkTreeViewColumn* _tmp12_ = NULL;
	GitgCommit* commit = NULL;
	GitgCommitModel* _tmp13_ = NULL;
	GtkTreePath* _tmp14_ = NULL;
	GitgCommit* _tmp15_ = NULL;
	GitgCommit* _tmp16_ = NULL;
	GitgHistoryPaned* _tmp17_ = NULL;
	GitgCommitListView* _tmp18_ = NULL;
	GitgCommitListView* _tmp19_ = NULL;
	GtkTreeSelection* _tmp20_ = NULL;
	GtkTreePath* _tmp21_ = NULL;
	GitgHistoryActionInterface* af = NULL;
	GitgExtApplication* _tmp22_ = NULL;
	GitgExtApplication* _tmp23_ = NULL;
	GitgExtApplication* _tmp24_ = NULL;
	GitgHistoryPaned* _tmp25_ = NULL;
	GitgHistoryRefsList* _tmp26_ = NULL;
	GitgHistoryRefsList* _tmp27_ = NULL;
	GitgHistoryActionInterface* _tmp28_ = NULL;
	GitgHistoryActionInterface* _tmp29_ = NULL;
	GitgHistoryActionInterface* _tmp30_ = NULL;
	GeeLinkedList* _tmp31_ = NULL;
	GeeLinkedList* _tmp32_ = NULL;
	GitgExtApplication* _tmp33_ = NULL;
	GitgExtApplication* _tmp34_ = NULL;
	GitgExtApplication* _tmp35_ = NULL;
	GitgHistoryActionInterface* _tmp36_ = NULL;
	GitgCommit* _tmp37_ = NULL;
	GitgCommitActionCreateBranch* _tmp38_ = NULL;
	GitgCommitActionCreateBranch* _tmp39_ = NULL;
	GeeLinkedList* _tmp40_ = NULL;
	GitgExtApplication* _tmp41_ = NULL;
	GitgExtApplication* _tmp42_ = NULL;
	GitgExtApplication* _tmp43_ = NULL;
	GitgHistoryActionInterface* _tmp44_ = NULL;
	GitgCommit* _tmp45_ = NULL;
	GitgCommitActionCreateTag* _tmp46_ = NULL;
	GitgCommitActionCreateTag* _tmp47_ = NULL;
	GeeLinkedList* _tmp48_ = NULL;
	GitgExtApplication* _tmp49_ = NULL;
	GitgExtApplication* _tmp50_ = NULL;
	GitgExtApplication* _tmp51_ = NULL;
	GitgHistoryActionInterface* _tmp52_ = NULL;
	GitgCommit* _tmp53_ = NULL;
	GitgCommitActionCreatePatch* _tmp54_ = NULL;
	GitgCommitActionCreatePatch* _tmp55_ = NULL;
	GeeLinkedList* _tmp56_ = NULL;
	GitgExtApplication* _tmp57_ = NULL;
	GitgExtApplication* _tmp58_ = NULL;
	GitgExtApplication* _tmp59_ = NULL;
	GitgHistoryActionInterface* _tmp60_ = NULL;
	GitgCommit* _tmp61_ = NULL;
	GitgCommitActionCherryPick* _tmp62_ = NULL;
	GitgCommitActionCherryPick* _tmp63_ = NULL;
	PeasExtensionSet* exts = NULL;
	GitgPluginsEngine* _tmp64_ = NULL;
	GitgPluginsEngine* _tmp65_ = NULL;
	GitgExtApplication* _tmp66_ = NULL;
	GitgExtApplication* _tmp67_ = NULL;
	GitgExtApplication* _tmp68_ = NULL;
	GitgHistoryActionInterface* _tmp69_ = NULL;
	GitgCommit* _tmp70_ = NULL;
	PeasExtensionSet* _tmp71_ = NULL;
	PeasExtensionSet* _tmp72_ = NULL;
	PeasExtensionSet* _tmp73_ = NULL;
	GeeLinkedList* _tmp74_ = NULL;
	gint _tmp75_ = 0;
	gint _tmp76_ = 0;
	GtkMenu* menu = NULL;
	GtkMenu* _tmp77_ = NULL;
	GtkMenu* _tmp91_ = NULL;
	GeeLinkedList* _tmp92_ = NULL;
	GeeLinkedList* _tmp93_ = NULL;
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_ = g_slice_new0 (Block79Data);
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_->_ref_count_ = 1;
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_->self = g_object_ref (self);
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = event;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_->x;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = event;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_->y;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = gtk_tree_view_get_path_at_pos ((GtkTreeView*) _tmp2_, (gint) _tmp4_, (gint) _tmp6_, &_tmp7_, &_tmp8_, &_tmp9_, &_tmp10_);
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	path = _tmp7_;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _g_object_ref0 (_tmp8_);
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	column = _tmp12_;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_x = _tmp9_;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_y = _tmp10_;
#line 687 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp11_) {
#line 694 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 694 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 694 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 694 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		block79_data_unref (_data79_);
#line 694 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data79_ = NULL;
#line 694 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4066 "gitg-history.c"
	}
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = self->priv->d_commit_list_model;
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = path;
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_commit_model_commit_from_path (_tmp13_, _tmp14_);
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	commit = _tmp15_;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = commit;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp16_ == NULL) {
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (commit);
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		block79_data_unref (_data79_);
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data79_ = NULL;
#line 701 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4094 "gitg-history.c"
	}
#line 704 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = self->priv->d_main;
#line 704 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = gitg_history_paned_get_commit_list_view (_tmp17_);
#line 704 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 704 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp19_);
#line 704 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = path;
#line 704 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_selection_select_path (_tmp20_, _tmp21_);
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = _tmp23_;
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = self->priv->d_main;
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = gitg_history_paned_get_refs_list (_tmp25_);
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = _tmp26_;
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = gitg_history_action_interface_new (_tmp24_, _tmp27_);
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = _tmp28_;
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp24_);
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	af = _tmp29_;
#line 708 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = af;
#line 708 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp30_, "updated", (GCallback) ___lambda145__gitg_history_action_interface_updated, self, 0);
#line 712 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = gee_linked_list_new (GITG_EXT_TYPE_COMMIT_ACTION, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 712 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_->actions = _tmp31_;
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = _data79_->actions;
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = _tmp33_;
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = _tmp34_;
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp36_ = af;
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = commit;
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = gitg_commit_action_create_branch_new (_tmp35_, (GitgExtRefActionInterface*) _tmp36_, _tmp37_);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = _tmp38_;
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp32_, (GitgExtCommitAction*) _tmp39_);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp39_);
#line 714 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp35_);
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp40_ = _data79_->actions;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = _tmp41_;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = _tmp42_;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = af;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = commit;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = gitg_commit_action_create_tag_new (_tmp43_, (GitgExtRefActionInterface*) _tmp44_, _tmp45_);
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = _tmp46_;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp40_, (GitgExtCommitAction*) _tmp47_);
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp47_);
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp43_);
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = _data79_->actions;
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = _tmp49_;
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = _tmp50_;
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = af;
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = commit;
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp54_ = gitg_commit_action_create_patch_new (_tmp51_, (GitgExtRefActionInterface*) _tmp52_, _tmp53_);
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = _tmp54_;
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp48_, (GitgExtCommitAction*) _tmp55_);
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp55_);
#line 724 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp51_);
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp56_ = _data79_->actions;
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp57_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp58_ = _tmp57_;
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp59_ = _tmp58_;
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp60_ = af;
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp61_ = commit;
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp62_ = gitg_commit_action_cherry_pick_new (_tmp59_, (GitgExtRefActionInterface*) _tmp60_, _tmp61_);
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp63_ = _tmp62_;
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp56_, (GitgExtCommitAction*) _tmp63_);
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp63_);
#line 729 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp59_);
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp64_ = gitg_plugins_engine_get_default ();
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp65_ = _tmp64_;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp66_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp67_ = _tmp66_;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp68_ = _tmp67_;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp69_ = af;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp70_ = commit;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp71_ = peas_extension_set_new ((PeasEngine*) _tmp65_, GITG_EXT_TYPE_COMMIT_ACTION, "application", _tmp68_, "action_interface", _tmp69_, "commit", _tmp70_, NULL);
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp72_ = _tmp71_;
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp68_);
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp65_);
#line 734 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	exts = _tmp72_;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp73_ = exts;
#line 743 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	peas_extension_set_foreach (_tmp73_, ___lambda158__peas_extension_set_foreach_func, _data79_);
#line 747 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp74_ = _data79_->actions;
#line 747 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp75_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp74_);
#line 747 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp76_ = _tmp75_;
#line 747 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp76_ == 0) {
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (exts);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (af);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (commit);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		block79_data_unref (_data79_);
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data79_ = NULL;
#line 749 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4278 "gitg-history.c"
	}
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp77_ = (GtkMenu*) gtk_menu_new ();
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp77_);
#line 752 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	menu = _tmp77_;
#line 4286 "gitg-history.c"
	{
		GeeLinkedList* _ac_list = NULL;
		GeeLinkedList* _tmp78_ = NULL;
		GeeLinkedList* _tmp79_ = NULL;
		gint _ac_size = 0;
		GeeLinkedList* _tmp80_ = NULL;
		gint _tmp81_ = 0;
		gint _tmp82_ = 0;
		gint _ac_index = 0;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp78_ = _data79_->actions;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp79_ = _g_object_ref0 (_tmp78_);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_list = _tmp79_;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp80_ = _ac_list;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp81_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp80_);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp82_ = _tmp81_;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_size = _tmp82_;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_index = -1;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 4314 "gitg-history.c"
			gint _tmp83_ = 0;
			gint _tmp84_ = 0;
			gint _tmp85_ = 0;
			GitgExtCommitAction* ac = NULL;
			GeeLinkedList* _tmp86_ = NULL;
			gint _tmp87_ = 0;
			gpointer _tmp88_ = NULL;
			GitgExtCommitAction* _tmp89_ = NULL;
			GtkMenu* _tmp90_ = NULL;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp83_ = _ac_index;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_ac_index = _tmp83_ + 1;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp84_ = _ac_index;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp85_ = _ac_size;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp84_ < _tmp85_)) {
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				break;
#line 4336 "gitg-history.c"
			}
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp86_ = _ac_list;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp87_ = _ac_index;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp88_ = gee_abstract_list_get ((GeeAbstractList*) _tmp86_, _tmp87_);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ac = (GitgExtCommitAction*) _tmp88_;
#line 756 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp89_ = ac;
#line 756 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp90_ = menu;
#line 756 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			gitg_ext_action_populate_menu ((GitgExtAction*) _tmp89_, _tmp90_);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (ac);
#line 4354 "gitg-history.c"
		}
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_ac_list);
#line 4358 "gitg-history.c"
	}
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp91_ = menu;
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp92_ = _data79_->actions;
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp93_ = _g_object_ref0 (_tmp92_);
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_set_data_full ((GObject*) _tmp91_, "gitg-ext-actions", _tmp93_, g_object_unref);
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = menu;
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (exts);
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (af);
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (commit);
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	block79_data_unref (_data79_);
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_ = NULL;
#line 762 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4386 "gitg-history.c"
}


static Block80Data* block80_data_ref (Block80Data* _data80_) {
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data80_->_ref_count_);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return _data80_;
#line 4395 "gitg-history.c"
}


static void block80_data_unref (void * _userdata_) {
	Block80Data* _data80_;
	_data80_ = (Block80Data*) _userdata_;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data80_->_ref_count_)) {
#line 4404 "gitg-history.c"
		GitgHistoryActivity* self;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self = _data80_->self;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data80_->item);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data80_->actions);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data80_->reference);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block80Data, _data80_);
#line 4418 "gitg-history.c"
	}
}


static void __lambda131_ (GitgHistoryActivity* self) {
#line 772 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_ignore_external = TRUE;
#line 4426 "gitg-history.c"
}


static void ___lambda131__gitg_history_action_interface_updated (GitgHistoryActionInterface* _sender, gpointer self) {
#line 771 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda131_ ((GitgHistoryActivity*) self);
#line 4433 "gitg-history.c"
}


static void __lambda142_ (Block80Data* _data80_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension) {
	GitgHistoryActivity* self;
	gboolean _tmp0_ = FALSE;
	GeeLinkedList* _tmp2_ = NULL;
	PeasExtension* _tmp3_ = NULL;
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data80_->self;
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extset != NULL);
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (info != NULL);
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extension != NULL);
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data80_->addedsep;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp0_) {
#line 4454 "gitg-history.c"
		GeeLinkedList* _tmp1_ = NULL;
#line 811 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = _data80_->actions;
#line 811 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp1_, NULL);
#line 812 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data80_->addedsep = TRUE;
#line 4462 "gitg-history.c"
	}
#line 815 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _data80_->actions;
#line 815 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = extension;
#line 815 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp2_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GITG_EXT_TYPE_REF_ACTION) ? ((GitgExtRefAction*) _tmp3_) : NULL);
#line 4470 "gitg-history.c"
}


static void ___lambda142__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self) {
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda142_ (self, set, info, exten);
#line 4477 "gitg-history.c"
}


static void _vala_array_add24 (gchar*** array, int* length, int* size, gchar* value) {
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 4488 "gitg-history.c"
	}
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 4494 "gitg-history.c"
}


static void _vala_array_add25 (gchar*** array, int* length, int* size, gchar* value) {
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 4505 "gitg-history.c"
	}
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 4511 "gitg-history.c"
}


static gchar** _vala_array_dup19 (gchar** self, int length) {
	gchar** result;
	int i;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = g_new0 (gchar*, length + 1);
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	for (i = 0; i < length; i++) {
#line 4522 "gitg-history.c"
		gchar* _tmp0_ = NULL;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = g_strdup (self[i]);
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result[i] = _tmp0_;
#line 4528 "gitg-history.c"
	}
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4532 "gitg-history.c"
}


static void __lambda143_ (Block80Data* _data80_) {
	GitgHistoryActivity* self;
	GtkCheckMenuItem* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data80_->self;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data80_->item;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp2_) {
#line 4551 "gitg-history.c"
		gchar** _tmp3_ = NULL;
		gint _tmp3__length1 = 0;
		GitgRef* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = self->priv->d_mainline;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3__length1 = self->priv->d_mainline_length1;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _data80_->reference;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = ggit_ref_get_name ((GgitRef*) _tmp4_);
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_vala_array_add24 (&self->priv->d_mainline, &self->priv->d_mainline_length1, &self->priv->_d_mainline_size_, _tmp6_);
#line 4569 "gitg-history.c"
	} else {
		gchar** nml = NULL;
		gchar** _tmp7_ = NULL;
		gint _tmp7__length1 = 0;
		gchar** _tmp8_ = NULL;
		gint nml_length1 = 0;
		gint _nml_size_ = 0;
		gint _tmp9_ = 0;
		gchar** _tmp21_ = NULL;
		gint _tmp21__length1 = 0;
		gchar** _tmp22_ = NULL;
		gint _tmp22__length1 = 0;
#line 864 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = self->priv->d_mainline;
#line 864 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7__length1 = self->priv->d_mainline_length1;
#line 864 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = g_new0 (gchar*, (_tmp7__length1 - 1) + 1);
#line 864 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml = _tmp8_;
#line 864 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml_length1 = _tmp7__length1 - 1;
#line 864 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_nml_size_ = nml_length1;
#line 865 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml_length1 = 0;
#line 865 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = nml_length1;
#line 4598 "gitg-history.c"
		{
			gint i = 0;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			i = 0;
#line 4603 "gitg-history.c"
			{
				gboolean _tmp10_ = FALSE;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = TRUE;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				while (TRUE) {
#line 4610 "gitg-history.c"
					gint _tmp12_ = 0;
					gchar** _tmp13_ = NULL;
					gint _tmp13__length1 = 0;
					gint _tmp14_ = 0;
					gint _tmp15_ = 0;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (!_tmp10_) {
#line 4618 "gitg-history.c"
						gint _tmp11_ = 0;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp11_ = i;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						i = _tmp11_ + 1;
#line 4624 "gitg-history.c"
					}
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp10_ = FALSE;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp12_ = i;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp13_ = self->priv->d_mainline;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp13__length1 = self->priv->d_mainline_length1;
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (!(_tmp12_ < _tmp13__length1)) {
#line 867 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						break;
#line 4638 "gitg-history.c"
					}
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp14_ = i;
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp15_ = _data80_->pos;
#line 869 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp14_ != _tmp15_) {
#line 4646 "gitg-history.c"
						gchar** _tmp16_ = NULL;
						gint _tmp16__length1 = 0;
						gchar** _tmp17_ = NULL;
						gint _tmp17__length1 = 0;
						gint _tmp18_ = 0;
						const gchar* _tmp19_ = NULL;
						gchar* _tmp20_ = NULL;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp16_ = nml;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp16__length1 = nml_length1;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp17_ = self->priv->d_mainline;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp17__length1 = self->priv->d_mainline_length1;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp18_ = i;
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp19_ = _tmp17_[_tmp18_];
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp20_ = g_strdup (_tmp19_);
#line 871 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_vala_array_add25 (&nml, &nml_length1, &_nml_size_, _tmp20_);
#line 4670 "gitg-history.c"
					}
				}
			}
		}
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = nml;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21__length1 = nml_length1;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = (_tmp21_ != NULL) ? _vala_array_dup19 (_tmp21_, _tmp21__length1) : ((gpointer) _tmp21_);
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22__length1 = _tmp21__length1;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_mainline = (_vala_array_free (self->priv->d_mainline, self->priv->d_mainline_length1, (GDestroyNotify) g_free), NULL);
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_mainline = _tmp22_;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_mainline_length1 = _tmp22__length1;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->_d_mainline_size_ = self->priv->d_mainline_length1;
#line 858 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml = (_vala_array_free (nml, nml_length1, (GDestroyNotify) g_free), NULL);
#line 4693 "gitg-history.c"
	}
#line 878 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_store_changed_mainline (self);
#line 879 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 4699 "gitg-history.c"
}


static void ___lambda143__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda143_ (self);
#line 4706 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_popup_menu_for_ref (GitgHistoryActivity* self, GitgRef* reference) {
	GtkMenu* result = NULL;
	Block80Data* _data80_;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GeeLinkedList* _tmp2_ = NULL;
	GitgHistoryActionInterface* af = NULL;
	GitgExtApplication* _tmp3_ = NULL;
	GitgExtApplication* _tmp4_ = NULL;
	GitgExtApplication* _tmp5_ = NULL;
	GitgHistoryPaned* _tmp6_ = NULL;
	GitgHistoryRefsList* _tmp7_ = NULL;
	GitgHistoryRefsList* _tmp8_ = NULL;
	GitgHistoryActionInterface* _tmp9_ = NULL;
	GitgHistoryActionInterface* _tmp10_ = NULL;
	GitgHistoryActionInterface* _tmp11_ = NULL;
	GeeLinkedList* _tmp12_ = NULL;
	GitgExtApplication* _tmp13_ = NULL;
	GitgExtApplication* _tmp14_ = NULL;
	GitgExtApplication* _tmp15_ = NULL;
	GitgHistoryActionInterface* _tmp16_ = NULL;
	GitgRef* _tmp17_ = NULL;
	GitgRefActionCheckout* _tmp18_ = NULL;
	GitgRefActionCheckout* _tmp19_ = NULL;
	GeeLinkedList* _tmp20_ = NULL;
	GitgExtApplication* _tmp21_ = NULL;
	GitgExtApplication* _tmp22_ = NULL;
	GitgExtApplication* _tmp23_ = NULL;
	GitgHistoryActionInterface* _tmp24_ = NULL;
	GitgRef* _tmp25_ = NULL;
	GitgRefActionRename* _tmp26_ = NULL;
	GitgRefActionRename* _tmp27_ = NULL;
	GeeLinkedList* _tmp28_ = NULL;
	GitgExtApplication* _tmp29_ = NULL;
	GitgExtApplication* _tmp30_ = NULL;
	GitgExtApplication* _tmp31_ = NULL;
	GitgHistoryActionInterface* _tmp32_ = NULL;
	GitgRef* _tmp33_ = NULL;
	GitgRefActionDelete* _tmp34_ = NULL;
	GitgRefActionDelete* _tmp35_ = NULL;
	GeeLinkedList* _tmp36_ = NULL;
	GitgExtApplication* _tmp37_ = NULL;
	GitgExtApplication* _tmp38_ = NULL;
	GitgExtApplication* _tmp39_ = NULL;
	GitgHistoryActionInterface* _tmp40_ = NULL;
	GitgRef* _tmp41_ = NULL;
	GitgRefActionCopyName* _tmp42_ = NULL;
	GitgRefActionCopyName* _tmp43_ = NULL;
	GitgRefActionFetch* fetch = NULL;
	GitgExtApplication* _tmp44_ = NULL;
	GitgExtApplication* _tmp45_ = NULL;
	GitgExtApplication* _tmp46_ = NULL;
	GitgHistoryActionInterface* _tmp47_ = NULL;
	GitgRef* _tmp48_ = NULL;
	GitgRefActionFetch* _tmp49_ = NULL;
	GitgRefActionFetch* _tmp50_ = NULL;
	GitgRefActionFetch* _tmp51_ = NULL;
	gboolean _tmp52_ = FALSE;
	gboolean _tmp53_ = FALSE;
	GeeLinkedList* _tmp55_ = NULL;
	GitgRefActionFetch* _tmp56_ = NULL;
	GitgRefActionMerge* merge = NULL;
	GitgExtApplication* _tmp57_ = NULL;
	GitgExtApplication* _tmp58_ = NULL;
	GitgExtApplication* _tmp59_ = NULL;
	GitgHistoryActionInterface* _tmp60_ = NULL;
	GitgRef* _tmp61_ = NULL;
	GitgRefActionMerge* _tmp62_ = NULL;
	GitgRefActionMerge* _tmp63_ = NULL;
	GitgRefActionMerge* _tmp64_ = NULL;
	gboolean _tmp65_ = FALSE;
	gboolean _tmp66_ = FALSE;
	PeasExtensionSet* exts = NULL;
	GitgPluginsEngine* _tmp70_ = NULL;
	GitgPluginsEngine* _tmp71_ = NULL;
	GitgExtApplication* _tmp72_ = NULL;
	GitgExtApplication* _tmp73_ = NULL;
	GitgExtApplication* _tmp74_ = NULL;
	GitgHistoryActionInterface* _tmp75_ = NULL;
	GitgRef* _tmp76_ = NULL;
	PeasExtensionSet* _tmp77_ = NULL;
	PeasExtensionSet* _tmp78_ = NULL;
	PeasExtensionSet* _tmp79_ = NULL;
	GeeLinkedList* _tmp80_ = NULL;
	gboolean _tmp81_ = FALSE;
	gboolean _tmp82_ = FALSE;
	GtkMenu* menu = NULL;
	GtkMenu* _tmp83_ = NULL;
	GtkSeparatorMenuItem* sep = NULL;
	GtkSeparatorMenuItem* _tmp102_ = NULL;
	GtkSeparatorMenuItem* _tmp103_ = NULL;
	GtkMenu* _tmp104_ = NULL;
	GtkSeparatorMenuItem* _tmp105_ = NULL;
	const gchar* _tmp106_ = NULL;
	GtkCheckMenuItem* _tmp107_ = NULL;
	gchar** _tmp108_ = NULL;
	gint _tmp108__length1 = 0;
	GtkCheckMenuItem* _tmp115_ = NULL;
	GtkCheckMenuItem* _tmp116_ = NULL;
	GtkMenu* _tmp117_ = NULL;
	GtkCheckMenuItem* _tmp118_ = NULL;
	GtkMenu* _tmp119_ = NULL;
	GeeLinkedList* _tmp120_ = NULL;
	GeeLinkedList* _tmp121_ = NULL;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_ = g_slice_new0 (Block80Data);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->_ref_count_ = 1;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->self = g_object_ref (self);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = reference;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_data80_->reference);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->reference = _tmp1_;
#line 767 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gee_linked_list_new (GITG_EXT_TYPE_REF_ACTION, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 767 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->actions = _tmp2_;
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = self->priv->d_main;
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_history_paned_get_refs_list (_tmp6_);
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = gitg_history_action_interface_new (_tmp5_, _tmp8_);
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = _tmp9_;
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp5_);
#line 769 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	af = _tmp10_;
#line 771 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = af;
#line 771 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp11_, "updated", (GCallback) ___lambda131__gitg_history_action_interface_updated, self, 0);
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _data80_->actions;
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = af;
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = _data80_->reference;
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = gitg_ref_action_checkout_new (_tmp15_, (GitgExtRefActionInterface*) _tmp16_, _tmp17_);
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp12_, (GitgExtRefAction*) _tmp19_);
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp19_);
#line 775 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp15_);
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _data80_->actions;
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = _tmp21_;
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = af;
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = _data80_->reference;
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = gitg_ref_action_rename_new (_tmp23_, (GitgExtRefActionInterface*) _tmp24_, _tmp25_);
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = _tmp26_;
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp20_, (GitgExtRefAction*) _tmp27_);
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp27_);
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp23_);
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = _data80_->actions;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = _tmp29_;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = _tmp30_;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = af;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = _data80_->reference;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = gitg_ref_action_delete_new (_tmp31_, (GitgExtRefActionInterface*) _tmp32_, _tmp33_);
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = _tmp34_;
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp28_, (GitgExtRefAction*) _tmp35_);
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp35_);
#line 777 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp31_);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp36_ = _data80_->actions;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = _tmp37_;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = _tmp38_;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp40_ = af;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = _data80_->reference;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = gitg_ref_action_copy_name_new (_tmp39_, (GitgExtRefActionInterface*) _tmp40_, _tmp41_);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = _tmp42_;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp36_, (GitgExtRefAction*) _tmp43_);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp43_);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp39_);
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = _tmp44_;
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = _tmp45_;
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = af;
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = _data80_->reference;
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = gitg_ref_action_fetch_new (_tmp46_, (GitgExtRefActionInterface*) _tmp47_, _tmp48_);
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = _tmp49_;
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp46_);
#line 780 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	fetch = _tmp50_;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = fetch;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp51_);
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = _tmp52_;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp53_) {
#line 4974 "gitg-history.c"
		GeeLinkedList* _tmp54_ = NULL;
#line 784 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp54_ = _data80_->actions;
#line 784 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp54_, NULL);
#line 4980 "gitg-history.c"
	}
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = _data80_->actions;
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp56_ = fetch;
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp55_, (GitgExtRefAction*) _tmp56_);
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp57_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp58_ = _tmp57_;
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp59_ = _tmp58_;
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp60_ = af;
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp61_ = _data80_->reference;
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp62_ = gitg_ref_action_merge_new (_tmp59_, (GitgExtRefActionInterface*) _tmp60_, _tmp61_);
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp63_ = _tmp62_;
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp59_);
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	merge = _tmp63_;
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp64_ = merge;
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp65_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp64_);
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp66_ = _tmp65_;
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp66_) {
#line 5014 "gitg-history.c"
		GeeLinkedList* _tmp67_ = NULL;
		GeeLinkedList* _tmp68_ = NULL;
		GitgRefActionMerge* _tmp69_ = NULL;
#line 793 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp67_ = _data80_->actions;
#line 793 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp67_, NULL);
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp68_ = _data80_->actions;
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp69_ = merge;
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_add_ref_action (self, _tmp68_, (GitgExtRefAction*) _tmp69_);
#line 5028 "gitg-history.c"
	}
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp70_ = gitg_plugins_engine_get_default ();
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp71_ = _tmp70_;
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp72_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp73_ = _tmp72_;
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp74_ = _tmp73_;
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp75_ = af;
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp76_ = _data80_->reference;
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp77_ = peas_extension_set_new ((PeasEngine*) _tmp71_, GITG_EXT_TYPE_REF_ACTION, "application", _tmp74_, "action_interface", _tmp75_, "reference", _tmp76_, NULL);
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp78_ = _tmp77_;
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp74_);
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp71_);
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	exts = _tmp78_;
#line 806 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->addedsep = FALSE;
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp79_ = exts;
#line 808 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	peas_extension_set_foreach (_tmp79_, ___lambda142__peas_extension_set_foreach_func, _data80_);
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp80_ = _data80_->actions;
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp81_ = gee_collection_get_is_empty ((GeeCollection*) _tmp80_);
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp82_ = _tmp81_;
#line 818 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp82_) {
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (exts);
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (merge);
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (fetch);
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (af);
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		block80_data_unref (_data80_);
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data80_ = NULL;
#line 820 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 5084 "gitg-history.c"
	}
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp83_ = (GtkMenu*) gtk_menu_new ();
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp83_);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	menu = _tmp83_;
#line 5092 "gitg-history.c"
	{
		GeeLinkedList* _ac_list = NULL;
		GeeLinkedList* _tmp84_ = NULL;
		GeeLinkedList* _tmp85_ = NULL;
		gint _ac_size = 0;
		GeeLinkedList* _tmp86_ = NULL;
		gint _tmp87_ = 0;
		gint _tmp88_ = 0;
		gint _ac_index = 0;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp84_ = _data80_->actions;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp85_ = _g_object_ref0 (_tmp84_);
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_list = _tmp85_;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp86_ = _ac_list;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp87_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp86_);
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp88_ = _tmp87_;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_size = _tmp88_;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_index = -1;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 5120 "gitg-history.c"
			gint _tmp89_ = 0;
			gint _tmp90_ = 0;
			gint _tmp91_ = 0;
			GitgExtRefAction* ac = NULL;
			GeeLinkedList* _tmp92_ = NULL;
			gint _tmp93_ = 0;
			gpointer _tmp94_ = NULL;
			GitgExtRefAction* _tmp95_ = NULL;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp89_ = _ac_index;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_ac_index = _tmp89_ + 1;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp90_ = _ac_index;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp91_ = _ac_size;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp90_ < _tmp91_)) {
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				break;
#line 5141 "gitg-history.c"
			}
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp92_ = _ac_list;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp93_ = _ac_index;
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp94_ = gee_abstract_list_get ((GeeAbstractList*) _tmp92_, _tmp93_);
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ac = (GitgExtRefAction*) _tmp94_;
#line 827 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp95_ = ac;
#line 827 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (_tmp95_ != NULL) {
#line 5155 "gitg-history.c"
				GitgExtRefAction* _tmp96_ = NULL;
				GtkMenu* _tmp97_ = NULL;
#line 829 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp96_ = ac;
#line 829 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp97_ = menu;
#line 829 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gitg_ext_action_populate_menu ((GitgExtAction*) _tmp96_, _tmp97_);
#line 5164 "gitg-history.c"
			} else {
				GtkSeparatorMenuItem* sep = NULL;
				GtkSeparatorMenuItem* _tmp98_ = NULL;
				GtkSeparatorMenuItem* _tmp99_ = NULL;
				GtkMenu* _tmp100_ = NULL;
				GtkSeparatorMenuItem* _tmp101_ = NULL;
#line 833 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp98_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
#line 833 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				g_object_ref_sink (_tmp98_);
#line 833 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				sep = _tmp98_;
#line 834 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp99_ = sep;
#line 834 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gtk_widget_show ((GtkWidget*) _tmp99_);
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp100_ = menu;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp101_ = sep;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gtk_menu_shell_append ((GtkMenuShell*) _tmp100_, (GtkWidget*) ((GtkMenuItem*) _tmp101_));
#line 827 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (sep);
#line 5189 "gitg-history.c"
			}
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (ac);
#line 5193 "gitg-history.c"
		}
#line 825 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_ac_list);
#line 5197 "gitg-history.c"
	}
#line 839 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp102_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
#line 839 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp102_);
#line 839 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	sep = _tmp102_;
#line 840 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp103_ = sep;
#line 840 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp103_);
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp104_ = menu;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp105_ = sep;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp104_, (GtkWidget*) ((GtkMenuItem*) _tmp105_));
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp106_ = _ ("Mainline");
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp107_ = (GtkCheckMenuItem*) gtk_check_menu_item_new_with_label (_tmp106_);
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp107_);
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->item = _tmp107_;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->pos = 0;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108_ = self->priv->d_mainline;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108__length1 = self->priv->d_mainline_length1;
#line 5229 "gitg-history.c"
	{
		gchar** ml_collection = NULL;
		gint ml_collection_length1 = 0;
		gint _ml_collection_size_ = 0;
		gint ml_it = 0;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ml_collection = _tmp108_;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ml_collection_length1 = _tmp108__length1;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		for (ml_it = 0; ml_it < _tmp108__length1; ml_it = ml_it + 1) {
#line 5241 "gitg-history.c"
			gchar* _tmp109_ = NULL;
			gchar* ml = NULL;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp109_ = g_strdup (ml_collection[ml_it]);
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ml = _tmp109_;
#line 5248 "gitg-history.c"
			{
				const gchar* _tmp110_ = NULL;
				GitgRef* _tmp111_ = NULL;
				const gchar* _tmp112_ = NULL;
				gint _tmp114_ = 0;
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp110_ = ml;
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp111_ = _data80_->reference;
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp112_ = ggit_ref_get_name ((GgitRef*) _tmp111_);
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (g_strcmp0 (_tmp110_, _tmp112_) == 0) {
#line 5262 "gitg-history.c"
					GtkCheckMenuItem* _tmp113_ = NULL;
#line 850 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp113_ = _data80_->item;
#line 850 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					gtk_check_menu_item_set_active (_tmp113_, TRUE);
#line 851 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_free0 (ml);
#line 851 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					break;
#line 5272 "gitg-history.c"
				}
#line 854 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp114_ = _data80_->pos;
#line 854 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_data80_->pos = _tmp114_ + 1;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_free0 (ml);
#line 5280 "gitg-history.c"
			}
		}
	}
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp115_ = _data80_->item;
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_data ((GtkMenuItem*) _tmp115_, "activate", (GCallback) ___lambda143__gtk_menu_item_activate, block80_data_ref (_data80_), (GClosureNotify) block80_data_unref, 0);
#line 882 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp116_ = _data80_->item;
#line 882 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp116_);
#line 883 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp117_ = menu;
#line 883 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp118_ = _data80_->item;
#line 883 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp117_, (GtkWidget*) ((GtkMenuItem*) _tmp118_));
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp119_ = menu;
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp120_ = _data80_->actions;
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp121_ = _g_object_ref0 (_tmp120_);
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_set_data_full ((GObject*) _tmp119_, "gitg-ext-actions", _tmp121_, g_object_unref);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = menu;
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (sep);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (exts);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (merge);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (fetch);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (af);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	block80_data_unref (_data80_);
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_ = NULL;
#line 887 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5324 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_on_refs_list_populate_menu (GitgHistoryActivity* self, GdkEventButton* event) {
	GtkMenu* result = NULL;
	GdkEventButton* _tmp0_ = NULL;
	GeeList* references = NULL;
	GitgHistoryPaned* _tmp12_ = NULL;
	GitgHistoryRefsList* _tmp13_ = NULL;
	GitgHistoryRefsList* _tmp14_ = NULL;
	GeeList* _tmp15_ = NULL;
	GeeList* _tmp16_ = NULL;
	gboolean _tmp17_ = FALSE;
	GeeList* _tmp18_ = NULL;
	gboolean _tmp19_ = FALSE;
	gboolean _tmp20_ = FALSE;
	GeeList* _tmp27_ = NULL;
	gpointer _tmp28_ = NULL;
	GitgRef* _tmp29_ = NULL;
	GtkMenu* _tmp30_ = NULL;
	GtkMenu* _tmp31_ = NULL;
#line 890 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 892 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 892 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != NULL) {
#line 5352 "gitg-history.c"
		GtkListBoxRow* row = NULL;
		GitgHistoryPaned* _tmp1_ = NULL;
		GitgHistoryRefsList* _tmp2_ = NULL;
		GitgHistoryRefsList* _tmp3_ = NULL;
		GdkEventButton* _tmp4_ = NULL;
		gdouble _tmp5_ = 0.0;
		GtkListBoxRow* _tmp6_ = NULL;
		GtkListBoxRow* _tmp7_ = NULL;
		GitgHistoryPaned* _tmp8_ = NULL;
		GitgHistoryRefsList* _tmp9_ = NULL;
		GitgHistoryRefsList* _tmp10_ = NULL;
		GtkListBoxRow* _tmp11_ = NULL;
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_main;
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_history_paned_get_refs_list (_tmp1_);
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = _tmp2_;
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = event;
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = _tmp4_->y;
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = gtk_list_box_get_row_at_y ((GtkListBox*) _tmp3_, (gint) _tmp5_);
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _g_object_ref0 (_tmp6_);
#line 894 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		row = _tmp7_;
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = self->priv->d_main;
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = gitg_history_paned_get_refs_list (_tmp8_);
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = _tmp9_;
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = row;
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_list_box_select_row ((GtkListBox*) _tmp10_, _tmp11_);
#line 892 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (row);
#line 5393 "gitg-history.c"
	}
#line 898 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_main;
#line 898 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_history_paned_get_refs_list (_tmp12_);
#line 898 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 898 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_refs_list_get_selection (_tmp14_);
#line 898 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 898 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	references = _tmp16_;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = references;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gee_collection_get_is_empty ((GeeCollection*) _tmp18_);
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp20_) {
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = TRUE;
#line 5417 "gitg-history.c"
	} else {
		GeeList* _tmp21_ = NULL;
		gpointer _tmp22_ = NULL;
		GitgRef* _tmp23_ = NULL;
		GeeList* _tmp24_ = NULL;
		gpointer _tmp25_ = NULL;
		GitgRef* _tmp26_ = NULL;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = references;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = gee_list_first (_tmp21_);
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = (GitgRef*) _tmp22_;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = references;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp25_ = gee_list_last (_tmp24_);
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp26_ = (GitgRef*) _tmp25_;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = _tmp23_ != _tmp26_;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp26_);
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp23_);
#line 5443 "gitg-history.c"
	}
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp17_) {
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (references);
#line 902 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 5453 "gitg-history.c"
	}
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = references;
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = gee_list_first (_tmp27_);
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = (GitgRef*) _tmp28_;
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = gitg_history_activity_popup_menu_for_ref (self, _tmp29_);
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = _tmp30_;
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp29_);
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp31_;
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (references);
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5473 "gitg-history.c"
}


static GgitOId* gitg_history_activity_id_for_ref (GitgHistoryActivity* self, GgitRef* r) {
	GgitOId* result = NULL;
	GgitOId* id = NULL;
	GError * _inner_error_ = NULL;
#line 908 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 908 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (r != NULL, NULL);
#line 910 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	id = NULL;
#line 5487 "gitg-history.c"
	{
		GgitRef* resolved = NULL;
		GgitRef* _tmp0_ = NULL;
		GgitRef* _tmp1_ = NULL;
		GgitRef* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = r;
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = ggit_ref_resolve (_tmp0_, &_inner_error_);
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		resolved = _tmp1_;
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5502 "gitg-history.c"
			goto __catch129_g_error;
		}
#line 916 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = resolved;
#line 916 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = ggit_ref_is_tag (_tmp2_);
#line 916 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp3_) {
#line 5511 "gitg-history.c"
			GgitTag* t = NULL;
			GitgExtApplication* _tmp4_ = NULL;
			GitgExtApplication* _tmp5_ = NULL;
			GitgExtApplication* _tmp6_ = NULL;
			GitgRepository* _tmp7_ = NULL;
			GitgRepository* _tmp8_ = NULL;
			GitgRepository* _tmp9_ = NULL;
			GgitRef* _tmp10_ = NULL;
			GgitOId* _tmp11_ = NULL;
			GgitOId* _tmp12_ = NULL;
			gpointer _tmp13_ = NULL;
			GgitTag* _tmp14_ = NULL;
			GgitTag* _tmp15_ = NULL;
			GgitOId* _tmp16_ = NULL;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp4_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp5_ = _tmp4_;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp6_ = _tmp5_;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp7_ = gitg_ext_application_get_repository (_tmp6_);
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = _tmp7_;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp9_ = _tmp8_;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp10_ = resolved;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp11_ = ggit_ref_get_target (_tmp10_);
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp12_ = _tmp11_;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp13_ = gitg_repository_lookup (_tmp9_, ggit_tag_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp12_, &_inner_error_);
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp14_ = (GgitTag*) _tmp13_;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (_tmp12_);
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp9_);
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp6_);
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			t = _tmp14_;
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 918 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (resolved);
#line 5560 "gitg-history.c"
				goto __catch129_g_error;
			}
#line 920 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp15_ = t;
#line 920 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp16_ = ggit_tag_get_target_id (_tmp15_);
#line 920 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 920 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			id = _tmp16_;
#line 916 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (t);
#line 5573 "gitg-history.c"
		} else {
			GgitRef* _tmp17_ = NULL;
			GgitOId* _tmp18_ = NULL;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp17_ = resolved;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp18_ = ggit_ref_get_target (_tmp17_);
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			id = _tmp18_;
#line 5585 "gitg-history.c"
		}
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (resolved);
#line 5589 "gitg-history.c"
	}
	goto __finally129;
	__catch129_g_error:
	{
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_inner_error_ = NULL;
#line 5598 "gitg-history.c"
	}
	__finally129:
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (id);
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return NULL;
#line 5611 "gitg-history.c"
	}
#line 929 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = id;
#line 929 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5617 "gitg-history.c"
}


static GgitOId* _vala_GgitOId_copy (GgitOId* self) {
#line 936 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return g_boxed_copy (ggit_oid_get_type (), self);
#line 5624 "gitg-history.c"
}


static gpointer __vala_GgitOId_copy0 (gpointer self) {
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return self ? _vala_GgitOId_copy (self) : NULL;
#line 5631 "gitg-history.c"
}


static void _vala_array_add26 (GgitOId*** array, int* length, int* size, GgitOId* value) {
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (GgitOId*, *array, (*size) + 1);
#line 5642 "gitg-history.c"
	}
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 5648 "gitg-history.c"
}


static void _vala_array_add27 (GgitOId*** array, int* length, int* size, GgitOId* value) {
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (GgitOId*, *array, (*size) + 1);
#line 5659 "gitg-history.c"
	}
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 5665 "gitg-history.c"
}


static void _vala_array_add28 (GgitOId*** array, int* length, int* size, GgitOId* value) {
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (GgitOId*, *array, (*size) + 1);
#line 5676 "gitg-history.c"
	}
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 5682 "gitg-history.c"
}


static void gitg_history_activity_update_walker (GitgHistoryActivity* self) {
	GeeHashSet* _tmp0_ = NULL;
	GeeHashSet* include = NULL;
	GeeHashSet* _tmp1_ = NULL;
	gboolean isall = FALSE;
	GitgHistoryPaned* _tmp2_ = NULL;
	GitgHistoryRefsList* _tmp3_ = NULL;
	GitgHistoryRefsList* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
	gboolean isheader = FALSE;
	GitgHistoryPaned* _tmp7_ = NULL;
	GitgHistoryRefsList* _tmp8_ = NULL;
	GitgHistoryRefsList* _tmp9_ = NULL;
	gboolean _tmp10_ = FALSE;
	gboolean _tmp11_ = FALSE;
	GeeHashSet* perm_uniq = NULL;
	GeeHashSet* _tmp12_ = NULL;
	GgitOId** permanent = NULL;
	GgitOId** _tmp13_ = NULL;
	gint permanent_length1 = 0;
	gint _permanent_size_ = 0;
	GitgExtApplication* _tmp14_ = NULL;
	GitgExtApplication* _tmp15_ = NULL;
	GitgExtApplication* _tmp16_ = NULL;
	GitgRepository* _tmp17_ = NULL;
	GitgRepository* _tmp18_ = NULL;
	GitgRepository* _tmp19_ = NULL;
	gboolean _tmp20_ = FALSE;
	gboolean show_upstream_with_branch = FALSE;
	GSettings* _tmp62_ = NULL;
	gboolean _tmp63_ = FALSE;
	GitgCommitModel* _tmp107_ = NULL;
	GgitOId** _tmp108_ = NULL;
	gint _tmp108__length1 = 0;
	GitgCommitModel* _tmp109_ = NULL;
	GeeHashSet* _tmp110_ = NULL;
	gint _tmp111_ = 0;
	gpointer* _tmp112_ = NULL;
	GgitOId** _tmp113_ = NULL;
	gint _tmp113__length1 = 0;
	GitgCommitModel* _tmp114_ = NULL;
	GError * _inner_error_ = NULL;
#line 932 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 934 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_selected;
#line 934 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp0_);
#line 936 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 936 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	include = _tmp1_;
#line 939 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_main;
#line 939 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_history_paned_get_refs_list (_tmp2_);
#line 939 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 939 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_history_refs_list_get_is_all (_tmp4_);
#line 939 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 939 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	isall = _tmp6_;
#line 940 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = self->priv->d_main;
#line 940 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gitg_history_paned_get_refs_list (_tmp7_);
#line 940 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _tmp8_;
#line 940 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_history_refs_list_get_is_header (_tmp9_);
#line 940 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = _tmp10_;
#line 940 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	isheader = _tmp11_;
#line 942 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 942 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	perm_uniq = _tmp12_;
#line 945 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = g_new0 (GgitOId*, 0 + 1);
#line 945 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	permanent = _tmp13_;
#line 945 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	permanent_length1 = 0;
#line 945 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_permanent_size_ = permanent_length1;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gitg_ext_application_get_repository (_tmp16_);
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _tmp17_;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_ != NULL;
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp19_);
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp16_);
#line 947 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp20_) {
#line 5795 "gitg-history.c"
		gchar** _tmp21_ = NULL;
		gint _tmp21__length1 = 0;
		GSettings* _tmp42_ = NULL;
		gboolean _tmp43_ = FALSE;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = self->priv->d_mainline;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21__length1 = self->priv->d_mainline_length1;
#line 5804 "gitg-history.c"
		{
			gchar** ml_collection = NULL;
			gint ml_collection_length1 = 0;
			gint _ml_collection_size_ = 0;
			gint ml_it = 0;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ml_collection = _tmp21_;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ml_collection_length1 = _tmp21__length1;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			for (ml_it = 0; ml_it < _tmp21__length1; ml_it = ml_it + 1) {
#line 5816 "gitg-history.c"
				gchar* _tmp22_ = NULL;
				gchar* ml = NULL;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp22_ = g_strdup (ml_collection[ml_it]);
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				ml = _tmp22_;
#line 5823 "gitg-history.c"
				{
					GgitOId* id = NULL;
					gboolean _tmp34_ = FALSE;
					GgitOId* _tmp35_ = NULL;
					{
						GitgRef* _tmp23_ = NULL;
						GitgExtApplication* _tmp24_ = NULL;
						GitgExtApplication* _tmp25_ = NULL;
						GitgExtApplication* _tmp26_ = NULL;
						GitgRepository* _tmp27_ = NULL;
						GitgRepository* _tmp28_ = NULL;
						GitgRepository* _tmp29_ = NULL;
						const gchar* _tmp30_ = NULL;
						GitgRef* _tmp31_ = NULL;
						GitgRef* _tmp32_ = NULL;
						GgitOId* _tmp33_ = NULL;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp24_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp25_ = _tmp24_;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp26_ = _tmp25_;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp27_ = gitg_ext_application_get_repository (_tmp26_);
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp28_ = _tmp27_;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp29_ = _tmp28_;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp30_ = ml;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp31_ = gitg_repository_lookup_reference (_tmp29_, _tmp30_, &_inner_error_);
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp32_ = _tmp31_;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp29_);
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp26_);
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp23_ = _tmp32_;
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5866 "gitg-history.c"
							goto __catch130_g_error;
						}
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp33_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp23_);
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 955 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						id = _tmp33_;
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp23_);
#line 5877 "gitg-history.c"
					}
					goto __finally130;
					__catch130_g_error:
					{
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_inner_error_ = NULL;
#line 956 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 956 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_free0 (ml);
#line 956 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						continue;
#line 5892 "gitg-history.c"
					}
					__finally130:
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_free0 (ml);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (perm_uniq);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (include);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						return;
#line 5913 "gitg-history.c"
					}
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp35_ = id;
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp35_ != NULL) {
#line 5919 "gitg-history.c"
						GeeHashSet* _tmp36_ = NULL;
						GgitOId* _tmp37_ = NULL;
						gboolean _tmp38_ = FALSE;
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp36_ = perm_uniq;
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp37_ = id;
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp38_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp36_, _tmp37_);
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp34_ = _tmp38_;
#line 5931 "gitg-history.c"
					} else {
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp34_ = FALSE;
#line 5935 "gitg-history.c"
					}
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp34_) {
#line 5939 "gitg-history.c"
						GgitOId** _tmp39_ = NULL;
						gint _tmp39__length1 = 0;
						GgitOId* _tmp40_ = NULL;
						GgitOId* _tmp41_ = NULL;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp39_ = permanent;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp39__length1 = permanent_length1;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp40_ = id;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp41_ = __vala_GgitOId_copy0 (_tmp40_);
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_vala_array_add26 (&permanent, &permanent_length1, &_permanent_size_, _tmp41_);
#line 5954 "gitg-history.c"
					}
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					__vala_GgitOId_free0 (id);
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_free0 (ml);
#line 5960 "gitg-history.c"
				}
			}
		}
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp42_ = self->priv->d_settings;
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp43_ = g_settings_get_boolean (_tmp42_, "mainline-head");
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp43_) {
#line 5970 "gitg-history.c"
			{
				GitgRef* _tmp44_ = NULL;
				GitgExtApplication* _tmp45_ = NULL;
				GitgExtApplication* _tmp46_ = NULL;
				GitgExtApplication* _tmp47_ = NULL;
				GitgRepository* _tmp48_ = NULL;
				GitgRepository* _tmp49_ = NULL;
				GitgRepository* _tmp50_ = NULL;
				GitgRef* _tmp51_ = NULL;
				GitgRef* _tmp52_ = NULL;
				GgitOId* head = NULL;
				GgitOId* _tmp53_ = NULL;
				gboolean _tmp54_ = FALSE;
				GgitOId* _tmp55_ = NULL;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp45_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp46_ = _tmp45_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp47_ = _tmp46_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp48_ = gitg_ext_application_get_repository (_tmp47_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp49_ = _tmp48_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp50_ = _tmp49_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp51_ = gitg_repository_get_head (_tmp50_, &_inner_error_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp52_ = _tmp51_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp50_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp47_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp44_ = _tmp52_;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6009 "gitg-history.c"
					goto __catch131_g_error;
				}
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp53_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp44_);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				head = _tmp53_;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp55_ = head;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp55_ != NULL) {
#line 6020 "gitg-history.c"
					GeeHashSet* _tmp56_ = NULL;
					GgitOId* _tmp57_ = NULL;
					gboolean _tmp58_ = FALSE;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp56_ = perm_uniq;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp57_ = head;
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp58_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp56_, _tmp57_);
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp54_ = _tmp58_;
#line 6032 "gitg-history.c"
				} else {
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp54_ = FALSE;
#line 6036 "gitg-history.c"
				}
#line 970 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp54_) {
#line 6040 "gitg-history.c"
					GgitOId** _tmp59_ = NULL;
					gint _tmp59__length1 = 0;
					GgitOId* _tmp60_ = NULL;
					GgitOId* _tmp61_ = NULL;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp59_ = permanent;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp59__length1 = permanent_length1;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp60_ = head;
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp61_ = __vala_GgitOId_copy0 (_tmp60_);
#line 972 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_vala_array_add27 (&permanent, &permanent_length1, &_permanent_size_, _tmp61_);
#line 6055 "gitg-history.c"
				}
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				__vala_GgitOId_free0 (head);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp44_);
#line 6061 "gitg-history.c"
			}
			goto __finally131;
			__catch131_g_error:
			{
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				g_clear_error (&_inner_error_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_inner_error_ = NULL;
#line 6070 "gitg-history.c"
			}
			__finally131:
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (perm_uniq);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (include);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				g_clear_error (&_inner_error_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				return;
#line 6087 "gitg-history.c"
			}
		}
	}
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp62_ = self->priv->d_settings;
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp63_ = g_settings_get_boolean (_tmp62_, "show-upstream-with-branch");
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	show_upstream_with_branch = _tmp63_;
#line 6097 "gitg-history.c"
	{
		GeeList* _r_list = NULL;
		GitgHistoryPaned* _tmp64_ = NULL;
		GitgHistoryRefsList* _tmp65_ = NULL;
		GitgHistoryRefsList* _tmp66_ = NULL;
		GeeList* _tmp67_ = NULL;
		GeeList* _tmp68_ = NULL;
		gint _r_size = 0;
		GeeList* _tmp69_ = NULL;
		gint _tmp70_ = 0;
		gint _tmp71_ = 0;
		gint _r_index = 0;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp64_ = self->priv->d_main;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp65_ = gitg_history_paned_get_refs_list (_tmp64_);
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp66_ = _tmp65_;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp67_ = gitg_history_refs_list_get_selection (_tmp66_);
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp68_ = _tmp67_;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_r_list = _tmp68_;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp69_ = _r_list;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp70_ = gee_collection_get_size ((GeeCollection*) _tmp69_);
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp71_ = _tmp70_;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_r_size = _tmp71_;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_r_index = -1;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 6134 "gitg-history.c"
			gint _tmp72_ = 0;
			gint _tmp73_ = 0;
			gint _tmp74_ = 0;
			GitgRef* r = NULL;
			GeeList* _tmp75_ = NULL;
			gint _tmp76_ = 0;
			gpointer _tmp77_ = NULL;
			GgitOId* id = NULL;
			GitgRef* _tmp78_ = NULL;
			GgitOId* _tmp79_ = NULL;
			GgitOId* _tmp80_ = NULL;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp72_ = _r_index;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_r_index = _tmp72_ + 1;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp73_ = _r_index;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp74_ = _r_size;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp73_ < _tmp74_)) {
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				break;
#line 6158 "gitg-history.c"
			}
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp75_ = _r_list;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp76_ = _r_index;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp77_ = gee_list_get (_tmp75_, _tmp76_);
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			r = (GitgRef*) _tmp77_;
#line 982 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp78_ = r;
#line 982 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp79_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp78_);
#line 982 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			id = _tmp79_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp80_ = id;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (_tmp80_ != NULL) {
#line 6178 "gitg-history.c"
				GeeHashSet* _tmp81_ = NULL;
				GgitOId* _tmp82_ = NULL;
				gboolean _tmp83_ = FALSE;
				gboolean _tmp94_ = FALSE;
				gboolean _tmp95_ = FALSE;
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp81_ = include;
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp82_ = id;
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp81_, _tmp82_);
#line 988 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp83_ = isall;
#line 988 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (!_tmp83_) {
#line 6194 "gitg-history.c"
					GeeHashSet* _tmp84_ = NULL;
					GgitOId* _tmp85_ = NULL;
					gboolean _tmp86_ = FALSE;
					gboolean _tmp87_ = FALSE;
#line 990 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp84_ = self->priv->d_selected;
#line 990 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp85_ = id;
#line 990 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					gee_abstract_collection_add ((GeeAbstractCollection*) _tmp84_, _tmp85_);
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp87_ = isheader;
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (!_tmp87_) {
#line 6209 "gitg-history.c"
						GeeHashSet* _tmp88_ = NULL;
						GgitOId* _tmp89_ = NULL;
						gboolean _tmp90_ = FALSE;
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp88_ = perm_uniq;
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp89_ = id;
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp90_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp88_, _tmp89_);
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp86_ = _tmp90_;
#line 6221 "gitg-history.c"
					} else {
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp86_ = FALSE;
#line 6225 "gitg-history.c"
					}
#line 992 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp86_) {
#line 6229 "gitg-history.c"
						GgitOId** _tmp91_ = NULL;
						gint _tmp91__length1 = 0;
						GgitOId* _tmp92_ = NULL;
						GgitOId* _tmp93_ = NULL;
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp91_ = permanent;
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp91__length1 = permanent_length1;
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp92_ = id;
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp93_ = __vala_GgitOId_copy0 (_tmp92_);
#line 994 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_vala_array_add28 (&permanent, &permanent_length1, &_permanent_size_, _tmp93_);
#line 6244 "gitg-history.c"
					}
				}
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp95_ = show_upstream_with_branch;
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp95_) {
#line 6251 "gitg-history.c"
					GitgRef* _tmp96_ = NULL;
					gboolean _tmp97_ = FALSE;
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp96_ = r;
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp97_ = ggit_ref_is_branch ((GgitRef*) _tmp96_);
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp94_ = _tmp97_;
#line 6260 "gitg-history.c"
				} else {
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp94_ = FALSE;
#line 6264 "gitg-history.c"
				}
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp94_) {
#line 6268 "gitg-history.c"
					GitgBranch* branch = NULL;
					GitgRef* _tmp98_ = NULL;
					GitgBranch* _tmp99_ = NULL;
#line 1000 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp98_ = r;
#line 1000 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp99_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp98_, GITG_TYPE_BRANCH) ? ((GitgBranch*) _tmp98_) : NULL);
#line 1000 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					branch = _tmp99_;
#line 6278 "gitg-history.c"
					{
						GitgRef* _tmp100_ = NULL;
						GitgBranch* _tmp101_ = NULL;
						GitgRef* _tmp102_ = NULL;
						GgitOId* upid = NULL;
						GgitOId* _tmp103_ = NULL;
						GgitOId* _tmp104_ = NULL;
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp101_ = branch;
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp102_ = gitg_branch_get_upstream (_tmp101_, &_inner_error_);
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp100_ = _tmp102_;
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6294 "gitg-history.c"
							goto __catch132_g_error;
						}
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp103_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp100_);
#line 1004 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						upid = _tmp103_;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp104_ = upid;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						if (_tmp104_ != NULL) {
#line 6305 "gitg-history.c"
							GeeHashSet* _tmp105_ = NULL;
							GgitOId* _tmp106_ = NULL;
#line 1008 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
							_tmp105_ = include;
#line 1008 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
							_tmp106_ = upid;
#line 1008 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
							gee_abstract_collection_add ((GeeAbstractCollection*) _tmp105_, _tmp106_);
#line 6314 "gitg-history.c"
						}
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (upid);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp100_);
#line 6320 "gitg-history.c"
					}
					goto __finally132;
					__catch132_g_error:
					{
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_inner_error_ = NULL;
#line 6329 "gitg-history.c"
					}
					__finally132:
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (branch);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (r);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_r_list);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (perm_uniq);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (include);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.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 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						return;
#line 6354 "gitg-history.c"
					}
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (branch);
#line 6358 "gitg-history.c"
				}
			}
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (r);
#line 6365 "gitg-history.c"
		}
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_r_list);
#line 6369 "gitg-history.c"
	}
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp107_ = self->priv->d_commit_list_model;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108_ = permanent;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108__length1 = permanent_length1;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_permanent_lanes (_tmp107_, _tmp108_, _tmp108__length1);
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp109_ = self->priv->d_commit_list_model;
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp110_ = include;
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp112_ = gee_collection_to_array ((GeeCollection*) _tmp110_, &_tmp111_);
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp113_ = _tmp112_;
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp113__length1 = _tmp111_;
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_include (_tmp109_, _tmp113_, _tmp111_);
#line 1016 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp113_ = (_vala_array_free (_tmp113_, _tmp113__length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 1017 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp114_ = self->priv->d_commit_list_model;
#line 1017 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_reload (_tmp114_);
#line 932 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 932 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (perm_uniq);
#line 932 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (include);
#line 6403 "gitg-history.c"
}


static void gitg_history_activity_add_commit_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtCommitAction* action) {
	gboolean _tmp0_ = FALSE;
	GitgExtCommitAction* _tmp1_ = NULL;
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 1025 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (actions != NULL);
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ != NULL) {
#line 6418 "gitg-history.c"
		GitgExtCommitAction* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp2_);
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _tmp3_;
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = _tmp4_;
#line 6430 "gitg-history.c"
	} else {
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 6434 "gitg-history.c"
	}
#line 1028 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_) {
#line 6438 "gitg-history.c"
		GeeLinkedList* _tmp5_ = NULL;
		GitgExtCommitAction* _tmp6_ = NULL;
#line 1030 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = actions;
#line 1030 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = action;
#line 1030 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp6_);
#line 6447 "gitg-history.c"
	}
}


static gchar* gitg_history_activity_normalize (GitgHistoryActivity* self, const gchar* s) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (s != NULL, NULL);
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = s;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_utf8_normalize (_tmp0_, (gssize) -1, G_NORMALIZE_ALL);
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = g_utf8_casefold (_tmp2_, (gssize) -1);
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp2_);
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp4_;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6479 "gitg-history.c"
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, FALSE);
#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = needle;
#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _tmp1_ != NULL;
#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 6499 "gitg-history.c"
}


static gboolean gitg_history_activity_search_filter_func (GitgHistoryActivity* self, GtkTreeModel* model, gint column, const gchar* key, GtkTreeIter* iter) {
	gboolean result = FALSE;
	GitgCommit* c = NULL;
	GitgCommitModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GitgCommit* _tmp2_ = NULL;
	GitgCommit* _tmp3_ = NULL;
	GgitOId* _tmp4_ = NULL;
	GgitOId* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	gchar* nkey = NULL;
	const gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* subject = NULL;
	GitgCommit* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gboolean _tmp16_ = FALSE;
	gchar* message = NULL;
	GitgCommit* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	gboolean _tmp22_ = FALSE;
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (model != NULL, FALSE);
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (key != NULL, FALSE);
#line 1039 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 1041 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_commit_list_model;
#line 1041 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = *iter;
#line 1041 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_commit_model_commit_from_iter (_tmp0_, &_tmp1_);
#line 1041 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	c = _tmp2_;
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = c;
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = ggit_object_get_id ((GgitObject*) _tmp3_);
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = key;
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = ggit_oid_has_prefix (_tmp5_, _tmp6_);
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (_tmp5_);
#line 1043 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_) {
#line 1045 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 1045 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 1045 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 6570 "gitg-history.c"
	}
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = key;
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_history_activity_normalize (self, _tmp9_);
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	nkey = _tmp10_;
#line 1049 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = c;
#line 1049 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = ggit_commit_get_subject ((GgitCommit*) _tmp11_);
#line 1049 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_history_activity_normalize (self, _tmp12_);
#line 1049 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	subject = _tmp13_;
#line 1051 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = subject;
#line 1051 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = nkey;
#line 1051 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = string_contains (_tmp14_, _tmp15_);
#line 1051 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp16_) {
#line 1053 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 1053 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (subject);
#line 1053 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (nkey);
#line 1053 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 1053 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 6604 "gitg-history.c"
	}
#line 1056 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = c;
#line 1056 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = ggit_commit_get_message ((GgitCommit*) _tmp17_);
#line 1056 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_history_activity_normalize (self, _tmp18_);
#line 1056 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	message = _tmp19_;
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = message;
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = nkey;
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = string_contains (_tmp20_, _tmp21_);
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp22_) {
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (message);
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (subject);
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (nkey);
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 6634 "gitg-history.c"
	}
#line 1063 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 1063 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (message);
#line 1063 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (subject);
#line 1063 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (nkey);
#line 1063 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (c);
#line 1063 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6648 "gitg-history.c"
}


static GitgExtApplication* gitg_history_activity_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgHistoryActivity* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_application;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6667 "gitg-history.c"
}


static void gitg_history_activity_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgHistoryActivity* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->_application);
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_application = _tmp1_;
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "application");
#line 6687 "gitg-history.c"
}


static gchar* gitg_history_activity_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgHistoryActivity* self;
	gchar* _tmp0_ = NULL;
#line 70 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 70 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/Activities/History");
#line 70 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 70 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6703 "gitg-history.c"
}


GitgRepository* gitg_history_activity_get_repository (GitgHistoryActivity* self) {
	GitgRepository* result;
	GitgRepository* _tmp0_ = NULL;
#line 77 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 79 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_repository;
#line 79 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 79 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6718 "gitg-history.c"
}


void gitg_history_activity_set_repository (GitgHistoryActivity* self, GitgRepository* value) {
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
#line 82 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 84 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_repository;
#line 84 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = value;
#line 84 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != _tmp1_) {
#line 6733 "gitg-history.c"
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
#line 86 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = value;
#line 86 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = _g_object_ref0 (_tmp2_);
#line 86 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self->priv->d_repository);
#line 86 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_repository = _tmp3_;
#line 87 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_reload (self);
#line 6746 "gitg-history.c"
	}
#line 82 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "repository");
#line 6750 "gitg-history.c"
}


static gboolean gitg_history_activity_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgHistoryActivity* self;
#line 337 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 337 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 337 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6763 "gitg-history.c"
}


static gchar* gitg_history_activity_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgHistoryActivity* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 342 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 342 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _ ("History");
#line 342 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 342 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 342 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6782 "gitg-history.c"
}


static gchar* gitg_history_activity_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgHistoryActivity* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 347 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 347 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _ ("Examine the history of the repository");
#line 347 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 347 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 347 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6801 "gitg-history.c"
}


static gchar* gitg_history_activity_real_get_icon (GitgExtUIElement* base) {
	gchar* result;
	GitgHistoryActivity* self;
	gchar* _tmp0_ = NULL;
#line 352 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 352 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = g_strdup ("view-list-symbolic");
#line 352 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 352 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6817 "gitg-history.c"
}


static GtkWidget* gitg_history_activity_real_get_widget (GitgExtUIElement* base) {
	GtkWidget* result;
	GitgHistoryActivity* self;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
#line 357 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 359 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 359 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 361 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_build_ui (self);
#line 6835 "gitg-history.c"
	}
#line 364 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 364 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _g_object_ref0 ((GtkWidget*) _tmp1_);
#line 364 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp2_;
#line 364 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6845 "gitg-history.c"
}


static gboolean gitg_history_activity_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgHistoryActivity* self;
#line 375 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 375 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 375 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6858 "gitg-history.c"
}


GitgHistoryRefsList* gitg_history_activity_get_refs_list (GitgHistoryActivity* self) {
	GitgHistoryRefsList* result;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgHistoryRefsList* _tmp1_ = NULL;
	GitgHistoryRefsList* _tmp2_ = NULL;
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_refs_list (_tmp0_);
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp2_;
#line 472 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6879 "gitg-history.c"
}


static gboolean gitg_history_activity_real_get_search_available (GitgExtSearchable* base) {
	gboolean result;
	GitgHistoryActivity* self;
#line 1022 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1022 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 1022 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6892 "gitg-history.c"
}


static void gitg_history_activity_real_set_search_entry (GitgExtSearchable* base, GtkEntry* value) {
	GitgHistoryActivity* self;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GtkEntry* _tmp3_ = NULL;
	GitgHistoryPaned* _tmp4_ = NULL;
	GitgCommitListView* _tmp5_ = NULL;
	GitgCommitListView* _tmp6_ = NULL;
	GtkEntry* _tmp7_ = NULL;
	GtkEntry* _tmp8_ = NULL;
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = value;
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_search_entry ((GtkTreeView*) _tmp2_, _tmp3_);
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = self->priv->d_main;
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_history_paned_get_commit_list_view (_tmp4_);
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = value;
#line 1071 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_enable_search ((GtkTreeView*) _tmp6_, _tmp7_ != NULL);
#line 1073 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = value;
#line 1073 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_ != NULL) {
#line 6933 "gitg-history.c"
		GitgHistoryPaned* _tmp9_ = NULL;
		GitgCommitListView* _tmp10_ = NULL;
		GitgCommitListView* _tmp11_ = NULL;
#line 1075 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = self->priv->d_main;
#line 1075 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = gitg_history_paned_get_commit_list_view (_tmp9_);
#line 1075 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = _tmp10_;
#line 1075 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_set_search_column ((GtkTreeView*) _tmp11_, 0);
#line 6945 "gitg-history.c"
	} else {
		GitgHistoryPaned* _tmp12_ = NULL;
		GitgCommitListView* _tmp13_ = NULL;
		GitgCommitListView* _tmp14_ = NULL;
#line 1079 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = self->priv->d_main;
#line 1079 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = gitg_history_paned_get_commit_list_view (_tmp12_);
#line 1079 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _tmp13_;
#line 1079 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_set_search_column ((GtkTreeView*) _tmp14_, -1);
#line 6958 "gitg-history.c"
	}
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-entry");
#line 6962 "gitg-history.c"
}


static gchar* gitg_history_activity_real_get_search_text (GitgExtSearchable* base) {
	gchar* result;
	GitgHistoryActivity* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_search_text;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6981 "gitg-history.c"
}


static void gitg_history_activity_real_set_search_text (GitgExtSearchable* base, const gchar* value) {
	GitgHistoryActivity* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (self->priv->_search_text);
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_text = _tmp1_;
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-text");
#line 7001 "gitg-history.c"
}


static gboolean gitg_history_activity_real_get_search_visible (GitgExtSearchable* base) {
	gboolean result;
	GitgHistoryActivity* self;
	gboolean _tmp0_ = FALSE;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_search_visible;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 7017 "gitg-history.c"
}


static void gitg_history_activity_real_set_search_visible (GitgExtSearchable* base, gboolean value) {
	GitgHistoryActivity* self;
	gboolean _tmp0_ = FALSE;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_visible = _tmp0_;
#line 1085 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-visible");
#line 7032 "gitg-history.c"
}


static void _gitg_history_activity___lambda159_ (GitgHistoryActivity* self, GSettings* s, const gchar* k) {
#line 131 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (s != NULL);
#line 131 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (k != NULL);
#line 132 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_sort_mode (self);
#line 7043 "gitg-history.c"
}


static void __gitg_history_activity___lambda159__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 131 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gitg_history_activity___lambda159_ ((GitgHistoryActivity*) self, _sender, key);
#line 7050 "gitg-history.c"
}


static void _gitg_history_activity___lambda160_ (GitgHistoryActivity* self, GSettings* s, const gchar* k) {
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (s != NULL);
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (k != NULL);
#line 136 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 7061 "gitg-history.c"
}


static void __gitg_history_activity___lambda160__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gitg_history_activity___lambda160_ ((GitgHistoryActivity*) self, _sender, key);
#line 7068 "gitg-history.c"
}


static void _gitg_history_activity___lambda161_ (GitgHistoryActivity* self, GSettings* s, const gchar* k) {
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (s != NULL);
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (k != NULL);
#line 140 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 7079 "gitg-history.c"
}


static void __gitg_history_activity___lambda161__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gitg_history_activity___lambda161_ ((GitgHistoryActivity*) self, _sender, key);
#line 7086 "gitg-history.c"
}


static void _gitg_history_activity_on_commit_model_started_gitg_commit_model_started (GitgCommitModel* _sender, gpointer self) {
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_commit_model_started ((GitgHistoryActivity*) self, _sender);
#line 7093 "gitg-history.c"
}


static void _gitg_history_activity_on_commit_model_finished_gitg_commit_model_finished (GitgCommitModel* _sender, gpointer self) {
#line 148 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_commit_model_finished ((GitgHistoryActivity*) self, _sender);
#line 7100 "gitg-history.c"
}


static void _gitg_history_activity_repository_changed_externally_gitg_ext_application_repository_changed_externally (GitgExtApplication* _sender, GitgExtExternalChangeHint hint, gpointer self) {
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_repository_changed_externally ((GitgHistoryActivity*) self, hint);
#line 7107 "gitg-history.c"
}


static void _gitg_history_activity_repository_commits_changed_gitg_ext_application_repository_commits_changed (GitgExtApplication* _sender, gpointer self) {
#line 160 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_repository_commits_changed ((GitgHistoryActivity*) self);
#line 7114 "gitg-history.c"
}


static GObject * gitg_history_activity_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgHistoryActivity * self;
	GSettings* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
	GSettings* _tmp2_ = NULL;
	GSettings* _tmp3_ = NULL;
	GeeHashSet* _tmp4_ = NULL;
	GitgExtApplication* _tmp5_ = NULL;
	GitgExtApplication* _tmp6_ = NULL;
	GitgExtApplication* _tmp7_ = NULL;
	GitgRepository* _tmp8_ = NULL;
	GitgRepository* _tmp9_ = NULL;
	GitgRepository* _tmp10_ = NULL;
	GitgCommitModel* _tmp11_ = NULL;
	GitgCommitModel* _tmp12_ = NULL;
	GitgCommitModel* _tmp13_ = NULL;
	GitgExtApplication* _tmp14_ = NULL;
	GitgExtApplication* _tmp15_ = NULL;
	GitgExtApplication* _tmp16_ = NULL;
	GitgRepository* _tmp17_ = NULL;
	GitgRepository* _tmp18_ = NULL;
	GitgExtApplication* _tmp19_ = NULL;
	GitgExtApplication* _tmp20_ = NULL;
	GitgExtApplication* _tmp21_ = NULL;
	GitgExtApplication* _tmp22_ = NULL;
	GitgExtApplication* _tmp23_ = NULL;
	GitgExtApplication* _tmp24_ = NULL;
	gulong _tmp25_ = 0UL;
	GitgExtApplication* _tmp26_ = NULL;
	GitgExtApplication* _tmp27_ = NULL;
	GitgExtApplication* _tmp28_ = NULL;
	gulong _tmp29_ = 0UL;
#line 127 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	parent_class = G_OBJECT_CLASS (gitg_history_activity_parent_class);
#line 127 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 127 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity);
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = g_settings_new ("org.gnome.gitg.preferences.history");
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_settings);
#line 129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_settings = _tmp0_;
#line 131 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_settings;
#line 131 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp1_, "changed::topological-order", (GCallback) __gitg_history_activity___lambda159__g_settings_changed, self, 0);
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_settings;
#line 135 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp2_, "changed::mainline-head", (GCallback) __gitg_history_activity___lambda160__g_settings_changed, self, 0);
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = self->priv->d_settings;
#line 139 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp3_, "changed::show-upstream-with-branch", (GCallback) __gitg_history_activity___lambda161__g_settings_changed, self, 0);
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_selected);
#line 143 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_selected = _tmp4_;
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _tmp6_;
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gitg_ext_application_get_repository (_tmp7_);
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _tmp8_;
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = _tmp9_;
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = gitg_commit_model_new (_tmp10_);
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_model);
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_commit_list_model = _tmp11_;
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp10_);
#line 146 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp7_);
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_commit_list_model;
#line 147 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp12_, "started", (GCallback) _gitg_history_activity_on_commit_model_started_gitg_commit_model_started, self, 0);
#line 148 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = self->priv->d_commit_list_model;
#line 148 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp13_, "finished", (GCallback) _gitg_history_activity_on_commit_model_finished_gitg_commit_model_finished, self, 0);
#line 150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_sort_mode (self);
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gitg_ext_application_get_repository (_tmp16_);
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _tmp17_;
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_repository = _tmp18_;
#line 152 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp16_);
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 154 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp21_, "repository", (GObject*) self, "repository", 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 154 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp21_);
#line 157 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_reload_mainline (self);
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = _tmp23_;
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = g_signal_connect_object (_tmp24_, "repository-changed-externally", (GCallback) _gitg_history_activity_repository_changed_externally_gitg_ext_application_repository_changed_externally, self, 0);
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_externally_changed_id = _tmp25_;
#line 159 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp24_);
#line 160 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 160 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = _tmp26_;
#line 160 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = _tmp27_;
#line 160 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = g_signal_connect_object (_tmp28_, "repository-commits-changed", (GCallback) _gitg_history_activity_repository_commits_changed_gitg_ext_application_repository_commits_changed, self, 0);
#line 160 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_commits_changed_id = _tmp29_;
#line 160 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp28_);
#line 127 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return obj;
#line 7268 "gitg-history.c"
}


static void gitg_history_activity_class_init (GitgHistoryActivityClass * klass) {
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_parent_class = g_type_class_peek_parent (klass);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryActivityPrivate));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	((GObjectClass *) klass)->dispose = gitg_history_activity_real_dispose;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_activity_get_property;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_activity_set_property;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_history_activity_constructor;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_activity_finalize;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_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 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_AVAILABLE, g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_ICON, g_param_spec_string ("icon", "icon", "icon", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_WIDGET, g_param_spec_object ("widget", "widget", "widget", gtk_widget_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_ENABLED, g_param_spec_boolean ("enabled", "enabled", "enabled", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_REFS_LIST, g_param_spec_object ("refs-list", "refs-list", "refs-list", GITG_HISTORY_TYPE_REFS_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_SEARCH_AVAILABLE, g_param_spec_boolean ("search-available", "search-available", "search-available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_SEARCH_ENTRY, g_param_spec_object ("search-entry", "search-entry", "search-entry", gtk_entry_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_SEARCH_TEXT, g_param_spec_string ("search-text", "search-text", "search-text", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_SEARCH_VISIBLE, g_param_spec_boolean ("search-visible", "search-visible", "search-visible", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 7315 "gitg-history.c"
}


static void gitg_history_activity_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->negotiate_order = (gint (*)(GitgExtUIElement*, GitgExtUIElement*)) gitg_history_activity_real_negotiate_order;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_application = gitg_history_activity_real_get_application;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->set_application = gitg_history_activity_real_set_application;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_id = gitg_history_activity_real_get_id;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_available = gitg_history_activity_real_get_available;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_display_name = gitg_history_activity_real_get_display_name;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_description = gitg_history_activity_real_get_description;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_icon = gitg_history_activity_real_get_icon;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_widget = gitg_history_activity_real_get_widget;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_enabled = gitg_history_activity_real_get_enabled;
#line 7342 "gitg-history.c"
}


static void gitg_history_activity_gitg_ext_activity_interface_init (GitgExtActivityIface * iface) {
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_gitg_ext_activity_parent_iface = g_type_interface_peek_parent (iface);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->is_default_for = (gboolean (*)(GitgExtActivity*, const gchar*)) gitg_history_activity_real_is_default_for;
#line 7351 "gitg-history.c"
}


static void gitg_history_activity_gitg_ext_searchable_interface_init (GitgExtSearchableIface * iface) {
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_gitg_ext_searchable_parent_iface = g_type_interface_peek_parent (iface);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_search_available = gitg_history_activity_real_get_search_available;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->set_search_entry = gitg_history_activity_real_set_search_entry;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_search_text = gitg_history_activity_real_get_search_text;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->set_search_text = gitg_history_activity_real_set_search_text;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->get_search_visible = gitg_history_activity_real_get_search_visible;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->set_search_visible = gitg_history_activity_real_set_search_visible;
#line 7370 "gitg-history.c"
}


static void gitg_history_activity_gitg_ext_history_interface_init (GitgExtHistoryIface * iface) {
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_gitg_ext_history_parent_iface = g_type_interface_peek_parent (iface);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->foreach_selected = (void (*)(GitgExtHistory*, GitgExtForeachCommitSelectionFunc, void*)) gitg_history_activity_real_foreach_selected;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iface->select = (void (*)(GitgExtHistory*, GitgCommit*)) gitg_history_activity_real_select;
#line 7381 "gitg-history.c"
}


static void gitg_history_activity_instance_init (GitgHistoryActivity * self) {
	gchar* _tmp0_ = NULL;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv = GITG_HISTORY_ACTIVITY_GET_PRIVATE (self);
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = g_strdup ("");
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_text = _tmp0_;
#line 7393 "gitg-history.c"
}


static void gitg_history_activity_finalize (GObject* obj) {
	GitgHistoryActivity * self;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity);
#line 37 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->_application);
#line 39 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_model);
#line 41 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_selected);
#line 42 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 45 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_settings);
#line 52 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gitg_when_mapped_unref0 (self->priv->d_reload_when_mapped);
#line 54 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_main);
#line 55 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_refs_list_popup);
#line 56 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_popup);
#line 58 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_mainline = (_vala_array_free (self->priv->d_mainline, self->priv->d_mainline_length1, (GDestroyNotify) g_free), NULL);
#line 61 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_panels);
#line 73 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 1084 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (self->priv->_search_text);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (gitg_history_activity_parent_class)->finalize (obj);
#line 7429 "gitg-history.c"
}


GType gitg_history_activity_get_type (void) {
	static volatile gsize gitg_history_activity_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_history_activity_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgHistoryActivityClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_history_activity_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgHistoryActivity), 0, (GInstanceInitFunc) gitg_history_activity_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_history_activity_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_activity_info = { (GInterfaceInitFunc) gitg_history_activity_gitg_ext_activity_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_searchable_info = { (GInterfaceInitFunc) gitg_history_activity_gitg_ext_searchable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_history_info = { (GInterfaceInitFunc) gitg_history_activity_gitg_ext_history_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_history_activity_type_id;
		gitg_history_activity_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgHistoryActivity", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_history_activity_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
		g_type_add_interface_static (gitg_history_activity_type_id, GITG_EXT_TYPE_ACTIVITY, &gitg_ext_activity_info);
		g_type_add_interface_static (gitg_history_activity_type_id, GITG_EXT_TYPE_SEARCHABLE, &gitg_ext_searchable_info);
		g_type_add_interface_static (gitg_history_activity_type_id, GITG_EXT_TYPE_HISTORY, &gitg_ext_history_info);
		g_once_init_leave (&gitg_history_activity_type_id__volatile, gitg_history_activity_type_id);
	}
	return gitg_history_activity_type_id__volatile;
}


static void _vala_gitg_history_activity_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgHistoryActivity * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	switch (property_id) {
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_APPLICATION:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_ID:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_REPOSITORY:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_set_object (value, gitg_history_activity_get_repository (self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_AVAILABLE:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_DISPLAY_NAME:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_DESCRIPTION:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_ICON:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_icon ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_WIDGET:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_widget ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_ENABLED:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_REFS_LIST:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_set_object (value, gitg_history_activity_get_refs_list (self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_AVAILABLE:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_searchable_get_search_available ((GitgExtSearchable*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_TEXT:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_searchable_get_search_text ((GitgExtSearchable*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_VISIBLE:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_searchable_get_search_visible ((GitgExtSearchable*) self));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 7536 "gitg-history.c"
		default:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 7542 "gitg-history.c"
	}
}


static void _vala_gitg_history_activity_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgHistoryActivity * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	switch (property_id) {
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_APPLICATION:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_REPOSITORY:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_set_repository (self, g_value_get_object (value));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_ENTRY:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_ext_searchable_set_search_entry ((GitgExtSearchable*) self, g_value_get_object (value));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_TEXT:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_ext_searchable_set_search_text ((GitgExtSearchable*) self, g_value_get_string (value));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_VISIBLE:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_ext_searchable_set_search_visible ((GitgExtSearchable*) self, g_value_get_boolean (value));
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 7582 "gitg-history.c"
		default:
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 32 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		break;
#line 7588 "gitg-history.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);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



