/* gitg-diff-view-file.c generated by valac 0.30.0.38-a55d, 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>
#include <gdk/gdk.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <stdio.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_INFO (gitg_diff_view_file_info_get_type ())
#define GITG_DIFF_VIEW_FILE_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_INFO, GitgDiffViewFileInfo))
#define GITG_DIFF_VIEW_FILE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_INFO, GitgDiffViewFileInfoClass))
#define GITG_IS_DIFF_VIEW_FILE_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_INFO))
#define GITG_IS_DIFF_VIEW_FILE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_INFO))
#define GITG_DIFF_VIEW_FILE_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_INFO, GitgDiffViewFileInfoClass))

typedef struct _GitgDiffViewFileInfo GitgDiffViewFileInfo;
typedef struct _GitgDiffViewFileInfoClass GitgDiffViewFileInfoClass;

#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 GITG_TYPE_DIFF_VIEW_FILE_RENDERER_BINARY (gitg_diff_view_file_renderer_binary_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER_BINARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_BINARY, GitgDiffViewFileRendererBinary))
#define GITG_DIFF_VIEW_FILE_RENDERER_BINARY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_BINARY, GitgDiffViewFileRendererBinaryClass))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_BINARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_BINARY))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_BINARY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_BINARY))
#define GITG_DIFF_VIEW_FILE_RENDERER_BINARY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_BINARY, GitgDiffViewFileRendererBinaryClass))

typedef struct _GitgDiffViewFileRendererBinary GitgDiffViewFileRendererBinary;
typedef struct _GitgDiffViewFileRendererBinaryClass GitgDiffViewFileRendererBinaryClass;

#define GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE (gitg_diff_view_file_renderer_image_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImage))
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImageClass))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE))
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImageClass))

typedef struct _GitgDiffViewFileRendererImage GitgDiffViewFileRendererImage;
typedef struct _GitgDiffViewFileRendererImageClass GitgDiffViewFileRendererImageClass;
#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)))
typedef struct _Block9Data Block9Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (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);
};

struct _Block9Data {
	int _ref_count_;
	GitgDiffViewFile* self;
	GFile* location;
};


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);
GType gitg_diff_view_file_info_get_type (void) G_GNUC_CONST;
GitgDiffViewFile* gitg_diff_view_file_new_text (GitgDiffViewFileInfo* info, gboolean handle_selection);
GitgDiffViewFile* gitg_diff_view_file_construct_text (GType object_type, GitgDiffViewFileInfo* info, gboolean handle_selection);
GitgRepository* gitg_diff_view_file_info_get_repository (GitgDiffViewFileInfo* self);
GgitDiffDelta* gitg_diff_view_file_info_get_delta (GitgDiffViewFileInfo* self);
GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_new (GitgDiffViewFileInfo* info, gboolean can_select);
GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_construct (GType object_type, GitgDiffViewFileInfo* info, 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);
GitgDiffViewFileRendererBinary* gitg_diff_view_file_renderer_binary_new (void);
GitgDiffViewFileRendererBinary* gitg_diff_view_file_renderer_binary_construct (GType object_type);
GType gitg_diff_view_file_renderer_binary_get_type (void) G_GNUC_CONST;
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);
GitgDiffViewFileRendererImage* gitg_diff_view_file_renderer_image_new (GitgRepository* repository, GgitDiffDelta* delta);
GitgDiffViewFileRendererImage* gitg_diff_view_file_renderer_image_construct (GType object_type, GitgRepository* repository, GgitDiffDelta* delta);
GType gitg_diff_view_file_renderer_image_get_type (void) G_GNUC_CONST;
static void gitg_diff_view_file_real_constructed (GObject* base);
GgitDiffDelta* gitg_diff_view_file_get_delta (GitgDiffViewFile* self);
GitgRepository* gitg_diff_view_file_get_repository (GitgDiffViewFile* self);
static gboolean gitg_diff_view_file_expander_popup_menu (GitgDiffViewFile* self, GtkWidget* widget);
static gboolean _gitg_diff_view_file_expander_popup_menu_gtk_widget_popup_menu (GtkWidget* _sender, gpointer self);
static gboolean gitg_diff_view_file_expander_button_press_event (GitgDiffViewFile* self, GtkWidget* widget, GdkEventButton* event);
static gboolean _gitg_diff_view_file_expander_button_press_event_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self);
static void gitg_diff_view_file_show_popup (GitgDiffViewFile* self, GdkEventButton* event);
static Block9Data* block9_data_ref (Block9Data* _data9_);
static void block9_data_unref (void * _userdata_);
static void __lambda54_ (Block9Data* _data9_);
static void ___lambda54__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
static void __lambda55_ (Block9Data* _data9_);
static void ___lambda55__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
static void __lambda56_ (Block9Data* _data9_);
static void ___lambda56__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer 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);
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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 104 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = repository;
#line 104 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = delta;
#line 104 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) g_object_new (object_type, "repository", _tmp0_, "delta", _tmp1_, NULL);
#line 102 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 236 "gitg-diff-view-file.c"
}


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


GitgDiffViewFile* gitg_diff_view_file_construct_text (GType object_type, GitgDiffViewFileInfo* info, gboolean handle_selection) {
	GitgDiffViewFile * self = NULL;
	GitgDiffViewFileInfo* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgRepository* _tmp2_ = NULL;
	GitgDiffViewFileInfo* _tmp3_ = NULL;
	GgitDiffDelta* _tmp4_ = NULL;
	GgitDiffDelta* _tmp5_ = NULL;
	GitgDiffViewFileInfo* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	GitgDiffViewFileRendererText* _tmp8_ = NULL;
	GitgDiffViewFileRendererText* _tmp9_ = NULL;
	GitgDiffViewFileRenderer* _tmp10_ = NULL;
	GitgDiffViewFileRenderer* _tmp11_ = NULL;
	GitgDiffViewFileRenderer* _tmp12_ = NULL;
	GitgDiffViewFileRenderer* _tmp13_ = NULL;
	GitgDiffViewFileRenderer* _tmp14_ = NULL;
	GitgDiffViewFileRenderer* _tmp15_ = NULL;
	GitgDiffStat* _tmp16_ = NULL;
	GitgDiffViewFileRenderer* _tmp17_ = NULL;
	GitgDiffViewFileRenderer* _tmp18_ = NULL;
	GitgDiffViewFileRenderer* _tmp19_ = NULL;
	GitgDiffStat* _tmp20_ = NULL;
#line 107 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (info != NULL, NULL);
#line 109 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = info;
#line 109 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = gitg_diff_view_file_info_get_repository (_tmp0_);
#line 109 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = _tmp1_;
#line 109 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = info;
#line 109 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = gitg_diff_view_file_info_get_delta (_tmp3_);
#line 109 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = _tmp4_;
#line 109 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) gitg_diff_view_file_construct (object_type, _tmp2_, _tmp5_);
#line 111 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp6_ = info;
#line 111 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp7_ = handle_selection;
#line 111 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp8_ = gitg_diff_view_file_renderer_text_new (_tmp6_, _tmp7_);
#line 111 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp8_);
#line 111 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp9_ = _tmp8_;
#line 111 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_set_renderer (self, (GitgDiffViewFileRenderer*) _tmp9_);
#line 111 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp9_);
#line 112 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp10_ = gitg_diff_view_file_get_renderer (self);
#line 112 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp11_ = _tmp10_;
#line 112 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp12_ = _tmp11_;
#line 112 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp12_);
#line 112 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp12_);
#line 114 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp13_ = gitg_diff_view_file_get_renderer (self);
#line 114 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp14_ = _tmp13_;
#line 114 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp15_ = _tmp14_;
#line 114 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp16_ = self->priv->d_diff_stat_file;
#line 114 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp15_, "added", (GObject*) _tmp16_, "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp15_);
#line 115 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp17_ = gitg_diff_view_file_get_renderer (self);
#line 115 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp18_ = _tmp17_;
#line 115 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp19_ = _tmp18_;
#line 115 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp20_ = self->priv->d_diff_stat_file;
#line 115 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp19_, "removed", (GObject*) _tmp20_, "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp19_);
#line 107 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 336 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_new_text (GitgDiffViewFileInfo* info, gboolean handle_selection) {
#line 107 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return gitg_diff_view_file_construct_text (GITG_TYPE_DIFF_VIEW_FILE, info, handle_selection);
#line 343 "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;
	GitgDiffViewFileRendererBinary* _tmp2_ = NULL;
	GitgDiffViewFileRendererBinary* _tmp3_ = NULL;
	GitgDiffViewFileRenderer* _tmp4_ = NULL;
	GitgDiffViewFileRenderer* _tmp5_ = NULL;
	GitgDiffViewFileRenderer* _tmp6_ = NULL;
	GitgDiffStat* _tmp7_ = NULL;
#line 118 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 120 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = repository;
#line 120 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = delta;
#line 120 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) gitg_diff_view_file_construct (object_type, _tmp0_, _tmp1_);
#line 122 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = gitg_diff_view_file_renderer_binary_new ();
#line 122 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp2_);
#line 122 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = _tmp2_;
#line 122 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_set_renderer (self, (GitgDiffViewFileRenderer*) _tmp3_);
#line 122 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp3_);
#line 123 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = gitg_diff_view_file_get_renderer (self);
#line 123 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = _tmp4_;
#line 123 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp6_ = _tmp5_;
#line 123 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp6_);
#line 123 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp6_);
#line 125 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp7_ = self->priv->d_diff_stat_file;
#line 125 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_hide ((GtkWidget*) _tmp7_);
#line 118 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 391 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_new_binary (GitgRepository* repository, GgitDiffDelta* delta) {
#line 118 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return gitg_diff_view_file_construct_binary (GITG_TYPE_DIFF_VIEW_FILE, repository, delta);
#line 398 "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;
	GitgRepository* _tmp2_ = NULL;
	GgitDiffDelta* _tmp3_ = NULL;
	GitgDiffViewFileRendererImage* _tmp4_ = NULL;
	GitgDiffViewFileRendererImage* _tmp5_ = NULL;
	GitgDiffViewFileRenderer* _tmp6_ = NULL;
	GitgDiffViewFileRenderer* _tmp7_ = NULL;
	GitgDiffViewFileRenderer* _tmp8_ = NULL;
	GitgDiffStat* _tmp9_ = NULL;
#line 128 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 130 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = repository;
#line 130 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = delta;
#line 130 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) gitg_diff_view_file_construct (object_type, _tmp0_, _tmp1_);
#line 132 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = repository;
#line 132 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = delta;
#line 132 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = gitg_diff_view_file_renderer_image_new (_tmp2_, _tmp3_);
#line 132 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp4_);
#line 132 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = _tmp4_;
#line 132 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_set_renderer (self, (GitgDiffViewFileRenderer*) _tmp5_);
#line 132 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp5_);
#line 133 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp6_ = gitg_diff_view_file_get_renderer (self);
#line 133 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp7_ = _tmp6_;
#line 133 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp8_ = _tmp7_;
#line 133 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp8_);
#line 133 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp8_);
#line 135 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp9_ = self->priv->d_diff_stat_file;
#line 135 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_hide ((GtkWidget*) _tmp9_);
#line 128 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return self;
#line 452 "gitg-diff-view-file.c"
}


GitgDiffViewFile* gitg_diff_view_file_new_image (GitgRepository* repository, GgitDiffDelta* delta) {
#line 128 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return gitg_diff_view_file_construct_image (GITG_TYPE_DIFF_VIEW_FILE, repository, delta);
#line 459 "gitg-diff-view-file.c"
}


static gpointer _ggit_diff_file_ref0 (gpointer self) {
#line 142 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return self ? ggit_diff_file_ref (self) : NULL;
#line 466 "gitg-diff-view-file.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1314 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1315 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	result = self;
#line 1315 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 478 "gitg-diff-view-file.c"
}


static gboolean _gitg_diff_view_file_expander_popup_menu_gtk_widget_popup_menu (GtkWidget* _sender, gpointer self) {
	gboolean result;
	result = gitg_diff_view_file_expander_popup_menu ((GitgDiffViewFile*) self, _sender);
#line 165 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 487 "gitg-diff-view-file.c"
}


static gboolean _gitg_diff_view_file_expander_button_press_event_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
	gboolean result;
	result = gitg_diff_view_file_expander_button_press_event ((GitgDiffViewFile*) self, _sender, event);
#line 166 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 496 "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;
	gboolean _tmp33_ = FALSE;
	GitgRepository* _tmp34_ = NULL;
#line 138 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = (GitgDiffViewFile*) base;
#line 140 "/home/nacho/checkout/gnome/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 142 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->_delta;
#line 142 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = ggit_diff_delta_get_old_file (_tmp0_);
#line 142 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = _ggit_diff_file_ref0 (_tmp1_);
#line 142 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	oldfile = _tmp2_;
#line 143 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = self->priv->_delta;
#line 143 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = ggit_diff_delta_get_new_file (_tmp3_);
#line 143 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = _ggit_diff_file_ref0 (_tmp4_);
#line 143 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	newfile = _tmp5_;
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp7_ = oldfile;
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp7_ != NULL) {
#line 547 "gitg-diff-view-file.c"
		GgitDiffFile* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp8_ = oldfile;
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp9_ = ggit_diff_file_get_path (_tmp8_);
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = _tmp9_;
#line 556 "gitg-diff-view-file.c"
	} else {
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = NULL;
#line 560 "gitg-diff-view-file.c"
	}
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp10_ = g_strdup (_tmp6_);
#line 145 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	oldpath = _tmp10_;
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp12_ = newfile;
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp12_ != NULL) {
#line 570 "gitg-diff-view-file.c"
		GgitDiffFile* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp13_ = newfile;
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp14_ = ggit_diff_file_get_path (_tmp13_);
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp11_ = _tmp14_;
#line 579 "gitg-diff-view-file.c"
	} else {
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp11_ = NULL;
#line 583 "gitg-diff-view-file.c"
	}
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp15_ = g_strdup (_tmp11_);
#line 146 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	newpath = _tmp15_;
#line 148 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp16_ = self->priv->_delta;
#line 148 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp17_ = ggit_diff_delta_get_similarity (_tmp16_);
#line 148 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp17_ > ((guint) 0)) {
#line 595 "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 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp18_ = self->priv->d_label_file_header;
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp19_ = newfile;
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp20_ = ggit_diff_file_get_path (_tmp19_);
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp21_ = string_to_string (_tmp20_);
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp22_ = oldfile;
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp23_ = ggit_diff_file_get_path (_tmp22_);
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp24_ = string_to_string (_tmp23_);
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp25_ = g_strconcat (_tmp21_, " ← ", _tmp24_, NULL);
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp26_ = _tmp25_;
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_label_set_label (_tmp18_, _tmp26_);
#line 150 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (_tmp26_);
#line 627 "gitg-diff-view-file.c"
	} else {
		const gchar* _tmp27_ = NULL;
#line 152 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp27_ = newpath;
#line 152 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp27_ != NULL) {
#line 634 "gitg-diff-view-file.c"
			GtkLabel* _tmp28_ = NULL;
			const gchar* _tmp29_ = NULL;
#line 154 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp28_ = self->priv->d_label_file_header;
#line 154 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp29_ = newpath;
#line 154 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_label_set_label (_tmp28_, _tmp29_);
#line 643 "gitg-diff-view-file.c"
		} else {
			GtkLabel* _tmp30_ = NULL;
			const gchar* _tmp31_ = NULL;
#line 158 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp30_ = self->priv->d_label_file_header;
#line 158 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp31_ = oldpath;
#line 158 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_label_set_label (_tmp30_, _tmp31_);
#line 653 "gitg-diff-view-file.c"
		}
	}
#line 161 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp32_ = self->priv->d_expander;
#line 161 "/home/nacho/checkout/gnome/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 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp34_ = self->priv->_repository;
#line 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp34_ != NULL) {
#line 664 "gitg-diff-view-file.c"
		GitgRepository* _tmp35_ = NULL;
		gboolean _tmp36_ = FALSE;
		gboolean _tmp37_ = FALSE;
#line 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp35_ = self->priv->_repository;
#line 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_object_get ((GgitRepository*) _tmp35_, "is-bare", &_tmp36_, NULL);
#line 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp37_ = _tmp36_;
#line 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp33_ = !_tmp37_;
#line 676 "gitg-diff-view-file.c"
	} else {
#line 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp33_ = FALSE;
#line 680 "gitg-diff-view-file.c"
	}
#line 163 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp33_) {
#line 684 "gitg-diff-view-file.c"
		GtkExpander* _tmp38_ = NULL;
		GtkExpander* _tmp39_ = NULL;
#line 165 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp38_ = self->priv->d_expander;
#line 165 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_signal_connect_object ((GtkWidget*) _tmp38_, "popup-menu", (GCallback) _gitg_diff_view_file_expander_popup_menu_gtk_widget_popup_menu, self, 0);
#line 166 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp39_ = self->priv->d_expander;
#line 166 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_signal_connect_object ((GtkWidget*) _tmp39_, "button-press-event", (GCallback) _gitg_diff_view_file_expander_button_press_event_gtk_widget_button_press_event, self, 0);
#line 695 "gitg-diff-view-file.c"
	}
#line 138 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_free0 (newpath);
#line 138 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_free0 (oldpath);
#line 138 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_ggit_diff_file_unref0 (newfile);
#line 138 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_ggit_diff_file_unref0 (oldfile);
#line 705 "gitg-diff-view-file.c"
}


static Block9Data* block9_data_ref (Block9Data* _data9_) {
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_atomic_int_inc (&_data9_->_ref_count_);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return _data9_;
#line 714 "gitg-diff-view-file.c"
}


static void block9_data_unref (void * _userdata_) {
	Block9Data* _data9_;
	_data9_ = (Block9Data*) _userdata_;
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
#line 723 "gitg-diff-view-file.c"
		GitgDiffViewFile* self;
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		self = _data9_->self;
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (_data9_->location);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (self);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_slice_free (Block9Data, _data9_);
#line 733 "gitg-diff-view-file.c"
	}
}


static void __lambda54_ (Block9Data* _data9_) {
	GitgDiffViewFile* self;
	GError * _inner_error_ = NULL;
#line 196 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = _data9_->self;
#line 743 "gitg-diff-view-file.c"
	{
		GtkExpander* _tmp0_ = NULL;
		GdkScreen* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp0_ = self->priv->d_expander;
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp1_ = gtk_widget_get_screen ((GtkWidget*) _tmp0_);
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp2_ = _data9_->location;
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp3_ = g_file_get_uri (_tmp2_);
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp4_ = _tmp3_;
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_show_uri (_tmp1_, _tmp4_, (guint32) GDK_CURRENT_TIME, &_inner_error_);
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (_tmp4_);
#line 199 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 766 "gitg-diff-view-file.c"
			goto __catch35_g_error;
		}
	}
	goto __finally35;
	__catch35_g_error:
	{
		GError* e = NULL;
		FILE* _tmp5_ = NULL;
		GError* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
#line 197 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		e = _inner_error_;
#line 197 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_inner_error_ = NULL;
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp5_ = stderr;
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = e;
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp7_ = _tmp6_->message;
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp8_ = string_to_string (_tmp7_);
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp9_ = g_strconcat ("Failed to open file: ", _tmp8_, "\n", NULL);
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp10_ = _tmp9_;
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		fprintf (_tmp5_, "%s", _tmp10_);
#line 203 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (_tmp10_);
#line 197 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_error_free0 (e);
#line 802 "gitg-diff-view-file.c"
	}
	__finally35:
#line 197 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 197 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.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 197 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_clear_error (&_inner_error_);
#line 197 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		return;
#line 813 "gitg-diff-view-file.c"
	}
}


static void ___lambda54__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 196 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	__lambda54_ (self);
#line 821 "gitg-diff-view-file.c"
}


static void __lambda55_ (Block9Data* _data9_) {
	GitgDiffViewFile* self;
	GError * _inner_error_ = NULL;
#line 212 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = _data9_->self;
#line 830 "gitg-diff-view-file.c"
	{
		GtkExpander* _tmp0_ = NULL;
		GdkScreen* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp0_ = self->priv->d_expander;
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp1_ = gtk_widget_get_screen ((GtkWidget*) _tmp0_);
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp2_ = _data9_->location;
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp3_ = g_file_get_parent (_tmp2_);
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp4_ = _tmp3_;
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp5_ = g_file_get_uri (_tmp4_);
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = _tmp5_;
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_show_uri (_tmp1_, _tmp6_, (guint32) GDK_CURRENT_TIME, &_inner_error_);
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (_tmp6_);
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (_tmp4_);
#line 215 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 861 "gitg-diff-view-file.c"
			goto __catch36_g_error;
		}
	}
	goto __finally36;
	__catch36_g_error:
	{
		GError* e = NULL;
		FILE* _tmp7_ = NULL;
		GError* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
#line 213 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		e = _inner_error_;
#line 213 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_inner_error_ = NULL;
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp7_ = stderr;
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp8_ = e;
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp9_ = _tmp8_->message;
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp10_ = string_to_string (_tmp9_);
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp11_ = g_strconcat ("Failed to open folder: ", _tmp10_, "\n", NULL);
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp12_ = _tmp11_;
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		fprintf (_tmp7_, "%s", _tmp12_);
#line 219 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (_tmp12_);
#line 213 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_error_free0 (e);
#line 897 "gitg-diff-view-file.c"
	}
	__finally36:
#line 213 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 213 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.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 213 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_clear_error (&_inner_error_);
#line 213 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		return;
#line 908 "gitg-diff-view-file.c"
	}
}


static void ___lambda55__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 212 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	__lambda55_ (self);
#line 916 "gitg-diff-view-file.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 233 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return self ? g_object_ref (self) : NULL;
#line 923 "gitg-diff-view-file.c"
}


static void __lambda56_ (Block9Data* _data9_) {
	GitgDiffViewFile* self;
	GtkClipboard* clip = NULL;
	GtkExpander* _tmp0_ = NULL;
	GtkClipboard* _tmp1_ = NULL;
	GtkClipboard* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 232 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = _data9_->self;
#line 233 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->d_expander;
#line 233 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = gtk_widget_get_clipboard ((GtkWidget*) _tmp0_, GDK_SELECTION_CLIPBOARD);
#line 233 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 233 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	clip = _tmp2_;
#line 234 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = _data9_->location;
#line 234 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = g_file_get_path (_tmp3_);
#line 234 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = _tmp4_;
#line 234 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_clipboard_set_text (clip, _tmp5_, -1);
#line 234 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_free0 (_tmp5_);
#line 232 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (clip);
#line 958 "gitg-diff-view-file.c"
}


static void ___lambda56__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 232 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	__lambda56_ (self);
#line 965 "gitg-diff-view-file.c"
}


static void gitg_diff_view_file_show_popup (GitgDiffViewFile* self, GdkEventButton* event) {
	Block9Data* _data9_;
	GtkMenu* menu = NULL;
	GtkMenu* _tmp0_ = NULL;
	gchar* oldpath = NULL;
	GgitDiffDelta* _tmp1_ = NULL;
	GgitDiffFile* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* newpath = NULL;
	GgitDiffDelta* _tmp5_ = NULL;
	GgitDiffFile* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GtkMenuItem* open_file = NULL;
	const gchar* _tmp9_ = NULL;
	GtkMenuItem* _tmp10_ = NULL;
	GtkMenuItem* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
	const gchar* _tmp13_ = NULL;
	GFile* _tmp28_ = NULL;
	GtkMenuItem* _tmp29_ = NULL;
	GtkMenu* _tmp30_ = NULL;
	GtkMenuItem* _tmp31_ = NULL;
	GtkMenuItem* open_folder = NULL;
	const gchar* _tmp32_ = NULL;
	GtkMenuItem* _tmp33_ = NULL;
	GtkMenuItem* _tmp34_ = NULL;
	GtkMenuItem* _tmp35_ = NULL;
	GtkMenu* _tmp36_ = NULL;
	GtkMenuItem* _tmp37_ = NULL;
	GtkSeparatorMenuItem* separator = NULL;
	GtkSeparatorMenuItem* _tmp38_ = NULL;
	GtkSeparatorMenuItem* _tmp39_ = NULL;
	GtkMenu* _tmp40_ = NULL;
	GtkSeparatorMenuItem* _tmp41_ = NULL;
	GtkMenuItem* copy_file_path = NULL;
	const gchar* _tmp42_ = NULL;
	GtkMenuItem* _tmp43_ = NULL;
	GtkMenuItem* _tmp44_ = NULL;
	GtkMenuItem* _tmp45_ = NULL;
	GtkMenu* _tmp46_ = NULL;
	GtkMenuItem* _tmp47_ = NULL;
	guint button = 0U;
	guint evtime = 0U;
	GdkEventButton* _tmp48_ = NULL;
	GtkMenu* _tmp53_ = NULL;
	GtkExpander* _tmp54_ = NULL;
	GtkMenu* _tmp55_ = NULL;
	guint _tmp56_ = 0U;
	guint _tmp57_ = 0U;
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_data9_ = g_slice_new0 (Block9Data);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_data9_->_ref_count_ = 1;
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_data9_->self = g_object_ref (self);
#line 172 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = (GtkMenu*) gtk_menu_new ();
#line 172 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp0_);
#line 172 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	menu = _tmp0_;
#line 174 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = self->priv->_delta;
#line 174 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = ggit_diff_delta_get_old_file (_tmp1_);
#line 174 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = ggit_diff_file_get_path (_tmp2_);
#line 174 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 174 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	oldpath = _tmp4_;
#line 175 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp5_ = self->priv->_delta;
#line 175 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp6_ = ggit_diff_delta_get_new_file (_tmp5_);
#line 175 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp7_ = ggit_diff_file_get_path (_tmp6_);
#line 175 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp8_ = g_strdup (_tmp7_);
#line 175 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	newpath = _tmp8_;
#line 177 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp9_ = _ ("_Open file");
#line 177 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp10_ = (GtkMenuItem*) gtk_menu_item_new_with_mnemonic (_tmp9_);
#line 177 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp10_);
#line 177 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	open_file = _tmp10_;
#line 178 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp11_ = open_file;
#line 178 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp11_);
#line 180 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_data9_->location = NULL;
#line 182 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp13_ = newpath;
#line 182 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp13_ != NULL) {
#line 1072 "gitg-diff-view-file.c"
		const gchar* _tmp14_ = NULL;
#line 182 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp14_ = newpath;
#line 182 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp12_ = g_strcmp0 (_tmp14_, "") != 0;
#line 1078 "gitg-diff-view-file.c"
	} else {
#line 182 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp12_ = FALSE;
#line 1082 "gitg-diff-view-file.c"
	}
#line 182 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp12_) {
#line 1086 "gitg-diff-view-file.c"
		GitgRepository* _tmp15_ = NULL;
		GFile* _tmp16_ = NULL;
		GFile* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		GFile* _tmp19_ = NULL;
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp15_ = self->priv->_repository;
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp16_ = ggit_repository_get_workdir ((GgitRepository*) _tmp15_);
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp17_ = _tmp16_;
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp18_ = newpath;
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp19_ = g_file_get_child (_tmp17_, _tmp18_);
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (_data9_->location);
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_data9_->location = _tmp19_;
#line 184 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (_tmp17_);
#line 1108 "gitg-diff-view-file.c"
	} else {
		gboolean _tmp20_ = FALSE;
		const gchar* _tmp21_ = NULL;
#line 186 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp21_ = oldpath;
#line 186 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp21_ != NULL) {
#line 1116 "gitg-diff-view-file.c"
			const gchar* _tmp22_ = NULL;
#line 186 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp22_ = oldpath;
#line 186 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp20_ = g_strcmp0 (_tmp22_, "") != 0;
#line 1122 "gitg-diff-view-file.c"
		} else {
#line 186 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp20_ = FALSE;
#line 1126 "gitg-diff-view-file.c"
		}
#line 186 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp20_) {
#line 1130 "gitg-diff-view-file.c"
			GitgRepository* _tmp23_ = NULL;
			GFile* _tmp24_ = NULL;
			GFile* _tmp25_ = NULL;
			const gchar* _tmp26_ = NULL;
			GFile* _tmp27_ = NULL;
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp23_ = self->priv->_repository;
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp24_ = ggit_repository_get_workdir ((GgitRepository*) _tmp23_);
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp25_ = _tmp24_;
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp26_ = oldpath;
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp27_ = g_file_get_child (_tmp25_, _tmp26_);
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_g_object_unref0 (_data9_->location);
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_data9_->location = _tmp27_;
#line 188 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_g_object_unref0 (_tmp25_);
#line 1152 "gitg-diff-view-file.c"
		}
	}
#line 191 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp28_ = _data9_->location;
#line 191 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp28_ == NULL) {
#line 193 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (open_file);
#line 193 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (newpath);
#line 193 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_free0 (oldpath);
#line 193 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (menu);
#line 193 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		block9_data_unref (_data9_);
#line 193 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_data9_ = NULL;
#line 193 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		return;
#line 1173 "gitg-diff-view-file.c"
	}
#line 196 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp29_ = open_file;
#line 196 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_signal_connect_data (_tmp29_, "activate", (GCallback) ___lambda54__gtk_menu_item_activate, block9_data_ref (_data9_), (GClosureNotify) block9_data_unref, 0);
#line 207 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp30_ = menu;
#line 207 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp31_ = open_file;
#line 207 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_container_add ((GtkContainer*) _tmp30_, (GtkWidget*) _tmp31_);
#line 209 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp32_ = _ ("Open containing _folder");
#line 209 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp33_ = (GtkMenuItem*) gtk_menu_item_new_with_mnemonic (_tmp32_);
#line 209 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp33_);
#line 209 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	open_folder = _tmp33_;
#line 210 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp34_ = open_folder;
#line 210 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp34_);
#line 212 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp35_ = open_folder;
#line 212 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_signal_connect_data (_tmp35_, "activate", (GCallback) ___lambda55__gtk_menu_item_activate, block9_data_ref (_data9_), (GClosureNotify) block9_data_unref, 0);
#line 223 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp36_ = menu;
#line 223 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp37_ = open_folder;
#line 223 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_container_add ((GtkContainer*) _tmp36_, (GtkWidget*) _tmp37_);
#line 225 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp38_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
#line 225 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp38_);
#line 225 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	separator = _tmp38_;
#line 226 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp39_ = separator;
#line 226 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp39_);
#line 227 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp40_ = menu;
#line 227 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp41_ = separator;
#line 227 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_container_add ((GtkContainer*) _tmp40_, (GtkWidget*) _tmp41_);
#line 229 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp42_ = _ ("_Copy file path");
#line 229 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp43_ = (GtkMenuItem*) gtk_menu_item_new_with_mnemonic (_tmp42_);
#line 229 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_ref_sink (_tmp43_);
#line 229 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	copy_file_path = _tmp43_;
#line 230 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp44_ = copy_file_path;
#line 230 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_widget_show ((GtkWidget*) _tmp44_);
#line 232 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp45_ = copy_file_path;
#line 232 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_signal_connect_data (_tmp45_, "activate", (GCallback) ___lambda56__gtk_menu_item_activate, block9_data_ref (_data9_), (GClosureNotify) block9_data_unref, 0);
#line 237 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp46_ = menu;
#line 237 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp47_ = copy_file_path;
#line 237 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_container_add ((GtkContainer*) _tmp46_, (GtkWidget*) _tmp47_);
#line 239 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	button = (guint) 0;
#line 240 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	evtime = (guint) GDK_CURRENT_TIME;
#line 242 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp48_ = event;
#line 242 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp48_ != NULL) {
#line 1253 "gitg-diff-view-file.c"
		GdkEventButton* _tmp49_ = NULL;
		guint _tmp50_ = 0U;
		GdkEventButton* _tmp51_ = NULL;
		guint32 _tmp52_ = 0U;
#line 244 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp49_ = event;
#line 244 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp50_ = _tmp49_->button;
#line 244 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		button = _tmp50_;
#line 245 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp51_ = event;
#line 245 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp52_ = _tmp51_->time;
#line 245 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		evtime = (guint) _tmp52_;
#line 1270 "gitg-diff-view-file.c"
	}
#line 248 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp53_ = menu;
#line 248 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp54_ = self->priv->d_expander;
#line 248 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_menu_attach_to_widget (_tmp53_, (GtkWidget*) _tmp54_, NULL);
#line 249 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp55_ = menu;
#line 249 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp56_ = button;
#line 249 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp57_ = evtime;
#line 249 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gtk_menu_popup (_tmp55_, NULL, NULL, NULL, NULL, _tmp56_, (guint32) _tmp57_);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (copy_file_path);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (separator);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (open_folder);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (open_file);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_free0 (newpath);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_free0 (oldpath);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (menu);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	block9_data_unref (_data9_);
#line 170 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_data9_ = NULL;
#line 1304 "gitg-diff-view-file.c"
}


static gboolean gitg_diff_view_file_expander_button_press_event (GitgDiffViewFile* self, GtkWidget* widget, GdkEventButton* event) {
	gboolean result = FALSE;
	GdkEventButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 252 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 252 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 254 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = event;
#line 254 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = gdk_event_triggers_context_menu ((GdkEvent*) _tmp0_);
#line 254 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp1_) {
#line 1322 "gitg-diff-view-file.c"
		GdkEventButton* _tmp2_ = NULL;
#line 256 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp2_ = event;
#line 256 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_show_popup (self, _tmp2_);
#line 257 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		result = TRUE;
#line 257 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		return result;
#line 1332 "gitg-diff-view-file.c"
	}
#line 260 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	result = FALSE;
#line 260 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 1338 "gitg-diff-view-file.c"
}


static gboolean gitg_diff_view_file_expander_popup_menu (GitgDiffViewFile* self, GtkWidget* widget) {
	gboolean result = FALSE;
#line 263 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 263 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 265 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_show_popup (self, NULL);
#line 266 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	result = TRUE;
#line 266 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 1354 "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 269 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 269 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (hunk != NULL);
#line 269 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (lines != NULL);
#line 271 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = gitg_diff_view_file_get_renderer (self);
#line 271 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = _tmp0_;
#line 271 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = _tmp1_;
#line 271 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = hunk;
#line 271 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp4_ = lines;
#line 271 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_renderer_add_hunk (_tmp2_, _tmp3_, _tmp4_);
#line 271 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (_tmp2_);
#line 1384 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 43 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->d_revealer_content;
#line 43 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = gtk_bin_get_child ((GtkBin*) _tmp0_);
#line 43 "/home/nacho/checkout/gnome/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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp2_;
#line 43 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 1405 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 48 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = gitg_diff_view_file_get_renderer (self);
#line 48 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = _tmp0_;
#line 48 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	current = _tmp1_;
#line 50 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp2_ = current;
#line 50 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp3_ = value;
#line 50 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp2_ != _tmp3_) {
#line 1429 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp4_ = self->priv->d_vexpand_binding;
#line 52 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp4_ != NULL) {
#line 1441 "gitg-diff-view-file.c"
			GBinding* _tmp5_ = NULL;
			GBinding* _tmp6_ = NULL;
#line 54 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp5_ = self->priv->d_vexpand_binding;
#line 54 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp6_ = _g_object_ref0 (_tmp5_);
#line 54 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			g_binding_unbind (_tmp6_);
#line 55 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_g_object_unref0 (self->priv->d_vexpand_binding);
#line 55 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			self->priv->d_vexpand_binding = NULL;
#line 1454 "gitg-diff-view-file.c"
		}
#line 58 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp7_ = current;
#line 58 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp7_ != NULL) {
#line 1460 "gitg-diff-view-file.c"
			GtkRevealer* _tmp8_ = NULL;
			GitgDiffViewFileRenderer* _tmp9_ = NULL;
#line 60 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp8_ = self->priv->d_revealer_content;
#line 60 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp9_ = current;
#line 60 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_container_remove ((GtkContainer*) _tmp8_, (GtkWidget*) _tmp9_);
#line 1469 "gitg-diff-view-file.c"
		}
#line 63 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp10_ = self->priv->d_revealer_content;
#line 63 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp11_ = value;
#line 63 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_container_add ((GtkContainer*) _tmp10_, (GtkWidget*) _tmp11_);
#line 64 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp12_ = value;
#line 64 "/home/nacho/checkout/gnome/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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp14_ = _g_object_ref0 (_tmp13_);
#line 64 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (self->priv->d_vexpand_binding);
#line 64 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		self->priv->d_vexpand_binding = _tmp14_;
#line 1487 "gitg-diff-view-file.c"
	}
#line 46 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (current);
#line 46 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_notify ((GObject *) self, "renderer");
#line 1493 "gitg-diff-view-file.c"
}


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


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


gboolean gitg_diff_view_file_get_expanded (GitgDiffViewFile* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 73 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 75 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->d_expanded;
#line 75 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp0_;
#line 75 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 1537 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 80 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->d_expanded;
#line 80 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = value;
#line 80 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	if (_tmp0_ != _tmp1_) {
#line 1552 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp2_ = value;
#line 82 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		self->priv->d_expanded = _tmp2_;
#line 83 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp3_ = self->priv->d_revealer_content;
#line 83 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp4_ = self->priv->d_expanded;
#line 83 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gtk_revealer_set_reveal_child (_tmp3_, _tmp4_);
#line 85 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 85 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 85 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		ctx = _tmp6_;
#line 87 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_tmp7_ = self->priv->d_expanded;
#line 87 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		if (_tmp7_) {
#line 1580 "gitg-diff-view-file.c"
			GtkStyleContext* _tmp8_ = NULL;
#line 89 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp8_ = ctx;
#line 89 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_style_context_add_class (_tmp8_, "expanded");
#line 1586 "gitg-diff-view-file.c"
		} else {
			GtkStyleContext* _tmp9_ = NULL;
#line 93 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			_tmp9_ = ctx;
#line 93 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
			gtk_style_context_remove_class (_tmp9_, "expanded");
#line 1593 "gitg-diff-view-file.c"
		}
#line 80 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		_g_object_unref0 (ctx);
#line 1597 "gitg-diff-view-file.c"
	}
#line 78 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_notify ((GObject *) self, "expanded");
#line 1601 "gitg-diff-view-file.c"
}


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


static gpointer _ggit_diff_delta_ref0 (gpointer self) {
#line 99 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return self ? ggit_diff_delta_ref (self) : NULL;
#line 1623 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 99 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = value;
#line 99 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = _ggit_diff_delta_ref0 (_tmp0_);
#line 99 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_ggit_diff_delta_unref0 (self->priv->_delta);
#line 99 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self->priv->_delta = _tmp1_;
#line 99 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_notify ((GObject *) self, "delta");
#line 1642 "gitg-diff-view-file.c"
}


GitgRepository* gitg_diff_view_file_get_repository (GitgDiffViewFile* self) {
	GitgRepository* result;
	GitgRepository* _tmp0_ = NULL;
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = self->priv->_repository;
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	result = _tmp0_;
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	return result;
#line 1657 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_return_if_fail (self != NULL);
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp0_ = value;
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->_repository);
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self->priv->_repository = _tmp1_;
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_object_notify ((GObject *) self, "repository");
#line 1676 "gitg-diff-view-file.c"
}


static void gitg_diff_view_file_class_init (GitgDiffViewFileClass * klass) {
	gint GitgDiffViewFile_private_offset;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	gitg_diff_view_file_parent_class = g_type_class_peek_parent (klass);
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewFilePrivate));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	((GObjectClass *) klass)->constructed = gitg_diff_view_file_real_constructed;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_view_file_get_property;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_view_file_set_property;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_view_file_finalize;
#line 21 "/home/nacho/checkout/gnome/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/nacho/checkout/gnome/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/nacho/checkout/gnome/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/nacho/checkout/gnome/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/nacho/checkout/gnome/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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	GitgDiffViewFile_private_offset = g_type_class_get_instance_private_offset (klass);
#line 21 "/home/nacho/checkout/gnome/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/nacho/checkout/gnome/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/nacho/checkout/gnome/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/nacho/checkout/gnome/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/nacho/checkout/gnome/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 1716 "gitg-diff-view-file.c"
}


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


static void gitg_diff_view_file_finalize (GObject* obj) {
	GitgDiffViewFile * self;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE, GitgDiffViewFile);
#line 24 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_expander);
#line 27 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_label_file_header);
#line 30 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_diff_stat_file);
#line 33 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_revealer_content);
#line 37 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->d_vexpand_binding);
#line 99 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_ggit_diff_delta_unref0 (self->priv->_delta);
#line 100 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	_g_object_unref0 (self->priv->_repository);
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_parent_class)->finalize (obj);
#line 1751 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	switch (property_id) {
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_take_object (value, gitg_diff_view_file_get_renderer (self));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_NEW_IS_WORKDIR:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_boolean (value, gitg_diff_view_file_get_new_is_workdir (self));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_EXPANDED:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_boolean (value, gitg_diff_view_file_get_expanded (self));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_DELTA:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_boxed (value, gitg_diff_view_file_get_delta (self));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_REPOSITORY:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		g_value_set_object (value, gitg_diff_view_file_get_repository (self));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 1802 "gitg-diff-view-file.c"
		default:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 1808 "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/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
	switch (property_id) {
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_renderer (self, g_value_get_object (value));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_NEW_IS_WORKDIR:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_new_is_workdir (self, g_value_get_boolean (value));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_EXPANDED:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_expanded (self, g_value_get_boolean (value));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_DELTA:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_delta (self, g_value_get_boxed (value));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		case GITG_DIFF_VIEW_FILE_REPOSITORY:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		gitg_diff_view_file_set_repository (self, g_value_get_object (value));
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 1848 "gitg-diff-view-file.c"
		default:
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/nacho/checkout/gnome/gitg/libgitg/gitg-diff-view-file.vala"
		break;
#line 1854 "gitg-diff-view-file.c"
	}
}



