/* gitg-history.c generated by valac 0.34.7, 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 GdkRectangle* gitg_history_activity_on_commit_list_request_menu_position (GitgHistoryActivity* self);
static GdkRectangle* _gitg_history_activity_on_commit_list_request_menu_position_gitg_popup_menu_request_menu_position (GitgPopupMenu* _sender, 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 GtkMenu* gitg_history_activity_popup_menu_for_selection (GitgHistoryActivity* self);
static GdkRectangle* _gdk_rectangle_dup (GdkRectangle* self);
static void gitg_history_activity_add_ref_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtRefAction* action);
static GtkMenu* gitg_history_activity_populate_menu_for_commit (GitgHistoryActivity* self, GitgCommit* commit);
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 533 "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 548 "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 555 "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 564 "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 573 "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 581 "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 598 "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 616 "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 631 "gitg-history.c"
		}
#line 97 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 635 "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 643 "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 688 "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 695 "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 743 "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 786 "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 812 "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 818 "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 832 "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 838 "gitg-history.c"
	} else {
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = FALSE;
#line 842 "gitg-history.c"
	}
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_) {
#line 846 "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 852 "gitg-history.c"
	} else {
#line 165 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 856 "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 862 "gitg-history.c"
	}
#line 170 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->d_ignore_external = FALSE;
#line 866 "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 882 "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 890 "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 897 "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 909 "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 925 "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 944 "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 961 "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 967 "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 984 "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 990 "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 998 "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 1004 "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 1023 "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 1029 "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 1048 "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 1056 "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 1071 "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 1086 "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 1102 "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 1110 "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 1124 "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 1133 "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 ((GeeAbstractCollection*) _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 1195 "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 1216 "gitg-history.c"
	}
#line 256 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_) {
#line 1220 "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 1251 "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 1273 "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 ((GeeAbstractCollection*) _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 1286 "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 1297 "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 1312 "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 1325 "gitg-history.c"
			}
#line 273 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp34_ = _tmp37_;
#line 1329 "gitg-history.c"
		} else {
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp34_ = FALSE;
#line 1333 "gitg-history.c"
		}
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp30_ = _tmp34_;
#line 1337 "gitg-history.c"
	}
#line 272 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp30_) {
#line 1341 "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 1357 "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 1363 "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 1370 "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 1379 "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 1386 "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 1425 "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 1463 "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 1491 "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 1506 "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 1519 "gitg-history.c"
		}
#line 307 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp20_) {
#line 1523 "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 1538 "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 1553 "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 1567 "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 1578 "gitg-history.c"
	}
#line 322 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_scroll_into_view (self);
#line 1582 "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 1602 "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 1625 "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 1644 "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 1651 "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 1657 "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 1672 "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.34/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 1055 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		separator = "";
#line 1689 "gitg-history.c"
	}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 1699 "gitg-history.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 1709 "gitg-history.c"
	}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 1715 "gitg-history.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == -1) {
#line 1726 "gitg-history.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 1738 "gitg-history.c"
		} else {
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 1742 "gitg-history.c"
		}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 1746 "gitg-history.c"
	}
#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 1750 "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.34/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 1773 "gitg-history.c"
		{
			gboolean _tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			i = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1782 "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.34/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 1795 "gitg-history.c"
					gint _tmp10_ = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 1801 "gitg-history.c"
				}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != -1) {
#line 1811 "gitg-history.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 1823 "gitg-history.c"
				} else {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 1827 "gitg-history.c"
				}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 1833 "gitg-history.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == -1) {
#line 1844 "gitg-history.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 1859 "gitg-history.c"
					} else {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 1863 "gitg-history.c"
					}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 1867 "gitg-history.c"
				}
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					break;
#line 1873 "gitg-history.c"
				}
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 1885 "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.34/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 1906 "gitg-history.c"
				} else {
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 1910 "gitg-history.c"
				}
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 1916 "gitg-history.c"
			}
		}
#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 1923 "gitg-history.c"
			gchar* _tmp32_ = NULL;
#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			return result;
#line 1931 "gitg-history.c"
		}
#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 1969 "gitg-history.c"
		{
			gboolean _tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			i = 1;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1978 "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.34/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 1994 "gitg-history.c"
					gint _tmp47_ = 0;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 2000 "gitg-history.c"
				}
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					break;
#line 2014 "gitg-history.c"
				}
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 2034 "gitg-history.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 2049 "gitg-history.c"
				} else {
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 2053 "gitg-history.c"
				}
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 2061 "gitg-history.c"
			}
		}
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		res = NULL;
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 2072 "gitg-history.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 2081 "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 2128 "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 2143 "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 2156 "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 2171 "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 2186 "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 2206 "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 2221 "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 2233 "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 2258 "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 2269 "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 2282 "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 2288 "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, (GDestroyNotify) 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 2363 "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 2375 "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 2399 "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 2420 "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 2443 "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 2460 "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 2485 "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 2504 "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 2510 "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 2522 "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 2529 "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 2553 "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 2566 "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 2598 "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 2621 "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 2633 "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 2645 "gitg-history.c"
				} else {
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp39_ = FALSE;
#line 2649 "gitg-history.c"
				}
#line 461 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp39_) {
#line 2653 "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 2668 "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 2676 "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 2702 "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 2711 "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 2720 "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 2734 "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 2766 "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 2789 "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 2795 "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 2806 "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 2815 "gitg-history.c"
				} else {
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp11_ = FALSE;
#line 2819 "gitg-history.c"
				}
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = _tmp11_;
#line 2823 "gitg-history.c"
			}
#line 505 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = _tmp10_;
#line 2827 "gitg-history.c"
		} else {
#line 504 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = FALSE;
#line 2831 "gitg-history.c"
		}
#line 504 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp8_) {
#line 2835 "gitg-history.c"
			GitgCommit* _tmp32_ = NULL;
			GgitOId* _tmp33_ = NULL;
#line 507 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (_data77_->isvis) {
#line 2840 "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 2901 "gitg-history.c"
			} else {
#line 529 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				self->priv->d_scroll_y = 0.5f;
#line 2905 "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 2915 "gitg-history.c"
		}
	}
#line 497 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (c);
#line 2920 "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 2927 "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 2956 "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 2971 "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 2979 "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 3024 "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 3032 "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 3118 "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 3127 "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 3136 "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 3146 "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 3183 "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 3192 "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 3236 "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 3243 "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 3252 "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 3259 "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 3266 "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 3275 "gitg-history.c"
}


static GdkRectangle* _gitg_history_activity_on_commit_list_request_menu_position_gitg_popup_menu_request_menu_position (GitgPopupMenu* _sender, gpointer self) {
	GdkRectangle* result;
	result = gitg_history_activity_on_commit_list_request_menu_position ((GitgHistoryActivity*) self);
#line 595 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3284 "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 602 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3293 "gitg-history.c"
}


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


static void _gitg_history_activity_on_commit_model_end_clear_gitg_commit_model_end_clear (GitgCommitModel* _sender, gpointer self) {
#line 605 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_commit_model_end_clear ((GitgHistoryActivity*) self, _sender);
#line 3307 "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;
	GitgPopupMenu* _tmp46_ = NULL;
	GitgExtApplication* _tmp47_ = NULL;
	GitgExtApplication* _tmp48_ = NULL;
	GitgExtApplication* _tmp49_ = NULL;
	GitgHistoryPaned* _tmp50_ = NULL;
	GitgHistoryRefsList* _tmp51_ = NULL;
	GitgHistoryRefsList* _tmp52_ = NULL;
	GitgHistoryPaned* _tmp53_ = NULL;
	GitgCommitListView* _tmp54_ = NULL;
	GitgCommitListView* _tmp55_ = NULL;
	GitgCommitModel* _tmp56_ = NULL;
	GitgCommitModel* _tmp57_ = 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, (GDestroyNotify) 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 595 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = self->priv->d_commit_list_popup;
#line 595 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp46_, "request-menu-position", (GCallback) _gitg_history_activity_on_commit_list_request_menu_position_gitg_popup_menu_request_menu_position, self, 0);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = _tmp47_;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = _tmp48_;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = self->priv->d_main;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = gitg_history_paned_get_refs_list (_tmp50_);
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = _tmp51_;
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp49_, "repository", (GObject*) _tmp52_, "repository", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 597 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp49_);
#line 602 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = self->priv->d_main;
#line 602 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp54_ = gitg_history_paned_get_commit_list_view (_tmp53_);
#line 602 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = _tmp54_;
#line 602 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_search_equal_func ((GtkTreeView*) _tmp55_, _gitg_history_activity_search_filter_func_gtk_tree_view_search_equal_func, g_object_ref (self), g_object_unref);
#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_, "begin-clear", (GCallback) _gitg_history_activity_on_commit_model_begin_clear_gitg_commit_model_begin_clear, self, 0);
#line 605 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp57_ = self->priv->d_commit_list_model;
#line 605 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp57_, "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 3548 "gitg-history.c"
}


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


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


static void gitg_history_activity_update_walker_idle (GitgHistoryActivity* self) {
	GitgRepository* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 608 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 610 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_repository;
#line 610 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 612 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return;
#line 3586 "gitg-history.c"
	}
#line 615 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_walker_update_idle_id;
#line 615 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ == ((guint) 0)) {
#line 3592 "gitg-history.c"
		guint _tmp2_ = 0U;
#line 617 "/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 617 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_walker_update_idle_id = _tmp2_;
#line 3598 "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;
	GdkEventButton* _tmp0_ = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GitgCommitListView* _tmp3_ = NULL;
	GdkEventButton* _tmp4_ = NULL;
	gdouble _tmp5_ = 0.0;
	GdkEventButton* _tmp6_ = NULL;
	gdouble _tmp7_ = 0.0;
	GtkTreePath* _tmp8_ = NULL;
	GtkTreeViewColumn* _tmp9_ = NULL;
	gint _tmp10_ = 0;
	gint _tmp11_ = 0;
	gboolean _tmp12_ = FALSE;
	GtkTreeViewColumn* _tmp13_ = NULL;
	GitgCellRendererLanes* cell = NULL;
	GitgHistoryPaned* _tmp14_ = NULL;
	GitgCommitListView* _tmp15_ = NULL;
	GitgCommitListView* _tmp16_ = NULL;
	GtkTreeViewColumn* _tmp17_ = NULL;
	GtkTreePath* _tmp18_ = NULL;
	gint _tmp19_ = 0;
	gint _tmp20_ = 0;
	GtkCellRenderer* _tmp21_ = NULL;
	GitgCellRendererLanes* _tmp22_ = NULL;
	GitgCellRendererLanes* _tmp23_ = NULL;
	GitgRef* reference = NULL;
	GitgCellRendererLanes* _tmp24_ = NULL;
	GitgHistoryPaned* _tmp25_ = NULL;
	GitgCommitListView* _tmp26_ = NULL;
	GitgCommitListView* _tmp27_ = NULL;
	gint _tmp28_ = 0;
	gint _tmp29_ = 0;
	GitgRef* _tmp30_ = NULL;
	GitgRef* _tmp31_ = NULL;
	GitgRef* _tmp32_ = NULL;
	GtkMenu* _tmp33_ = NULL;
#line 625 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 633 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 633 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 635 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 635 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 635 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 635 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3660 "gitg-history.c"
	}
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_commit_list_view (_tmp1_);
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = event;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_->x;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = event;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _tmp6_->y;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = gtk_tree_view_get_path_at_pos ((GtkTreeView*) _tmp3_, (gint) _tmp5_, (gint) _tmp7_, &_tmp8_, &_tmp9_, &_tmp10_, &_tmp11_);
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	path = _tmp8_;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _g_object_ref0 (_tmp9_);
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	column = _tmp13_;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_x = _tmp10_;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_y = _tmp11_;
#line 638 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp12_) {
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 645 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3702 "gitg-history.c"
	}
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = self->priv->d_main;
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_paned_get_commit_list_view (_tmp14_);
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = column;
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = path;
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = cell_x;
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = gitg_commit_list_view_find_cell_at_pos (_tmp16_, _tmp17_, _tmp18_, _tmp19_, &_tmp20_);
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_w = _tmp20_;
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, GITG_TYPE_CELL_RENDERER_LANES) ? ((GitgCellRendererLanes*) _tmp21_) : NULL;
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp22_ == NULL) {
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp21_);
#line 3726 "gitg-history.c"
	}
#line 648 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell = _tmp22_;
#line 650 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = cell;
#line 650 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp23_ == NULL) {
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (cell);
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 652 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3744 "gitg-history.c"
	}
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = cell;
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = self->priv->d_main;
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = gitg_history_paned_get_commit_list_view (_tmp25_);
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = _tmp26_;
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = cell_x;
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = cell_w;
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = gitg_cell_renderer_lanes_get_ref_at_pos (_tmp24_, (GtkWidget*) _tmp27_, _tmp28_, _tmp29_, NULL);
#line 655 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	reference = _tmp30_;
#line 657 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = reference;
#line 657 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp31_ == NULL) {
#line 659 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 659 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (reference);
#line 659 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (cell);
#line 659 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 659 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 659 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3778 "gitg-history.c"
	}
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = reference;
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = gitg_history_activity_popup_menu_for_ref (self, _tmp32_);
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp33_;
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (reference);
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (cell);
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 662 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3796 "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;
	GtkMenu* _tmp5_ = NULL;
#line 665 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 667 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 667 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_activity_popup_on_ref (self, _tmp0_);
#line 667 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	ret = _tmp1_;
#line 669 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = ret;
#line 669 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp2_ == NULL) {
#line 3819 "gitg-history.c"
		GdkEventButton* _tmp3_ = NULL;
		GtkMenu* _tmp4_ = NULL;
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = event;
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = gitg_history_activity_popup_menu_for_commit (self, _tmp3_);
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (ret);
#line 671 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ret = _tmp4_;
#line 3830 "gitg-history.c"
	}
#line 675 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = ret;
#line 675 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp5_ == NULL) {
#line 3836 "gitg-history.c"
		GtkMenu* _tmp6_ = NULL;
#line 677 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = gitg_history_activity_popup_menu_for_selection (self);
#line 677 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (ret);
#line 677 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ret = _tmp6_;
#line 3844 "gitg-history.c"
	}
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = ret;
#line 680 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3850 "gitg-history.c"
}


static GdkRectangle* _gdk_rectangle_dup (GdkRectangle* self) {
	GdkRectangle* dup;
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	dup = g_new0 (GdkRectangle, 1);
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	memcpy (dup, self, sizeof (GdkRectangle));
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return dup;
#line 3862 "gitg-history.c"
}


static gpointer __gdk_rectangle_dup0 (gpointer self) {
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return self ? _gdk_rectangle_dup (self) : NULL;
#line 3869 "gitg-history.c"
}


static GdkRectangle* gitg_history_activity_on_commit_list_request_menu_position (GitgHistoryActivity* self) {
	GdkRectangle* result = NULL;
	GtkTreeSelection* selection = NULL;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GtkTreeSelection* _tmp3_ = NULL;
	GtkTreeSelection* _tmp4_ = NULL;
	GtkTreeModel* model = NULL;
	GtkTreeIter iter = {0};
	GtkTreeSelection* _tmp5_ = NULL;
	GtkTreeModel* _tmp6_ = NULL;
	GtkTreeIter _tmp7_ = {0};
	gboolean _tmp8_ = FALSE;
	GtkTreeModel* _tmp9_ = NULL;
	GtkTreePath* path = NULL;
	GtkTreeModel* _tmp10_ = NULL;
	GtkTreeIter _tmp11_ = {0};
	GtkTreePath* _tmp12_ = NULL;
	GdkRectangle rect = {0};
	GdkRectangle _tmp13_ = {0};
	GitgHistoryPaned* _tmp14_ = NULL;
	GitgCommitListView* _tmp15_ = NULL;
	GitgCommitListView* _tmp16_ = NULL;
	GtkTreePath* _tmp17_ = NULL;
	GdkRectangle _tmp18_ = {0};
	GitgHistoryPaned* _tmp19_ = NULL;
	GitgCommitListView* _tmp20_ = NULL;
	GitgCommitListView* _tmp21_ = NULL;
	GdkRectangle _tmp22_ = {0};
	gint _tmp23_ = 0;
	GdkRectangle _tmp24_ = {0};
	gint _tmp25_ = 0;
	gint _tmp26_ = 0;
	gint _tmp27_ = 0;
	GdkRectangle* _tmp28_ = NULL;
#line 683 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 685 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 685 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 685 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 685 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp2_);
#line 685 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 685 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	selection = _tmp4_;
#line 690 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = selection;
#line 690 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gtk_tree_selection_get_selected (_tmp5_, &_tmp6_, &_tmp7_);
#line 690 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (model);
#line 690 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _g_object_ref0 (_tmp6_);
#line 690 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	model = _tmp9_;
#line 690 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iter = _tmp7_;
#line 690 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp8_) {
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (model);
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (selection);
#line 692 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3945 "gitg-history.c"
	}
#line 695 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = model;
#line 695 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = iter;
#line 695 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = gtk_tree_model_get_path (_tmp10_, &_tmp11_);
#line 695 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	path = _tmp12_;
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_.x = 0;
#line 697 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	rect = _tmp13_;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = self->priv->d_main;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_paned_get_commit_list_view (_tmp14_);
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = path;
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_get_cell_area ((GtkTreeView*) _tmp16_, _tmp17_, NULL, &_tmp18_);
#line 699 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	rect = _tmp18_;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = self->priv->d_main;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = gitg_history_paned_get_commit_list_view (_tmp19_);
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = rect;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_.x;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = rect;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = _tmp24_.y;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_convert_bin_window_to_widget_coords ((GtkTreeView*) _tmp21_, _tmp23_, _tmp25_, &_tmp26_, &_tmp27_);
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	rect.x = _tmp26_;
#line 700 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	rect.y = _tmp27_;
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = __gdk_rectangle_dup0 (&rect);
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp28_;
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (model);
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (selection);
#line 703 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4003 "gitg-history.c"
}


static void gitg_history_activity_add_ref_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtRefAction* action) {
	gboolean _tmp0_ = FALSE;
	GitgExtRefAction* _tmp1_ = NULL;
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 706 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (actions != NULL);
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ != NULL) {
#line 4018 "gitg-history.c"
		GitgExtRefAction* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp2_);
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _tmp3_;
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = _tmp4_;
#line 4030 "gitg-history.c"
	} else {
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 4034 "gitg-history.c"
	}
#line 709 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_) {
#line 4038 "gitg-history.c"
		GeeLinkedList* _tmp5_ = NULL;
		GitgExtRefAction* _tmp6_ = NULL;
#line 711 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = actions;
#line 711 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = action;
#line 711 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp6_);
#line 4047 "gitg-history.c"
	}
}


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


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


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


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


static void __lambda158_ (Block79Data* _data79_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension) {
	GitgHistoryActivity* self;
	GeeLinkedList* _tmp0_ = NULL;
	PeasExtension* _tmp1_ = NULL;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data79_->self;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extset != NULL);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (info != NULL);
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extension != NULL);
#line 755 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data79_->actions;
#line 755 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = extension;
#line 755 "/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 4113 "gitg-history.c"
}


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


static GtkMenu* gitg_history_activity_populate_menu_for_commit (GitgHistoryActivity* self, GitgCommit* commit) {
	GtkMenu* result = NULL;
	Block79Data* _data79_;
	GitgHistoryActionInterface* af = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgHistoryPaned* _tmp3_ = NULL;
	GitgHistoryRefsList* _tmp4_ = NULL;
	GitgHistoryRefsList* _tmp5_ = NULL;
	GitgHistoryActionInterface* _tmp6_ = NULL;
	GitgHistoryActionInterface* _tmp7_ = NULL;
	GitgHistoryActionInterface* _tmp8_ = NULL;
	GeeLinkedList* _tmp9_ = NULL;
	GeeLinkedList* _tmp10_ = NULL;
	GitgExtApplication* _tmp11_ = NULL;
	GitgExtApplication* _tmp12_ = NULL;
	GitgExtApplication* _tmp13_ = NULL;
	GitgHistoryActionInterface* _tmp14_ = NULL;
	GitgCommit* _tmp15_ = NULL;
	GitgCommitActionCreateBranch* _tmp16_ = NULL;
	GitgCommitActionCreateBranch* _tmp17_ = NULL;
	GeeLinkedList* _tmp18_ = NULL;
	GitgExtApplication* _tmp19_ = NULL;
	GitgExtApplication* _tmp20_ = NULL;
	GitgExtApplication* _tmp21_ = NULL;
	GitgHistoryActionInterface* _tmp22_ = NULL;
	GitgCommit* _tmp23_ = NULL;
	GitgCommitActionCreateTag* _tmp24_ = NULL;
	GitgCommitActionCreateTag* _tmp25_ = NULL;
	GeeLinkedList* _tmp26_ = NULL;
	GitgExtApplication* _tmp27_ = NULL;
	GitgExtApplication* _tmp28_ = NULL;
	GitgExtApplication* _tmp29_ = NULL;
	GitgHistoryActionInterface* _tmp30_ = NULL;
	GitgCommit* _tmp31_ = NULL;
	GitgCommitActionCreatePatch* _tmp32_ = NULL;
	GitgCommitActionCreatePatch* _tmp33_ = NULL;
	GeeLinkedList* _tmp34_ = NULL;
	GitgExtApplication* _tmp35_ = NULL;
	GitgExtApplication* _tmp36_ = NULL;
	GitgExtApplication* _tmp37_ = NULL;
	GitgHistoryActionInterface* _tmp38_ = NULL;
	GitgCommit* _tmp39_ = NULL;
	GitgCommitActionCherryPick* _tmp40_ = NULL;
	GitgCommitActionCherryPick* _tmp41_ = NULL;
	PeasExtensionSet* exts = NULL;
	GitgPluginsEngine* _tmp42_ = NULL;
	GitgPluginsEngine* _tmp43_ = NULL;
	GitgExtApplication* _tmp44_ = NULL;
	GitgExtApplication* _tmp45_ = NULL;
	GitgExtApplication* _tmp46_ = NULL;
	GitgHistoryActionInterface* _tmp47_ = NULL;
	GitgCommit* _tmp48_ = NULL;
	PeasExtensionSet* _tmp49_ = NULL;
	PeasExtensionSet* _tmp50_ = NULL;
	PeasExtensionSet* _tmp51_ = NULL;
	GeeLinkedList* _tmp52_ = NULL;
	gint _tmp53_ = 0;
	gint _tmp54_ = 0;
	GtkMenu* menu = NULL;
	GtkMenu* _tmp55_ = NULL;
	GtkMenu* _tmp69_ = NULL;
	GeeLinkedList* _tmp70_ = NULL;
	GeeLinkedList* _tmp71_ = NULL;
#line 715 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 715 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (commit != NULL, NULL);
#line 715 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_ = g_slice_new0 (Block79Data);
#line 715 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_->_ref_count_ = 1;
#line 715 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_->self = g_object_ref (self);
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _tmp0_;
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = self->priv->d_main;
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gitg_history_paned_get_refs_list (_tmp3_);
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = gitg_history_action_interface_new (_tmp2_, _tmp5_);
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _tmp6_;
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp2_);
#line 717 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	af = _tmp7_;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = af;
#line 719 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp8_, "updated", (GCallback) ___lambda145__gitg_history_action_interface_updated, self, 0);
#line 723 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = gee_linked_list_new (GITG_EXT_TYPE_COMMIT_ACTION, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 723 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_->actions = _tmp9_;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = _data79_->actions;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _tmp11_;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _tmp12_;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = af;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = commit;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = gitg_commit_action_create_branch_new (_tmp13_, (GitgExtRefActionInterface*) _tmp14_, _tmp15_);
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = _tmp16_;
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp10_, (GitgExtCommitAction*) _tmp17_);
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp17_);
#line 725 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp13_);
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _data79_->actions;
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = af;
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = commit;
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = gitg_commit_action_create_tag_new (_tmp21_, (GitgExtRefActionInterface*) _tmp22_, _tmp23_);
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = _tmp24_;
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp18_, (GitgExtCommitAction*) _tmp25_);
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp25_);
#line 730 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp21_);
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _data79_->actions;
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = _tmp27_;
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = _tmp28_;
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = af;
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = commit;
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = gitg_commit_action_create_patch_new (_tmp29_, (GitgExtRefActionInterface*) _tmp30_, _tmp31_);
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = _tmp32_;
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp26_, (GitgExtCommitAction*) _tmp33_);
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp33_);
#line 735 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp29_);
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = _data79_->actions;
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp36_ = _tmp35_;
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = _tmp36_;
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = af;
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = commit;
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp40_ = gitg_commit_action_cherry_pick_new (_tmp37_, (GitgExtRefActionInterface*) _tmp38_, _tmp39_);
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = _tmp40_;
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp34_, (GitgExtCommitAction*) _tmp41_);
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp41_);
#line 740 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp37_);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = gitg_plugins_engine_get_default ();
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = _tmp42_;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = _tmp44_;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = _tmp45_;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = af;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = commit;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = peas_extension_set_new ((PeasEngine*) _tmp43_, GITG_EXT_TYPE_COMMIT_ACTION, "application", _tmp46_, "action_interface", _tmp47_, "commit", _tmp48_, NULL);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = _tmp49_;
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp46_);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp43_);
#line 745 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	exts = _tmp50_;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = exts;
#line 754 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	peas_extension_set_foreach (_tmp51_, ___lambda158__peas_extension_set_foreach_func, _data79_);
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = _data79_->actions;
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp52_);
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp54_ = _tmp53_;
#line 758 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp54_ == 0) {
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (exts);
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (af);
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		block79_data_unref (_data79_);
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data79_ = NULL;
#line 760 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4363 "gitg-history.c"
	}
#line 763 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = (GtkMenu*) gtk_menu_new ();
#line 763 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp55_);
#line 763 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	menu = _tmp55_;
#line 4371 "gitg-history.c"
	{
		GeeLinkedList* _ac_list = NULL;
		GeeLinkedList* _tmp56_ = NULL;
		GeeLinkedList* _tmp57_ = NULL;
		gint _ac_size = 0;
		GeeLinkedList* _tmp58_ = NULL;
		gint _tmp59_ = 0;
		gint _tmp60_ = 0;
		gint _ac_index = 0;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp56_ = _data79_->actions;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp57_ = _g_object_ref0 (_tmp56_);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_list = _tmp57_;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp58_ = _ac_list;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp59_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp58_);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp60_ = _tmp59_;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_size = _tmp60_;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_index = -1;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 4399 "gitg-history.c"
			gint _tmp61_ = 0;
			gint _tmp62_ = 0;
			gint _tmp63_ = 0;
			GitgExtCommitAction* ac = NULL;
			GeeLinkedList* _tmp64_ = NULL;
			gint _tmp65_ = 0;
			gpointer _tmp66_ = NULL;
			GitgExtCommitAction* _tmp67_ = NULL;
			GtkMenu* _tmp68_ = NULL;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp61_ = _ac_index;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_ac_index = _tmp61_ + 1;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp62_ = _ac_index;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp63_ = _ac_size;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp62_ < _tmp63_)) {
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				break;
#line 4421 "gitg-history.c"
			}
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp64_ = _ac_list;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp65_ = _ac_index;
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp66_ = gee_abstract_list_get ((GeeAbstractList*) _tmp64_, _tmp65_);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ac = (GitgExtCommitAction*) _tmp66_;
#line 767 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp67_ = ac;
#line 767 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp68_ = menu;
#line 767 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			gitg_ext_action_populate_menu ((GitgExtAction*) _tmp67_, _tmp68_);
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (ac);
#line 4439 "gitg-history.c"
		}
#line 765 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_ac_list);
#line 4443 "gitg-history.c"
	}
#line 771 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp69_ = menu;
#line 771 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp70_ = _data79_->actions;
#line 771 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp71_ = _g_object_ref0 (_tmp70_);
#line 771 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_set_data_full ((GObject*) _tmp69_, "gitg-ext-actions", _tmp71_, g_object_unref);
#line 773 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = menu;
#line 773 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (exts);
#line 773 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (af);
#line 773 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	block79_data_unref (_data79_);
#line 773 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data79_ = NULL;
#line 773 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4465 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_popup_menu_for_selection (GitgHistoryActivity* self) {
	GtkMenu* result = NULL;
	GtkTreeSelection* selection = NULL;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GtkTreeSelection* _tmp3_ = NULL;
	GtkTreeSelection* _tmp4_ = NULL;
	GtkTreeIter iter = {0};
	GtkTreeSelection* _tmp5_ = NULL;
	GtkTreeIter _tmp6_ = {0};
	gboolean _tmp7_ = FALSE;
	GitgCommit* commit = NULL;
	GitgCommitModel* _tmp8_ = NULL;
	GtkTreeIter _tmp9_ = {0};
	GitgCommit* _tmp10_ = NULL;
	GitgCommit* _tmp11_ = NULL;
	GitgCommit* _tmp12_ = NULL;
	GtkMenu* _tmp13_ = NULL;
#line 776 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp2_);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 778 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	selection = _tmp4_;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = selection;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gtk_tree_selection_get_selected (_tmp5_, NULL, &_tmp6_);
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	iter = _tmp6_;
#line 782 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp7_) {
#line 784 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 784 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (selection);
#line 784 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4516 "gitg-history.c"
	}
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = self->priv->d_commit_list_model;
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = iter;
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_commit_model_commit_from_iter (_tmp8_, &_tmp9_);
#line 787 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	commit = _tmp10_;
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = commit;
#line 789 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp11_ == NULL) {
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (commit);
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (selection);
#line 791 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4538 "gitg-history.c"
	}
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = commit;
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_history_activity_populate_menu_for_commit (self, _tmp12_);
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp13_;
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (commit);
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (selection);
#line 794 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4552 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_popup_menu_for_commit (GitgHistoryActivity* self, GdkEventButton* event) {
	GtkMenu* result = NULL;
	gint cell_x = 0;
	gint cell_y = 0;
	GtkTreePath* path = NULL;
	GtkTreeViewColumn* column = NULL;
	GdkEventButton* _tmp0_ = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GitgCommitListView* _tmp3_ = NULL;
	GdkEventButton* _tmp4_ = NULL;
	gdouble _tmp5_ = 0.0;
	GdkEventButton* _tmp6_ = NULL;
	gdouble _tmp7_ = 0.0;
	GtkTreePath* _tmp8_ = NULL;
	GtkTreeViewColumn* _tmp9_ = NULL;
	gint _tmp10_ = 0;
	gint _tmp11_ = 0;
	gboolean _tmp12_ = FALSE;
	GtkTreeViewColumn* _tmp13_ = NULL;
	GitgCommit* commit = NULL;
	GitgCommitModel* _tmp14_ = NULL;
	GtkTreePath* _tmp15_ = NULL;
	GitgCommit* _tmp16_ = NULL;
	GitgCommit* _tmp17_ = NULL;
	GitgHistoryPaned* _tmp18_ = NULL;
	GitgCommitListView* _tmp19_ = NULL;
	GitgCommitListView* _tmp20_ = NULL;
	GtkTreeSelection* _tmp21_ = NULL;
	GtkTreePath* _tmp22_ = NULL;
	GitgCommit* _tmp23_ = NULL;
	GtkMenu* _tmp24_ = NULL;
#line 797 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 804 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 804 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 806 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 806 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 806 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 806 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4602 "gitg-history.c"
	}
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_commit_list_view (_tmp1_);
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = event;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_->x;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = event;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _tmp6_->y;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = gtk_tree_view_get_path_at_pos ((GtkTreeView*) _tmp3_, (gint) _tmp5_, (gint) _tmp7_, &_tmp8_, &_tmp9_, &_tmp10_, &_tmp11_);
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	path = _tmp8_;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _g_object_ref0 (_tmp9_);
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	column = _tmp13_;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_x = _tmp10_;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	cell_y = _tmp11_;
#line 809 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp12_) {
#line 816 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 816 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 816 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 816 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4644 "gitg-history.c"
	}
#line 819 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = self->priv->d_commit_list_model;
#line 819 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = path;
#line 819 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = gitg_commit_model_commit_from_path (_tmp14_, _tmp15_);
#line 819 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	commit = _tmp16_;
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = commit;
#line 821 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp17_ == NULL) {
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (commit);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 823 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4668 "gitg-history.c"
	}
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = self->priv->d_main;
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_history_paned_get_commit_list_view (_tmp18_);
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp20_);
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = path;
#line 826 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_selection_select_path (_tmp21_, _tmp22_);
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = commit;
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = gitg_history_activity_populate_menu_for_commit (self, _tmp23_);
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp24_;
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (commit);
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 828 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4696 "gitg-history.c"
}


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


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


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


static void ___lambda131__gitg_history_action_interface_updated (GitgHistoryActionInterface* _sender, gpointer self) {
#line 837 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda131_ ((GitgHistoryActivity*) self);
#line 4743 "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 874 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data80_->self;
#line 874 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extset != NULL);
#line 874 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (info != NULL);
#line 874 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extension != NULL);
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data80_->addedsep;
#line 875 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (!_tmp0_) {
#line 4764 "gitg-history.c"
		GeeLinkedList* _tmp1_ = NULL;
#line 877 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = _data80_->actions;
#line 877 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp1_, NULL);
#line 878 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data80_->addedsep = TRUE;
#line 4772 "gitg-history.c"
	}
#line 881 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _data80_->actions;
#line 881 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = extension;
#line 881 "/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 4780 "gitg-history.c"
}


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


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


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


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


static void __lambda143_ (Block80Data* _data80_) {
	GitgHistoryActivity* self;
	GtkCheckMenuItem* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 923 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = _data80_->self;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data80_->item;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp2_) {
#line 4861 "gitg-history.c"
		gchar** _tmp3_ = NULL;
		gint _tmp3__length1 = 0;
		GitgRef* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = self->priv->d_mainline;
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3__length1 = self->priv->d_mainline_length1;
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _data80_->reference;
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = ggit_ref_get_name ((GgitRef*) _tmp4_);
#line 926 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 926 "/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 4879 "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 930 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = self->priv->d_mainline;
#line 930 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7__length1 = self->priv->d_mainline_length1;
#line 930 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = g_new0 (gchar*, (_tmp7__length1 - 1) + 1);
#line 930 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml = _tmp8_;
#line 930 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml_length1 = _tmp7__length1 - 1;
#line 930 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_nml_size_ = nml_length1;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml_length1 = 0;
#line 931 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = nml_length1;
#line 4908 "gitg-history.c"
		{
			gint i = 0;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			i = 0;
#line 4913 "gitg-history.c"
			{
				gboolean _tmp10_ = FALSE;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = TRUE;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				while (TRUE) {
#line 4920 "gitg-history.c"
					gint _tmp12_ = 0;
					gchar** _tmp13_ = NULL;
					gint _tmp13__length1 = 0;
					gint _tmp14_ = 0;
					gint _tmp15_ = 0;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (!_tmp10_) {
#line 4928 "gitg-history.c"
						gint _tmp11_ = 0;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp11_ = i;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						i = _tmp11_ + 1;
#line 4934 "gitg-history.c"
					}
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp10_ = FALSE;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp12_ = i;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp13_ = self->priv->d_mainline;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp13__length1 = self->priv->d_mainline_length1;
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (!(_tmp12_ < _tmp13__length1)) {
#line 933 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						break;
#line 4948 "gitg-history.c"
					}
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp14_ = i;
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp15_ = _data80_->pos;
#line 935 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp14_ != _tmp15_) {
#line 4956 "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 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp16_ = nml;
#line 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp16__length1 = nml_length1;
#line 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp17_ = self->priv->d_mainline;
#line 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp17__length1 = self->priv->d_mainline_length1;
#line 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp18_ = i;
#line 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp19_ = _tmp17_[_tmp18_];
#line 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp20_ = g_strdup (_tmp19_);
#line 937 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_vala_array_add25 (&nml, &nml_length1, &_nml_size_, _tmp20_);
#line 4980 "gitg-history.c"
					}
				}
			}
		}
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = nml;
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21__length1 = nml_length1;
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = (_tmp21_ != NULL) ? _vala_array_dup19 (_tmp21_, _tmp21__length1) : ((gpointer) _tmp21_);
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22__length1 = _tmp21__length1;
#line 941 "/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 941 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_mainline = _tmp22_;
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->d_mainline_length1 = _tmp22__length1;
#line 941 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		self->priv->_d_mainline_size_ = self->priv->d_mainline_length1;
#line 924 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		nml = (_vala_array_free (nml, nml_length1, (GDestroyNotify) g_free), NULL);
#line 5003 "gitg-history.c"
	}
#line 944 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_store_changed_mainline (self);
#line 945 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 5009 "gitg-history.c"
}


static void ___lambda143__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 923 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__lambda143_ (self);
#line 5016 "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 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_ = g_slice_new0 (Block80Data);
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->_ref_count_ = 1;
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->self = g_object_ref (self);
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = reference;
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_data80_->reference);
#line 831 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->reference = _tmp1_;
#line 833 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gee_linked_list_new (GITG_EXT_TYPE_REF_ACTION, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 833 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->actions = _tmp2_;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = self->priv->d_main;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_history_paned_get_refs_list (_tmp6_);
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = gitg_history_action_interface_new (_tmp5_, _tmp8_);
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = _tmp9_;
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp5_);
#line 835 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	af = _tmp10_;
#line 837 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = af;
#line 837 "/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 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _data80_->actions;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = af;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = _data80_->reference;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = gitg_ref_action_checkout_new (_tmp15_, (GitgExtRefActionInterface*) _tmp16_, _tmp17_);
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp12_, (GitgExtRefAction*) _tmp19_);
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp19_);
#line 841 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp15_);
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _data80_->actions;
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = _tmp21_;
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = af;
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = _data80_->reference;
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = gitg_ref_action_rename_new (_tmp23_, (GitgExtRefActionInterface*) _tmp24_, _tmp25_);
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = _tmp26_;
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp20_, (GitgExtRefAction*) _tmp27_);
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp27_);
#line 842 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp23_);
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = _data80_->actions;
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = _tmp29_;
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = _tmp30_;
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = af;
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = _data80_->reference;
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = gitg_ref_action_delete_new (_tmp31_, (GitgExtRefActionInterface*) _tmp32_, _tmp33_);
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = _tmp34_;
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp28_, (GitgExtRefAction*) _tmp35_);
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp35_);
#line 843 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp31_);
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp36_ = _data80_->actions;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = _tmp37_;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = _tmp38_;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp40_ = af;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = _data80_->reference;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = gitg_ref_action_copy_name_new (_tmp39_, (GitgExtRefActionInterface*) _tmp40_, _tmp41_);
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = _tmp42_;
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp36_, (GitgExtRefAction*) _tmp43_);
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp43_);
#line 844 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp39_);
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = _tmp44_;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = _tmp45_;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = af;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = _data80_->reference;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = gitg_ref_action_fetch_new (_tmp46_, (GitgExtRefActionInterface*) _tmp47_, _tmp48_);
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = _tmp49_;
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp46_);
#line 846 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	fetch = _tmp50_;
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = fetch;
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp51_);
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = _tmp52_;
#line 848 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp53_) {
#line 5284 "gitg-history.c"
		GeeLinkedList* _tmp54_ = NULL;
#line 850 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp54_ = _data80_->actions;
#line 850 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp54_, NULL);
#line 5290 "gitg-history.c"
	}
#line 853 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = _data80_->actions;
#line 853 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp56_ = fetch;
#line 853 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp55_, (GitgExtRefAction*) _tmp56_);
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp57_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp58_ = _tmp57_;
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp59_ = _tmp58_;
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp60_ = af;
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp61_ = _data80_->reference;
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp62_ = gitg_ref_action_merge_new (_tmp59_, (GitgExtRefActionInterface*) _tmp60_, _tmp61_);
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp63_ = _tmp62_;
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp59_);
#line 855 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	merge = _tmp63_;
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp64_ = merge;
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp65_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp64_);
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp66_ = _tmp65_;
#line 857 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp66_) {
#line 5324 "gitg-history.c"
		GeeLinkedList* _tmp67_ = NULL;
		GeeLinkedList* _tmp68_ = NULL;
		GitgRefActionMerge* _tmp69_ = NULL;
#line 859 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp67_ = _data80_->actions;
#line 859 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp67_, NULL);
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp68_ = _data80_->actions;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp69_ = merge;
#line 860 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_add_ref_action (self, _tmp68_, (GitgExtRefAction*) _tmp69_);
#line 5338 "gitg-history.c"
	}
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp70_ = gitg_plugins_engine_get_default ();
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp71_ = _tmp70_;
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp72_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp73_ = _tmp72_;
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp74_ = _tmp73_;
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp75_ = af;
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp76_ = _data80_->reference;
#line 863 "/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 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp78_ = _tmp77_;
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp74_);
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp71_);
#line 863 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	exts = _tmp78_;
#line 872 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->addedsep = FALSE;
#line 874 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp79_ = exts;
#line 874 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	peas_extension_set_foreach (_tmp79_, ___lambda142__peas_extension_set_foreach_func, _data80_);
#line 884 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp80_ = _data80_->actions;
#line 884 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp81_ = gee_collection_get_is_empty ((GeeCollection*) _tmp80_);
#line 884 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp82_ = _tmp81_;
#line 884 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp82_) {
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (exts);
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (merge);
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (fetch);
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (af);
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		block80_data_unref (_data80_);
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_data80_ = NULL;
#line 886 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 5394 "gitg-history.c"
	}
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp83_ = (GtkMenu*) gtk_menu_new ();
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp83_);
#line 889 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	menu = _tmp83_;
#line 5402 "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 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp84_ = _data80_->actions;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp85_ = _g_object_ref0 (_tmp84_);
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_list = _tmp85_;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp86_ = _ac_list;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp87_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp86_);
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp88_ = _tmp87_;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_size = _tmp88_;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_ac_index = -1;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 5430 "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 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp89_ = _ac_index;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_ac_index = _tmp89_ + 1;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp90_ = _ac_index;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp91_ = _ac_size;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp90_ < _tmp91_)) {
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				break;
#line 5451 "gitg-history.c"
			}
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp92_ = _ac_list;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp93_ = _ac_index;
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp94_ = gee_abstract_list_get ((GeeAbstractList*) _tmp92_, _tmp93_);
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ac = (GitgExtRefAction*) _tmp94_;
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp95_ = ac;
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (_tmp95_ != NULL) {
#line 5465 "gitg-history.c"
				GitgExtRefAction* _tmp96_ = NULL;
				GtkMenu* _tmp97_ = NULL;
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp96_ = ac;
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp97_ = menu;
#line 895 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gitg_ext_action_populate_menu ((GitgExtAction*) _tmp96_, _tmp97_);
#line 5474 "gitg-history.c"
			} else {
				GtkSeparatorMenuItem* sep = NULL;
				GtkSeparatorMenuItem* _tmp98_ = NULL;
				GtkSeparatorMenuItem* _tmp99_ = NULL;
				GtkMenu* _tmp100_ = NULL;
				GtkSeparatorMenuItem* _tmp101_ = NULL;
#line 899 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp98_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
#line 899 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				g_object_ref_sink (_tmp98_);
#line 899 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				sep = _tmp98_;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp99_ = sep;
#line 900 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gtk_widget_show ((GtkWidget*) _tmp99_);
#line 901 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp100_ = menu;
#line 901 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp101_ = sep;
#line 901 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gtk_menu_shell_append ((GtkMenuShell*) _tmp100_, (GtkWidget*) ((GtkMenuItem*) _tmp101_));
#line 893 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (sep);
#line 5499 "gitg-history.c"
			}
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (ac);
#line 5503 "gitg-history.c"
		}
#line 891 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_ac_list);
#line 5507 "gitg-history.c"
	}
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp102_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp102_);
#line 905 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	sep = _tmp102_;
#line 906 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp103_ = sep;
#line 906 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp103_);
#line 907 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp104_ = menu;
#line 907 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp105_ = sep;
#line 907 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp104_, (GtkWidget*) ((GtkMenuItem*) _tmp105_));
#line 909 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp106_ = _ ("Mainline");
#line 909 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp107_ = (GtkCheckMenuItem*) gtk_check_menu_item_new_with_label (_tmp106_);
#line 909 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp107_);
#line 909 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->item = _tmp107_;
#line 910 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_->pos = 0;
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108_ = self->priv->d_mainline;
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108__length1 = self->priv->d_mainline_length1;
#line 5539 "gitg-history.c"
	{
		gchar** ml_collection = NULL;
		gint ml_collection_length1 = 0;
		gint _ml_collection_size_ = 0;
		gint ml_it = 0;
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ml_collection = _tmp108_;
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		ml_collection_length1 = _tmp108__length1;
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		for (ml_it = 0; ml_it < _tmp108__length1; ml_it = ml_it + 1) {
#line 5551 "gitg-history.c"
			gchar* _tmp109_ = NULL;
			gchar* ml = NULL;
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp109_ = g_strdup (ml_collection[ml_it]);
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ml = _tmp109_;
#line 5558 "gitg-history.c"
			{
				const gchar* _tmp110_ = NULL;
				GitgRef* _tmp111_ = NULL;
				const gchar* _tmp112_ = NULL;
				gint _tmp114_ = 0;
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp110_ = ml;
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp111_ = _data80_->reference;
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp112_ = ggit_ref_get_name ((GgitRef*) _tmp111_);
#line 914 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (g_strcmp0 (_tmp110_, _tmp112_) == 0) {
#line 5572 "gitg-history.c"
					GtkCheckMenuItem* _tmp113_ = NULL;
#line 916 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp113_ = _data80_->item;
#line 916 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					gtk_check_menu_item_set_active (_tmp113_, TRUE);
#line 917 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_free0 (ml);
#line 917 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					break;
#line 5582 "gitg-history.c"
				}
#line 920 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp114_ = _data80_->pos;
#line 920 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_data80_->pos = _tmp114_ + 1;
#line 912 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_free0 (ml);
#line 5590 "gitg-history.c"
			}
		}
	}
#line 923 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp115_ = _data80_->item;
#line 923 "/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 948 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp116_ = _data80_->item;
#line 948 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp116_);
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp117_ = menu;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp118_ = _data80_->item;
#line 949 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp117_, (GtkWidget*) ((GtkMenuItem*) _tmp118_));
#line 952 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp119_ = menu;
#line 952 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp120_ = _data80_->actions;
#line 952 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp121_ = _g_object_ref0 (_tmp120_);
#line 952 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_set_data_full ((GObject*) _tmp119_, "gitg-ext-actions", _tmp121_, g_object_unref);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = menu;
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (sep);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (exts);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (merge);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (fetch);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (af);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	block80_data_unref (_data80_);
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_data80_ = NULL;
#line 953 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5634 "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 956 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != NULL) {
#line 5662 "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 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_main;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_history_paned_get_refs_list (_tmp1_);
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = _tmp2_;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = event;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = _tmp4_->y;
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = gtk_list_box_get_row_at_y ((GtkListBox*) _tmp3_, (gint) _tmp5_);
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _g_object_ref0 (_tmp6_);
#line 960 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		row = _tmp7_;
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = self->priv->d_main;
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = gitg_history_paned_get_refs_list (_tmp8_);
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = _tmp9_;
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = row;
#line 961 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_list_box_select_row ((GtkListBox*) _tmp10_, _tmp11_);
#line 958 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (row);
#line 5703 "gitg-history.c"
	}
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_main;
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_history_paned_get_refs_list (_tmp12_);
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_refs_list_get_selection (_tmp14_);
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 964 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	references = _tmp16_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = references;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gee_collection_get_is_empty ((GeeCollection*) _tmp18_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp20_) {
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = TRUE;
#line 5727 "gitg-history.c"
	} else {
		GeeList* _tmp21_ = NULL;
		gpointer _tmp22_ = NULL;
		GitgRef* _tmp23_ = NULL;
		GeeList* _tmp24_ = NULL;
		gpointer _tmp25_ = NULL;
		GitgRef* _tmp26_ = NULL;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = references;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = gee_list_first (_tmp21_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = (GitgRef*) _tmp22_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = references;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp25_ = gee_list_last (_tmp24_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp26_ = (GitgRef*) _tmp25_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = _tmp23_ != _tmp26_;
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp26_);
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp23_);
#line 5753 "gitg-history.c"
	}
#line 966 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp17_) {
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (references);
#line 968 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 5763 "gitg-history.c"
	}
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = references;
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = gee_list_first (_tmp27_);
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = (GitgRef*) _tmp28_;
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = gitg_history_activity_popup_menu_for_ref (self, _tmp29_);
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = _tmp30_;
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp29_);
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp31_;
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (references);
#line 971 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5783 "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 974 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 974 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (r != NULL, NULL);
#line 976 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	id = NULL;
#line 5797 "gitg-history.c"
	{
		GgitRef* resolved = NULL;
		GgitRef* _tmp0_ = NULL;
		GgitRef* _tmp1_ = NULL;
		GgitRef* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = r;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = ggit_ref_resolve (_tmp0_, &_inner_error_);
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		resolved = _tmp1_;
#line 980 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5812 "gitg-history.c"
			goto __catch129_g_error;
		}
#line 982 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = resolved;
#line 982 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = ggit_ref_is_tag (_tmp2_);
#line 982 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp3_) {
#line 5821 "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 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp4_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp5_ = _tmp4_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp6_ = _tmp5_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp7_ = gitg_ext_application_get_repository (_tmp6_);
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = _tmp7_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp9_ = _tmp8_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp10_ = resolved;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp11_ = ggit_ref_get_target (_tmp10_);
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp12_ = _tmp11_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp13_ = gitg_repository_lookup (_tmp9_, ggit_tag_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp12_, &_inner_error_);
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp14_ = (GgitTag*) _tmp13_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (_tmp12_);
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp9_);
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp6_);
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			t = _tmp14_;
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 984 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (resolved);
#line 5870 "gitg-history.c"
				goto __catch129_g_error;
			}
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp15_ = t;
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp16_ = ggit_tag_get_target_id (_tmp15_);
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 986 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			id = _tmp16_;
#line 982 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (t);
#line 5883 "gitg-history.c"
		} else {
			GgitRef* _tmp17_ = NULL;
			GgitOId* _tmp18_ = NULL;
#line 990 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp17_ = resolved;
#line 990 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp18_ = ggit_ref_get_target (_tmp17_);
#line 990 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 990 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			id = _tmp18_;
#line 5895 "gitg-history.c"
		}
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (resolved);
#line 5899 "gitg-history.c"
	}
	goto __finally129;
	__catch129_g_error:
	{
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_inner_error_ = NULL;
#line 5908 "gitg-history.c"
	}
	__finally129:
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (id);
#line 978 "/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 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 978 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return NULL;
#line 5921 "gitg-history.c"
	}
#line 995 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = id;
#line 995 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5927 "gitg-history.c"
}


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


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


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


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


static void _vala_array_add28 (GgitOId*** array, int* length, int* size, GgitOId* value) {
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (GgitOId*, *array, (*size) + 1);
#line 5986 "gitg-history.c"
	}
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 5992 "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 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 1000 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_selected;
#line 1000 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp0_);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, (GDestroyNotify) _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 1002 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	include = _tmp1_;
#line 1005 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_main;
#line 1005 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_history_paned_get_refs_list (_tmp2_);
#line 1005 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 1005 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_history_refs_list_get_is_all (_tmp4_);
#line 1005 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 1005 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	isall = _tmp6_;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = self->priv->d_main;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gitg_history_paned_get_refs_list (_tmp7_);
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _tmp8_;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_history_refs_list_get_is_header (_tmp9_);
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = _tmp10_;
#line 1006 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	isheader = _tmp11_;
#line 1008 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, (GDestroyNotify) _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 1008 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	perm_uniq = _tmp12_;
#line 1011 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = g_new0 (GgitOId*, 0 + 1);
#line 1011 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	permanent = _tmp13_;
#line 1011 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	permanent_length1 = 0;
#line 1011 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_permanent_size_ = permanent_length1;
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gitg_ext_application_get_repository (_tmp16_);
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _tmp17_;
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_ != NULL;
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp19_);
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp16_);
#line 1013 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp20_) {
#line 6105 "gitg-history.c"
		gchar** _tmp21_ = NULL;
		gint _tmp21__length1 = 0;
		GSettings* _tmp42_ = NULL;
		gboolean _tmp43_ = FALSE;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = self->priv->d_mainline;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp21__length1 = self->priv->d_mainline_length1;
#line 6114 "gitg-history.c"
		{
			gchar** ml_collection = NULL;
			gint ml_collection_length1 = 0;
			gint _ml_collection_size_ = 0;
			gint ml_it = 0;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ml_collection = _tmp21_;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			ml_collection_length1 = _tmp21__length1;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			for (ml_it = 0; ml_it < _tmp21__length1; ml_it = ml_it + 1) {
#line 6126 "gitg-history.c"
				gchar* _tmp22_ = NULL;
				gchar* ml = NULL;
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp22_ = g_strdup (ml_collection[ml_it]);
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				ml = _tmp22_;
#line 6133 "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 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp24_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp25_ = _tmp24_;
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp26_ = _tmp25_;
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp27_ = gitg_ext_application_get_repository (_tmp26_);
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp28_ = _tmp27_;
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp29_ = _tmp28_;
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp30_ = ml;
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp31_ = gitg_repository_lookup_reference (_tmp29_, _tmp30_, &_inner_error_);
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp32_ = _tmp31_;
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp29_);
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp26_);
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp23_ = _tmp32_;
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6176 "gitg-history.c"
							goto __catch130_g_error;
						}
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp33_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp23_);
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 1021 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						id = _tmp33_;
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp23_);
#line 6187 "gitg-history.c"
					}
					goto __finally130;
					__catch130_g_error:
					{
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_inner_error_ = NULL;
#line 1022 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 1022 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_free0 (ml);
#line 1022 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						continue;
#line 6202 "gitg-history.c"
					}
					__finally130:
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_free0 (ml);
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (perm_uniq);
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (include);
#line 1019 "/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 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 1019 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						return;
#line 6223 "gitg-history.c"
					}
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp35_ = id;
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp35_ != NULL) {
#line 6229 "gitg-history.c"
						GeeHashSet* _tmp36_ = NULL;
						GgitOId* _tmp37_ = NULL;
						gboolean _tmp38_ = FALSE;
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp36_ = perm_uniq;
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp37_ = id;
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp38_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp36_, _tmp37_);
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp34_ = _tmp38_;
#line 6241 "gitg-history.c"
					} else {
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp34_ = FALSE;
#line 6245 "gitg-history.c"
					}
#line 1024 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp34_) {
#line 6249 "gitg-history.c"
						GgitOId** _tmp39_ = NULL;
						gint _tmp39__length1 = 0;
						GgitOId* _tmp40_ = NULL;
						GgitOId* _tmp41_ = NULL;
#line 1026 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp39_ = permanent;
#line 1026 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp39__length1 = permanent_length1;
#line 1026 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp40_ = id;
#line 1026 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp41_ = __vala_GgitOId_copy0 (_tmp40_);
#line 1026 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_vala_array_add26 (&permanent, &permanent_length1, &_permanent_size_, _tmp41_);
#line 6264 "gitg-history.c"
					}
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					__vala_GgitOId_free0 (id);
#line 1015 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_free0 (ml);
#line 6270 "gitg-history.c"
				}
			}
		}
#line 1030 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp42_ = self->priv->d_settings;
#line 1030 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp43_ = g_settings_get_boolean (_tmp42_, "mainline-head");
#line 1030 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		if (_tmp43_) {
#line 6280 "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 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp45_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp46_ = _tmp45_;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp47_ = _tmp46_;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp48_ = gitg_ext_application_get_repository (_tmp47_);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp49_ = _tmp48_;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp50_ = _tmp49_;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp51_ = gitg_repository_get_head (_tmp50_, &_inner_error_);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp52_ = _tmp51_;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp50_);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp47_);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp44_ = _tmp52_;
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6319 "gitg-history.c"
					goto __catch131_g_error;
				}
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp53_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp44_);
#line 1034 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				head = _tmp53_;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp55_ = head;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp55_ != NULL) {
#line 6330 "gitg-history.c"
					GeeHashSet* _tmp56_ = NULL;
					GgitOId* _tmp57_ = NULL;
					gboolean _tmp58_ = FALSE;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp56_ = perm_uniq;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp57_ = head;
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp58_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp56_, _tmp57_);
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp54_ = _tmp58_;
#line 6342 "gitg-history.c"
				} else {
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp54_ = FALSE;
#line 6346 "gitg-history.c"
				}
#line 1036 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp54_) {
#line 6350 "gitg-history.c"
					GgitOId** _tmp59_ = NULL;
					gint _tmp59__length1 = 0;
					GgitOId* _tmp60_ = NULL;
					GgitOId* _tmp61_ = NULL;
#line 1038 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp59_ = permanent;
#line 1038 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp59__length1 = permanent_length1;
#line 1038 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp60_ = head;
#line 1038 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp61_ = __vala_GgitOId_copy0 (_tmp60_);
#line 1038 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_vala_array_add27 (&permanent, &permanent_length1, &_permanent_size_, _tmp61_);
#line 6365 "gitg-history.c"
				}
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				__vala_GgitOId_free0 (head);
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp44_);
#line 6371 "gitg-history.c"
			}
			goto __finally131;
			__catch131_g_error:
			{
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				g_clear_error (&_inner_error_);
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_inner_error_ = NULL;
#line 6380 "gitg-history.c"
			}
			__finally131:
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (perm_uniq);
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (include);
#line 1032 "/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 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				g_clear_error (&_inner_error_);
#line 1032 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				return;
#line 6397 "gitg-history.c"
			}
		}
	}
#line 1044 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp62_ = self->priv->d_settings;
#line 1044 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp63_ = g_settings_get_boolean (_tmp62_, "show-upstream-with-branch");
#line 1044 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	show_upstream_with_branch = _tmp63_;
#line 6407 "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 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp64_ = self->priv->d_main;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp65_ = gitg_history_paned_get_refs_list (_tmp64_);
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp66_ = _tmp65_;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp67_ = gitg_history_refs_list_get_selection (_tmp66_);
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp68_ = _tmp67_;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_r_list = _tmp68_;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp69_ = _r_list;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp70_ = gee_collection_get_size ((GeeCollection*) _tmp69_);
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp71_ = _tmp70_;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_r_size = _tmp71_;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_r_index = -1;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 6444 "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 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp72_ = _r_index;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_r_index = _tmp72_ + 1;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp73_ = _r_index;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp74_ = _r_size;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp73_ < _tmp74_)) {
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				break;
#line 6468 "gitg-history.c"
			}
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp75_ = _r_list;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp76_ = _r_index;
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp77_ = gee_list_get (_tmp75_, _tmp76_);
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			r = (GitgRef*) _tmp77_;
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp78_ = r;
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp79_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp78_);
#line 1048 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			id = _tmp79_;
#line 1050 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_tmp80_ = id;
#line 1050 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			if (_tmp80_ != NULL) {
#line 6488 "gitg-history.c"
				GeeHashSet* _tmp81_ = NULL;
				GgitOId* _tmp82_ = NULL;
				gboolean _tmp83_ = FALSE;
				gboolean _tmp94_ = FALSE;
				gboolean _tmp95_ = FALSE;
#line 1052 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp81_ = include;
#line 1052 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp82_ = id;
#line 1052 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp81_, _tmp82_);
#line 1054 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp83_ = isall;
#line 1054 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (!_tmp83_) {
#line 6504 "gitg-history.c"
					GeeHashSet* _tmp84_ = NULL;
					GgitOId* _tmp85_ = NULL;
					gboolean _tmp86_ = FALSE;
					gboolean _tmp87_ = FALSE;
#line 1056 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp84_ = self->priv->d_selected;
#line 1056 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp85_ = id;
#line 1056 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					gee_abstract_collection_add ((GeeAbstractCollection*) _tmp84_, _tmp85_);
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp87_ = isheader;
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (!_tmp87_) {
#line 6519 "gitg-history.c"
						GeeHashSet* _tmp88_ = NULL;
						GgitOId* _tmp89_ = NULL;
						gboolean _tmp90_ = FALSE;
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp88_ = perm_uniq;
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp89_ = id;
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp90_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp88_, _tmp89_);
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp86_ = _tmp90_;
#line 6531 "gitg-history.c"
					} else {
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp86_ = FALSE;
#line 6535 "gitg-history.c"
					}
#line 1058 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (_tmp86_) {
#line 6539 "gitg-history.c"
						GgitOId** _tmp91_ = NULL;
						gint _tmp91__length1 = 0;
						GgitOId* _tmp92_ = NULL;
						GgitOId* _tmp93_ = NULL;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp91_ = permanent;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp91__length1 = permanent_length1;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp92_ = id;
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp93_ = __vala_GgitOId_copy0 (_tmp92_);
#line 1060 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_vala_array_add28 (&permanent, &permanent_length1, &_permanent_size_, _tmp93_);
#line 6554 "gitg-history.c"
					}
				}
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				_tmp95_ = show_upstream_with_branch;
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp95_) {
#line 6561 "gitg-history.c"
					GitgRef* _tmp96_ = NULL;
					gboolean _tmp97_ = FALSE;
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp96_ = r;
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp97_ = ggit_ref_is_branch ((GgitRef*) _tmp96_);
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp94_ = _tmp97_;
#line 6570 "gitg-history.c"
				} else {
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp94_ = FALSE;
#line 6574 "gitg-history.c"
				}
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
				if (_tmp94_) {
#line 6578 "gitg-history.c"
					GitgBranch* branch = NULL;
					GitgRef* _tmp98_ = NULL;
					GitgBranch* _tmp99_ = NULL;
#line 1066 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_tmp98_ = r;
#line 1066 "/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 1066 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					branch = _tmp99_;
#line 6588 "gitg-history.c"
					{
						GitgRef* _tmp100_ = NULL;
						GitgBranch* _tmp101_ = NULL;
						GitgRef* _tmp102_ = NULL;
						GgitOId* upid = NULL;
						GgitOId* _tmp103_ = NULL;
						GgitOId* _tmp104_ = NULL;
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp101_ = branch;
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp102_ = gitg_branch_get_upstream (_tmp101_, &_inner_error_);
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp100_ = _tmp102_;
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6604 "gitg-history.c"
							goto __catch132_g_error;
						}
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp103_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp100_);
#line 1070 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						upid = _tmp103_;
#line 1072 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_tmp104_ = upid;
#line 1072 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						if (_tmp104_ != NULL) {
#line 6615 "gitg-history.c"
							GeeHashSet* _tmp105_ = NULL;
							GgitOId* _tmp106_ = NULL;
#line 1074 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
							_tmp105_ = include;
#line 1074 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
							_tmp106_ = upid;
#line 1074 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
							gee_abstract_collection_add ((GeeAbstractCollection*) _tmp105_, _tmp106_);
#line 6624 "gitg-history.c"
						}
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (upid);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp100_);
#line 6630 "gitg-history.c"
					}
					goto __finally132;
					__catch132_g_error:
					{
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_inner_error_ = NULL;
#line 6639 "gitg-history.c"
					}
					__finally132:
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (branch);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (r);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_r_list);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (perm_uniq);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (include);
#line 1068 "/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 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 1068 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
						return;
#line 6664 "gitg-history.c"
					}
#line 1064 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (branch);
#line 6668 "gitg-history.c"
				}
			}
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (r);
#line 6675 "gitg-history.c"
		}
#line 1046 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_r_list);
#line 6679 "gitg-history.c"
	}
#line 1081 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp107_ = self->priv->d_commit_list_model;
#line 1081 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108_ = permanent;
#line 1081 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp108__length1 = permanent_length1;
#line 1081 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_permanent_lanes (_tmp107_, _tmp108_, _tmp108__length1);
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp109_ = self->priv->d_commit_list_model;
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp110_ = include;
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp112_ = gee_collection_to_array ((GeeCollection*) _tmp110_, &_tmp111_);
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp113_ = _tmp112_;
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp113__length1 = _tmp111_;
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_include (_tmp109_, _tmp113_, _tmp111_);
#line 1082 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp113_ = (_vala_array_free (_tmp113_, _tmp113__length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 1083 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp114_ = self->priv->d_commit_list_model;
#line 1083 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_reload (_tmp114_);
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (perm_uniq);
#line 998 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (include);
#line 6713 "gitg-history.c"
}


static void gitg_history_activity_add_commit_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtCommitAction* action) {
	gboolean _tmp0_ = FALSE;
	GitgExtCommitAction* _tmp1_ = NULL;
#line 1091 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 1091 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (actions != NULL);
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ != NULL) {
#line 6728 "gitg-history.c"
		GitgExtCommitAction* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp2_);
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _tmp3_;
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = _tmp4_;
#line 6740 "gitg-history.c"
	} else {
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 6744 "gitg-history.c"
	}
#line 1094 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_) {
#line 6748 "gitg-history.c"
		GeeLinkedList* _tmp5_ = NULL;
		GitgExtCommitAction* _tmp6_ = NULL;
#line 1096 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = actions;
#line 1096 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = action;
#line 1096 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp6_);
#line 6757 "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 1100 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 1100 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (s != NULL, NULL);
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = s;
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_utf8_normalize (_tmp0_, (gssize) -1, G_NORMALIZE_ALL);
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = g_utf8_casefold (_tmp2_, (gssize) -1);
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp2_);
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp4_;
#line 1102 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6789 "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.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, FALSE);
#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = needle;
#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp1_ != NULL;
#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 6809 "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 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (model != NULL, FALSE);
#line 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (key != NULL, FALSE);
#line 1105 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 1107 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_commit_list_model;
#line 1107 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = *iter;
#line 1107 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_commit_model_commit_from_iter (_tmp0_, &_tmp1_);
#line 1107 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	c = _tmp2_;
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = c;
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = ggit_object_get_id ((GgitObject*) _tmp3_);
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = key;
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = ggit_oid_has_prefix (_tmp5_, _tmp6_);
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (_tmp5_);
#line 1109 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_) {
#line 1111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 1111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 1111 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 6880 "gitg-history.c"
	}
#line 1114 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = key;
#line 1114 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_history_activity_normalize (self, _tmp9_);
#line 1114 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	nkey = _tmp10_;
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = c;
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = ggit_commit_get_subject ((GgitCommit*) _tmp11_);
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_history_activity_normalize (self, _tmp12_);
#line 1115 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	subject = _tmp13_;
#line 1117 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = subject;
#line 1117 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = nkey;
#line 1117 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = string_contains (_tmp14_, _tmp15_);
#line 1117 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp16_) {
#line 1119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 1119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (subject);
#line 1119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (nkey);
#line 1119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 1119 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 6914 "gitg-history.c"
	}
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = c;
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = ggit_commit_get_message ((GgitCommit*) _tmp17_);
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_history_activity_normalize (self, _tmp18_);
#line 1122 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	message = _tmp19_;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = message;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = nkey;
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = string_contains (_tmp20_, _tmp21_);
#line 1124 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp22_) {
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (message);
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (subject);
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_free0 (nkey);
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 1126 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		return result;
#line 6944 "gitg-history.c"
	}
#line 1129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 1129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (message);
#line 1129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (subject);
#line 1129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (nkey);
#line 1129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (c);
#line 1129 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6958 "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 6977 "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 6997 "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 7013 "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 7028 "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 7043 "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 7056 "gitg-history.c"
	}
#line 82 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "repository");
#line 7060 "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 7073 "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 7092 "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 7111 "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 7127 "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 7145 "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 7155 "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 7168 "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 7189 "gitg-history.c"
}


static gboolean gitg_history_activity_real_get_search_available (GitgExtSearchable* base) {
	gboolean result;
	GitgHistoryActivity* self;
#line 1088 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1088 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 1088 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 7202 "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 1134 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = value;
#line 1136 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_search_entry ((GtkTreeView*) _tmp2_, _tmp3_);
#line 1137 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = self->priv->d_main;
#line 1137 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_history_paned_get_commit_list_view (_tmp4_);
#line 1137 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 1137 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = value;
#line 1137 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_enable_search ((GtkTreeView*) _tmp6_, _tmp7_ != NULL);
#line 1139 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = value;
#line 1139 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_ != NULL) {
#line 7243 "gitg-history.c"
		GitgHistoryPaned* _tmp9_ = NULL;
		GitgCommitListView* _tmp10_ = NULL;
		GitgCommitListView* _tmp11_ = NULL;
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = self->priv->d_main;
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = gitg_history_paned_get_commit_list_view (_tmp9_);
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = _tmp10_;
#line 1141 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_set_search_column ((GtkTreeView*) _tmp11_, 0);
#line 7255 "gitg-history.c"
	} else {
		GitgHistoryPaned* _tmp12_ = NULL;
		GitgCommitListView* _tmp13_ = NULL;
		GitgCommitListView* _tmp14_ = NULL;
#line 1145 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = self->priv->d_main;
#line 1145 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = gitg_history_paned_get_commit_list_view (_tmp12_);
#line 1145 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _tmp13_;
#line 1145 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_set_search_column ((GtkTreeView*) _tmp14_, -1);
#line 7268 "gitg-history.c"
	}
#line 1134 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-entry");
#line 7272 "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 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_search_text;
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	return result;
#line 7291 "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 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_g_free0 (self->priv->_search_text);
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_text = _tmp1_;
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-text");
#line 7311 "gitg-history.c"
}


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


static void gitg_history_activity_real_set_search_visible (GitgExtSearchable* base, gboolean value) {
	GitgHistoryActivity* self;
	gboolean _tmp0_ = FALSE;
#line 1151 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 1151 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 1151 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_visible = _tmp0_;
#line 1151 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-visible");
#line 7342 "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 7353 "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 7360 "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 7371 "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 7378 "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 7389 "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 7396 "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 7403 "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 7410 "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 7417 "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 7424 "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, (GDestroyNotify) _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, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) 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 7578 "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 = (void (*)(GObject*)) 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 7625 "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 7652 "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 7661 "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 7680 "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 7691 "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 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = g_strdup ("");
#line 1150 "/home/jesse/dev/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_text = _tmp0_;
#line 7703 "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 1150 "/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 7739 "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 7846 "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 7852 "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 7892 "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 7898 "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;
}



