/* gitg-diff-view-file-renderer-image.c generated by valac 0.35.5.2-9e6c0, the Vala compiler
 * generated from gitg-diff-view-file-renderer-image.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2016 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <libgit2-glib/ggit.h>
#include <gee.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gdk/gdk.h>
#include <cairo.h>


#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_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;
typedef struct _GitgDiffViewFileRendererImagePrivate GitgDiffViewFileRendererImagePrivate;

#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 GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE (gitg_diff_image_side_by_side_get_type ())
#define GITG_DIFF_IMAGE_SIDE_BY_SIDE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE, GitgDiffImageSideBySide))
#define GITG_DIFF_IMAGE_SIDE_BY_SIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE, GitgDiffImageSideBySideClass))
#define GITG_IS_DIFF_IMAGE_SIDE_BY_SIDE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE))
#define GITG_IS_DIFF_IMAGE_SIDE_BY_SIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE))
#define GITG_DIFF_IMAGE_SIDE_BY_SIDE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE, GitgDiffImageSideBySideClass))

typedef struct _GitgDiffImageSideBySide GitgDiffImageSideBySide;
typedef struct _GitgDiffImageSideBySideClass GitgDiffImageSideBySideClass;

#define GITG_TYPE_DIFF_IMAGE_COMPOSITE (gitg_diff_image_composite_get_type ())
#define GITG_DIFF_IMAGE_COMPOSITE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_IMAGE_COMPOSITE, GitgDiffImageComposite))
#define GITG_DIFF_IMAGE_COMPOSITE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_IMAGE_COMPOSITE, GitgDiffImageCompositeClass))
#define GITG_IS_DIFF_IMAGE_COMPOSITE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_IMAGE_COMPOSITE))
#define GITG_IS_DIFF_IMAGE_COMPOSITE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_IMAGE_COMPOSITE))
#define GITG_DIFF_IMAGE_COMPOSITE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_IMAGE_COMPOSITE, GitgDiffImageCompositeClass))

typedef struct _GitgDiffImageComposite GitgDiffImageComposite;
typedef struct _GitgDiffImageCompositeClass GitgDiffImageCompositeClass;

#define GITG_TYPE_DIFF_IMAGE_SLIDER (gitg_diff_image_slider_get_type ())
#define GITG_DIFF_IMAGE_SLIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_IMAGE_SLIDER, GitgDiffImageSlider))
#define GITG_DIFF_IMAGE_SLIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_IMAGE_SLIDER, GitgDiffImageSliderClass))
#define GITG_IS_DIFF_IMAGE_SLIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_IMAGE_SLIDER))
#define GITG_IS_DIFF_IMAGE_SLIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_IMAGE_SLIDER))
#define GITG_DIFF_IMAGE_SLIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_IMAGE_SLIDER, GitgDiffImageSliderClass))

typedef struct _GitgDiffImageSlider GitgDiffImageSlider;
typedef struct _GitgDiffImageSliderClass GitgDiffImageSliderClass;

#define GITG_TYPE_DIFF_IMAGE_OVERLAY (gitg_diff_image_overlay_get_type ())
#define GITG_DIFF_IMAGE_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_IMAGE_OVERLAY, GitgDiffImageOverlay))
#define GITG_DIFF_IMAGE_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_IMAGE_OVERLAY, GitgDiffImageOverlayClass))
#define GITG_IS_DIFF_IMAGE_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_IMAGE_OVERLAY))
#define GITG_IS_DIFF_IMAGE_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_IMAGE_OVERLAY))
#define GITG_DIFF_IMAGE_OVERLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_IMAGE_OVERLAY, GitgDiffImageOverlayClass))

typedef struct _GitgDiffImageOverlay GitgDiffImageOverlay;
typedef struct _GitgDiffImageOverlayClass GitgDiffImageOverlayClass;

#define GITG_TYPE_DIFF_IMAGE_DIFFERENCE (gitg_diff_image_difference_get_type ())
#define GITG_DIFF_IMAGE_DIFFERENCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_IMAGE_DIFFERENCE, GitgDiffImageDifference))
#define GITG_DIFF_IMAGE_DIFFERENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_IMAGE_DIFFERENCE, GitgDiffImageDifferenceClass))
#define GITG_IS_DIFF_IMAGE_DIFFERENCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_IMAGE_DIFFERENCE))
#define GITG_IS_DIFF_IMAGE_DIFFERENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_IMAGE_DIFFERENCE))
#define GITG_DIFF_IMAGE_DIFFERENCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_IMAGE_DIFFERENCE, GitgDiffImageDifferenceClass))

typedef struct _GitgDiffImageDifference GitgDiffImageDifference;
typedef struct _GitgDiffImageDifferenceClass GitgDiffImageDifferenceClass;

#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE (gitg_diff_view_file_renderer_image_surface_cache_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, GitgDiffViewFileRendererImageSurfaceCache))
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, GitgDiffViewFileRendererImageSurfaceCacheClass))
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_IS_SURFACE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE))
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_IS_SURFACE_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE))
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, GitgDiffViewFileRendererImageSurfaceCacheClass))

typedef struct _GitgDiffViewFileRendererImageSurfaceCache GitgDiffViewFileRendererImageSurfaceCache;
typedef struct _GitgDiffViewFileRendererImageSurfaceCacheClass GitgDiffViewFileRendererImageSurfaceCacheClass;
#define _ggit_diff_delta_unref0(var) ((var == NULL) ? NULL : (var = (ggit_diff_delta_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define GITG_TYPE_DIFF_IMAGE_SURFACE_CACHE (gitg_diff_image_surface_cache_get_type ())
#define GITG_DIFF_IMAGE_SURFACE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_IMAGE_SURFACE_CACHE, GitgDiffImageSurfaceCache))
#define GITG_IS_DIFF_IMAGE_SURFACE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_IMAGE_SURFACE_CACHE))
#define GITG_DIFF_IMAGE_SURFACE_CACHE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_DIFF_IMAGE_SURFACE_CACHE, GitgDiffImageSurfaceCacheIface))

typedef struct _GitgDiffImageSurfaceCache GitgDiffImageSurfaceCache;
typedef struct _GitgDiffImageSurfaceCacheIface GitgDiffImageSurfaceCacheIface;
typedef struct _GitgDiffViewFileRendererImageSurfaceCachePrivate GitgDiffViewFileRendererImageSurfaceCachePrivate;
#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))

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

struct _GitgDiffViewFileRendererImage {
	GtkGrid parent_instance;
	GitgDiffViewFileRendererImagePrivate * priv;
};

struct _GitgDiffViewFileRendererImageClass {
	GtkGridClass parent_class;
};

struct _GitgDiffViewFileRendererImagePrivate {
	GgitDiffDelta* _delta;
	GitgRepository* _repository;
	GitgDiffImageSideBySide* d_diff_image_side_by_side;
	GitgDiffImageSlider* d_diff_image_slider;
	GtkAdjustment* d_scale_slider_adjustment;
	GitgDiffImageOverlay* d_diff_image_overlay;
	GtkAdjustment* d_scale_overlay_adjustment;
	GitgDiffImageDifference* d_diff_image_difference;
	GtkStackSwitcher* d_stack_switcher;
	GitgDiffViewFileRendererImageSurfaceCache* d_cache;
};

struct _GitgDiffImageSurfaceCacheIface {
	GTypeInterface parent_iface;
	cairo_surface_t* (*get_old_surface) (GitgDiffImageSurfaceCache* self, GdkWindow* window);
	cairo_surface_t* (*get_new_surface) (GitgDiffImageSurfaceCache* self, GdkWindow* window);
	GdkPixbuf* (*get_old_pixbuf) (GitgDiffImageSurfaceCache* self);
	void (*set_old_pixbuf) (GitgDiffImageSurfaceCache* self, GdkPixbuf* value);
	GdkPixbuf* (*get_new_pixbuf) (GitgDiffImageSurfaceCache* self);
	void (*set_new_pixbuf) (GitgDiffImageSurfaceCache* self, GdkPixbuf* value);
	GdkWindow* (*get_window) (GitgDiffImageSurfaceCache* self);
	void (*set_window) (GitgDiffImageSurfaceCache* self, GdkWindow* value);
};

struct _GitgDiffViewFileRendererImageSurfaceCache {
	GObject parent_instance;
	GitgDiffViewFileRendererImageSurfaceCachePrivate * priv;
};

struct _GitgDiffViewFileRendererImageSurfaceCacheClass {
	GObjectClass parent_class;
};

struct _GitgDiffViewFileRendererImageSurfaceCachePrivate {
	cairo_surface_t* d_old_surface;
	cairo_surface_t* d_new_surface;
	GdkPixbuf* _old_pixbuf;
	GdkPixbuf* _new_pixbuf;
	GdkWindow* _window;
};


static gpointer gitg_diff_view_file_renderer_image_parent_class = NULL;
static gpointer gitg_diff_view_file_renderer_image_surface_cache_parent_class = NULL;
static GitgDiffImageSurfaceCacheIface * gitg_diff_view_file_renderer_image_surface_cache_gitg_diff_image_surface_cache_parent_iface = NULL;
static GitgDiffViewFileRendererIface * gitg_diff_view_file_renderer_image_gitg_diff_view_file_renderer_parent_iface = NULL;

GType gitg_diff_view_file_renderer_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_file_renderer_image_get_type (void) G_GNUC_CONST;
GType gitg_repository_get_type (void) G_GNUC_CONST;
GType gitg_diff_image_side_by_side_get_type (void) G_GNUC_CONST;
GType gitg_diff_image_composite_get_type (void) G_GNUC_CONST;
GType gitg_diff_image_slider_get_type (void) G_GNUC_CONST;
GType gitg_diff_image_overlay_get_type (void) G_GNUC_CONST;
GType gitg_diff_image_difference_get_type (void) G_GNUC_CONST;
static GType gitg_diff_view_file_renderer_image_surface_cache_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImagePrivate))
enum  {
	GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_DUMMY_PROPERTY,
	GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_DELTA,
	GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_REPOSITORY
};
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);
static GdkPixbuf* gitg_diff_view_file_renderer_image_pixbuf_for_file (GitgDiffViewFileRendererImage* self, GgitDiffFile* file);
GitgRepository* gitg_diff_view_file_renderer_image_get_repository (GitgDiffViewFileRendererImage* self);
gpointer gitg_repository_lookup (GitgRepository* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GgitOId* id, GError** error);
static guint8* _vala_array_dup12 (guint8* self, int length);
static void gitg_diff_view_file_renderer_image_real_add_hunk (GitgDiffViewFileRenderer* base, GgitDiffHunk* hunk, GeeArrayList* lines);
GgitDiffDelta* gitg_diff_view_file_renderer_image_get_delta (GitgDiffViewFileRendererImage* self);
void gitg_diff_view_file_renderer_image_set_delta (GitgDiffViewFileRendererImage* self, GgitDiffDelta* value);
void gitg_diff_view_file_renderer_image_set_repository (GitgDiffViewFileRendererImage* self, GitgRepository* value);
static GObject * gitg_diff_view_file_renderer_image_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static GitgDiffViewFileRendererImageSurfaceCache* gitg_diff_view_file_renderer_image_surface_cache_new (GdkPixbuf* old_pixbuf, GdkPixbuf* new_pixbuf);
static GitgDiffViewFileRendererImageSurfaceCache* gitg_diff_view_file_renderer_image_surface_cache_construct (GType object_type, GdkPixbuf* old_pixbuf, GdkPixbuf* new_pixbuf);
GType gitg_diff_image_surface_cache_get_type (void) G_GNUC_CONST;
void gitg_diff_image_side_by_side_set_cache (GitgDiffImageSideBySide* self, GitgDiffImageSurfaceCache* value);
void gitg_diff_image_composite_set_cache (GitgDiffImageComposite* self, GitgDiffImageSurfaceCache* value);
GdkPixbuf* gitg_diff_image_surface_cache_get_old_pixbuf (GitgDiffImageSurfaceCache* self);
GdkPixbuf* gitg_diff_image_surface_cache_get_new_pixbuf (GitgDiffImageSurfaceCache* self);
#define GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, GitgDiffViewFileRendererImageSurfaceCachePrivate))
enum  {
	GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_DUMMY_PROPERTY,
	GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_OLD_PIXBUF,
	GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_NEW_PIXBUF,
	GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_WINDOW
};
static cairo_surface_t* gitg_diff_view_file_renderer_image_surface_cache_real_get_old_surface (GitgDiffImageSurfaceCache* base, GdkWindow* window);
static cairo_surface_t* gitg_diff_view_file_renderer_image_surface_cache_get_cached_surface (GitgDiffViewFileRendererImageSurfaceCache* self, GdkWindow* window, GdkPixbuf* pixbuf, cairo_surface_t* * cached);
static cairo_surface_t* gitg_diff_view_file_renderer_image_surface_cache_real_get_new_surface (GitgDiffImageSurfaceCache* base, GdkWindow* window);
static void gitg_diff_view_file_renderer_image_surface_cache_finalize (GObject * obj);
GdkWindow* gitg_diff_image_surface_cache_get_window (GitgDiffImageSurfaceCache* self);
static void _vala_gitg_diff_view_file_renderer_image_surface_cache_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void gitg_diff_image_surface_cache_set_old_pixbuf (GitgDiffImageSurfaceCache* self, GdkPixbuf* value);
void gitg_diff_image_surface_cache_set_new_pixbuf (GitgDiffImageSurfaceCache* self, GdkPixbuf* value);
void gitg_diff_image_surface_cache_set_window (GitgDiffImageSurfaceCache* self, GdkWindow* value);
static void _vala_gitg_diff_view_file_renderer_image_surface_cache_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void gitg_diff_view_file_renderer_image_finalize (GObject * obj);
static void _vala_gitg_diff_view_file_renderer_image_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_diff_view_file_renderer_image_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GitgDiffViewFileRendererImage* gitg_diff_view_file_renderer_image_construct (GType object_type, GitgRepository* repository, GgitDiffDelta* delta) {
	GitgDiffViewFileRendererImage * self = NULL;
	GitgRepository* _tmp0_;
	GgitDiffDelta* _tmp1_;
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (repository != NULL, NULL);
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (delta != NULL, NULL);
#line 51 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = repository;
#line 51 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp1_ = delta;
#line 51 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImage*) g_object_new (object_type, "repository", _tmp0_, "delta", _tmp1_, NULL);
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return self;
#line 274 "gitg-diff-view-file-renderer-image.c"
}


GitgDiffViewFileRendererImage* gitg_diff_view_file_renderer_image_new (GitgRepository* repository, GgitDiffDelta* delta) {
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return gitg_diff_view_file_renderer_image_construct (GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, repository, delta);
#line 281 "gitg-diff-view-file-renderer-image.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1434 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	result = self;
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	return result;
#line 293 "gitg-diff-view-file-renderer-image.c"
}


static guint8* _vala_array_dup12 (guint8* self, int length) {
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 300 "gitg-diff-view-file-renderer-image.c"
}


static GdkPixbuf* gitg_diff_view_file_renderer_image_pixbuf_for_file (GitgDiffViewFileRendererImage* self, GgitDiffFile* file) {
	GdkPixbuf* result = NULL;
	gboolean _tmp0_ = FALSE;
	GgitDiffFile* _tmp1_;
	GgitDiffFlag _tmp2_;
	GgitBlob* blob = NULL;
	GMemoryInputStream* stream;
	GgitBlob* _tmp18_;
	gsize _tmp19_;
	guint8* _tmp20_;
	guint8* _tmp21_;
	gint _tmp21__length1;
	GMemoryInputStream* _tmp22_;
	GError * _inner_error_ = NULL;
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 75 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp1_ = file;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp2_ = ggit_diff_file_get_flags (_tmp1_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if ((_tmp2_ & GGIT_DIFF_FLAG_VALID_ID) == 0) {
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp0_ = TRUE;
#line 330 "gitg-diff-view-file-renderer-image.c"
	} else {
		GgitDiffFile* _tmp3_;
		GgitOId* _tmp4_;
		gboolean _tmp5_;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp3_ = file;
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp4_ = ggit_diff_file_get_oid (_tmp3_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp5_ = ggit_oid_is_zero (_tmp4_);
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp0_ = _tmp5_;
#line 343 "gitg-diff-view-file-renderer-image.c"
	}
#line 77 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (_tmp0_) {
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		result = NULL;
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		return result;
#line 351 "gitg-diff-view-file-renderer-image.c"
	}
	{
		GgitBlob* _tmp6_;
		GitgRepository* _tmp7_;
		GgitDiffFile* _tmp8_;
		GgitOId* _tmp9_;
		gpointer _tmp10_;
		GgitBlob* _tmp11_;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp7_ = self->priv->_repository;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp8_ = file;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp9_ = ggit_diff_file_get_oid (_tmp8_);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp10_ = gitg_repository_lookup (_tmp7_, ggit_blob_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp9_, &_inner_error_);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp6_ = (GgitBlob*) _tmp10_;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 372 "gitg-diff-view-file-renderer-image.c"
			goto __catch46_g_error;
		}
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp11_ = _tmp6_;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp6_ = NULL;
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (blob);
#line 86 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		blob = _tmp11_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (_tmp6_);
#line 385 "gitg-diff-view-file-renderer-image.c"
	}
	goto __finally46;
	__catch46_g_error:
	{
		GError* e = NULL;
		FILE* _tmp12_;
		GError* _tmp13_;
		const gchar* _tmp14_;
		const gchar* _tmp15_;
		gchar* _tmp16_;
		gchar* _tmp17_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		e = _inner_error_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_inner_error_ = NULL;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp12_ = stderr;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp13_ = e;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp14_ = _tmp13_->message;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp15_ = string_to_string (_tmp14_);
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp16_ = g_strconcat ("ERROR: failed to load image blob: ", _tmp15_, "\n", NULL);
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp17_ = _tmp16_;
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		fprintf (_tmp12_, "%s", _tmp17_);
#line 90 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_free0 (_tmp17_);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		result = NULL;
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_error_free0 (e);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (blob);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		return result;
#line 425 "gitg-diff-view-file-renderer-image.c"
	}
	__finally46:
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (blob);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.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 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_clear_error (&_inner_error_);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		return NULL;
#line 438 "gitg-diff-view-file-renderer-image.c"
	}
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp18_ = blob;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp20_ = ggit_blob_get_raw_content (_tmp18_, &_tmp19_);
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp21_ = (_tmp20_ != NULL) ? _vala_array_dup12 (_tmp20_, _tmp19_) : ((gpointer) _tmp20_);
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp21__length1 = _tmp19_;
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp22_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp21_, _tmp21__length1, NULL);
#line 94 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	stream = _tmp22_;
#line 452 "gitg-diff-view-file-renderer-image.c"
	{
		GdkPixbuf* _tmp23_;
		GMemoryInputStream* _tmp24_;
		GdkPixbuf* _tmp25_;
		GdkPixbuf* _tmp26_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp24_ = stream;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp25_ = gdk_pixbuf_new_from_stream ((GInputStream*) _tmp24_, NULL, &_inner_error_);
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp23_ = _tmp25_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 466 "gitg-diff-view-file-renderer-image.c"
			goto __catch47_g_error;
		}
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp26_ = _tmp23_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp23_ = NULL;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		result = _tmp26_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (_tmp23_);
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (stream);
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (blob);
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		return result;
#line 483 "gitg-diff-view-file-renderer-image.c"
	}
	goto __finally47;
	__catch47_g_error:
	{
		GError* e = NULL;
		FILE* _tmp27_;
		GError* _tmp28_;
		const gchar* _tmp29_;
		const gchar* _tmp30_;
		gchar* _tmp31_;
		gchar* _tmp32_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		e = _inner_error_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_inner_error_ = NULL;
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp27_ = stderr;
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp28_ = e;
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp29_ = _tmp28_->message;
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp30_ = string_to_string (_tmp29_);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp31_ = g_strconcat ("ERROR: failed to create pixbuf: ", _tmp30_, "\n", NULL);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp32_ = _tmp31_;
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		fprintf (_tmp27_, "%s", _tmp32_);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_free0 (_tmp32_);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		result = NULL;
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_error_free0 (e);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (stream);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (blob);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		return result;
#line 525 "gitg-diff-view-file-renderer-image.c"
	}
	__finally47:
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (stream);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (blob);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.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 96 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_clear_error (&_inner_error_);
#line 96 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return NULL;
#line 538 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_real_add_hunk (GitgDiffViewFileRenderer* base, GgitDiffHunk* hunk, GeeArrayList* lines) {
	GitgDiffViewFileRendererImage * self;
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImage*) base;
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_if_fail (hunk != NULL);
#line 107 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_if_fail (lines != NULL);
#line 550 "gitg-diff-view-file-renderer-image.c"
}


GgitDiffDelta* gitg_diff_view_file_renderer_image_get_delta (GitgDiffViewFileRendererImage* self) {
	GgitDiffDelta* result;
	GgitDiffDelta* _tmp0_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = self->priv->_delta;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp0_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 565 "gitg-diff-view-file-renderer-image.c"
}


static gpointer _ggit_diff_delta_ref0 (gpointer self) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return self ? ggit_diff_delta_ref (self) : NULL;
#line 572 "gitg-diff-view-file-renderer-image.c"
}


void gitg_diff_view_file_renderer_image_set_delta (GitgDiffViewFileRendererImage* self, GgitDiffDelta* value) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_if_fail (self != NULL);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (gitg_diff_view_file_renderer_image_get_delta (self) != value) {
#line 581 "gitg-diff-view-file-renderer-image.c"
		GgitDiffDelta* _tmp0_;
		GgitDiffDelta* _tmp1_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp0_ = value;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp1_ = _ggit_diff_delta_ref0 (_tmp0_);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_ggit_diff_delta_unref0 (self->priv->_delta);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		self->priv->_delta = _tmp1_;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_object_notify ((GObject *) self, "delta");
#line 594 "gitg-diff-view-file-renderer-image.c"
	}
}


GitgRepository* gitg_diff_view_file_renderer_image_get_repository (GitgDiffViewFileRendererImage* self) {
	GitgRepository* result;
	GitgRepository* _tmp0_;
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = self->priv->_repository;
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp0_;
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 610 "gitg-diff-view-file-renderer-image.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return self ? g_object_ref (self) : NULL;
#line 617 "gitg-diff-view-file-renderer-image.c"
}


void gitg_diff_view_file_renderer_image_set_repository (GitgDiffViewFileRendererImage* self, GitgRepository* value) {
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_if_fail (self != NULL);
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (gitg_diff_view_file_renderer_image_get_repository (self) != value) {
#line 626 "gitg-diff-view-file-renderer-image.c"
		GitgRepository* _tmp0_;
		GitgRepository* _tmp1_;
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp0_ = value;
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (self->priv->_repository);
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		self->priv->_repository = _tmp1_;
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_object_notify ((GObject *) self, "repository");
#line 639 "gitg-diff-view-file-renderer-image.c"
	}
}


static GObject * gitg_diff_view_file_renderer_image_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgDiffViewFileRendererImage * self;
	GgitDiffDelta* _tmp0_;
	GgitDiffFile* _tmp1_;
	GdkPixbuf* _tmp2_;
	GdkPixbuf* _tmp3_;
	GgitDiffDelta* _tmp4_;
	GgitDiffFile* _tmp5_;
	GdkPixbuf* _tmp6_;
	GdkPixbuf* _tmp7_;
	GitgDiffViewFileRendererImageSurfaceCache* _tmp8_;
	GitgDiffImageSideBySide* _tmp9_;
	GitgDiffViewFileRendererImageSurfaceCache* _tmp10_;
	GitgDiffImageSlider* _tmp11_;
	GitgDiffViewFileRendererImageSurfaceCache* _tmp12_;
	GitgDiffImageOverlay* _tmp13_;
	GitgDiffViewFileRendererImageSurfaceCache* _tmp14_;
	GitgDiffImageDifference* _tmp15_;
	GitgDiffViewFileRendererImageSurfaceCache* _tmp16_;
	gboolean _tmp17_ = FALSE;
	gboolean _tmp18_ = FALSE;
	gboolean _tmp19_ = FALSE;
	GitgDiffViewFileRendererImageSurfaceCache* _tmp20_;
	GdkPixbuf* _tmp21_;
	GdkPixbuf* _tmp22_;
	GtkAdjustment* _tmp43_;
	GitgDiffImageSlider* _tmp44_;
	GtkAdjustment* _tmp45_;
	GitgDiffImageOverlay* _tmp46_;
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	parent_class = G_OBJECT_CLASS (gitg_diff_view_file_renderer_image_parent_class);
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImage);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = self->priv->_delta;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp1_ = ggit_diff_delta_get_old_file (_tmp0_);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp2_ = gitg_diff_view_file_renderer_image_pixbuf_for_file (self, _tmp1_);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp3_ = _tmp2_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp4_ = self->priv->_delta;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp5_ = ggit_diff_delta_get_new_file (_tmp4_);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp6_ = gitg_diff_view_file_renderer_image_pixbuf_for_file (self, _tmp5_);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp7_ = _tmp6_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp8_ = gitg_diff_view_file_renderer_image_surface_cache_new (_tmp3_, _tmp7_);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_cache);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self->priv->d_cache = _tmp8_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (_tmp7_);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (_tmp3_);
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp9_ = self->priv->d_diff_image_side_by_side;
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp10_ = self->priv->d_cache;
#line 59 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_image_side_by_side_set_cache (_tmp9_, (GitgDiffImageSurfaceCache*) _tmp10_);
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp11_ = self->priv->d_diff_image_slider;
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp12_ = self->priv->d_cache;
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_image_composite_set_cache ((GitgDiffImageComposite*) _tmp11_, (GitgDiffImageSurfaceCache*) _tmp12_);
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp13_ = self->priv->d_diff_image_overlay;
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp14_ = self->priv->d_cache;
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_image_composite_set_cache ((GitgDiffImageComposite*) _tmp13_, (GitgDiffImageSurfaceCache*) _tmp14_);
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp15_ = self->priv->d_diff_image_difference;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp16_ = self->priv->d_cache;
#line 62 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_image_composite_set_cache ((GitgDiffImageComposite*) _tmp15_, (GitgDiffImageSurfaceCache*) _tmp16_);
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp20_ = self->priv->d_cache;
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp21_ = gitg_diff_image_surface_cache_get_old_pixbuf ((GitgDiffImageSurfaceCache*) _tmp20_);
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp22_ = _tmp21_;
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (_tmp22_ == NULL) {
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp19_ = TRUE;
#line 741 "gitg-diff-view-file-renderer-image.c"
	} else {
		GitgDiffViewFileRendererImageSurfaceCache* _tmp23_;
		GdkPixbuf* _tmp24_;
		GdkPixbuf* _tmp25_;
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp23_ = self->priv->d_cache;
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp24_ = gitg_diff_image_surface_cache_get_new_pixbuf ((GitgDiffImageSurfaceCache*) _tmp23_);
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp25_ = _tmp24_;
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp19_ = _tmp25_ == NULL;
#line 754 "gitg-diff-view-file-renderer-image.c"
	}
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (_tmp19_) {
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp18_ = TRUE;
#line 760 "gitg-diff-view-file-renderer-image.c"
	} else {
		GitgDiffViewFileRendererImageSurfaceCache* _tmp26_;
		GdkPixbuf* _tmp27_;
		GdkPixbuf* _tmp28_;
		gint _tmp29_;
		GitgDiffViewFileRendererImageSurfaceCache* _tmp30_;
		GdkPixbuf* _tmp31_;
		GdkPixbuf* _tmp32_;
		gint _tmp33_;
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp26_ = self->priv->d_cache;
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp27_ = gitg_diff_image_surface_cache_get_old_pixbuf ((GitgDiffImageSurfaceCache*) _tmp26_);
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp28_ = _tmp27_;
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp29_ = gdk_pixbuf_get_width (_tmp28_);
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp30_ = self->priv->d_cache;
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp31_ = gitg_diff_image_surface_cache_get_new_pixbuf ((GitgDiffImageSurfaceCache*) _tmp30_);
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp32_ = _tmp31_;
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp33_ = gdk_pixbuf_get_width (_tmp32_);
#line 65 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp18_ = _tmp29_ != _tmp33_;
#line 788 "gitg-diff-view-file-renderer-image.c"
	}
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (_tmp18_) {
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp17_ = TRUE;
#line 794 "gitg-diff-view-file-renderer-image.c"
	} else {
		GitgDiffViewFileRendererImageSurfaceCache* _tmp34_;
		GdkPixbuf* _tmp35_;
		GdkPixbuf* _tmp36_;
		gint _tmp37_;
		GitgDiffViewFileRendererImageSurfaceCache* _tmp38_;
		GdkPixbuf* _tmp39_;
		GdkPixbuf* _tmp40_;
		gint _tmp41_;
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp34_ = self->priv->d_cache;
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp35_ = gitg_diff_image_surface_cache_get_old_pixbuf ((GitgDiffImageSurfaceCache*) _tmp34_);
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp36_ = _tmp35_;
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp37_ = gdk_pixbuf_get_height (_tmp36_);
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp38_ = self->priv->d_cache;
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp39_ = gitg_diff_image_surface_cache_get_new_pixbuf ((GitgDiffImageSurfaceCache*) _tmp38_);
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp40_ = _tmp39_;
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp41_ = gdk_pixbuf_get_height (_tmp40_);
#line 66 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp17_ = _tmp37_ != _tmp41_;
#line 822 "gitg-diff-view-file-renderer-image.c"
	}
#line 64 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (_tmp17_) {
#line 826 "gitg-diff-view-file-renderer-image.c"
		GtkStackSwitcher* _tmp42_;
#line 68 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp42_ = self->priv->d_stack_switcher;
#line 68 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp42_, FALSE);
#line 832 "gitg-diff-view-file-renderer-image.c"
	}
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp43_ = self->priv->d_scale_slider_adjustment;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp44_ = self->priv->d_diff_image_slider;
#line 71 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp43_, "value", (GObject*) _tmp44_, "position", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp45_ = self->priv->d_scale_overlay_adjustment;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp46_ = self->priv->d_diff_image_overlay;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp45_, "value", (GObject*) _tmp46_, "alpha", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return obj;
#line 848 "gitg-diff-view-file-renderer-image.c"
}


static GitgDiffViewFileRendererImageSurfaceCache* gitg_diff_view_file_renderer_image_surface_cache_construct (GType object_type, GdkPixbuf* old_pixbuf, GdkPixbuf* new_pixbuf) {
	GitgDiffViewFileRendererImageSurfaceCache * self = NULL;
	GdkPixbuf* _tmp0_;
	GdkPixbuf* _tmp1_;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = old_pixbuf;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp1_ = new_pixbuf;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) g_object_new (object_type, "old-pixbuf", _tmp0_, "new-pixbuf", _tmp1_, NULL);
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return self;
#line 864 "gitg-diff-view-file-renderer-image.c"
}


static GitgDiffViewFileRendererImageSurfaceCache* gitg_diff_view_file_renderer_image_surface_cache_new (GdkPixbuf* old_pixbuf, GdkPixbuf* new_pixbuf) {
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return gitg_diff_view_file_renderer_image_surface_cache_construct (GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, old_pixbuf, new_pixbuf);
#line 871 "gitg-diff-view-file-renderer-image.c"
}


static cairo_surface_t* gitg_diff_view_file_renderer_image_surface_cache_real_get_old_surface (GitgDiffImageSurfaceCache* base, GdkWindow* window) {
	GitgDiffViewFileRendererImageSurfaceCache * self;
	cairo_surface_t* result = NULL;
	GdkWindow* _tmp0_;
	GdkPixbuf* _tmp1_;
	GdkPixbuf* _tmp2_;
	cairo_surface_t* _tmp3_;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 125 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (window != NULL, NULL);
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = window;
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp1_ = gitg_diff_image_surface_cache_get_old_pixbuf ((GitgDiffImageSurfaceCache*) self);
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp2_ = _tmp1_;
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp3_ = gitg_diff_view_file_renderer_image_surface_cache_get_cached_surface (self, _tmp0_, _tmp2_, &self->priv->d_old_surface);
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp3_;
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 898 "gitg-diff-view-file-renderer-image.c"
}


static cairo_surface_t* gitg_diff_view_file_renderer_image_surface_cache_real_get_new_surface (GitgDiffImageSurfaceCache* base, GdkWindow* window) {
	GitgDiffViewFileRendererImageSurfaceCache * self;
	cairo_surface_t* result = NULL;
	GdkWindow* _tmp0_;
	GdkPixbuf* _tmp1_;
	GdkPixbuf* _tmp2_;
	cairo_surface_t* _tmp3_;
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (window != NULL, NULL);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = window;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp1_ = gitg_diff_image_surface_cache_get_new_pixbuf ((GitgDiffImageSurfaceCache*) self);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp2_ = _tmp1_;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp3_ = gitg_diff_view_file_renderer_image_surface_cache_get_cached_surface (self, _tmp0_, _tmp2_, &self->priv->d_new_surface);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp3_;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 925 "gitg-diff-view-file-renderer-image.c"
}


static gpointer _cairo_surface_reference0 (gpointer self) {
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return self ? cairo_surface_reference (self) : NULL;
#line 932 "gitg-diff-view-file-renderer-image.c"
}


static cairo_surface_t* gitg_diff_view_file_renderer_image_surface_cache_get_cached_surface (GitgDiffViewFileRendererImageSurfaceCache* self, GdkWindow* window, GdkPixbuf* pixbuf, cairo_surface_t* * cached) {
	cairo_surface_t* result = NULL;
	GdkPixbuf* _tmp0_;
	cairo_surface_t* _tmp1_;
	cairo_surface_t* _tmp5_;
	cairo_surface_t* _tmp6_;
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_return_val_if_fail (window != NULL, NULL);
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = pixbuf;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (_tmp0_ == NULL) {
#line 139 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		result = NULL;
#line 139 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		return result;
#line 954 "gitg-diff-view-file-renderer-image.c"
	}
#line 142 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp1_ = *cached;
#line 142 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (_tmp1_ == NULL) {
#line 960 "gitg-diff-view-file-renderer-image.c"
		GdkPixbuf* _tmp2_;
		GdkWindow* _tmp3_;
		cairo_surface_t* _tmp4_;
#line 144 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp2_ = pixbuf;
#line 144 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp3_ = window;
#line 144 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp4_ = gdk_cairo_surface_create_from_pixbuf (_tmp2_, 0, _tmp3_);
#line 144 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_cairo_surface_destroy0 (*cached);
#line 144 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		*cached = _tmp4_;
#line 974 "gitg-diff-view-file-renderer-image.c"
	}
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp5_ = *cached;
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp6_ = _cairo_surface_reference0 (_tmp5_);
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp6_;
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 984 "gitg-diff-view-file-renderer-image.c"
}


static GdkPixbuf* gitg_diff_view_file_renderer_image_surface_cache_real_get_old_pixbuf (GitgDiffImageSurfaceCache* base) {
	GdkPixbuf* result;
	GitgDiffViewFileRendererImageSurfaceCache* self;
	GdkPixbuf* _tmp0_;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = self->priv->_old_pixbuf;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp0_;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 1000 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_surface_cache_real_set_old_pixbuf (GitgDiffImageSurfaceCache* base, GdkPixbuf* value) {
	GitgDiffViewFileRendererImageSurfaceCache* self;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (gitg_diff_view_file_renderer_image_surface_cache_real_get_old_pixbuf (self) != value) {
#line 1010 "gitg-diff-view-file-renderer-image.c"
		GdkPixbuf* _tmp0_;
		GdkPixbuf* _tmp1_;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp0_ = value;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (self->priv->_old_pixbuf);
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		self->priv->_old_pixbuf = _tmp1_;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_object_notify ((GObject *) self, "old-pixbuf");
#line 1023 "gitg-diff-view-file-renderer-image.c"
	}
}


static GdkPixbuf* gitg_diff_view_file_renderer_image_surface_cache_real_get_new_pixbuf (GitgDiffImageSurfaceCache* base) {
	GdkPixbuf* result;
	GitgDiffViewFileRendererImageSurfaceCache* self;
	GdkPixbuf* _tmp0_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = self->priv->_new_pixbuf;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp0_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 1040 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_surface_cache_real_set_new_pixbuf (GitgDiffImageSurfaceCache* base, GdkPixbuf* value) {
	GitgDiffViewFileRendererImageSurfaceCache* self;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (gitg_diff_view_file_renderer_image_surface_cache_real_get_new_pixbuf (self) != value) {
#line 1050 "gitg-diff-view-file-renderer-image.c"
		GdkPixbuf* _tmp0_;
		GdkPixbuf* _tmp1_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp0_ = value;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (self->priv->_new_pixbuf);
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		self->priv->_new_pixbuf = _tmp1_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_object_notify ((GObject *) self, "new-pixbuf");
#line 1063 "gitg-diff-view-file-renderer-image.c"
	}
}


static GdkWindow* gitg_diff_view_file_renderer_image_surface_cache_real_get_window (GitgDiffImageSurfaceCache* base) {
	GdkWindow* result;
	GitgDiffViewFileRendererImageSurfaceCache* self;
	GdkWindow* _tmp0_;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_tmp0_ = self->priv->_window;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	result = _tmp0_;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	return result;
#line 1080 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_surface_cache_real_set_window (GitgDiffImageSurfaceCache* base, GdkWindow* value) {
	GitgDiffViewFileRendererImageSurfaceCache* self;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = (GitgDiffViewFileRendererImageSurfaceCache*) base;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	if (gitg_diff_view_file_renderer_image_surface_cache_real_get_window (self) != value) {
#line 1090 "gitg-diff-view-file-renderer-image.c"
		GdkWindow* _tmp0_;
		GdkWindow* _tmp1_;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp0_ = value;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		_g_object_unref0 (self->priv->_window);
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		self->priv->_window = _tmp1_;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_object_notify ((GObject *) self, "window");
#line 1103 "gitg-diff-view-file-renderer-image.c"
	}
}


static void gitg_diff_view_file_renderer_image_surface_cache_class_init (GitgDiffViewFileRendererImageSurfaceCacheClass * klass) {
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_view_file_renderer_image_surface_cache_parent_class = g_type_class_peek_parent (klass);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewFileRendererImageSurfaceCachePrivate));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_view_file_renderer_image_surface_cache_get_property;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_view_file_renderer_image_surface_cache_set_property;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_view_file_renderer_image_surface_cache_finalize;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_OLD_PIXBUF, g_param_spec_object ("old-pixbuf", "old-pixbuf", "old-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_NEW_PIXBUF, g_param_spec_object ("new-pixbuf", "new-pixbuf", "new-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_WINDOW, g_param_spec_object ("window", "window", "window", gdk_window_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 1125 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_surface_cache_gitg_diff_image_surface_cache_interface_init (GitgDiffImageSurfaceCacheIface * iface) {
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_view_file_renderer_image_surface_cache_gitg_diff_image_surface_cache_parent_iface = g_type_interface_peek_parent (iface);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->get_old_surface = (cairo_surface_t* (*) (GitgDiffImageSurfaceCache *, GdkWindow*)) gitg_diff_view_file_renderer_image_surface_cache_real_get_old_surface;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->get_new_surface = (cairo_surface_t* (*) (GitgDiffImageSurfaceCache *, GdkWindow*)) gitg_diff_view_file_renderer_image_surface_cache_real_get_new_surface;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->get_old_pixbuf = gitg_diff_view_file_renderer_image_surface_cache_real_get_old_pixbuf;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->set_old_pixbuf = gitg_diff_view_file_renderer_image_surface_cache_real_set_old_pixbuf;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->get_new_pixbuf = gitg_diff_view_file_renderer_image_surface_cache_real_get_new_pixbuf;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->set_new_pixbuf = gitg_diff_view_file_renderer_image_surface_cache_real_set_new_pixbuf;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->get_window = gitg_diff_view_file_renderer_image_surface_cache_real_get_window;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->set_window = gitg_diff_view_file_renderer_image_surface_cache_real_set_window;
#line 1148 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_surface_cache_instance_init (GitgDiffViewFileRendererImageSurfaceCache * self) {
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self->priv = GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_GET_PRIVATE (self);
#line 1155 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_surface_cache_finalize (GObject * obj) {
	GitgDiffViewFileRendererImageSurfaceCache * self;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, GitgDiffViewFileRendererImageSurfaceCache);
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_cairo_surface_destroy0 (self->priv->d_old_surface);
#line 113 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_cairo_surface_destroy0 (self->priv->d_new_surface);
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->_old_pixbuf);
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->_new_pixbuf);
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->_window);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_image_surface_cache_parent_class)->finalize (obj);
#line 1175 "gitg-diff-view-file-renderer-image.c"
}


static GType gitg_diff_view_file_renderer_image_surface_cache_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_image_surface_cache_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_image_surface_cache_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewFileRendererImageSurfaceCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_file_renderer_image_surface_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewFileRendererImageSurfaceCache), 0, (GInstanceInitFunc) gitg_diff_view_file_renderer_image_surface_cache_instance_init, NULL };
		static const GInterfaceInfo gitg_diff_image_surface_cache_info = { (GInterfaceInitFunc) gitg_diff_view_file_renderer_image_surface_cache_gitg_diff_image_surface_cache_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_diff_view_file_renderer_image_surface_cache_type_id;
		gitg_diff_view_file_renderer_image_surface_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgDiffViewFileRendererImageSurfaceCache", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_diff_view_file_renderer_image_surface_cache_type_id, GITG_TYPE_DIFF_IMAGE_SURFACE_CACHE, &gitg_diff_image_surface_cache_info);
		g_once_init_leave (&gitg_diff_view_file_renderer_image_surface_cache_type_id__volatile, gitg_diff_view_file_renderer_image_surface_cache_type_id);
	}
	return gitg_diff_view_file_renderer_image_surface_cache_type_id__volatile;
}


static void _vala_gitg_diff_view_file_renderer_image_surface_cache_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererImageSurfaceCache * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, GitgDiffViewFileRendererImageSurfaceCache);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	switch (property_id) {
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_OLD_PIXBUF:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_value_set_object (value, gitg_diff_image_surface_cache_get_old_pixbuf ((GitgDiffImageSurfaceCache*) self));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_NEW_PIXBUF:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_value_set_object (value, gitg_diff_image_surface_cache_get_new_pixbuf ((GitgDiffImageSurfaceCache*) self));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_WINDOW:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_value_set_object (value, gitg_diff_image_surface_cache_get_window ((GitgDiffImageSurfaceCache*) self));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1216 "gitg-diff-view-file-renderer-image.c"
		default:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1222 "gitg-diff-view-file-renderer-image.c"
	}
}


static void _vala_gitg_diff_view_file_renderer_image_surface_cache_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererImageSurfaceCache * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_TYPE_SURFACE_CACHE, GitgDiffViewFileRendererImageSurfaceCache);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	switch (property_id) {
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_OLD_PIXBUF:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		gitg_diff_image_surface_cache_set_old_pixbuf ((GitgDiffImageSurfaceCache*) self, g_value_get_object (value));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_NEW_PIXBUF:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		gitg_diff_image_surface_cache_set_new_pixbuf ((GitgDiffImageSurfaceCache*) self, g_value_get_object (value));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_SURFACE_CACHE_WINDOW:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		gitg_diff_image_surface_cache_set_window ((GitgDiffImageSurfaceCache*) self, g_value_get_object (value));
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1250 "gitg-diff-view-file-renderer-image.c"
		default:
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1256 "gitg-diff-view-file-renderer-image.c"
	}
}


static void gitg_diff_view_file_renderer_image_class_init (GitgDiffViewFileRendererImageClass * klass) {
	gint GitgDiffViewFileRendererImage_private_offset;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_view_file_renderer_image_parent_class = g_type_class_peek_parent (klass);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewFileRendererImagePrivate));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_view_file_renderer_image_get_property;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_view_file_renderer_image_set_property;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_diff_view_file_renderer_image_constructor;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_view_file_renderer_image_finalize;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_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/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_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/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	GitgDiffViewFileRendererImage_private_offset = g_type_class_get_instance_private_offset (klass);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-diff-view-file-renderer-image.ui");
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "diff_image_side_by_side", FALSE, GitgDiffViewFileRendererImage_private_offset + G_STRUCT_OFFSET (GitgDiffViewFileRendererImagePrivate, d_diff_image_side_by_side));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "diff_image_slider", FALSE, GitgDiffViewFileRendererImage_private_offset + G_STRUCT_OFFSET (GitgDiffViewFileRendererImagePrivate, d_diff_image_slider));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "scale_slider_adjustment", FALSE, GitgDiffViewFileRendererImage_private_offset + G_STRUCT_OFFSET (GitgDiffViewFileRendererImagePrivate, d_scale_slider_adjustment));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "diff_image_overlay", FALSE, GitgDiffViewFileRendererImage_private_offset + G_STRUCT_OFFSET (GitgDiffViewFileRendererImagePrivate, d_diff_image_overlay));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "scale_overlay_adjustment", FALSE, GitgDiffViewFileRendererImage_private_offset + G_STRUCT_OFFSET (GitgDiffViewFileRendererImagePrivate, d_scale_overlay_adjustment));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "diff_image_difference", FALSE, GitgDiffViewFileRendererImage_private_offset + G_STRUCT_OFFSET (GitgDiffViewFileRendererImagePrivate, d_diff_image_difference));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "stack_switcher", FALSE, GitgDiffViewFileRendererImage_private_offset + G_STRUCT_OFFSET (GitgDiffViewFileRendererImagePrivate, d_stack_switcher));
#line 1297 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_gitg_diff_view_file_renderer_interface_init (GitgDiffViewFileRendererIface * iface) {
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gitg_diff_view_file_renderer_image_gitg_diff_view_file_renderer_parent_iface = g_type_interface_peek_parent (iface);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	iface->add_hunk = (void (*) (GitgDiffViewFileRenderer *, GgitDiffHunk*, GeeArrayList*)) gitg_diff_view_file_renderer_image_real_add_hunk;
#line 1306 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_instance_init (GitgDiffViewFileRendererImage * self) {
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self->priv = GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_GET_PRIVATE (self);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_type_ensure (GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_type_ensure (GITG_TYPE_DIFF_IMAGE_OVERLAY);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_type_ensure (GITG_TYPE_DIFF_IMAGE_SLIDER);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	g_type_ensure (GITG_TYPE_DIFF_IMAGE_DIFFERENCE);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 1323 "gitg-diff-view-file-renderer-image.c"
}


static void gitg_diff_view_file_renderer_image_finalize (GObject * obj) {
	GitgDiffViewFileRendererImage * self;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImage);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_ggit_diff_delta_unref0 (self->priv->_delta);
#line 24 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->_repository);
#line 27 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_diff_image_side_by_side);
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_diff_image_slider);
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_scale_slider_adjustment);
#line 36 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_diff_image_overlay);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_scale_overlay_adjustment);
#line 42 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_diff_image_difference);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_stack_switcher);
#line 47 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	_g_object_unref0 (self->priv->d_cache);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_image_parent_class)->finalize (obj);
#line 1353 "gitg-diff-view-file-renderer-image.c"
}


GType gitg_diff_view_file_renderer_image_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_image_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_image_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewFileRendererImageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_file_renderer_image_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewFileRendererImage), 0, (GInstanceInitFunc) gitg_diff_view_file_renderer_image_instance_init, NULL };
		static const GInterfaceInfo gitg_diff_view_file_renderer_info = { (GInterfaceInitFunc) gitg_diff_view_file_renderer_image_gitg_diff_view_file_renderer_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_diff_view_file_renderer_image_type_id;
		gitg_diff_view_file_renderer_image_type_id = g_type_register_static (gtk_grid_get_type (), "GitgDiffViewFileRendererImage", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_diff_view_file_renderer_image_type_id, GITG_TYPE_DIFF_VIEW_FILE_RENDERER, &gitg_diff_view_file_renderer_info);
		g_once_init_leave (&gitg_diff_view_file_renderer_image_type_id__volatile, gitg_diff_view_file_renderer_image_type_id);
	}
	return gitg_diff_view_file_renderer_image_type_id__volatile;
}


static void _vala_gitg_diff_view_file_renderer_image_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererImage * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImage);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	switch (property_id) {
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_DELTA:
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_value_set_boxed (value, gitg_diff_view_file_renderer_image_get_delta (self));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_REPOSITORY:
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		g_value_set_object (value, gitg_diff_view_file_renderer_image_get_repository (self));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1388 "gitg-diff-view-file-renderer-image.c"
		default:
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1394 "gitg-diff-view-file-renderer-image.c"
	}
}


static void _vala_gitg_diff_view_file_renderer_image_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererImage * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_IMAGE, GitgDiffViewFileRendererImage);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
	switch (property_id) {
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_DELTA:
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		gitg_diff_view_file_renderer_image_set_delta (self, g_value_get_boxed (value));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_IMAGE_REPOSITORY:
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		gitg_diff_view_file_renderer_image_set_repository (self, g_value_get_object (value));
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1416 "gitg-diff-view-file-renderer-image.c"
		default:
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-diff-view-file-renderer-image.vala"
		break;
#line 1422 "gitg-diff-view-file-renderer-image.c"
	}
}



