/* gitg-history.c generated by valac 0.28.0, 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 _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block51Data Block51Data;
#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 _Block52Data Block52Data;

#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 _Block53Data Block53Data;

#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_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;
typedef struct _Block54Data Block54Data;

#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;
typedef struct _Block55Data Block55Data;

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;
	GitgHistoryPaned* d_main;
	GitgPopupMenu* d_refs_list_popup;
	GitgPopupMenu* d_commit_list_popup;
	gchar** d_mainline;
	gint d_mainline_length1;
	gint _d_mainline_size_;
	GitgUIElements* d_panels;
	GitgRepository* d_repository;
	GitgExtSelectionMode _selectable_mode;
	gchar* _search_text;
	gboolean _search_visible;
	gboolean _search_enabled;
};

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

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

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

struct _Block54Data {
	int _ref_count_;
	GitgHistoryActivity* self;
	GitgCommit* commit;
	GeeLinkedList* actions;
};

struct _Block55Data {
	int _ref_count_;
	Block54Data * _data54_;
	GitgExtCommitAction* action;
};


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 GitgExtSelectableIface* gitg_history_activity_gitg_ext_selectable_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_SELECTABLE_MODE,
	GITG_HISTORY_ACTIVITY_SELECTABLE_AVAILABLE,
	GITG_HISTORY_ACTIVITY_SEARCH_AVAILABLE,
	GITG_HISTORY_ACTIVITY_ACTION_WIDGET,
	GITG_HISTORY_ACTIVITY_SEARCH_ENTRY,
	GITG_HISTORY_ACTIVITY_SEARCH_TEXT,
	GITG_HISTORY_ACTIVITY_SEARCH_VISIBLE,
	GITG_HISTORY_ACTIVITY_SEARCH_ENABLED
};
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 Block51Data* block51_data_ref (Block51Data* _data51_);
static void block51_data_unref (void * _userdata_);
GitgCommitListView* gitg_history_paned_get_commit_list_view (GitgHistoryPaned* self);
static void __lambda100_ (Block51Data* _data51_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
static void ___lambda100__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_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 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_add15 (gchar*** array, int* length, int* size, gchar* value);
static void gitg_history_activity_reload (GitgHistoryActivity* self);
static Block52Data* block52_data_ref (Block52Data* _data52_);
static void block52_data_unref (void * _userdata_);
static void __lambda101_ (Block52Data* _data52_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
static void ___lambda101__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 __lambda102_ (Block52Data* _data52_, GtkAllocation* a);
static void ___lambda102__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 __lambda103_ (GitgHistoryActivity* self, GtkTreeSelection* sel);
static void ___lambda103__gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self);
GType gitg_plugins_engine_get_type (void) G_GNUC_CONST;
GitgPluginsEngine* gitg_plugins_engine_get_default (void);
GtkStack* gitg_history_paned_get_stack_panel (GitgHistoryPaned* self);
GitgUIElements* gitg_ui_elements_new (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, PeasExtensionSet* extensions, GtkStack* stack);
GitgUIElements* gitg_ui_elements_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, PeasExtensionSet* extensions, GtkStack* stack);
GitgPopupMenu* gitg_popup_menu_new (GtkWidget* widget);
GitgPopupMenu* gitg_popup_menu_construct (GType object_type, GtkWidget* widget);
static GtkMenu* gitg_history_activity_on_refs_list_populate_menu (GitgHistoryActivity* self, GdkEventButton* event);
static GtkMenu* _gitg_history_activity_on_refs_list_populate_menu_gitg_popup_menu_populate_menu (GitgPopupMenu* _sender, GdkEventButton* event, gpointer self);
static void gitg_history_activity_update_walker_idle (GitgHistoryActivity* self);
static void _gitg_history_activity_update_walker_idle_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _gitg_history_activity_update_walker_idle_gitg_history_refs_list_changed (GitgHistoryRefsList* _sender, gpointer self);
static GtkMenu* gitg_history_activity_on_commit_list_populate_menu (GitgHistoryActivity* self, GdkEventButton* event);
static GtkMenu* _gitg_history_activity_on_commit_list_populate_menu_gitg_popup_menu_populate_menu (GitgPopupMenu* _sender, GdkEventButton* event, gpointer self);
static gboolean gitg_history_activity_search_filter_func (GitgHistoryActivity* self, GtkTreeModel* model, gint column, const gchar* key, GtkTreeIter* iter);
static gboolean _gitg_history_activity_search_filter_func_gtk_tree_view_search_equal_func (GtkTreeModel* model, gint column, const gchar* key, GtkTreeIter* iter, gpointer self);
static gboolean ___lambda108_ (GitgHistoryActivity* self);
static void gitg_history_activity_update_walker (GitgHistoryActivity* self);
static gboolean ____lambda108__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 void gitg_history_activity_add_ref_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtRefAction* action);
static Block53Data* block53_data_ref (Block53Data* _data53_);
static void block53_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);
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;
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_fetch_get_type (void) G_GNUC_CONST;
static void __lambda106_ (Block53Data* _data53_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension);
static void ___lambda106__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self);
static void __lambda107_ (Block53Data* _data53_);
static void _vala_array_add16 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add17 (gchar*** array, int* length, int* size, gchar* value);
static gchar** _vala_array_dup18 (gchar** self, int length);
static void ___lambda107__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_add18 (GgitOId*** array, int* length, int* size, GgitOId* value);
static void _vala_array_add19 (GgitOId*** array, int* length, int* size, GgitOId* value);
static void _vala_array_add20 (GgitOId*** array, int* length, int* size, GgitOId* value);
static void gitg_history_activity_add_commit_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtCommitAction* action);
static void ___lambda109_ (GitgHistoryActivity* self);
static void ____lambda109__gitg_ext_commit_action_finished (GitgExtCommitAction* _sender, gpointer self);
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 Block54Data* block54_data_ref (Block54Data* _data54_);
static void block54_data_unref (void * _userdata_);
static gboolean _gitg_history_activity_action_widget___lambda110_ (Block54Data* _data54_, GgitCommit* c);
static gboolean __gitg_history_activity_action_widget___lambda110__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self);
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;
static void _gitg_history_activity_action_widget___lambda120_ (Block54Data* _data54_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension);
static void __gitg_history_activity_action_widget___lambda120__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self);
static Block55Data* block55_data_ref (Block55Data* _data55_);
static void block55_data_unref (void * _userdata_);
static void _gitg_history_activity_action_widget______lambda121_ (Block55Data* _data55_);
static void __gitg_history_activity_action_widget______lambda121__gtk_button_clicked (GtkButton* _sender, gpointer self);
static GObject * gitg_history_activity_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _gitg_history_activity___lambda122_ (GitgHistoryActivity* self, GSettings* s, const gchar* k);
static void __gitg_history_activity___lambda122__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
static void _gitg_history_activity___lambda123_ (GitgHistoryActivity* self, GSettings* s, const gchar* k);
static void __gitg_history_activity___lambda123__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_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/devel/gitg/gitg/history/gitg-history.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 477 "gitg-history.c"
}


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


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


static Block51Data* block51_data_ref (Block51Data* _data51_) {
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data51_->_ref_count_);
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return _data51_;
#line 508 "gitg-history.c"
}


static void block51_data_unref (void * _userdata_) {
	Block51Data* _data51_;
	_data51_ = (Block51Data*) _userdata_;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data51_->_ref_count_)) {
#line 517 "gitg-history.c"
		GitgHistoryActivity* self;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self = _data51_->self;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block51Data, _data51_);
#line 525 "gitg-history.c"
	}
}


static void __lambda100_ (Block51Data* _data51_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
	GitgHistoryActivity* self;
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data51_->self;
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (path != NULL);
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (iter != NULL);
#line 92 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (!_data51_->breakit) {
#line 542 "gitg-history.c"
		GitgCommit* c = NULL;
		GitgCommitModel* _tmp0_ = NULL;
		GtkTreeIter _tmp1_ = {0};
		GitgCommit* _tmp2_ = NULL;
		GitgCommit* _tmp3_ = NULL;
#line 94 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = self->priv->d_commit_list_model;
#line 94 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = *iter;
#line 94 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_commit_model_commit_from_iter (_tmp0_, &_tmp1_);
#line 94 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		c = _tmp2_;
#line 96 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = c;
#line 96 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp3_ != NULL) {
#line 560 "gitg-history.c"
			GitgExtForeachCommitSelectionFunc _tmp4_ = NULL;
			void* _tmp4__target = NULL;
			GitgCommit* _tmp5_ = NULL;
			gboolean _tmp6_ = FALSE;
#line 98 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp4_ = _data51_->func;
#line 98 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp4__target = _data51_->func_target;
#line 98 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp5_ = c;
#line 98 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp6_ = _tmp4_ ((GgitCommit*) _tmp5_, _tmp4__target);
#line 98 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_data51_->breakit = !_tmp6_;
#line 575 "gitg-history.c"
		}
#line 92 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 579 "gitg-history.c"
	}
}


static void ___lambda100__gtk_tree_selection_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__lambda100_ (self, model, path, iter);
#line 587 "gitg-history.c"
}


static void gitg_history_activity_real_foreach_selected (GitgExtHistory* base, GitgExtForeachCommitSelectionFunc func, void* func_target) {
	GitgHistoryActivity * self;
	Block51Data* _data51_;
	GitgExtForeachCommitSelectionFunc _tmp0_ = NULL;
	void* _tmp0__target = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GitgCommitListView* _tmp3_ = NULL;
	GtkTreeSelection* _tmp4_ = NULL;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data51_ = g_slice_new0 (Block51Data);
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data51_->_ref_count_ = 1;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data51_->self = g_object_ref (self);
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = func;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0__target = func_target;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data51_->func = _tmp0_;
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data51_->func_target = _tmp0__target;
#line 89 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data51_->breakit = FALSE;
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_commit_list_view (_tmp1_);
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp3_);
#line 91 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_tree_selection_selected_foreach (_tmp4_, ___lambda100__gtk_tree_selection_foreach_func, _data51_);
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	block51_data_unref (_data51_);
#line 87 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data51_ = NULL;
#line 632 "gitg-history.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return self ? g_object_ref (self) : NULL;
#line 639 "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 104 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 104 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (commit != NULL);
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gtk_tree_view_get_model ((GtkTreeView*) _tmp2_);
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GITG_TYPE_COMMIT_MODEL, GitgCommitModel));
#line 106 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	model = _tmp5_;
#line 107 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = model;
#line 107 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = commit;
#line 107 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gitg_commit_model_path_from_commit (_tmp6_, _tmp7_);
#line 107 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	path = _tmp8_;
#line 109 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = path;
#line 109 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp9_ != NULL) {
#line 687 "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 111 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = self->priv->d_main;
#line 111 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = gitg_history_paned_get_commit_list_view (_tmp10_);
#line 111 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = _tmp11_;
#line 111 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp12_);
#line 111 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _g_object_ref0 (_tmp13_);
#line 111 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		sel = _tmp14_;
#line 112 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp15_ = sel;
#line 112 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp16_ = path;
#line 112 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gtk_tree_selection_select_path (_tmp15_, _tmp16_);
#line 114 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = self->priv->d_main;
#line 114 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp18_ = gitg_history_paned_get_commit_list_view (_tmp17_);
#line 114 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp19_ = _tmp18_;
#line 114 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp20_ = path;
#line 114 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_scroll_to_cell ((GtkTreeView*) _tmp19_, _tmp20_, NULL, TRUE, 0.5f, (gfloat) 0);
#line 109 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (sel);
#line 730 "gitg-history.c"
	} else {
		FILE* _tmp21_ = NULL;
		GitgCommit* _tmp22_ = NULL;
		GgitOId* _tmp23_ = NULL;
		GgitOId* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = stderr;
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = commit;
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = ggit_object_get_id ((GgitObject*) _tmp22_);
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = _tmp23_;
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp25_ = ggit_oid_to_string (_tmp24_);
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp26_ = _tmp25_;
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		fprintf (_tmp21_, "Failed to lookup tree path for commit '%s'\n", _tmp26_);
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_free0 (_tmp26_);
#line 118 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp24_);
#line 756 "gitg-history.c"
	}
#line 104 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 104 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (model);
#line 762 "gitg-history.c"
}


static void gitg_history_activity_real_dispose (GObject* base) {
	GitgHistoryActivity * self;
	gulong _tmp0_ = 0UL;
	gulong _tmp5_ = 0UL;
	guint _tmp10_ = 0U;
	GitgCommitModel* _tmp12_ = NULL;
#line 151 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 153 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_refs_list_selection_id;
#line 153 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != ((gulong) 0)) {
#line 778 "gitg-history.c"
		GitgHistoryPaned* _tmp1_ = NULL;
		GitgHistoryRefsList* _tmp2_ = NULL;
		GitgHistoryRefsList* _tmp3_ = NULL;
		gulong _tmp4_ = 0UL;
#line 155 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_main;
#line 155 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_history_paned_get_refs_list (_tmp1_);
#line 155 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = _tmp2_;
#line 155 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = self->priv->d_refs_list_selection_id;
#line 155 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp3_, _tmp4_);
#line 156 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_refs_list_selection_id = (gulong) 0;
#line 795 "gitg-history.c"
	}
#line 159 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = self->priv->d_refs_list_changed_id;
#line 159 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp5_ != ((gulong) 0)) {
#line 801 "gitg-history.c"
		GitgHistoryPaned* _tmp6_ = NULL;
		GitgHistoryRefsList* _tmp7_ = NULL;
		GitgHistoryRefsList* _tmp8_ = NULL;
		gulong _tmp9_ = 0UL;
#line 161 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = self->priv->d_main;
#line 161 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = gitg_history_paned_get_refs_list (_tmp6_);
#line 161 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = _tmp7_;
#line 161 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = self->priv->d_refs_list_changed_id;
#line 161 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp8_, _tmp9_);
#line 162 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_refs_list_changed_id = (gulong) 0;
#line 818 "gitg-history.c"
	}
#line 165 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = self->priv->d_walker_update_idle_id;
#line 165 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp10_ != ((guint) 0)) {
#line 824 "gitg-history.c"
		guint _tmp11_ = 0U;
#line 167 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = self->priv->d_walker_update_idle_id;
#line 167 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_source_remove (_tmp11_);
#line 168 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_walker_update_idle_id = (guint) 0;
#line 832 "gitg-history.c"
	}
#line 171 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_commit_list_model;
#line 171 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_repository (_tmp12_, NULL);
#line 172 "/home/jesse/devel/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 840 "gitg-history.c"
}


static void gitg_history_activity_update_sort_mode (GitgHistoryActivity* self) {
	GSettings* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 175 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 177 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_settings;
#line 177 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_settings_get_boolean (_tmp0_, "topological-order");
#line 177 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_) {
#line 855 "gitg-history.c"
		GitgCommitModel* _tmp2_ = NULL;
		GitgCommitModel* _tmp3_ = NULL;
		GgitSortMode _tmp4_ = 0;
		GgitSortMode _tmp5_ = 0;
#line 179 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = self->priv->d_commit_list_model;
#line 179 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = self->priv->d_commit_list_model;
#line 179 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = gitg_commit_model_get_sort_mode (_tmp3_);
#line 179 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = _tmp4_;
#line 179 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_commit_model_set_sort_mode (_tmp3_, _tmp5_ | GGIT_SORT_TOPOLOGICAL);
#line 870 "gitg-history.c"
	} else {
		GitgCommitModel* _tmp6_ = NULL;
		GitgCommitModel* _tmp7_ = NULL;
		GgitSortMode _tmp8_ = 0;
		GgitSortMode _tmp9_ = 0;
#line 183 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = self->priv->d_commit_list_model;
#line 183 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = self->priv->d_commit_list_model;
#line 183 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = gitg_commit_model_get_sort_mode (_tmp7_);
#line 183 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = _tmp8_;
#line 183 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_commit_model_set_sort_mode (_tmp7_, _tmp9_ & (~GGIT_SORT_TOPOLOGICAL));
#line 886 "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 191 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_row_inserted_select ((GitgHistoryActivity*) self, _sender, path, iter);
#line 894 "gitg-history.c"
}


static void gitg_history_activity_on_commit_model_started (GitgHistoryActivity* self, GitgCommitModel* model) {
	gulong _tmp0_ = 0UL;
#line 187 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 187 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 189 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_insertsig;
#line 189 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == ((gulong) 0)) {
#line 908 "gitg-history.c"
		GitgCommitModel* _tmp1_ = NULL;
		gulong _tmp2_ = 0UL;
#line 191 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_commit_list_model;
#line 191 "/home/jesse/devel/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 191 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_insertsig = _tmp2_;
#line 917 "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 195 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 195 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 195 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (path != NULL);
#line 195 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (iter != NULL);
#line 197 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_commit_list_model;
#line 197 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = path;
#line 197 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_commit_model_commit_from_path (_tmp0_, _tmp1_);
#line 197 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	commit = _tmp2_;
#line 199 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = self->priv->d_main;
#line 199 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gitg_history_paned_get_commit_list_view (_tmp3_);
#line 199 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 199 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp5_);
#line 199 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 199 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	sel = _tmp7_;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = self->priv->d_selected;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp9_);
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = _tmp10_;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp11_ == 0) {
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = TRUE;
#line 979 "gitg-history.c"
	} else {
		GeeHashSet* _tmp12_ = NULL;
		GitgCommit* _tmp13_ = NULL;
		GgitOId* _tmp14_ = NULL;
		GgitOId* _tmp15_ = NULL;
		gboolean _tmp16_ = FALSE;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = self->priv->d_selected;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = commit;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = ggit_object_get_id ((GgitObject*) _tmp13_);
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp15_ = _tmp14_;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp16_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp12_, _tmp15_);
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = _tmp16_;
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp15_);
#line 1000 "gitg-history.c"
	}
#line 201 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_) {
#line 1004 "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 203 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = sel;
#line 203 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp18_ = path;
#line 203 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gtk_tree_selection_select_path (_tmp17_, _tmp18_);
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp19_ = commit;
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp20_ = ggit_object_get_id ((GgitObject*) _tmp19_);
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = _tmp20_;
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = self->priv->d_scroll_to;
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = ggit_oid_equal (_tmp21_, _tmp22_);
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = _tmp23_;
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp21_);
#line 205 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp24_) {
#line 1035 "gitg-history.c"
			GitgHistoryPaned* _tmp25_ = NULL;
			GitgCommitListView* _tmp26_ = NULL;
			GitgCommitListView* _tmp27_ = NULL;
			GtkTreePath* _tmp28_ = NULL;
			gfloat _tmp29_ = 0.0F;
#line 207 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp25_ = self->priv->d_main;
#line 207 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp26_ = gitg_history_paned_get_commit_list_view (_tmp25_);
#line 207 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp27_ = _tmp26_;
#line 207 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp28_ = path;
#line 207 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp29_ = self->priv->d_scroll_y;
#line 207 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			gtk_tree_view_scroll_to_cell ((GtkTreeView*) _tmp27_, _tmp28_, NULL, TRUE, _tmp29_, (gfloat) 0);
#line 213 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 213 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			self->priv->d_scroll_to = NULL;
#line 1057 "gitg-history.c"
		}
	}
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = self->priv->d_selected;
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp31_);
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = _tmp32_;
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp33_ == 0) {
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp30_ = TRUE;
#line 1070 "gitg-history.c"
	} else {
		gboolean _tmp34_ = FALSE;
		GtkTreeSelection* _tmp35_ = NULL;
		gint _tmp36_ = 0;
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp35_ = sel;
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp36_ = gtk_tree_selection_count_selected_rows (_tmp35_);
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp36_ != 0) {
#line 1081 "gitg-history.c"
			gboolean _tmp37_ = FALSE;
			GtkTreeSelection* _tmp38_ = NULL;
			GtkSelectionMode _tmp39_ = 0;
			GtkSelectionMode _tmp40_ = 0;
#line 218 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp38_ = sel;
#line 218 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp39_ = gtk_tree_selection_get_mode (_tmp38_);
#line 218 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp40_ = _tmp39_;
#line 218 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (_tmp40_ == GTK_SELECTION_SINGLE) {
#line 218 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp37_ = TRUE;
#line 1096 "gitg-history.c"
			} else {
				GtkTreeSelection* _tmp41_ = NULL;
				GtkSelectionMode _tmp42_ = 0;
				GtkSelectionMode _tmp43_ = 0;
#line 219 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp41_ = sel;
#line 219 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp42_ = gtk_tree_selection_get_mode (_tmp41_);
#line 219 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp43_ = _tmp42_;
#line 219 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp37_ = _tmp43_ == GTK_SELECTION_BROWSE;
#line 1109 "gitg-history.c"
			}
#line 218 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp34_ = _tmp37_;
#line 1113 "gitg-history.c"
		} else {
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp34_ = FALSE;
#line 1117 "gitg-history.c"
		}
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp30_ = _tmp34_;
#line 1121 "gitg-history.c"
	}
#line 217 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp30_) {
#line 1125 "gitg-history.c"
		GeeHashSet* _tmp44_ = NULL;
		GitgCommitModel* _tmp45_ = NULL;
		gulong _tmp46_ = 0UL;
#line 221 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp44_ = self->priv->d_selected;
#line 221 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp44_);
#line 223 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp45_ = self->priv->d_commit_list_model;
#line 223 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp46_ = self->priv->d_insertsig;
#line 223 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp45_, _tmp46_);
#line 224 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_insertsig = (gulong) 0;
#line 1141 "gitg-history.c"
	}
#line 195 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (sel);
#line 195 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (commit);
#line 1147 "gitg-history.c"
}


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


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


static gpointer _gtk_tree_path_copy0 (gpointer self) {
#line 245 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return self ? gtk_tree_path_copy (self) : NULL;
#line 1170 "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 228 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 230 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 230 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 232 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 1209 "gitg-history.c"
	}
#line 235 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 235 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_commit_list_view (_tmp1_);
#line 235 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 235 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp3_);
#line 235 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 235 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	sel = _tmp5_;
#line 238 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = sel;
#line 238 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gtk_tree_selection_get_selected_rows (_tmp6_, &_tmp7_);
#line 238 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (m);
#line 238 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _g_object_ref0 (_tmp7_);
#line 238 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	m = _tmp9_;
#line 238 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	rows = _tmp8_;
#line 240 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = rows;
#line 240 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp10_ == NULL) {
#line 242 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		__g_list_free__gtk_tree_path_free0_0 (rows);
#line 242 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (m);
#line 242 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (sel);
#line 242 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 1247 "gitg-history.c"
	}
#line 245 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = rows;
#line 245 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _tmp11_->data;
#line 245 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _gtk_tree_path_copy0 ((GtkTreePath*) _tmp12_);
#line 245 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	row = _tmp13_;
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = self->priv->d_main;
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_paned_get_commit_list_view (_tmp14_);
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gtk_tree_view_get_visible_range ((GtkTreeView*) _tmp16_, &_tmp17_, &_tmp18_);
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (startp);
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	startp = _tmp17_;
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (endp);
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	endp = _tmp18_;
#line 250 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp19_) {
#line 1275 "gitg-history.c"
		gboolean _tmp20_ = FALSE;
		GtkTreePath* _tmp21_ = NULL;
		GtkTreePath* _tmp22_ = NULL;
		gint _tmp23_ = 0;
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = row;
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = startp;
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = gtk_tree_path_compare (_tmp21_, _tmp22_);
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp23_ < 0) {
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp20_ = TRUE;
#line 1290 "gitg-history.c"
		} else {
			GtkTreePath* _tmp24_ = NULL;
			GtkTreePath* _tmp25_ = NULL;
			gint _tmp26_ = 0;
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp24_ = row;
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp25_ = endp;
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp26_ = gtk_tree_path_compare (_tmp24_, _tmp25_);
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp20_ = _tmp26_ > 0;
#line 1303 "gitg-history.c"
		}
#line 252 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp20_) {
#line 1307 "gitg-history.c"
			GitgHistoryPaned* _tmp27_ = NULL;
			GitgCommitListView* _tmp28_ = NULL;
			GitgCommitListView* _tmp29_ = NULL;
			GtkTreePath* _tmp30_ = NULL;
#line 254 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp27_ = self->priv->d_main;
#line 254 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp28_ = gitg_history_paned_get_commit_list_view (_tmp27_);
#line 254 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp29_ = _tmp28_;
#line 254 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp30_ = row;
#line 254 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			gtk_tree_view_scroll_to_cell ((GtkTreeView*) _tmp29_, _tmp30_, NULL, TRUE, (gfloat) 0, (gfloat) 0);
#line 1322 "gitg-history.c"
		}
	}
#line 228 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (endp);
#line 228 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (startp);
#line 228 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (row);
#line 228 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__g_list_free__gtk_tree_path_free0_0 (rows);
#line 228 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (m);
#line 228 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (sel);
#line 1337 "gitg-history.c"
}


static void gitg_history_activity_on_commit_model_finished (GitgHistoryActivity* self, GitgCommitModel* model) {
	gulong _tmp0_ = 0UL;
#line 259 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 259 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 261 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_insertsig;
#line 261 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != ((gulong) 0)) {
#line 1351 "gitg-history.c"
		GitgCommitModel* _tmp1_ = NULL;
		gulong _tmp2_ = 0UL;
#line 263 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_commit_list_model;
#line 263 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = self->priv->d_insertsig;
#line 263 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 264 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_insertsig = (gulong) 0;
#line 1362 "gitg-history.c"
	}
#line 267 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_scroll_into_view (self);
#line 1366 "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 303 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 303 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (action != NULL, FALSE);
#line 305 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 305 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (g_strcmp0 (_tmp1_, "") == 0) {
#line 305 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = TRUE;
#line 1385 "gitg-history.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 305 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 305 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = g_strcmp0 (_tmp2_, "history") == 0;
#line 1392 "gitg-history.c"
	}
#line 305 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 305 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 1398 "gitg-history.c"
}


static gint gitg_history_activity_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other) {
	GitgHistoryActivity * self;
	gint result = 0;
#line 313 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 313 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 315 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = -1;
#line 315 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 1413 "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 964 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 964 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 965 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		separator = "";
#line 1430 "gitg-history.c"
	}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 1440 "gitg-history.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 1450 "gitg-history.c"
	}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 1456 "gitg-history.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == (-1)) {
#line 1467 "gitg-history.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 1479 "gitg-history.c"
		} else {
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 1483 "gitg-history.c"
		}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 1487 "gitg-history.c"
	}
#line 967 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 1491 "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 969 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 1514 "gitg-history.c"
		{
			gboolean _tmp9_ = FALSE;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			i = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1523 "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 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 1536 "gitg-history.c"
					gint _tmp10_ = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 1542 "gitg-history.c"
				}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != (-1)) {
#line 1552 "gitg-history.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 1564 "gitg-history.c"
				} else {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 1568 "gitg-history.c"
				}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 1574 "gitg-history.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == (-1)) {
#line 1585 "gitg-history.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 1600 "gitg-history.c"
					} else {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 1604 "gitg-history.c"
					}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 1608 "gitg-history.c"
				}
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 970 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					break;
#line 1614 "gitg-history.c"
				}
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 1626 "gitg-history.c"
					gchar** _tmp25_ = NULL;
					gint _tmp25__length1 = 0;
					gint _tmp26_ = 0;
					const gchar* _tmp27_ = NULL;
					gint _tmp28_ = 0;
					gint _tmp29_ = 0;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 1647 "gitg-history.c"
				} else {
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 1651 "gitg-history.c"
				}
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 971 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 1657 "gitg-history.c"
			}
		}
#line 973 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 973 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 1664 "gitg-history.c"
			gchar* _tmp32_ = NULL;
#line 974 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 974 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 974 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			return result;
#line 1672 "gitg-history.c"
		}
#line 976 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 976 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 976 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 977 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 979 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 979 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 979 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 980 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 1710 "gitg-history.c"
		{
			gboolean _tmp46_ = FALSE;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			i = 1;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1719 "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 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 1735 "gitg-history.c"
					gint _tmp47_ = 0;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 1741 "gitg-history.c"
				}
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 981 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					break;
#line 1755 "gitg-history.c"
				}
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 982 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 1775 "gitg-history.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 1790 "gitg-history.c"
				} else {
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 1794 "gitg-history.c"
				}
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 983 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 1802 "gitg-history.c"
			}
		}
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		res = NULL;
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 986 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 1813 "gitg-history.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 988 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 988 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 988 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 1822 "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 318 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _tmp0_;
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_ext_application_get_repository (_tmp2_);
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp2_);
#line 320 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	repo = _tmp5_;
#line 322 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = repo;
#line 322 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp6_ == NULL) {
#line 324 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repo);
#line 324 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 1869 "gitg-history.c"
	}
	{
		GgitConfig* _tmp7_ = NULL;
		GitgRepository* _tmp8_ = NULL;
		GgitConfig* _tmp9_ = NULL;
		GgitConfig* _tmp10_ = NULL;
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = repo;
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = ggit_repository_get_config ((GgitRepository*) _tmp8_, &_inner_error_);
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _tmp9_;
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1884 "gitg-history.c"
			goto __catch84_g_error;
		}
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = _tmp7_;
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = NULL;
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 331 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		config = _tmp10_;
#line 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp7_);
#line 1897 "gitg-history.c"
	}
	goto __finally84;
	__catch84_g_error:
	{
#line 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_inner_error_ = NULL;
#line 332 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 332 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repo);
#line 332 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 1912 "gitg-history.c"
	}
	__finally84:
#line 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repo);
#line 329 "/home/jesse/devel/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 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 329 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 1927 "gitg-history.c"
	}
#line 334 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = config;
#line 334 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_mainline;
#line 334 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12__length1 = self->priv->d_mainline_length1;
#line 334 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _vala_g_strjoinv (",", _tmp12_, _tmp12__length1);
#line 334 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 334 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_store_mainline (self, _tmp11_, _tmp14_);
#line 334 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp14_);
#line 318 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (config);
#line 318 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (repo);
#line 1947 "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 337 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 337 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (mainline != NULL);
#line 339 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = config;
#line 339 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != NULL) {
#line 1962 "gitg-history.c"
		{
			GgitConfig* _tmp1_ = NULL;
			const gchar* _tmp2_ = NULL;
#line 343 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp1_ = config;
#line 343 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp2_ = mainline;
#line 343 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			ggit_config_set_string (_tmp1_, "gitg.mainline", _tmp2_, &_inner_error_);
#line 343 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1974 "gitg-history.c"
				goto __catch85_g_error;
			}
		}
		goto __finally85;
		__catch85_g_error:
		{
			GError* e = NULL;
			FILE* _tmp3_ = NULL;
			GError* _tmp4_ = NULL;
			const gchar* _tmp5_ = NULL;
#line 341 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			e = _inner_error_;
#line 341 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_inner_error_ = NULL;
#line 347 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp3_ = stderr;
#line 347 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp4_ = e;
#line 347 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp5_ = _tmp4_->message;
#line 347 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			fprintf (_tmp3_, "Failed to set gitg.mainline: %s\n", _tmp5_);
#line 341 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_error_free0 (e);
#line 1999 "gitg-history.c"
		}
		__finally85:
#line 341 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 341 "/home/jesse/devel/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 341 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			g_clear_error (&_inner_error_);
#line 341 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			return;
#line 2010 "gitg-history.c"
		}
	}
}


static void _vala_array_add15 (gchar*** array, int* length, int* size, gchar* value) {
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 2023 "gitg-history.c"
	}
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 2029 "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 352 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 354 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 354 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	uniq = _tmp0_;
#line 356 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_new0 (gchar*, 0 + 1);
#line 356 "/home/jesse/devel/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 356 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_mainline = _tmp1_;
#line 356 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_mainline_length1 = 0;
#line 356 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->_d_mainline_size_ = self->priv->d_mainline_length1;
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_ext_application_get_repository (_tmp4_);
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _tmp6_;
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp4_);
#line 358 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	repository = _tmp7_;
#line 360 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = repository;
#line 360 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_ == NULL) {
#line 362 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repository);
#line 362 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (uniq);
#line 362 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 2100 "gitg-history.c"
	}
#line 365 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	config = NULL;
#line 366 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = g_new0 (gchar*, 0 + 1);
#line 366 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	ref_names = _tmp9_;
#line 366 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	ref_names_length1 = 0;
#line 366 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_ref_names_size_ = ref_names_length1;
#line 2112 "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 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = repository;
#line 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = ggit_repository_get_config ((GgitRepository*) _tmp11_, &_inner_error_);
#line 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = _tmp12_;
#line 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2136 "gitg-history.c"
			goto __catch86_g_error;
		}
#line 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = _tmp10_;
#line 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = NULL;
#line 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 370 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		config = _tmp13_;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp15_ = config;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp16_ = ggit_config_snapshot (_tmp15_, &_inner_error_);
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _tmp16_;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp10_);
#line 2157 "gitg-history.c"
			goto __catch86_g_error;
		}
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp18_ = _tmp14_;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = NULL;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp19_ = _tmp18_;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp20_ = ggit_config_get_string (_tmp19_, "gitg.mainline", &_inner_error_);
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = _tmp20_;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp19_);
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = _tmp21_;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp14_);
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp10_);
#line 2180 "gitg-history.c"
			goto __catch86_g_error;
		}
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = _tmp22_ = g_strsplit (_tmp17_, ",", 0);
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ref_names = _tmp23_;
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ref_names_length1 = _vala_array_length (_tmp22_);
#line 371 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_ref_names_size_ = ref_names_length1;
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp14_);
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp10_);
#line 2197 "gitg-history.c"
	}
	goto __finally86;
	__catch86_g_error:
	{
		gchar* _tmp24_ = NULL;
		gchar** _tmp25_ = NULL;
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_inner_error_ = NULL;
#line 375 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = g_strdup ("refs/heads/master");
#line 375 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp25_ = g_new0 (gchar*, 1 + 1);
#line 375 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp25_[0] = _tmp24_;
#line 375 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 375 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ref_names = _tmp25_;
#line 375 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ref_names_length1 = 1;
#line 375 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_ref_names_size_ = ref_names_length1;
#line 2222 "gitg-history.c"
	}
	__finally86:
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (config);
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (repository);
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (uniq);
#line 368 "/home/jesse/devel/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 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 368 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 2241 "gitg-history.c"
	}
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = ref_names;
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp26__length1 = ref_names_length1;
#line 2247 "gitg-history.c"
	{
		gchar** name_collection = NULL;
		gint name_collection_length1 = 0;
		gint _name_collection_size_ = 0;
		gint name_it = 0;
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		name_collection = _tmp26_;
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		name_collection_length1 = _tmp26__length1;
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		for (name_it = 0; name_it < _tmp26__length1; name_it = name_it + 1) {
#line 2259 "gitg-history.c"
			gchar* _tmp27_ = NULL;
			gchar* name = NULL;
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp27_ = g_strdup (name_collection[name_it]);
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			name = _tmp27_;
#line 2266 "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 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp29_ = repository;
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp30_ = name;
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp31_ = gitg_repository_lookup_reference (_tmp29_, _tmp30_, &_inner_error_);
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp28_ = _tmp31_;
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2290 "gitg-history.c"
						goto __catch87_g_error;
					}
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp32_ = _tmp28_;
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp28_ = NULL;
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (r);
#line 384 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					r = _tmp32_;
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (_tmp28_);
#line 2303 "gitg-history.c"
				}
				goto __finally87;
				__catch87_g_error:
				{
					GError* e = NULL;
					FILE* _tmp33_ = NULL;
					const gchar* _tmp34_ = NULL;
					GError* _tmp35_ = NULL;
					const gchar* _tmp36_ = NULL;
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					e = _inner_error_;
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_inner_error_ = NULL;
#line 388 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp33_ = stderr;
#line 388 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp34_ = name;
#line 388 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp35_ = e;
#line 388 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp36_ = _tmp35_->message;
#line 388 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					fprintf (_tmp33_, "Failed to lookup reference (%s): %s\n", _tmp34_, _tmp36_);
#line 389 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_error_free0 (e);
#line 389 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (r);
#line 389 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_free0 (name);
#line 389 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					continue;
#line 2335 "gitg-history.c"
				}
				__finally87:
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (r);
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_free0 (name);
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (config);
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (repository);
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_object_unref0 (uniq);
#line 382 "/home/jesse/devel/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 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					g_clear_error (&_inner_error_);
#line 382 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					return;
#line 2358 "gitg-history.c"
				}
#line 392 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp37_ = r;
#line 392 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp38_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp37_);
#line 392 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				id = _tmp38_;
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp40_ = id;
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (_tmp40_ != NULL) {
#line 2370 "gitg-history.c"
					GeeHashSet* _tmp41_ = NULL;
					const gchar* _tmp42_ = NULL;
					gboolean _tmp43_ = FALSE;
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp41_ = uniq;
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp42_ = name;
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp43_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp41_, _tmp42_);
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp39_ = _tmp43_;
#line 2382 "gitg-history.c"
				} else {
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp39_ = FALSE;
#line 2386 "gitg-history.c"
				}
#line 394 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (_tmp39_) {
#line 2390 "gitg-history.c"
					gchar** _tmp44_ = NULL;
					gint _tmp44__length1 = 0;
					const gchar* _tmp45_ = NULL;
					gchar* _tmp46_ = NULL;
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp44_ = self->priv->d_mainline;
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp44__length1 = self->priv->d_mainline_length1;
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp45_ = name;
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp46_ = g_strdup (_tmp45_);
#line 396 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_vala_array_add15 (&self->priv->d_mainline, &self->priv->d_mainline_length1, &self->priv->_d_mainline_size_, _tmp46_);
#line 2405 "gitg-history.c"
				}
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				__vala_GgitOId_free0 (id);
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (r);
#line 378 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_free0 (name);
#line 2413 "gitg-history.c"
			}
		}
	}
#line 400 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = config;
#line 400 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = self->priv->d_mainline;
#line 400 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp48__length1 = self->priv->d_mainline_length1;
#line 400 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = _vala_g_strjoinv (",", _tmp48_, _tmp48__length1);
#line 400 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = _tmp49_;
#line 400 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_store_mainline (self, _tmp47_, _tmp50_);
#line 400 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp50_);
#line 352 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	ref_names = (_vala_array_free (ref_names, ref_names_length1, (GDestroyNotify) g_free), NULL);
#line 352 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (config);
#line 352 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (repository);
#line 352 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (uniq);
#line 2439 "gitg-history.c"
}


static Block52Data* block52_data_ref (Block52Data* _data52_) {
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data52_->_ref_count_);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return _data52_;
#line 2448 "gitg-history.c"
}


static void block52_data_unref (void * _userdata_) {
	Block52Data* _data52_;
	_data52_ = (Block52Data*) _userdata_;
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data52_->_ref_count_)) {
#line 2457 "gitg-history.c"
		GitgHistoryActivity* self;
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self = _data52_->self;
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (_data52_->endp);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (_data52_->startp);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data52_->view);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block52Data, _data52_);
#line 2471 "gitg-history.c"
	}
}


static void __lambda101_ (Block52Data* _data52_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
	GitgHistoryActivity* self;
	GitgCommit* c = NULL;
	GitgCommitModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GitgCommit* _tmp2_ = NULL;
	GitgCommit* _tmp3_ = NULL;
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data52_->self;
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (model != NULL);
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (path != NULL);
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (iter != NULL);
#line 431 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_commit_list_model;
#line 431 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = *iter;
#line 431 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_commit_model_commit_from_iter (_tmp0_, &_tmp1_);
#line 431 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	c = _tmp2_;
#line 433 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = c;
#line 433 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp3_ != NULL) {
#line 2503 "gitg-history.c"
		GeeHashSet* _tmp4_ = NULL;
		GitgCommit* _tmp5_ = NULL;
		GgitOId* _tmp6_ = NULL;
		GgitOId* _tmp7_ = NULL;
		gboolean _tmp8_ = FALSE;
		GgitOId* _tmp9_ = NULL;
#line 435 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = self->priv->d_selected;
#line 435 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = c;
#line 435 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = ggit_object_get_id ((GgitObject*) _tmp5_);
#line 435 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _tmp6_;
#line 435 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp4_, _tmp7_);
#line 435 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (_tmp7_);
#line 437 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = self->priv->d_scroll_to;
#line 437 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp9_ == NULL) {
#line 2526 "gitg-history.c"
			gboolean _tmp10_ = FALSE;
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (!_data52_->isvis) {
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = TRUE;
#line 2532 "gitg-history.c"
			} else {
				gboolean _tmp11_ = FALSE;
				GtkTreePath* _tmp12_ = NULL;
				gint _tmp13_ = 0;
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp12_ = path;
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp13_ = gtk_tree_path_compare (_data52_->startp, _tmp12_);
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (_tmp13_ <= 0) {
#line 2543 "gitg-history.c"
					GtkTreePath* _tmp14_ = NULL;
					gint _tmp15_ = 0;
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp14_ = path;
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp15_ = gtk_tree_path_compare (_data52_->endp, _tmp14_);
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp11_ = _tmp15_ >= 0;
#line 2552 "gitg-history.c"
				} else {
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp11_ = FALSE;
#line 2556 "gitg-history.c"
				}
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = _tmp11_;
#line 2560 "gitg-history.c"
			}
#line 438 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = _tmp10_;
#line 2564 "gitg-history.c"
		} else {
#line 437 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = FALSE;
#line 2568 "gitg-history.c"
		}
#line 437 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp8_) {
#line 2572 "gitg-history.c"
			GitgCommit* _tmp32_ = NULL;
			GgitOId* _tmp33_ = NULL;
#line 440 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (_data52_->isvis) {
#line 2577 "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 445 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp16_ = path;
#line 445 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				gtk_tree_view_get_cell_area ((GtkTreeView*) _data52_->view, _tmp16_, NULL, &_tmp17_);
#line 445 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				rect = _tmp17_;
#line 446 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				gtk_tree_view_get_visible_rect ((GtkTreeView*) _data52_->view, &_tmp18_);
#line 446 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				visrect = _tmp18_;
#line 450 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp19_ = visrect;
#line 450 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp20_ = _tmp19_.x;
#line 450 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp21_ = visrect;
#line 450 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp22_ = _tmp21_.y;
#line 450 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				gtk_tree_view_convert_tree_to_bin_window_coords ((GtkTreeView*) _data52_->view, _tmp20_, _tmp22_, &_tmp23_, &_tmp24_);
#line 450 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				x = _tmp23_;
#line 450 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				y = _tmp24_;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp25_ = rect;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp26_ = _tmp25_.y;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp27_ = rect;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp28_ = _tmp27_.height;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp29_ = y;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp30_ = visrect;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp31_ = _tmp30_.height;
#line 458 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				self->priv->d_scroll_y = ((gfloat) (((_tmp26_ + (_tmp28_ / 2.0)) - _tmp29_) + 2)) / ((gfloat) _tmp31_);
#line 2638 "gitg-history.c"
			} else {
#line 462 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				self->priv->d_scroll_y = 0.5f;
#line 2642 "gitg-history.c"
			}
#line 465 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp32_ = c;
#line 465 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp33_ = ggit_object_get_id ((GgitObject*) _tmp32_);
#line 465 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 465 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			self->priv->d_scroll_to = _tmp33_;
#line 2652 "gitg-history.c"
		}
	}
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (c);
#line 2657 "gitg-history.c"
}


static void ___lambda101__gtk_tree_selection_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__lambda101_ (self, model, path, iter);
#line 2664 "gitg-history.c"
}


static void __lambda102_ (Block52Data* _data52_, GtkAllocation* a) {
	GitgHistoryActivity* self;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgHistoryRefsList* _tmp1_ = NULL;
	GitgHistoryRefsList* _tmp2_ = NULL;
	GtkAdjustment* _tmp3_ = NULL;
	gulong _tmp4_ = 0UL;
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data52_->self;
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (a != NULL);
#line 479 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 479 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_refs_list (_tmp0_);
#line 479 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 479 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gtk_list_box_get_adjustment ((GtkListBox*) _tmp2_);
#line 479 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_adjustment_set_value (_tmp3_, _data52_->vadj);
#line 481 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _data52_->sid;
#line 481 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp4_ != ((gulong) 0)) {
#line 2693 "gitg-history.c"
		GitgHistoryPaned* _tmp5_ = NULL;
		GitgHistoryRefsList* _tmp6_ = NULL;
		GitgHistoryRefsList* _tmp7_ = NULL;
		gulong _tmp8_ = 0UL;
#line 483 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = self->priv->d_main;
#line 483 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = gitg_history_paned_get_refs_list (_tmp5_);
#line 483 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _tmp6_;
#line 483 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = _data52_->sid;
#line 483 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_signal_handler_disconnect ((GObject*) _tmp7_, _tmp8_);
#line 2708 "gitg-history.c"
	}
}


static void ___lambda102__gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self) {
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__lambda102_ (self, allocation);
#line 2716 "gitg-history.c"
}


static void gitg_history_activity_reload (GitgHistoryActivity* self) {
	Block52Data* _data52_;
	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 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_ = g_slice_new0 (Block52Data);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->_ref_count_ = 1;
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->self = g_object_ref (self);
#line 410 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_walker_update_idle_id;
#line 410 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != ((guint) 0)) {
#line 2761 "gitg-history.c"
		guint _tmp1_ = 0U;
#line 412 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_walker_update_idle_id;
#line 412 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_source_remove (_tmp1_);
#line 413 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_walker_update_idle_id = (guint) 0;
#line 2769 "gitg-history.c"
	}
#line 416 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_main;
#line 416 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_history_paned_get_commit_list_view (_tmp2_);
#line 416 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 416 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 416 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->view = _tmp5_;
#line 418 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = self->priv->d_main;
#line 418 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_history_paned_get_refs_list (_tmp6_);
#line 418 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 418 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = gtk_list_box_get_adjustment ((GtkListBox*) _tmp8_);
#line 418 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gtk_adjustment_get_value (_tmp9_);
#line 418 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->vadj = _tmp10_;
#line 420 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_reload_mainline (self);
#line 422 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = self->priv->d_selected;
#line 422 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp11_);
#line 424 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 424 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_scroll_to = NULL;
#line 428 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gtk_tree_view_get_visible_range ((GtkTreeView*) _data52_->view, &_tmp12_, &_tmp13_);
#line 428 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (_data52_->startp);
#line 428 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->startp = _tmp12_;
#line 428 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (_data52_->endp);
#line 428 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->endp = _tmp13_;
#line 428 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->isvis = _tmp14_;
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gtk_tree_view_get_selection ((GtkTreeView*) _data52_->view);
#line 430 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_tree_selection_selected_foreach (_tmp15_, ___lambda101__gtk_tree_selection_foreach_func, _data52_);
#line 471 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = self->priv->d_commit_list_model;
#line 471 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gitg_history_activity_get_repository (self);
#line 471 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _tmp17_;
#line 471 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_repository (_tmp16_, _tmp18_);
#line 474 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = self->priv->d_main;
#line 474 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = gitg_history_paned_get_refs_list (_tmp19_);
#line 474 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 474 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = gitg_history_activity_get_repository (self);
#line 474 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 474 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_refs_list_set_repository (_tmp21_, _tmp23_);
#line 476 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->sid = (gulong) 0;
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = self->priv->d_main;
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = gitg_history_paned_get_refs_list (_tmp24_);
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _tmp25_;
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = g_signal_connect_data ((GtkWidget*) _tmp26_, "size-allocate", (GCallback) ___lambda102__gtk_widget_size_allocate, block52_data_ref (_data52_), (GClosureNotify) block52_data_unref, 0);
#line 478 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_->sid = _tmp27_;
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	block52_data_unref (_data52_);
#line 408 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data52_ = NULL;
#line 2855 "gitg-history.c"
}


static void __lambda103_ (GitgHistoryActivity* self, GtkTreeSelection* sel) {
#line 496 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (sel != NULL);
#line 497 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_emit_by_name ((GitgExtHistory*) self, "selection-changed");
#line 2864 "gitg-history.c"
}


static void ___lambda103__gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self) {
#line 496 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__lambda103_ ((GitgHistoryActivity*) self, _sender);
#line 2871 "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 513 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 2880 "gitg-history.c"
}


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


static void _gitg_history_activity_update_walker_idle_gitg_history_refs_list_changed (GitgHistoryRefsList* _sender, gpointer self) {
#line 516 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker_idle ((GitgHistoryActivity*) self);
#line 2894 "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 519 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 2903 "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 531 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 2912 "gitg-history.c"
}


static void gitg_history_activity_build_ui (GitgHistoryActivity* self) {
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgHistoryPaned* _tmp1_ = NULL;
	GitgHistoryRefsList* _tmp2_ = NULL;
	GitgHistoryRefsList* _tmp3_ = NULL;
	GitgExtApplication* _tmp4_ = NULL;
	GitgExtApplication* _tmp5_ = NULL;
	GitgExtApplication* _tmp6_ = NULL;
	GitgExtRemoteLookup* _tmp7_ = NULL;
	GitgExtRemoteLookup* _tmp8_ = NULL;
	GitgExtRemoteLookup* _tmp9_ = NULL;
	GitgHistoryPaned* _tmp10_ = NULL;
	GitgCommitListView* _tmp11_ = NULL;
	GitgCommitListView* _tmp12_ = NULL;
	GitgCommitModel* _tmp13_ = NULL;
	GitgHistoryPaned* _tmp14_ = NULL;
	GitgCommitListView* _tmp15_ = NULL;
	GitgCommitListView* _tmp16_ = NULL;
	GtkTreeSelection* _tmp17_ = NULL;
	GitgPluginsEngine* engine = NULL;
	GitgPluginsEngine* _tmp18_ = NULL;
	PeasExtensionSet* extset = NULL;
	GitgExtApplication* _tmp19_ = NULL;
	GitgExtApplication* _tmp20_ = NULL;
	GitgExtApplication* _tmp21_ = NULL;
	PeasExtensionSet* _tmp22_ = NULL;
	PeasExtensionSet* _tmp23_ = NULL;
	GitgHistoryPaned* _tmp24_ = NULL;
	GtkStack* _tmp25_ = NULL;
	GtkStack* _tmp26_ = NULL;
	GitgUIElements* _tmp27_ = NULL;
	GitgHistoryPaned* _tmp28_ = NULL;
	GitgHistoryRefsList* _tmp29_ = NULL;
	GitgHistoryRefsList* _tmp30_ = NULL;
	GitgPopupMenu* _tmp31_ = NULL;
	GitgPopupMenu* _tmp32_ = NULL;
	GitgHistoryPaned* _tmp33_ = NULL;
	GitgHistoryRefsList* _tmp34_ = NULL;
	GitgHistoryRefsList* _tmp35_ = NULL;
	gulong _tmp36_ = 0UL;
	GitgHistoryPaned* _tmp37_ = NULL;
	GitgHistoryRefsList* _tmp38_ = NULL;
	GitgHistoryRefsList* _tmp39_ = NULL;
	gulong _tmp40_ = 0UL;
	GitgHistoryPaned* _tmp41_ = NULL;
	GitgCommitListView* _tmp42_ = NULL;
	GitgCommitListView* _tmp43_ = NULL;
	GitgPopupMenu* _tmp44_ = NULL;
	GitgPopupMenu* _tmp45_ = NULL;
	GitgExtApplication* _tmp46_ = NULL;
	GitgExtApplication* _tmp47_ = NULL;
	GitgExtApplication* _tmp48_ = NULL;
	GitgHistoryPaned* _tmp49_ = NULL;
	GitgHistoryRefsList* _tmp50_ = NULL;
	GitgHistoryRefsList* _tmp51_ = NULL;
	GitgHistoryPaned* _tmp52_ = NULL;
	GitgHistoryPaned* _tmp53_ = NULL;
	GitgCommitListView* _tmp54_ = NULL;
	GitgCommitListView* _tmp55_ = NULL;
#line 488 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 490 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gitg_history_paned_new ();
#line 490 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp0_);
#line 490 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_main);
#line 490 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_main = _tmp0_;
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_history_paned_get_refs_list (_tmp1_);
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = _tmp2_;
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_ext_application_get_remote_lookup (_tmp6_);
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _tmp8_;
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_refs_list_set_remote_lookup (_tmp3_, _tmp9_);
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp9_);
#line 492 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp6_);
#line 494 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = self->priv->d_main;
#line 494 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = gitg_history_paned_get_commit_list_view (_tmp10_);
#line 494 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _tmp11_;
#line 494 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = self->priv->d_commit_list_model;
#line 494 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_model ((GtkTreeView*) _tmp12_, (GtkTreeModel*) _tmp13_);
#line 496 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = self->priv->d_main;
#line 496 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_paned_get_commit_list_view (_tmp14_);
#line 496 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 496 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gtk_tree_view_get_selection ((GtkTreeView*) _tmp16_);
#line 496 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp17_, "changed", (GCallback) ___lambda103__gtk_tree_selection_changed, self, 0);
#line 500 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = gitg_plugins_engine_get_default ();
#line 500 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	engine = _tmp18_;
#line 502 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 502 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 502 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 502 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = peas_extension_set_new ((PeasEngine*) engine, GITG_EXT_TYPE_HISTORY_PANEL, "history", self, "application", _tmp21_, NULL);
#line 502 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = _tmp22_;
#line 502 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp21_);
#line 502 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	extset = _tmp23_;
#line 509 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = self->priv->d_main;
#line 509 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = gitg_history_paned_get_stack_panel (_tmp24_);
#line 509 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _tmp25_;
#line 509 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = gitg_ui_elements_new (GITG_EXT_TYPE_HISTORY_PANEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, extset, _tmp26_);
#line 509 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_panels);
#line 509 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_panels = _tmp27_;
#line 512 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = self->priv->d_main;
#line 512 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = gitg_history_paned_get_refs_list (_tmp28_);
#line 512 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = _tmp29_;
#line 512 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = gitg_popup_menu_new ((GtkWidget*) _tmp30_);
#line 512 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_refs_list_popup);
#line 512 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_refs_list_popup = _tmp31_;
#line 513 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = self->priv->d_refs_list_popup;
#line 513 "/home/jesse/devel/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 515 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = self->priv->d_main;
#line 515 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = gitg_history_paned_get_refs_list (_tmp33_);
#line 515 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = _tmp34_;
#line 515 "/home/jesse/devel/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 515 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_refs_list_selection_id = _tmp36_;
#line 516 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = self->priv->d_main;
#line 516 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = gitg_history_paned_get_refs_list (_tmp37_);
#line 516 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = _tmp38_;
#line 516 "/home/jesse/devel/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 516 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_refs_list_changed_id = _tmp40_;
#line 518 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = self->priv->d_main;
#line 518 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = gitg_history_paned_get_commit_list_view (_tmp41_);
#line 518 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = _tmp42_;
#line 518 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = gitg_popup_menu_new ((GtkWidget*) _tmp43_);
#line 518 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_popup);
#line 518 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_commit_list_popup = _tmp44_;
#line 519 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = self->priv->d_commit_list_popup;
#line 519 "/home/jesse/devel/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 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = _tmp46_;
#line 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = _tmp47_;
#line 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = self->priv->d_main;
#line 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = gitg_history_paned_get_refs_list (_tmp49_);
#line 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = _tmp50_;
#line 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp48_, "repository", (GObject*) _tmp51_, "repository", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 521 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp48_);
#line 526 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = self->priv->d_main;
#line 526 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_bind_property_with_closures ((GObject*) self, "selectable-mode", (GObject*) _tmp52_, "selectable-mode", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 531 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = self->priv->d_main;
#line 531 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp54_ = gitg_history_paned_get_commit_list_view (_tmp53_);
#line 531 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = _tmp54_;
#line 531 "/home/jesse/devel/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 488 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (extset);
#line 488 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (engine);
#line 3143 "gitg-history.c"
}


static gboolean ___lambda108_ (GitgHistoryActivity* self) {
	gboolean result = FALSE;
#line 544 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_walker_update_idle_id = (guint) 0;
#line 545 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 546 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = FALSE;
#line 546 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3157 "gitg-history.c"
}


static gboolean ____lambda108__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda108_ ((GitgHistoryActivity*) self);
#line 543 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3166 "gitg-history.c"
}


static void gitg_history_activity_update_walker_idle (GitgHistoryActivity* self) {
	GitgRepository* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 534 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 536 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_repository;
#line 536 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 538 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return;
#line 3181 "gitg-history.c"
	}
#line 541 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_walker_update_idle_id;
#line 541 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ == ((guint) 0)) {
#line 3187 "gitg-history.c"
		guint _tmp2_ = 0U;
#line 543 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ____lambda108__gsource_func, g_object_ref (self), g_object_unref);
#line 543 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_walker_update_idle_id = _tmp2_;
#line 3193 "gitg-history.c"
	}
}


static GtkMenu* gitg_history_activity_popup_on_ref (GitgHistoryActivity* self, GdkEventButton* event) {
	GtkMenu* result = NULL;
	gint cell_x = 0;
	gint cell_y = 0;
	gint cell_w = 0;
	GtkTreePath* path = NULL;
	GtkTreeViewColumn* column = NULL;
	GitgHistoryPaned* _tmp0_ = NULL;
	GitgCommitListView* _tmp1_ = NULL;
	GitgCommitListView* _tmp2_ = NULL;
	GdkEventButton* _tmp3_ = NULL;
	gdouble _tmp4_ = 0.0;
	GdkEventButton* _tmp5_ = NULL;
	gdouble _tmp6_ = 0.0;
	GtkTreePath* _tmp7_ = NULL;
	GtkTreeViewColumn* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	gint _tmp10_ = 0;
	gboolean _tmp11_ = FALSE;
	GtkTreeViewColumn* _tmp12_ = NULL;
	GitgCellRendererLanes* cell = NULL;
	GitgHistoryPaned* _tmp13_ = NULL;
	GitgCommitListView* _tmp14_ = NULL;
	GitgCommitListView* _tmp15_ = NULL;
	GtkTreeViewColumn* _tmp16_ = NULL;
	GtkTreePath* _tmp17_ = NULL;
	gint _tmp18_ = 0;
	gint _tmp19_ = 0;
	GtkCellRenderer* _tmp20_ = NULL;
	GitgCellRendererLanes* _tmp21_ = NULL;
	GitgCellRendererLanes* _tmp22_ = NULL;
	GitgRef* reference = NULL;
	GitgCellRendererLanes* _tmp23_ = NULL;
	GitgHistoryPaned* _tmp24_ = NULL;
	GitgCommitListView* _tmp25_ = NULL;
	GitgCommitListView* _tmp26_ = NULL;
	gint _tmp27_ = 0;
	gint _tmp28_ = 0;
	GitgRef* _tmp29_ = NULL;
	GitgRef* _tmp30_ = NULL;
	GitgRef* _tmp31_ = NULL;
	GtkMenu* _tmp32_ = NULL;
#line 551 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = event;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_->x;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = event;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_->y;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = gtk_tree_view_get_path_at_pos ((GtkTreeView*) _tmp2_, (gint) _tmp4_, (gint) _tmp6_, &_tmp7_, &_tmp8_, &_tmp9_, &_tmp10_);
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	path = _tmp7_;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _g_object_ref0 (_tmp8_);
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	column = _tmp12_;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	cell_x = _tmp9_;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	cell_y = _tmp10_;
#line 559 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (!_tmp11_) {
#line 566 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 566 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 566 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 566 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3282 "gitg-history.c"
	}
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = self->priv->d_main;
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gitg_history_paned_get_commit_list_view (_tmp13_);
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = column;
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = path;
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = cell_x;
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = gitg_commit_list_view_find_cell_at_pos (_tmp15_, _tmp16_, _tmp17_, _tmp18_, &_tmp19_);
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	cell_w = _tmp19_;
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, GITG_TYPE_CELL_RENDERER_LANES) ? ((GitgCellRendererLanes*) _tmp20_) : NULL;
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp21_ == NULL) {
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp20_);
#line 3306 "gitg-history.c"
	}
#line 569 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	cell = _tmp21_;
#line 571 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = cell;
#line 571 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp22_ == NULL) {
#line 573 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 573 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (cell);
#line 573 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 573 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 573 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3324 "gitg-history.c"
	}
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = cell;
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = self->priv->d_main;
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = gitg_history_paned_get_commit_list_view (_tmp24_);
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _tmp25_;
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = cell_x;
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = cell_w;
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = gitg_cell_renderer_lanes_get_ref_at_pos (_tmp23_, (GtkWidget*) _tmp26_, _tmp27_, _tmp28_, NULL);
#line 576 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	reference = _tmp29_;
#line 578 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = reference;
#line 578 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp30_ == NULL) {
#line 580 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 580 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (reference);
#line 580 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (cell);
#line 580 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (column);
#line 580 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_gtk_tree_path_free0 (path);
#line 580 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 3358 "gitg-history.c"
	}
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = reference;
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = gitg_history_activity_popup_menu_for_ref (self, _tmp31_);
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp32_;
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (reference);
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (cell);
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (column);
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gtk_tree_path_free0 (path);
#line 583 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3376 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_on_commit_list_populate_menu (GitgHistoryActivity* self, GdkEventButton* event) {
	GtkMenu* result = NULL;
	GtkMenu* ret = NULL;
	GdkEventButton* _tmp0_ = NULL;
	GtkMenu* _tmp1_ = NULL;
	GtkMenu* _tmp2_ = NULL;
#line 586 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 588 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 588 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_activity_popup_on_ref (self, _tmp0_);
#line 588 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	ret = _tmp1_;
#line 590 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = ret;
#line 590 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp2_ == NULL) {
#line 592 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_ext_selectable_set_selectable_mode ((GitgExtSelectable*) self, GITG_EXT_SELECTION_MODE_SELECTION);
#line 3400 "gitg-history.c"
	}
#line 595 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = ret;
#line 595 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3406 "gitg-history.c"
}


static void gitg_history_activity_add_ref_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtRefAction* action) {
	gboolean _tmp0_ = FALSE;
	GitgExtRefAction* _tmp1_ = NULL;
#line 598 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 598 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (actions != NULL);
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ != NULL) {
#line 3421 "gitg-history.c"
		GitgExtRefAction* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp2_);
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _tmp3_;
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = _tmp4_;
#line 3433 "gitg-history.c"
	} else {
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 3437 "gitg-history.c"
	}
#line 601 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_) {
#line 3441 "gitg-history.c"
		GeeLinkedList* _tmp5_ = NULL;
		GitgExtRefAction* _tmp6_ = NULL;
#line 603 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = actions;
#line 603 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = action;
#line 603 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp6_);
#line 3450 "gitg-history.c"
	}
}


static Block53Data* block53_data_ref (Block53Data* _data53_) {
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data53_->_ref_count_);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return _data53_;
#line 3460 "gitg-history.c"
}


static void block53_data_unref (void * _userdata_) {
	Block53Data* _data53_;
	_data53_ = (Block53Data*) _userdata_;
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data53_->_ref_count_)) {
#line 3469 "gitg-history.c"
		GitgHistoryActivity* self;
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self = _data53_->self;
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data53_->item);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data53_->actions);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data53_->reference);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block53Data, _data53_);
#line 3483 "gitg-history.c"
	}
}


static void __lambda106_ (Block53Data* _data53_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension) {
	GitgHistoryActivity* self;
	GeeLinkedList* _tmp0_ = NULL;
	PeasExtension* _tmp1_ = NULL;
#line 627 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data53_->self;
#line 627 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extset != NULL);
#line 627 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (info != NULL);
#line 627 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extension != NULL);
#line 628 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data53_->actions;
#line 628 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = extension;
#line 628 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp0_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_REF_ACTION) ? ((GitgExtRefAction*) _tmp1_) : NULL);
#line 3506 "gitg-history.c"
}


static void ___lambda106__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self) {
#line 627 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__lambda106_ (self, set, info, exten);
#line 3513 "gitg-history.c"
}


static void _vala_array_add16 (gchar*** array, int* length, int* size, gchar* value) {
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 3524 "gitg-history.c"
	}
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 3530 "gitg-history.c"
}


static void _vala_array_add17 (gchar*** array, int* length, int* size, gchar* value) {
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 3541 "gitg-history.c"
	}
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 3547 "gitg-history.c"
}


static gchar** _vala_array_dup18 (gchar** self, int length) {
	gchar** result;
	int i;
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = g_new0 (gchar*, length + 1);
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	for (i = 0; i < length; i++) {
#line 3558 "gitg-history.c"
		gchar* _tmp0_ = NULL;
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = g_strdup (self[i]);
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result[i] = _tmp0_;
#line 3564 "gitg-history.c"
	}
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 3568 "gitg-history.c"
}


static void __lambda107_ (Block53Data* _data53_) {
	GitgHistoryActivity* self;
	GtkCheckMenuItem* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 661 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data53_->self;
#line 662 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data53_->item;
#line 662 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
#line 662 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 662 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp2_) {
#line 3587 "gitg-history.c"
		gchar** _tmp3_ = NULL;
		gint _tmp3__length1 = 0;
		GitgRef* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = self->priv->d_mainline;
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3__length1 = self->priv->d_mainline_length1;
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _data53_->reference;
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = ggit_ref_get_name ((GgitRef*) _tmp4_);
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 664 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_vala_array_add16 (&self->priv->d_mainline, &self->priv->d_mainline_length1, &self->priv->_d_mainline_size_, _tmp6_);
#line 3605 "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 668 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = self->priv->d_mainline;
#line 668 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7__length1 = self->priv->d_mainline_length1;
#line 668 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = g_new0 (gchar*, (_tmp7__length1 - 1) + 1);
#line 668 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		nml = _tmp8_;
#line 668 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		nml_length1 = _tmp7__length1 - 1;
#line 668 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_nml_size_ = nml_length1;
#line 669 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		nml_length1 = 0;
#line 669 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = nml_length1;
#line 3634 "gitg-history.c"
		{
			gint i = 0;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			i = 0;
#line 3639 "gitg-history.c"
			{
				gboolean _tmp10_ = FALSE;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp10_ = TRUE;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				while (TRUE) {
#line 3646 "gitg-history.c"
					gint _tmp12_ = 0;
					gchar** _tmp13_ = NULL;
					gint _tmp13__length1 = 0;
					gint _tmp14_ = 0;
					gint _tmp15_ = 0;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (!_tmp10_) {
#line 3654 "gitg-history.c"
						gint _tmp11_ = 0;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp11_ = i;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						i = _tmp11_ + 1;
#line 3660 "gitg-history.c"
					}
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp10_ = FALSE;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp12_ = i;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp13_ = self->priv->d_mainline;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp13__length1 = self->priv->d_mainline_length1;
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (!(_tmp12_ < _tmp13__length1)) {
#line 671 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						break;
#line 3674 "gitg-history.c"
					}
#line 673 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp14_ = i;
#line 673 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp15_ = _data53_->pos;
#line 673 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (_tmp14_ != _tmp15_) {
#line 3682 "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 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp16_ = nml;
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp16__length1 = nml_length1;
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp17_ = self->priv->d_mainline;
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp17__length1 = self->priv->d_mainline_length1;
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp18_ = i;
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp19_ = _tmp17_[_tmp18_];
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp20_ = g_strdup (_tmp19_);
#line 675 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_vala_array_add17 (&nml, &nml_length1, &_nml_size_, _tmp20_);
#line 3706 "gitg-history.c"
					}
				}
			}
		}
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = nml;
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21__length1 = nml_length1;
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = (_tmp21_ != NULL) ? _vala_array_dup18 (_tmp21_, _tmp21__length1) : ((gpointer) _tmp21_);
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp22__length1 = _tmp21__length1;
#line 679 "/home/jesse/devel/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 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_mainline = _tmp22_;
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_mainline_length1 = _tmp22__length1;
#line 679 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->_d_mainline_size_ = self->priv->d_mainline_length1;
#line 662 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		nml = (_vala_array_free (nml, nml_length1, (GDestroyNotify) g_free), NULL);
#line 3729 "gitg-history.c"
	}
#line 682 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_store_changed_mainline (self);
#line 683 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 3735 "gitg-history.c"
}


static void ___lambda107__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 661 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__lambda107_ (self);
#line 3742 "gitg-history.c"
}


static GtkMenu* gitg_history_activity_popup_menu_for_ref (GitgHistoryActivity* self, GitgRef* reference) {
	GtkMenu* result = NULL;
	Block53Data* _data53_;
	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;
	GeeLinkedList* _tmp11_ = NULL;
	GitgExtApplication* _tmp12_ = NULL;
	GitgExtApplication* _tmp13_ = NULL;
	GitgExtApplication* _tmp14_ = NULL;
	GitgHistoryActionInterface* _tmp15_ = NULL;
	GitgRef* _tmp16_ = NULL;
	GitgRefActionRename* _tmp17_ = NULL;
	GitgRefActionRename* _tmp18_ = NULL;
	GeeLinkedList* _tmp19_ = NULL;
	GitgExtApplication* _tmp20_ = NULL;
	GitgExtApplication* _tmp21_ = NULL;
	GitgExtApplication* _tmp22_ = NULL;
	GitgHistoryActionInterface* _tmp23_ = NULL;
	GitgRef* _tmp24_ = NULL;
	GitgRefActionDelete* _tmp25_ = NULL;
	GitgRefActionDelete* _tmp26_ = NULL;
	GeeLinkedList* _tmp27_ = NULL;
	GitgExtApplication* _tmp28_ = NULL;
	GitgExtApplication* _tmp29_ = NULL;
	GitgExtApplication* _tmp30_ = NULL;
	GitgHistoryActionInterface* _tmp31_ = NULL;
	GitgRef* _tmp32_ = NULL;
	GitgRefActionCopyName* _tmp33_ = NULL;
	GitgRefActionCopyName* _tmp34_ = NULL;
	GeeLinkedList* _tmp35_ = NULL;
	GitgExtApplication* _tmp36_ = NULL;
	GitgExtApplication* _tmp37_ = NULL;
	GitgExtApplication* _tmp38_ = NULL;
	GitgHistoryActionInterface* _tmp39_ = NULL;
	GitgRef* _tmp40_ = NULL;
	GitgRefActionFetch* _tmp41_ = NULL;
	GitgRefActionFetch* _tmp42_ = NULL;
	PeasExtensionSet* exts = NULL;
	GitgPluginsEngine* _tmp43_ = NULL;
	GitgPluginsEngine* _tmp44_ = NULL;
	GitgExtApplication* _tmp45_ = NULL;
	GitgExtApplication* _tmp46_ = NULL;
	GitgExtApplication* _tmp47_ = NULL;
	GitgHistoryActionInterface* _tmp48_ = NULL;
	GitgRef* _tmp49_ = NULL;
	PeasExtensionSet* _tmp50_ = NULL;
	PeasExtensionSet* _tmp51_ = NULL;
	PeasExtensionSet* _tmp52_ = NULL;
	GeeLinkedList* _tmp53_ = NULL;
	gboolean _tmp54_ = FALSE;
	gboolean _tmp55_ = FALSE;
	GtkMenu* menu = NULL;
	GtkMenu* _tmp56_ = NULL;
	GtkSeparatorMenuItem* sep = NULL;
	GtkSeparatorMenuItem* _tmp70_ = NULL;
	GtkSeparatorMenuItem* _tmp71_ = NULL;
	GtkMenu* _tmp72_ = NULL;
	GtkSeparatorMenuItem* _tmp73_ = NULL;
	const gchar* _tmp74_ = NULL;
	GtkCheckMenuItem* _tmp75_ = NULL;
	gchar** _tmp76_ = NULL;
	gint _tmp76__length1 = 0;
	GtkCheckMenuItem* _tmp83_ = NULL;
	GtkCheckMenuItem* _tmp84_ = NULL;
	GtkMenu* _tmp85_ = NULL;
	GtkCheckMenuItem* _tmp86_ = NULL;
	GtkMenu* _tmp87_ = NULL;
	GeeLinkedList* _tmp88_ = NULL;
	GeeLinkedList* _tmp89_ = NULL;
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_ = g_slice_new0 (Block53Data);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_->_ref_count_ = 1;
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_->self = g_object_ref (self);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = reference;
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_data53_->reference);
#line 607 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_->reference = _tmp1_;
#line 609 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gee_linked_list_new (GITG_EXT_TYPE_REF_ACTION, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 609 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_->actions = _tmp2_;
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = self->priv->d_main;
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_history_paned_get_refs_list (_tmp6_);
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = gitg_history_action_interface_new (_tmp5_, _tmp8_);
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = _tmp9_;
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp5_);
#line 611 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	af = _tmp10_;
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = _data53_->actions;
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = _tmp12_;
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = af;
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _data53_->reference;
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gitg_ref_action_rename_new (_tmp14_, (GitgExtRefActionInterface*) _tmp15_, _tmp16_);
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _tmp17_;
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp11_, (GitgExtRefAction*) _tmp18_);
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp18_);
#line 613 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp14_);
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _data53_->actions;
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = _tmp20_;
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = _tmp21_;
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = af;
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = _data53_->reference;
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = gitg_ref_action_delete_new (_tmp22_, (GitgExtRefActionInterface*) _tmp23_, _tmp24_);
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = _tmp25_;
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp19_, (GitgExtRefAction*) _tmp26_);
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp26_);
#line 614 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp22_);
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = _data53_->actions;
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = _tmp28_;
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = _tmp29_;
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = af;
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = _data53_->reference;
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = gitg_ref_action_copy_name_new (_tmp30_, (GitgExtRefActionInterface*) _tmp31_, _tmp32_);
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = _tmp33_;
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp27_, (GitgExtRefAction*) _tmp34_);
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp34_);
#line 615 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp30_);
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = _data53_->actions;
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp36_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = _tmp36_;
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = _tmp37_;
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = af;
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp40_ = _data53_->reference;
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = gitg_ref_action_fetch_new (_tmp38_, (GitgExtRefActionInterface*) _tmp39_, _tmp40_);
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = _tmp41_;
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_ref_action (self, _tmp35_, (GitgExtRefAction*) _tmp42_);
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp42_);
#line 616 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp38_);
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = gitg_plugins_engine_get_default ();
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = _tmp43_;
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = _tmp45_;
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = _tmp46_;
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = af;
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp49_ = _data53_->reference;
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp50_ = peas_extension_set_new ((PeasEngine*) _tmp44_, GITG_EXT_TYPE_REF_ACTION, "application", _tmp47_, "action_interface", _tmp48_, "reference", _tmp49_, NULL);
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp51_ = _tmp50_;
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp47_);
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp44_);
#line 618 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	exts = _tmp51_;
#line 627 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp52_ = exts;
#line 627 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	peas_extension_set_foreach (_tmp52_, ___lambda106__peas_extension_set_foreach_func, _data53_);
#line 631 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp53_ = _data53_->actions;
#line 631 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp54_ = gee_collection_get_is_empty ((GeeCollection*) _tmp53_);
#line 631 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp55_ = _tmp54_;
#line 631 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp55_) {
#line 633 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 633 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (exts);
#line 633 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (af);
#line 633 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		block53_data_unref (_data53_);
#line 633 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_data53_ = NULL;
#line 633 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4003 "gitg-history.c"
	}
#line 636 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp56_ = (GtkMenu*) gtk_menu_new ();
#line 636 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp56_);
#line 636 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	menu = _tmp56_;
#line 4011 "gitg-history.c"
	{
		GeeLinkedList* _ac_list = NULL;
		GeeLinkedList* _tmp57_ = NULL;
		GeeLinkedList* _tmp58_ = NULL;
		gint _ac_size = 0;
		GeeLinkedList* _tmp59_ = NULL;
		gint _tmp60_ = 0;
		gint _tmp61_ = 0;
		gint _ac_index = 0;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp57_ = _data53_->actions;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp58_ = _g_object_ref0 (_tmp57_);
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_ac_list = _tmp58_;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp59_ = _ac_list;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp60_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp59_);
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp61_ = _tmp60_;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_ac_size = _tmp61_;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_ac_index = -1;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 4039 "gitg-history.c"
			gint _tmp62_ = 0;
			gint _tmp63_ = 0;
			gint _tmp64_ = 0;
			GitgExtRefAction* ac = NULL;
			GeeLinkedList* _tmp65_ = NULL;
			gint _tmp66_ = 0;
			gpointer _tmp67_ = NULL;
			GitgExtRefAction* _tmp68_ = NULL;
			GtkMenu* _tmp69_ = NULL;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp62_ = _ac_index;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_ac_index = _tmp62_ + 1;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp63_ = _ac_index;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp64_ = _ac_size;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp63_ < _tmp64_)) {
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				break;
#line 4061 "gitg-history.c"
			}
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp65_ = _ac_list;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp66_ = _ac_index;
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp67_ = gee_abstract_list_get ((GeeAbstractList*) _tmp65_, _tmp66_);
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			ac = (GitgExtRefAction*) _tmp67_;
#line 640 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp68_ = ac;
#line 640 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp69_ = menu;
#line 640 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			gitg_ext_action_populate_menu ((GitgExtAction*) _tmp68_, _tmp69_);
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (ac);
#line 4079 "gitg-history.c"
		}
#line 638 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_ac_list);
#line 4083 "gitg-history.c"
	}
#line 643 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp70_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
#line 643 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp70_);
#line 643 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	sep = _tmp70_;
#line 644 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp71_ = sep;
#line 644 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp71_);
#line 645 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp72_ = menu;
#line 645 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp73_ = sep;
#line 645 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp72_, (GtkWidget*) ((GtkMenuItem*) _tmp73_));
#line 647 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp74_ = _ ("Mainline");
#line 647 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp75_ = (GtkCheckMenuItem*) gtk_check_menu_item_new_with_label (_tmp74_);
#line 647 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp75_);
#line 647 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_->item = _tmp75_;
#line 648 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_->pos = 0;
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp76_ = self->priv->d_mainline;
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp76__length1 = self->priv->d_mainline_length1;
#line 4115 "gitg-history.c"
	{
		gchar** ml_collection = NULL;
		gint ml_collection_length1 = 0;
		gint _ml_collection_size_ = 0;
		gint ml_it = 0;
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ml_collection = _tmp76_;
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		ml_collection_length1 = _tmp76__length1;
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		for (ml_it = 0; ml_it < _tmp76__length1; ml_it = ml_it + 1) {
#line 4127 "gitg-history.c"
			gchar* _tmp77_ = NULL;
			gchar* ml = NULL;
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp77_ = g_strdup (ml_collection[ml_it]);
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			ml = _tmp77_;
#line 4134 "gitg-history.c"
			{
				const gchar* _tmp78_ = NULL;
				GitgRef* _tmp79_ = NULL;
				const gchar* _tmp80_ = NULL;
				gint _tmp82_ = 0;
#line 652 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp78_ = ml;
#line 652 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp79_ = _data53_->reference;
#line 652 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp80_ = ggit_ref_get_name ((GgitRef*) _tmp79_);
#line 652 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (g_strcmp0 (_tmp78_, _tmp80_) == 0) {
#line 4148 "gitg-history.c"
					GtkCheckMenuItem* _tmp81_ = NULL;
#line 654 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp81_ = _data53_->item;
#line 654 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					gtk_check_menu_item_set_active (_tmp81_, TRUE);
#line 655 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_free0 (ml);
#line 655 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					break;
#line 4158 "gitg-history.c"
				}
#line 658 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp82_ = _data53_->pos;
#line 658 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_data53_->pos = _tmp82_ + 1;
#line 650 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_free0 (ml);
#line 4166 "gitg-history.c"
			}
		}
	}
#line 661 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp83_ = _data53_->item;
#line 661 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_data ((GtkMenuItem*) _tmp83_, "activate", (GCallback) ___lambda107__gtk_menu_item_activate, block53_data_ref (_data53_), (GClosureNotify) block53_data_unref, 0);
#line 686 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp84_ = _data53_->item;
#line 686 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp84_);
#line 687 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp85_ = menu;
#line 687 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp86_ = _data53_->item;
#line 687 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp85_, (GtkWidget*) ((GtkMenuItem*) _tmp86_));
#line 690 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp87_ = menu;
#line 690 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp88_ = _data53_->actions;
#line 690 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp89_ = _g_object_ref0 (_tmp88_);
#line 690 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_set_data_full ((GObject*) _tmp87_, "gitg-ext-actions", _tmp89_, g_object_unref);
#line 691 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = menu;
#line 691 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (sep);
#line 691 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (exts);
#line 691 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (af);
#line 691 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	block53_data_unref (_data53_);
#line 691 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data53_ = NULL;
#line 691 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4206 "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 694 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 696 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = event;
#line 696 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != NULL) {
#line 4234 "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 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = self->priv->d_main;
#line 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = gitg_history_paned_get_refs_list (_tmp1_);
#line 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = _tmp2_;
#line 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = event;
#line 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = _tmp4_->y;
#line 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = gtk_list_box_get_row_at_y ((GtkListBox*) _tmp3_, (gint) _tmp5_);
#line 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = _g_object_ref0 (_tmp6_);
#line 698 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		row = _tmp7_;
#line 699 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp8_ = self->priv->d_main;
#line 699 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = gitg_history_paned_get_refs_list (_tmp8_);
#line 699 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = _tmp9_;
#line 699 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = row;
#line 699 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gtk_list_box_select_row ((GtkListBox*) _tmp10_, _tmp11_);
#line 696 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (row);
#line 4275 "gitg-history.c"
	}
#line 702 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_main;
#line 702 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_history_paned_get_refs_list (_tmp12_);
#line 702 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 702 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_history_refs_list_get_selection (_tmp14_);
#line 702 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 702 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	references = _tmp16_;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = references;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gee_collection_get_is_empty ((GeeCollection*) _tmp18_);
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp20_) {
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = TRUE;
#line 4299 "gitg-history.c"
	} else {
		GeeList* _tmp21_ = NULL;
		gpointer _tmp22_ = NULL;
		GitgRef* _tmp23_ = NULL;
		GeeList* _tmp24_ = NULL;
		gpointer _tmp25_ = NULL;
		GitgRef* _tmp26_ = NULL;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = references;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp22_ = gee_list_first (_tmp21_);
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp23_ = (GitgRef*) _tmp22_;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp24_ = references;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp25_ = gee_list_last (_tmp24_);
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp26_ = (GitgRef*) _tmp25_;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp17_ = _tmp23_ != _tmp26_;
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp26_);
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_tmp23_);
#line 4325 "gitg-history.c"
	}
#line 704 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp17_) {
#line 706 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = NULL;
#line 706 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (references);
#line 706 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 4335 "gitg-history.c"
	}
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = references;
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = gee_list_first (_tmp27_);
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = (GitgRef*) _tmp28_;
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = gitg_history_activity_popup_menu_for_ref (self, _tmp29_);
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = _tmp30_;
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp29_);
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp31_;
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (references);
#line 709 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4355 "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 712 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 712 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (r != NULL, NULL);
#line 714 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	id = NULL;
#line 4369 "gitg-history.c"
	{
		GgitRef* resolved = NULL;
		GgitRef* _tmp0_ = NULL;
		GgitRef* _tmp1_ = NULL;
		GgitRef* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 718 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = r;
#line 718 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp1_ = ggit_ref_resolve (_tmp0_, &_inner_error_);
#line 718 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		resolved = _tmp1_;
#line 718 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4384 "gitg-history.c"
			goto __catch88_g_error;
		}
#line 720 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = resolved;
#line 720 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = ggit_ref_is_tag (_tmp2_);
#line 720 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp3_) {
#line 4393 "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 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp4_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp5_ = _tmp4_;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp6_ = _tmp5_;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp7_ = gitg_ext_application_get_repository (_tmp6_);
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp8_ = _tmp7_;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp9_ = _tmp8_;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp10_ = resolved;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp11_ = ggit_ref_get_target (_tmp10_);
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp12_ = _tmp11_;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp13_ = gitg_repository_lookup (_tmp9_, ggit_tag_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp12_, &_inner_error_);
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp14_ = (GgitTag*) _tmp13_;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (_tmp12_);
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp9_);
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (_tmp6_);
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			t = _tmp14_;
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 722 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (resolved);
#line 4442 "gitg-history.c"
				goto __catch88_g_error;
			}
#line 724 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp15_ = t;
#line 724 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp16_ = ggit_tag_get_target_id (_tmp15_);
#line 724 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 724 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			id = _tmp16_;
#line 720 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (t);
#line 4455 "gitg-history.c"
		} else {
			GgitRef* _tmp17_ = NULL;
			GgitOId* _tmp18_ = NULL;
#line 728 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp17_ = resolved;
#line 728 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp18_ = ggit_ref_get_target (_tmp17_);
#line 728 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 728 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			id = _tmp18_;
#line 4467 "gitg-history.c"
		}
#line 716 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (resolved);
#line 4471 "gitg-history.c"
	}
	goto __finally88;
	__catch88_g_error:
	{
#line 716 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 716 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_inner_error_ = NULL;
#line 4480 "gitg-history.c"
	}
	__finally88:
#line 716 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 716 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		__vala_GgitOId_free0 (id);
#line 716 "/home/jesse/devel/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 716 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_clear_error (&_inner_error_);
#line 716 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return NULL;
#line 4493 "gitg-history.c"
	}
#line 733 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = id;
#line 733 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 4499 "gitg-history.c"
}


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


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


static void _vala_array_add18 (GgitOId*** array, int* length, int* size, GgitOId* value) {
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (GgitOId*, *array, (*size) + 1);
#line 4524 "gitg-history.c"
	}
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 4530 "gitg-history.c"
}


static void _vala_array_add19 (GgitOId*** array, int* length, int* size, GgitOId* value) {
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (GgitOId*, *array, (*size) + 1);
#line 4541 "gitg-history.c"
	}
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 4547 "gitg-history.c"
}


static void _vala_array_add20 (GgitOId*** array, int* length, int* size, GgitOId* value) {
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if ((*length) == (*size)) {
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		*array = g_renew (GgitOId*, *array, (*size) + 1);
#line 4558 "gitg-history.c"
	}
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[(*length)++] = value;
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	(*array)[*length] = NULL;
#line 4564 "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;
	GitgCommitModel* _tmp92_ = NULL;
	GgitOId** _tmp93_ = NULL;
	gint _tmp93__length1 = 0;
	GitgCommitModel* _tmp94_ = NULL;
	GeeHashSet* _tmp95_ = NULL;
	gint _tmp96_ = 0;
	gpointer* _tmp97_ = NULL;
	GgitOId** _tmp98_ = NULL;
	gint _tmp98__length1 = 0;
	GitgCommitModel* _tmp99_ = NULL;
	GError * _inner_error_ = NULL;
#line 736 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 738 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_selected;
#line 738 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp0_);
#line 740 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 740 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	include = _tmp1_;
#line 743 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_main;
#line 743 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gitg_history_paned_get_refs_list (_tmp2_);
#line 743 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 743 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_history_refs_list_get_is_all (_tmp4_);
#line 743 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 743 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	isall = _tmp6_;
#line 744 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = self->priv->d_main;
#line 744 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gitg_history_paned_get_refs_list (_tmp7_);
#line 744 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _tmp8_;
#line 744 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_history_refs_list_get_is_header (_tmp9_);
#line 744 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = _tmp10_;
#line 744 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	isheader = _tmp11_;
#line 746 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 746 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	perm_uniq = _tmp12_;
#line 749 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = g_new0 (GgitOId*, 0 + 1);
#line 749 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	permanent = _tmp13_;
#line 749 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	permanent_length1 = 0;
#line 749 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_permanent_size_ = permanent_length1;
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = gitg_ext_application_get_repository (_tmp16_);
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = _tmp17_;
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_ != NULL;
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp19_);
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp16_);
#line 751 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp20_) {
#line 4674 "gitg-history.c"
		gchar** _tmp21_ = NULL;
		gint _tmp21__length1 = 0;
		GSettings* _tmp42_ = NULL;
		gboolean _tmp43_ = FALSE;
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21_ = self->priv->d_mainline;
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp21__length1 = self->priv->d_mainline_length1;
#line 4683 "gitg-history.c"
		{
			gchar** ml_collection = NULL;
			gint ml_collection_length1 = 0;
			gint _ml_collection_size_ = 0;
			gint ml_it = 0;
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			ml_collection = _tmp21_;
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			ml_collection_length1 = _tmp21__length1;
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			for (ml_it = 0; ml_it < _tmp21__length1; ml_it = ml_it + 1) {
#line 4695 "gitg-history.c"
				gchar* _tmp22_ = NULL;
				gchar* ml = NULL;
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp22_ = g_strdup (ml_collection[ml_it]);
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				ml = _tmp22_;
#line 4702 "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 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp24_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp25_ = _tmp24_;
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp26_ = _tmp25_;
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp27_ = gitg_ext_application_get_repository (_tmp26_);
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp28_ = _tmp27_;
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp29_ = _tmp28_;
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp30_ = ml;
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp31_ = gitg_repository_lookup_reference (_tmp29_, _tmp30_, &_inner_error_);
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp32_ = _tmp31_;
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp29_);
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp26_);
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp23_ = _tmp32_;
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4745 "gitg-history.c"
							goto __catch89_g_error;
						}
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp33_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp23_);
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 759 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						id = _tmp33_;
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (_tmp23_);
#line 4756 "gitg-history.c"
					}
					goto __finally89;
					__catch89_g_error:
					{
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_inner_error_ = NULL;
#line 760 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 760 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_g_free0 (ml);
#line 760 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						continue;
#line 4771 "gitg-history.c"
					}
					__finally89:
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						__vala_GgitOId_free0 (id);
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_g_free0 (ml);
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (perm_uniq);
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_g_object_unref0 (include);
#line 757 "/home/jesse/devel/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 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						g_clear_error (&_inner_error_);
#line 757 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						return;
#line 4792 "gitg-history.c"
					}
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp35_ = id;
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (_tmp35_ != NULL) {
#line 4798 "gitg-history.c"
						GeeHashSet* _tmp36_ = NULL;
						GgitOId* _tmp37_ = NULL;
						gboolean _tmp38_ = FALSE;
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp36_ = perm_uniq;
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp37_ = id;
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp38_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp36_, _tmp37_);
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp34_ = _tmp38_;
#line 4810 "gitg-history.c"
					} else {
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp34_ = FALSE;
#line 4814 "gitg-history.c"
					}
#line 762 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (_tmp34_) {
#line 4818 "gitg-history.c"
						GgitOId** _tmp39_ = NULL;
						gint _tmp39__length1 = 0;
						GgitOId* _tmp40_ = NULL;
						GgitOId* _tmp41_ = NULL;
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp39_ = permanent;
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp39__length1 = permanent_length1;
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp40_ = id;
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp41_ = __vala_GgitOId_copy0 (_tmp40_);
#line 764 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_vala_array_add18 (&permanent, &permanent_length1, &_permanent_size_, _tmp41_);
#line 4833 "gitg-history.c"
					}
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					__vala_GgitOId_free0 (id);
#line 753 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_g_free0 (ml);
#line 4839 "gitg-history.c"
				}
			}
		}
#line 768 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp42_ = self->priv->d_settings;
#line 768 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp43_ = g_settings_get_boolean (_tmp42_, "mainline-head");
#line 768 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		if (_tmp43_) {
#line 4849 "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 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp45_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp46_ = _tmp45_;
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp47_ = _tmp46_;
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp48_ = gitg_ext_application_get_repository (_tmp47_);
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp49_ = _tmp48_;
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp50_ = _tmp49_;
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp51_ = gitg_repository_get_head (_tmp50_, &_inner_error_);
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp52_ = _tmp51_;
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp50_);
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp47_);
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp44_ = _tmp52_;
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4888 "gitg-history.c"
					goto __catch90_g_error;
				}
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp53_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp44_);
#line 772 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				head = _tmp53_;
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp55_ = head;
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (_tmp55_ != NULL) {
#line 4899 "gitg-history.c"
					GeeHashSet* _tmp56_ = NULL;
					GgitOId* _tmp57_ = NULL;
					gboolean _tmp58_ = FALSE;
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp56_ = perm_uniq;
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp57_ = head;
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp58_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp56_, _tmp57_);
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp54_ = _tmp58_;
#line 4911 "gitg-history.c"
				} else {
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp54_ = FALSE;
#line 4915 "gitg-history.c"
				}
#line 774 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (_tmp54_) {
#line 4919 "gitg-history.c"
					GgitOId** _tmp59_ = NULL;
					gint _tmp59__length1 = 0;
					GgitOId* _tmp60_ = NULL;
					GgitOId* _tmp61_ = NULL;
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp59_ = permanent;
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp59__length1 = permanent_length1;
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp60_ = head;
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp61_ = __vala_GgitOId_copy0 (_tmp60_);
#line 776 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_vala_array_add19 (&permanent, &permanent_length1, &_permanent_size_, _tmp61_);
#line 4934 "gitg-history.c"
				}
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				__vala_GgitOId_free0 (head);
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (_tmp44_);
#line 4940 "gitg-history.c"
			}
			goto __finally90;
			__catch90_g_error:
			{
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				g_clear_error (&_inner_error_);
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_inner_error_ = NULL;
#line 4949 "gitg-history.c"
			}
			__finally90:
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (perm_uniq);
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (include);
#line 770 "/home/jesse/devel/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 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				g_clear_error (&_inner_error_);
#line 770 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				return;
#line 4966 "gitg-history.c"
			}
		}
	}
	{
		GeeList* _r_list = NULL;
		GitgHistoryPaned* _tmp62_ = NULL;
		GitgHistoryRefsList* _tmp63_ = NULL;
		GitgHistoryRefsList* _tmp64_ = NULL;
		GeeList* _tmp65_ = NULL;
		GeeList* _tmp66_ = NULL;
		gint _r_size = 0;
		GeeList* _tmp67_ = NULL;
		gint _tmp68_ = 0;
		gint _tmp69_ = 0;
		gint _r_index = 0;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp62_ = self->priv->d_main;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp63_ = gitg_history_paned_get_refs_list (_tmp62_);
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp64_ = _tmp63_;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp65_ = gitg_history_refs_list_get_selection (_tmp64_);
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp66_ = _tmp65_;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_r_list = _tmp66_;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp67_ = _r_list;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp68_ = gee_collection_get_size ((GeeCollection*) _tmp67_);
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp69_ = _tmp68_;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_r_size = _tmp69_;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_r_index = -1;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 5006 "gitg-history.c"
			gint _tmp70_ = 0;
			gint _tmp71_ = 0;
			gint _tmp72_ = 0;
			GitgRef* r = NULL;
			GeeList* _tmp73_ = NULL;
			gint _tmp74_ = 0;
			gpointer _tmp75_ = NULL;
			GgitOId* id = NULL;
			GitgRef* _tmp76_ = NULL;
			GgitOId* _tmp77_ = NULL;
			GgitOId* _tmp78_ = NULL;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp70_ = _r_index;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_r_index = _tmp70_ + 1;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp71_ = _r_index;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp72_ = _r_size;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp71_ < _tmp72_)) {
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				break;
#line 5030 "gitg-history.c"
			}
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp73_ = _r_list;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp74_ = _r_index;
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp75_ = gee_list_get (_tmp73_, _tmp74_);
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			r = (GitgRef*) _tmp75_;
#line 784 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp76_ = r;
#line 784 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp77_ = gitg_history_activity_id_for_ref (self, (GgitRef*) _tmp76_);
#line 784 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			id = _tmp77_;
#line 786 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp78_ = id;
#line 786 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (_tmp78_ != NULL) {
#line 5050 "gitg-history.c"
				GeeHashSet* _tmp79_ = NULL;
				GgitOId* _tmp80_ = NULL;
				gboolean _tmp81_ = FALSE;
#line 788 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp79_ = include;
#line 788 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp80_ = id;
#line 788 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp79_, _tmp80_);
#line 790 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp81_ = isall;
#line 790 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				if (!_tmp81_) {
#line 5064 "gitg-history.c"
					GeeHashSet* _tmp82_ = NULL;
					GgitOId* _tmp83_ = NULL;
					gboolean _tmp84_ = FALSE;
					gboolean _tmp85_ = FALSE;
#line 792 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp82_ = self->priv->d_selected;
#line 792 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp83_ = id;
#line 792 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					gee_abstract_collection_add ((GeeAbstractCollection*) _tmp82_, _tmp83_);
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					_tmp85_ = isheader;
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (!_tmp85_) {
#line 5079 "gitg-history.c"
						GeeHashSet* _tmp86_ = NULL;
						GgitOId* _tmp87_ = NULL;
						gboolean _tmp88_ = FALSE;
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp86_ = perm_uniq;
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp87_ = id;
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp88_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp86_, _tmp87_);
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp84_ = _tmp88_;
#line 5091 "gitg-history.c"
					} else {
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp84_ = FALSE;
#line 5095 "gitg-history.c"
					}
#line 794 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
					if (_tmp84_) {
#line 5099 "gitg-history.c"
						GgitOId** _tmp89_ = NULL;
						gint _tmp89__length1 = 0;
						GgitOId* _tmp90_ = NULL;
						GgitOId* _tmp91_ = NULL;
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp89_ = permanent;
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp89__length1 = permanent_length1;
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp90_ = id;
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_tmp91_ = __vala_GgitOId_copy0 (_tmp90_);
#line 796 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
						_vala_array_add20 (&permanent, &permanent_length1, &_permanent_size_, _tmp91_);
#line 5114 "gitg-history.c"
					}
				}
			}
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			__vala_GgitOId_free0 (id);
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (r);
#line 5122 "gitg-history.c"
		}
#line 782 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_r_list);
#line 5126 "gitg-history.c"
	}
#line 802 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp92_ = self->priv->d_commit_list_model;
#line 802 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp93_ = permanent;
#line 802 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp93__length1 = permanent_length1;
#line 802 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_permanent_lanes (_tmp92_, _tmp93_, _tmp93__length1);
#line 803 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp94_ = self->priv->d_commit_list_model;
#line 803 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp95_ = include;
#line 803 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp97_ = gee_collection_to_array ((GeeCollection*) _tmp95_, &_tmp96_);
#line 803 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp98_ = _tmp97_;
#line 803 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp98__length1 = _tmp96_;
#line 803 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_set_include (_tmp94_, _tmp98_, _tmp96_);
#line 803 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp98_ = (_vala_array_free (_tmp98_, _tmp98__length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 804 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp99_ = self->priv->d_commit_list_model;
#line 804 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_commit_model_reload (_tmp99_);
#line 736 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	permanent = (_vala_array_free (permanent, permanent_length1, (GDestroyNotify) _vala_GgitOId_free), NULL);
#line 736 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (perm_uniq);
#line 736 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (include);
#line 5160 "gitg-history.c"
}


static void ___lambda109_ (GitgHistoryActivity* self) {
#line 829 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_ext_selectable_set_selectable_mode ((GitgExtSelectable*) self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 5167 "gitg-history.c"
}


static void ____lambda109__gitg_ext_commit_action_finished (GitgExtCommitAction* _sender, gpointer self) {
#line 828 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	___lambda109_ ((GitgHistoryActivity*) self);
#line 5174 "gitg-history.c"
}


static void gitg_history_activity_add_commit_action (GitgHistoryActivity* self, GeeLinkedList* actions, GitgExtCommitAction* action) {
	gboolean _tmp0_ = FALSE;
	GitgExtCommitAction* _tmp1_ = NULL;
#line 822 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 822 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (actions != NULL);
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = action;
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp1_ != NULL) {
#line 5189 "gitg-history.c"
		GitgExtCommitAction* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = action;
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) _tmp2_);
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp4_ = _tmp3_;
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = _tmp4_;
#line 5201 "gitg-history.c"
	} else {
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp0_ = FALSE;
#line 5205 "gitg-history.c"
	}
#line 825 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_) {
#line 5209 "gitg-history.c"
		GeeLinkedList* _tmp5_ = NULL;
		GitgExtCommitAction* _tmp6_ = NULL;
		GitgExtCommitAction* _tmp7_ = NULL;
#line 827 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp5_ = actions;
#line 827 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp6_ = action;
#line 827 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp6_);
#line 828 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp7_ = action;
#line 828 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_signal_connect_object (_tmp7_, "finished", (GCallback) ____lambda109__gitg_ext_commit_action_finished, self, 0);
#line 5223 "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 911 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 911 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (s != NULL, NULL);
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = s;
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_utf8_normalize (_tmp0_, (gssize) (-1), G_NORMALIZE_ALL);
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = g_utf8_casefold (_tmp2_, (gssize) (-1));
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = _tmp3_;
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (_tmp2_);
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp4_;
#line 913 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5255 "gitg-history.c"
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 1278 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1278 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, FALSE);
#line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = needle;
#line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
#line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	result = _tmp1_ != NULL;
#line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 5275 "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 916 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 916 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (model != NULL, FALSE);
#line 916 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (key != NULL, FALSE);
#line 916 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 918 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_commit_list_model;
#line 918 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = *iter;
#line 918 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = gitg_commit_model_commit_from_iter (_tmp0_, &_tmp1_);
#line 918 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	c = _tmp2_;
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = c;
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = ggit_object_get_id ((GgitObject*) _tmp3_);
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = key;
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = ggit_oid_has_prefix (_tmp5_, _tmp6_);
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (_tmp5_);
#line 920 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_) {
#line 922 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 922 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 922 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 5346 "gitg-history.c"
	}
#line 925 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = key;
#line 925 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_history_activity_normalize (self, _tmp9_);
#line 925 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	nkey = _tmp10_;
#line 926 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = c;
#line 926 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = ggit_commit_get_subject ((GgitCommit*) _tmp11_);
#line 926 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_history_activity_normalize (self, _tmp12_);
#line 926 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	subject = _tmp13_;
#line 928 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = subject;
#line 928 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = nkey;
#line 928 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = string_contains (_tmp14_, _tmp15_);
#line 928 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp16_) {
#line 930 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 930 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_free0 (subject);
#line 930 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_free0 (nkey);
#line 930 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 930 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 5380 "gitg-history.c"
	}
#line 933 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = c;
#line 933 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = ggit_commit_get_message ((GgitCommit*) _tmp17_);
#line 933 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = gitg_history_activity_normalize (self, _tmp18_);
#line 933 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	message = _tmp19_;
#line 935 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = message;
#line 935 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = nkey;
#line 935 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = string_contains (_tmp20_, _tmp21_);
#line 935 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp22_) {
#line 937 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		result = FALSE;
#line 937 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_free0 (message);
#line 937 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_free0 (subject);
#line 937 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_free0 (nkey);
#line 937 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (c);
#line 937 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		return result;
#line 5410 "gitg-history.c"
	}
#line 940 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 940 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (message);
#line 940 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (subject);
#line 940 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (nkey);
#line 940 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (c);
#line 940 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5424 "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/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_application;
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5443 "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/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->_application);
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->_application = _tmp1_;
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "application");
#line 5463 "gitg-history.c"
}


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


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


void gitg_history_activity_set_repository (GitgHistoryActivity* self, GitgRepository* value) {
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
#line 77 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (self != NULL);
#line 79 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_repository;
#line 79 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = value;
#line 79 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ != _tmp1_) {
#line 5509 "gitg-history.c"
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
#line 81 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp2_ = value;
#line 81 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp3_ = _g_object_ref0 (_tmp2_);
#line 81 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self->priv->d_repository);
#line 81 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self->priv->d_repository = _tmp3_;
#line 82 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_reload (self);
#line 5522 "gitg-history.c"
	}
#line 77 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "repository");
#line 5526 "gitg-history.c"
}


static gboolean gitg_history_activity_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgHistoryActivity* self;
#line 272 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 272 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 272 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5539 "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 277 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 277 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _ ("History");
#line 277 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 277 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 277 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5558 "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 282 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 282 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _ ("Examine the history of the repository");
#line 282 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 282 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 282 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5577 "gitg-history.c"
}


static gchar* gitg_history_activity_real_get_icon (GitgExtUIElement* base) {
	gchar* result;
	GitgHistoryActivity* self;
	gchar* _tmp0_ = NULL;
#line 287 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 287 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = g_strdup ("view-list-symbolic");
#line 287 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 287 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5593 "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 292 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 294 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 294 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp0_ == NULL) {
#line 296 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_build_ui (self);
#line 5611 "gitg-history.c"
	}
#line 299 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_main;
#line 299 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _g_object_ref0 ((GtkWidget*) _tmp1_);
#line 299 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp2_;
#line 299 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5621 "gitg-history.c"
}


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


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


static GitgExtSelectionMode gitg_history_activity_real_get_selectable_mode (GitgExtSelectable* base) {
	GitgExtSelectionMode result;
	GitgHistoryActivity* self;
	GitgExtSelectionMode _tmp0_ = 0;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_selectable_mode;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5671 "gitg-history.c"
}


static void gitg_history_activity_real_set_selectable_mode (GitgExtSelectable* base, GitgExtSelectionMode value) {
	GitgHistoryActivity* self;
	GitgExtSelectionMode _tmp0_ = 0;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->_selectable_mode = _tmp0_;
#line 809 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "selectable-mode");
#line 5686 "gitg-history.c"
}


static gboolean gitg_history_activity_real_get_selectable_available (GitgExtSelectable* base) {
	gboolean result;
	GitgHistoryActivity* self;
#line 814 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 814 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = TRUE;
#line 814 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5699 "gitg-history.c"
}


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


static Block54Data* block54_data_ref (Block54Data* _data54_) {
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data54_->_ref_count_);
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return _data54_;
#line 5721 "gitg-history.c"
}


static void block54_data_unref (void * _userdata_) {
	Block54Data* _data54_;
	_data54_ = (Block54Data*) _userdata_;
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data54_->_ref_count_)) {
#line 5730 "gitg-history.c"
		GitgHistoryActivity* self;
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self = _data54_->self;
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data54_->actions);
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data54_->commit);
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (self);
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block54Data, _data54_);
#line 5742 "gitg-history.c"
	}
}


static gboolean _gitg_history_activity_action_widget___lambda110_ (Block54Data* _data54_, GgitCommit* c) {
	GitgHistoryActivity* self;
	gboolean result = FALSE;
	GgitCommit* _tmp0_ = NULL;
	GitgCommit* _tmp1_ = NULL;
#line 840 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data54_->self;
#line 840 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_val_if_fail (c != NULL, FALSE);
#line 841 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = c;
#line 841 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_TYPE_COMMIT, GitgCommit));
#line 841 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_data54_->commit);
#line 841 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_->commit = _tmp1_;
#line 842 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = FALSE;
#line 842 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5768 "gitg-history.c"
}


static gboolean __gitg_history_activity_action_widget___lambda110__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self) {
	gboolean result;
	result = _gitg_history_activity_action_widget___lambda110_ (self, object);
#line 840 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 5777 "gitg-history.c"
}


static void _gitg_history_activity_action_widget___lambda120_ (Block54Data* _data54_, PeasExtensionSet* extset, PeasPluginInfo* info, PeasExtension* extension) {
	GitgHistoryActivity* self;
	GeeLinkedList* _tmp0_ = NULL;
	PeasExtension* _tmp1_ = NULL;
#line 873 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data54_->self;
#line 873 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extset != NULL);
#line 873 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (info != NULL);
#line 873 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (extension != NULL);
#line 874 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data54_->actions;
#line 874 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = extension;
#line 874 "/home/jesse/devel/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 5799 "gitg-history.c"
}


static void __gitg_history_activity_action_widget___lambda120__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self) {
#line 873 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gitg_history_activity_action_widget___lambda120_ (self, set, info, exten);
#line 5806 "gitg-history.c"
}


static Block55Data* block55_data_ref (Block55Data* _data55_) {
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_atomic_int_inc (&_data55_->_ref_count_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return _data55_;
#line 5815 "gitg-history.c"
}


static void block55_data_unref (void * _userdata_) {
	Block55Data* _data55_;
	_data55_ = (Block55Data*) _userdata_;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (g_atomic_int_dec_and_test (&_data55_->_ref_count_)) {
#line 5824 "gitg-history.c"
		GitgHistoryActivity* self;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		self = _data55_->_data54_->self;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_data55_->action);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		block54_data_unref (_data55_->_data54_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_data55_->_data54_ = NULL;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_slice_free (Block55Data, _data55_);
#line 5836 "gitg-history.c"
	}
}


static void _gitg_history_activity_action_widget______lambda121_ (Block55Data* _data55_) {
	Block54Data* _data54_;
	GitgHistoryActivity* self;
	GitgExtCommitAction* _tmp0_ = NULL;
#line 894 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_ = _data55_->_data54_;
#line 894 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = _data54_->self;
#line 895 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = _data55_->action;
#line 895 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_emit_by_name ((GitgExtUIElement*) _tmp0_, "activate");
#line 5853 "gitg-history.c"
}


static void __gitg_history_activity_action_widget______lambda121__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 894 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gitg_history_activity_action_widget______lambda121_ (self);
#line 5860 "gitg-history.c"
}


static GtkWidget* gitg_history_activity_real_get_action_widget (GitgExtSelectable* base) {
	GtkWidget* result;
	GitgHistoryActivity* self;
	Block54Data* _data54_;
	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;
	GeeLinkedList* _tmp8_ = NULL;
	GeeLinkedList* _tmp9_ = NULL;
	GitgExtApplication* _tmp10_ = NULL;
	GitgExtApplication* _tmp11_ = NULL;
	GitgExtApplication* _tmp12_ = NULL;
	GitgHistoryActionInterface* _tmp13_ = NULL;
	GitgCommit* _tmp14_ = NULL;
	GitgCommitActionCreateBranch* _tmp15_ = NULL;
	GitgCommitActionCreateBranch* _tmp16_ = NULL;
	GeeLinkedList* _tmp17_ = NULL;
	GitgExtApplication* _tmp18_ = NULL;
	GitgExtApplication* _tmp19_ = NULL;
	GitgExtApplication* _tmp20_ = NULL;
	GitgHistoryActionInterface* _tmp21_ = NULL;
	GitgCommit* _tmp22_ = NULL;
	GitgCommitActionCreateTag* _tmp23_ = NULL;
	GitgCommitActionCreateTag* _tmp24_ = NULL;
	GeeLinkedList* _tmp25_ = NULL;
	GitgExtApplication* _tmp26_ = NULL;
	GitgExtApplication* _tmp27_ = NULL;
	GitgExtApplication* _tmp28_ = NULL;
	GitgHistoryActionInterface* _tmp29_ = NULL;
	GitgCommit* _tmp30_ = NULL;
	GitgCommitActionCreatePatch* _tmp31_ = NULL;
	GitgCommitActionCreatePatch* _tmp32_ = NULL;
	PeasExtensionSet* exts = NULL;
	GitgPluginsEngine* _tmp33_ = NULL;
	GitgPluginsEngine* _tmp34_ = NULL;
	GitgExtApplication* _tmp35_ = NULL;
	GitgExtApplication* _tmp36_ = NULL;
	GitgExtApplication* _tmp37_ = NULL;
	GitgHistoryActionInterface* _tmp38_ = NULL;
	GitgCommit* _tmp39_ = NULL;
	PeasExtensionSet* _tmp40_ = NULL;
	PeasExtensionSet* _tmp41_ = NULL;
	PeasExtensionSet* _tmp42_ = NULL;
	GtkActionBar* ab = NULL;
	GtkActionBar* _tmp43_ = NULL;
	GtkActionBar* _tmp44_ = NULL;
	GtkBox* box = NULL;
	GtkBox* _tmp45_ = NULL;
	GtkBox* _tmp46_ = NULL;
	GtkBox* _tmp47_ = NULL;
	GtkBox* _tmp48_ = NULL;
	GtkActionBar* _tmp81_ = NULL;
	GtkBox* _tmp82_ = NULL;
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_ = g_slice_new0 (Block54Data);
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_->_ref_count_ = 1;
#line 836 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_->self = g_object_ref (self);
#line 838 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_->commit = NULL;
#line 840 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_ext_history_foreach_selected ((GitgExtHistory*) self, __gitg_history_activity_action_widget___lambda110__gitg_ext_foreach_commit_selection_func, _data54_);
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = _tmp0_;
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = self->priv->d_main;
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gitg_history_paned_get_refs_list (_tmp3_);
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = gitg_history_action_interface_new (_tmp2_, _tmp5_);
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = _tmp6_;
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp2_);
#line 845 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	af = _tmp7_;
#line 847 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = gee_linked_list_new (GITG_EXT_TYPE_COMMIT_ACTION, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 847 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_->actions = _tmp8_;
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _data54_->actions;
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = _tmp10_;
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = _tmp11_;
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = af;
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _data54_->commit;
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = gitg_commit_action_create_branch_new (_tmp12_, (GitgExtRefActionInterface*) _tmp13_, _tmp14_);
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = _tmp15_;
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp9_, (GitgExtCommitAction*) _tmp16_);
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp16_);
#line 849 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp12_);
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = _data54_->actions;
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp21_ = af;
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp22_ = _data54_->commit;
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp23_ = gitg_commit_action_create_tag_new (_tmp20_, (GitgExtRefActionInterface*) _tmp21_, _tmp22_);
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp24_ = _tmp23_;
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp17_, (GitgExtCommitAction*) _tmp24_);
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp24_);
#line 854 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp20_);
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp25_ = _data54_->actions;
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp26_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp27_ = _tmp26_;
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp28_ = _tmp27_;
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp29_ = af;
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp30_ = _data54_->commit;
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp31_ = gitg_commit_action_create_patch_new (_tmp28_, (GitgExtRefActionInterface*) _tmp29_, _tmp30_);
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp32_ = _tmp31_;
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_add_commit_action (self, _tmp25_, (GitgExtCommitAction*) _tmp32_);
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp32_);
#line 859 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp28_);
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp33_ = gitg_plugins_engine_get_default ();
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp34_ = _tmp33_;
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp35_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp36_ = _tmp35_;
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp37_ = _tmp36_;
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp38_ = af;
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp39_ = _data54_->commit;
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp40_ = peas_extension_set_new ((PeasEngine*) _tmp34_, GITG_EXT_TYPE_COMMIT_ACTION, "application", _tmp37_, "action_interface", _tmp38_, "commit", _tmp39_, NULL);
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp41_ = _tmp40_;
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp37_);
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp34_);
#line 864 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	exts = _tmp41_;
#line 873 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp42_ = exts;
#line 873 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	peas_extension_set_foreach (_tmp42_, __gitg_history_activity_action_widget___lambda120__peas_extension_set_foreach_func, _data54_);
#line 877 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp43_ = (GtkActionBar*) gtk_action_bar_new ();
#line 877 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp43_);
#line 877 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	ab = _tmp43_;
#line 878 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp44_ = ab;
#line 878 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp44_);
#line 880 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp45_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
#line 880 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_ref_sink (_tmp45_);
#line 880 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	box = _tmp45_;
#line 881 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp46_ = box;
#line 881 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_set ((GtkWidget*) _tmp46_, "margin", 6, NULL);
#line 882 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp47_ = box;
#line 882 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_box_set_homogeneous (_tmp47_, TRUE);
#line 883 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp48_ = box;
#line 883 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_widget_show ((GtkWidget*) _tmp48_);
#line 6081 "gitg-history.c"
	{
		GeeLinkedList* _action_list = NULL;
		GeeLinkedList* _tmp49_ = NULL;
		GeeLinkedList* _tmp50_ = NULL;
		gint _action_size = 0;
		GeeLinkedList* _tmp51_ = NULL;
		gint _tmp52_ = 0;
		gint _tmp53_ = 0;
		gint _action_index = 0;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp49_ = _data54_->actions;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp50_ = _g_object_ref0 (_tmp49_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_action_list = _tmp50_;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp51_ = _action_list;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp52_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp51_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp53_ = _tmp52_;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_action_size = _tmp53_;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_action_index = -1;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		while (TRUE) {
#line 6109 "gitg-history.c"
			Block55Data* _data55_;
			gint _tmp54_ = 0;
			gint _tmp55_ = 0;
			gint _tmp56_ = 0;
			GeeLinkedList* _tmp57_ = NULL;
			gint _tmp58_ = 0;
			gpointer _tmp59_ = NULL;
			GtkWidget* widget = NULL;
			GitgExtCommitAction* _tmp60_ = NULL;
			GtkWidget* _tmp61_ = NULL;
			GtkWidget* _tmp62_ = NULL;
			GtkWidget* _tmp63_ = NULL;
			GtkWidget* _tmp78_ = NULL;
			GtkBox* _tmp79_ = NULL;
			GtkWidget* _tmp80_ = NULL;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_data55_ = g_slice_new0 (Block55Data);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_data55_->_ref_count_ = 1;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_data55_->_data54_ = block54_data_ref (_data54_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp54_ = _action_index;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_action_index = _tmp54_ + 1;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp55_ = _action_index;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp56_ = _action_size;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (!(_tmp55_ < _tmp56_)) {
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				block55_data_unref (_data55_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_data55_ = NULL;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				break;
#line 6147 "gitg-history.c"
			}
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp57_ = _action_list;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp58_ = _action_index;
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp59_ = gee_abstract_list_get ((GeeAbstractList*) _tmp57_, _tmp58_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_data55_->action = (GitgExtCommitAction*) _tmp59_;
#line 887 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp60_ = _data55_->action;
#line 887 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp61_ = gitg_ext_ui_element_get_widget ((GitgExtUIElement*) _tmp60_);
#line 887 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp62_ = _tmp61_;
#line 887 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			widget = _tmp62_;
#line 889 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp63_ = widget;
#line 889 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			if (_tmp63_ == NULL) {
#line 6169 "gitg-history.c"
				GtkButton* button = NULL;
				GitgExtCommitAction* _tmp64_ = NULL;
				gchar* _tmp65_ = NULL;
				gchar* _tmp66_ = NULL;
				gchar* _tmp67_ = NULL;
				GtkButton* _tmp68_ = NULL;
				GtkButton* _tmp69_ = NULL;
				GtkButton* _tmp70_ = NULL;
				GitgExtCommitAction* _tmp71_ = NULL;
				gchar* _tmp72_ = NULL;
				gchar* _tmp73_ = NULL;
				gchar* _tmp74_ = NULL;
				GtkButton* _tmp75_ = NULL;
				GtkButton* _tmp76_ = NULL;
				GtkWidget* _tmp77_ = NULL;
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp64_ = _data55_->action;
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp65_ = gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) _tmp64_);
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp66_ = _tmp65_;
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp67_ = _tmp66_;
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp68_ = (GtkButton*) gtk_button_new_with_label (_tmp67_);
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				g_object_ref_sink (_tmp68_);
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp69_ = _tmp68_;
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_free0 (_tmp67_);
#line 891 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				button = _tmp69_;
#line 892 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp70_ = button;
#line 892 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp71_ = _data55_->action;
#line 892 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp72_ = gitg_ext_ui_element_get_description ((GitgExtUIElement*) _tmp71_);
#line 892 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp73_ = _tmp72_;
#line 892 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp74_ = _tmp73_;
#line 892 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				gtk_widget_set_tooltip_text ((GtkWidget*) _tmp70_, _tmp74_);
#line 892 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_free0 (_tmp74_);
#line 894 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp75_ = button;
#line 894 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				g_signal_connect_data (_tmp75_, "clicked", (GCallback) __gitg_history_activity_action_widget______lambda121__gtk_button_clicked, block55_data_ref (_data55_), (GClosureNotify) block55_data_unref, 0);
#line 898 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp76_ = button;
#line 898 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_tmp77_ = _g_object_ref0 ((GtkWidget*) _tmp76_);
#line 898 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (widget);
#line 898 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				widget = _tmp77_;
#line 889 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
				_g_object_unref0 (button);
#line 6231 "gitg-history.c"
			}
#line 901 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp78_ = widget;
#line 901 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			gtk_widget_show (_tmp78_);
#line 902 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp79_ = box;
#line 902 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_tmp80_ = widget;
#line 902 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			gtk_container_add ((GtkContainer*) _tmp79_, _tmp80_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_g_object_unref0 (widget);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			block55_data_unref (_data55_);
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
			_data55_ = NULL;
#line 6249 "gitg-history.c"
		}
#line 885 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_g_object_unref0 (_action_list);
#line 6253 "gitg-history.c"
	}
#line 905 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp81_ = ab;
#line 905 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp82_ = box;
#line 905 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_action_bar_set_center_widget (_tmp81_, (GtkWidget*) _tmp82_);
#line 907 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = (GtkWidget*) ab;
#line 907 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (box);
#line 907 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (exts);
#line 907 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (af);
#line 907 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	block54_data_unref (_data54_);
#line 907 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_data54_ = NULL;
#line 907 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6275 "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 945 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 947 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->d_main;
#line 947 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = gitg_history_paned_get_commit_list_view (_tmp0_);
#line 947 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = _tmp1_;
#line 947 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = value;
#line 947 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_search_entry ((GtkTreeView*) _tmp2_, _tmp3_);
#line 948 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = self->priv->d_main;
#line 948 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = gitg_history_paned_get_commit_list_view (_tmp4_);
#line 948 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 948 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = value;
#line 948 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gtk_tree_view_set_enable_search ((GtkTreeView*) _tmp6_, _tmp7_ != NULL);
#line 950 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = value;
#line 950 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	if (_tmp8_ != NULL) {
#line 6316 "gitg-history.c"
		GitgHistoryPaned* _tmp9_ = NULL;
		GitgCommitListView* _tmp10_ = NULL;
		GitgCommitListView* _tmp11_ = NULL;
#line 952 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp9_ = self->priv->d_main;
#line 952 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp10_ = gitg_history_paned_get_commit_list_view (_tmp9_);
#line 952 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp11_ = _tmp10_;
#line 952 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_set_search_column ((GtkTreeView*) _tmp11_, 0);
#line 6328 "gitg-history.c"
	} else {
		GitgHistoryPaned* _tmp12_ = NULL;
		GitgCommitListView* _tmp13_ = NULL;
		GitgCommitListView* _tmp14_ = NULL;
#line 956 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp12_ = self->priv->d_main;
#line 956 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp13_ = gitg_history_paned_get_commit_list_view (_tmp12_);
#line 956 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		_tmp14_ = _tmp13_;
#line 956 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gtk_tree_view_set_search_column ((GtkTreeView*) _tmp14_, -1);
#line 6341 "gitg-history.c"
	}
#line 945 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-entry");
#line 6345 "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 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_search_text;
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp1_;
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6364 "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 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (self->priv->_search_text);
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_text = _tmp1_;
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-text");
#line 6384 "gitg-history.c"
}


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


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


static gboolean gitg_history_activity_real_get_search_enabled (GitgExtSearchable* base) {
	gboolean result;
	GitgHistoryActivity* self;
	gboolean _tmp0_ = FALSE;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = self->priv->_search_enabled;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	result = _tmp0_;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return result;
#line 6431 "gitg-history.c"
}


static void gitg_history_activity_real_set_search_enabled (GitgExtSearchable* base, gboolean value) {
	GitgHistoryActivity* self;
	gboolean _tmp0_ = FALSE;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = (GitgHistoryActivity*) base;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = value;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->_search_enabled = _tmp0_;
#line 963 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_notify ((GObject *) self, "search-enabled");
#line 6446 "gitg-history.c"
}


static void _gitg_history_activity___lambda122_ (GitgHistoryActivity* self, GSettings* s, const gchar* k) {
#line 126 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (s != NULL);
#line 126 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (k != NULL);
#line 127 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_sort_mode (self);
#line 6457 "gitg-history.c"
}


static void __gitg_history_activity___lambda122__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 126 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gitg_history_activity___lambda122_ ((GitgHistoryActivity*) self, _sender, key);
#line 6464 "gitg-history.c"
}


static void _gitg_history_activity___lambda123_ (GitgHistoryActivity* self, GSettings* s, const gchar* k) {
#line 130 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (s != NULL);
#line 130 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_return_if_fail (k != NULL);
#line 131 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_walker (self);
#line 6475 "gitg-history.c"
}


static void __gitg_history_activity___lambda123__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 130 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_gitg_history_activity___lambda123_ ((GitgHistoryActivity*) self, _sender, key);
#line 6482 "gitg-history.c"
}


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


static void _gitg_history_activity_on_commit_model_finished_gitg_commit_model_finished (GitgCommitModel* _sender, gpointer self) {
#line 139 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_on_commit_model_finished ((GitgHistoryActivity*) self, _sender);
#line 6496 "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;
	GeeHashSet* _tmp3_ = NULL;
	GitgExtApplication* _tmp4_ = NULL;
	GitgExtApplication* _tmp5_ = NULL;
	GitgExtApplication* _tmp6_ = NULL;
	GitgRepository* _tmp7_ = NULL;
	GitgRepository* _tmp8_ = NULL;
	GitgRepository* _tmp9_ = NULL;
	GitgCommitModel* _tmp10_ = NULL;
	GitgCommitModel* _tmp11_ = NULL;
	GitgCommitModel* _tmp12_ = NULL;
	GitgExtApplication* _tmp13_ = NULL;
	GitgExtApplication* _tmp14_ = NULL;
	GitgExtApplication* _tmp15_ = NULL;
	GitgRepository* _tmp16_ = NULL;
	GitgRepository* _tmp17_ = NULL;
	GitgExtApplication* _tmp18_ = NULL;
	GitgExtApplication* _tmp19_ = NULL;
	GitgExtApplication* _tmp20_ = NULL;
#line 122 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	parent_class = G_OBJECT_CLASS (gitg_history_activity_parent_class);
#line 122 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 122 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity);
#line 124 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp0_ = g_settings_new ("org.gnome.gitg.preferences.history");
#line 124 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_settings);
#line 124 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_settings = _tmp0_;
#line 126 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp1_ = self->priv->d_settings;
#line 126 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp1_, "changed::topological-order", (GCallback) __gitg_history_activity___lambda122__g_settings_changed, self, 0);
#line 130 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp2_ = self->priv->d_settings;
#line 130 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp2_, "changed::mainline-head", (GCallback) __gitg_history_activity___lambda123__g_settings_changed, self, 0);
#line 134 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp3_ = gee_hash_set_new (ggit_oid_get_type (), (GBoxedCopyFunc) _vala_GgitOId_copy, _vala_GgitOId_free, (GeeHashDataFunc) ggit_oid_hash, NULL, NULL, (GeeEqualDataFunc) ggit_oid_equal, NULL, NULL);
#line 134 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_selected);
#line 134 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_selected = _tmp3_;
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp4_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp5_ = _tmp4_;
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp6_ = _tmp5_;
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp7_ = gitg_ext_application_get_repository (_tmp6_);
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp8_ = _tmp7_;
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp9_ = _tmp8_;
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp10_ = gitg_commit_model_new (_tmp9_);
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_model);
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_commit_list_model = _tmp10_;
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp9_);
#line 137 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp6_);
#line 138 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp11_ = self->priv->d_commit_list_model;
#line 138 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp11_, "started", (GCallback) _gitg_history_activity_on_commit_model_started_gitg_commit_model_started, self, 0);
#line 139 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp12_ = self->priv->d_commit_list_model;
#line 139 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_signal_connect_object (_tmp12_, "finished", (GCallback) _gitg_history_activity_on_commit_model_finished_gitg_commit_model_finished, self, 0);
#line 141 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_update_sort_mode (self);
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp13_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp14_ = _tmp13_;
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp15_ = _tmp14_;
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp16_ = gitg_ext_application_get_repository (_tmp15_);
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp17_ = _tmp16_;
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self->priv->d_repository = _tmp17_;
#line 143 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp15_);
#line 145 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp18_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 145 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp19_ = _tmp18_;
#line 145 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_tmp20_ = _tmp19_;
#line 145 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp20_, "repository", (GObject*) self, "repository", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 145 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (_tmp20_);
#line 148 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_reload_mainline (self);
#line 122 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	return obj;
#line 6613 "gitg-history.c"
}


static void gitg_history_activity_class_init (GitgHistoryActivityClass * klass) {
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_parent_class = g_type_class_peek_parent (klass);
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_type_class_add_private (klass, sizeof (GitgHistoryActivityPrivate));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	((GObjectClass *) klass)->dispose = gitg_history_activity_real_dispose;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_history_activity_get_property;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_history_activity_set_property;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_history_activity_constructor;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_history_activity_finalize;
#line 32 "/home/jesse/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_SELECTABLE_MODE, g_param_spec_enum ("selectable-mode", "selectable-mode", "selectable-mode", GITG_EXT_TYPE_SELECTION_MODE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_SELECTABLE_AVAILABLE, g_param_spec_boolean ("selectable-available", "selectable-available", "selectable-available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/devel/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/devel/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_ACTION_WIDGET, g_param_spec_object ("action-widget", "action-widget", "action-widget", gtk_widget_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 32 "/home/jesse/devel/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/devel/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/devel/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 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_HISTORY_ACTIVITY_SEARCH_ENABLED, g_param_spec_boolean ("search-enabled", "search-enabled", "search-enabled", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 6668 "gitg-history.c"
}


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


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


static void gitg_history_activity_gitg_ext_selectable_interface_init (GitgExtSelectableIface * iface) {
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	gitg_history_activity_gitg_ext_selectable_parent_iface = g_type_interface_peek_parent (iface);
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	iface->get_selectable_mode = gitg_history_activity_real_get_selectable_mode;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	iface->set_selectable_mode = gitg_history_activity_real_set_selectable_mode;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	iface->get_selectable_available = gitg_history_activity_real_get_selectable_available;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	iface->get_action_widget = gitg_history_activity_real_get_action_widget;
#line 6719 "gitg-history.c"
}


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


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


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


static void gitg_history_activity_finalize (GObject* obj) {
	GitgHistoryActivity * self;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity);
#line 37 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->_application);
#line 39 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_model);
#line 41 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_selected);
#line 42 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	__vala_GgitOId_free0 (self->priv->d_scroll_to);
#line 45 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_settings);
#line 50 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_main);
#line 51 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_refs_list_popup);
#line 52 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_commit_list_popup);
#line 54 "/home/jesse/devel/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 56 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_panels);
#line 68 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 961 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	_g_free0 (self->priv->_search_text);
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
	G_OBJECT_CLASS (gitg_history_activity_parent_class)->finalize (obj);
#line 6799 "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_selectable_info = { (GInterfaceInitFunc) gitg_history_activity_gitg_ext_selectable_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_SELECTABLE, &gitg_ext_selectable_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/devel/gitg/gitg/history/gitg-history.vala"
	switch (property_id) {
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_APPLICATION:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_ID:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_REPOSITORY:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_object (value, gitg_history_activity_get_repository (self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_AVAILABLE:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_DISPLAY_NAME:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_DESCRIPTION:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_ICON:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_icon ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_WIDGET:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_widget ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_ENABLED:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_REFS_LIST:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_object (value, gitg_history_activity_get_refs_list (self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SELECTABLE_MODE:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_enum (value, gitg_ext_selectable_get_selectable_mode ((GitgExtSelectable*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SELECTABLE_AVAILABLE:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_selectable_get_selectable_available ((GitgExtSelectable*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_AVAILABLE:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_searchable_get_search_available ((GitgExtSearchable*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_ACTION_WIDGET:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_object (value, gitg_ext_selectable_get_action_widget ((GitgExtSelectable*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_TEXT:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_take_string (value, gitg_ext_searchable_get_search_text ((GitgExtSearchable*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_VISIBLE:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_searchable_get_search_visible ((GitgExtSearchable*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_ENABLED:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		g_value_set_boolean (value, gitg_ext_searchable_get_search_enabled ((GitgExtSearchable*) self));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 6932 "gitg-history.c"
		default:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 6938 "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/devel/gitg/gitg/history/gitg-history.vala"
	switch (property_id) {
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_APPLICATION:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_REPOSITORY:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_history_activity_set_repository (self, g_value_get_object (value));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SELECTABLE_MODE:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_ext_selectable_set_selectable_mode ((GitgExtSelectable*) self, g_value_get_enum (value));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_ENTRY:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_ext_searchable_set_search_entry ((GitgExtSearchable*) self, g_value_get_object (value));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_TEXT:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_ext_searchable_set_search_text ((GitgExtSearchable*) self, g_value_get_string (value));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_VISIBLE:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_ext_searchable_set_search_visible ((GitgExtSearchable*) self, g_value_get_boolean (value));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		case GITG_HISTORY_ACTIVITY_SEARCH_ENABLED:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		gitg_ext_searchable_set_search_enabled ((GitgExtSearchable*) self, g_value_get_boolean (value));
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 6990 "gitg-history.c"
		default:
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 32 "/home/jesse/devel/gitg/gitg/history/gitg-history.vala"
		break;
#line 6996 "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;
}



