/* gitg-diff-view-file-renderer-text.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-diff-view-file-renderer-text.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2016 - 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 <gtksourceview/gtksource.h>
#include <gtk/gtk.h>
#include <libgit2-glib/ggit.h>
#include <gee.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <cairo.h>
#include <gdk/gdk.h>
#include <float.h>
#include <math.h>


#define GITG_TYPE_DIFF_SELECTABLE (gitg_diff_selectable_get_type ())
#define GITG_DIFF_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_SELECTABLE, GitgDiffSelectable))
#define GITG_IS_DIFF_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_SELECTABLE))
#define GITG_DIFF_SELECTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_DIFF_SELECTABLE, GitgDiffSelectableIface))

typedef struct _GitgDiffSelectable GitgDiffSelectable;
typedef struct _GitgDiffSelectableIface GitgDiffSelectableIface;

#define GITG_TYPE_PATCH_SET (gitg_patch_set_get_type ())
#define GITG_PATCH_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PATCH_SET, GitgPatchSet))
#define GITG_PATCH_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PATCH_SET, GitgPatchSetClass))
#define GITG_IS_PATCH_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PATCH_SET))
#define GITG_IS_PATCH_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PATCH_SET))
#define GITG_PATCH_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PATCH_SET, GitgPatchSetClass))

typedef struct _GitgPatchSet GitgPatchSet;
typedef struct _GitgPatchSetClass GitgPatchSetClass;

#define GITG_TYPE_DIFF_VIEW_FILE_RENDERER (gitg_diff_view_file_renderer_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER, GitgDiffViewFileRenderer))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER))
#define GITG_DIFF_VIEW_FILE_RENDERER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER, GitgDiffViewFileRendererIface))

typedef struct _GitgDiffViewFileRenderer GitgDiffViewFileRenderer;
typedef struct _GitgDiffViewFileRendererIface GitgDiffViewFileRendererIface;

#define GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT (gitg_diff_view_file_renderer_text_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText))
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererTextClass))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT))
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererTextClass))

typedef struct _GitgDiffViewFileRendererText GitgDiffViewFileRendererText;
typedef struct _GitgDiffViewFileRendererTextClass GitgDiffViewFileRendererTextClass;
typedef struct _GitgDiffViewFileRendererTextPrivate GitgDiffViewFileRendererTextPrivate;

#define GITG_PATCH_SET_TYPE_PATCH (gitg_patch_set_patch_get_type ())

#define GITG_PATCH_SET_TYPE_TYPE (gitg_patch_set_type_get_type ())
typedef struct _GitgPatchSetPatch GitgPatchSetPatch;

#define GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE (gitg_diff_view_file_selectable_get_type ())
#define GITG_DIFF_VIEW_FILE_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE, GitgDiffViewFileSelectable))
#define GITG_DIFF_VIEW_FILE_SELECTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE, GitgDiffViewFileSelectableClass))
#define GITG_IS_DIFF_VIEW_FILE_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE))
#define GITG_IS_DIFF_VIEW_FILE_SELECTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE))
#define GITG_DIFF_VIEW_FILE_SELECTABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE, GitgDiffViewFileSelectableClass))

typedef struct _GitgDiffViewFileSelectable GitgDiffViewFileSelectable;
typedef struct _GitgDiffViewFileSelectableClass GitgDiffViewFileSelectableClass;

#define GITG_TYPE_DIFF_VIEW_LINES_RENDERER (gitg_diff_view_lines_renderer_get_type ())
#define GITG_DIFF_VIEW_LINES_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_LINES_RENDERER, GitgDiffViewLinesRenderer))
#define GITG_DIFF_VIEW_LINES_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_LINES_RENDERER, GitgDiffViewLinesRendererClass))
#define GITG_IS_DIFF_VIEW_LINES_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_LINES_RENDERER))
#define GITG_IS_DIFF_VIEW_LINES_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_LINES_RENDERER))
#define GITG_DIFF_VIEW_LINES_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_LINES_RENDERER, GitgDiffViewLinesRendererClass))

typedef struct _GitgDiffViewLinesRenderer GitgDiffViewLinesRenderer;
typedef struct _GitgDiffViewLinesRendererClass GitgDiffViewLinesRendererClass;

#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TYPE_REGION (gitg_diff_view_file_renderer_text_region_get_type ())

#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TYPE_REGION_TYPE (gitg_diff_view_file_renderer_text_region_type_get_type ())
typedef struct _GitgDiffViewFileRendererTextRegion GitgDiffViewFileRendererTextRegion;

#define GITG_TYPE_REPOSITORY (gitg_repository_get_type ())
#define GITG_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REPOSITORY, GitgRepository))
#define GITG_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REPOSITORY, GitgRepositoryClass))
#define GITG_IS_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REPOSITORY))
#define GITG_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REPOSITORY))
#define GITG_REPOSITORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REPOSITORY, GitgRepositoryClass))

typedef struct _GitgRepository GitgRepository;
typedef struct _GitgRepositoryClass GitgRepositoryClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _ggit_diff_delta_unref0(var) ((var == NULL) ? NULL : (var = (ggit_diff_delta_unref (var), NULL)))
typedef struct _Block7Data Block7Data;
#define _ggit_diff_file_unref0(var) ((var == NULL) ? NULL : (var = (ggit_diff_file_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))
#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _GitgDiffViewFileRendererTextInitHighlightingBufferData GitgDiffViewFileRendererTextInitHighlightingBufferData;
#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _ggit_diff_line_unref0(var) ((var == NULL) ? NULL : (var = (ggit_diff_line_unref (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
typedef struct _GitgPatchSetPrivate GitgPatchSetPrivate;
#define _gitg_patch_set_patch_free0(var) ((var == NULL) ? NULL : (var = (gitg_patch_set_patch_free (var), NULL)))
#define _gitg_patch_set_unref0(var) ((var == NULL) ? NULL : (var = (gitg_patch_set_unref (var), NULL)))

#define GITG_DIFF_VIEW_LINES_RENDERER_TYPE_STYLE (gitg_diff_view_lines_renderer_style_get_type ())

struct _GitgDiffSelectableIface {
	GTypeInterface parent_iface;
	gboolean (*get_has_selection) (GitgDiffSelectable* self);
	gboolean (*get_can_select) (GitgDiffSelectable* self);
	void (*set_can_select) (GitgDiffSelectable* self, gboolean value);
	GitgPatchSet* (*get_selection) (GitgDiffSelectable* self);
};

struct _GitgDiffViewFileRendererIface {
	GTypeInterface parent_iface;
	void (*add_hunk) (GitgDiffViewFileRenderer* self, GgitDiffHunk* hunk, GeeArrayList* lines);
};

struct _GitgDiffViewFileRendererText {
	GtkSourceView parent_instance;
	GitgDiffViewFileRendererTextPrivate * priv;
};

struct _GitgDiffViewFileRendererTextClass {
	GtkSourceViewClass parent_class;
};

typedef enum  {
	GITG_PATCH_SET_TYPE_ADD = 'a',
	GITG_PATCH_SET_TYPE_REMOVE = 'r'
} GitgPatchSetType;

struct _GitgPatchSetPatch {
	GitgPatchSetType type;
	gsize old_offset;
	gsize new_offset;
	gsize length;
};

typedef enum  {
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT
} GitgDiffViewFileRendererTextRegionType;

struct _GitgDiffViewFileRendererTextRegion {
	GitgDiffViewFileRendererTextRegionType type;
	gint buffer_line_start;
	gint source_line_start;
	gint length;
};

struct _GitgDiffViewFileRendererTextPrivate {
	guint _added;
	guint _removed;
	gint64 d_doffset;
	GeeHashMap* d_lines;
	GitgDiffViewFileSelectable* d_selectable;
	GitgDiffViewLinesRenderer* d_old_lines;
	GitgDiffViewLinesRenderer* d_new_lines;
	GitgDiffViewLinesRenderer* d_sym_lines;
	gboolean d_highlight;
	GCancellable* d_higlight_cancellable;
	GtkSourceBuffer* d_old_highlight_buffer;
	GtkSourceBuffer* d_new_highlight_buffer;
	gboolean d_old_highlight_ready;
	gboolean d_new_highlight_ready;
	GitgDiffViewFileRendererTextRegion* d_regions;
	gint d_regions_length1;
	gint _d_regions_size_;
	gboolean d_constructed;
	gboolean _new_is_workdir;
	gint _maxlines;
	GgitDiffDelta* _delta;
	GitgRepository* _repository;
	gboolean d_has_selection;
	gboolean _can_select;
};

struct _Block7Data {
	int _ref_count_;
	GitgDiffViewFileRendererText* self;
	GCancellable* cancellable;
};

struct _GitgDiffViewFileRendererTextInitHighlightingBufferData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgDiffViewFileRendererText* self;
	GgitDiffFile* file;
	gboolean from_workdir;
	GCancellable* cancellable;
	GtkSourceBuffer* result;
	GgitOId* id;
	GgitDiffFile* _tmp0_;
	GgitOId* _tmp1_;
	GgitOId* _tmp2_;
	gchar* path;
	GgitDiffFile* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	GgitOId* _tmp8_;
	gboolean _tmp9_;
	gboolean _tmp10_;
	gboolean _tmp11_;
	const gchar* _tmp12_;
	gboolean _tmp13_;
	GtkSourceFile* sfile;
	GtkSourceFile* _tmp14_;
	GtkSourceFile* _tmp15_;
	GitgRepository* _tmp16_;
	GFile* _tmp17_;
	GFile* _tmp18_;
	const gchar* _tmp19_;
	GFile* _tmp20_;
	GFile* _tmp21_;
	gchar* basename;
	GtkSourceFile* _tmp22_;
	GFile* _tmp23_;
	GFile* _tmp24_;
	gchar* _tmp25_;
	guint8* content;
	gint content_length1;
	gint _content_size_;
	gboolean _tmp26_;
	GgitBlob* blob;
	GgitBlob* _tmp27_;
	GitgRepository* _tmp28_;
	GgitOId* _tmp29_;
	gpointer _tmp30_;
	GgitBlob* _tmp31_;
	GgitBlob* _tmp32_;
	gsize _tmp33_;
	guint8* _tmp34_;
	guint8* _tmp35_;
	gint _tmp35__length1;
	gchar* etag;
	GtkSourceFile* _tmp36_;
	GFile* _tmp37_;
	GFile* _tmp38_;
	GCancellable* _tmp39_;
	guint8* _tmp40_;
	gsize _tmp41_;
	gchar* _tmp42_;
	gboolean uncertain;
	gchar* content_type;
	const gchar* _tmp43_;
	guint8* _tmp44_;
	gint _tmp44__length1;
	gboolean _tmp45_;
	gchar* _tmp46_;
	GBytes* bytes;
	guint8* _tmp47_;
	gint _tmp47__length1;
	GBytes* _tmp48_;
	GMemoryInputStream* stream;
	GBytes* _tmp49_;
	GMemoryInputStream* _tmp50_;
	GtkSourceLanguageManager* manager;
	GtkSourceLanguageManager* _tmp51_;
	GtkSourceLanguageManager* _tmp52_;
	GtkSourceLanguage* language;
	GtkSourceLanguageManager* _tmp53_;
	const gchar* _tmp54_;
	const gchar* _tmp55_;
	GtkSourceLanguage* _tmp56_;
	GtkSourceLanguage* _tmp57_;
	GtkSourceLanguage* _tmp58_;
	GtkSourceBuffer* buffer;
	GtkTextBuffer* _tmp59_;
	GtkTextBuffer* _tmp60_;
	GtkTextTagTable* _tmp61_;
	GtkTextTagTable* _tmp62_;
	GtkSourceBuffer* _tmp63_;
	GtkSourceStyleSchemeManager* style_scheme_manager;
	GtkSourceStyleSchemeManager* _tmp64_;
	GtkSourceStyleSchemeManager* _tmp65_;
	GtkSourceBuffer* _tmp66_;
	GtkSourceLanguage* _tmp67_;
	GtkSourceBuffer* _tmp68_;
	GtkSourceBuffer* _tmp69_;
	GtkSourceStyleSchemeManager* _tmp70_;
	GtkSourceStyleScheme* _tmp71_;
	GtkSourceFileLoader* loader;
	GtkSourceBuffer* _tmp72_;
	GtkSourceFile* _tmp73_;
	GMemoryInputStream* _tmp74_;
	GtkSourceFileLoader* _tmp75_;
	GtkSourceFileLoader* _tmp76_;
	GCancellable* _tmp77_;
	GtkSourceBuffer* _tmp78_;
	GError* e;
	GCancellable* _tmp79_;
	gboolean _tmp80_;
	FILE* _tmp81_;
	GgitDiffFile* _tmp82_;
	const gchar* _tmp83_;
	const gchar* _tmp84_;
	GError* _tmp85_;
	const gchar* _tmp86_;
	const gchar* _tmp87_;
	gchar* _tmp88_;
	gchar* _tmp89_;
	GError * _inner_error_;
};

struct _GitgPatchSet {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgPatchSetPrivate * priv;
	gchar* filename;
	GitgPatchSetPatch* patches;
	gint patches_length1;
};

struct _GitgPatchSetClass {
	GTypeClass parent_class;
	void (*finalize) (GitgPatchSet *self);
};

typedef enum  {
	GITG_DIFF_VIEW_LINES_RENDERER_STYLE_OLD,
	GITG_DIFF_VIEW_LINES_RENDERER_STYLE_NEW,
	GITG_DIFF_VIEW_LINES_RENDERER_STYLE_SYMBOL
} GitgDiffViewLinesRendererStyle;


static gpointer gitg_diff_view_file_renderer_text_parent_class = NULL;
static GitgDiffSelectableIface* gitg_diff_view_file_renderer_text_gitg_diff_selectable_parent_iface = NULL;
static GitgDiffViewFileRendererIface* gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_parent_iface = NULL;

gpointer gitg_patch_set_ref (gpointer instance);
void gitg_patch_set_unref (gpointer instance);
GParamSpec* gitg_param_spec_patch_set (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_value_set_patch_set (GValue* value, gpointer v_object);
void gitg_value_take_patch_set (GValue* value, gpointer v_object);
gpointer gitg_value_get_patch_set (const GValue* value);
GType gitg_patch_set_get_type (void) G_GNUC_CONST;
GType gitg_diff_selectable_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_file_renderer_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_file_renderer_text_get_type (void) G_GNUC_CONST;
GType gitg_patch_set_patch_get_type (void) G_GNUC_CONST;
GType gitg_patch_set_type_get_type (void) G_GNUC_CONST;
GitgPatchSetPatch* gitg_patch_set_patch_dup (const GitgPatchSetPatch* self);
void gitg_patch_set_patch_free (GitgPatchSetPatch* self);
GType gitg_diff_view_file_selectable_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_lines_renderer_get_type (void) G_GNUC_CONST;
static GType gitg_diff_view_file_renderer_text_region_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GType gitg_diff_view_file_renderer_text_region_type_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgDiffViewFileRendererTextRegion* gitg_diff_view_file_renderer_text_region_dup (const GitgDiffViewFileRendererTextRegion* self);
static void gitg_diff_view_file_renderer_text_region_free (GitgDiffViewFileRendererTextRegion* self);
GType gitg_repository_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererTextPrivate))
enum  {
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DUMMY_PROPERTY,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DELTA,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REPOSITORY,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HAS_SELECTION,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_SELECTION
};
GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_new (GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean can_select);
GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_construct (GType object_type, GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean can_select);
static void gitg_diff_view_file_renderer_text_real_dispose (GObject* base);
static void gitg_diff_view_file_renderer_text_update_highlight (GitgDiffViewFileRendererText* self);
gboolean gitg_diff_view_file_renderer_text_get_highlight (GitgDiffViewFileRendererText* self);
GitgRepository* gitg_diff_view_file_renderer_text_get_repository (GitgDiffViewFileRendererText* self);
GgitDiffDelta* gitg_diff_view_file_renderer_text_get_delta (GitgDiffViewFileRendererText* self);
static Block7Data* block7_data_ref (Block7Data* _data7_);
static void block7_data_unref (void * _userdata_);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer (GitgDiffViewFileRendererText* self, GgitDiffFile* file, gboolean from_workdir, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GtkSourceBuffer* gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_);
static void ___lambda50_ (Block7Data* _data7_, GObject* obj, GAsyncResult* res);
static void gitg_diff_view_file_renderer_text_update_highlighting_ready (GitgDiffViewFileRendererText* self);
static void ____lambda50__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
gboolean gitg_diff_view_file_renderer_text_get_new_is_workdir (GitgDiffViewFileRendererText* self);
static void ___lambda51_ (Block7Data* _data7_, GObject* obj, GAsyncResult* res);
static void ____lambda51__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_data_free (gpointer _data);
static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_);
static GgitOId* _vala_GgitOId_copy (GgitOId* self);
static void _vala_GgitOId_free (GgitOId* self);
gpointer gitg_repository_lookup (GitgRepository* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GgitOId* id, GError** error);
static guint8* _vala_array_dup9 (guint8* self, int length);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gitg_diff_view_file_renderer_text_strip_carriage_returns (GitgDiffViewFileRendererText* self, GtkSourceBuffer* buffer);
static gboolean gitg_diff_view_file_renderer_text_real_draw (GtkWidget* base, cairo_t* cr);
static void gitg_diff_view_file_renderer_text_update_theme (GitgDiffViewFileRendererText* self);
static void gitg_diff_view_file_renderer_text_real_constructed (GObject* base);
static void gitg_diff_view_file_renderer_text_real_add_hunk (GitgDiffViewFileRenderer* base, GgitDiffHunk* hunk, GeeArrayList* lines);
guint gitg_diff_view_file_renderer_text_get_added (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_added (GitgDiffViewFileRendererText* self, guint value);
guint gitg_diff_view_file_renderer_text_get_removed (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_removed (GitgDiffViewFileRendererText* self, guint value);
static void _vala_array_add4 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value);
static guint8* _vala_array_dup10 (guint8* self, int length);
static void _vala_array_add5 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value);
void gitg_diff_view_lines_renderer_add_hunk (GitgDiffViewLinesRenderer* self, gint buffer_line_start, gint buffer_line_end, GgitDiffHunk* hunk, GeeArrayList* lines);
void gitg_diff_view_file_renderer_text_set_new_is_workdir (GitgDiffViewFileRendererText* self, gboolean value);
gboolean gitg_diff_view_file_renderer_text_get_wrap_lines (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_wrap_lines (GitgDiffViewFileRendererText* self, gboolean value);
gint gitg_diff_view_file_renderer_text_get_tab_width (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_tab_width (GitgDiffViewFileRendererText* self, gint value);
gint gitg_diff_view_file_renderer_text_get_maxlines (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_maxlines (GitgDiffViewFileRendererText* self, gint value);
void gitg_diff_view_file_renderer_text_set_delta (GitgDiffViewFileRendererText* self, GgitDiffDelta* value);
void gitg_diff_view_file_renderer_text_set_repository (GitgDiffViewFileRendererText* self, GitgRepository* value);
void gitg_diff_view_file_renderer_text_set_highlight (GitgDiffViewFileRendererText* self, gboolean value);
GitgPatchSet* gitg_patch_set_new (void);
GitgPatchSet* gitg_patch_set_construct (GType object_type);
gboolean gitg_diff_selectable_get_can_select (GitgDiffSelectable* self);
gint* gitg_diff_view_file_selectable_get_selected_lines (GitgDiffViewFileSelectable* self, int* result_length1);
static void _vala_array_add6 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value);
static void _vala_array_add7 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value);
static GitgPatchSetPatch* _vala_array_dup11 (GitgPatchSetPatch* self, int length);
static GObject * gitg_diff_view_file_renderer_text_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
GType gitg_diff_view_lines_renderer_style_get_type (void) G_GNUC_CONST;
GitgDiffViewLinesRenderer* gitg_diff_view_lines_renderer_new (GitgDiffViewLinesRendererStyle style);
GitgDiffViewLinesRenderer* gitg_diff_view_lines_renderer_construct (GType object_type, GitgDiffViewLinesRendererStyle style);
static void _gitg_diff_view_file_renderer_text_update_theme_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
GitgDiffViewFileSelectable* gitg_diff_view_file_selectable_new (GtkSourceView* source_view);
GitgDiffViewFileSelectable* gitg_diff_view_file_selectable_construct (GType object_type, GtkSourceView* source_view);
static void _gitg_diff_view_file_renderer_text____lambda52_ (GitgDiffViewFileRendererText* self);
gboolean gitg_diff_view_file_selectable_get_has_selection (GitgDiffViewFileSelectable* self);
static void __gitg_diff_view_file_renderer_text____lambda52__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_diff_view_file_renderer_text_finalize (GObject* obj);
gboolean gitg_diff_selectable_get_has_selection (GitgDiffSelectable* self);
GitgPatchSet* gitg_diff_selectable_get_selection (GitgDiffSelectable* self);
static void _vala_gitg_diff_view_file_renderer_text_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void gitg_diff_selectable_set_can_select (GitgDiffSelectable* self, gboolean value);
static void _vala_gitg_diff_view_file_renderer_text_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static GType gitg_diff_view_file_renderer_text_region_type_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_text_region_type_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_text_region_type_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED, "GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED", "added"}, {GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED, "GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED", "removed"}, {GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT, "GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT", "context"}, {0, NULL, NULL}};
		GType gitg_diff_view_file_renderer_text_region_type_type_id;
		gitg_diff_view_file_renderer_text_region_type_type_id = g_enum_register_static ("GitgDiffViewFileRendererTextRegionType", values);
		g_once_init_leave (&gitg_diff_view_file_renderer_text_region_type_type_id__volatile, gitg_diff_view_file_renderer_text_region_type_type_id);
	}
	return gitg_diff_view_file_renderer_text_region_type_type_id__volatile;
}


GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_construct (GType object_type, GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean can_select) {
	GitgDiffViewFileRendererText * self = NULL;
	GitgRepository* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	GgitDiffDelta* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = repository;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = new_is_workdir;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = delta;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = can_select;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) g_object_new (object_type, "repository", _tmp0_, "new-is-workdir", _tmp1_, "delta", _tmp2_, "can-select", _tmp3_, NULL);
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self;
#line 506 "gitg-diff-view-file-renderer-text.c"
}


GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_new (GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean can_select) {
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return gitg_diff_view_file_renderer_text_construct (GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, repository, delta, new_is_workdir, can_select);
#line 513 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_dispose (GObject* base) {
	GitgDiffViewFileRendererText * self;
	GCancellable* _tmp0_ = NULL;
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_source_view_get_type (), GtkSourceView));
#line 206 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_higlight_cancellable;
#line 206 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp0_ != NULL) {
#line 528 "gitg-diff-view-file-renderer-text.c"
		GCancellable* _tmp1_ = NULL;
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp1_ = self->priv->d_higlight_cancellable;
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_cancellable_cancel (_tmp1_);
#line 209 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 209 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_higlight_cancellable = NULL;
#line 538 "gitg-diff-view-file-renderer-text.c"
	}
}


static Block7Data* block7_data_ref (Block7Data* _data7_) {
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_atomic_int_inc (&_data7_->_ref_count_);
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return _data7_;
#line 548 "gitg-diff-view-file-renderer-text.c"
}


static void block7_data_unref (void * _userdata_) {
	Block7Data* _data7_;
	_data7_ = (Block7Data*) _userdata_;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
#line 557 "gitg-diff-view-file-renderer-text.c"
		GitgDiffViewFileRendererText* self;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self = _data7_->self;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data7_->cancellable);
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self);
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_slice_free (Block7Data, _data7_);
#line 567 "gitg-diff-view-file-renderer-text.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self ? g_object_ref (self) : NULL;
#line 575 "gitg-diff-view-file-renderer-text.c"
}


static void ___lambda50_ (Block7Data* _data7_, GObject* obj, GAsyncResult* res) {
	GitgDiffViewFileRendererText* self;
	GtkSourceBuffer* buffer = NULL;
	GAsyncResult* _tmp0_ = NULL;
	GtkSourceBuffer* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = _data7_->self;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (res != NULL);
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = res;
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (self, _tmp0_);
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer = _tmp1_;
#line 240 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _data7_->cancellable;
#line 240 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = g_cancellable_is_cancelled (_tmp2_);
#line 240 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp3_) {
#line 602 "gitg-diff-view-file-renderer-text.c"
		GtkSourceBuffer* _tmp4_ = NULL;
		GtkSourceBuffer* _tmp5_ = NULL;
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = buffer;
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp5_ = _g_object_ref0 (_tmp4_);
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_old_highlight_buffer);
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_old_highlight_buffer = _tmp5_;
#line 243 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_old_highlight_ready = TRUE;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_update_highlighting_ready (self);
#line 617 "gitg-diff-view-file-renderer-text.c"
	}
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (buffer);
#line 621 "gitg-diff-view-file-renderer-text.c"
}


static void ____lambda50__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	___lambda50_ (self, source_object, res);
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	block7_data_unref (self);
#line 630 "gitg-diff-view-file-renderer-text.c"
}


static void ___lambda51_ (Block7Data* _data7_, GObject* obj, GAsyncResult* res) {
	GitgDiffViewFileRendererText* self;
	GtkSourceBuffer* buffer = NULL;
	GAsyncResult* _tmp0_ = NULL;
	GtkSourceBuffer* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = _data7_->self;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (res != NULL);
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = res;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (self, _tmp0_);
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer = _tmp1_;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _data7_->cancellable;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = g_cancellable_is_cancelled (_tmp2_);
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp3_) {
#line 657 "gitg-diff-view-file-renderer-text.c"
		GtkSourceBuffer* _tmp4_ = NULL;
		GtkSourceBuffer* _tmp5_ = NULL;
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = buffer;
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp5_ = _g_object_ref0 (_tmp4_);
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_new_highlight_buffer);
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_new_highlight_buffer = _tmp5_;
#line 255 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_new_highlight_ready = TRUE;
#line 257 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_update_highlighting_ready (self);
#line 672 "gitg-diff-view-file-renderer-text.c"
	}
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (buffer);
#line 676 "gitg-diff-view-file-renderer-text.c"
}


static void ____lambda51__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	___lambda51_ (self, source_object, res);
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	block7_data_unref (self);
#line 685 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_update_highlight (GitgDiffViewFileRendererText* self) {
	gboolean _tmp0_ = FALSE;
	GCancellable* _tmp1_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
#line 213 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 215 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_constructed;
#line 215 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp0_) {
#line 217 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return;
#line 704 "gitg-diff-view-file-renderer-text.c"
	}
#line 220 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = self->priv->d_higlight_cancellable;
#line 220 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp1_ != NULL) {
#line 710 "gitg-diff-view-file-renderer-text.c"
		GCancellable* _tmp2_ = NULL;
#line 222 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp2_ = self->priv->d_higlight_cancellable;
#line 222 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_cancellable_cancel (_tmp2_);
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_higlight_cancellable = NULL;
#line 720 "gitg-diff-view-file-renderer-text.c"
	}
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_highlight_buffer);
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_old_highlight_buffer = NULL;
#line 227 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_highlight_buffer);
#line 227 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_new_highlight_buffer = NULL;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_old_highlight_ready = FALSE;
#line 230 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_new_highlight_ready = FALSE;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = gitg_diff_view_file_renderer_text_get_highlight (self);
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = _tmp5_;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp6_) {
#line 740 "gitg-diff-view-file-renderer-text.c"
		GitgRepository* _tmp7_ = NULL;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp7_ = self->priv->_repository;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = _tmp7_ != NULL;
#line 746 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = FALSE;
#line 750 "gitg-diff-view-file-renderer-text.c"
	}
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp4_) {
#line 754 "gitg-diff-view-file-renderer-text.c"
		GgitDiffDelta* _tmp8_ = NULL;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp8_ = self->priv->_delta;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp3_ = _tmp8_ != NULL;
#line 760 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp3_ = FALSE;
#line 764 "gitg-diff-view-file-renderer-text.c"
	}
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp3_) {
#line 768 "gitg-diff-view-file-renderer-text.c"
		Block7Data* _data7_;
		GCancellable* _tmp9_ = NULL;
		GCancellable* _tmp10_ = NULL;
		GCancellable* _tmp11_ = NULL;
		GgitDiffDelta* _tmp12_ = NULL;
		GgitDiffFile* _tmp13_ = NULL;
		GCancellable* _tmp14_ = NULL;
		GgitDiffDelta* _tmp15_ = NULL;
		GgitDiffFile* _tmp16_ = NULL;
		gboolean _tmp17_ = FALSE;
		GCancellable* _tmp18_ = NULL;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data7_ = g_slice_new0 (Block7Data);
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data7_->_ref_count_ = 1;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data7_->self = g_object_ref (self);
#line 234 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp9_ = g_cancellable_new ();
#line 234 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data7_->cancellable = _tmp9_;
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp10_ = _data7_->cancellable;
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp11_ = _g_object_ref0 (_tmp10_);
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_higlight_cancellable = _tmp11_;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp12_ = self->priv->_delta;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp13_ = ggit_diff_delta_get_old_file (_tmp12_);
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp14_ = _data7_->cancellable;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_init_highlighting_buffer (self, _tmp13_, FALSE, _tmp14_, ____lambda50__gasync_ready_callback, block7_data_ref (_data7_));
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp15_ = self->priv->_delta;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp16_ = ggit_diff_delta_get_new_file (_tmp15_);
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_ = self->priv->_new_is_workdir;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp18_ = _data7_->cancellable;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_init_highlighting_buffer (self, _tmp16_, _tmp17_, _tmp18_, ____lambda51__gasync_ready_callback, block7_data_ref (_data7_));
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		block7_data_unref (_data7_);
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data7_ = NULL;
#line 820 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 263 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_update_highlighting_ready (self);
#line 824 "gitg-diff-view-file-renderer-text.c"
	}
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_data_free (gpointer _data) {
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
	_data_ = _data;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_file_unref0 (_data_->file);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->result);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_slice_free (GitgDiffViewFileRendererTextInitHighlightingBufferData, _data_);
#line 842 "gitg-diff-view-file-renderer-text.c"
}


static gpointer _ggit_diff_file_ref0 (gpointer self) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self ? ggit_diff_file_ref (self) : NULL;
#line 849 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer (GitgDiffViewFileRendererText* self, GgitDiffFile* file, gboolean from_workdir, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
	GitgDiffViewFileRendererText* _tmp0_ = NULL;
	GgitDiffFile* _tmp1_ = NULL;
	GgitDiffFile* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GCancellable* _tmp4_ = NULL;
	GCancellable* _tmp5_ = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_slice_new0 (GitgDiffViewFileRendererTextInitHighlightingBufferData);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_data_free);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->self = _tmp0_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = file;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _ggit_diff_file_ref0 (_tmp1_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_file_unref0 (_data_->file);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->file = _tmp2_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = from_workdir;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->from_workdir = _tmp3_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = cancellable;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->cancellable = _tmp5_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (_data_);
#line 893 "gitg-diff-view-file-renderer-text.c"
}


static GtkSourceBuffer* gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_) {
	GtkSourceBuffer* result;
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _data_->result;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->result = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 908 "gitg-diff-view-file-renderer-text.c"
}


static GgitOId* _vala_GgitOId_copy (GgitOId* self) {
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_boxed_copy (ggit_oid_get_type (), self);
#line 915 "gitg-diff-view-file-renderer-text.c"
}


static gpointer __vala_GgitOId_copy0 (gpointer self) {
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self ? _vala_GgitOId_copy (self) : NULL;
#line 922 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 929 "gitg-diff-view-file-renderer-text.c"
}


static guint8* _vala_array_dup9 (guint8* self, int length) {
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 936 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = _user_data_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_source_object_ = source_object;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_res_ = _res_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (_data_);
#line 950 "gitg-diff-view-file-renderer-text.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1412 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = self;
#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 962 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_) {
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (_data_->_state_) {
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 0:
#line 971 "gitg-diff-view-file-renderer-text.c"
		goto _state_0;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 1:
#line 975 "gitg-diff-view-file-renderer-text.c"
		goto _state_1;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 2:
#line 979 "gitg-diff-view-file-renderer-text.c"
		goto _state_2;
		default:
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_assert_not_reached ();
#line 984 "gitg-diff-view-file-renderer-text.c"
	}
	_state_0:
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = NULL;
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = _data_->file;
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = NULL;
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = ggit_diff_file_get_oid (_data_->_tmp0_);
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = NULL;
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = __vala_GgitOId_copy0 (_data_->_tmp1_);
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->id = _data_->_tmp2_;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = NULL;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = _data_->file;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = NULL;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = ggit_diff_file_get_path (_data_->_tmp3_);
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp5_ = NULL;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp5_ = g_strdup (_data_->_tmp4_);
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->path = _data_->_tmp5_;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp8_ = NULL;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp8_ = _data_->id;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp9_ = FALSE;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp9_ = ggit_oid_is_zero (_data_->_tmp8_);
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp9_) {
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp10_ = FALSE;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp10_ = _data_->from_workdir;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp7_ = !_data_->_tmp10_;
#line 1031 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp7_ = FALSE;
#line 1035 "gitg-diff-view-file-renderer-text.c"
	}
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp7_) {
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp6_ = TRUE;
#line 1041 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp12_ = NULL;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp12_ = _data_->path;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_tmp12_ == NULL) {
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp13_ = FALSE;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp13_ = _data_->from_workdir;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp11_ = _data_->_tmp13_;
#line 1055 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp11_ = FALSE;
#line 1059 "gitg-diff-view-file-renderer-text.c"
		}
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp6_ = _data_->_tmp11_;
#line 1063 "gitg-diff-view-file-renderer-text.c"
	}
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp6_) {
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->result = NULL;
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->path);
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		__vala_GgitOId_free0 (_data_->id);
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_state_ == 0) {
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1077 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1081 "gitg-diff-view-file-renderer-text.c"
		}
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_unref (_data_->_async_result);
#line 274 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1087 "gitg-diff-view-file-renderer-text.c"
	}
#line 277 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp14_ = NULL;
#line 277 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp14_ = gtk_source_file_new ();
#line 277 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->sfile = _data_->_tmp14_;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp15_ = NULL;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp15_ = _data_->sfile;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp16_ = NULL;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp16_ = _data_->self->priv->_repository;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp17_ = NULL;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp17_ = ggit_repository_get_workdir ((GgitRepository*) _data_->_tmp16_);
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp18_ = NULL;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp18_ = _data_->_tmp17_;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp19_ = NULL;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp19_ = _data_->path;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp20_ = NULL;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp20_ = g_file_get_child (_data_->_tmp18_, _data_->_tmp19_);
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp21_ = NULL;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp21_ = _data_->_tmp20_;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_file_set_location (_data_->_tmp15_, _data_->_tmp21_);
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->_tmp21_);
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->_tmp18_);
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp22_ = NULL;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp22_ = _data_->sfile;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp23_ = NULL;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp23_ = gtk_source_file_get_location (_data_->_tmp22_);
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp24_ = NULL;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp24_ = _data_->_tmp23_;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp25_ = NULL;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp25_ = g_file_get_basename (_data_->_tmp24_);
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->basename = _data_->_tmp25_;
#line 281 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content_length1 = 0;
#line 281 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_content_size_ = 0;
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp26_ = FALSE;
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp26_ = _data_->from_workdir;
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_data_->_tmp26_) {
#line 1157 "gitg-diff-view-file-renderer-text.c"
		{
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp28_ = NULL;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp28_ = _data_->self->priv->_repository;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp29_ = NULL;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp29_ = _data_->id;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp30_ = NULL;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp30_ = gitg_repository_lookup (_data_->_tmp28_, ggit_blob_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _data_->_tmp29_, &_data_->_inner_error_);
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp27_ = (GgitBlob*) _data_->_tmp30_;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1175 "gitg-diff-view-file-renderer-text.c"
				goto __catch35_g_error;
			}
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp31_ = NULL;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp31_ = _data_->_tmp27_;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp27_ = NULL;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->blob);
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->blob = _data_->_tmp31_;
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->_tmp27_);
#line 1190 "gitg-diff-view-file-renderer-text.c"
		}
		goto __finally35;
		__catch35_g_error:
		{
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_inner_error_ = NULL;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->result = NULL;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->blob);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->basename);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->sfile);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->path);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (_data_->_state_ == 0) {
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1217 "gitg-diff-view-file-renderer-text.c"
			} else {
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1221 "gitg-diff-view-file-renderer-text.c"
			}
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_object_unref (_data_->_async_result);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1227 "gitg-diff-view-file-renderer-text.c"
		}
		__finally35:
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->blob);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->basename);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->sfile);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->path);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 287 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1250 "gitg-diff-view-file-renderer-text.c"
		}
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp32_ = NULL;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp32_ = _data_->blob;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_data_->_tmp33_, 0, sizeof (gsize));
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp34_ = NULL;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp34_ = ggit_blob_get_raw_content (_data_->_tmp32_, &_data_->_tmp33_);
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35_ = NULL;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35__length1 = 0;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35_ = (_data_->_tmp34_ != NULL) ? _vala_array_dup9 (_data_->_tmp34_, _data_->_tmp33_) : ((gpointer) _data_->_tmp34_);
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35__length1 = _data_->_tmp33_;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content = (g_free (_data_->content), NULL);
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content = _data_->_tmp35_;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content_length1 = _data_->_tmp35__length1;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_content_size_ = _data_->content_length1;
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->blob);
#line 1280 "gitg-diff-view-file-renderer-text.c"
	} else {
		{
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp36_ = NULL;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp36_ = _data_->sfile;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp37_ = NULL;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp37_ = gtk_source_file_get_location (_data_->_tmp36_);
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp38_ = NULL;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp38_ = _data_->_tmp37_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp39_ = NULL;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp39_ = _data_->cancellable;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp40_ = NULL;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			memset (&_data_->_tmp41_, 0, sizeof (gsize));
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp42_ = NULL;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_state_ = 1;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_file_load_contents_async (_data_->_tmp38_, _data_->_tmp39_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready, _data_);
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1311 "gitg-diff-view-file-renderer-text.c"
			_state_1:
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_file_load_contents_finish (_data_->_tmp38_, _data_->_res_, &_data_->_tmp40_, &_data_->_tmp41_, &_data_->_tmp42_, &_data_->_inner_error_);
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = _data_->_tmp40_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content_length1 = _data_->_tmp41_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_content_size_ = _data_->content_length1;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->etag);
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->etag = _data_->_tmp42_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_free0 (_data_->etag);
#line 1331 "gitg-diff-view-file-renderer-text.c"
				goto __catch36_g_error;
			}
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->etag);
#line 1336 "gitg-diff-view-file-renderer-text.c"
		}
		goto __finally36;
		__catch36_g_error:
		{
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_inner_error_ = NULL;
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->result = NULL;
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->basename);
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->sfile);
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->path);
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (_data_->_state_ == 0) {
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1361 "gitg-diff-view-file-renderer-text.c"
			} else {
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1365 "gitg-diff-view-file-renderer-text.c"
			}
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_object_unref (_data_->_async_result);
#line 311 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1371 "gitg-diff-view-file-renderer-text.c"
		}
		__finally36:
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->basename);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->sfile);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->path);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 301 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1392 "gitg-diff-view-file-renderer-text.c"
		}
	}
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp43_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp43_ = _data_->basename;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp44_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp44__length1 = 0;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp44_ = _data_->content;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp44__length1 = _data_->content_length1;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp45_ = FALSE;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp46_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp46_ = g_content_type_guess (_data_->_tmp43_, _data_->_tmp44_, (gsize) _data_->_tmp44__length1, &_data_->_tmp45_);
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->uncertain = _data_->_tmp45_;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content_type = _data_->_tmp46_;
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp47_ = NULL;
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp47__length1 = 0;
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp47_ = _data_->content;
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp47__length1 = _data_->content_length1;
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp48_ = NULL;
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp48_ = g_bytes_new (_data_->_tmp47_, _data_->_tmp47__length1);
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->bytes = _data_->_tmp48_;
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp49_ = NULL;
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp49_ = _data_->bytes;
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp50_ = NULL;
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp50_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_data_->_tmp49_);
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->stream = _data_->_tmp50_;
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp51_ = NULL;
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp51_ = gtk_source_language_manager_get_default ();
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp52_ = NULL;
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp52_ = _g_object_ref0 (_data_->_tmp51_);
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->manager = _data_->_tmp52_;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp53_ = NULL;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp53_ = _data_->manager;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp54_ = NULL;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp54_ = _data_->basename;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp55_ = NULL;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp55_ = _data_->content_type;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp56_ = NULL;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp56_ = gtk_source_language_manager_guess_language (_data_->_tmp53_, _data_->_tmp54_, _data_->_tmp55_);
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp57_ = NULL;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp57_ = _g_object_ref0 (_data_->_tmp56_);
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->language = _data_->_tmp57_;
#line 324 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp58_ = NULL;
#line 324 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp58_ = _data_->language;
#line 324 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp58_ == NULL) {
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->result = NULL;
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->language);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->manager);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->stream);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_bytes_unref0 (_data_->bytes);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->content_type);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content = (g_free (_data_->content), NULL);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->basename);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->sfile);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->path);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		__vala_GgitOId_free0 (_data_->id);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_state_ == 0) {
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1505 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1509 "gitg-diff-view-file-renderer-text.c"
		}
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_unref (_data_->_async_result);
#line 326 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1515 "gitg-diff-view-file-renderer-text.c"
	}
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp59_ = NULL;
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp59_ = gtk_text_view_get_buffer ((GtkTextView*) _data_->self);
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp60_ = NULL;
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp60_ = _data_->_tmp59_;
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp61_ = NULL;
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp61_ = gtk_text_buffer_get_tag_table (_data_->_tmp60_);
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp62_ = NULL;
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp62_ = _data_->_tmp61_;
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp63_ = NULL;
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp63_ = gtk_source_buffer_new (_data_->_tmp62_);
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->buffer = _data_->_tmp63_;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp64_ = NULL;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp64_ = gtk_source_style_scheme_manager_get_default ();
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp65_ = NULL;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp65_ = _g_object_ref0 (_data_->_tmp64_);
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->style_scheme_manager = _data_->_tmp65_;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp66_ = NULL;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp66_ = _data_->buffer;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp67_ = NULL;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp67_ = _data_->language;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_set_language (_data_->_tmp66_, _data_->_tmp67_);
#line 334 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp68_ = NULL;
#line 334 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp68_ = _data_->buffer;
#line 334 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_set_highlight_syntax (_data_->_tmp68_, TRUE);
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp69_ = NULL;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp69_ = _data_->buffer;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp70_ = NULL;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp70_ = _data_->style_scheme_manager;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp71_ = NULL;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp71_ = gtk_source_style_scheme_manager_get_scheme (_data_->_tmp70_, "classic");
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_set_style_scheme (_data_->_tmp69_, _data_->_tmp71_);
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp72_ = NULL;
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp72_ = _data_->buffer;
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp73_ = NULL;
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp73_ = _data_->sfile;
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp74_ = NULL;
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp74_ = _data_->stream;
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp75_ = NULL;
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp75_ = gtk_source_file_loader_new_from_stream (_data_->_tmp72_, _data_->_tmp73_, (GInputStream*) _data_->_tmp74_);
#line 337 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->loader = _data_->_tmp75_;
#line 1597 "gitg-diff-view-file-renderer-text.c"
	{
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp76_ = NULL;
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp76_ = _data_->loader;
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp77_ = NULL;
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp77_ = _data_->cancellable;
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_state_ = 2;
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_source_file_loader_load_async (_data_->_tmp76_, G_PRIORITY_LOW, _data_->_tmp77_, NULL, NULL, NULL, gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready, _data_);
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1613 "gitg-diff-view-file-renderer-text.c"
		_state_2:
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_source_file_loader_load_finish (_data_->_tmp76_, _data_->_res_, &_data_->_inner_error_);
#line 341 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1619 "gitg-diff-view-file-renderer-text.c"
			goto __catch37_g_error;
		}
#line 342 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp78_ = NULL;
#line 342 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp78_ = _data_->buffer;
#line 342 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_strip_carriage_returns (_data_->self, _data_->_tmp78_);
#line 1628 "gitg-diff-view-file-renderer-text.c"
	}
	goto __finally37;
	__catch37_g_error:
	{
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->e = _data_->_inner_error_;
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_inner_error_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp79_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp79_ = _data_->cancellable;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp80_ = FALSE;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp80_ = g_cancellable_is_cancelled (_data_->_tmp79_);
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (!_data_->_tmp80_) {
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp81_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp81_ = stderr;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp82_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp82_ = _data_->file;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp83_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp83_ = ggit_diff_file_get_path (_data_->_tmp82_);
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp84_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp84_ = string_to_string (_data_->_tmp83_);
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp85_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp85_ = _data_->e;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp86_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp86_ = _data_->_tmp85_->message;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp87_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp87_ = string_to_string (_data_->_tmp86_);
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp88_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp88_ = g_strconcat ("ERROR: failed to load ", _data_->_tmp84_, " for highlighting: ", _data_->_tmp87_, "\n", NULL);
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp89_ = NULL;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp89_ = _data_->_tmp88_;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			fprintf (_data_->_tmp81_, "%s", _data_->_tmp89_);
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->_tmp89_);
#line 1687 "gitg-diff-view-file-renderer-text.c"
		}
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->result = NULL;
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_error_free0 (_data_->e);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->loader);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->style_scheme_manager);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->buffer);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->language);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->manager);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->stream);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_bytes_unref0 (_data_->bytes);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->content_type);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content = (g_free (_data_->content), NULL);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->basename);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->sfile);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->path);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		__vala_GgitOId_free0 (_data_->id);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_state_ == 0) {
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1723 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1727 "gitg-diff-view-file-renderer-text.c"
		}
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_unref (_data_->_async_result);
#line 351 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1733 "gitg-diff-view-file-renderer-text.c"
	}
	__finally37:
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->loader);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->style_scheme_manager);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->buffer);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->language);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->manager);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->stream);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_bytes_unref0 (_data_->bytes);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->content_type);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content = (g_free (_data_->content), NULL);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->basename);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->sfile);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->path);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		__vala_GgitOId_free0 (_data_->id);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_clear_error (&_data_->_inner_error_);
#line 339 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1770 "gitg-diff-view-file-renderer-text.c"
	}
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->result = _data_->buffer;
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->loader);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->style_scheme_manager);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->language);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->manager);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->stream);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_bytes_unref0 (_data_->bytes);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->content_type);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content = (g_free (_data_->content), NULL);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->basename);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->sfile);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->path);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	__vala_GgitOId_free0 (_data_->id);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1802 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1806 "gitg-diff-view-file-renderer-text.c"
	}
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->loader);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->style_scheme_manager);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->buffer);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->language);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->manager);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->stream);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_bytes_unref0 (_data_->bytes);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->content_type);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content = (g_free (_data_->content), NULL);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->basename);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->sfile);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->path);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	__vala_GgitOId_free0 (_data_->id);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1842 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1846 "gitg-diff-view-file-renderer-text.c"
	}
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 1852 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_strip_carriage_returns (GitgDiffViewFileRendererText* self, GtkSourceBuffer* buffer) {
	GtkSourceSearchSettings* search_settings = NULL;
	GtkSourceSearchSettings* _tmp0_ = NULL;
	GtkSourceSearchContext* search_context = NULL;
	GtkSourceBuffer* _tmp1_ = NULL;
	GtkSourceSearchContext* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 357 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 357 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (buffer != NULL);
#line 359 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_search_settings_new ();
#line 359 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	search_settings = _tmp0_;
#line 361 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_search_settings_set_regex_enabled (search_settings, TRUE);
#line 362 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_search_settings_set_search_text (search_settings, "\\r");
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = buffer;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = gtk_source_search_context_new (_tmp1_, search_settings);
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	search_context = _tmp2_;
#line 1881 "gitg-diff-view-file-renderer-text.c"
	{
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_source_search_context_replace_all (search_context, "", 0, &_inner_error_);
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1887 "gitg-diff-view-file-renderer-text.c"
			goto __catch38_g_error;
		}
	}
	goto __finally38;
	__catch38_g_error:
	{
		GError* e = NULL;
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		e = _inner_error_;
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_inner_error_ = NULL;
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_error_free0 (e);
#line 1901 "gitg-diff-view-file-renderer-text.c"
	}
	__finally38:
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (search_context);
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (search_settings);
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.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 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_clear_error (&_inner_error_);
#line 366 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return;
#line 1916 "gitg-diff-view-file-renderer-text.c"
	}
#line 357 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (search_context);
#line 357 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (search_settings);
#line 1922 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_update_highlighting_ready (GitgDiffViewFileRendererText* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GtkTextBuffer* buffer = NULL;
	GtkTextBuffer* _tmp6_ = NULL;
	GtkTextBuffer* _tmp7_ = NULL;
	GtkTextBuffer* _tmp8_ = NULL;
	GitgDiffViewFileRendererTextRegion* _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
#line 372 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 374 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = self->priv->d_old_highlight_ready;
#line 374 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp1_) {
#line 1941 "gitg-diff-view-file-renderer-text.c"
		gboolean _tmp2_ = FALSE;
#line 374 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp2_ = self->priv->d_new_highlight_ready;
#line 374 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp0_ = !_tmp2_;
#line 1947 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 374 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp0_ = FALSE;
#line 1951 "gitg-diff-view-file-renderer-text.c"
	}
#line 374 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp0_) {
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return;
#line 1957 "gitg-diff-view-file-renderer-text.c"
	} else {
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = self->priv->d_old_highlight_ready;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (!_tmp4_) {
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp3_ = TRUE;
#line 1967 "gitg-diff-view-file-renderer-text.c"
		} else {
			gboolean _tmp5_ = FALSE;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp5_ = self->priv->d_new_highlight_ready;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp3_ = !_tmp5_;
#line 1974 "gitg-diff-view-file-renderer-text.c"
		}
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_tmp3_) {
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return;
#line 1980 "gitg-diff-view-file-renderer-text.c"
		}
	}
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = gtk_text_view_get_buffer ((GtkTextView*) self);
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = _tmp6_;
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer = _tmp8_;
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = self->priv->d_regions;
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9__length1 = self->priv->d_regions_length1;
#line 1995 "gitg-diff-view-file-renderer-text.c"
	{
		GitgDiffViewFileRendererTextRegion* region_collection = NULL;
		gint region_collection_length1 = 0;
		gint _region_collection_size_ = 0;
		gint region_it = 0;
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		region_collection = _tmp9_;
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		region_collection_length1 = _tmp9__length1;
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		for (region_it = 0; region_it < _tmp9__length1; region_it = region_it + 1) {
#line 2007 "gitg-diff-view-file-renderer-text.c"
			GitgDiffViewFileRendererTextRegion region = {0};
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			region = region_collection[region_it];
#line 2011 "gitg-diff-view-file-renderer-text.c"
			{
				GtkSourceBuffer* source = NULL;
				GitgDiffViewFileRendererTextRegion _tmp10_ = {0};
				GitgDiffViewFileRendererTextRegionType _tmp11_ = 0;
				GtkSourceBuffer* _tmp16_ = NULL;
				GtkTextIter buffer_iter = {0};
				GtkTextIter source_iter = {0};
				GtkTextBuffer* _tmp17_ = NULL;
				GitgDiffViewFileRendererTextRegion _tmp18_ = {0};
				gint _tmp19_ = 0;
				GtkTextIter _tmp20_ = {0};
				GtkSourceBuffer* _tmp21_ = NULL;
				GitgDiffViewFileRendererTextRegion _tmp22_ = {0};
				gint _tmp23_ = 0;
				GtkTextIter _tmp24_ = {0};
				GtkTextIter source_end_iter = {0};
				GtkTextIter _tmp25_ = {0};
				GitgDiffViewFileRendererTextRegion _tmp26_ = {0};
				gint _tmp27_ = 0;
				GtkSourceBuffer* _tmp28_ = NULL;
				GtkTextIter _tmp29_ = {0};
				GtkTextIter _tmp30_ = {0};
				GtkTextIter buffer_end_iter = {0};
				GtkTextIter _tmp31_ = {0};
				GitgDiffViewFileRendererTextRegion _tmp32_ = {0};
				gint _tmp33_ = 0;
				GtkTextIter source_next_iter = {0};
				GtkTextIter _tmp34_ = {0};
				GSList* tags = NULL;
				GSList* _tmp35_ = NULL;
				GSList* _tmp51_ = NULL;
#line 393 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp10_ = region;
#line 393 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp11_ = _tmp10_.type;
#line 393 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp11_ == GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED) {
#line 2049 "gitg-diff-view-file-renderer-text.c"
					GtkSourceBuffer* _tmp12_ = NULL;
					GtkSourceBuffer* _tmp13_ = NULL;
#line 395 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp12_ = self->priv->d_old_highlight_buffer;
#line 395 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp13_ = _g_object_ref0 (_tmp12_);
#line 395 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_object_unref0 (source);
#line 395 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					source = _tmp13_;
#line 2060 "gitg-diff-view-file-renderer-text.c"
				} else {
					GtkSourceBuffer* _tmp14_ = NULL;
					GtkSourceBuffer* _tmp15_ = NULL;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp14_ = self->priv->d_new_highlight_buffer;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp15_ = _g_object_ref0 (_tmp14_);
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_object_unref0 (source);
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					source = _tmp15_;
#line 2072 "gitg-diff-view-file-renderer-text.c"
				}
#line 402 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp16_ = source;
#line 402 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp16_ == NULL) {
#line 404 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_object_unref0 (source);
#line 404 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					continue;
#line 2082 "gitg-diff-view-file-renderer-text.c"
				}
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp17_ = buffer;
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp18_ = region;
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp19_ = _tmp18_.buffer_line_start;
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_buffer_get_iter_at_line (_tmp17_, &_tmp20_, _tmp19_);
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				buffer_iter = _tmp20_;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp21_ = source;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp22_ = region;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp23_ = _tmp22_.source_line_start;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_buffer_get_iter_at_line ((GtkTextBuffer*) _tmp21_, &_tmp24_, _tmp23_);
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				source_iter = _tmp24_;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp25_ = source_iter;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				source_end_iter = _tmp25_;
#line 413 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp26_ = region;
#line 413 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp27_ = _tmp26_.length;
#line 413 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_iter_forward_lines (&source_end_iter, _tmp27_);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp28_ = source;
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp29_ = source_iter;
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp30_ = source_end_iter;
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_source_buffer_ensure_highlight (_tmp28_, &_tmp29_, &_tmp30_);
#line 417 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp31_ = buffer_iter;
#line 417 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				buffer_end_iter = _tmp31_;
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp32_ = region;
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp33_ = _tmp32_.length;
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_iter_forward_lines (&buffer_end_iter, _tmp33_);
#line 420 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp34_ = source_iter;
#line 420 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				source_next_iter = _tmp34_;
#line 421 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp35_ = gtk_text_iter_get_tags (&source_iter);
#line 421 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				tags = _tmp35_;
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				while (TRUE) {
#line 2142 "gitg-diff-view-file-renderer-text.c"
					gboolean _tmp36_ = FALSE;
					gboolean _tmp37_ = FALSE;
					GtkTextIter buffer_next_iter = {0};
					GtkTextIter _tmp40_ = {0};
					gint _tmp41_ = 0;
					gint _tmp42_ = 0;
					GSList* _tmp43_ = NULL;
					GtkTextIter _tmp48_ = {0};
					GtkTextIter _tmp49_ = {0};
					GSList* _tmp50_ = NULL;
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp37_ = gtk_text_iter_forward_to_tag_toggle (&source_next_iter, NULL);
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp37_) {
#line 2157 "gitg-diff-view-file-renderer-text.c"
						GtkTextIter _tmp38_ = {0};
						gint _tmp39_ = 0;
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp38_ = source_end_iter;
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp39_ = gtk_text_iter_compare (&source_next_iter, &_tmp38_);
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp36_ = _tmp39_ < 0;
#line 2166 "gitg-diff-view-file-renderer-text.c"
					} else {
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp36_ = FALSE;
#line 2170 "gitg-diff-view-file-renderer-text.c"
					}
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (!_tmp36_) {
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 2176 "gitg-diff-view-file-renderer-text.c"
					}
#line 425 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp40_ = buffer_iter;
#line 425 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					buffer_next_iter = _tmp40_;
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp41_ = gtk_text_iter_get_offset (&source_next_iter);
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp42_ = gtk_text_iter_get_offset (&source_iter);
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gtk_text_iter_forward_chars (&buffer_next_iter, _tmp41_ - _tmp42_);
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp43_ = tags;
#line 2190 "gitg-diff-view-file-renderer-text.c"
					{
						GSList* tag_collection = NULL;
						GSList* tag_it = NULL;
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						tag_collection = _tmp43_;
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						for (tag_it = tag_collection; tag_it != NULL; tag_it = tag_it->next) {
#line 2198 "gitg-diff-view-file-renderer-text.c"
							GtkTextTag* tag = NULL;
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							tag = (GtkTextTag*) tag_it->data;
#line 2202 "gitg-diff-view-file-renderer-text.c"
							{
								GtkTextBuffer* _tmp44_ = NULL;
								GtkTextTag* _tmp45_ = NULL;
								GtkTextIter _tmp46_ = {0};
								GtkTextIter _tmp47_ = {0};
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp44_ = buffer;
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp45_ = tag;
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp46_ = buffer_iter;
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp47_ = buffer_next_iter;
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								gtk_text_buffer_apply_tag (_tmp44_, _tmp45_, &_tmp46_, &_tmp47_);
#line 2218 "gitg-diff-view-file-renderer-text.c"
							}
						}
					}
#line 433 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp48_ = source_next_iter;
#line 433 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					source_iter = _tmp48_;
#line 434 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp49_ = buffer_next_iter;
#line 434 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					buffer_iter = _tmp49_;
#line 436 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp50_ = gtk_text_iter_get_tags (&source_iter);
#line 436 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_slist_free0 (tags);
#line 436 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					tags = _tmp50_;
#line 2236 "gitg-diff-view-file-renderer-text.c"
				}
#line 439 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp51_ = tags;
#line 2240 "gitg-diff-view-file-renderer-text.c"
				{
					GSList* tag_collection = NULL;
					GSList* tag_it = NULL;
#line 439 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					tag_collection = _tmp51_;
#line 439 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					for (tag_it = tag_collection; tag_it != NULL; tag_it = tag_it->next) {
#line 2248 "gitg-diff-view-file-renderer-text.c"
						GtkTextTag* tag = NULL;
#line 439 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						tag = (GtkTextTag*) tag_it->data;
#line 2252 "gitg-diff-view-file-renderer-text.c"
						{
							GtkTextBuffer* _tmp52_ = NULL;
							GtkTextTag* _tmp53_ = NULL;
							GtkTextIter _tmp54_ = {0};
							GtkTextIter _tmp55_ = {0};
#line 441 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp52_ = buffer;
#line 441 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp53_ = tag;
#line 441 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp54_ = buffer_iter;
#line 441 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp55_ = buffer_end_iter;
#line 441 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							gtk_text_buffer_apply_tag (_tmp52_, _tmp53_, &_tmp54_, &_tmp55_);
#line 2268 "gitg-diff-view-file-renderer-text.c"
						}
					}
				}
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_slist_free0 (tags);
#line 389 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_object_unref0 (source);
#line 2276 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 372 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (buffer);
#line 2282 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_real_draw (GtkWidget* base, cairo_t* cr) {
	GitgDiffViewFileRendererText * self;
	gboolean result = FALSE;
	cairo_t* _tmp0_ = NULL;
	GdkWindow* win = NULL;
	GdkWindow* _tmp1_ = NULL;
	GdkWindow* _tmp2_ = NULL;
	cairo_t* _tmp3_ = NULL;
	GdkWindow* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	GtkStyleContext* ctx = NULL;
	GtkStyleContext* _tmp6_ = NULL;
	GtkStyleContext* _tmp7_ = NULL;
	gint old_lines_width = 0;
	GitgDiffViewLinesRenderer* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	gint _tmp10_ = 0;
	GitgDiffViewLinesRenderer* _tmp11_ = NULL;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
	gint new_lines_width = 0;
	GitgDiffViewLinesRenderer* _tmp14_ = NULL;
	gint _tmp15_ = 0;
	gint _tmp16_ = 0;
	GitgDiffViewLinesRenderer* _tmp17_ = NULL;
	gint _tmp18_ = 0;
	gint _tmp19_ = 0;
	gint sym_lines_width = 0;
	GitgDiffViewLinesRenderer* _tmp20_ = NULL;
	gint _tmp21_ = 0;
	gint _tmp22_ = 0;
	GitgDiffViewLinesRenderer* _tmp23_ = NULL;
	gint _tmp24_ = 0;
	gint _tmp25_ = 0;
	GtkStyleContext* _tmp26_ = NULL;
	cairo_t* _tmp27_ = NULL;
	GdkWindow* _tmp28_ = NULL;
	GtkStyleContext* _tmp29_ = NULL;
	GtkStyleContext* _tmp30_ = NULL;
	cairo_t* _tmp31_ = NULL;
	gint _tmp32_ = 0;
	GdkWindow* _tmp33_ = NULL;
	gint _tmp34_ = 0;
	GtkStyleContext* _tmp35_ = NULL;
	GtkStyleContext* _tmp36_ = NULL;
	cairo_t* _tmp37_ = NULL;
	GdkWindow* _tmp38_ = NULL;
	GtkStyleContext* _tmp39_ = NULL;
	GtkStyleContext* _tmp40_ = NULL;
	cairo_t* _tmp41_ = NULL;
	gint _tmp42_ = 0;
	gint _tmp43_ = 0;
	gint _tmp44_ = 0;
	GdkWindow* _tmp45_ = NULL;
	gint _tmp46_ = 0;
	GtkStyleContext* _tmp47_ = NULL;
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (cr != NULL, FALSE);
#line 448 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = cr;
#line 448 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	GTK_WIDGET_CLASS (gitg_diff_view_file_renderer_text_parent_class)->draw ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_source_view_get_type (), GtkSourceView), _tmp0_);
#line 450 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gtk_text_view_get_window ((GtkTextView*) self, GTK_TEXT_WINDOW_LEFT);
#line 450 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 450 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	win = _tmp2_;
#line 452 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = cr;
#line 452 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = win;
#line 452 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = gtk_cairo_should_draw_window (_tmp3_, _tmp4_);
#line 452 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp5_) {
#line 454 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		result = FALSE;
#line 454 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (win);
#line 454 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return result;
#line 2370 "gitg-diff-view-file-renderer-text.c"
	}
#line 457 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 457 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 457 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	ctx = _tmp7_;
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = self->priv->d_old_lines;
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = gtk_source_gutter_renderer_get_size ((GtkSourceGutterRenderer*) _tmp8_);
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = _tmp9_;
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp11_ = self->priv->d_old_lines;
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get ((GtkSourceGutterRenderer*) _tmp11_, "xpad", &_tmp12_, NULL);
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp13_ = _tmp12_;
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	old_lines_width = _tmp10_ + (_tmp13_ * 2);
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp14_ = self->priv->d_new_lines;
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = gtk_source_gutter_renderer_get_size ((GtkSourceGutterRenderer*) _tmp14_);
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp16_ = _tmp15_;
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp17_ = self->priv->d_new_lines;
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get ((GtkSourceGutterRenderer*) _tmp17_, "xpad", &_tmp18_, NULL);
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp19_ = _tmp18_;
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	new_lines_width = _tmp16_ + (_tmp19_ * 2);
#line 461 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp20_ = self->priv->d_sym_lines;
#line 461 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp21_ = gtk_source_gutter_renderer_get_size ((GtkSourceGutterRenderer*) _tmp20_);
#line 461 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp22_ = _tmp21_;
#line 461 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp23_ = self->priv->d_sym_lines;
#line 461 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get ((GtkSourceGutterRenderer*) _tmp23_, "xpad", &_tmp24_, NULL);
#line 461 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp25_ = _tmp24_;
#line 461 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	sym_lines_width = _tmp22_ + (_tmp25_ * 2);
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp26_ = ctx;
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_save (_tmp26_);
#line 464 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp27_ = cr;
#line 464 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp28_ = win;
#line 464 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_cairo_transform_to_window (_tmp27_, (GtkWidget*) self, _tmp28_);
#line 465 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp29_ = ctx;
#line 465 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_add_class (_tmp29_, "diff-lines-separator");
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp30_ = ctx;
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp31_ = cr;
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp32_ = old_lines_width;
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp33_ = win;
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp34_ = gdk_window_get_height (_tmp33_);
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_render_frame (_tmp30_, _tmp31_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp32_, (gdouble) _tmp34_);
#line 467 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp35_ = ctx;
#line 467 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_restore (_tmp35_);
#line 469 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp36_ = ctx;
#line 469 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_save (_tmp36_);
#line 470 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp37_ = cr;
#line 470 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp38_ = win;
#line 470 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_cairo_transform_to_window (_tmp37_, (GtkWidget*) self, _tmp38_);
#line 471 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp39_ = ctx;
#line 471 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_add_class (_tmp39_, "diff-lines-gutter-border");
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp40_ = ctx;
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp41_ = cr;
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp42_ = old_lines_width;
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp43_ = new_lines_width;
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp44_ = sym_lines_width;
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp45_ = win;
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_ = gdk_window_get_height (_tmp45_);
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_render_frame (_tmp40_, _tmp41_, (gdouble) (_tmp42_ + _tmp43_), (gdouble) 0, (gdouble) _tmp44_, (gdouble) _tmp46_);
#line 473 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp47_ = ctx;
#line 473 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_restore (_tmp47_);
#line 475 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = FALSE;
#line 475 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (ctx);
#line 475 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (win);
#line 475 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 2492 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_update_theme (GitgDiffViewFileRendererText* self) {
	GtkSourceMarkAttributes* header_attributes = NULL;
	GtkSourceMarkAttributes* _tmp0_ = NULL;
	GtkSourceMarkAttributes* added_attributes = NULL;
	GtkSourceMarkAttributes* _tmp1_ = NULL;
	GtkSourceMarkAttributes* removed_attributes = NULL;
	GtkSourceMarkAttributes* _tmp2_ = NULL;
	GtkSettings* settings = NULL;
	GtkSettings* _tmp3_ = NULL;
	GtkSettings* _tmp4_ = NULL;
	gchar* theme = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	GtkSettings* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	gboolean _tmp10_ = FALSE;
	gboolean dark = FALSE;
	gboolean _tmp15_ = FALSE;
	GtkSourceMarkAttributes* _tmp28_ = NULL;
	GtkSourceMarkAttributes* _tmp29_ = NULL;
	GtkSourceMarkAttributes* _tmp30_ = NULL;
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 480 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_mark_attributes_new ();
#line 480 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	header_attributes = _tmp0_;
#line 481 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gtk_source_mark_attributes_new ();
#line 481 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	added_attributes = _tmp1_;
#line 482 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = gtk_source_mark_attributes_new ();
#line 482 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	removed_attributes = _tmp2_;
#line 484 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = gtk_settings_get_default ();
#line 484 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 484 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	settings = _tmp4_;
#line 485 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = g_getenv ("GTK_THEME");
#line 485 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 485 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	theme = _tmp6_;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = settings;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get (_tmp8_, "gtk-application-prefer-dark-theme", &_tmp9_, NULL);
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = _tmp9_;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp10_) {
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp7_ = TRUE;
#line 2554 "gitg-diff-view-file-renderer-text.c"
	} else {
		gboolean _tmp11_ = FALSE;
		const gchar* _tmp12_ = NULL;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp12_ = theme;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_tmp12_ != NULL) {
#line 2562 "gitg-diff-view-file-renderer-text.c"
			const gchar* _tmp13_ = NULL;
			gboolean _tmp14_ = FALSE;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp13_ = theme;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp14_ = g_str_has_suffix (_tmp13_, ":dark");
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp11_ = _tmp14_;
#line 2571 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp11_ = FALSE;
#line 2575 "gitg-diff-view-file-renderer-text.c"
		}
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp7_ = _tmp11_;
#line 2579 "gitg-diff-view-file-renderer-text.c"
	}
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	dark = _tmp7_;
#line 489 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = dark;
#line 489 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp15_) {
#line 2587 "gitg-diff-view-file-renderer-text.c"
		GtkSourceMarkAttributes* _tmp16_ = NULL;
		GdkRGBA _tmp17_ = {0};
		GtkSourceMarkAttributes* _tmp18_ = NULL;
		GdkRGBA _tmp19_ = {0};
		GtkSourceMarkAttributes* _tmp20_ = NULL;
		GdkRGBA _tmp21_ = {0};
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp16_ = header_attributes;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp17_, 0, sizeof (GdkRGBA));
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.red = 136.0 / 255.0;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.green = 138.0 / 255.0;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.blue = 133.0 / 255.0;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.alpha = 1.0;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp16_, "background", &_tmp17_, NULL);
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp18_ = added_attributes;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp19_, 0, sizeof (GdkRGBA));
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.red = 78.0 / 255.0;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.green = 154.0 / 255.0;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.blue = 6.0 / 255.0;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.alpha = 1.0;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp18_, "background", &_tmp19_, NULL);
#line 493 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp20_ = removed_attributes;
#line 493 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp21_, 0, sizeof (GdkRGBA));
#line 493 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.red = 164.0 / 255.0;
#line 493 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.green = 0.0;
#line 493 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.blue = 0.0;
#line 493 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.alpha = 1.0;
#line 493 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp20_, "background", &_tmp21_, NULL);
#line 2636 "gitg-diff-view-file-renderer-text.c"
	} else {
		GtkSourceMarkAttributes* _tmp22_ = NULL;
		GdkRGBA _tmp23_ = {0};
		GtkSourceMarkAttributes* _tmp24_ = NULL;
		GdkRGBA _tmp25_ = {0};
		GtkSourceMarkAttributes* _tmp26_ = NULL;
		GdkRGBA _tmp27_ = {0};
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp22_ = header_attributes;
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp23_, 0, sizeof (GdkRGBA));
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.red = 244.0 / 255.0;
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.green = 247.0 / 255.0;
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.blue = 251.0 / 255.0;
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.alpha = 1.0;
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp22_, "background", &_tmp23_, NULL);
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp24_ = added_attributes;
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp25_, 0, sizeof (GdkRGBA));
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.red = 220.0 / 255.0;
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.green = 1.0;
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.blue = 220.0 / 255.0;
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.alpha = 1.0;
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp24_, "background", &_tmp25_, NULL);
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp26_ = removed_attributes;
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp27_, 0, sizeof (GdkRGBA));
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.red = 1.0;
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.green = 220.0 / 255.0;
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.blue = 220.0 / 255.0;
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.alpha = 1.0;
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp26_, "background", &_tmp27_, NULL);
#line 2686 "gitg-diff-view-file-renderer-text.c"
	}
#line 502 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp28_ = header_attributes;
#line 502 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_mark_attributes ((GtkSourceView*) self, "header", _tmp28_, 0);
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp29_ = added_attributes;
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_mark_attributes ((GtkSourceView*) self, "added", _tmp29_, 0);
#line 504 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp30_ = removed_attributes;
#line 504 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_mark_attributes ((GtkSourceView*) self, "removed", _tmp30_, 0);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (theme);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (settings);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (removed_attributes);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (added_attributes);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (header_attributes);
#line 2710 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_constructed (GObject* base) {
	GitgDiffViewFileRendererText * self;
#line 507 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 509 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class)->constructed ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_source_view_get_type (), GtkSourceView));
#line 511 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_constructed = TRUE;
#line 512 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_update_highlight (self);
#line 2724 "gitg-diff-view-file-renderer-text.c"
}


static gint string_last_index_of (const gchar* self, const gchar* needle, gint start_index) {
	gint result = 0;
	gchar* _result_ = NULL;
	gint _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 997 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 997 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, 0);
#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = needle;
#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp2_ = g_strrstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_);
#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 1000 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 1000 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 2751 "gitg-diff-view-file-renderer-text.c"
		gchar* _tmp4_ = NULL;
#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 2759 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1003 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = -1;
#line 1003 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 2765 "gitg-diff-view-file-renderer-text.c"
	}
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_ = NULL;
	glong _tmp1_ = 0L;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 2789 "gitg-diff-view-file-renderer-text.c"
		glong _tmp4_ = 0L;
#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 2797 "gitg-diff-view-file-renderer-text.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 2809 "gitg-diff-view-file-renderer-text.c"
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_ = 0L;
	glong _tmp8_ = 0L;
	glong _tmp14_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	gchar* _tmp22_ = NULL;
#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 2833 "gitg-diff-view-file-renderer-text.c"
		glong _tmp2_ = 0L;
#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 2839 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 2843 "gitg-diff-view-file-renderer-text.c"
	}
#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 2847 "gitg-diff-view-file-renderer-text.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 2859 "gitg-diff-view-file-renderer-text.c"
	} else {
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 2869 "gitg-diff-view-file-renderer-text.c"
	}
#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 2875 "gitg-diff-view-file-renderer-text.c"
		glong _tmp9_ = 0L;
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 2889 "gitg-diff-view-file-renderer-text.c"
	} else {
		glong _tmp12_ = 0L;
		glong _tmp13_ = 0L;
#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 2899 "gitg-diff-view-file-renderer-text.c"
	}
#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 2905 "gitg-diff-view-file-renderer-text.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 2914 "gitg-diff-view-file-renderer-text.c"
	}
#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 2934 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_chug (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 1199 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1200 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1200 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1201 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1201 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_strchug (_tmp1_);
#line 1202 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _result_;
#line 1202 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 2957 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_chomp (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 1191 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_strchomp (_tmp1_);
#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _result_;
#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 2980 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 2993 "gitg-diff-view-file-renderer-text.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 3024 "gitg-diff-view-file-renderer-text.c"
				goto __catch39_g_regex_error;
			}
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			return NULL;
#line 3033 "gitg-diff-view-file-renderer-text.c"
		}
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 3049 "gitg-diff-view-file-renderer-text.c"
				goto __catch39_g_regex_error;
			}
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			return NULL;
#line 3060 "gitg-diff-view-file-renderer-text.c"
		}
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 3074 "gitg-diff-view-file-renderer-text.c"
	}
	goto __finally39;
	__catch39_g_regex_error:
	{
		GError* e = NULL;
#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 3088 "gitg-diff-view-file-renderer-text.c"
	}
	__finally39:
#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		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 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return NULL;
#line 3099 "gitg-diff-view-file-renderer-text.c"
	}
}


static void _vala_array_add4 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value) {
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgDiffViewFileRendererTextRegion, *array, *size);
#line 3111 "gitg-diff-view-file-renderer-text.c"
	}
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 3115 "gitg-diff-view-file-renderer-text.c"
}


static guint8* _vala_array_dup10 (guint8* self, int length) {
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 3122 "gitg-diff-view-file-renderer-text.c"
}


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_ = 0L;
	gchar _tmp1_ = '\0';
#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, '\0');
#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = index;
#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = ((gchar*) self)[_tmp0_];
#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _tmp1_;
#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 3140 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	glong _tmp13_ = 0L;
	glong _tmp16_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	gchar* _tmp21_ = NULL;
#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 3173 "gitg-diff-view-file-renderer-text.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 3182 "gitg-diff-view-file-renderer-text.c"
	}
#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 3188 "gitg-diff-view-file-renderer-text.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 3197 "gitg-diff-view-file-renderer-text.c"
	}
#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 3203 "gitg-diff-view-file-renderer-text.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 3212 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 3216 "gitg-diff-view-file-renderer-text.c"
	}
#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 3224 "gitg-diff-view-file-renderer-text.c"
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 3233 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 3237 "gitg-diff-view-file-renderer-text.c"
	}
#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 3259 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_array_add5 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value) {
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgDiffViewFileRendererTextRegion, *array, *size);
#line 3270 "gitg-diff-view-file-renderer-text.c"
	}
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 3274 "gitg-diff-view-file-renderer-text.c"
}


static guint8* g_string_get_data (GString* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	const gchar* _tmp0_ = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gssize _tmp1_ = 0L;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
#line 4711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 4712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = self->str;
#line 4712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	res = (guint8*) _tmp0_;
#line 4712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 4712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 4713 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = self->len;
#line 4713 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 4713 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 3318 "gitg-diff-view-file-renderer-text.c"
	}
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 4714 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 3324 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_add_hunk (GitgDiffViewFileRenderer* base, GgitDiffHunk* hunk, GeeArrayList* lines) {
	GitgDiffViewFileRendererText * self;
	GtkSourceBuffer* buffer = NULL;
	GtkTextBuffer* _tmp0_ = NULL;
	GtkTextBuffer* _tmp1_ = NULL;
	GtkSourceBuffer* _tmp2_ = NULL;
	gchar* h = NULL;
	GgitDiffHunk* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gint pos = 0;
	const gchar* _tmp6_ = NULL;
	gint _tmp7_ = 0;
	gint _tmp8_ = 0;
	const gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	GtkTextIter iter = {0};
	GtkSourceBuffer* _tmp16_ = NULL;
	GtkTextIter _tmp17_ = {0};
	gboolean _tmp18_ = FALSE;
	GtkSourceBuffer* _tmp20_ = NULL;
	GtkTextIter _tmp21_ = {0};
	gchar* header = NULL;
	GgitDiffHunk* _tmp22_ = NULL;
	gint _tmp23_ = 0;
	gchar* _tmp24_ = NULL;
	gchar* _tmp25_ = NULL;
	GgitDiffHunk* _tmp26_ = NULL;
	gint _tmp27_ = 0;
	gchar* _tmp28_ = NULL;
	gchar* _tmp29_ = NULL;
	GgitDiffHunk* _tmp30_ = NULL;
	gint _tmp31_ = 0;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_ = NULL;
	GgitDiffHunk* _tmp34_ = NULL;
	gint _tmp35_ = 0;
	gchar* _tmp36_ = NULL;
	gchar* _tmp37_ = NULL;
	const gchar* _tmp38_ = NULL;
	const gchar* _tmp39_ = NULL;
	gchar* _tmp40_ = NULL;
	gchar* _tmp41_ = NULL;
	GtkSourceBuffer* _tmp42_ = NULL;
	const gchar* _tmp43_ = NULL;
	gint buffer_line = 0;
	gint _tmp44_ = 0;
	GString* content = NULL;
	GString* _tmp45_ = NULL;
	GitgDiffViewFileRendererTextRegion region = {0};
	GitgDiffViewFileRendererTextRegion _tmp46_ = {0};
	GeeArrayList* _tmp137_ = NULL;
	gint _tmp138_ = 0;
	gint _tmp139_ = 0;
	gint line_hunk_start = 0;
	gint _tmp142_ = 0;
	GtkSourceBuffer* _tmp143_ = NULL;
	GString* _tmp144_ = NULL;
	guint8* _tmp145_ = NULL;
	gint _tmp145__length1 = 0;
	guint8* _tmp146_ = NULL;
	gint _tmp146__length1 = 0;
	GitgDiffViewLinesRenderer* _tmp147_ = NULL;
	gint _tmp148_ = 0;
	gint _tmp149_ = 0;
	GgitDiffHunk* _tmp150_ = NULL;
	GeeArrayList* _tmp151_ = NULL;
	GitgDiffViewLinesRenderer* _tmp152_ = NULL;
	gint _tmp153_ = 0;
	gint _tmp154_ = 0;
	GgitDiffHunk* _tmp155_ = NULL;
	GeeArrayList* _tmp156_ = NULL;
	GitgDiffViewLinesRenderer* _tmp157_ = NULL;
	gint _tmp158_ = 0;
	gint _tmp159_ = 0;
	GgitDiffHunk* _tmp160_ = NULL;
	GeeArrayList* _tmp161_ = NULL;
#line 515 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 515 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (hunk != NULL);
#line 515 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (lines != NULL);
#line 517 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_text_view_get_buffer ((GtkTextView*) self);
#line 517 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _tmp0_;
#line 517 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_source_buffer_get_type ()) ? ((GtkSourceBuffer*) _tmp1_) : NULL);
#line 517 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer = _tmp2_;
#line 520 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = hunk;
#line 520 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = ggit_diff_hunk_get_header (_tmp3_);
#line 520 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = g_strdup (_tmp4_);
#line 520 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	h = _tmp5_;
#line 521 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = h;
#line 521 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = string_last_index_of (_tmp6_, "@@", 0);
#line 521 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	pos = _tmp7_;
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = pos;
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp8_ >= 0) {
#line 3437 "gitg-diff-view-file-renderer-text.c"
		const gchar* _tmp9_ = NULL;
		gint _tmp10_ = 0;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp9_ = h;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp10_ = pos;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp11_ = string_substring (_tmp9_, (glong) (_tmp10_ + 2), (glong) -1);
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp12_ = _tmp11_;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp13_ = string_chug (_tmp12_);
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (h);
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		h = _tmp13_;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_tmp12_);
#line 3459 "gitg-diff-view-file-renderer-text.c"
	}
#line 528 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp14_ = h;
#line 528 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = string_chomp (_tmp14_);
#line 528 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (h);
#line 528 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	h = _tmp15_;
#line 531 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp16_ = buffer;
#line 531 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_buffer_get_end_iter ((GtkTextBuffer*) _tmp16_, &_tmp17_);
#line 531 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iter = _tmp17_;
#line 533 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp18_ = gtk_text_iter_is_start (&iter);
#line 533 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp18_) {
#line 3479 "gitg-diff-view-file-renderer-text.c"
		GtkSourceBuffer* _tmp19_ = NULL;
#line 535 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_ = buffer;
#line 535 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_text_buffer_insert ((GtkTextBuffer*) _tmp19_, &iter, "\n", 1);
#line 3485 "gitg-diff-view-file-renderer-text.c"
	}
#line 538 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_iter_set_line_offset (&iter, 0);
#line 539 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp20_ = buffer;
#line 539 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp21_ = iter;
#line 539 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_create_source_mark (_tmp20_, NULL, "header", &_tmp21_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp22_ = hunk;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp23_ = ggit_diff_hunk_get_old_start (_tmp22_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp24_ = g_strdup_printf ("%i", _tmp23_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp25_ = _tmp24_;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp26_ = hunk;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp27_ = ggit_diff_hunk_get_old_lines (_tmp26_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp28_ = g_strdup_printf ("%i", _tmp27_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp29_ = _tmp28_;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp30_ = hunk;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp31_ = ggit_diff_hunk_get_new_start (_tmp30_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp32_ = g_strdup_printf ("%i", _tmp31_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp33_ = _tmp32_;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp34_ = hunk;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp35_ = ggit_diff_hunk_get_new_lines (_tmp34_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp36_ = g_strdup_printf ("%i", _tmp35_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp37_ = _tmp36_;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp38_ = h;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp39_ = string_to_string (_tmp38_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp40_ = g_strconcat ("@@ -", _tmp25_, ",", _tmp29_, " +", _tmp33_, ",", _tmp37_, " @@ ", _tmp39_, "\n", NULL);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp41_ = _tmp40_;
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp37_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp33_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp29_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp25_);
#line 541 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	header = _tmp41_;
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp42_ = buffer;
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp43_ = header;
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_buffer_insert ((GtkTextBuffer*) _tmp42_, &iter, _tmp43_, -1);
#line 544 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp44_ = gtk_text_iter_get_line (&iter);
#line 544 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer_line = _tmp44_;
#line 547 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp45_ = g_string_new ("");
#line 547 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	content = _tmp45_;
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	memset (&_tmp46_, 0, sizeof (GitgDiffViewFileRendererTextRegion));
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.type = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT;
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.buffer_line_start = 0;
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.source_line_start = 0;
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.length = 0;
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	region = _tmp46_;
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_freeze_notify ((GObject*) self);
#line 3573 "gitg-diff-view-file-renderer-text.c"
	{
		gint i = 0;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		i = 0;
#line 3578 "gitg-diff-view-file-renderer-text.c"
		{
			gboolean _tmp47_ = FALSE;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp47_ = TRUE;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			while (TRUE) {
#line 3585 "gitg-diff-view-file-renderer-text.c"
				gint _tmp49_ = 0;
				GeeArrayList* _tmp50_ = NULL;
				gint _tmp51_ = 0;
				gint _tmp52_ = 0;
				GgitDiffLine* line = NULL;
				GeeArrayList* _tmp53_ = NULL;
				gint _tmp54_ = 0;
				gpointer _tmp55_ = NULL;
				gchar* text = NULL;
				GgitDiffLine* _tmp56_ = NULL;
				const gchar* _tmp57_ = NULL;
				gchar* _tmp58_ = NULL;
				gboolean added = FALSE;
				gboolean removed = FALSE;
				GgitDiffLineType origin = 0;
				GgitDiffLine* _tmp59_ = NULL;
				GgitDiffLineType _tmp60_ = 0;
				GitgDiffViewFileRendererTextRegionType rtype = 0;
				GgitDiffLineType _tmp61_ = 0;
				gboolean _tmp66_ = FALSE;
				gint _tmp67_ = 0;
				gint _tmp84_ = 0;
				gboolean _tmp85_ = FALSE;
				gboolean _tmp86_ = FALSE;
				gboolean _tmp115_ = FALSE;
				gboolean _tmp116_ = FALSE;
				gint _tmp117_ = 0;
				GeeArrayList* _tmp118_ = NULL;
				gint _tmp119_ = 0;
				gint _tmp120_ = 0;
				GString* _tmp134_ = NULL;
				const gchar* _tmp135_ = NULL;
				gint _tmp136_ = 0;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!_tmp47_) {
#line 3621 "gitg-diff-view-file-renderer-text.c"
					gint _tmp48_ = 0;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp48_ = i;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					i = _tmp48_ + 1;
#line 3627 "gitg-diff-view-file-renderer-text.c"
				}
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp47_ = FALSE;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp49_ = i;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp50_ = lines;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp51_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp50_);
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp52_ = _tmp51_;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!(_tmp49_ < _tmp52_)) {
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 3643 "gitg-diff-view-file-renderer-text.c"
				}
#line 560 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp53_ = lines;
#line 560 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp54_ = i;
#line 560 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp55_ = gee_abstract_list_get ((GeeAbstractList*) _tmp53_, _tmp54_);
#line 560 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				line = (GgitDiffLine*) _tmp55_;
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp56_ = line;
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp57_ = ggit_diff_line_get_text (_tmp56_);
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp58_ = string_replace (_tmp57_, "\r", "");
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				text = _tmp58_;
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				added = FALSE;
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				removed = FALSE;
#line 564 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp59_ = line;
#line 564 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp60_ = ggit_diff_line_get_origin (_tmp59_);
#line 564 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				origin = _tmp60_;
#line 566 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				rtype = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT;
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp61_ = origin;
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				switch (_tmp61_) {
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_ADDITION:
#line 3679 "gitg-diff-view-file-renderer-text.c"
					{
						guint _tmp62_ = 0U;
#line 571 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						added = TRUE;
#line 572 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp62_ = self->priv->_added;
#line 572 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						gitg_diff_view_file_renderer_text_set_added (self, _tmp62_ + 1);
#line 574 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						rtype = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED;
#line 575 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 3692 "gitg-diff-view-file-renderer-text.c"
					}
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_DELETION:
#line 3696 "gitg-diff-view-file-renderer-text.c"
					{
						guint _tmp63_ = 0U;
#line 577 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						removed = TRUE;
#line 578 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp63_ = self->priv->_removed;
#line 578 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						gitg_diff_view_file_renderer_text_set_removed (self, _tmp63_ + 1);
#line 580 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						rtype = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED;
#line 581 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 3709 "gitg-diff-view-file-renderer-text.c"
					}
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_CONTEXT_EOFNL:
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_ADD_EOFNL:
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_DEL_EOFNL:
#line 3717 "gitg-diff-view-file-renderer-text.c"
					{
						const gchar* _tmp64_ = NULL;
						gchar* _tmp65_ = NULL;
#line 585 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp64_ = text;
#line 585 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp65_ = string_substring (_tmp64_, (glong) 1, (glong) -1);
#line 585 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_g_free0 (text);
#line 585 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						text = _tmp65_;
#line 586 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 3731 "gitg-diff-view-file-renderer-text.c"
					}
					default:
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 3736 "gitg-diff-view-file-renderer-text.c"
				}
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp67_ = i;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp67_ == 0) {
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp66_ = TRUE;
#line 3744 "gitg-diff-view-file-renderer-text.c"
				} else {
					GitgDiffViewFileRendererTextRegionType _tmp68_ = 0;
					GitgDiffViewFileRendererTextRegion _tmp69_ = {0};
					GitgDiffViewFileRendererTextRegionType _tmp70_ = 0;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp68_ = rtype;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp69_ = region;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp70_ = _tmp69_.type;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp66_ = _tmp68_ != _tmp70_;
#line 3757 "gitg-diff-view-file-renderer-text.c"
				}
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp66_) {
#line 3761 "gitg-diff-view-file-renderer-text.c"
					gint _tmp71_ = 0;
					gint source_line_start = 0;
					GitgDiffViewFileRendererTextRegionType _tmp74_ = 0;
					GitgDiffViewFileRendererTextRegionType _tmp79_ = 0;
					gint _tmp80_ = 0;
					gint _tmp81_ = 0;
					GitgDiffViewFileRendererTextRegion _tmp82_ = {0};
					GitgDiffViewFileRendererTextRegion _tmp83_ = {0};
#line 591 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp71_ = i;
#line 591 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp71_ != 0) {
#line 3774 "gitg-diff-view-file-renderer-text.c"
						GitgDiffViewFileRendererTextRegion* _tmp72_ = NULL;
						gint _tmp72__length1 = 0;
						GitgDiffViewFileRendererTextRegion _tmp73_ = {0};
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp72_ = self->priv->d_regions;
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp72__length1 = self->priv->d_regions_length1;
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp73_ = region;
#line 593 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_vala_array_add4 (&self->priv->d_regions, &self->priv->d_regions_length1, &self->priv->_d_regions_size_, &_tmp73_);
#line 3786 "gitg-diff-view-file-renderer-text.c"
					}
#line 598 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp74_ = rtype;
#line 598 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp74_ == GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED) {
#line 3792 "gitg-diff-view-file-renderer-text.c"
						GgitDiffLine* _tmp75_ = NULL;
						gint _tmp76_ = 0;
#line 600 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp75_ = line;
#line 600 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp76_ = ggit_diff_line_get_old_lineno (_tmp75_);
#line 600 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						source_line_start = _tmp76_ - 1;
#line 3801 "gitg-diff-view-file-renderer-text.c"
					} else {
						GgitDiffLine* _tmp77_ = NULL;
						gint _tmp78_ = 0;
#line 604 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp77_ = line;
#line 604 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp78_ = ggit_diff_line_get_new_lineno (_tmp77_);
#line 604 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						source_line_start = _tmp78_ - 1;
#line 3811 "gitg-diff-view-file-renderer-text.c"
					}
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp79_ = rtype;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp80_ = buffer_line;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp81_ = source_line_start;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					memset (&_tmp82_, 0, sizeof (GitgDiffViewFileRendererTextRegion));
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.type = _tmp79_;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.buffer_line_start = _tmp80_;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.source_line_start = _tmp81_;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.length = 0;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					region = _tmp82_;
#line 607 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp83_ = region;
#line 3833 "gitg-diff-view-file-renderer-text.c"
				}
#line 615 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp84_ = region.length;
#line 615 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				region.length = _tmp84_ + 1;
#line 617 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp86_ = added;
#line 617 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp86_) {
#line 617 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp85_ = TRUE;
#line 3845 "gitg-diff-view-file-renderer-text.c"
				} else {
					gboolean _tmp87_ = FALSE;
#line 617 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp87_ = removed;
#line 617 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp85_ = _tmp87_;
#line 3852 "gitg-diff-view-file-renderer-text.c"
				}
#line 617 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp85_) {
#line 3856 "gitg-diff-view-file-renderer-text.c"
					gsize offset = 0UL;
					GgitDiffLine* _tmp88_ = NULL;
					gint64 _tmp89_ = 0LL;
					guint8* bytes = NULL;
					GgitDiffLine* _tmp90_ = NULL;
					gsize _tmp91_;
					guint8* _tmp92_ = NULL;
					guint8* _tmp93_ = NULL;
					gint _tmp93__length1 = 0;
					gint bytes_length1 = 0;
					gint _bytes_size_ = 0;
					GitgPatchSetType _tmp94_ = 0;
					gboolean _tmp95_ = FALSE;
					GitgPatchSetPatch pset = {0};
					gsize _tmp96_ = 0UL;
					gsize _tmp97_ = 0UL;
					guint8* _tmp98_ = NULL;
					gint _tmp98__length1 = 0;
					GitgPatchSetPatch _tmp99_ = {0};
					gboolean _tmp100_ = FALSE;
					GeeHashMap* _tmp107_ = NULL;
					gint _tmp108_ = 0;
					GitgPatchSetPatch _tmp109_ = {0};
					gint64 _tmp110_ = 0LL;
					gboolean _tmp111_ = FALSE;
					gint64 _tmp114_ = 0LL;
#line 619 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp88_ = line;
#line 619 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp89_ = ggit_diff_line_get_content_offset (_tmp88_);
#line 619 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					offset = (gsize) _tmp89_;
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp90_ = line;
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp92_ = ggit_diff_line_get_content (_tmp90_, &_tmp91_);
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp93_ = (_tmp92_ != NULL) ? _vala_array_dup10 (_tmp92_, _tmp91_) : ((gpointer) _tmp92_);
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp93__length1 = _tmp91_;
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					bytes = _tmp93_;
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					bytes_length1 = _tmp93__length1;
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_bytes_size_ = bytes_length1;
#line 623 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp95_ = added;
#line 623 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp95_) {
#line 623 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp94_ = GITG_PATCH_SET_TYPE_ADD;
#line 3909 "gitg-diff-view-file-renderer-text.c"
					} else {
#line 623 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp94_ = GITG_PATCH_SET_TYPE_REMOVE;
#line 3913 "gitg-diff-view-file-renderer-text.c"
					}
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp96_ = offset;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp97_ = offset;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp98_ = bytes;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp98__length1 = bytes_length1;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					memset (&_tmp99_, 0, sizeof (GitgPatchSetPatch));
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.type = _tmp94_;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.old_offset = _tmp96_;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.new_offset = _tmp97_;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.length = (gsize) _tmp98__length1;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					pset = _tmp99_;
#line 629 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp100_ = added;
#line 629 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp100_) {
#line 3939 "gitg-diff-view-file-renderer-text.c"
						GitgPatchSetPatch _tmp101_ = {0};
						gsize _tmp102_ = 0UL;
						gint64 _tmp103_ = 0LL;
#line 631 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp101_ = pset;
#line 631 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp102_ = _tmp101_.old_offset;
#line 631 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp103_ = self->priv->d_doffset;
#line 631 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						pset.old_offset = (gsize) (((gint64) _tmp102_) - _tmp103_);
#line 3951 "gitg-diff-view-file-renderer-text.c"
					} else {
						GitgPatchSetPatch _tmp104_ = {0};
						gsize _tmp105_ = 0UL;
						gint64 _tmp106_ = 0LL;
#line 635 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp104_ = pset;
#line 635 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp105_ = _tmp104_.new_offset;
#line 635 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp106_ = self->priv->d_doffset;
#line 635 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						pset.new_offset = (gsize) (((gint64) _tmp105_) + _tmp106_);
#line 3964 "gitg-diff-view-file-renderer-text.c"
					}
#line 638 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp107_ = self->priv->d_lines;
#line 638 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp108_ = buffer_line;
#line 638 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp109_ = pset;
#line 638 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp107_, (gpointer) ((gintptr) _tmp108_), &_tmp109_);
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp111_ = added;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp111_) {
#line 3978 "gitg-diff-view-file-renderer-text.c"
						guint8* _tmp112_ = NULL;
						gint _tmp112__length1 = 0;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp112_ = bytes;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp112__length1 = bytes_length1;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp110_ = (gint64) _tmp112__length1;
#line 3987 "gitg-diff-view-file-renderer-text.c"
					} else {
						guint8* _tmp113_ = NULL;
						gint _tmp113__length1 = 0;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp113_ = bytes;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp113__length1 = bytes_length1;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp110_ = -((gint64) _tmp113__length1);
#line 3997 "gitg-diff-view-file-renderer-text.c"
					}
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp114_ = self->priv->d_doffset;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					self->priv->d_doffset = _tmp114_ + _tmp110_;
#line 617 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					bytes = (g_free (bytes), NULL);
#line 4005 "gitg-diff-view-file-renderer-text.c"
				}
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp117_ = i;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp118_ = lines;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp119_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp118_);
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp120_ = _tmp119_;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp117_ == (_tmp120_ - 1)) {
#line 4017 "gitg-diff-view-file-renderer-text.c"
					const gchar* _tmp121_ = NULL;
					gint _tmp122_ = 0;
					gint _tmp123_ = 0;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp121_ = text;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp122_ = strlen (_tmp121_);
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp123_ = _tmp122_;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp116_ = _tmp123_ > 0;
#line 4029 "gitg-diff-view-file-renderer-text.c"
				} else {
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp116_ = FALSE;
#line 4033 "gitg-diff-view-file-renderer-text.c"
				}
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp116_) {
#line 4037 "gitg-diff-view-file-renderer-text.c"
					const gchar* _tmp124_ = NULL;
					const gchar* _tmp125_ = NULL;
					gint _tmp126_ = 0;
					gint _tmp127_ = 0;
					gchar _tmp128_ = '\0';
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp124_ = text;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp125_ = text;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp126_ = strlen (_tmp125_);
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp127_ = _tmp126_;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp128_ = string_get (_tmp124_, (glong) (_tmp127_ - 1));
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp115_ = _tmp128_ == '\n';
#line 4055 "gitg-diff-view-file-renderer-text.c"
				} else {
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp115_ = FALSE;
#line 4059 "gitg-diff-view-file-renderer-text.c"
				}
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp115_) {
#line 4063 "gitg-diff-view-file-renderer-text.c"
					const gchar* _tmp129_ = NULL;
					const gchar* _tmp130_ = NULL;
					gint _tmp131_ = 0;
					gint _tmp132_ = 0;
					gchar* _tmp133_ = NULL;
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp129_ = text;
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp130_ = text;
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp131_ = strlen (_tmp130_);
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp132_ = _tmp131_;
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp133_ = string_slice (_tmp129_, (glong) 0, (glong) (_tmp132_ - 1));
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_free0 (text);
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					text = _tmp133_;
#line 4083 "gitg-diff-view-file-renderer-text.c"
				}
#line 647 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp134_ = content;
#line 647 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp135_ = text;
#line 647 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_string_append (_tmp134_, _tmp135_);
#line 648 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp136_ = buffer_line;
#line 648 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				buffer_line = _tmp136_ + 1;
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_free0 (text);
#line 558 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_ggit_diff_line_unref0 (line);
#line 4099 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 651 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp137_ = lines;
#line 651 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp138_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp137_);
#line 651 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp139_ = _tmp138_;
#line 651 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp139_ != 0) {
#line 4111 "gitg-diff-view-file-renderer-text.c"
		GitgDiffViewFileRendererTextRegion* _tmp140_ = NULL;
		gint _tmp140__length1 = 0;
		GitgDiffViewFileRendererTextRegion _tmp141_ = {0};
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp140_ = self->priv->d_regions;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp140__length1 = self->priv->d_regions_length1;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp141_ = region;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_vala_array_add5 (&self->priv->d_regions, &self->priv->d_regions_length1, &self->priv->_d_regions_size_, &_tmp141_);
#line 4123 "gitg-diff-view-file-renderer-text.c"
	}
#line 656 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp142_ = gtk_text_iter_get_line (&iter);
#line 656 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	line_hunk_start = _tmp142_;
#line 658 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp143_ = buffer;
#line 658 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp144_ = content;
#line 658 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp145_ = g_string_get_data (_tmp144_, &_tmp145__length1);
#line 658 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp146_ = _tmp145_;
#line 658 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp146__length1 = _tmp145__length1;
#line 658 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_buffer_insert ((GtkTextBuffer*) _tmp143_, &iter, (const gchar*) _tmp146_, -1);
#line 660 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp147_ = self->priv->d_old_lines;
#line 660 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp148_ = line_hunk_start;
#line 660 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp149_ = gtk_text_iter_get_line (&iter);
#line 660 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp150_ = hunk;
#line 660 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp151_ = lines;
#line 660 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_lines_renderer_add_hunk (_tmp147_, _tmp148_, _tmp149_, _tmp150_, _tmp151_);
#line 661 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp152_ = self->priv->d_new_lines;
#line 661 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp153_ = line_hunk_start;
#line 661 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp154_ = gtk_text_iter_get_line (&iter);
#line 661 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp155_ = hunk;
#line 661 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp156_ = lines;
#line 661 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_lines_renderer_add_hunk (_tmp152_, _tmp153_, _tmp154_, _tmp155_, _tmp156_);
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp157_ = self->priv->d_sym_lines;
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp158_ = line_hunk_start;
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp159_ = gtk_text_iter_get_line (&iter);
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp160_ = hunk;
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp161_ = lines;
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_lines_renderer_add_hunk (_tmp157_, _tmp158_, _tmp159_, _tmp160_, _tmp161_);
#line 4177 "gitg-diff-view-file-renderer-text.c"
	{
		gint i = 0;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		i = 0;
#line 4182 "gitg-diff-view-file-renderer-text.c"
		{
			gboolean _tmp162_ = FALSE;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp162_ = TRUE;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			while (TRUE) {
#line 4189 "gitg-diff-view-file-renderer-text.c"
				gint _tmp164_ = 0;
				GeeArrayList* _tmp165_ = NULL;
				gint _tmp166_ = 0;
				gint _tmp167_ = 0;
				GgitDiffLine* line = NULL;
				GeeArrayList* _tmp168_ = NULL;
				gint _tmp169_ = 0;
				gpointer _tmp170_ = NULL;
				gchar* category = NULL;
				GgitDiffLine* _tmp171_ = NULL;
				GgitDiffLineType _tmp172_ = 0;
				const gchar* _tmp175_ = NULL;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!_tmp162_) {
#line 4204 "gitg-diff-view-file-renderer-text.c"
					gint _tmp163_ = 0;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp163_ = i;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					i = _tmp163_ + 1;
#line 4210 "gitg-diff-view-file-renderer-text.c"
				}
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp162_ = FALSE;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp164_ = i;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp165_ = lines;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp166_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp165_);
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp167_ = _tmp166_;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!(_tmp164_ < _tmp167_)) {
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 4226 "gitg-diff-view-file-renderer-text.c"
				}
#line 666 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp168_ = lines;
#line 666 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp169_ = i;
#line 666 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp170_ = gee_abstract_list_get ((GeeAbstractList*) _tmp168_, _tmp169_);
#line 666 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				line = (GgitDiffLine*) _tmp170_;
#line 667 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				category = NULL;
#line 669 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp171_ = line;
#line 669 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp172_ = ggit_diff_line_get_origin (_tmp171_);
#line 669 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				switch (_tmp172_) {
#line 669 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_ADDITION:
#line 4246 "gitg-diff-view-file-renderer-text.c"
					{
						gchar* _tmp173_ = NULL;
#line 672 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp173_ = g_strdup ("added");
#line 672 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_g_free0 (category);
#line 672 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						category = _tmp173_;
#line 673 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 4257 "gitg-diff-view-file-renderer-text.c"
					}
#line 669 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_DELETION:
#line 4261 "gitg-diff-view-file-renderer-text.c"
					{
						gchar* _tmp174_ = NULL;
#line 675 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp174_ = g_strdup ("removed");
#line 675 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_g_free0 (category);
#line 675 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						category = _tmp174_;
#line 676 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 4272 "gitg-diff-view-file-renderer-text.c"
					}
					default:
#line 669 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 4277 "gitg-diff-view-file-renderer-text.c"
				}
#line 679 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp175_ = category;
#line 679 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp175_ != NULL) {
#line 4283 "gitg-diff-view-file-renderer-text.c"
					GtkSourceBuffer* _tmp176_ = NULL;
					gint _tmp177_ = 0;
					gint _tmp178_ = 0;
					GtkTextIter _tmp179_ = {0};
					GtkSourceBuffer* _tmp180_ = NULL;
					const gchar* _tmp181_ = NULL;
					GtkTextIter _tmp182_ = {0};
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp176_ = buffer;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp177_ = line_hunk_start;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp178_ = i;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gtk_text_buffer_get_iter_at_line ((GtkTextBuffer*) _tmp176_, &_tmp179_, _tmp177_ + _tmp178_);
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					iter = _tmp179_;
#line 682 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp180_ = buffer;
#line 682 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp181_ = category;
#line 682 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp182_ = iter;
#line 682 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gtk_source_buffer_create_source_mark (_tmp180_, NULL, _tmp181_, &_tmp182_);
#line 4309 "gitg-diff-view-file-renderer-text.c"
				}
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_free0 (category);
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_ggit_diff_line_unref0 (line);
#line 4315 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_thaw_notify ((GObject*) self);
#line 688 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_widget_set_sensitive ((GtkWidget*) self, TRUE);
#line 515 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_string_free0 (content);
#line 515 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (header);
#line 515 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (h);
#line 515 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (buffer);
#line 4331 "gitg-diff-view-file-renderer-text.c"
}


guint gitg_diff_view_file_renderer_text_get_added (GitgDiffViewFileRendererText* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_added;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4346 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_added (GitgDiffViewFileRendererText* self, guint value) {
	guint _tmp0_ = 0U;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_added = _tmp0_;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "added");
#line 4360 "gitg-diff-view-file-renderer-text.c"
}


guint gitg_diff_view_file_renderer_text_get_removed (GitgDiffViewFileRendererText* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_removed;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4375 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_removed (GitgDiffViewFileRendererText* self, guint value) {
	guint _tmp0_ = 0U;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_removed = _tmp0_;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "removed");
#line 4389 "gitg-diff-view-file-renderer-text.c"
}


gboolean gitg_diff_view_file_renderer_text_get_new_is_workdir (GitgDiffViewFileRendererText* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_new_is_workdir;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4404 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_new_is_workdir (GitgDiffViewFileRendererText* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_new_is_workdir = _tmp0_;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "new-is-workdir");
#line 4418 "gitg-diff-view-file-renderer-text.c"
}


gboolean gitg_diff_view_file_renderer_text_get_wrap_lines (GitgDiffViewFileRendererText* self) {
	gboolean result;
	GtkWrapMode _tmp0_ = 0;
	GtkWrapMode _tmp1_ = 0;
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_text_view_get_wrap_mode ((GtkTextView*) self);
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _tmp0_;
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp1_ != GTK_WRAP_NONE;
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4436 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_wrap_lines (GitgDiffViewFileRendererText* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 66 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp0_) {
#line 70 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_text_view_set_wrap_mode ((GtkTextView*) self, GTK_WRAP_WORD_CHAR);
#line 4450 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 74 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_text_view_set_wrap_mode ((GtkTextView*) self, GTK_WRAP_NONE);
#line 4454 "gitg-diff-view-file-renderer-text.c"
	}
#line 66 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "wrap-lines");
#line 4458 "gitg-diff-view-file-renderer-text.c"
}


gint gitg_diff_view_file_renderer_text_get_tab_width (GitgDiffViewFileRendererText* self) {
	gint result;
	guint _tmp0_ = 0U;
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_view_get_tab_width ((GtkSourceView*) self);
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = (gint) _tmp0_;
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4473 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_tab_width (GitgDiffViewFileRendererText* self, gint value) {
	gint _tmp0_ = 0;
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_tab_width ((GtkSourceView*) self, (guint) _tmp0_);
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "tab-width");
#line 4487 "gitg-diff-view-file-renderer-text.c"
}


gint gitg_diff_view_file_renderer_text_get_maxlines (GitgDiffViewFileRendererText* self) {
	gint result;
	gint _tmp0_ = 0;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_maxlines;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4502 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_maxlines (GitgDiffViewFileRendererText* self, gint value) {
	gint _tmp0_ = 0;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_maxlines = _tmp0_;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "maxlines");
#line 4516 "gitg-diff-view-file-renderer-text.c"
}


GgitDiffDelta* gitg_diff_view_file_renderer_text_get_delta (GitgDiffViewFileRendererText* self) {
	GgitDiffDelta* result;
	GgitDiffDelta* _tmp0_ = NULL;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_delta;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4531 "gitg-diff-view-file-renderer-text.c"
}


static gpointer _ggit_diff_delta_ref0 (gpointer self) {
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self ? ggit_diff_delta_ref (self) : NULL;
#line 4538 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_delta (GitgDiffViewFileRendererText* self, GgitDiffDelta* value) {
	GgitDiffDelta* _tmp0_ = NULL;
	GgitDiffDelta* _tmp1_ = NULL;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _ggit_diff_delta_ref0 (_tmp0_);
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_delta_unref0 (self->priv->_delta);
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_delta = _tmp1_;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "delta");
#line 4557 "gitg-diff-view-file-renderer-text.c"
}


GitgRepository* gitg_diff_view_file_renderer_text_get_repository (GitgDiffViewFileRendererText* self) {
	GitgRepository* result;
	GitgRepository* _tmp0_ = NULL;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_repository;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4572 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_repository (GitgDiffViewFileRendererText* self, GitgRepository* value) {
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->_repository);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_repository = _tmp1_;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "repository");
#line 4591 "gitg-diff-view-file-renderer-text.c"
}


gboolean gitg_diff_view_file_renderer_text_get_highlight (GitgDiffViewFileRendererText* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_highlight;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4606 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_highlight (GitgDiffViewFileRendererText* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 93 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 95 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 95 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_highlight = _tmp0_;
#line 96 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_update_highlight (self);
#line 93 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "highlight");
#line 4622 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_real_get_has_selection (GitgDiffSelectable* base) {
	gboolean result;
	GitgDiffViewFileRendererText* self;
	gboolean _tmp0_ = FALSE;
#line 106 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 106 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_has_selection;
#line 106 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 106 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4638 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_real_get_can_select (GitgDiffSelectable* base) {
	gboolean result;
	GitgDiffViewFileRendererText* self;
	gboolean _tmp0_ = FALSE;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_can_select;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 4654 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_set_can_select (GitgDiffSelectable* base, gboolean value) {
	GitgDiffViewFileRendererText* self;
	gboolean _tmp0_ = FALSE;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_can_select = _tmp0_;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "can-select");
#line 4669 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_array_add6 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value) {
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgPatchSetPatch, *array, *size);
#line 4680 "gitg-diff-view-file-renderer-text.c"
	}
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 4684 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_array_add7 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value) {
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgPatchSetPatch, *array, *size);
#line 4695 "gitg-diff-view-file-renderer-text.c"
	}
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 4699 "gitg-diff-view-file-renderer-text.c"
}


static GitgPatchSetPatch* _vala_array_dup11 (GitgPatchSetPatch* self, int length) {
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_memdup (self, length * sizeof (GitgPatchSetPatch));
#line 4706 "gitg-diff-view-file-renderer-text.c"
}


static GitgPatchSet* gitg_diff_view_file_renderer_text_real_get_selection (GitgDiffSelectable* base) {
	GitgPatchSet* result;
	GitgDiffViewFileRendererText* self;
	GitgPatchSet* ret = NULL;
	GitgPatchSet* _tmp0_ = NULL;
	GitgPatchSet* _tmp1_ = NULL;
	GgitDiffDelta* _tmp2_ = NULL;
	GgitDiffFile* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	GitgPatchSetPatch* patches = NULL;
	GitgPatchSetPatch* _tmp6_ = NULL;
	gint patches_length1 = 0;
	gint _patches_size_ = 0;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	gint* selected = NULL;
	GitgDiffViewFileSelectable* _tmp9_ = NULL;
	gint* _tmp10_ = NULL;
	gint _tmp10__length1 = 0;
	gint* _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	gint selected_length1 = 0;
	gint _selected_size_ = 0;
	GitgPatchSet* _tmp50_ = NULL;
	GitgPatchSetPatch* _tmp51_ = NULL;
	gint _tmp51__length1 = 0;
	GitgPatchSetPatch* _tmp52_ = NULL;
	gint _tmp52__length1 = 0;
#line 113 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gitg_patch_set_new ();
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	ret = _tmp0_;
#line 117 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = ret;
#line 117 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = self->priv->_delta;
#line 117 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = ggit_diff_delta_get_new_file (_tmp2_);
#line 117 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = ggit_diff_file_get_path (_tmp3_);
#line 117 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = g_strdup (_tmp4_);
#line 117 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp1_->filename);
#line 117 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_->filename = _tmp5_;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = g_new0 (GitgPatchSetPatch, 0);
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	patches = _tmp6_;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	patches_length1 = 0;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_patches_size_ = patches_length1;
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = gitg_diff_selectable_get_can_select ((GitgDiffSelectable*) self);
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = _tmp7_;
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp8_) {
#line 123 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		result = ret;
#line 123 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		patches = (g_free (patches), NULL);
#line 123 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return result;
#line 4779 "gitg-diff-view-file-renderer-text.c"
	}
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = self->priv->d_selectable;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = gitg_diff_view_file_selectable_get_selected_lines (_tmp9_, &_tmp10__length1);
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp11_ = _tmp10_;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp11__length1 = _tmp10__length1;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	selected = _tmp11_;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	selected_length1 = _tmp11__length1;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_selected_size_ = selected_length1;
#line 4795 "gitg-diff-view-file-renderer-text.c"
	{
		gint i = 0;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		i = 0;
#line 4800 "gitg-diff-view-file-renderer-text.c"
		{
			gboolean _tmp12_ = FALSE;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp12_ = TRUE;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			while (TRUE) {
#line 4807 "gitg-diff-view-file-renderer-text.c"
				gint _tmp14_ = 0;
				gint* _tmp15_ = NULL;
				gint _tmp15__length1 = 0;
				gint line = 0;
				gint* _tmp16_ = NULL;
				gint _tmp16__length1 = 0;
				gint _tmp17_ = 0;
				gint _tmp18_ = 0;
				GitgPatchSetPatch* pset = NULL;
				GeeHashMap* _tmp19_ = NULL;
				gint _tmp20_ = 0;
				gpointer _tmp21_ = NULL;
				gint _tmp22_ = 0;
				GitgPatchSetPatch last = {0};
				GitgPatchSetPatch* _tmp26_ = NULL;
				gint _tmp26__length1 = 0;
				GitgPatchSetPatch* _tmp27_ = NULL;
				gint _tmp27__length1 = 0;
				GitgPatchSetPatch _tmp28_ = {0};
				gboolean _tmp29_ = FALSE;
				GitgPatchSetPatch _tmp30_ = {0};
				gsize _tmp31_ = 0UL;
				GitgPatchSetPatch _tmp32_ = {0};
				gsize _tmp33_ = 0UL;
				GitgPatchSetPatch* _tmp34_ = NULL;
				gsize _tmp35_ = 0UL;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!_tmp12_) {
#line 4836 "gitg-diff-view-file-renderer-text.c"
					gint _tmp13_ = 0;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp13_ = i;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					i = _tmp13_ + 1;
#line 4842 "gitg-diff-view-file-renderer-text.c"
				}
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp12_ = FALSE;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp14_ = i;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp15_ = selected;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp15__length1 = selected_length1;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!(_tmp14_ < _tmp15__length1)) {
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 4856 "gitg-diff-view-file-renderer-text.c"
				}
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp16_ = selected;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp16__length1 = selected_length1;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp17_ = i;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp18_ = _tmp16_[_tmp17_];
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				line = _tmp18_;
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp19_ = self->priv->d_lines;
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp20_ = line;
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp21_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp19_, (gpointer) ((gintptr) _tmp20_));
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				pset = (GitgPatchSetPatch*) _tmp21_;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp22_ = i;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp22_ == 0) {
#line 4880 "gitg-diff-view-file-renderer-text.c"
					GitgPatchSetPatch* _tmp23_ = NULL;
					gint _tmp23__length1 = 0;
					GitgPatchSetPatch* _tmp24_ = NULL;
					GitgPatchSetPatch _tmp25_ = {0};
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp23_ = patches;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp23__length1 = patches_length1;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp24_ = pset;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp25_ = *_tmp24_;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_vala_array_add6 (&patches, &patches_length1, &_patches_size_, &_tmp25_);
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_gitg_patch_set_patch_free0 (pset);
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					continue;
#line 4899 "gitg-diff-view-file-renderer-text.c"
				}
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp26_ = patches;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp26__length1 = patches_length1;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp27_ = patches;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp27__length1 = patches_length1;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp28_ = _tmp26_[_tmp27__length1 - 1];
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				last = _tmp28_;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp30_ = last;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp31_ = _tmp30_.new_offset;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp32_ = last;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp33_ = _tmp32_.length;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp34_ = pset;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp35_ = (*_tmp34_).new_offset;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if ((_tmp31_ + _tmp33_) == _tmp35_) {
#line 4927 "gitg-diff-view-file-renderer-text.c"
					GitgPatchSetPatch _tmp36_ = {0};
					GitgPatchSetType _tmp37_ = 0;
					GitgPatchSetPatch* _tmp38_ = NULL;
					GitgPatchSetType _tmp39_ = 0;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp36_ = last;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp37_ = _tmp36_.type;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp38_ = pset;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp39_ = (*_tmp38_).type;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp29_ = _tmp37_ == _tmp39_;
#line 4942 "gitg-diff-view-file-renderer-text.c"
				} else {
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp29_ = FALSE;
#line 4946 "gitg-diff-view-file-renderer-text.c"
				}
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp29_) {
#line 4950 "gitg-diff-view-file-renderer-text.c"
					gsize _tmp40_ = 0UL;
					GitgPatchSetPatch* _tmp41_ = NULL;
					gsize _tmp42_ = 0UL;
					GitgPatchSetPatch* _tmp43_ = NULL;
					gint _tmp43__length1 = 0;
					GitgPatchSetPatch* _tmp44_ = NULL;
					gint _tmp44__length1 = 0;
					GitgPatchSetPatch _tmp45_ = {0};
					GitgPatchSetPatch _tmp46_ = {0};
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp40_ = last.length;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp41_ = pset;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp42_ = (*_tmp41_).length;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					last.length = _tmp40_ + _tmp42_;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp43_ = patches;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp43__length1 = patches_length1;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp44_ = patches;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp44__length1 = patches_length1;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp45_ = last;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp43_[_tmp44__length1 - 1] = _tmp45_;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp46_ = _tmp43_[_tmp44__length1 - 1];
#line 4982 "gitg-diff-view-file-renderer-text.c"
				} else {
					GitgPatchSetPatch* _tmp47_ = NULL;
					gint _tmp47__length1 = 0;
					GitgPatchSetPatch* _tmp48_ = NULL;
					GitgPatchSetPatch _tmp49_ = {0};
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp47_ = patches;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp47__length1 = patches_length1;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp48_ = pset;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp49_ = *_tmp48_;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_vala_array_add7 (&patches, &patches_length1, &_patches_size_, &_tmp49_);
#line 4998 "gitg-diff-view-file-renderer-text.c"
				}
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_gitg_patch_set_patch_free0 (pset);
#line 5002 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp50_ = ret;
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp51_ = patches;
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp51__length1 = patches_length1;
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp52_ = (_tmp51_ != NULL) ? _vala_array_dup11 (_tmp51_, _tmp51__length1) : ((gpointer) _tmp51_);
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp52__length1 = _tmp51__length1;
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp50_->patches = (g_free (_tmp50_->patches), NULL);
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp50_->patches = _tmp52_;
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp50_->patches_length1 = _tmp52__length1;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = ret;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	selected = (g_free (selected), NULL);
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	patches = (g_free (patches), NULL);
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5030 "gitg-diff-view-file-renderer-text.c"
}


static void _gitg_diff_view_file_renderer_text_update_theme_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_update_theme ((GitgDiffViewFileRendererText*) self);
#line 5037 "gitg-diff-view-file-renderer-text.c"
}


static void _gitg_diff_view_file_renderer_text____lambda52_ (GitgDiffViewFileRendererText* self) {
	GitgDiffViewFileSelectable* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_selectable;
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gitg_diff_view_file_selectable_get_has_selection (_tmp0_);
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _tmp1_;
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_has_selection = _tmp2_;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject*) self, "has-selection");
#line 5055 "gitg-diff-view-file-renderer-text.c"
}


static void __gitg_diff_view_file_renderer_text____lambda52__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_gitg_diff_view_file_renderer_text____lambda52_ ((GitgDiffViewFileRendererText*) self);
#line 5062 "gitg-diff-view-file-renderer-text.c"
}


static GObject * gitg_diff_view_file_renderer_text_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgDiffViewFileRendererText * self;
	GtkSourceGutter* gutter = NULL;
	GtkSourceGutter* _tmp0_ = NULL;
	GtkSourceGutter* _tmp1_ = NULL;
	GitgDiffViewLinesRenderer* _tmp2_ = NULL;
	GitgDiffViewLinesRenderer* _tmp3_ = NULL;
	GitgDiffViewLinesRenderer* _tmp4_ = NULL;
	GitgDiffViewLinesRenderer* _tmp5_ = NULL;
	GitgDiffViewLinesRenderer* _tmp6_ = NULL;
	GitgDiffViewLinesRenderer* _tmp7_ = NULL;
	GitgDiffViewLinesRenderer* _tmp8_ = NULL;
	GitgDiffViewLinesRenderer* _tmp9_ = NULL;
	GtkSourceGutter* _tmp10_ = NULL;
	GitgDiffViewLinesRenderer* _tmp11_ = NULL;
	GtkSourceGutter* _tmp12_ = NULL;
	GitgDiffViewLinesRenderer* _tmp13_ = NULL;
	GtkSourceGutter* _tmp14_ = NULL;
	GitgDiffViewLinesRenderer* _tmp15_ = NULL;
	GtkSettings* settings = NULL;
	GtkSettings* _tmp16_ = NULL;
	GtkSettings* _tmp17_ = NULL;
	GtkSettings* _tmp18_ = NULL;
	gboolean _tmp19_ = FALSE;
	gboolean _tmp20_ = FALSE;
	GeeHashMap* _tmp23_ = NULL;
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	parent_class = G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class);
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 165 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_view_get_gutter ((GtkSourceView*) self, GTK_TEXT_WINDOW_LEFT);
#line 165 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 165 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gutter = _tmp1_;
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = gitg_diff_view_lines_renderer_new (GITG_DIFF_VIEW_LINES_RENDERER_STYLE_OLD);
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_ref_sink (_tmp2_);
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_lines);
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_old_lines = _tmp2_;
#line 168 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = gitg_diff_view_lines_renderer_new (GITG_DIFF_VIEW_LINES_RENDERER_STYLE_NEW);
#line 168 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_ref_sink (_tmp3_);
#line 168 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_lines);
#line 168 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_new_lines = _tmp3_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = gitg_diff_view_lines_renderer_new (GITG_DIFF_VIEW_LINES_RENDERER_STYLE_SYMBOL);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_ref_sink (_tmp4_);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_sym_lines);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_sym_lines = _tmp4_;
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = self->priv->d_old_lines;
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_bind_property_with_closures ((GObject*) self, "maxlines", (GObject*) _tmp5_, "maxlines", 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 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = self->priv->d_new_lines;
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_bind_property_with_closures ((GObject*) self, "maxlines", (GObject*) _tmp6_, "maxlines", 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 174 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = self->priv->d_old_lines;
#line 174 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_set ((GtkSourceGutterRenderer*) _tmp7_, "xpad", 8, NULL);
#line 175 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = self->priv->d_new_lines;
#line 175 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_set ((GtkSourceGutterRenderer*) _tmp8_, "xpad", 8, NULL);
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = self->priv->d_sym_lines;
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_set ((GtkSourceGutterRenderer*) _tmp9_, "xpad", 6, NULL);
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = gutter;
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp11_ = self->priv->d_old_lines;
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_gutter_insert (_tmp10_, (GtkSourceGutterRenderer*) _tmp11_, 0);
#line 179 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp12_ = gutter;
#line 179 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp13_ = self->priv->d_new_lines;
#line 179 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_gutter_insert (_tmp12_, (GtkSourceGutterRenderer*) _tmp13_, 1);
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp14_ = gutter;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = self->priv->d_sym_lines;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_gutter_insert (_tmp14_, (GtkSourceGutterRenderer*) _tmp15_, 2);
#line 182 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_view_set_border_window_size ((GtkTextView*) self, GTK_TEXT_WINDOW_TOP, 1);
#line 184 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp16_ = gtk_settings_get_default ();
#line 184 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp17_ = _g_object_ref0 (_tmp16_);
#line 184 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	settings = _tmp17_;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp18_ = settings;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_signal_connect_object ((GObject*) _tmp18_, "notify::gtk-application-prefer-dark-theme", (GCallback) _gitg_diff_view_file_renderer_text_update_theme_g_object_notify, self, 0);
#line 187 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_update_theme (self);
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp19_ = gitg_diff_selectable_get_can_select ((GitgDiffSelectable*) self);
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp20_ = _tmp19_;
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp20_) {
#line 5188 "gitg-diff-view-file-renderer-text.c"
		GitgDiffViewFileSelectable* _tmp21_ = NULL;
		GitgDiffViewFileSelectable* _tmp22_ = NULL;
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_ = gitg_diff_view_file_selectable_new ((GtkSourceView*) self);
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_selectable);
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_selectable = _tmp21_;
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp22_ = self->priv->d_selectable;
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_signal_connect_object ((GObject*) _tmp22_, "notify::has-selection", (GCallback) __gitg_diff_view_file_renderer_text____lambda52__g_object_notify, self, 0);
#line 5201 "gitg-diff-view-file-renderer-text.c"
	}
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp23_ = gee_hash_map_new (G_TYPE_INT, NULL, NULL, GITG_PATCH_SET_TYPE_PATCH, (GBoxedCopyFunc) gitg_patch_set_patch_dup, gitg_patch_set_patch_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_lines);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_lines = _tmp23_;
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (settings);
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (gutter);
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return obj;
#line 5215 "gitg-diff-view-file-renderer-text.c"
}


static GitgDiffViewFileRendererTextRegion* gitg_diff_view_file_renderer_text_region_dup (const GitgDiffViewFileRendererTextRegion* self) {
	GitgDiffViewFileRendererTextRegion* dup;
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	dup = g_new0 (GitgDiffViewFileRendererTextRegion, 1);
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	memcpy (dup, self, sizeof (GitgDiffViewFileRendererTextRegion));
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return dup;
#line 5227 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_region_free (GitgDiffViewFileRendererTextRegion* self) {
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_free (self);
#line 5234 "gitg-diff-view-file-renderer-text.c"
}


static GType gitg_diff_view_file_renderer_text_region_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_text_region_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_text_region_type_id__volatile)) {
		GType gitg_diff_view_file_renderer_text_region_type_id;
		gitg_diff_view_file_renderer_text_region_type_id = g_boxed_type_register_static ("GitgDiffViewFileRendererTextRegion", (GBoxedCopyFunc) gitg_diff_view_file_renderer_text_region_dup, (GBoxedFreeFunc) gitg_diff_view_file_renderer_text_region_free);
		g_once_init_leave (&gitg_diff_view_file_renderer_text_region_type_id__volatile, gitg_diff_view_file_renderer_text_region_type_id);
	}
	return gitg_diff_view_file_renderer_text_region_type_id__volatile;
}


static void gitg_diff_view_file_renderer_text_class_init (GitgDiffViewFileRendererTextClass * klass) {
	gint GitgDiffViewFileRendererText_private_offset;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_parent_class = g_type_class_peek_parent (klass);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewFileRendererTextPrivate));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	((GObjectClass *) klass)->dispose = gitg_diff_view_file_renderer_text_real_dispose;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	((GtkWidgetClass *) klass)->draw = gitg_diff_view_file_renderer_text_real_draw;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	((GObjectClass *) klass)->constructed = gitg_diff_view_file_renderer_text_real_constructed;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_view_file_renderer_text_get_property;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_view_file_renderer_text_set_property;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_diff_view_file_renderer_text_constructor;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_view_file_renderer_text_finalize;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED, g_param_spec_uint ("added", "added", "added", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED, g_param_spec_uint ("removed", "removed", "removed", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR, g_param_spec_boolean ("new-is-workdir", "new-is-workdir", "new-is-workdir", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES, g_param_spec_boolean ("wrap-lines", "wrap-lines", "wrap-lines", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH, g_param_spec_int ("tab-width", "tab-width", "tab-width", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES, g_param_spec_int ("maxlines", "maxlines", "maxlines", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DELTA, g_param_spec_boxed ("delta", "delta", "delta", ggit_diff_delta_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_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 | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT, g_param_spec_boolean ("highlight", "highlight", "highlight", TRUE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HAS_SELECTION, g_param_spec_boolean ("has-selection", "has-selection", "has-selection", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT, g_param_spec_boolean ("can-select", "can-select", "can-select", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_SELECTION, gitg_param_spec_patch_set ("selection", "selection", "selection", GITG_TYPE_PATCH_SET, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	GitgDiffViewFileRendererText_private_offset = g_type_class_get_instance_private_offset (klass);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-diff-view-file-renderer-text.ui");
#line 5297 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_gitg_diff_selectable_interface_init (GitgDiffSelectableIface * iface) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_gitg_diff_selectable_parent_iface = g_type_interface_peek_parent (iface);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->get_has_selection = gitg_diff_view_file_renderer_text_real_get_has_selection;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->get_can_select = gitg_diff_view_file_renderer_text_real_get_can_select;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->set_can_select = gitg_diff_view_file_renderer_text_real_set_can_select;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->get_selection = gitg_diff_view_file_renderer_text_real_get_selection;
#line 5312 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_interface_init (GitgDiffViewFileRendererIface * iface) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_parent_iface = g_type_interface_peek_parent (iface);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->add_hunk = (void (*)(GitgDiffViewFileRenderer*, GgitDiffHunk*, GeeArrayList*)) gitg_diff_view_file_renderer_text_real_add_hunk;
#line 5321 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_instance_init (GitgDiffViewFileRendererText * self) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_GET_PRIVATE (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 5330 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_finalize (GObject* obj) {
	GitgDiffViewFileRendererText * self;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_lines);
#line 45 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_selectable);
#line 46 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_lines);
#line 47 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_lines);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_sym_lines);
#line 52 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 53 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_highlight_buffer);
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_highlight_buffer);
#line 58 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_regions = (g_free (self->priv->d_regions), NULL);
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_delta_unref0 (self->priv->_delta);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->_repository);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class)->finalize (obj);
#line 5362 "gitg-diff-view-file-renderer-text.c"
}


GType gitg_diff_view_file_renderer_text_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_text_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_text_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewFileRendererTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_file_renderer_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewFileRendererText), 0, (GInstanceInitFunc) gitg_diff_view_file_renderer_text_instance_init, NULL };
		static const GInterfaceInfo gitg_diff_selectable_info = { (GInterfaceInitFunc) gitg_diff_view_file_renderer_text_gitg_diff_selectable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_diff_view_file_renderer_info = { (GInterfaceInitFunc) gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_diff_view_file_renderer_text_type_id;
		gitg_diff_view_file_renderer_text_type_id = g_type_register_static (gtk_source_view_get_type (), "GitgDiffViewFileRendererText", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_diff_view_file_renderer_text_type_id, GITG_TYPE_DIFF_SELECTABLE, &gitg_diff_selectable_info);
		g_type_add_interface_static (gitg_diff_view_file_renderer_text_type_id, GITG_TYPE_DIFF_VIEW_FILE_RENDERER, &gitg_diff_view_file_renderer_info);
		g_once_init_leave (&gitg_diff_view_file_renderer_text_type_id__volatile, gitg_diff_view_file_renderer_text_type_id);
	}
	return gitg_diff_view_file_renderer_text_type_id__volatile;
}


static void _vala_gitg_diff_view_file_renderer_text_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererText * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (property_id) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_uint (value, gitg_diff_view_file_renderer_text_get_added (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_uint (value, gitg_diff_view_file_renderer_text_get_removed (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_view_file_renderer_text_get_new_is_workdir (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_view_file_renderer_text_get_wrap_lines (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_int (value, gitg_diff_view_file_renderer_text_get_tab_width (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_int (value, gitg_diff_view_file_renderer_text_get_maxlines (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DELTA:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boxed (value, gitg_diff_view_file_renderer_text_get_delta (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REPOSITORY:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_object (value, gitg_diff_view_file_renderer_text_get_repository (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_view_file_renderer_text_get_highlight (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HAS_SELECTION:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_selectable_get_has_selection ((GitgDiffSelectable*) self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_selectable_get_can_select ((GitgDiffSelectable*) self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_SELECTION:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_value_take_patch_set (value, gitg_diff_selectable_get_selection ((GitgDiffSelectable*) self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 5459 "gitg-diff-view-file-renderer-text.c"
		default:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 5465 "gitg-diff-view-file-renderer-text.c"
	}
}


static void _vala_gitg_diff_view_file_renderer_text_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererText * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (property_id) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_added (self, g_value_get_uint (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_removed (self, g_value_get_uint (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_new_is_workdir (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_wrap_lines (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_tab_width (self, g_value_get_int (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_maxlines (self, g_value_get_int (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DELTA:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_delta (self, g_value_get_boxed (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REPOSITORY:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_repository (self, g_value_get_object (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_highlight (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_selectable_set_can_select ((GitgDiffSelectable*) self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 5535 "gitg-diff-view-file-renderer-text.c"
		default:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 5541 "gitg-diff-view-file-renderer-text.c"
	}
}



