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

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


#define GITG_TYPE_DIFF_VIEW_FILE (gitg_diff_view_file_get_type ())
#define GITG_DIFF_VIEW_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFile))
#define GITG_DIFF_VIEW_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFileClass))
#define GITG_IS_DIFF_VIEW_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE))
#define GITG_IS_DIFF_VIEW_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE))
#define GITG_DIFF_VIEW_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFileClass))

typedef struct _GitgDiffViewFile GitgDiffViewFile;
typedef struct _GitgDiffViewFileClass GitgDiffViewFileClass;
typedef struct _GitgDiffViewFilePrivate GitgDiffViewFilePrivate;

#define GITG_TYPE_DIFF_STAT (gitg_diff_stat_get_type ())
#define GITG_DIFF_STAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_STAT, GitgDiffStat))
#define GITG_DIFF_STAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_STAT, GitgDiffStatClass))
#define GITG_IS_DIFF_STAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_STAT))
#define GITG_IS_DIFF_STAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_STAT))
#define GITG_DIFF_STAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_STAT, GitgDiffStatClass))

typedef struct _GitgDiffStat GitgDiffStat;
typedef struct _GitgDiffStatClass GitgDiffStatClass;

#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)))

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

#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 _g_free0(var) (var = (g_free (var), NULL))
#define _ggit_diff_file_unref0(var) ((var == NULL) ? NULL : (var = (ggit_diff_file_unref (var), NULL)))

struct _GitgDiffViewFile {
	GtkGrid parent_instance;
	GitgDiffViewFilePrivate * priv;
};

struct _GitgDiffViewFileClass {
	GtkGridClass parent_class;
};

struct _GitgDiffViewFilePrivate {
	GtkExpander* d_expander;
	GtkLabel* d_label_file_header;
	GitgDiffStat* d_diff_stat_file;
	GtkRevealer* d_revealer_content;
	gboolean d_expanded;
	GBinding* d_vexpand_binding;
	gboolean _new_is_workdir;
	GgitDiffDelta* _delta;
	GitgRepository* _repository;
};

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


static gpointer gitg_diff_view_file_parent_class = NULL;

GType gitg_diff_view_file_get_type (void) G_GNUC_CONST;
GType gitg_diff_stat_get_type (void) G_GNUC_CONST;
GType gitg_repository_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_VIEW_FILE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFilePrivate))
enum  {
	GITG_DIFF_VIEW_FILE_DUMMY_PROPERTY,
	GITG_DIFF_VIEW_FILE_RENDERER,
	GITG_DIFF_VIEW_FILE_NEW_IS_WORKDIR,
	GITG_DIFF_VIEW_FILE_EXPANDED,
	GITG_DIFF_VIEW_FILE_DELTA,
	GITG_DIFF_VIEW_FILE_REPOSITORY
};
GitgDiffViewFile* gitg_diff_view_file_new (GitgRepository* repository, GgitDiffDelta* delta);
GitgDiffViewFile* gitg_diff_view_file_construct (GType object_type, GitgRepository* repository, GgitDiffDelta* delta);
GitgDiffViewFile* gitg_diff_view_file_new_text (GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean handle_selection);
GitgDiffViewFile* gitg_diff_view_file_construct_text (GType object_type, GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean handle_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);
GType gitg_diff_view_file_renderer_text_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_file_renderer_get_type (void) G_GNUC_CONST;
void gitg_diff_view_file_set_renderer (GitgDiffViewFile* self, GitgDiffViewFileRenderer* value);
GitgDiffViewFileRenderer* gitg_diff_view_file_get_renderer (GitgDiffViewFile* self);
GitgDiffViewFile* gitg_diff_view_file_new_binary (GitgRepository* repository, GgitDiffDelta* delta);
GitgDiffViewFile* gitg_diff_view_file_construct_binary (GType object_type, GitgRepository* repository, GgitDiffDelta* delta);
GitgDiffViewFile* gitg_diff_view_file_new_image (GitgRepository* repository, GgitDiffDelta* delta);
GitgDiffViewFile* gitg_diff_view_file_construct_image (GType object_type, GitgRepository* repository, GgitDiffDelta* delta);
static void gitg_diff_view_file_real_constructed (GObject* base);
GgitDiffDelta* gitg_diff_view_file_get_delta (GitgDiffViewFile* self);
void gitg_diff_view_file_add_hunk (GitgDiffViewFile* self, GgitDiffHunk* hunk, GeeArrayList* lines);
void gitg_diff_view_file_renderer_add_hunk (GitgDiffViewFileRenderer* self, GgitDiffHunk* hunk, GeeArrayList* lines);
gboolean gitg_diff_view_file_get_new_is_workdir (GitgDiffViewFile* self);
void gitg_diff_view_file_set_new_is_workdir (GitgDiffViewFile* self, gboolean value);
gboolean gitg_diff_view_file_get_expanded (GitgDiffViewFile* self);
void gitg_diff_view_file_set_expanded (GitgDiffViewFile* self, gboolean value);
void gitg_diff_view_file_set_delta (GitgDiffViewFile* self, GgitDiffDelta* value);
GitgRepository* gitg_diff_view_file_get_repository (GitgDiffViewFile* self);
void gitg_diff_view_file_set_repository (GitgDiffViewFile* self, GitgRepository* value);
static void gitg_diff_view_file_finalize (GObject* obj);
static void _vala_gitg_diff_view_file_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_diff_view_file_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GitgDiffViewFile* gitg_diff_view_file_construct (GType object_type, GitgRepository* repository, GgitDiffDelta* delta) {
	GitgDiffViewFile * self = NULL;
	GitgRepository* _tmp0_ = NULL;
	GgitDiffDelta* _tmp1_ = NULL;
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = repository;
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = delta;
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) g_object_new (object_type, "repository", _tmp0_, "delta", _tmp1_, NULL);
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 172 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_new (GitgRepository* repository, GgitDiffDelta* delta) {
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return gitg_diff_view_file_construct (GITG_TYPE_DIFF_VIEW_FILE, repository, delta);
#line 179 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_construct_text (GType object_type, GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean handle_selection) {
	GitgDiffViewFile * self = NULL;
	GitgRepository* _tmp0_ = NULL;
	GgitDiffDelta* _tmp1_ = NULL;
	GitgRepository* _tmp2_ = NULL;
	GgitDiffDelta* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	GitgDiffViewFileRendererText* _tmp6_ = NULL;
	GitgDiffViewFileRendererText* _tmp7_ = NULL;
	GitgDiffViewFileRenderer* _tmp8_ = NULL;
	GitgDiffViewFileRenderer* _tmp9_ = NULL;
	GitgDiffViewFileRenderer* _tmp10_ = NULL;
	GitgDiffViewFileRenderer* _tmp11_ = NULL;
	GitgDiffViewFileRenderer* _tmp12_ = NULL;
	GitgDiffViewFileRenderer* _tmp13_ = NULL;
	GitgDiffStat* _tmp14_ = NULL;
	GitgDiffViewFileRenderer* _tmp15_ = NULL;
	GitgDiffViewFileRenderer* _tmp16_ = NULL;
	GitgDiffViewFileRenderer* _tmp17_ = NULL;
	GitgDiffStat* _tmp18_ = NULL;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = repository;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = delta;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) gitg_diff_view_file_construct (object_type, _tmp0_, _tmp1_);
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = repository;
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = delta;
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = new_is_workdir;
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = handle_selection;
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp6_ = gitg_diff_view_file_renderer_text_new (_tmp2_, _tmp3_, _tmp4_, _tmp5_);
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp6_);
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp7_ = _tmp6_;
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_set_renderer (self, (GitgDiffViewFileRenderer*) _tmp7_);
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp7_);
#line 112 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp8_ = gitg_diff_view_file_get_renderer (self);
#line 112 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp9_ = _tmp8_;
#line 112 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp10_ = _tmp9_;
#line 112 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp10_);
#line 112 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp10_);
#line 114 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp11_ = gitg_diff_view_file_get_renderer (self);
#line 114 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp12_ = _tmp11_;
#line 114 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp13_ = _tmp12_;
#line 114 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp14_ = self->priv->d_diff_stat_file;
#line 114 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp13_, "added", (GObject*) _tmp14_, "added", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 114 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp13_);
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp15_ = gitg_diff_view_file_get_renderer (self);
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp16_ = _tmp15_;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp17_ = _tmp16_;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp18_ = self->priv->d_diff_stat_file;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp17_, "removed", (GObject*) _tmp18_, "removed", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp17_);
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 266 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_new_text (GitgRepository* repository, GgitDiffDelta* delta, gboolean new_is_workdir, gboolean handle_selection) {
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return gitg_diff_view_file_construct_text (GITG_TYPE_DIFF_VIEW_FILE, repository, delta, new_is_workdir, handle_selection);
#line 273 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_construct_binary (GType object_type, GitgRepository* repository, GgitDiffDelta* delta) {
	GitgDiffViewFile * self = NULL;
	GitgRepository* _tmp0_ = NULL;
	GgitDiffDelta* _tmp1_ = NULL;
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 120 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = repository;
#line 120 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = delta;
#line 120 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) gitg_diff_view_file_construct (object_type, _tmp0_, _tmp1_);
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 291 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_new_binary (GitgRepository* repository, GgitDiffDelta* delta) {
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return gitg_diff_view_file_construct_binary (GITG_TYPE_DIFF_VIEW_FILE, repository, delta);
#line 298 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_construct_image (GType object_type, GitgRepository* repository, GgitDiffDelta* delta) {
	GitgDiffViewFile * self = NULL;
	GitgRepository* _tmp0_ = NULL;
	GgitDiffDelta* _tmp1_ = NULL;
#line 123 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 125 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = repository;
#line 125 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = delta;
#line 125 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) gitg_diff_view_file_construct (object_type, _tmp0_, _tmp1_);
#line 123 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 316 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_new_image (GitgRepository* repository, GgitDiffDelta* delta) {
#line 123 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return gitg_diff_view_file_construct_image (GITG_TYPE_DIFF_VIEW_FILE, repository, delta);
#line 323 "gitg-diff-view-file.c"
}


static gpointer _ggit_diff_file_ref0 (gpointer self) {
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return self ? ggit_diff_file_ref (self) : NULL;
#line 330 "gitg-diff-view-file.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 342 "gitg-diff-view-file.c"
}


static void gitg_diff_view_file_real_constructed (GObject* base) {
	GitgDiffViewFile * self;
	GgitDiffFile* oldfile = NULL;
	GgitDiffDelta* _tmp0_ = NULL;
	GgitDiffFile* _tmp1_ = NULL;
	GgitDiffFile* _tmp2_ = NULL;
	GgitDiffFile* newfile = NULL;
	GgitDiffDelta* _tmp3_ = NULL;
	GgitDiffFile* _tmp4_ = NULL;
	GgitDiffFile* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GgitDiffFile* _tmp7_ = NULL;
	gchar* oldpath = NULL;
	gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	GgitDiffFile* _tmp12_ = NULL;
	gchar* newpath = NULL;
	gchar* _tmp15_ = NULL;
	GgitDiffDelta* _tmp16_ = NULL;
	guint _tmp17_ = 0U;
	GtkExpander* _tmp32_ = NULL;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) base;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_parent_class)->constructed ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid));
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->_delta;
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = ggit_diff_delta_get_old_file (_tmp0_);
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = _ggit_diff_file_ref0 (_tmp1_);
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	oldfile = _tmp2_;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = self->priv->_delta;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = ggit_diff_delta_get_new_file (_tmp3_);
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = _ggit_diff_file_ref0 (_tmp4_);
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	newfile = _tmp5_;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp7_ = oldfile;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp7_ != NULL) {
#line 391 "gitg-diff-view-file.c"
		GgitDiffFile* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp8_ = oldfile;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp9_ = ggit_diff_file_get_path (_tmp8_);
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = _tmp9_;
#line 400 "gitg-diff-view-file.c"
	} else {
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = NULL;
#line 404 "gitg-diff-view-file.c"
	}
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp10_ = g_strdup (_tmp6_);
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	oldpath = _tmp10_;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp12_ = newfile;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp12_ != NULL) {
#line 414 "gitg-diff-view-file.c"
		GgitDiffFile* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp13_ = newfile;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp14_ = ggit_diff_file_get_path (_tmp13_);
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp11_ = _tmp14_;
#line 423 "gitg-diff-view-file.c"
	} else {
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp11_ = NULL;
#line 427 "gitg-diff-view-file.c"
	}
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp15_ = g_strdup (_tmp11_);
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	newpath = _tmp15_;
#line 138 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp16_ = self->priv->_delta;
#line 138 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp17_ = ggit_diff_delta_get_similarity (_tmp16_);
#line 138 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp17_ > ((guint) 0)) {
#line 439 "gitg-diff-view-file.c"
		GtkLabel* _tmp18_ = NULL;
		GgitDiffFile* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		const gchar* _tmp21_ = NULL;
		GgitDiffFile* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		const gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp18_ = self->priv->d_label_file_header;
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp19_ = newfile;
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp20_ = ggit_diff_file_get_path (_tmp19_);
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp21_ = string_to_string (_tmp20_);
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp22_ = oldfile;
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp23_ = ggit_diff_file_get_path (_tmp22_);
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp24_ = string_to_string (_tmp23_);
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp25_ = g_strconcat (_tmp21_, " ← ", _tmp24_, NULL);
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp26_ = _tmp25_;
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_label_set_label (_tmp18_, _tmp26_);
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (_tmp26_);
#line 471 "gitg-diff-view-file.c"
	} else {
		const gchar* _tmp27_ = NULL;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp27_ = newpath;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp27_ != NULL) {
#line 478 "gitg-diff-view-file.c"
			GtkLabel* _tmp28_ = NULL;
			const gchar* _tmp29_ = NULL;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp28_ = self->priv->d_label_file_header;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp29_ = newpath;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_label_set_label (_tmp28_, _tmp29_);
#line 487 "gitg-diff-view-file.c"
		} else {
			GtkLabel* _tmp30_ = NULL;
			const gchar* _tmp31_ = NULL;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp30_ = self->priv->d_label_file_header;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp31_ = oldpath;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_label_set_label (_tmp30_, _tmp31_);
#line 497 "gitg-diff-view-file.c"
		}
	}
#line 151 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp32_ = self->priv->d_expander;
#line 151 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp32_, "expanded", (GObject*) self, "expanded", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_free0 (newpath);
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_free0 (oldpath);
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_ggit_diff_file_unref0 (newfile);
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_ggit_diff_file_unref0 (oldfile);
#line 512 "gitg-diff-view-file.c"
}


void gitg_diff_view_file_add_hunk (GitgDiffViewFile* self, GgitDiffHunk* hunk, GeeArrayList* lines) {
	GitgDiffViewFileRenderer* _tmp0_ = NULL;
	GitgDiffViewFileRenderer* _tmp1_ = NULL;
	GitgDiffViewFileRenderer* _tmp2_ = NULL;
	GgitDiffHunk* _tmp3_ = NULL;
	GeeArrayList* _tmp4_ = NULL;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (hunk != NULL);
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (lines != NULL);
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = gitg_diff_view_file_get_renderer (self);
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = _tmp0_;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = _tmp1_;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = hunk;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = lines;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_renderer_add_hunk (_tmp2_, _tmp3_, _tmp4_);
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp2_);
#line 542 "gitg-diff-view-file.c"
}


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


GitgDiffViewFileRenderer* gitg_diff_view_file_get_renderer (GitgDiffViewFile* self) {
	GitgDiffViewFileRenderer* result;
	GtkRevealer* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GitgDiffViewFileRenderer* _tmp2_ = NULL;
#line 41 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->d_revealer_content;
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = gtk_bin_get_child ((GtkBin*) _tmp0_);
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_TYPE_DIFF_VIEW_FILE_RENDERER) ? ((GitgDiffViewFileRenderer*) _tmp1_) : NULL);
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp2_;
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 570 "gitg-diff-view-file.c"
}


void gitg_diff_view_file_set_renderer (GitgDiffViewFile* self, GitgDiffViewFileRenderer* value) {
	GitgDiffViewFileRenderer* current = NULL;
	GitgDiffViewFileRenderer* _tmp0_ = NULL;
	GitgDiffViewFileRenderer* _tmp1_ = NULL;
	GitgDiffViewFileRenderer* _tmp2_ = NULL;
	GitgDiffViewFileRenderer* _tmp3_ = NULL;
#line 46 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = gitg_diff_view_file_get_renderer (self);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = _tmp0_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	current = _tmp1_;
#line 50 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = current;
#line 50 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = value;
#line 50 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp2_ != _tmp3_) {
#line 594 "gitg-diff-view-file.c"
		GBinding* _tmp4_ = NULL;
		GitgDiffViewFileRenderer* _tmp7_ = NULL;
		GtkRevealer* _tmp10_ = NULL;
		GitgDiffViewFileRenderer* _tmp11_ = NULL;
		GitgDiffViewFileRenderer* _tmp12_ = NULL;
		GBinding* _tmp13_ = NULL;
		GBinding* _tmp14_ = NULL;
#line 52 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp4_ = self->priv->d_vexpand_binding;
#line 52 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp4_ != NULL) {
#line 606 "gitg-diff-view-file.c"
			GBinding* _tmp5_ = NULL;
			GBinding* _tmp6_ = NULL;
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp5_ = self->priv->d_vexpand_binding;
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp6_ = _g_object_ref0 (_tmp5_);
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			g_binding_unbind (_tmp6_);
#line 55 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_g_object_unref0 (self->priv->d_vexpand_binding);
#line 55 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			self->priv->d_vexpand_binding = NULL;
#line 619 "gitg-diff-view-file.c"
		}
#line 58 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp7_ = current;
#line 58 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp7_ != NULL) {
#line 625 "gitg-diff-view-file.c"
			GtkRevealer* _tmp8_ = NULL;
			GitgDiffViewFileRenderer* _tmp9_ = NULL;
#line 60 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp8_ = self->priv->d_revealer_content;
#line 60 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp9_ = current;
#line 60 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_container_remove ((GtkContainer*) _tmp8_, (GtkWidget*) _tmp9_);
#line 634 "gitg-diff-view-file.c"
		}
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp10_ = self->priv->d_revealer_content;
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp11_ = value;
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_container_add ((GtkContainer*) _tmp10_, (GtkWidget*) _tmp11_);
#line 64 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp12_ = value;
#line 64 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp13_ = g_object_bind_property_with_closures ((GObject*) self, "vexpand", (GObject*) _tmp12_, "vexpand", 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 64 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp14_ = _g_object_ref0 (_tmp13_);
#line 64 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (self->priv->d_vexpand_binding);
#line 64 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		self->priv->d_vexpand_binding = _tmp14_;
#line 652 "gitg-diff-view-file.c"
	}
#line 46 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (current);
#line 46 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_notify ((GObject *) self, "renderer");
#line 658 "gitg-diff-view-file.c"
}


gboolean gitg_diff_view_file_get_new_is_workdir (GitgDiffViewFile* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 69 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 69 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->_new_is_workdir;
#line 69 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp0_;
#line 69 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 673 "gitg-diff-view-file.c"
}


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


gboolean gitg_diff_view_file_get_expanded (GitgDiffViewFile* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 73 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 75 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->d_expanded;
#line 75 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp0_;
#line 75 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 702 "gitg-diff-view-file.c"
}


void gitg_diff_view_file_set_expanded (GitgDiffViewFile* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
#line 78 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 80 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->d_expanded;
#line 80 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = value;
#line 80 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp0_ != _tmp1_) {
#line 717 "gitg-diff-view-file.c"
		gboolean _tmp2_ = FALSE;
		GtkRevealer* _tmp3_ = NULL;
		gboolean _tmp4_ = FALSE;
		GtkStyleContext* ctx = NULL;
		GtkStyleContext* _tmp5_ = NULL;
		GtkStyleContext* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp2_ = value;
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		self->priv->d_expanded = _tmp2_;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp3_ = self->priv->d_revealer_content;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp4_ = self->priv->d_expanded;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_revealer_set_reveal_child (_tmp3_, _tmp4_);
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		ctx = _tmp6_;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp7_ = self->priv->d_expanded;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp7_) {
#line 745 "gitg-diff-view-file.c"
			GtkStyleContext* _tmp8_ = NULL;
#line 89 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp8_ = ctx;
#line 89 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_style_context_add_class (_tmp8_, "expanded");
#line 751 "gitg-diff-view-file.c"
		} else {
			GtkStyleContext* _tmp9_ = NULL;
#line 93 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp9_ = ctx;
#line 93 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_style_context_remove_class (_tmp9_, "expanded");
#line 758 "gitg-diff-view-file.c"
		}
#line 80 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (ctx);
#line 762 "gitg-diff-view-file.c"
	}
#line 78 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_notify ((GObject *) self, "expanded");
#line 766 "gitg-diff-view-file.c"
}


GgitDiffDelta* gitg_diff_view_file_get_delta (GitgDiffViewFile* self) {
	GgitDiffDelta* result;
	GgitDiffDelta* _tmp0_ = NULL;
#line 99 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 99 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->_delta;
#line 99 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp0_;
#line 99 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 781 "gitg-diff-view-file.c"
}


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


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


GitgRepository* gitg_diff_view_file_get_repository (GitgDiffViewFile* self) {
	GitgRepository* result;
	GitgRepository* _tmp0_ = NULL;
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->_repository;
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp0_;
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 822 "gitg-diff-view-file.c"
}


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


static void gitg_diff_view_file_class_init (GitgDiffViewFileClass * klass) {
	gint GitgDiffViewFile_private_offset;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_parent_class = g_type_class_peek_parent (klass);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewFilePrivate));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	((GObjectClass *) klass)->constructed = gitg_diff_view_file_real_constructed;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_view_file_get_property;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_view_file_set_property;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_view_file_finalize;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER, g_param_spec_object ("renderer", "renderer", "renderer", GITG_TYPE_DIFF_VIEW_FILE_RENDERER, 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.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_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.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_EXPANDED, g_param_spec_boolean ("expanded", "expanded", "expanded", 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.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_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.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_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.vala"
	GitgDiffViewFile_private_offset = g_type_class_get_instance_private_offset (klass);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-diff-view-file.ui");
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "expander", FALSE, GitgDiffViewFile_private_offset + G_STRUCT_OFFSET (GitgDiffViewFilePrivate, d_expander));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label_file_header", FALSE, GitgDiffViewFile_private_offset + G_STRUCT_OFFSET (GitgDiffViewFilePrivate, d_label_file_header));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "diff_stat_file", FALSE, GitgDiffViewFile_private_offset + G_STRUCT_OFFSET (GitgDiffViewFilePrivate, d_diff_stat_file));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "revealer_content", FALSE, GitgDiffViewFile_private_offset + G_STRUCT_OFFSET (GitgDiffViewFilePrivate, d_revealer_content));
#line 881 "gitg-diff-view-file.c"
}


static void gitg_diff_view_file_instance_init (GitgDiffViewFile * self) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	self->priv = GITG_DIFF_VIEW_FILE_GET_PRIVATE (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	g_type_ensure (GITG_TYPE_DIFF_STAT);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 892 "gitg-diff-view-file.c"
}


static void gitg_diff_view_file_finalize (GObject* obj) {
	GitgDiffViewFile * self;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFile);
#line 24 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_expander);
#line 27 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_label_file_header);
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_diff_stat_file);
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_revealer_content);
#line 37 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_vexpand_binding);
#line 99 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_ggit_diff_delta_unref0 (self->priv->_delta);
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->_repository);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_parent_class)->finalize (obj);
#line 916 "gitg-diff-view-file.c"
}


GType gitg_diff_view_file_get_type (void) {
	static volatile gsize gitg_diff_view_file_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewFile), 0, (GInstanceInitFunc) gitg_diff_view_file_instance_init, NULL };
		GType gitg_diff_view_file_type_id;
		gitg_diff_view_file_type_id = g_type_register_static (gtk_grid_get_type (), "GitgDiffViewFile", &g_define_type_info, 0);
		g_once_init_leave (&gitg_diff_view_file_type_id__volatile, gitg_diff_view_file_type_id);
	}
	return gitg_diff_view_file_type_id__volatile;
}


static void _vala_gitg_diff_view_file_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffViewFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFile);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	switch (property_id) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_take_object (value, gitg_diff_view_file_get_renderer (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_NEW_IS_WORKDIR:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_boolean (value, gitg_diff_view_file_get_new_is_workdir (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_EXPANDED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_boolean (value, gitg_diff_view_file_get_expanded (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_DELTA:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_boxed (value, gitg_diff_view_file_get_delta (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_REPOSITORY:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_object (value, gitg_diff_view_file_get_repository (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 967 "gitg-diff-view-file.c"
		default:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 973 "gitg-diff-view-file.c"
	}
}


static void _vala_gitg_diff_view_file_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffViewFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFile);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
	switch (property_id) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_renderer (self, g_value_get_object (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_NEW_IS_WORKDIR:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_new_is_workdir (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_EXPANDED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_expanded (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_DELTA:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_delta (self, g_value_get_boxed (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_REPOSITORY:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_repository (self, g_value_get_object (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 1013 "gitg-diff-view-file.c"
		default:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 1019 "gitg-diff-view-file.c"
	}
}



